Index: src/webapp/apigility-testing/db-config-setup.sql
===================================================================
--- src/webapp/apigility-testing/db-config-setup.sql	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,35 +1,0 @@
-INSERT INTO oauth_users (
-    username,
-    password,
-    first_name,
-    last_name)
-VALUES (
-    "testuser",
-    "test",
-    "Test",
-    "User"
-);
-
-INSERT INTO oauth_clients (
-    client_id,
-    client_secret,
-    redirect_uri,
-    user_id)
-VALUES (
-    "testclient",
-    "$2y$14$f3qml4G2hG6sxM26VMq.geDYbsS089IBtVJ7DlD05BoViS9PFykE2",
-    "/oauth/receivecode",
-    "testuser"
-);
-
-INSERT INTO waters (
-	label,
-	osm_id,
-	osm_type,
-	osm_class)
-VALUES (
-	"Forggensee",
-	897899,
-	"R",
-	'natural'
-);
Index: src/webapp/apigility-testing/db-setup.sql
===================================================================
--- src/webapp/apigility-testing/db-setup.sql	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,92 +1,0 @@
-/*
-	SQL structere for oauth
-*/
-CREATE TABLE IF NOT EXISTS oauth_users (
-    username VARCHAR(255) NOT NULL,
-    password VARCHAR(2000),
-    first_name VARCHAR(255),
-    last_name VARCHAR(255),
-    CONSTRAINT username_pk PRIMARY KEY (username)
-);
-CREATE TABLE IF NOT EXISTS oauth_clients (
-    client_id VARCHAR(80) NOT NULL,
-    client_secret VARCHAR(80) NOT NULL,
-    redirect_uri VARCHAR(2000) NOT NULL,
-    grant_types VARCHAR(80),
-    scope VARCHAR(2000),
-    user_id VARCHAR(255),
-    CONSTRAINT clients_client_id_pk PRIMARY KEY (client_id),
-    FOREIGN KEY (user_id) REFERENCES oauth_users(username)
-);
-CREATE TABLE IF NOT EXISTS oauth_access_tokens (
-    access_token VARCHAR(40) NOT NULL,
-    client_id VARCHAR(80) NOT NULL,
-    user_id VARCHAR(255),
-    expires TIMESTAMP NOT NULL,
-    scope VARCHAR(2000),
-    CONSTRAINT access_token_pk PRIMARY KEY (access_token),
-    FOREIGN KEY (client_id) REFERENCES oauth_clients(client_id),
-    FOREIGN KEY (user_id) REFERENCES oauth_users(username)
-);
-CREATE TABLE IF NOT EXISTS oauth_authorization_codes (
-    authorization_code VARCHAR(40) NOT NULL,
-    client_id VARCHAR(80) NOT NULL,
-    user_id VARCHAR(255),
-    redirect_uri VARCHAR(2000),
-    expires TIMESTAMP NOT NULL,
-    scope VARCHAR(2000),
-    id_token VARCHAR(2000),
-    CONSTRAINT auth_code_pk PRIMARY KEY (authorization_code),
-    FOREIGN KEY (client_id) REFERENCES oauth_clients(client_id),
-    FOREIGN KEY (user_id) REFERENCES oauth_users(username)
-);
-CREATE TABLE IF NOT EXISTS oauth_refresh_tokens (
-    refresh_token VARCHAR(40) NOT NULL,
-    client_id VARCHAR(80) NOT NULL,
-    user_id VARCHAR(255),
-    expires TIMESTAMP NOT NULL,
-    scope VARCHAR(2000),
-    CONSTRAINT refresh_token_pk PRIMARY KEY (refresh_token),
-    FOREIGN KEY (client_id) REFERENCES oauth_clients(client_id),
-    FOREIGN KEY (user_id) REFERENCES oauth_users(username)
-);
-CREATE TABLE IF NOT EXISTS oauth_scopes (
-    type VARCHAR(255) NOT NULL DEFAULT "supported",
-    scope VARCHAR(2000),
-    client_id VARCHAR (80),
-    is_default SMALLINT DEFAULT NULL,
-    FOREIGN KEY (client_id) REFERENCES oauth_clients(client_id)
-);
-CREATE TABLE IF NOT EXISTS oauth_jwt (
-    client_id VARCHAR(80) NOT NULL,
-    subject VARCHAR(80),
-    public_key VARCHAR(2000),
-    CONSTRAINT jwt_client_id_pk PRIMARY KEY (client_id),
-    FOREIGN KEY (client_id) REFERENCES oauth_clients(client_id)
-);
-
-/*
-	SQL Structure for GnuBoat
-*/
-CREATE TABLE IF NOT EXISTS waters (
-	water_id BIGINT NOT NULL AUTO_INCREMENT,
-	label VARCHAR(500) NOT NULL,
-	osm_id BIGINT,
-	osm_type VARCHAR(255),
-	osm_class VARCHAR(255),
-	PRIMARY KEY(water_id)
-);
-
-CREATE TABLE IF NOT EXISTS gauges (
-	gauge_id BIGINT NOT NULL AUTO_INCREMENT,
-	label VARCHAR(500) NOT NULL,
-	manager VARCHAR(255) NOT NULL,
-	location POINT,
-	water_id BIGINT NOT NULL,
-	comment VARCHAR(2000),
-	osm_type VARCHAR(255),
-	osm_id BIGINT,
-	PRIMARY KEY(gauge_id),
-	FOREIGN KEY (manager) REFERENCES oauth_users(username),
-	FOREIGN KEY (water_id) REFERENCES waters(water_id)
-);
Index: src/webapp/apigility-testing/test-authorization
===================================================================
--- src/webapp/apigility-testing/test-authorization	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,41 +1,0 @@
-#!/usr/bin/python
-"""
-    Copyright (C) 2019 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
-
-    This program is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program.  If not, see <http://www.gnu.org/licenses/>.
-"""
-
-import requests
-import json
-
-server='http://localhost:8080'
-client_id = 'testclient'
-client_secret = 'testpass'
-
-r = requests.post("{}/oauth".format(server), auth=('testclient', 'testpass'), data={'grant_type': 'client_credentials'})
-print(r.status_code, r.reason)
-response = r.json()
-print("Recieved access token {} of type {}".format(response['access_token'], response['token_type']))
-
-header_auth = {'Authorization': '{} {}'.format(response['token_type'], response['access_token'])}
-r = requests.post("{}/oauth/resource".format(server), headers=header_auth)
-print(r.status_code, r.reason)
-print(r.json())
-
-headers = header_auth
-headers['Accept'] = 'application/json'
-headers['Content-Type'] = 'application/json'
-r = requests.post("{}/waters".format(server), headers=headers, data=json.dumps({'label': 'Forggensee'}))
-print(r.status_code, r.reason)
-print(r.json())
Index: src/webapp/apigility/.dockerignore
===================================================================
--- src/webapp/apigility/.dockerignore	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,16 +1,0 @@
-nbproject
-._*
-.~lock.*
-.buildpath
-.DS_Store
-.idea
-.project
-.settings
-vendor/
-public/vendor/
-config/development.config.php
-config/autoload/local.php
-config/autoload/*.local.php
-!public/vendor/README.md
-data/cache/*
-!data/cache/.gitkeep
Index: src/webapp/apigility/.gitignore
===================================================================
--- src/webapp/apigility/.gitignore	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,6 +1,0 @@
-.vagrant/
-vendor/
-config/development.config.php
-data/cache/*
-!data/cache/.gitkeep
-phpunit.xml
Index: src/webapp/apigility/CHANGELOG.md
===================================================================
--- src/webapp/apigility/CHANGELOG.md	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,86 +1,0 @@
-# Changelog
-
-All notable changes to this project will be documented in this file, in reverse chronological order by release.
-
-## 1.5.2 - 2019-01-09
-
-### Added
-
-- Nothing.
-
-### Changed
-
-- Nothing.
-
-### Deprecated
-
-- Nothing.
-
-### Removed
-
-- Nothing.
-
-### Fixed
-
-- [#168](https://github.com/zfcampus/zf-apigility-skeleton/pull/168) fixes file permissions of the `/var/www` folder when using Vagrant,
-  setting them to the `www-data` user.
-
-## 1.5.1 - 2018-08-15
-
-### Added
-
-- Nothing.
-
-### Changed
-
-- Nothing.
-
-### Deprecated
-
-- Nothing.
-
-### Removed
-
-- Nothing.
-
-### Fixed
-
-- [#165](https://github.com/zfcampus/zf-apigility-skeleton/pull/165) updates the `composer.lock` by running `composer install` using a
-  PHP 5.6 release.  This was done as the 1.5.0 release was made using a PHP 7.1+
-  binary, and thus installed versions of dependencies that were compatible with
-  those release - but not with 5.6.  Once a release is made with this patch,
-  users on PHP 5.6 will be able to install the skeleton again.
-  
-  However, this means that PHP 7.1+ users will need to execute the following
-  after an initial skeleton install in order to get newer versions of libraries
-  compatible with 7.1:
-  
-  ```bash
-  $ rm -Rf composer.lock vendor
-  $ composer install
-  ```
-
-## 1.5.0 - 2018-05-08
-
-### Added
-
-- [#159](https://github.com/zfcampus/zf-apigility-skeleton/pull/159) adds a development requirement on zendframework/zend-test, ensuring users
-  have the ability to run existing unit tests, as well as write and execute new ones out of the box.
-
-### Changed
-
-- [#164](https://github.com/zfcampus/zf-apigility-skeleton/pull/164) updates all dependencies to versions that will work with PHP 7.2, where possible.
-
-- [#154](https://github.com/zfcampus/zf-apigility-skeleton/pull/154) modifies the `config/autoload/.gitignore` rules to omit `*.local-development.php` files.
-
-### Deprecated
-
-- Nothing.
-
-### Removed
-
-- Nothing.
-
-### Fixed
-
-- Nothing.
Index: src/webapp/apigility/CODE_OF_CONDUCT.md
===================================================================
--- src/webapp/apigility/CODE_OF_CONDUCT.md	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,43 +1,0 @@
-# Contributor Code of Conduct
-
-This project adheres to [The Code Manifesto](http://codemanifesto.com)
-as its guidelines for contributor interactions.
-
-## The Code Manifesto
-
-We want to work in an ecosystem that empowers developers to reach their
-potential — one that encourages growth and effective collaboration. A space that
-is safe for all.
-
-A space such as this benefits everyone that participates in it. It encourages
-new developers to enter our field. It is through discussion and collaboration
-that we grow, and through growth that we improve.
-
-In the effort to create such a place, we hold to these values:
-
-1. **Discrimination limits us.** This includes discrimination on the basis of
-   race, gender, sexual orientation, gender identity, age, nationality, technology
-   and any other arbitrary exclusion of a group of people.
-2. **Boundaries honor us.** Your comfort levels are not everyone’s comfort
-   levels. Remember that, and if brought to your attention, heed it.
-3. **We are our biggest assets.** None of us were born masters of our trade.
-   Each of us has been helped along the way. Return that favor, when and where
-   you can.
-4. **We are resources for the future.** As an extension of #3, share what you
-   know. Make yourself a resource to help those that come after you.
-5. **Respect defines us.** Treat others as you wish to be treated. Make your
-   discussions, criticisms and debates from a position of respectfulness. Ask
-   yourself, is it true? Is it necessary? Is it constructive? Anything less is
-   unacceptable.
-6. **Reactions require grace.** Angry responses are valid, but abusive language
-   and vindictive actions are toxic. When something happens that offends you,
-   handle it assertively, but be respectful. Escalate reasonably, and try to
-   allow the offender an opportunity to explain themselves, and possibly correct
-   the issue.
-7. **Opinions are just that: opinions.** Each and every one of us, due to our
-   background and upbringing, have varying opinions. The fact of the matter, is
-   that is perfectly acceptable. Remember this: if you respect your own
-   opinions, you should respect the opinions of others.
-8. **To err is human.** You might not intend it, but mistakes do happen and
-   contribute to build experience. Tolerate honest mistakes, and don't hesitate
-   to apologize if you make one yourself.
Index: src/webapp/apigility/CONTRIBUTING.md
===================================================================
--- src/webapp/apigility/CONTRIBUTING.md	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,201 +1,0 @@
-# CONTRIBUTING
-
-## RESOURCES
-
-If you wish to contribute to this project, please be sure to
-read/subscribe to the following resources:
-
- - [Coding Standards](https://github.com/zendframework/zend-coding-standard)
- - [Forums](https://discourse.zendframework.com/c/contributors)
- - [Chat](https://zendframework-slack.herokuapp.com)
- - [Code of Conduct](CODE_OF_CONDUCT.md)
-
-If you are working on new features or refactoring
-[create a proposal](https://github.com/zfcampus/zf-api-problem/issues/new).
-
-## RUNNING TESTS
-
-To run tests:
-
-- Clone the repository:
-
-  ```console
-  $ git clone git://github.com/zfcampus/zf-api-problem.git
-  $ cd zf-api-problem
-  ```
-
-- Install dependencies via composer:
-
-  ```console
-  $ composer install
-  ```
-
-  If you don't have `composer` installed, please download it from https://getcomposer.org/download/
-
-- Make sure that `zendframework/zend-test` is installed:
-  
-  ```console
-  $ composer require --dev zendframework/zend-test
-  ```
-
-- Run the tests using the "test" command shipped in the `composer.json`:
-
-  ```console
-  $ composer test
-  ```
-
-You can turn on conditional tests with the `phpunit.xml` file.
-To do so:
-
- -  Copy `phpunit.xml.dist` file to `phpunit.xml`
- -  Edit `phpunit.xml` to enable any specific functionality you
-    want to test, as well as to provide test values to utilize.
-
-## Running Coding Standards Checks
-
-First, ensure you've installed dependencies via composer, per the previous
-section on running tests.
-
-Make sure that `squizlabs/php_codesniffer` is installed:
-
-```console
-$ composer require --dev squizlabs/php_codesniffer
-```
-
-To run CS checks only:
-
-```console
-$ composer cs-check
-```
-
-To attempt to automatically fix common CS issues:
-
-```console
-$ composer cs-fix
-```
-
-If the above fixes any CS issues, please re-run the tests to ensure
-they pass, and make sure you add and commit the changes after verification.
-
-## Recommended Workflow for Contributions
-
-Your first step is to establish a public repository from which we can
-pull your work into the master repository. We recommend using
-[GitHub](https://github.com), as that is where the component is already hosted.
-
-1. Setup a [GitHub account](https://github.com/), if you haven't yet
-2. Fork the repository (https://github.com/zfcampus/zf-api-problem)
-3. Clone the canonical repository locally and enter it.
-
-   ```console
-   $ git clone git://github.com/zfcampus/zf-api-problem.git
-   $ cd zf-api-problem
-   ```
-
-4. Add a remote to your fork; substitute your GitHub username in the command
-   below.
-
-   ```console
-   $ git remote add {username} git@github.com:{username}/zf-api-problem.git
-   $ git fetch {username}
-   ```
-
-### Keeping Up-to-Date
-
-Periodically, you should update your fork or personal repository to
-match the canonical ZF repository. Assuming you have setup your local repository
-per the instructions above, you can do the following:
-
-
-```console
-$ git checkout master
-$ git fetch origin
-$ git rebase origin/master
-# OPTIONALLY, to keep your remote up-to-date -
-$ git push {username} master:master
-```
-
-If you're tracking other branches -- for example, the "develop" branch, where
-new feature development occurs -- you'll want to do the same operations for that
-branch; simply substitute  "develop" for "master".
-
-### Working on a patch
-
-We recommend you do each new feature or bugfix in a new branch. This simplifies
-the task of code review as well as the task of merging your changes into the
-canonical repository.
-
-A typical workflow will then consist of the following:
-
-1. Create a new local branch based off either your master or develop branch.
-2. Switch to your new local branch. (This step can be combined with the
-   previous step with the use of `git checkout -b`.)
-3. Do some work, commit, repeat as necessary.
-4. Push the local branch to your remote repository.
-5. Send a pull request.
-
-The mechanics of this process are actually quite trivial. Below, we will
-create a branch for fixing an issue in the tracker.
-
-```console
-$ git checkout -b hotfix/9295
-Switched to a new branch 'hotfix/9295'
-```
-
-... do some work ...
-
-
-```console
-$ git commit
-```
-
-... write your log message ...
-
-
-```console
-$ git push {username} hotfix/9295:hotfix/9295
-Counting objects: 38, done.
-Delta compression using up to 2 threads.
-Compression objects: 100% (18/18), done.
-Writing objects: 100% (20/20), 8.19KiB, done.
-Total 20 (delta 12), reused 0 (delta 0)
-To ssh://git@github.com/{username}/zf-api-problem.git
-   b5583aa..4f51698  HEAD -> master
-```
-
-To send a pull request, you have two options.
-
-If using GitHub, you can do the pull request from there. Navigate to
-your repository, select the branch you just created, and then select the
-"Pull Request" button in the upper right. Select the user/organization
-"zfcampus" (or whatever the upstream organization is) as the recipient.
-
-#### What branch to issue the pull request against?
-
-Which branch should you issue a pull request against?
-
-- For fixes against the stable release, issue the pull request against the
-  "master" branch.
-- For new features, or fixes that introduce new elements to the public API (such
-  as new public methods or properties), issue the pull request against the
-  "develop" branch.
-
-### Branch Cleanup
-
-As you might imagine, if you are a frequent contributor, you'll start to
-get a ton of branches both locally and on your remote.
-
-Once you know that your changes have been accepted to the master
-repository, we suggest doing some cleanup of these branches.
-
--  Local branch cleanup
-
-   ```console
-   $ git branch -d <branchname>
-   ```
-
--  Remote branch removal
-
-   ```console
-   $ git push {username} :<branchname>
-   ```
Index: src/webapp/apigility/Dockerfile
===================================================================
--- src/webapp/apigility/Dockerfile	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,36 +1,0 @@
-#
-# Use this dockerfile to run apigility.
-#
-# Start the server using docker-compose:
-#
-#   docker-compose build
-#   docker-compose up
-#
-# You can install dependencies via the container:
-#
-#   docker-compose run apigility composer install
-#
-# You can manipulate dev mode from the container:
-#
-#   docker-compose run apigility composer development-enable
-#   docker-compose run apigility composer development-disable
-#   docker-compose run apigility composer development-status
-#
-# OR use plain old docker 
-#
-#   docker build -f Dockerfile-dev -t apigility .
-#   docker run -it -p "8080:80" -v $PWD:/var/www apigility
-#
-FROM php:7.2-apache
-
-RUN apt-get update \
- && apt-get install -y git zlib1g-dev \
- && docker-php-ext-install zip \
- && a2enmod rewrite \
- && sed -i 's!/var/www/html!/var/www/public!g' /etc/apache2/sites-available/000-default.conf \
- && mv /var/www/html /var/www/public \
- && curl -sS https://getcomposer.org/installer \
-  | php -- --install-dir=/usr/local/bin --filename=composer \
- && echo "AllowEncodedSlashes On" >> /etc/apache2/apache2.conf
-
-WORKDIR /var/www
Index: src/webapp/apigility/LICENSE.md
===================================================================
--- src/webapp/apigility/LICENSE.md	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,27 +1,0 @@
-Copyright (c) 2013-2018, Zend Technologies USA, Inc.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-- Redistributions of source code must retain the above copyright notice, this
-  list of conditions and the following disclaimer.
-
-- Redistributions in binary form must reproduce the above copyright notice, this
-  list of conditions and the following disclaimer in the documentation and/or
-  other materials provided with the distribution.
-
-- Neither the name of Zend Technologies USA, Inc. nor the names of its
-  contributors may be used to endorse or promote products derived from this
-  software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Index: src/webapp/apigility/README.md
===================================================================
--- src/webapp/apigility/README.md	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,252 +1,0 @@
-Apigility Skeleton Application
-==============================
-
-Requirements
-------------
-
-Please see the [composer.json](composer.json) file.
-
-Installation
-------------
-
-### Via release tarball
-
-Grab the latest release via the [Apigility website](http://apigility.org/)
-and/or the [releases page](https://github.com/zfcampus/zf-apigility-skeleton/releases); each release
-has distribution tarballs and zipballs available.
-
-Untar it:
-
-```bash
-$ tar xzf zf-apigility-skeleton-{version}.tgz
-```
-
-(Where `{version}` is the version you downloaded.)
-
-Or unzip, if you chose the zipball:
-
-```bash
-$ unzip zf-apigility-skeleton-{version}.zip
-```
-
-(Where `{version}` is the version you downloaded.)
-
-### Via Composer (create-project)
-
-You can use the `create-project` command from [Composer](http://getcomposer.org/)
-to create the project in one go (you need to install [composer](https://getcomposer.org/doc/00-intro.md#downloading-the-composer-executable)):
-
-```bash
-$ curl -s https://getcomposer.org/installer | php -- --filename=composer
-$ composer create-project -sdev zfcampus/zf-apigility-skeleton path/to/install
-```
-
-### Via Git (clone)
-
-First, clone the repository:
-
-```bash
-# git clone https://github.com/zfcampus/zf-apigility-skeleton.git # optionally, specify the directory in which to clone
-$ cd path/to/install
-```
-
-At this point, you need to use [Composer](https://getcomposer.org/) to install
-dependencies. Assuming you already have Composer:
-
-```bash
-$ composer install
-```
-
-### All methods
-
-Once you have the basic installation, you need to put it in development mode:
-
-```bash
-$ cd path/to/install
-$ composer development-enable
-```
-
-Now, fire it up! Do one of the following:
-
-- Create a vhost in your web server that points the DocumentRoot to the
-  `public/` directory of the project
-- Fire up the built-in web server in PHP(**note**: do not use this for
-  production!)
-
-In the latter case, do the following:
-
-```bash
-$ cd path/to/install
-$ php -S 0.0.0.0:8080 -ddisplay_errors=0 -t public public/index.php
-# OR use the composer alias:
-$ composer serve
-```
-
-You can then visit the site at http://localhost:8080/ - which will bring up a
-welcome page and the ability to visit the dashboard in order to create and
-inspect your APIs.
-
-### NOTE ABOUT USING APACHE
-
-Apache forbids the character sequences `%2F` and `%5C` in URI paths. However, the Apigility Admin
-API uses these characters for a number of service endpoints. As such, if you wish to use the
-Admin UI and/or Admin API with Apache, you will need to configure your Apache vhost/project to
-allow encoded slashes:
-
-```apacheconf
-AllowEncodedSlashes On
-```
-
-This change will need to be made in your server's vhost file (it cannot be added to `.htaccess`).
-
-### NOTE ABOUT OPCACHE
-
-**Disable all opcode caches when running the admin!**
-
-The admin cannot and will not run correctly when an opcode cache, such as APC or
-OpCache, is enabled. Apigility does not use a database to store configuration;
-instead, it uses PHP configuration files. Opcode caches will cache these files
-on first load, leading to inconsistencies as you write to them, and will
-typically lead to a state where the admin API and code become unusable.
-
-The admin is a **development** tool, and intended for use a development
-environment. As such, you should likely disable opcode caching, regardless.
-
-When you are ready to deploy your API to **production**, however, you can
-disable development mode, thus disabling the admin interface, and safely run an
-opcode cache again. Doing so is recommended for production due to the tremendous
-performance benefits opcode caches provide.
-
-### NOTE ABOUT DISPLAY_ERRORS
-
-The `display_errors` `php.ini` setting is useful in development to understand what warnings,
-notices, and error conditions are affecting your application. However, they cause problems for APIs:
-APIs are typically a specific serialization format, and error reporting is usually in either plain
-text, or, with extensions like XDebug, in HTML. This breaks the response payload, making it unusable
-by clients.
-
-For this reason, we recommend disabling `display_errors` when using the Apigility admin interface.
-This can be done using the `-ddisplay_errors=0` flag when using the built-in PHP web server, or you
-can set it in your virtual host or server definition. If you disable it, make sure you have
-reasonable error log settings in place. For the built-in PHP web server, errors will be reported in
-the console itself; otherwise, ensure you have an error log file specified in your configuration.
-
-`display_errors` should *never* be enabled in production, regardless.
-
-### Vagrant
-
-If you prefer to develop with Vagrant, there is a basic vagrant recipe included with this project.
-
-This recipe assumes that you already have Vagrant installed. The virtual machine will try to use localhost:8080 by
-default, so if you already have a server on this port of your host machine, you need to shut down the conflicting
-server first, or if you know how, you can reconfigure the ports in Vagrantfile.
-
-Assuming you have Vagrant installed and assuming you have no port conflicts, you can bring up the Vagrant machine
-with the standard `up` command:
-
-```bash
-$ vagrant up
-```
-
-When the machine comes up, you can ssh to it with the standard ssh forward agent:
-
-```bash
-$ vagrant ssh
-```
-
-The web root is inside the shared directory, which is at `/var/www`; this is
-also the home directory for the vagrant issue, which will be the initial
-directory you land in once you connect via SSH.
-
-The image installs composer during provisioning, meaning you can use it to
-install and update dependencies:
-
-```bash
-# Install dependencies:
-$ vagrant ssh -c 'composer install'
-# Update dependencies:
-$ vagrant ssh -c 'composer update'
-```
-
-You can also manipulate development mode:
-
-```bash
-$ vagrant ssh -c 'composer development-enable'
-$ vagrant ssh -c 'composer development-disable'
-$ vagrant ssh -c 'composer development-status'
-```
-
-> #### Vagrant and VirtualBox
->
-> The vagrant image is based on `bento/ubuntu-16.04`. If you are using VirtualBox as
-> a provider, you will need:
->
-> - Vagrant 1.8.5 or later
-> - VirtualBox 5.0.26 or later
-
-For vagrant documentation, please refer to [vagrantup.com](https://www.vagrantup.com/)
-
-### Docker
-
-If you develop or deploy using Docker, we provide configuration for you.
-
-Prepare your development environment using [docker compose](https://docs.docker.com/compose/install/):
-
-```bash
-$ git clone https://github.com/zfcampus/zf-apigility-skeleton
-$ cd zf-apigility-skeleton
-$ docker-compose build
-# Install dependencies via composer, if you haven't already:
-$ docker-compose run apigility composer install
-# Enable development mode:
-$ docker-compose run apigility composer development-enable
-```
-
-Start the container:
-
-```bash
-$ docker-compose up
-```
-
-Access Apigility from `http://localhost:8080/` or `http://<boot2docker ip>:8080/` if on Windows or Mac.
-
-You may also use the provided `Dockerfile` directly if desired.
-
-Once installed, you can use the container to update dependencies:
-
-```bash
-$ docker-compose run apigility composer update
-```
-
-Or to manipulate development mode:
-
-```bash
-$ docker-compose run apigility composer development-enable
-$ docker-compose run apigility composer development-disable
-$ docker-compose run apigility composer development-status
-```
-
-QA Tools
---------
-
-The skeleton ships with minimal QA tooling by default, including
-zendframework/zend-test. We supply basic tests for the shipped
-`Application\Controller\IndexController`.
-
-We also ship with configuration for [phpcs](https://github.com/squizlabs/php_codesniffer).
-If you wish to add this QA tool, execute the following:
-
-```bash
-$ composer require --dev squizlabs/php_codesniffer
-```
-
-We provide aliases for each of these tools in the Composer configuration:
-
-```bash
-# Run CS checks:
-$ composer cs-check
-# Fix CS errors:
-$ composer cs-fix
-# Run PHPUnit tests:
-$ composer test
-```
Index: src/webapp/apigility/SUPPORT.md
===================================================================
--- src/webapp/apigility/SUPPORT.md	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,25 +1,0 @@
-# Getting Support
-
-Zend Framework offers three support channels:
-
-- For real-time questions, use our
-  [chat](https://zendframework-slack.herokuapp.com)
-- For detailed questions (e.g., those requiring examples) use our
-  [forums](https://discourse.zendframework.com/c/questions/apigility)
-- To report issues, use this repository's
-  [issue tracker](https://github.com/zfcampus/zf-apigility-skeleton/issues/new)
-
-**DO NOT** use the issue tracker to ask questions; use chat or the forums for
-that. Questions posed to the issue tracker will be closed.
-
-When reporting an issue, please include the following details:
-
-- A narrative description of what you are trying to accomplish.
-- The minimum code necessary to reproduce the issue.
-- The expected results of exercising that code.
-- The actual results received.
-
-We may ask for additional details: what version of the library you are using,
-and what PHP version was used to reproduce the issue.
-
-You may also submit a failing test case as a pull request.
Index: src/webapp/apigility/Vagrantfile
===================================================================
--- src/webapp/apigility/Vagrantfile	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,56 +1,0 @@
-# -*- mode: ruby -*-
-# vi: set ft=ruby :
-
-VAGRANTFILE_API_VERSION = '2'
-
-@script = <<SCRIPT
-# Install dependencies
-apt-get update
-apt-get install -y apache2 git curl php7.0 php7.0-bcmath php7.0-bz2 php7.0-cli php7.0-curl php7.0-intl php7.0-json php7.0-mbstring php7.0-opcache php7.0-soap php7.0-sqlite3 php7.0-xml php7.0-xsl php7.0-zip libapache2-mod-php7.0
-
-# Configure Apache
-echo "<VirtualHost *:80>
-	DocumentRoot /var/www/public
-	AllowEncodedSlashes On
-
-	<Directory /var/www/public>
-		Options +Indexes +FollowSymLinks
-		DirectoryIndex index.php index.html
-		Order allow,deny
-		Allow from all
-		AllowOverride All
-	</Directory>
-
-	ErrorLog ${APACHE_LOG_DIR}/error.log
-	CustomLog ${APACHE_LOG_DIR}/access.log combined
-</VirtualHost>" > /etc/apache2/sites-available/000-default.conf
-a2enmod rewrite
-service apache2 restart
-
-if [ -e /usr/local/bin/composer ]; then
-    /usr/local/bin/composer self-update
-else
-    curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
-fi
-
-# Reset home directory of vagrant user
-if ! grep -q "cd /var/www" /home/vagrant/.profile; then
-    echo "cd /var/www" >> /home/vagrant/.profile
-fi
-
-echo "** [ZF] Run the following command to install dependencies, if you have not already:"
-echo "    vagrant ssh -c 'composer install'"
-echo "** [ZF] Visit http://localhost:8080 in your browser for to view the application **"
-SCRIPT
-
-Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
-  config.vm.box = 'bento/ubuntu-16.04'
-  config.vm.network "forwarded_port", guest: 80, host: 8080
-  config.vm.synced_folder '.', '/var/www', owner: "www-data", group: "www-data"
-  config.vm.provision 'shell', inline: @script
-
-  config.vm.provider "virtualbox" do |vb|
-    vb.customize ["modifyvm", :id, "--memory", "1024"]
-    vb.customize ["modifyvm", :id, "--name", "Apigility - Ubuntu 16.04"]
-  end
-end
Index: src/webapp/apigility/composer.json
===================================================================
--- src/webapp/apigility/composer.json	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,74 +1,0 @@
-{
-    "name": "zfcampus/zf-apigility-skeleton",
-    "description": "Skeleton Application for Apigility",
-    "type": "project",
-    "license": "BSD-3-Clause",
-    "keywords": [
-        "api",
-        "apigility",
-        "framework",
-        "zf",
-        "zendframework"
-    ],
-    "homepage": "http://apigility.org/",
-    "support": {
-        "issues": "https://github.com/zfcampus/zf-apigility-skeleton/issues",
-        "source": "https://github.com/zfcampus/zf-apigility-skeleton",
-        "rss": "https://github.com/zfcampus/zf-apigility-skeleton/releases.atom",
-        "chat": "https://zendframework-slack.herokuapp.com",
-        "forum": "https://discourse.zendframework.com/c/questions/apigility"
-    },
-    "config": {
-        "process-timeout": 5000,
-	"optimize-autoloader": true
-    },
-    "extra": {
-        "branch-alias": {
-            "dev-master": "1.5.x-dev",
-            "dev-develop": "1.6.x-dev"
-        }
-    },
-    "require": {
-        "php": "^5.6 || ^7.0",
-        "zendframework/zend-component-installer": "^1.1.1 || ^2.1.1",
-        "zfcampus/zf-apigility": "^1.4",
-        "zfcampus/zf-apigility-documentation": "^1.3",
-        "zfcampus/zf-development-mode": "^3.2"
-    },
-    "require-dev": {
-        "zendframework/zend-developer-tools": "^1.2.1",
-        "zendframework/zend-test": "^2.6.1 || ^3.2",
-        "zfcampus/zf-apigility-admin": "^1.6",
-        "zfcampus/zf-asset-manager": "^1.2",
-        "zfcampus/zf-composer-autoloading": "^1.1.1 || ^2.1",
-        "zfcampus/zf-deploy": "^1.3"
-    },
-    "suggest": {
-        "zfcampus/zf-apigility-doctrine": "zfcampus/zf-apigility-doctrine ^2.2 to create Doctrine-Connected REST services",
-        "zfcampus/zf-http-cache": "zfcampus/zf-http-cache ^1.4 to add HTTP caching to your API",
-        "zfr/zfr-cors": "zfr/zfr-cors ^1.5 to add CORS support to your API"
-    },
-    "autoload": {
-        "psr-4": {
-            "Application\\": "module/Application/src/"
-        }
-    },
-    "autoload-dev": {
-        "psr-4": {
-            "ApplicationTest\\": "module/Application/test/"
-        },
-        "files": [
-            "src/Apigility/constants.php"
-        ]
-    },
-    "scripts": {
-        "cs-check": "phpcs",
-        "cs-fix": "phpcbf",
-        "development-disable": "zf-development-mode disable",
-        "development-enable": "zf-development-mode enable",
-        "development-status": "zf-development-mode status",
-        "post-create-project-cmd": ["@development-enable"],
-        "serve": "php -S 0.0.0.0:8080 -t public/",
-        "test": "phpunit"
-    }
-}
Index: src/webapp/apigility/composer.lock
===================================================================
--- src/webapp/apigility/composer.lock	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,4912 +1,0 @@
-{
-    "_readme": [
-        "This file locks the dependencies of your project to a known state",
-        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
-        "This file is @generated automatically"
-    ],
-    "content-hash": "54b35161cef0772a2890fe5f620c2418",
-    "packages": [
-        {
-            "name": "bshaffer/oauth2-server-php",
-            "version": "v1.10.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/bshaffer/oauth2-server-php.git",
-                "reference": "d158878425392fe5a0cc34f15dbaf46315ae0ed9"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/bshaffer/oauth2-server-php/zipball/d158878425392fe5a0cc34f15dbaf46315ae0ed9",
-                "reference": "d158878425392fe5a0cc34f15dbaf46315ae0ed9",
-                "shasum": ""
-            },
-            "require": {
-                "php": ">=5.3.9"
-            },
-            "require-dev": {
-                "aws/aws-sdk-php": "~2.8",
-                "firebase/php-jwt": "~2.2",
-                "mongodb/mongodb": "^1.1",
-                "phpunit/phpunit": "^4.0",
-                "predis/predis": "dev-master",
-                "thobbs/phpcassa": "dev-master"
-            },
-            "suggest": {
-                "aws/aws-sdk-php": "~2.8 is required to use DynamoDB storage",
-                "firebase/php-jwt": "~2.2 is required to use JWT features",
-                "mongodb/mongodb": "^1.1 is required to use MongoDB storage",
-                "predis/predis": "Required to use Redis storage",
-                "thobbs/phpcassa": "Required to use Cassandra storage"
-            },
-            "type": "library",
-            "autoload": {
-                "psr-0": {
-                    "OAuth2": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "MIT"
-            ],
-            "authors": [
-                {
-                    "name": "Brent Shaffer",
-                    "email": "bshafs@gmail.com",
-                    "homepage": "http://brentertainment.com"
-                }
-            ],
-            "description": "OAuth2 Server for PHP",
-            "homepage": "http://github.com/bshaffer/oauth2-server-php",
-            "keywords": [
-                "auth",
-                "oauth",
-                "oauth2"
-            ],
-            "time": "2017-11-15T01:41:02+00:00"
-        },
-        {
-            "name": "container-interop/container-interop",
-            "version": "1.2.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/container-interop/container-interop.git",
-                "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/container-interop/container-interop/zipball/79cbf1341c22ec75643d841642dd5d6acd83bdb8",
-                "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8",
-                "shasum": ""
-            },
-            "require": {
-                "psr/container": "^1.0"
-            },
-            "type": "library",
-            "autoload": {
-                "psr-4": {
-                    "Interop\\Container\\": "src/Interop/Container/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "MIT"
-            ],
-            "description": "Promoting the interoperability of container objects (DIC, SL, etc.)",
-            "homepage": "https://github.com/container-interop/container-interop",
-            "time": "2017-02-14T19:40:03+00:00"
-        },
-        {
-            "name": "michelf/php-markdown",
-            "version": "1.8.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/michelf/php-markdown.git",
-                "reference": "01ab082b355bf188d907b9929cd99b2923053495"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/michelf/php-markdown/zipball/01ab082b355bf188d907b9929cd99b2923053495",
-                "reference": "01ab082b355bf188d907b9929cd99b2923053495",
-                "shasum": ""
-            },
-            "require": {
-                "php": ">=5.3.0"
-            },
-            "type": "library",
-            "autoload": {
-                "psr-4": {
-                    "Michelf\\": "Michelf/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "authors": [
-                {
-                    "name": "Michel Fortin",
-                    "email": "michel.fortin@michelf.ca",
-                    "homepage": "https://michelf.ca/",
-                    "role": "Developer"
-                },
-                {
-                    "name": "John Gruber",
-                    "homepage": "https://daringfireball.net/"
-                }
-            ],
-            "description": "PHP Markdown",
-            "homepage": "https://michelf.ca/projects/php-markdown/",
-            "keywords": [
-                "markdown"
-            ],
-            "time": "2018-01-15T00:49:33+00:00"
-        },
-        {
-            "name": "paragonie/random_compat",
-            "version": "v2.0.17",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/paragonie/random_compat.git",
-                "reference": "29af24f25bab834fcbb38ad2a69fa93b867e070d"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/paragonie/random_compat/zipball/29af24f25bab834fcbb38ad2a69fa93b867e070d",
-                "reference": "29af24f25bab834fcbb38ad2a69fa93b867e070d",
-                "shasum": ""
-            },
-            "require": {
-                "php": ">=5.2.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "4.*|5.*"
-            },
-            "suggest": {
-                "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes."
-            },
-            "type": "library",
-            "autoload": {
-                "files": [
-                    "lib/random.php"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "MIT"
-            ],
-            "authors": [
-                {
-                    "name": "Paragon Initiative Enterprises",
-                    "email": "security@paragonie.com",
-                    "homepage": "https://paragonie.com"
-                }
-            ],
-            "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7",
-            "keywords": [
-                "csprng",
-                "polyfill",
-                "pseudorandom",
-                "random"
-            ],
-            "time": "2018-07-04T16:31:37+00:00"
-        },
-        {
-            "name": "psr/container",
-            "version": "1.0.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/php-fig/container.git",
-                "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
-                "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f",
-                "shasum": ""
-            },
-            "require": {
-                "php": ">=5.3.0"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.0.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Psr\\Container\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "MIT"
-            ],
-            "authors": [
-                {
-                    "name": "PHP-FIG",
-                    "homepage": "http://www.php-fig.org/"
-                }
-            ],
-            "description": "Common Container Interface (PHP FIG PSR-11)",
-            "homepage": "https://github.com/php-fig/container",
-            "keywords": [
-                "PSR-11",
-                "container",
-                "container-interface",
-                "container-interop",
-                "psr"
-            ],
-            "time": "2017-02-14T16:28:37+00:00"
-        },
-        {
-            "name": "psr/link",
-            "version": "1.0.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/php-fig/link.git",
-                "reference": "eea8e8662d5cd3ae4517c9b864493f59fca95562"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/php-fig/link/zipball/eea8e8662d5cd3ae4517c9b864493f59fca95562",
-                "reference": "eea8e8662d5cd3ae4517c9b864493f59fca95562",
-                "shasum": ""
-            },
-            "require": {
-                "php": ">=5.3.0"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.0.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Psr\\Link\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "MIT"
-            ],
-            "authors": [
-                {
-                    "name": "PHP-FIG",
-                    "homepage": "http://www.php-fig.org/"
-                }
-            ],
-            "description": "Common interfaces for HTTP links",
-            "keywords": [
-                "http",
-                "http-link",
-                "link",
-                "psr",
-                "psr-13",
-                "rest"
-            ],
-            "time": "2016-10-28T16:06:13+00:00"
-        },
-        {
-            "name": "zendframework/zend-authentication",
-            "version": "2.6.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-authentication.git",
-                "reference": "ebc9464c11a5203e5256439f1079a7d6efe89eec"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-authentication/zipball/ebc9464c11a5203e5256439f1079a7d6efe89eec",
-                "reference": "ebc9464c11a5203e5256439f1079a7d6efe89eec",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-stdlib": "^2.7.7 || ^3.1"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-crypt": "^2.6 || ^3.2.1",
-                "zendframework/zend-db": "^2.8.2",
-                "zendframework/zend-http": "^2.7",
-                "zendframework/zend-ldap": "^2.8",
-                "zendframework/zend-session": "^2.8",
-                "zendframework/zend-uri": "^2.5.2",
-                "zendframework/zend-validator": "^2.10.1"
-            },
-            "suggest": {
-                "zendframework/zend-crypt": "Zend\\Crypt component",
-                "zendframework/zend-db": "Zend\\Db component",
-                "zendframework/zend-http": "Zend\\Http component",
-                "zendframework/zend-ldap": "Zend\\Ldap component",
-                "zendframework/zend-session": "Zend\\Session component",
-                "zendframework/zend-uri": "Zend\\Uri component",
-                "zendframework/zend-validator": "Zend\\Validator component"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.6.x-dev",
-                    "dev-develop": "2.7.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Authentication\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "provides an API for authentication and includes concrete authentication adapters for common use case scenarios",
-            "keywords": [
-                "Authentication",
-                "ZendFramework",
-                "zf"
-            ],
-            "time": "2018-04-12T21:09:22+00:00"
-        },
-        {
-            "name": "zendframework/zend-component-installer",
-            "version": "1.1.1",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-component-installer.git",
-                "reference": "5e9beda3b81d29d4d080b110d67f8c8c44d93605"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-component-installer/zipball/5e9beda3b81d29d4d080b110d67f8c8c44d93605",
-                "reference": "5e9beda3b81d29d4d080b110d67f8c8c44d93605",
-                "shasum": ""
-            },
-            "require": {
-                "composer-plugin-api": "^1.0",
-                "php": "^5.6 || ^7.0"
-            },
-            "require-dev": {
-                "composer/composer": "^1.5.2",
-                "malukenho/docheader": "^0.1.6",
-                "mikey179/vfsstream": "^1.6.5",
-                "phpunit/phpunit": "^5.7.23 || ^6.4.3",
-                "zendframework/zend-coding-standard": "~1.0.0"
-            },
-            "type": "composer-plugin",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.1-dev",
-                    "dev-develop": "1.2-dev"
-                },
-                "class": "Zend\\ComponentInstaller\\ComponentInstaller"
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\ComponentInstaller\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Composer plugin for automating component registration in zend-mvc and Expressive applications",
-            "keywords": [
-                "ZendFramework",
-                "component installer",
-                "composer",
-                "plugin",
-                "zf"
-            ],
-            "time": "2018-01-11T15:03:06+00:00"
-        },
-        {
-            "name": "zendframework/zend-config",
-            "version": "3.2.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-config.git",
-                "reference": "6796f5dcba52c84ef2501d7313618989b5ef3023"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-config/zipball/6796f5dcba52c84ef2501d7313618989b5ef3023",
-                "reference": "6796f5dcba52c84ef2501d7313618989b5ef3023",
-                "shasum": ""
-            },
-            "require": {
-                "ext-json": "*",
-                "php": "^5.6 || ^7.0",
-                "psr/container": "^1.0",
-                "zendframework/zend-stdlib": "^2.7.7 || ^3.1"
-            },
-            "conflict": {
-                "container-interop/container-interop": "<1.2.0"
-            },
-            "require-dev": {
-                "malukenho/docheader": "^0.1.6",
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-filter": "^2.7.2",
-                "zendframework/zend-i18n": "^2.7.4",
-                "zendframework/zend-servicemanager": "^2.7.8 || ^3.3"
-            },
-            "suggest": {
-                "zendframework/zend-filter": "^2.7.2; install if you want to use the Filter processor",
-                "zendframework/zend-i18n": "^2.7.4; install if you want to use the Translator processor",
-                "zendframework/zend-servicemanager": "^2.7.8 || ^3.3; if you need an extensible plugin manager for use with the Config Factory"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "3.2.x-dev",
-                    "dev-develop": "3.3.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Config\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "provides a nested object property based user interface for accessing this configuration data within application code",
-            "keywords": [
-                "ZendFramework",
-                "config",
-                "zf"
-            ],
-            "time": "2018-04-24T19:26:44+00:00"
-        },
-        {
-            "name": "zendframework/zend-crypt",
-            "version": "3.3.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-crypt.git",
-                "reference": "9c2916faa9b2132a0f91cdca8e95b025c352f065"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-crypt/zipball/9c2916faa9b2132a0f91cdca8e95b025c352f065",
-                "reference": "9c2916faa9b2132a0f91cdca8e95b025c352f065",
-                "shasum": ""
-            },
-            "require": {
-                "container-interop/container-interop": "^1.2",
-                "ext-mbstring": "*",
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-math": "^3.0",
-                "zendframework/zend-stdlib": "^2.7.7 || ^3.1"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2",
-                "zendframework/zend-coding-standard": "~1.0.0"
-            },
-            "suggest": {
-                "ext-openssl": "Required for most features of Zend\\Crypt"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "3.3.x-dev",
-                    "dev-develop": "3.4.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Crypt\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Strong cryptography tools and password hashing",
-            "keywords": [
-                "ZendFramework",
-                "crypt",
-                "zf"
-            ],
-            "time": "2018-04-24T22:01:58+00:00"
-        },
-        {
-            "name": "zendframework/zend-db",
-            "version": "2.9.3",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-db.git",
-                "reference": "5b4f2c42f94c9f7f4b2f456a0ebe459fab12b3d9"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-db/zipball/5b4f2c42f94c9f7f4b2f456a0ebe459fab12b3d9",
-                "reference": "5b4f2c42f94c9f7f4b2f456a0ebe459fab12b3d9",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-stdlib": "^2.7 || ^3.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.25 || ^6.4.4",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-eventmanager": "^2.6.2 || ^3.0",
-                "zendframework/zend-hydrator": "^1.1 || ^2.1",
-                "zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3"
-            },
-            "suggest": {
-                "zendframework/zend-eventmanager": "Zend\\EventManager component",
-                "zendframework/zend-hydrator": "Zend\\Hydrator component for using HydratingResultSets",
-                "zendframework/zend-servicemanager": "Zend\\ServiceManager component"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.9-dev",
-                    "dev-develop": "2.10-dev"
-                },
-                "zf": {
-                    "component": "Zend\\Db",
-                    "config-provider": "Zend\\Db\\ConfigProvider"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Db\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Database abstraction layer, SQL abstraction, result set abstraction, and RowDataGateway and TableDataGateway implementations",
-            "keywords": [
-                "ZendFramework",
-                "db",
-                "zf"
-            ],
-            "time": "2018-04-09T13:21:36+00:00"
-        },
-        {
-            "name": "zendframework/zend-escaper",
-            "version": "2.6.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-escaper.git",
-                "reference": "31d8aafae982f9568287cb4dce987e6aff8fd074"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-escaper/zipball/31d8aafae982f9568287cb4dce987e6aff8fd074",
-                "reference": "31d8aafae982f9568287cb4dce987e6aff8fd074",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2",
-                "zendframework/zend-coding-standard": "~1.0.0"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.6.x-dev",
-                    "dev-develop": "2.7.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Escaper\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Securely and safely escape HTML, HTML attributes, JavaScript, CSS, and URLs",
-            "keywords": [
-                "ZendFramework",
-                "escaper",
-                "zf"
-            ],
-            "time": "2018-04-25T15:48:53+00:00"
-        },
-        {
-            "name": "zendframework/zend-eventmanager",
-            "version": "3.2.1",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-eventmanager.git",
-                "reference": "a5e2583a211f73604691586b8406ff7296a946dd"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-eventmanager/zipball/a5e2583a211f73604691586b8406ff7296a946dd",
-                "reference": "a5e2583a211f73604691586b8406ff7296a946dd",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0"
-            },
-            "require-dev": {
-                "athletic/athletic": "^0.1",
-                "container-interop/container-interop": "^1.1.0",
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-stdlib": "^2.7.3 || ^3.0"
-            },
-            "suggest": {
-                "container-interop/container-interop": "^1.1.0, to use the lazy listeners feature",
-                "zendframework/zend-stdlib": "^2.7.3 || ^3.0, to use the FilterChain feature"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "3.2-dev",
-                    "dev-develop": "3.3-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\EventManager\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Trigger and listen to events within a PHP application",
-            "homepage": "https://github.com/zendframework/zend-eventmanager",
-            "keywords": [
-                "event",
-                "eventmanager",
-                "events",
-                "zf2"
-            ],
-            "time": "2018-04-25T15:33:34+00:00"
-        },
-        {
-            "name": "zendframework/zend-filter",
-            "version": "2.8.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-filter.git",
-                "reference": "7b997dbe79459f1652deccc8786d7407fb66caa9"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-filter/zipball/7b997dbe79459f1652deccc8786d7407fb66caa9",
-                "reference": "7b997dbe79459f1652deccc8786d7407fb66caa9",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-stdlib": "^2.7.7 || ^3.1"
-            },
-            "conflict": {
-                "zendframework/zend-validator": "<2.10.1"
-            },
-            "require-dev": {
-                "pear/archive_tar": "^1.4.3",
-                "phpunit/phpunit": "^5.7.23 || ^6.4.3",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-crypt": "^3.2.1",
-                "zendframework/zend-servicemanager": "^2.7.8 || ^3.3",
-                "zendframework/zend-uri": "^2.6"
-            },
-            "suggest": {
-                "zendframework/zend-crypt": "Zend\\Crypt component, for encryption filters",
-                "zendframework/zend-i18n": "Zend\\I18n component for filters depending on i18n functionality",
-                "zendframework/zend-servicemanager": "Zend\\ServiceManager component, for using the filter chain functionality",
-                "zendframework/zend-uri": "Zend\\Uri component, for the UriNormalize filter"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.8.x-dev",
-                    "dev-develop": "2.9.x-dev"
-                },
-                "zf": {
-                    "component": "Zend\\Filter",
-                    "config-provider": "Zend\\Filter\\ConfigProvider"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Filter\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "provides a set of commonly needed data filters",
-            "keywords": [
-                "ZendFramework",
-                "filter",
-                "zf"
-            ],
-            "time": "2018-04-11T16:20:04+00:00"
-        },
-        {
-            "name": "zendframework/zend-http",
-            "version": "2.8.2",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-http.git",
-                "reference": "2c8aed3d25522618573194e7cc51351f8cd4a45b"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-http/zipball/2c8aed3d25522618573194e7cc51351f8cd4a45b",
-                "reference": "2c8aed3d25522618573194e7cc51351f8cd4a45b",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-loader": "^2.5.1",
-                "zendframework/zend-stdlib": "^3.1 || ^2.7.7",
-                "zendframework/zend-uri": "^2.5.2",
-                "zendframework/zend-validator": "^2.10.1"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.3",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-config": "^3.1 || ^2.6"
-            },
-            "suggest": {
-                "paragonie/certainty": "For automated management of cacert.pem"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.8.x-dev",
-                    "dev-develop": "2.9.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Http\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Provides an easy interface for performing Hyper-Text Transfer Protocol (HTTP) requests",
-            "keywords": [
-                "ZendFramework",
-                "http",
-                "http client",
-                "zend",
-                "zf"
-            ],
-            "time": "2018-08-13T18:47:03+00:00"
-        },
-        {
-            "name": "zendframework/zend-hydrator",
-            "version": "2.4.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-hydrator.git",
-                "reference": "bd48bc3bc046df007a94125f868dd1aa1b73a813"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-hydrator/zipball/bd48bc3bc046df007a94125f868dd1aa1b73a813",
-                "reference": "bd48bc3bc046df007a94125f868dd1aa1b73a813",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-stdlib": "^3.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-eventmanager": "^2.6.2 || ^3.0",
-                "zendframework/zend-filter": "^2.6",
-                "zendframework/zend-inputfilter": "^2.6",
-                "zendframework/zend-serializer": "^2.6.1",
-                "zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3"
-            },
-            "suggest": {
-                "zendframework/zend-eventmanager": "^2.6.2 || ^3.0, to support aggregate hydrator usage",
-                "zendframework/zend-filter": "^2.6, to support naming strategy hydrator usage",
-                "zendframework/zend-serializer": "^2.6.1, to use the SerializableStrategy",
-                "zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3, to support hydrator plugin manager usage"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-release-1.0": "1.0.x-dev",
-                    "dev-release-1.1": "1.1.x-dev",
-                    "dev-master": "2.4.x-dev",
-                    "dev-develop": "2.5.x-dev"
-                },
-                "zf": {
-                    "component": "Zend\\Hydrator",
-                    "config-provider": "Zend\\Hydrator\\ConfigProvider"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Hydrator\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Serialize objects to arrays, and vice versa",
-            "keywords": [
-                "ZendFramework",
-                "hydrator",
-                "zf"
-            ],
-            "time": "2018-04-30T21:22:14+00:00"
-        },
-        {
-            "name": "zendframework/zend-inputfilter",
-            "version": "2.8.2",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-inputfilter.git",
-                "reference": "3f02179e014d9ef0faccda2ad6c65d38adc338d8"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-inputfilter/zipball/3f02179e014d9ef0faccda2ad6c65d38adc338d8",
-                "reference": "3f02179e014d9ef0faccda2ad6c65d38adc338d8",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-filter": "^2.6",
-                "zendframework/zend-servicemanager": "^2.7.10 || ^3.3.1",
-                "zendframework/zend-stdlib": "^2.7 || ^3.0",
-                "zendframework/zend-validator": "^2.10.1"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.23 || ^6.4.3",
-                "zendframework/zend-coding-standard": "~1.0.0"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.8.x-dev",
-                    "dev-develop": "2.9.x-dev"
-                },
-                "zf": {
-                    "component": "Zend\\InputFilter",
-                    "config-provider": "Zend\\InputFilter\\ConfigProvider"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\InputFilter\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Normalize and validate input sets from the web, APIs, the CLI, and more, including files",
-            "keywords": [
-                "ZendFramework",
-                "inputfilter",
-                "zf"
-            ],
-            "time": "2018-05-14T17:38:03+00:00"
-        },
-        {
-            "name": "zendframework/zend-json",
-            "version": "3.1.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-json.git",
-                "reference": "4dd940e8e6f32f1d36ea6b0677ea57c540c7c19c"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-json/zipball/4dd940e8e6f32f1d36ea6b0677ea57c540c7c19c",
-                "reference": "4dd940e8e6f32f1d36ea6b0677ea57c540c7c19c",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.23 || ^6.4.3",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-stdlib": "^2.7.7 || ^3.1"
-            },
-            "suggest": {
-                "zendframework/zend-json-server": "For implementing JSON-RPC servers",
-                "zendframework/zend-xml2json": "For converting XML documents to JSON"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "3.1.x-dev",
-                    "dev-develop": "3.2.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Json\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "provides convenience methods for serializing native PHP to JSON and decoding JSON to native PHP",
-            "keywords": [
-                "ZendFramework",
-                "json",
-                "zf"
-            ],
-            "time": "2018-01-04T17:51:34+00:00"
-        },
-        {
-            "name": "zendframework/zend-loader",
-            "version": "2.6.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-loader.git",
-                "reference": "78f11749ea340f6ca316bca5958eef80b38f9b6c"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-loader/zipball/78f11749ea340f6ca316bca5958eef80b38f9b6c",
-                "reference": "78f11749ea340f6ca316bca5958eef80b38f9b6c",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.4",
-                "zendframework/zend-coding-standard": "~1.0.0"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.6.x-dev",
-                    "dev-develop": "2.7.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Loader\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Autoloading and plugin loading strategies",
-            "keywords": [
-                "ZendFramework",
-                "loader",
-                "zf"
-            ],
-            "time": "2018-04-30T15:20:54+00:00"
-        },
-        {
-            "name": "zendframework/zend-math",
-            "version": "3.1.1",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-math.git",
-                "reference": "0aa5ec1b3132dd7d749d4673d7bdc7ab6b2d202a"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-math/zipball/0aa5ec1b3132dd7d749d4673d7bdc7ab6b2d202a",
-                "reference": "0aa5ec1b3132dd7d749d4673d7bdc7ab6b2d202a",
-                "shasum": ""
-            },
-            "require": {
-                "ext-mbstring": "*",
-                "paragonie/random_compat": "^2.0.11",
-                "php": "^5.6 || ^7.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2",
-                "zendframework/zend-coding-standard": "~1.0.0"
-            },
-            "suggest": {
-                "ext-bcmath": "If using the bcmath functionality",
-                "ext-gmp": "If using the gmp functionality"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "3.1.x-dev",
-                    "dev-develop": "3.2.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Math\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Create cryptographically secure pseudo-random numbers, and manage big integers",
-            "keywords": [
-                "ZendFramework",
-                "math",
-                "zf"
-            ],
-            "time": "2018-07-10T19:00:33+00:00"
-        },
-        {
-            "name": "zendframework/zend-modulemanager",
-            "version": "2.8.2",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-modulemanager.git",
-                "reference": "394df6e12248ac430a312d4693f793ee7120baa6"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-modulemanager/zipball/394df6e12248ac430a312d4693f793ee7120baa6",
-                "reference": "394df6e12248ac430a312d4693f793ee7120baa6",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-config": "^3.1 || ^2.6",
-                "zendframework/zend-eventmanager": "^3.2 || ^2.6.3",
-                "zendframework/zend-stdlib": "^3.1 || ^2.7"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^6.0.8 || ^5.7.15",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-console": "^2.6",
-                "zendframework/zend-di": "^2.6",
-                "zendframework/zend-loader": "^2.5",
-                "zendframework/zend-mvc": "^3.0 || ^2.7",
-                "zendframework/zend-servicemanager": "^3.0.3 || ^2.7.5"
-            },
-            "suggest": {
-                "zendframework/zend-console": "Zend\\Console component",
-                "zendframework/zend-loader": "Zend\\Loader component if you are not using Composer autoloading for your modules",
-                "zendframework/zend-mvc": "Zend\\Mvc component",
-                "zendframework/zend-servicemanager": "Zend\\ServiceManager component"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.7-dev",
-                    "dev-develop": "2.8-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\ModuleManager\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Modular application system for zend-mvc applications",
-            "homepage": "https://github.com/zendframework/zend-modulemanager",
-            "keywords": [
-                "ZendFramework",
-                "modulemanager",
-                "zf"
-            ],
-            "time": "2017-12-02T06:11:18+00:00"
-        },
-        {
-            "name": "zendframework/zend-mvc",
-            "version": "3.1.1",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-mvc.git",
-                "reference": "236e7e1e3757e988fa06530c0a3f96a148858ae8"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-mvc/zipball/236e7e1e3757e988fa06530c0a3f96a148858ae8",
-                "reference": "236e7e1e3757e988fa06530c0a3f96a148858ae8",
-                "shasum": ""
-            },
-            "require": {
-                "container-interop/container-interop": "^1.2",
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-eventmanager": "^3.2",
-                "zendframework/zend-http": "^2.7",
-                "zendframework/zend-modulemanager": "^2.8",
-                "zendframework/zend-router": "^3.0.2",
-                "zendframework/zend-servicemanager": "^3.3",
-                "zendframework/zend-stdlib": "^3.1",
-                "zendframework/zend-view": "^2.9"
-            },
-            "require-dev": {
-                "http-interop/http-middleware": "^0.4.1",
-                "phpunit/phpunit": "^6.4.4 || ^5.7.14",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-json": "^2.6.1 || ^3.0",
-                "zendframework/zend-psr7bridge": "^1.0",
-                "zendframework/zend-stratigility": "^2.0.1"
-            },
-            "suggest": {
-                "http-interop/http-middleware": "^0.4.1 to be used together with zend-stratigility",
-                "zendframework/zend-json": "(^2.6.1 || ^3.0) To auto-deserialize JSON body content in AbstractRestfulController extensions, when json_decode is unavailable",
-                "zendframework/zend-log": "^2.9.1  To provide log functionality via LogFilterManager, LogFormatterManager, and LogProcessorManager",
-                "zendframework/zend-mvc-console": "zend-mvc-console provides the ability to expose zend-mvc as a console application",
-                "zendframework/zend-mvc-i18n": "zend-mvc-i18n provides integration with zend-i18n, including a translation bridge and translatable route segments",
-                "zendframework/zend-mvc-plugin-fileprg": "To provide Post/Redirect/Get functionality around forms that container file uploads",
-                "zendframework/zend-mvc-plugin-flashmessenger": "To provide flash messaging capabilities between requests",
-                "zendframework/zend-mvc-plugin-identity": "To access the authenticated identity (per zend-authentication) in controllers",
-                "zendframework/zend-mvc-plugin-prg": "To provide Post/Redirect/Get functionality within controllers",
-                "zendframework/zend-paginator": "^2.7 To provide pagination functionality via PaginatorPluginManager",
-                "zendframework/zend-psr7bridge": "(^0.2) To consume PSR-7 middleware within the MVC workflow",
-                "zendframework/zend-servicemanager-di": "zend-servicemanager-di provides utilities for integrating zend-di and zend-servicemanager in your zend-mvc application",
-                "zendframework/zend-stratigility": "zend-stratigility is required to use middleware pipes in the MiddlewareListener"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "3.1-dev",
-                    "dev-develop": "3.2-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Mvc\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Zend Framework's event-driven MVC layer, including MVC Applications, Controllers, and Plugins",
-            "keywords": [
-                "ZendFramework",
-                "mvc",
-                "zf"
-            ],
-            "time": "2017-11-24T06:32:07+00:00"
-        },
-        {
-            "name": "zendframework/zend-paginator",
-            "version": "2.8.1",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-paginator.git",
-                "reference": "fd58828c8280a90f133b9e0af2fe1a7885d47206"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-paginator/zipball/fd58828c8280a90f133b9e0af2fe1a7885d47206",
-                "reference": "fd58828c8280a90f133b9e0af2fe1a7885d47206",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^7.0 || ^5.6",
-                "zendframework/zend-stdlib": "^2.7 || ^3.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^6.2.1 || ^5.7.15",
-                "zendframework/zend-cache": "^2.6.1",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-config": "^2.6.0",
-                "zendframework/zend-db": "^2.9.2",
-                "zendframework/zend-filter": "^2.6.1",
-                "zendframework/zend-json": "^2.6.1",
-                "zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3",
-                "zendframework/zend-view": "^2.6.3"
-            },
-            "suggest": {
-                "zendframework/zend-cache": "Zend\\Cache component to support cache features",
-                "zendframework/zend-db": "Zend\\Db component",
-                "zendframework/zend-filter": "Zend\\Filter component",
-                "zendframework/zend-json": "Zend\\Json component",
-                "zendframework/zend-servicemanager": "Zend\\ServiceManager component",
-                "zendframework/zend-view": "Zend\\View component"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.8-dev",
-                    "dev-develop": "2.9-dev"
-                },
-                "zf": {
-                    "component": "Zend\\Paginator",
-                    "config-provider": "Zend\\Paginator\\ConfigProvider"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Paginator\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "zend-paginator is a flexible component for paginating collections of data and presenting that data to users.",
-            "homepage": "https://github.com/zendframework/zend-paginator",
-            "keywords": [
-                "paginator",
-                "zf2"
-            ],
-            "time": "2018-01-30T15:52:44+00:00"
-        },
-        {
-            "name": "zendframework/zend-permissions-acl",
-            "version": "2.7.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-permissions-acl.git",
-                "reference": "c9568f4aee2887e43bf07769973f9686e8f61707"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-permissions-acl/zipball/c9568f4aee2887e43bf07769973f9686e8f61707",
-                "reference": "c9568f4aee2887e43bf07769973f9686e8f61707",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.5",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3"
-            },
-            "suggest": {
-                "zendframework/zend-servicemanager": "To support Zend\\Permissions\\Acl\\Assertion\\AssertionManager plugin manager usage"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.7.x-dev",
-                    "dev-develop": "2.8.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Permissions\\Acl\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Provides a lightweight and flexible access control list (ACL) implementation for privileges management",
-            "keywords": [
-                "ZendFramework",
-                "acl",
-                "zf"
-            ],
-            "time": "2018-05-01T21:53:20+00:00"
-        },
-        {
-            "name": "zendframework/zend-permissions-rbac",
-            "version": "2.6.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-permissions-rbac.git",
-                "reference": "c10ad55e50f402bf14eb2eb9bc424dd9a44dfc78"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-permissions-rbac/zipball/c10ad55e50f402bf14eb2eb9bc424dd9a44dfc78",
-                "reference": "c10ad55e50f402bf14eb2eb9bc424dd9a44dfc78",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.15|| ^6.2.1",
-                "zendframework/zend-coding-standard": "~1.0.0"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.6-dev",
-                    "dev-develop": "2.7-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Permissions\\Rbac\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "provides a role-based access control management",
-            "homepage": "https://github.com/zendframework/zend-permissions-rbac",
-            "keywords": [
-                "rbac",
-                "zf2"
-            ],
-            "time": "2018-02-01T09:55:50+00:00"
-        },
-        {
-            "name": "zendframework/zend-router",
-            "version": "3.2.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-router.git",
-                "reference": "a80a7427afb8f736b9aeeb341a78dae855849291"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-router/zipball/a80a7427afb8f736b9aeeb341a78dae855849291",
-                "reference": "a80a7427afb8f736b9aeeb341a78dae855849291",
-                "shasum": ""
-            },
-            "require": {
-                "container-interop/container-interop": "^1.2",
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-http": "^2.8.1",
-                "zendframework/zend-servicemanager": "^2.7.8 || ^3.3",
-                "zendframework/zend-stdlib": "^2.7.7 || ^3.1"
-            },
-            "conflict": {
-                "zendframework/zend-mvc": "<3.0.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.22 || ^6.4.1",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-i18n": "^2.7.4"
-            },
-            "suggest": {
-                "zendframework/zend-i18n": "^2.7.4, if defining translatable HTTP path segments"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "3.2.x-dev",
-                    "dev-develop": "3.3.x-dev"
-                },
-                "zf": {
-                    "component": "Zend\\Router",
-                    "config-provider": "Zend\\Router\\ConfigProvider"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Router\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Flexible routing system for HTTP and console applications",
-            "keywords": [
-                "ZendFramework",
-                "mvc",
-                "routing",
-                "zend",
-                "zf"
-            ],
-            "time": "2018-08-01T22:24:35+00:00"
-        },
-        {
-            "name": "zendframework/zend-servicemanager",
-            "version": "3.3.2",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-servicemanager.git",
-                "reference": "9f35a104b8d4d3b32da5f4a3b6efc0dd62e5af42"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-servicemanager/zipball/9f35a104b8d4d3b32da5f4a3b6efc0dd62e5af42",
-                "reference": "9f35a104b8d4d3b32da5f4a3b6efc0dd62e5af42",
-                "shasum": ""
-            },
-            "require": {
-                "container-interop/container-interop": "^1.2",
-                "php": "^5.6 || ^7.0",
-                "psr/container": "^1.0",
-                "zendframework/zend-stdlib": "^3.1"
-            },
-            "provide": {
-                "container-interop/container-interop-implementation": "^1.2",
-                "psr/container-implementation": "^1.0"
-            },
-            "require-dev": {
-                "mikey179/vfsstream": "^1.6.5",
-                "ocramius/proxy-manager": "^1.0 || ^2.0",
-                "phpbench/phpbench": "^0.13.0",
-                "phpunit/phpunit": "^5.7.25 || ^6.4.4",
-                "zendframework/zend-coding-standard": "~1.0.0"
-            },
-            "suggest": {
-                "ocramius/proxy-manager": "ProxyManager 1.* to handle lazy initialization of services",
-                "zendframework/zend-stdlib": "zend-stdlib ^2.5 if you wish to use the MergeReplaceKey or MergeRemoveKey features in Config instances"
-            },
-            "bin": [
-                "bin/generate-deps-for-config-factory",
-                "bin/generate-factory-for-class"
-            ],
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "3.3-dev",
-                    "dev-develop": "4.0-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\ServiceManager\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Factory-Driven Dependency Injection Container",
-            "keywords": [
-                "PSR-11",
-                "ZendFramework",
-                "dependency-injection",
-                "di",
-                "dic",
-                "service-manager",
-                "servicemanager",
-                "zf"
-            ],
-            "time": "2018-01-29T16:48:37+00:00"
-        },
-        {
-            "name": "zendframework/zend-stdlib",
-            "version": "3.2.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-stdlib.git",
-                "reference": "cd164b4a18b5d1aeb69be2c26db035b5ed6925ae"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-stdlib/zipball/cd164b4a18b5d1aeb69be2c26db035b5ed6925ae",
-                "reference": "cd164b4a18b5d1aeb69be2c26db035b5ed6925ae",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0"
-            },
-            "require-dev": {
-                "phpbench/phpbench": "^0.13",
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2",
-                "zendframework/zend-coding-standard": "~1.0.0"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "3.2.x-dev",
-                    "dev-develop": "3.3.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Stdlib\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "SPL extensions, array utilities, error handlers, and more",
-            "keywords": [
-                "ZendFramework",
-                "stdlib",
-                "zf"
-            ],
-            "time": "2018-04-30T13:50:40+00:00"
-        },
-        {
-            "name": "zendframework/zend-uri",
-            "version": "2.6.1",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-uri.git",
-                "reference": "3b6463645c6766f78ce537c70cb4fdabee1e725f"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-uri/zipball/3b6463645c6766f78ce537c70cb4fdabee1e725f",
-                "reference": "3b6463645c6766f78ce537c70cb4fdabee1e725f",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-escaper": "^2.5",
-                "zendframework/zend-validator": "^2.10"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.4",
-                "zendframework/zend-coding-standard": "~1.0.0"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.6.x-dev",
-                    "dev-develop": "2.7.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Uri\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "A component that aids in manipulating and validating » Uniform Resource Identifiers (URIs)",
-            "keywords": [
-                "ZendFramework",
-                "uri",
-                "zf"
-            ],
-            "time": "2018-04-30T13:40:08+00:00"
-        },
-        {
-            "name": "zendframework/zend-validator",
-            "version": "2.10.2",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-validator.git",
-                "reference": "38109ed7d8e46cfa71bccbe7e6ca80cdd035f8c9"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-validator/zipball/38109ed7d8e46cfa71bccbe7e6ca80cdd035f8c9",
-                "reference": "38109ed7d8e46cfa71bccbe7e6ca80cdd035f8c9",
-                "shasum": ""
-            },
-            "require": {
-                "container-interop/container-interop": "^1.1",
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-stdlib": "^2.7.6 || ^3.1"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^6.0.8 || ^5.7.15",
-                "zendframework/zend-cache": "^2.6.1",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-config": "^2.6",
-                "zendframework/zend-db": "^2.7",
-                "zendframework/zend-filter": "^2.6",
-                "zendframework/zend-http": "^2.5.4",
-                "zendframework/zend-i18n": "^2.6",
-                "zendframework/zend-math": "^2.6",
-                "zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3",
-                "zendframework/zend-session": "^2.8",
-                "zendframework/zend-uri": "^2.5"
-            },
-            "suggest": {
-                "zendframework/zend-db": "Zend\\Db component, required by the (No)RecordExists validator",
-                "zendframework/zend-filter": "Zend\\Filter component, required by the Digits validator",
-                "zendframework/zend-i18n": "Zend\\I18n component to allow translation of validation error messages",
-                "zendframework/zend-i18n-resources": "Translations of validator messages",
-                "zendframework/zend-math": "Zend\\Math component, required by the Csrf validator",
-                "zendframework/zend-servicemanager": "Zend\\ServiceManager component to allow using the ValidatorPluginManager and validator chains",
-                "zendframework/zend-session": "Zend\\Session component, ^2.8; required by the Csrf validator",
-                "zendframework/zend-uri": "Zend\\Uri component, required by the Uri and Sitemap\\Loc validators"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.10.x-dev",
-                    "dev-develop": "2.11.x-dev"
-                },
-                "zf": {
-                    "component": "Zend\\Validator",
-                    "config-provider": "Zend\\Validator\\ConfigProvider"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Validator\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "provides a set of commonly needed validators",
-            "homepage": "https://github.com/zendframework/zend-validator",
-            "keywords": [
-                "validator",
-                "zf2"
-            ],
-            "time": "2018-02-01T17:05:33+00:00"
-        },
-        {
-            "name": "zendframework/zend-view",
-            "version": "2.10.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-view.git",
-                "reference": "4478cc5dd960e2339d88b363ef99fa278700e80e"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-view/zipball/4478cc5dd960e2339d88b363ef99fa278700e80e",
-                "reference": "4478cc5dd960e2339d88b363ef99fa278700e80e",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-eventmanager": "^2.6.2 || ^3.0",
-                "zendframework/zend-loader": "^2.5",
-                "zendframework/zend-stdlib": "^2.7 || ^3.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.15 || ^6.0.8",
-                "zendframework/zend-authentication": "^2.5",
-                "zendframework/zend-cache": "^2.6.1",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-config": "^2.6",
-                "zendframework/zend-console": "^2.6",
-                "zendframework/zend-escaper": "^2.5",
-                "zendframework/zend-feed": "^2.7",
-                "zendframework/zend-filter": "^2.6.1",
-                "zendframework/zend-http": "^2.5.4",
-                "zendframework/zend-i18n": "^2.6",
-                "zendframework/zend-json": "^2.6.1",
-                "zendframework/zend-log": "^2.7",
-                "zendframework/zend-modulemanager": "^2.7.1",
-                "zendframework/zend-mvc": "^2.7 || ^3.0",
-                "zendframework/zend-navigation": "^2.5",
-                "zendframework/zend-paginator": "^2.5",
-                "zendframework/zend-permissions-acl": "^2.6",
-                "zendframework/zend-router": "^3.0.1",
-                "zendframework/zend-serializer": "^2.6.1",
-                "zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3",
-                "zendframework/zend-session": "^2.8.1",
-                "zendframework/zend-uri": "^2.5"
-            },
-            "suggest": {
-                "zendframework/zend-authentication": "Zend\\Authentication component",
-                "zendframework/zend-escaper": "Zend\\Escaper component",
-                "zendframework/zend-feed": "Zend\\Feed component",
-                "zendframework/zend-filter": "Zend\\Filter component",
-                "zendframework/zend-http": "Zend\\Http component",
-                "zendframework/zend-i18n": "Zend\\I18n component",
-                "zendframework/zend-json": "Zend\\Json component",
-                "zendframework/zend-mvc": "Zend\\Mvc component",
-                "zendframework/zend-navigation": "Zend\\Navigation component",
-                "zendframework/zend-paginator": "Zend\\Paginator component",
-                "zendframework/zend-permissions-acl": "Zend\\Permissions\\Acl component",
-                "zendframework/zend-servicemanager": "Zend\\ServiceManager component",
-                "zendframework/zend-uri": "Zend\\Uri component"
-            },
-            "bin": [
-                "bin/templatemap_generator.php"
-            ],
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.10.x-dev",
-                    "dev-develop": "2.11.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\View\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "provides a system of helpers, output filters, and variable escaping",
-            "homepage": "https://github.com/zendframework/zend-view",
-            "keywords": [
-                "view",
-                "zf2"
-            ],
-            "time": "2018-01-17T22:21:50+00:00"
-        },
-        {
-            "name": "zfcampus/zf-api-problem",
-            "version": "1.3.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zfcampus/zf-api-problem.git",
-                "reference": "4f8ce00a3971cdfbea65e83b64f0774424b54ffb"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zfcampus/zf-api-problem/zipball/4f8ce00a3971cdfbea65e83b64f0774424b54ffb",
-                "reference": "4f8ce00a3971cdfbea65e83b64f0774424b54ffb",
-                "shasum": ""
-            },
-            "require": {
-                "ext-json": "*",
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-eventmanager": "^2.6.3 || ^3.0.1",
-                "zendframework/zend-http": "^2.5.4",
-                "zendframework/zend-json": "^2.6.1 || ^3.0",
-                "zendframework/zend-mvc": "^2.7.15 || ^3.0.4",
-                "zendframework/zend-view": "^2.8.1"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.5",
-                "zendframework/zend-coding-standard": "~1.0.0"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.3.x-dev",
-                    "dev-develop": "1.4.x-dev"
-                },
-                "zf": {
-                    "module": "ZF\\ApiProblem"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "ZF\\ApiProblem\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "ZF2 Module providing API-Problem assets and rendering",
-            "keywords": [
-                "ZendFramework",
-                "api-problem",
-                "module",
-                "rest",
-                "zf"
-            ],
-            "time": "2018-05-08T13:57:58+00:00"
-        },
-        {
-            "name": "zfcampus/zf-apigility",
-            "version": "1.4.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zfcampus/zf-apigility.git",
-                "reference": "fab14830f60269cd66d51b07f4f5d4ef12dd49bd"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zfcampus/zf-apigility/zipball/fab14830f60269cd66d51b07f4f5d4ef12dd49bd",
-                "reference": "fab14830f60269cd66d51b07f4f5d4ef12dd49bd",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-db": "^2.8.1",
-                "zendframework/zend-eventmanager": "^2.6.3 || ^3.0.1",
-                "zendframework/zend-loader": "^2.5.1",
-                "zendframework/zend-mvc": "^2.7.9 || ^3.0.2",
-                "zendframework/zend-paginator": "^2.7",
-                "zendframework/zend-servicemanager": "^2.7.6 || ^3.1.1",
-                "zendframework/zend-stdlib": "^2.7.7 || ^3.0.1",
-                "zfcampus/zf-api-problem": "^1.2.1",
-                "zfcampus/zf-apigility-provider": "^1.2",
-                "zfcampus/zf-content-negotiation": "^1.2.2",
-                "zfcampus/zf-content-validation": "^1.3.3",
-                "zfcampus/zf-hal": "^1.4.1",
-                "zfcampus/zf-mvc-auth": "^1.4.1",
-                "zfcampus/zf-oauth2": "^1.4",
-                "zfcampus/zf-rest": "^1.3.1",
-                "zfcampus/zf-rpc": "^1.3",
-                "zfcampus/zf-versioning": "^1.2"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.5",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-http": "^2.5.4"
-            },
-            "suggest": {
-                "alcaeus/mongo-php-adapter": "^1.0.5, if you are using ext/mongodb and wish to use the MongoConnectedListener.",
-                "rwoverdijk/assetmanager": "^1.7, to install the assets used by zf-apigility-welcome and/or zf-apigility-admin-ui (may not yet be released)",
-                "zfcampus/zf-asset-manager": "^1.0, to install the assets used by zf-apigility-welcome and/or zf-apigility-admin-ui, until rwoverdijk/assetmanager 1.7 is released"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.4.x-dev",
-                    "dev-develop": "1.5.x-dev"
-                },
-                "zf": {
-                    "module": "ZF\\Apigility"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "ZF\\Apigility\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Apigility module for Zend Framework",
-            "keywords": [
-                "ZendFramework",
-                "api",
-                "apigility",
-                "framework",
-                "zf"
-            ],
-            "time": "2018-05-03T16:54:11+00:00"
-        },
-        {
-            "name": "zfcampus/zf-apigility-documentation",
-            "version": "1.3.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zfcampus/zf-apigility-documentation.git",
-                "reference": "e51b3ae205cfd3b63741dfc535655e6dd36809d5"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zfcampus/zf-apigility-documentation/zipball/e51b3ae205cfd3b63741dfc535655e6dd36809d5",
-                "reference": "e51b3ae205cfd3b63741dfc535655e6dd36809d5",
-                "shasum": ""
-            },
-            "require": {
-                "michelf/php-markdown": "^1.5",
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-inputfilter": "^2.7.2",
-                "zendframework/zend-modulemanager": "^2.7.2",
-                "zendframework/zend-mvc": "^2.7.15 || ^3.0.4",
-                "zendframework/zend-servicemanager": "^2.7.6 || ^3.1",
-                "zendframework/zend-view": "^2.8.1",
-                "zfcampus/zf-apigility-provider": "^1.2",
-                "zfcampus/zf-configuration": "^1.2",
-                "zfcampus/zf-content-negotiation": "^1.2.1"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.5",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-stdlib": "^2.7.7 || ^3.0.1"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.3.x-dev",
-                    "dev-develop": "1.4.x-dev"
-                },
-                "zf": {
-                    "module": "ZF\\Apigility\\Documentation"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "ZF\\Apigility\\Documentation\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Apigility API documentation module",
-            "keywords": [
-                "ZendFramework",
-                "apigiltiy",
-                "documentation",
-                "module",
-                "zf"
-            ],
-            "time": "2018-05-07T14:44:41+00:00"
-        },
-        {
-            "name": "zfcampus/zf-apigility-provider",
-            "version": "1.3.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zfcampus/zf-apigility-provider.git",
-                "reference": "804a03636e97e611bd0d57bec02f539b9fbe2142"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zfcampus/zf-apigility-provider/zipball/804a03636e97e611bd0d57bec02f539b9fbe2142",
-                "reference": "804a03636e97e611bd0d57bec02f539b9fbe2142",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0"
-            },
-            "require-dev": {
-                "zendframework/zend-coding-standard": "~1.0.0"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.3.x-dev",
-                    "dev-develop": "1.4.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "ZF\\Apigility\\Provider\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Apigility interfaces",
-            "keywords": [
-                "ZendFramework",
-                "api",
-                "apigility",
-                "framework",
-                "zf"
-            ],
-            "time": "2018-05-08T13:32:13+00:00"
-        },
-        {
-            "name": "zfcampus/zf-configuration",
-            "version": "1.3.3",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zfcampus/zf-configuration.git",
-                "reference": "8a5c849330998ba6fdc5754e42ba0e2f7f9517f3"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zfcampus/zf-configuration/zipball/8a5c849330998ba6fdc5754e42ba0e2f7f9517f3",
-                "reference": "8a5c849330998ba6fdc5754e42ba0e2f7f9517f3",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-config": "^2.6 || ^3.0",
-                "zendframework/zend-modulemanager": "^2.7.1",
-                "zendframework/zend-stdlib": "^2.7.7 || ^3.0.1"
-            },
-            "require-dev": {
-                "container-interop/container-interop": "^1.1",
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.5",
-                "zendframework/zend-coding-standard": "~1.0.0"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.3.x-dev",
-                    "dev-develop": "1.4.x-dev"
-                },
-                "zf": {
-                    "module": "ZF\\Configuration"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "ZF\\Configuration\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Zend Framework module providing a REST resource for manipulating configuration",
-            "keywords": [
-                "ZendFramework",
-                "config",
-                "module",
-                "rest",
-                "zf"
-            ],
-            "time": "2018-05-07T17:38:55+00:00"
-        },
-        {
-            "name": "zfcampus/zf-content-negotiation",
-            "version": "1.4.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zfcampus/zf-content-negotiation.git",
-                "reference": "19f577c1f3cd258a064bdd866b0fae9d12729571"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zfcampus/zf-content-negotiation/zipball/19f577c1f3cd258a064bdd866b0fae9d12729571",
-                "reference": "19f577c1f3cd258a064bdd866b0fae9d12729571",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-eventmanager": "^2.6.3 || ^3.0.1",
-                "zendframework/zend-filter": "^2.7.1",
-                "zendframework/zend-http": "^2.5.4",
-                "zendframework/zend-json": "^2.6.1 || ^3.0",
-                "zendframework/zend-mvc": "^2.7.15 || ^3.0.2",
-                "zendframework/zend-servicemanager": "^2.7.6 || ^3.1",
-                "zendframework/zend-stdlib": "^2.7.7 || ^3.0.1",
-                "zendframework/zend-validator": "^2.8.1",
-                "zendframework/zend-view": "^2.8.1",
-                "zfcampus/zf-api-problem": "^1.2.1"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.5",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-console": "^2.0",
-                "zfcampus/zf-hal": "^1.4"
-            },
-            "suggest": {
-                "zendframework/zend-console": "^2.0, if you intend to use the console request of RequestFactory"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.4.x-dev",
-                    "dev-develop": "1.5.x-dev"
-                },
-                "zf": {
-                    "module": "ZF\\ContentNegotiation"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "ZF\\ContentNegotiation\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "ZF Module providing content-negotiation features",
-            "keywords": [
-                "ZendFramework",
-                "content-negotiation",
-                "module",
-                "zf"
-            ],
-            "time": "2018-05-07T19:46:58+00:00"
-        },
-        {
-            "name": "zfcampus/zf-content-validation",
-            "version": "1.6.1",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zfcampus/zf-content-validation.git",
-                "reference": "16e7d35b86da4aef43298c8f4fa451d3034b234c"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zfcampus/zf-content-validation/zipball/16e7d35b86da4aef43298c8f4fa451d3034b234c",
-                "reference": "16e7d35b86da4aef43298c8f4fa451d3034b234c",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-eventmanager": "^2.6.3 || ^3.0.1",
-                "zendframework/zend-filter": "^2.7.1",
-                "zendframework/zend-http": "^2.5.4",
-                "zendframework/zend-inputfilter": "^2.7.3",
-                "zendframework/zend-mvc": "^2.7.15 || ^3.0.4",
-                "zendframework/zend-servicemanager": "^2.7.6 || ^3.1",
-                "zendframework/zend-stdlib": "^2.7.7 || ^3.0.1",
-                "zendframework/zend-validator": "^2.8.1",
-                "zfcampus/zf-api-problem": "^1.2.1",
-                "zfcampus/zf-content-negotiation": "^1.2.1"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.5",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-db": "^2.8.1"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.6.x-dev",
-                    "dev-develop": "1.7.x-dev"
-                },
-                "zf": {
-                    "module": "ZF\\ContentValidation"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "ZF\\ContentValidation\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Zend Framework module providing incoming content validation",
-            "keywords": [
-                "ZendFramework",
-                "module",
-                "validation",
-                "zf"
-            ],
-            "time": "2018-08-13T20:58:30+00:00"
-        },
-        {
-            "name": "zfcampus/zf-development-mode",
-            "version": "3.2.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zfcampus/zf-development-mode.git",
-                "reference": "419004a320bab017d28f2bc5e7857dde7e19aecf"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zfcampus/zf-development-mode/zipball/419004a320bab017d28f2bc5e7857dde7e19aecf",
-                "reference": "419004a320bab017d28f2bc5e7857dde7e19aecf",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0"
-            },
-            "require-dev": {
-                "mikey179/vfsstream": "^1.6.5",
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.5",
-                "zendframework/zend-coding-standard": "~1.0.0"
-            },
-            "bin": [
-                "bin/zf-development-mode"
-            ],
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "3.2.x-dev",
-                    "dev-develop": "3.3.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "ZF\\DevelopmentMode\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Zend Framework development mode script",
-            "keywords": [
-                "ZendFramework",
-                "framework",
-                "zf"
-            ],
-            "time": "2018-05-07T15:44:42+00:00"
-        },
-        {
-            "name": "zfcampus/zf-hal",
-            "version": "1.5.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zfcampus/zf-hal.git",
-                "reference": "6af917f0feceeaad88b7368cc5b0a6b05d5ccc00"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zfcampus/zf-hal/zipball/6af917f0feceeaad88b7368cc5b0a6b05d5ccc00",
-                "reference": "6af917f0feceeaad88b7368cc5b0a6b05d5ccc00",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "psr/link": "^1.0",
-                "zendframework/zend-eventmanager": "^2.6.3 || ^3.0.1",
-                "zendframework/zend-filter": "^2.7.1",
-                "zendframework/zend-http": "^2.5.4",
-                "zendframework/zend-hydrator": "^1.1 || ^2.2.1",
-                "zendframework/zend-mvc": "^2.7.15 || ^3.0.2",
-                "zendframework/zend-paginator": "^2.7",
-                "zendframework/zend-stdlib": "^2.7.7 || ^3.0.1",
-                "zendframework/zend-uri": "^2.5.2",
-                "zendframework/zend-view": "^2.8.1",
-                "zfcampus/zf-api-problem": "^1.2.1"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.21 || ^6.3",
-                "zendframework/zend-coding-standard": "~1.0.0"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.5-dev",
-                    "dev-develop": "1.6-dev"
-                },
-                "zf": {
-                    "module": "ZF\\Hal"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "ZF\\Hal\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "ZF2 Module providing Hypermedia Application Language assets and rendering",
-            "homepage": "http://apigility.org/",
-            "keywords": [
-                "hal",
-                "module",
-                "psr-13",
-                "rest",
-                "zend",
-                "zf2"
-            ],
-            "time": "2018-05-03T19:16:43+00:00"
-        },
-        {
-            "name": "zfcampus/zf-mvc-auth",
-            "version": "1.5.1",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zfcampus/zf-mvc-auth.git",
-                "reference": "47168a58e0201ff42465be7541137b85004f138c"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zfcampus/zf-mvc-auth/zipball/47168a58e0201ff42465be7541137b85004f138c",
-                "reference": "47168a58e0201ff42465be7541137b85004f138c",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-authentication": "^2.5.3",
-                "zendframework/zend-eventmanager": "^2.6.3 || ^3.0.1",
-                "zendframework/zend-http": "^2.5.4",
-                "zendframework/zend-mvc": "^2.7.9 || ^3.0.2",
-                "zendframework/zend-permissions-acl": "^2.6",
-                "zendframework/zend-permissions-rbac": "^2.5.1 || ^3.0",
-                "zendframework/zend-servicemanager": "^2.7.6 || ^3.1",
-                "zendframework/zend-stdlib": "^2.7.7 || ^3.0.1",
-                "zfcampus/zf-api-problem": "^1.2.1",
-                "zfcampus/zf-content-negotiation": "^1.2.1",
-                "zfcampus/zf-oauth2": "^1.4"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.5",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-session": "^2.8.5"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.5.x-dev",
-                    "dev-develop": "1.6.x-dev"
-                },
-                "zf": {
-                    "module": "ZF\\MvcAuth"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "ZF\\MvcAuth\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "ZF2 Module providing Authentication and Authorization events and infrastructure",
-            "keywords": [
-                "ZendFramework",
-                "module",
-                "zend",
-                "zf"
-            ],
-            "time": "2018-05-31T14:17:41+00:00"
-        },
-        {
-            "name": "zfcampus/zf-oauth2",
-            "version": "1.5.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zfcampus/zf-oauth2.git",
-                "reference": "8fbdb60620e5004ca6a3be580a621ea337dc8e91"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zfcampus/zf-oauth2/zipball/8fbdb60620e5004ca6a3be580a621ea337dc8e91",
-                "reference": "8fbdb60620e5004ca6a3be580a621ea337dc8e91",
-                "shasum": ""
-            },
-            "require": {
-                "bshaffer/oauth2-server-php": "^1.10",
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-crypt": "^3.3",
-                "zendframework/zend-http": "^2.5.4",
-                "zendframework/zend-mvc": "^2.7.15 || ^3.0.2",
-                "zendframework/zend-servicemanager": "^2.7.6 || ^3.1",
-                "zfcampus/zf-api-problem": "^1.2.1",
-                "zfcampus/zf-content-negotiation": "^1.2.1"
-            },
-            "require-dev": {
-                "mockery/mockery": "^1.0",
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.5",
-                "zendframework/zend-authentication": "^2.5.3",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-db": "^2.8.1",
-                "zendframework/zend-i18n": "^2.7.3",
-                "zendframework/zend-log": "^2.9",
-                "zendframework/zend-modulemanager": "^2.7.2",
-                "zendframework/zend-serializer": "^2.8",
-                "zendframework/zend-test": "^2.6.1 || ^3.0.1"
-            },
-            "suggest": {
-                "alcaeus/mongo-php-adapter": "^1.0.5, if you are using ext/mongodb and wish to use the MongoAdapter for OAuth2 credential storage."
-            },
-            "bin": [
-                "bin/bcrypt.php"
-            ],
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.5.x-dev",
-                    "dev-develop": "1.6.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "ZF\\OAuth2\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "ZF module for implementing an OAuth2 server",
-            "keywords": [
-                "ZendFramework",
-                "api",
-                "framework",
-                "oauth2",
-                "zf"
-            ],
-            "time": "2018-05-07T21:55:10+00:00"
-        },
-        {
-            "name": "zfcampus/zf-rest",
-            "version": "1.5.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zfcampus/zf-rest.git",
-                "reference": "2eaec38b2b033cf0e1f1f2dc1f60e2436032e0fb"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zfcampus/zf-rest/zipball/2eaec38b2b033cf0e1f1f2dc1f60e2436032e0fb",
-                "reference": "2eaec38b2b033cf0e1f1f2dc1f60e2436032e0fb",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-eventmanager": "^2.6.3 || ^3.0.1",
-                "zendframework/zend-mvc": "^2.7.14 || ^3.0.2",
-                "zendframework/zend-paginator": "^2.7",
-                "zendframework/zend-stdlib": "^2.7.7 || ^3.0.1",
-                "zfcampus/zf-api-problem": "^1.2.2",
-                "zfcampus/zf-content-negotiation": "^1.2.1",
-                "zfcampus/zf-hal": "^1.4",
-                "zfcampus/zf-mvc-auth": "^1.4"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.5",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-escaper": "^2.5.2",
-                "zendframework/zend-http": "^2.5.4",
-                "zendframework/zend-inputfilter": "^2.7.2",
-                "zendframework/zend-servicemanager": "^2.7.6 || ^3.1",
-                "zendframework/zend-uri": "^2.5.2",
-                "zendframework/zend-validator": "^2.8.1",
-                "zendframework/zend-view": "^2.8.1"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.5.x-dev",
-                    "dev-develop": "1.6.x-dev"
-                },
-                "zf": {
-                    "module": "ZF\\Rest"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "ZF\\Rest\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "ZF Module providing structure for RESTful resources",
-            "homepage": "http://apigility.org/",
-            "keywords": [
-                "ZendFramework",
-                "module",
-                "rest",
-                "zend",
-                "zf",
-                "zf3"
-            ],
-            "time": "2018-07-31T15:54:45+00:00"
-        },
-        {
-            "name": "zfcampus/zf-rpc",
-            "version": "1.4.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zfcampus/zf-rpc.git",
-                "reference": "9c67f2b21e8e2c11447efb6a9fa9de38c50059c9"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zfcampus/zf-rpc/zipball/9c67f2b21e8e2c11447efb6a9fa9de38c50059c9",
-                "reference": "9c67f2b21e8e2c11447efb6a9fa9de38c50059c9",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-eventmanager": "^2.6.3 || ^3.0.1",
-                "zendframework/zend-http": "^2.5.4",
-                "zendframework/zend-mvc": "^2.7.15 || ^3.0.2",
-                "zendframework/zend-servicemanager": "^2.7.6 || ^3.1",
-                "zendframework/zend-stdlib": "^2.7.7 || ^3.0.1",
-                "zendframework/zend-view": "^2.8.1",
-                "zfcampus/zf-api-problem": "^1.2.1",
-                "zfcampus/zf-content-negotiation": "^1.2.1"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.5",
-                "zendframework/zend-coding-standard": "~1.0.0"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.4.x-dev",
-                    "dev-develop": "1.5.x-dev"
-                },
-                "zf": {
-                    "module": "ZF\\Rpc"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "ZF\\Rpc\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "ZF2 Module for simplifying the creation of RPC services",
-            "homepage": "http://apigility.org/",
-            "keywords": [
-                "ZendFramework",
-                "module",
-                "rpc",
-                "zend",
-                "zf"
-            ],
-            "time": "2018-05-03T20:13:17+00:00"
-        },
-        {
-            "name": "zfcampus/zf-versioning",
-            "version": "1.3.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zfcampus/zf-versioning.git",
-                "reference": "72b9df432e3004eb5bfc9d61f53a7b4d37390bc8"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zfcampus/zf-versioning/zipball/72b9df432e3004eb5bfc9d61f53a7b4d37390bc8",
-                "reference": "72b9df432e3004eb5bfc9d61f53a7b4d37390bc8",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-eventmanager": "^2.6.3 || ^3.0.1",
-                "zendframework/zend-http": "^2.5.4",
-                "zendframework/zend-modulemanager": "^2.7.2",
-                "zendframework/zend-mvc": "^2.7.15 || ^3.0.2",
-                "zendframework/zend-servicemanager": "^2.7.6 || ^3.1",
-                "zendframework/zend-stdlib": "^2.7.7 || ^3.0.1"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.5",
-                "zendframework/zend-coding-standard": "~1.0.0"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.3.x-dev",
-                    "dev-develop": "1.4.x-dev"
-                },
-                "zf": {
-                    "module": "ZF\\Versioning"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "ZF\\Versioning\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "ZF2 Module providing listeners and route prototypes for implementing API versioning",
-            "homepage": "http://apigility.org/",
-            "keywords": [
-                "ZendFramework",
-                "module",
-                "rest",
-                "zend",
-                "zf"
-            ],
-            "time": "2018-05-03T19:50:14+00:00"
-        }
-    ],
-    "packages-dev": [
-        {
-            "name": "doctrine/instantiator",
-            "version": "1.0.5",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/doctrine/instantiator.git",
-                "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d",
-                "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d",
-                "shasum": ""
-            },
-            "require": {
-                "php": ">=5.3,<8.0-DEV"
-            },
-            "require-dev": {
-                "athletic/athletic": "~0.1.8",
-                "ext-pdo": "*",
-                "ext-phar": "*",
-                "phpunit/phpunit": "~4.0",
-                "squizlabs/php_codesniffer": "~2.0"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.0.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "MIT"
-            ],
-            "authors": [
-                {
-                    "name": "Marco Pivetta",
-                    "email": "ocramius@gmail.com",
-                    "homepage": "http://ocramius.github.com/"
-                }
-            ],
-            "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
-            "homepage": "https://github.com/doctrine/instantiator",
-            "keywords": [
-                "constructor",
-                "instantiate"
-            ],
-            "time": "2015-06-14T21:17:01+00:00"
-        },
-        {
-            "name": "herrera-io/json",
-            "version": "1.0.3",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/kherge-php/json.git",
-                "reference": "60c696c9370a1e5136816ca557c17f82a6fa83f1"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/kherge-php/json/zipball/60c696c9370a1e5136816ca557c17f82a6fa83f1",
-                "reference": "60c696c9370a1e5136816ca557c17f82a6fa83f1",
-                "shasum": ""
-            },
-            "require": {
-                "ext-json": "*",
-                "justinrainbow/json-schema": ">=1.0,<2.0-dev",
-                "php": ">=5.3.3",
-                "seld/jsonlint": ">=1.0,<2.0-dev"
-            },
-            "require-dev": {
-                "herrera-io/phpunit-test-case": "1.*",
-                "mikey179/vfsstream": "1.1.0",
-                "phpunit/phpunit": "3.7.*"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.0-dev"
-                }
-            },
-            "autoload": {
-                "files": [
-                    "src/lib/json_version.php"
-                ],
-                "psr-0": {
-                    "Herrera\\Json": "src/lib"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "MIT"
-            ],
-            "authors": [
-                {
-                    "name": "Kevin Herrera",
-                    "email": "kevin@herrera.io",
-                    "homepage": "http://kevin.herrera.io"
-                }
-            ],
-            "description": "A library for simplifying JSON linting and validation.",
-            "homepage": "http://herrera-io.github.com/php-json",
-            "keywords": [
-                "json",
-                "lint",
-                "schema",
-                "validate"
-            ],
-            "abandoned": "kherge/json",
-            "time": "2013-10-30T16:51:34+00:00"
-        },
-        {
-            "name": "herrera-io/phar-update",
-            "version": "1.0.3",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/kherge-abandoned/php-phar-update.git",
-                "reference": "00a79e1d5b8cf3c080a2e3becf1ddf7a7fea025b"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/kherge-abandoned/php-phar-update/zipball/00a79e1d5b8cf3c080a2e3becf1ddf7a7fea025b",
-                "reference": "00a79e1d5b8cf3c080a2e3becf1ddf7a7fea025b",
-                "shasum": ""
-            },
-            "require": {
-                "herrera-io/json": "1.*",
-                "kherge/version": "1.*",
-                "php": ">=5.3.3"
-            },
-            "require-dev": {
-                "herrera-io/phpunit-test-case": "1.*",
-                "mikey179/vfsstream": "1.1.0",
-                "phpunit/phpunit": "3.7.*"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.0-dev"
-                }
-            },
-            "autoload": {
-                "files": [
-                    "src/lib/constants.php"
-                ],
-                "psr-0": {
-                    "Herrera\\Phar\\Update": "src/lib"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "MIT"
-            ],
-            "authors": [
-                {
-                    "name": "Kevin Herrera",
-                    "email": "kevin@herrera.io",
-                    "homepage": "http://kevin.herrera.io"
-                }
-            ],
-            "description": "A library for self-updating Phars.",
-            "homepage": "http://herrera-io.github.com/php-phar-update",
-            "keywords": [
-                "phar",
-                "update"
-            ],
-            "abandoned": true,
-            "time": "2013-10-30T17:23:01+00:00"
-        },
-        {
-            "name": "justinrainbow/json-schema",
-            "version": "1.6.1",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/justinrainbow/json-schema.git",
-                "reference": "cc84765fb7317f6b07bd8ac78364747f95b86341"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/cc84765fb7317f6b07bd8ac78364747f95b86341",
-                "reference": "cc84765fb7317f6b07bd8ac78364747f95b86341",
-                "shasum": ""
-            },
-            "require": {
-                "php": ">=5.3.29"
-            },
-            "require-dev": {
-                "json-schema/json-schema-test-suite": "1.1.0",
-                "phpdocumentor/phpdocumentor": "~2",
-                "phpunit/phpunit": "~3.7"
-            },
-            "bin": [
-                "bin/validate-json"
-            ],
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.6.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "JsonSchema\\": "src/JsonSchema/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "authors": [
-                {
-                    "name": "Bruno Prieto Reis",
-                    "email": "bruno.p.reis@gmail.com"
-                },
-                {
-                    "name": "Justin Rainbow",
-                    "email": "justin.rainbow@gmail.com"
-                },
-                {
-                    "name": "Igor Wiedler",
-                    "email": "igor@wiedler.ch"
-                },
-                {
-                    "name": "Robert Schönthal",
-                    "email": "seroscho@googlemail.com"
-                }
-            ],
-            "description": "A library to validate a json schema.",
-            "homepage": "https://github.com/justinrainbow/json-schema",
-            "keywords": [
-                "json",
-                "schema"
-            ],
-            "time": "2016-01-25T15:43:01+00:00"
-        },
-        {
-            "name": "kherge/version",
-            "version": "1.0.1",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/kherge-abandoned/Version.git",
-                "reference": "f07cf83f8ce533be8f93d2893d96d674bbeb7e30"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/kherge-abandoned/Version/zipball/f07cf83f8ce533be8f93d2893d96d674bbeb7e30",
-                "reference": "f07cf83f8ce533be8f93d2893d96d674bbeb7e30",
-                "shasum": ""
-            },
-            "require": {
-                "php": ">=5.3.3"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.0-dev"
-                }
-            },
-            "autoload": {
-                "psr-0": {
-                    "KevinGH\\Version": "src/lib/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "MIT"
-            ],
-            "authors": [
-                {
-                    "name": "Kevin Herrera",
-                    "email": "me@kevingh.com"
-                }
-            ],
-            "description": "A parsing and comparison library for semantic versioning.",
-            "homepage": "http://github.com/kherge/Version",
-            "abandoned": true,
-            "time": "2012-08-16T17:13:03+00:00"
-        },
-        {
-            "name": "myclabs/deep-copy",
-            "version": "1.7.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/myclabs/DeepCopy.git",
-                "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
-                "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0"
-            },
-            "require-dev": {
-                "doctrine/collections": "^1.0",
-                "doctrine/common": "^2.6",
-                "phpunit/phpunit": "^4.1"
-            },
-            "type": "library",
-            "autoload": {
-                "psr-4": {
-                    "DeepCopy\\": "src/DeepCopy/"
-                },
-                "files": [
-                    "src/DeepCopy/deep_copy.php"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "MIT"
-            ],
-            "description": "Create deep copies (clones) of your objects",
-            "keywords": [
-                "clone",
-                "copy",
-                "duplicate",
-                "object",
-                "object graph"
-            ],
-            "time": "2017-10-19T19:58:43+00:00"
-        },
-        {
-            "name": "phpdocumentor/reflection-common",
-            "version": "1.0.1",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
-                "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
-                "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6",
-                "shasum": ""
-            },
-            "require": {
-                "php": ">=5.5"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^4.6"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.0.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "phpDocumentor\\Reflection\\": [
-                        "src"
-                    ]
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "MIT"
-            ],
-            "authors": [
-                {
-                    "name": "Jaap van Otterdijk",
-                    "email": "opensource@ijaap.nl"
-                }
-            ],
-            "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
-            "homepage": "http://www.phpdoc.org",
-            "keywords": [
-                "FQSEN",
-                "phpDocumentor",
-                "phpdoc",
-                "reflection",
-                "static analysis"
-            ],
-            "time": "2017-09-11T18:02:19+00:00"
-        },
-        {
-            "name": "phpdocumentor/reflection-docblock",
-            "version": "3.3.2",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
-                "reference": "bf329f6c1aadea3299f08ee804682b7c45b326a2"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/bf329f6c1aadea3299f08ee804682b7c45b326a2",
-                "reference": "bf329f6c1aadea3299f08ee804682b7c45b326a2",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "phpdocumentor/reflection-common": "^1.0.0",
-                "phpdocumentor/type-resolver": "^0.4.0",
-                "webmozart/assert": "^1.0"
-            },
-            "require-dev": {
-                "mockery/mockery": "^0.9.4",
-                "phpunit/phpunit": "^4.4"
-            },
-            "type": "library",
-            "autoload": {
-                "psr-4": {
-                    "phpDocumentor\\Reflection\\": [
-                        "src/"
-                    ]
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "MIT"
-            ],
-            "authors": [
-                {
-                    "name": "Mike van Riel",
-                    "email": "me@mikevanriel.com"
-                }
-            ],
-            "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
-            "time": "2017-11-10T14:09:06+00:00"
-        },
-        {
-            "name": "phpdocumentor/type-resolver",
-            "version": "0.4.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/phpDocumentor/TypeResolver.git",
-                "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7",
-                "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.5 || ^7.0",
-                "phpdocumentor/reflection-common": "^1.0"
-            },
-            "require-dev": {
-                "mockery/mockery": "^0.9.4",
-                "phpunit/phpunit": "^5.2||^4.8.24"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.0.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "phpDocumentor\\Reflection\\": [
-                        "src/"
-                    ]
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "MIT"
-            ],
-            "authors": [
-                {
-                    "name": "Mike van Riel",
-                    "email": "me@mikevanriel.com"
-                }
-            ],
-            "time": "2017-07-14T14:27:02+00:00"
-        },
-        {
-            "name": "phpspec/prophecy",
-            "version": "1.8.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/phpspec/prophecy.git",
-                "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
-                "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
-                "shasum": ""
-            },
-            "require": {
-                "doctrine/instantiator": "^1.0.2",
-                "php": "^5.3|^7.0",
-                "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
-                "sebastian/comparator": "^1.1|^2.0|^3.0",
-                "sebastian/recursion-context": "^1.0|^2.0|^3.0"
-            },
-            "require-dev": {
-                "phpspec/phpspec": "^2.5|^3.2",
-                "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.8.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-0": {
-                    "Prophecy\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "MIT"
-            ],
-            "authors": [
-                {
-                    "name": "Konstantin Kudryashov",
-                    "email": "ever.zet@gmail.com",
-                    "homepage": "http://everzet.com"
-                },
-                {
-                    "name": "Marcello Duarte",
-                    "email": "marcello.duarte@gmail.com"
-                }
-            ],
-            "description": "Highly opinionated mocking framework for PHP 5.3+",
-            "homepage": "https://github.com/phpspec/prophecy",
-            "keywords": [
-                "Double",
-                "Dummy",
-                "fake",
-                "mock",
-                "spy",
-                "stub"
-            ],
-            "time": "2018-08-05T17:53:17+00:00"
-        },
-        {
-            "name": "phpunit/php-code-coverage",
-            "version": "4.0.8",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
-                "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ef7b2f56815df854e66ceaee8ebe9393ae36a40d",
-                "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d",
-                "shasum": ""
-            },
-            "require": {
-                "ext-dom": "*",
-                "ext-xmlwriter": "*",
-                "php": "^5.6 || ^7.0",
-                "phpunit/php-file-iterator": "^1.3",
-                "phpunit/php-text-template": "^1.2",
-                "phpunit/php-token-stream": "^1.4.2 || ^2.0",
-                "sebastian/code-unit-reverse-lookup": "^1.0",
-                "sebastian/environment": "^1.3.2 || ^2.0",
-                "sebastian/version": "^1.0 || ^2.0"
-            },
-            "require-dev": {
-                "ext-xdebug": "^2.1.4",
-                "phpunit/phpunit": "^5.7"
-            },
-            "suggest": {
-                "ext-xdebug": "^2.5.1"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "4.0.x-dev"
-                }
-            },
-            "autoload": {
-                "classmap": [
-                    "src/"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "authors": [
-                {
-                    "name": "Sebastian Bergmann",
-                    "email": "sb@sebastian-bergmann.de",
-                    "role": "lead"
-                }
-            ],
-            "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
-            "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
-            "keywords": [
-                "coverage",
-                "testing",
-                "xunit"
-            ],
-            "time": "2017-04-02T07:44:40+00:00"
-        },
-        {
-            "name": "phpunit/php-file-iterator",
-            "version": "1.4.5",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
-                "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4",
-                "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4",
-                "shasum": ""
-            },
-            "require": {
-                "php": ">=5.3.3"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.4.x-dev"
-                }
-            },
-            "autoload": {
-                "classmap": [
-                    "src/"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "authors": [
-                {
-                    "name": "Sebastian Bergmann",
-                    "email": "sb@sebastian-bergmann.de",
-                    "role": "lead"
-                }
-            ],
-            "description": "FilterIterator implementation that filters files based on a list of suffixes.",
-            "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
-            "keywords": [
-                "filesystem",
-                "iterator"
-            ],
-            "time": "2017-11-27T13:52:08+00:00"
-        },
-        {
-            "name": "phpunit/php-text-template",
-            "version": "1.2.1",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/sebastianbergmann/php-text-template.git",
-                "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
-                "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
-                "shasum": ""
-            },
-            "require": {
-                "php": ">=5.3.3"
-            },
-            "type": "library",
-            "autoload": {
-                "classmap": [
-                    "src/"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "authors": [
-                {
-                    "name": "Sebastian Bergmann",
-                    "email": "sebastian@phpunit.de",
-                    "role": "lead"
-                }
-            ],
-            "description": "Simple template engine.",
-            "homepage": "https://github.com/sebastianbergmann/php-text-template/",
-            "keywords": [
-                "template"
-            ],
-            "time": "2015-06-21T13:50:34+00:00"
-        },
-        {
-            "name": "phpunit/php-timer",
-            "version": "1.0.9",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/sebastianbergmann/php-timer.git",
-                "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
-                "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.3.3 || ^7.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.0-dev"
-                }
-            },
-            "autoload": {
-                "classmap": [
-                    "src/"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "authors": [
-                {
-                    "name": "Sebastian Bergmann",
-                    "email": "sb@sebastian-bergmann.de",
-                    "role": "lead"
-                }
-            ],
-            "description": "Utility class for timing",
-            "homepage": "https://github.com/sebastianbergmann/php-timer/",
-            "keywords": [
-                "timer"
-            ],
-            "time": "2017-02-26T11:10:40+00:00"
-        },
-        {
-            "name": "phpunit/php-token-stream",
-            "version": "1.4.12",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/sebastianbergmann/php-token-stream.git",
-                "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16",
-                "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16",
-                "shasum": ""
-            },
-            "require": {
-                "ext-tokenizer": "*",
-                "php": ">=5.3.3"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "~4.2"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.4-dev"
-                }
-            },
-            "autoload": {
-                "classmap": [
-                    "src/"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "authors": [
-                {
-                    "name": "Sebastian Bergmann",
-                    "email": "sebastian@phpunit.de"
-                }
-            ],
-            "description": "Wrapper around PHP's tokenizer extension.",
-            "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
-            "keywords": [
-                "tokenizer"
-            ],
-            "time": "2017-12-04T08:55:13+00:00"
-        },
-        {
-            "name": "phpunit/phpunit",
-            "version": "5.7.27",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/sebastianbergmann/phpunit.git",
-                "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c",
-                "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c",
-                "shasum": ""
-            },
-            "require": {
-                "ext-dom": "*",
-                "ext-json": "*",
-                "ext-libxml": "*",
-                "ext-mbstring": "*",
-                "ext-xml": "*",
-                "myclabs/deep-copy": "~1.3",
-                "php": "^5.6 || ^7.0",
-                "phpspec/prophecy": "^1.6.2",
-                "phpunit/php-code-coverage": "^4.0.4",
-                "phpunit/php-file-iterator": "~1.4",
-                "phpunit/php-text-template": "~1.2",
-                "phpunit/php-timer": "^1.0.6",
-                "phpunit/phpunit-mock-objects": "^3.2",
-                "sebastian/comparator": "^1.2.4",
-                "sebastian/diff": "^1.4.3",
-                "sebastian/environment": "^1.3.4 || ^2.0",
-                "sebastian/exporter": "~2.0",
-                "sebastian/global-state": "^1.1",
-                "sebastian/object-enumerator": "~2.0",
-                "sebastian/resource-operations": "~1.0",
-                "sebastian/version": "^1.0.6|^2.0.1",
-                "symfony/yaml": "~2.1|~3.0|~4.0"
-            },
-            "conflict": {
-                "phpdocumentor/reflection-docblock": "3.0.2"
-            },
-            "require-dev": {
-                "ext-pdo": "*"
-            },
-            "suggest": {
-                "ext-xdebug": "*",
-                "phpunit/php-invoker": "~1.1"
-            },
-            "bin": [
-                "phpunit"
-            ],
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "5.7.x-dev"
-                }
-            },
-            "autoload": {
-                "classmap": [
-                    "src/"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "authors": [
-                {
-                    "name": "Sebastian Bergmann",
-                    "email": "sebastian@phpunit.de",
-                    "role": "lead"
-                }
-            ],
-            "description": "The PHP Unit Testing framework.",
-            "homepage": "https://phpunit.de/",
-            "keywords": [
-                "phpunit",
-                "testing",
-                "xunit"
-            ],
-            "time": "2018-02-01T05:50:59+00:00"
-        },
-        {
-            "name": "phpunit/phpunit-mock-objects",
-            "version": "3.4.4",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
-                "reference": "a23b761686d50a560cc56233b9ecf49597cc9118"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/a23b761686d50a560cc56233b9ecf49597cc9118",
-                "reference": "a23b761686d50a560cc56233b9ecf49597cc9118",
-                "shasum": ""
-            },
-            "require": {
-                "doctrine/instantiator": "^1.0.2",
-                "php": "^5.6 || ^7.0",
-                "phpunit/php-text-template": "^1.2",
-                "sebastian/exporter": "^1.2 || ^2.0"
-            },
-            "conflict": {
-                "phpunit/phpunit": "<5.4.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.4"
-            },
-            "suggest": {
-                "ext-soap": "*"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "3.2.x-dev"
-                }
-            },
-            "autoload": {
-                "classmap": [
-                    "src/"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "authors": [
-                {
-                    "name": "Sebastian Bergmann",
-                    "email": "sb@sebastian-bergmann.de",
-                    "role": "lead"
-                }
-            ],
-            "description": "Mock Object library for PHPUnit",
-            "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/",
-            "keywords": [
-                "mock",
-                "xunit"
-            ],
-            "time": "2017-06-30T09:13:00+00:00"
-        },
-        {
-            "name": "sebastian/code-unit-reverse-lookup",
-            "version": "1.0.1",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
-                "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
-                "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7 || ^6.0"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.0.x-dev"
-                }
-            },
-            "autoload": {
-                "classmap": [
-                    "src/"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "authors": [
-                {
-                    "name": "Sebastian Bergmann",
-                    "email": "sebastian@phpunit.de"
-                }
-            ],
-            "description": "Looks up which function or method a line of code belongs to",
-            "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
-            "time": "2017-03-04T06:30:41+00:00"
-        },
-        {
-            "name": "sebastian/comparator",
-            "version": "1.2.4",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/sebastianbergmann/comparator.git",
-                "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
-                "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
-                "shasum": ""
-            },
-            "require": {
-                "php": ">=5.3.3",
-                "sebastian/diff": "~1.2",
-                "sebastian/exporter": "~1.2 || ~2.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "~4.4"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.2.x-dev"
-                }
-            },
-            "autoload": {
-                "classmap": [
-                    "src/"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "authors": [
-                {
-                    "name": "Jeff Welch",
-                    "email": "whatthejeff@gmail.com"
-                },
-                {
-                    "name": "Volker Dusch",
-                    "email": "github@wallbash.com"
-                },
-                {
-                    "name": "Bernhard Schussek",
-                    "email": "bschussek@2bepublished.at"
-                },
-                {
-                    "name": "Sebastian Bergmann",
-                    "email": "sebastian@phpunit.de"
-                }
-            ],
-            "description": "Provides the functionality to compare PHP values for equality",
-            "homepage": "http://www.github.com/sebastianbergmann/comparator",
-            "keywords": [
-                "comparator",
-                "compare",
-                "equality"
-            ],
-            "time": "2017-01-29T09:50:25+00:00"
-        },
-        {
-            "name": "sebastian/diff",
-            "version": "1.4.3",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/sebastianbergmann/diff.git",
-                "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4",
-                "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.3.3 || ^7.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.4-dev"
-                }
-            },
-            "autoload": {
-                "classmap": [
-                    "src/"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "authors": [
-                {
-                    "name": "Kore Nordmann",
-                    "email": "mail@kore-nordmann.de"
-                },
-                {
-                    "name": "Sebastian Bergmann",
-                    "email": "sebastian@phpunit.de"
-                }
-            ],
-            "description": "Diff implementation",
-            "homepage": "https://github.com/sebastianbergmann/diff",
-            "keywords": [
-                "diff"
-            ],
-            "time": "2017-05-22T07:24:03+00:00"
-        },
-        {
-            "name": "sebastian/environment",
-            "version": "2.0.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/sebastianbergmann/environment.git",
-                "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/5795ffe5dc5b02460c3e34222fee8cbe245d8fac",
-                "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.0"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.0.x-dev"
-                }
-            },
-            "autoload": {
-                "classmap": [
-                    "src/"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "authors": [
-                {
-                    "name": "Sebastian Bergmann",
-                    "email": "sebastian@phpunit.de"
-                }
-            ],
-            "description": "Provides functionality to handle HHVM/PHP environments",
-            "homepage": "http://www.github.com/sebastianbergmann/environment",
-            "keywords": [
-                "Xdebug",
-                "environment",
-                "hhvm"
-            ],
-            "time": "2016-11-26T07:53:53+00:00"
-        },
-        {
-            "name": "sebastian/exporter",
-            "version": "2.0.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/sebastianbergmann/exporter.git",
-                "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4",
-                "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4",
-                "shasum": ""
-            },
-            "require": {
-                "php": ">=5.3.3",
-                "sebastian/recursion-context": "~2.0"
-            },
-            "require-dev": {
-                "ext-mbstring": "*",
-                "phpunit/phpunit": "~4.4"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.0.x-dev"
-                }
-            },
-            "autoload": {
-                "classmap": [
-                    "src/"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "authors": [
-                {
-                    "name": "Jeff Welch",
-                    "email": "whatthejeff@gmail.com"
-                },
-                {
-                    "name": "Volker Dusch",
-                    "email": "github@wallbash.com"
-                },
-                {
-                    "name": "Bernhard Schussek",
-                    "email": "bschussek@2bepublished.at"
-                },
-                {
-                    "name": "Sebastian Bergmann",
-                    "email": "sebastian@phpunit.de"
-                },
-                {
-                    "name": "Adam Harvey",
-                    "email": "aharvey@php.net"
-                }
-            ],
-            "description": "Provides the functionality to export PHP variables for visualization",
-            "homepage": "http://www.github.com/sebastianbergmann/exporter",
-            "keywords": [
-                "export",
-                "exporter"
-            ],
-            "time": "2016-11-19T08:54:04+00:00"
-        },
-        {
-            "name": "sebastian/global-state",
-            "version": "1.1.1",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/sebastianbergmann/global-state.git",
-                "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4",
-                "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4",
-                "shasum": ""
-            },
-            "require": {
-                "php": ">=5.3.3"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "~4.2"
-            },
-            "suggest": {
-                "ext-uopz": "*"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.0-dev"
-                }
-            },
-            "autoload": {
-                "classmap": [
-                    "src/"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "authors": [
-                {
-                    "name": "Sebastian Bergmann",
-                    "email": "sebastian@phpunit.de"
-                }
-            ],
-            "description": "Snapshotting of global state",
-            "homepage": "http://www.github.com/sebastianbergmann/global-state",
-            "keywords": [
-                "global state"
-            ],
-            "time": "2015-10-12T03:26:01+00:00"
-        },
-        {
-            "name": "sebastian/object-enumerator",
-            "version": "2.0.1",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/sebastianbergmann/object-enumerator.git",
-                "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1311872ac850040a79c3c058bea3e22d0f09cbb7",
-                "reference": "1311872ac850040a79c3c058bea3e22d0f09cbb7",
-                "shasum": ""
-            },
-            "require": {
-                "php": ">=5.6",
-                "sebastian/recursion-context": "~2.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "~5"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.0.x-dev"
-                }
-            },
-            "autoload": {
-                "classmap": [
-                    "src/"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "authors": [
-                {
-                    "name": "Sebastian Bergmann",
-                    "email": "sebastian@phpunit.de"
-                }
-            ],
-            "description": "Traverses array structures and object graphs to enumerate all referenced objects",
-            "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
-            "time": "2017-02-18T15:18:39+00:00"
-        },
-        {
-            "name": "sebastian/recursion-context",
-            "version": "2.0.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/sebastianbergmann/recursion-context.git",
-                "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/2c3ba150cbec723aa057506e73a8d33bdb286c9a",
-                "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a",
-                "shasum": ""
-            },
-            "require": {
-                "php": ">=5.3.3"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "~4.4"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.0.x-dev"
-                }
-            },
-            "autoload": {
-                "classmap": [
-                    "src/"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "authors": [
-                {
-                    "name": "Jeff Welch",
-                    "email": "whatthejeff@gmail.com"
-                },
-                {
-                    "name": "Sebastian Bergmann",
-                    "email": "sebastian@phpunit.de"
-                },
-                {
-                    "name": "Adam Harvey",
-                    "email": "aharvey@php.net"
-                }
-            ],
-            "description": "Provides functionality to recursively process PHP variables",
-            "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
-            "time": "2016-11-19T07:33:16+00:00"
-        },
-        {
-            "name": "sebastian/resource-operations",
-            "version": "1.0.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/sebastianbergmann/resource-operations.git",
-                "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
-                "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52",
-                "shasum": ""
-            },
-            "require": {
-                "php": ">=5.6.0"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.0.x-dev"
-                }
-            },
-            "autoload": {
-                "classmap": [
-                    "src/"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "authors": [
-                {
-                    "name": "Sebastian Bergmann",
-                    "email": "sebastian@phpunit.de"
-                }
-            ],
-            "description": "Provides a list of PHP built-in functions that operate on resources",
-            "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
-            "time": "2015-07-28T20:34:47+00:00"
-        },
-        {
-            "name": "sebastian/version",
-            "version": "2.0.1",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/sebastianbergmann/version.git",
-                "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019",
-                "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019",
-                "shasum": ""
-            },
-            "require": {
-                "php": ">=5.6"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.0.x-dev"
-                }
-            },
-            "autoload": {
-                "classmap": [
-                    "src/"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "authors": [
-                {
-                    "name": "Sebastian Bergmann",
-                    "email": "sebastian@phpunit.de",
-                    "role": "lead"
-                }
-            ],
-            "description": "Library that helps with managing the version number of Git-hosted PHP projects",
-            "homepage": "https://github.com/sebastianbergmann/version",
-            "time": "2016-10-03T07:35:21+00:00"
-        },
-        {
-            "name": "seld/jsonlint",
-            "version": "1.7.1",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/Seldaek/jsonlint.git",
-                "reference": "d15f59a67ff805a44c50ea0516d2341740f81a38"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/d15f59a67ff805a44c50ea0516d2341740f81a38",
-                "reference": "d15f59a67ff805a44c50ea0516d2341740f81a38",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.3 || ^7.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0"
-            },
-            "bin": [
-                "bin/jsonlint"
-            ],
-            "type": "library",
-            "autoload": {
-                "psr-4": {
-                    "Seld\\JsonLint\\": "src/Seld/JsonLint/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "MIT"
-            ],
-            "authors": [
-                {
-                    "name": "Jordi Boggiano",
-                    "email": "j.boggiano@seld.be",
-                    "homepage": "http://seld.be"
-                }
-            ],
-            "description": "JSON Linter",
-            "keywords": [
-                "json",
-                "linter",
-                "parser",
-                "validator"
-            ],
-            "time": "2018-01-24T12:46:19+00:00"
-        },
-        {
-            "name": "symfony/polyfill-ctype",
-            "version": "v1.9.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/symfony/polyfill-ctype.git",
-                "reference": "e3d826245268269cd66f8326bd8bc066687b4a19"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19",
-                "reference": "e3d826245268269cd66f8326bd8bc066687b4a19",
-                "shasum": ""
-            },
-            "require": {
-                "php": ">=5.3.3"
-            },
-            "suggest": {
-                "ext-ctype": "For best performance"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.9-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Symfony\\Polyfill\\Ctype\\": ""
-                },
-                "files": [
-                    "bootstrap.php"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "MIT"
-            ],
-            "authors": [
-                {
-                    "name": "Symfony Community",
-                    "homepage": "https://symfony.com/contributors"
-                },
-                {
-                    "name": "Gert de Pagter",
-                    "email": "BackEndTea@gmail.com"
-                }
-            ],
-            "description": "Symfony polyfill for ctype functions",
-            "homepage": "https://symfony.com",
-            "keywords": [
-                "compatibility",
-                "ctype",
-                "polyfill",
-                "portable"
-            ],
-            "time": "2018-08-06T14:22:27+00:00"
-        },
-        {
-            "name": "symfony/yaml",
-            "version": "v3.4.14",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/symfony/yaml.git",
-                "reference": "810af2d35fc72b6cf5c01116806d2b65ccaaf2e2"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/symfony/yaml/zipball/810af2d35fc72b6cf5c01116806d2b65ccaaf2e2",
-                "reference": "810af2d35fc72b6cf5c01116806d2b65ccaaf2e2",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.5.9|>=7.0.8",
-                "symfony/polyfill-ctype": "~1.8"
-            },
-            "conflict": {
-                "symfony/console": "<3.4"
-            },
-            "require-dev": {
-                "symfony/console": "~3.4|~4.0"
-            },
-            "suggest": {
-                "symfony/console": "For validating YAML files using the lint command"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "3.4-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Symfony\\Component\\Yaml\\": ""
-                },
-                "exclude-from-classmap": [
-                    "/Tests/"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "MIT"
-            ],
-            "authors": [
-                {
-                    "name": "Fabien Potencier",
-                    "email": "fabien@symfony.com"
-                },
-                {
-                    "name": "Symfony Community",
-                    "homepage": "https://symfony.com/contributors"
-                }
-            ],
-            "description": "Symfony Yaml Component",
-            "homepage": "https://symfony.com",
-            "time": "2018-07-26T11:19:56+00:00"
-        },
-        {
-            "name": "webmozart/assert",
-            "version": "1.3.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/webmozart/assert.git",
-                "reference": "0df1908962e7a3071564e857d86874dad1ef204a"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/webmozart/assert/zipball/0df1908962e7a3071564e857d86874dad1ef204a",
-                "reference": "0df1908962e7a3071564e857d86874dad1ef204a",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.3.3 || ^7.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^4.6",
-                "sebastian/version": "^1.0.1"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.3-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Webmozart\\Assert\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "MIT"
-            ],
-            "authors": [
-                {
-                    "name": "Bernhard Schussek",
-                    "email": "bschussek@gmail.com"
-                }
-            ],
-            "description": "Assertions to validate method input/output with nice error messages.",
-            "keywords": [
-                "assert",
-                "check",
-                "validate"
-            ],
-            "time": "2018-01-29T19:49:41+00:00"
-        },
-        {
-            "name": "zendframework/zend-code",
-            "version": "2.6.3",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-code.git",
-                "reference": "95033f061b083e16cdee60530ec260d7d628b887"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-code/zipball/95033f061b083e16cdee60530ec260d7d628b887",
-                "reference": "95033f061b083e16cdee60530ec260d7d628b887",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.5 || 7.0.0 - 7.0.4 || ^7.0.6",
-                "zendframework/zend-eventmanager": "^2.6 || ^3.0"
-            },
-            "require-dev": {
-                "doctrine/annotations": "~1.0",
-                "fabpot/php-cs-fixer": "1.7.*",
-                "phpunit/phpunit": "^4.8.21",
-                "zendframework/zend-stdlib": "^2.7 || ^3.0"
-            },
-            "suggest": {
-                "doctrine/annotations": "Doctrine\\Common\\Annotations >=1.0 for annotation features",
-                "zendframework/zend-stdlib": "Zend\\Stdlib component"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.6-dev",
-                    "dev-develop": "2.7-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Code\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "provides facilities to generate arbitrary code using an object oriented interface",
-            "homepage": "https://github.com/zendframework/zend-code",
-            "keywords": [
-                "code",
-                "zf2"
-            ],
-            "time": "2016-04-20T17:26:42+00:00"
-        },
-        {
-            "name": "zendframework/zend-console",
-            "version": "2.7.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-console.git",
-                "reference": "e8aa08da83de3d265256c40ba45cd649115f0e18"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-console/zipball/e8aa08da83de3d265256c40ba45cd649115f0e18",
-                "reference": "e8aa08da83de3d265256c40ba45cd649115f0e18",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-stdlib": "^2.7.7 || ^3.1"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.23 || ^6.4.3",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-filter": "^2.7.2",
-                "zendframework/zend-json": "^2.6 || ^3.0",
-                "zendframework/zend-validator": "^2.10.1"
-            },
-            "suggest": {
-                "zendframework/zend-filter": "To support DefaultRouteMatcher usage",
-                "zendframework/zend-validator": "To support DefaultRouteMatcher usage"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.7.x-dev",
-                    "dev-develop": "2.8.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Console\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Build console applications using getopt syntax or routing, complete with prompts",
-            "keywords": [
-                "ZendFramework",
-                "console",
-                "zf"
-            ],
-            "time": "2018-01-25T19:08:04+00:00"
-        },
-        {
-            "name": "zendframework/zend-debug",
-            "version": "2.6.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-debug.git",
-                "reference": "cb423facd6f2e875a3cb44cf992b6bd1f5fd1a96"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-debug/zipball/cb423facd6f2e875a3cb44cf992b6bd1f5fd1a96",
-                "reference": "cb423facd6f2e875a3cb44cf992b6bd1f5fd1a96",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-escaper": "^2.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.5",
-                "zendframework/zend-coding-standard": "~1.0.0"
-            },
-            "suggest": {
-                "ext-xdebug": "XDebug, for better backtrace output"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.6.x-dev",
-                    "dev-develop": "2.7.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Debug\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Safely dump debug information to HTML",
-            "keywords": [
-                "ZendFramework",
-                "debug",
-                "zf"
-            ],
-            "time": "2018-04-30T20:10:31+00:00"
-        },
-        {
-            "name": "zendframework/zend-developer-tools",
-            "version": "1.2.1",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-developer-tools.git",
-                "reference": "44dd6b98560f07ec22814693da76de5ffacca9ed"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-developer-tools/zipball/44dd6b98560f07ec22814693da76de5ffacca9ed",
-                "reference": "44dd6b98560f07ec22814693da76de5ffacca9ed",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-debug": "^2.5",
-                "zendframework/zend-eventmanager": "^2.6.2 || ^3.0",
-                "zendframework/zend-modulemanager": "^2.7",
-                "zendframework/zend-mvc": "^2.7 || ^3.0.1",
-                "zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3",
-                "zendframework/zend-stdlib": "^2.7 || ^3.0",
-                "zendframework/zend-view": "^2.6"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.25 || ^6.4.4 || ^7.1",
-                "zendframework/zend-coding-standard": "~1.0.0"
-            },
-            "suggest": {
-                "aist/aist-git-tools": "Show you informations about current GIT repository",
-                "bjyoungblood/bjy-profiler": "Version: dev-master, allows the usage of the (Zend) Db collector.",
-                "doctrine/doctrine-orm-module": "Profile DoctrineORM queries",
-                "jhuet/zdt-logger-module": "Show you log data from Zend\\Log",
-                "ocramius/ocra-service-manager": "OcraServiceManager can help you track dependencies within your application.",
-                "san/san-session-toolbar": "SanSessionToolbar can help you see current Zend\\Session data you're using within your application.",
-                "snapshotpl/zf-snap-event-debugger": "ZfSnapEventDebugger can help you debug events from Zend\\EventManager"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.2.x-dev",
-                    "dev-develop": "1.3.x-dev"
-                },
-                "zf": {
-                    "module": "ZendDeveloperTools"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "ZendDeveloperTools\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "authors": [
-                {
-                    "name": "Evan Coury",
-                    "email": "me@evancoury.com",
-                    "homepage": "http://blog.evan.pro/"
-                },
-                {
-                    "name": "Eric Boh",
-                    "email": "cossish@gmail.com"
-                }
-            ],
-            "description": "Module for developer and debug tools for use with zend-mvc applications.",
-            "keywords": [
-                "ZendFramework",
-                "debug",
-                "developer",
-                "module",
-                "zf"
-            ],
-            "time": "2018-04-18T13:10:17+00:00"
-        },
-        {
-            "name": "zendframework/zend-dom",
-            "version": "2.7.1",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-dom.git",
-                "reference": "ec2c66c2bb0046e895651b24f2ebb83058b9bbca"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-dom/zipball/ec2c66c2bb0046e895651b24f2ebb83058b9bbca",
-                "reference": "ec2c66c2bb0046e895651b24f2ebb83058b9bbca",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.23 || ^6.4.3",
-                "zendframework/zend-coding-standard": "~1.0.0"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.7.x-dev",
-                    "dev-develop": "2.8.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "Zend\\Dom\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "provides tools for working with DOM documents and structures",
-            "keywords": [
-                "ZendFramework",
-                "dom",
-                "zf"
-            ],
-            "time": "2018-04-09T20:18:00+00:00"
-        },
-        {
-            "name": "zendframework/zend-test",
-            "version": "3.2.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zendframework/zend-test.git",
-                "reference": "626606425072e9d513df3bf723913c0bb9d03f8c"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zendframework/zend-test/zipball/626606425072e9d513df3bf723913c0bb9d03f8c",
-                "reference": "626606425072e9d513df3bf723913c0bb9d03f8c",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0",
-                "sebastian/version": "^1.0.4 || ^2.0",
-                "zendframework/zend-console": "^2.6",
-                "zendframework/zend-dom": "^2.6",
-                "zendframework/zend-eventmanager": "^2.6.2 || ^3.0",
-                "zendframework/zend-http": "^2.5.4",
-                "zendframework/zend-mvc": "^3.0",
-                "zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3",
-                "zendframework/zend-stdlib": "^2.7 || ^3.0",
-                "zendframework/zend-uri": "^2.5",
-                "zendframework/zend-view": "^2.6.3"
-            },
-            "require-dev": {
-                "mikey179/vfsstream": "~1.2",
-                "symfony/finder": "^2.2",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-i18n": "^2.6",
-                "zendframework/zend-log": "^2.7.1",
-                "zendframework/zend-modulemanager": "^2.7.1",
-                "zendframework/zend-mvc-console": "^1.1.8",
-                "zendframework/zend-mvc-plugin-flashmessenger": "^0.1.0",
-                "zendframework/zend-serializer": "^2.6.1",
-                "zendframework/zend-session": "^2.8.5",
-                "zendframework/zend-validator": "^2.8"
-            },
-            "suggest": {
-                "zendframework/zend-mvc-console": "^1.1.8, to test MVC <-> console integration"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "3.1.x-dev",
-                    "dev-develop": "3.2.x-dev"
-                }
-            },
-            "autoload": {
-                "files": [
-                    "autoload/phpunit-class-aliases.php"
-                ],
-                "psr-4": {
-                    "Zend\\Test\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Tools to facilitate unit testing of zend-mvc applications",
-            "keywords": [
-                "ZendFramework",
-                "test",
-                "zf"
-            ],
-            "time": "2018-04-07T09:56:35+00:00"
-        },
-        {
-            "name": "zfcampus/zf-apigility-admin",
-            "version": "1.6.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zfcampus/zf-apigility-admin.git",
-                "reference": "38379c73871767a48a8cef386de83424d7a51051"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zfcampus/zf-apigility-admin/zipball/38379c73871767a48a8cef386de83424d7a51051",
-                "reference": "38379c73871767a48a8cef386de83424d7a51051",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-code": "^2.6.3 || ^3.2",
-                "zendframework/zend-eventmanager": "^2.6.3 || ^3.0.1",
-                "zendframework/zend-filter": "^2.8",
-                "zendframework/zend-http": "^2.8",
-                "zendframework/zend-hydrator": "^1.1 || ^2.4",
-                "zendframework/zend-inputfilter": "^2.8.1",
-                "zendframework/zend-modulemanager": "^2.8.2",
-                "zendframework/zend-mvc": "^2.7.15 || ^3.1.1",
-                "zendframework/zend-servicemanager": "^2.7.10 || ^3.3.2",
-                "zendframework/zend-stdlib": "^2.7.7 || ^3.2",
-                "zendframework/zend-validator": "^2.10.2",
-                "zendframework/zend-view": "^2.10",
-                "zfcampus/zf-api-problem": "^1.3",
-                "zfcampus/zf-apigility": "^1.4",
-                "zfcampus/zf-apigility-admin-ui": "^1.3.9",
-                "zfcampus/zf-apigility-provider": "^1.3",
-                "zfcampus/zf-configuration": "1.3.3",
-                "zfcampus/zf-content-negotiation": "^1.4",
-                "zfcampus/zf-content-validation": "^1.4",
-                "zfcampus/zf-hal": "^1.5",
-                "zfcampus/zf-mvc-auth": "^1.5",
-                "zfcampus/zf-oauth2": "^1.5",
-                "zfcampus/zf-rest": "^1.4",
-                "zfcampus/zf-rpc": "^1.4",
-                "zfcampus/zf-versioning": "^1.3"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.5",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-config": "^2.6 || ^3.2",
-                "zendframework/zend-loader": "^2.6",
-                "zfcampus/zf-deploy": "^1.3"
-            },
-            "bin": [
-                "bin/apigility-upgrade-to-1.5"
-            ],
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.6.x-dev",
-                    "dev-develop": "1.7.x-dev"
-                },
-                "zf": {
-                    "module": "ZF\\Apigility\\Admin"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "ZF\\Apigility\\Admin\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Apigility Admin module",
-            "homepage": "http://apigility.org/",
-            "keywords": [
-                "api",
-                "apigility",
-                "framework",
-                "zf2"
-            ],
-            "time": "2018-05-08T15:28:19+00:00"
-        },
-        {
-            "name": "zfcampus/zf-apigility-admin-ui",
-            "version": "1.3.9",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zfcampus/zf-apigility-admin-ui.git",
-                "reference": "20f5b79643c00fdc9b8e3ddd33d9700a9240ccd6"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zfcampus/zf-apigility-admin-ui/zipball/20f5b79643c00fdc9b8e3ddd33d9700a9240ccd6",
-                "reference": "20f5b79643c00fdc9b8e3ddd33d9700a9240ccd6",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-view": "^2.8.1"
-            },
-            "require-dev": {
-                "zendframework/zend-console": "^2.6"
-            },
-            "suggest": {
-                "rwoverdijk/assetmanager": "^1.7, to expose assets under the document root (may not yet be released)",
-                "zfcampus/zf-asset-manager": "^1.0, to expose assets under the document root, until rwoverdijk/assetmanager 1.7 is released"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.3-dev",
-                    "dev-develop": "1.4-dev"
-                }
-            },
-            "autoload": {
-                "classmap": [
-                    "Module.php"
-                ]
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Apigility Admin UI module",
-            "homepage": "http://apigility.org/",
-            "keywords": [
-                "api",
-                "apigility",
-                "framework",
-                "zf2"
-            ],
-            "time": "2016-12-19T17:46:02+00:00"
-        },
-        {
-            "name": "zfcampus/zf-asset-manager",
-            "version": "1.2.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zfcampus/zf-asset-manager.git",
-                "reference": "8987509ee4d9cadd153e54cfb6c5be2ac6d51aad"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zfcampus/zf-asset-manager/zipball/8987509ee4d9cadd153e54cfb6c5be2ac6d51aad",
-                "reference": "8987509ee4d9cadd153e54cfb6c5be2ac6d51aad",
-                "shasum": ""
-            },
-            "require": {
-                "composer-plugin-api": "^1.1",
-                "php": "^5.6 || ^7.0"
-            },
-            "require-dev": {
-                "composer/composer": ">=1.0.0-alpha10",
-                "mikey179/vfsstream": "^1.6",
-                "phpunit/phpunit": "^5.7.23 || ^6.4.3",
-                "squizlabs/php_codesniffer": "^2.6.2"
-            },
-            "type": "composer-plugin",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.2-dev",
-                    "dev-develop": "1.3-dev"
-                },
-                "class": "ZF\\AssetManager\\Plugin"
-            },
-            "autoload": {
-                "psr-4": {
-                    "ZF\\AssetManager\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Composer plugin for copying module assets into application document roots.",
-            "time": "2017-11-02T22:28:50+00:00"
-        },
-        {
-            "name": "zfcampus/zf-composer-autoloading",
-            "version": "2.1.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zfcampus/zf-composer-autoloading.git",
-                "reference": "537145efec53c784ddc06f1af93102ddede52ceb"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zfcampus/zf-composer-autoloading/zipball/537145efec53c784ddc06f1af93102ddede52ceb",
-                "reference": "537145efec53c784ddc06f1af93102ddede52ceb",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-stdlib": "^3.1"
-            },
-            "require-dev": {
-                "mikey179/vfsstream": "^1.6.4",
-                "mockery/mockery": "^1.0",
-                "php-mock/php-mock-phpunit": "^1.1.2 || ^2.0",
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.5",
-                "zendframework/zend-coding-standard": "~1.0.0"
-            },
-            "bin": [
-                "bin/zf-composer-autoloading"
-            ],
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "2.1.x-dev",
-                    "dev-develop": "2.2.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "ZF\\ComposerAutoloading\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Sets up Composer-based autoloading for your Zend Framework modules",
-            "homepage": "http://apigility.org/",
-            "keywords": [
-                "ZendFramework",
-                "autoloading",
-                "console",
-                "framework",
-                "zf"
-            ],
-            "time": "2018-05-03T22:00:38+00:00"
-        },
-        {
-            "name": "zfcampus/zf-console",
-            "version": "1.4.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zfcampus/zf-console.git",
-                "reference": "e4dd16760fe219d8b2745865a883b0e0a492a3ed"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zfcampus/zf-console/zipball/e4dd16760fe219d8b2745865a883b0e0a492a3ed",
-                "reference": "e4dd16760fe219d8b2745865a883b0e0a492a3ed",
-                "shasum": ""
-            },
-            "require": {
-                "php": "^5.6 || ^7.0",
-                "psr/container": "^1.0",
-                "zendframework/zend-console": "^2.6"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.25 || ^6.4.4",
-                "zendframework/zend-coding-standard": "~1.0.0",
-                "zendframework/zend-filter": "^2.7.1",
-                "zendframework/zend-validator": "^2.8.1"
-            },
-            "suggest": {
-                "zendframework/zend-filter": "^2.7.1; Useful for filtering/normalizing argument values",
-                "zendframework/zend-validator": "^2.8.1; Useful for providing more thorough argument validation logic"
-            },
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.4-dev",
-                    "dev-develop": "1.5-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "ZF\\Console\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Library for creating and dispatching console commands",
-            "keywords": [
-                "ZendFramework",
-                "console",
-                "zf"
-            ],
-            "time": "2017-11-27T17:17:19+00:00"
-        },
-        {
-            "name": "zfcampus/zf-deploy",
-            "version": "1.3.0",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/zfcampus/zf-deploy.git",
-                "reference": "2dfdd510c8a08a852f1109407d2e33ddd2f73781"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/zfcampus/zf-deploy/zipball/2dfdd510c8a08a852f1109407d2e33ddd2f73781",
-                "reference": "2dfdd510c8a08a852f1109407d2e33ddd2f73781",
-                "shasum": ""
-            },
-            "require": {
-                "herrera-io/phar-update": "~1.0",
-                "php": "^5.6 || ^7.0",
-                "zendframework/zend-filter": "^2.7.1",
-                "zfcampus/zf-console": "^1.3"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.5",
-                "zendframework/zend-coding-standard": "~1.0.0"
-            },
-            "bin": [
-                "bin/zfdeploy.php"
-            ],
-            "type": "library",
-            "extra": {
-                "branch-alias": {
-                    "dev-master": "1.3.x-dev",
-                    "dev-develop": "1.4.x-dev"
-                }
-            },
-            "autoload": {
-                "psr-4": {
-                    "ZF\\Deploy\\": "src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "BSD-3-Clause"
-            ],
-            "description": "Deployment tool for Zend Framework applications",
-            "keywords": [
-                "ZendFramework",
-                "apigility",
-                "zf"
-            ],
-            "time": "2018-05-07T15:51:51+00:00"
-        }
-    ],
-    "aliases": [],
-    "minimum-stability": "stable",
-    "stability-flags": [],
-    "prefer-stable": false,
-    "prefer-lowest": false,
-    "platform": {
-        "php": "^5.6 || ^7.0"
-    },
-    "platform-dev": []
-}
Index: src/webapp/apigility/config/application.config.php
===================================================================
--- src/webapp/apigility/config/application.config.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,28 +1,0 @@
-<?php
-/**
- * @license   http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
- * @copyright Copyright (c) 2014-2016 Zend Technologies USA Inc. (http://www.zend.com)
- */
-
-return [
-    // Retrieve the list of modules for this application.
-    'modules' => include __DIR__ . '/modules.config.php',
-    // This should be an array of paths in which modules reside.
-    // If a string key is provided, the listener will consider that a module
-    // namespace, the value of that key the specific path to that module's
-    // Module class.
-    'module_listener_options' => [
-        'module_paths' => [
-            './module',
-            './vendor'
-        ],
-        // Using __DIR__ to ensure cross-platform compatibility. Some platforms --
-        // e.g., IBM i -- have problems with globs that are not qualified.
-        'config_glob_paths' => [realpath(__DIR__) . '/autoload/{,*.}{global,local}.php'],
-        'config_cache_key' => 'application.config.cache',
-        'config_cache_enabled' => true,
-        'module_map_cache_key' => 'application.module.cache',
-        'module_map_cache_enabled' => true,
-        'cache_dir' => 'data/cache/',
-    ],
-];
Index: src/webapp/apigility/config/autoload/.gitignore
===================================================================
--- src/webapp/apigility/config/autoload/.gitignore	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,4 +1,0 @@
-local.php
-local-development.php
-*.local.php
-*.local-development.php
Index: src/webapp/apigility/config/autoload/README.md
===================================================================
--- src/webapp/apigility/config/autoload/README.md	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,8 +1,0 @@
-About this directory:
-=====================
-
-By default, this application is configured to load all configs in
-`./config/autoload/{,*.}{global,local}.php`. Doing this provides a
-location for a developer to drop in configuration override files provided by
-modules, as well as cleanly provide individual, application-wide config files
-for things like database connections, etc.
Index: src/webapp/apigility/config/autoload/global-development.php
===================================================================
--- src/webapp/apigility/config/autoload/global-development.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,20 +1,0 @@
-<?php
-/**
- * @license   http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
- * @copyright Copyright (c) 2014-2016 Zend Technologies USA Inc. (http://www.zend.com)
- */
-
-use ZF\Apigility\Admin\Model\ModulePathSpec;
-
-return [
-    'view_manager' => [
-        'display_exceptions' => true,
-    ],
-    'zf-apigility-admin' => [
-        'path_spec' => ModulePathSpec::PSR_4,
-    ],
-    'zf-configuration' => [
-        'enable_short_array' => true,
-        'class_name_scalars' => true,
-    ],
-];
Index: src/webapp/apigility/config/autoload/global.php
===================================================================
--- src/webapp/apigility/config/autoload/global.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,29 +1,0 @@
-<?php
-return [
-    'zf-content-negotiation' => [
-        'selectors' => [],
-    ],
-    'db' => [
-        'adapters' => [
-            'gnuboat_mapservice_db' => [],
-        ],
-    ],
-    'zf-mvc-auth' => [
-        'authentication' => [
-            'map' => [
-                'gnuboat_mapservice\\V1' => 'gnuboat-oauth',
-            ],
-        ],
-    ],
-    'router' => [
-        'routes' => [
-            'oauth' => [
-                'options' => [
-                    'spec' => '%oauth%',
-                    'regex' => '(?P<oauth>(/oauth))',
-                ],
-                'type' => 'regex',
-            ],
-        ],
-    ],
-];
Index: src/webapp/apigility/config/autoload/local.php.dist
===================================================================
--- src/webapp/apigility/config/autoload/local.php.dist	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,14 +1,0 @@
-<?php
-/**
- * Local Configuration Override
- *
- * This configuration override file is for overriding environment-specific and
- * security-sensitive configuration information. Copy this file without the
- * .dist extension at the end and populate values as needed.
- *
- * @NOTE: This file is ignored from Git by default with the .gitignore included
- * in ZendSkeletonApplication. This is a good practice, as it prevents sensitive
- * credentials from accidentally being committed into version control.
- */
-
-return [];
Index: src/webapp/apigility/config/autoload/user.global.php
===================================================================
--- src/webapp/apigility/config/autoload/user.global.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,21 +1,0 @@
-<?php
-/**
- * @license   http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
- * @copyright Copyright (c) 2014 Zend Technologies USA Inc. (http://www.zend.com)
- */
-
-/**
- * Global Configuration Override
- *
- * You can use this file for overriding configuration values from modules, etc.
- * You would place values in here that are agnostic to the environment and not
- * sensitive to security.
- *
- * @NOTE: In practice, this file will typically be INCLUDED in your source
- * control, so do not include passwords or other sensitive information in this
- * file.
- */
-
-return [
-    // ...
-];
Index: src/webapp/apigility/config/autoload/zf-mvc-auth-oauth2-override.global.php
===================================================================
--- src/webapp/apigility/config/autoload/zf-mvc-auth-oauth2-override.global.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,13 +1,0 @@
-<?php
-/**
- * This file was autogenerated by zfcampus/zf-mvc-auth (bin/zf-mvc-auth-oauth2-override.php),
- * and overrides the ZF\OAuth2\Service\OAuth2Server to provide the ability to create named
- * OAuth2\Server instances.
- */
-return [
-    'service_manager' => [
-        'factories' => [
-            \ZF\OAuth2\Service\OAuth2Server::class => \ZF\MvcAuth\Factory\NamedOAuth2ServerFactory::class,
-        ],
-    ],
-];
Index: src/webapp/apigility/config/autoload/zfconfig.global.php
===================================================================
--- src/webapp/apigility/config/autoload/zfconfig.global.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,13 +1,0 @@
-<?php
-/**
- * @license   http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
- * @copyright Copyright (c) 2014 Zend Technologies USA Inc. (http://www.zend.com)
- */
-
-return [
-    'view_manager' => [
-        'strategies' => [
-            'ViewJsonStrategy',
-        ],
-    ],
-];
Index: src/webapp/apigility/config/development.config.php.dist
===================================================================
--- src/webapp/apigility/config/development.config.php.dist	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,19 +1,0 @@
-<?php
-/**
- * @license   http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
- * @copyright Copyright (c) 2014-2016 Zend Technologies USA Inc. (http://www.zend.com)
- */
-
-return [
-    // Development time modules
-    'modules' => [
-        'ZendDeveloperTools',
-        'ZF\Apigility\Admin',
-    ],
-    // development time configuration globbing
-    'module_listener_options' => [
-        'config_glob_paths' => [realpath(__DIR__) . '/autoload/{,*.}{global,local}-development.php'],
-        'config_cache_enabled' => false,
-        'module_map_cache_enabled' => false,
-    ],
-];
Index: src/webapp/apigility/config/modules.config.old
===================================================================
--- src/webapp/apigility/config/modules.config.old	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,31 +1,0 @@
-<?php
-/**
- * @license   http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
- * @copyright Copyright (c) 2014-2016 Zend Technologies USA Inc. (http://www.zend.com)
- */
-
-/**
- * List of enabled modules for this application.
- */
-return [
-    'Zend\Db',
-    'Zend\Filter',
-    'Zend\Hydrator',
-    'Zend\InputFilter',
-    'Zend\Paginator',
-    'Zend\Router',
-    'Zend\Validator',
-    'ZF\Apigility',
-    'ZF\Apigility\Documentation',
-    'ZF\ApiProblem',
-    'ZF\Configuration',
-    'ZF\OAuth2',
-    'ZF\MvcAuth',
-    'ZF\Hal',
-    'ZF\ContentNegotiation',
-    'ZF\ContentValidation',
-    'ZF\Rest',
-    'ZF\Rpc',
-    'ZF\Versioning',
-    'Application',
-];
Index: src/webapp/apigility/config/modules.config.php
===================================================================
--- src/webapp/apigility/config/modules.config.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,30 +1,0 @@
-<?php
-/**
- * Configuration file generated by ZF Apigility Admin
- *
- * The previous config file has been stored in ./config/modules.config.old
- */
-return [
-    'Zend\Session',
-    'Zend\\Db',
-    'Zend\\Filter',
-    'Zend\\Hydrator',
-    'Zend\\InputFilter',
-    'Zend\\Paginator',
-    'Zend\\Router',
-    'Zend\\Validator',
-    'ZF\\Apigility',
-    'ZF\\Apigility\\Documentation',
-    'ZF\\ApiProblem',
-    'ZF\\Configuration',
-    'ZF\\OAuth2',
-    'ZF\\MvcAuth',
-    'ZF\\Hal',
-    'ZF\\ContentNegotiation',
-    'ZF\\ContentValidation',
-    'ZF\\Rest',
-    'ZF\\Rpc',
-    'ZF\\Versioning',
-    'Application',
-    'gnuboat_mapservice',
-];
Index: src/webapp/apigility/data/htpasswd
===================================================================
--- src/webapp/apigility/data/htpasswd	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,1 +1,0 @@
-test:$apr1$BD2srhKZ$4aI721ahsU1QuBMF.Fczh.
Index: src/webapp/apigility/docker-compose.yml
===================================================================
--- src/webapp/apigility/docker-compose.yml	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,10 +1,0 @@
-version: "2"
-services:
-  apigility:
-    build:
-      context: .
-      dockerfile: Dockerfile
-    ports:
-     - "8080:80"
-    volumes:
-     - .:/var/www
Index: src/webapp/apigility/module/Application/config/module.config.php
===================================================================
--- src/webapp/apigility/module/Application/config/module.config.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,47 +1,0 @@
-<?php
-/**
- * @license   http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
- * @copyright Copyright (c) 2014-2016 Zend Technologies USA Inc. (http://www.zend.com)
- */
-
-namespace Application;
-
-use Zend\ServiceManager\Factory\InvokableFactory;
-
-return [
-    'router' => [
-        'routes' => [
-            'home' => [
-                'type' => 'Literal',
-                'options' => [
-                    'route'    => '/',
-                    'defaults' => [
-                        'controller' => Controller\IndexController::class,
-                        'action'     => 'index',
-                    ],
-                ],
-            ],
-        ],
-    ],
-    'controllers' => [
-        'factories' => [
-            Controller\IndexController::class => InvokableFactory::class,
-        ],
-    ],
-    'view_manager' => [
-        'display_not_found_reason' => true,
-        'display_exceptions'       => true,
-        'doctype'                  => 'HTML5',
-        'not_found_template'       => 'error/404',
-        'exception_template'       => 'error/index',
-        'template_map' => [
-            'layout/layout'           => __DIR__ . '/../view/layout/layout.phtml',
-            'application/index/index' => __DIR__ . '/../view/application/index/index.phtml',
-            'error/404'               => __DIR__ . '/../view/error/404.phtml',
-            'error/index'             => __DIR__ . '/../view/error/index.phtml',
-        ],
-        'template_path_stack' => [
-            __DIR__ . '/../view',
-        ],
-    ],
-];
Index: src/webapp/apigility/module/Application/src/Authentication/SessionAdapter.php
===================================================================
--- src/webapp/apigility/module/Application/src/Authentication/SessionAdapter.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,59 +1,0 @@
-<?php
-// From https://apigility.org/documentation/auth/user-differentiation
-
-namespace Application\Authentication;
-
-use ZF\MvcAuth\Authentication\AdapterInterface;
-use Zend\Http\Request;
-use Zend\Http\Response;
-use ZF\MvcAuth\Identity\IdentityInterface;
-use ZF\MvcAuth\MvcAuthEvent;
-use Zend\Session\Container;
-use Application\Identity;
-
-final class SessionAdapter implements AdapterInterface
-{
-    public function provides()
-    {
-        return [
-            'session',
-        ];
-    }
-
-    public function matches($type)
-    {
-        return $type == 'session';
-    }
-
-    public function getTypeFromRequest(Request $request)
-    {
-        return false;
-    }
-
-    public function preAuth(Request $request, Response $response)
-    {
-    }
-
-    public function authenticate(Request $request, Response $response, MvcAuthEvent $mvcAuthEvent)
-    {
-        $session = new Container('webauth');
-
-        if ($session->auth) {
-            $userIdentity = new Identity\UserIdentity($session->auth);
-            $userIdentity->setName('user');
-
-            return $userIdentity;
-        }
-
-        // Force login for all other routes
-        $mvcAuthEvent->stopPropagation();
-        $session->redirect = $request->getUriString();
-        $response->getHeaders()->addHeaderLine('Location', '/login');
-        $response->setStatusCode(302);
-        $response->sendHeaders();
-
-        return $response;
-    }
-}
-
-?>
Index: src/webapp/apigility/module/Application/src/Authorization/AuthorizationListener.php
===================================================================
--- src/webapp/apigility/module/Application/src/Authorization/AuthorizationListener.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,27 +1,0 @@
-<?php
-// From https://apigility.org/documentation/auth/user-differentiation
-
-namespace Application\Authorization;
-
-use Application\Controller\IndexController;
-use ZF\MvcAuth\MvcAuthEvent;
-use ZF\OAuth2\Controller\Auth;
-
-final class AuthorizationListener
-{
-    public function __invoke(MvcAuthEvent $mvcAuthEvent)
-    {
-        $authorization = $mvcAuthEvent->getAuthorizationService();
-
-        // Deny from all
-        $authorization->deny();
-
-        $authorization->addResource(IndexController::class . '::index');
-        $authorization->allow('guest', IndexController::class . '::index');
-
-        $authorization->addResource(Auth::class . '::authorize');
-        $authorization->allow('user', Auth::class . '::authorize');
-    }
-}
-
-?>
Index: src/webapp/apigility/module/Application/src/Controller/IndexController.php
===================================================================
--- src/webapp/apigility/module/Application/src/Controller/IndexController.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,22 +1,0 @@
-<?php
-/**
- * @license   http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
- * @copyright Copyright (c) 2014-2016 Zend Technologies USA Inc. (http://www.zend.com)
- */
-
-namespace Application\Controller;
-
-use Zend\Mvc\Controller\AbstractActionController;
-use Zend\View\Model\ViewModel;
-use ZF\Apigility\Admin\Module as AdminModule;
-
-class IndexController extends AbstractActionController
-{
-    public function indexAction()
-    {
-        if (class_exists(AdminModule::class, false)) {
-            return $this->redirect()->toRoute('zf-apigility/ui');
-        }
-        return new ViewModel();
-    }
-}
Index: src/webapp/apigility/module/Application/src/Identity/UserIdentity.php
===================================================================
--- src/webapp/apigility/module/Application/src/Identity/UserIdentity.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,46 +1,0 @@
-<?php
-// From https://apigility.org/documentation/auth/user-differentiation
-
-namespace Application\Identity;
-
-use ZF\MvcAuth\Identity\IdentityInterface;
-use Zend\Permissions\Rbac\AbstractRole as AbstractRbacRole;
-
-final class UserIdentity extends AbstractRbacRole implements IdentityInterface
-{
-    private $user;
-    private $name;
-
-    public function __construct(array $user)
-    {
-        $this->user = $user;
-    }
-
-    public function getAuthenticationIdentity()
-    {
-        return $this->user;
-    }
-
-    public function getId()
-    {
-        return $this->user['id'];
-    }
-
-    public function getUser()
-    {
-        return $this->getAuthenticationIdentity();
-    }
-
-    public function getRoleId()
-    {
-        return $this->name;
-    }
-
-    // Alias for roleId
-    public function setName($name)
-    {
-        $this->name = $name;
-    }
-}
-
-?>
Index: src/webapp/apigility/module/Application/src/Module.php
===================================================================
--- src/webapp/apigility/module/Application/src/Module.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,39 +1,0 @@
-<?php
-/**
- * @license   http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
- * @copyright Copyright (c) 2014-2016 Zend Technologies USA Inc. (http://www.zend.com)
- *
- * partly copied from https://apigility.org/documentation/auth/user-differentiation
- */
-
-namespace Application;
-
-use ZF\MvcAuth\Authentication\DefaultAuthenticationListener;
-use Zend\EventManager\EventInterface;
-use ZF\MvcAuth\MvcAuthEvent;
-
-class Module
-{
-    public function getConfig()
-    {
-        return include __DIR__ . '/../config/module.config.php';
-    }
-    
-    public function onBootstrap(EventInterface $e)
-    {
-        $app       = $e->getApplication();
-        $container = $app->getServiceManager();
-
-        // Add Authentication Adapter for session
-        $defaultAuthenticationListener = $container->get(DefaultAuthenticationListener::class);
-        $defaultAuthenticationListener->attach(new Authentication\SessionAdapter());
-        
-        // Add Authorization
-		$eventManager = $app->getEventManager();
-		$eventManager->attach(
-			MvcAuthEvent::EVENT_AUTHORIZATION,
-			new Authorization\AuthorizationListener(),
-			100
-		);
-    }
-}
Index: src/webapp/apigility/module/Application/test/Controller/IndexControllerTest.php
===================================================================
--- src/webapp/apigility/module/Application/test/Controller/IndexControllerTest.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,56 +1,0 @@
-<?php
-/**
- * @license   http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
- * @copyright Copyright (c) 2016 Zend Technologies USA Inc. (http://www.zend.com)
- */
-
-namespace ApplicationTest\Controller;
-
-use Application\Controller\IndexController;
-use Zend\Stdlib\ArrayUtils;
-use Zend\Test\PHPUnit\Controller\AbstractHttpControllerTestCase;
-
-class IndexControllerTest extends AbstractHttpControllerTestCase
-{
-    public function setUp()
-    {
-        // The module configuration should still be applicable for tests.
-        // You can override configuration here with test case specific values,
-        // such as sample view templates, path stacks, module_listener_options,
-        // etc.
-        $configOverrides = [
-            'module_listener_options' => [
-                'config_cache_enabled' => false,
-            ],
-        ];
-
-        $this->setApplicationConfig(ArrayUtils::merge(
-            include __DIR__ . '/../../../../config/application.config.php',
-            $configOverrides
-        ));
-
-        parent::setUp();
-    }
-
-    public function testIndexActionCanBeAccessed()
-    {
-        $this->dispatch('/', 'GET');
-        $this->assertResponseStatusCode(200);
-        $this->assertModuleName('application');
-        $this->assertControllerName(IndexController::class); // as specified in router's controller name alias
-        $this->assertControllerClass('IndexController');
-        $this->assertMatchedRouteName('home');
-    }
-
-    public function testIndexActionViewModelTemplateRenderedWithinLayout()
-    {
-        $this->dispatch('/', 'GET');
-        $this->assertQuery('.hero-unit');
-    }
-
-    public function testInvalidRouteDoesNotCrash()
-    {
-        $this->dispatch('/invalid/route', 'GET');
-        $this->assertResponseStatusCode(404);
-    }
-}
Index: src/webapp/apigility/module/Application/test/Controller/ZZIndexControllerDevModeTest.php
===================================================================
--- src/webapp/apigility/module/Application/test/Controller/ZZIndexControllerDevModeTest.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,54 +1,0 @@
-<?php
-/**
- * @license   http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
- * @copyright Copyright (c) 2016 Zend Technologies USA Inc. (http://www.zend.com)
- */
-
-namespace ApplicationTest\Controller;
-
-use Application\Controller\IndexController;
-use Zend\Stdlib\ArrayUtils;
-use Zend\Test\PHPUnit\Controller\AbstractHttpControllerTestCase;
-
-/**
- * Name is intentional, to force it to run last; this was necessary as,
- * once the Admin module is loaded, the controller is able to find it and
- * will attempt the redirect.
- */
-class ZZIndexControllerDevModeTest extends AbstractHttpControllerTestCase
-{
-    public function setUp()
-    {
-        // The module configuration should still be applicable for tests.
-        // You can override configuration here with test case specific values,
-        // such as sample view templates, path stacks, module_listener_options,
-        // etc.
-        $configOverrides = [
-            'modules' => [
-                'ZF\Apigility\Admin',
-                'ZF\Apigility\Admin\Ui',
-            ],
-            'module_listener_options' => [
-                'config_cache_enabled' => false,
-                'config_glob_paths' => [
-                    __DIR__ . '/../../../../config/autoload/{,*.}{global,local}.php',
-                    __DIR__ . '/../../../../config/autoload/{,*.}{global,local}-development.php',
-                ],
-            ]
-        ];
-
-        $this->setApplicationConfig(ArrayUtils::merge(
-            include __DIR__ . '/../../../../config/application.config.php',
-            $configOverrides
-        ));
-
-        parent::setUp();
-    }
-
-    public function testIndexActionRedirectsToAdminUi()
-    {
-        $this->dispatch('/', 'GET');
-        $this->assertResponseStatusCode(302);
-        $this->assertRedirectRegex('#/ui$#');
-    }
-}
Index: src/webapp/apigility/module/Application/view/application/index/index.phtml
===================================================================
--- src/webapp/apigility/module/Application/view/application/index/index.phtml	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,11 +1,0 @@
-<div class="hero-unit">
-    <p align="center"><img src="/img/ag-hero.png" alt="Apigility <?= \Apigility\VERSION ?>"></p>
-</div>
-<div class="row">
-    <div class="span8">
-        <p><br /><br />In order to use the <strong>Apigility Admin UI</strong> you need to enable the <strong>development</strong> mode. Currently your application is running in <strong>production</strong> mode.</p>
-        <p>To enable the development mode you can execute the following command from the terminal:</p>
-        <p><pre>$ composer development-enable</pre></p>
-        <p>Remember to set always the production mode if you want to deploy your API in a staging/production environment.</p>
-    </div>
-</div>
Index: src/webapp/apigility/module/Application/view/error/404.phtml
===================================================================
--- src/webapp/apigility/module/Application/view/error/404.phtml	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,108 +1,0 @@
-<?php
-use Zend\Mvc\Application;
-?>
-<h1>A 404 error occurred</h1>
-<h2><?= $this->message ?></h2>
-
-<?php
-if (! empty($this->reason)) :
-    $reasonMessage = '';
-    switch ($this->reason) {
-        case Application::ERROR_CONTROLLER_CANNOT_DISPATCH:
-            $reasonMessage = 'The requested controller was unable to dispatch the request.';
-            break;
-        case Application::ERROR_MIDDLEWARE_CANNOT_DISPATCH:
-            $reasonMessage = 'The requested middleware was unable to dispatch the request.';
-            break;
-        case Application::ERROR_CONTROLLER_NOT_FOUND:
-            $reasonMessage = 'The requested controller could not be mapped to an existing controller class.';
-            break;
-        case Application::ERROR_CONTROLLER_INVALID:
-            $reasonMessage = 'The requested controller was not dispatchable.';
-            break;
-        case Application::ERROR_ROUTER_NO_MATCH:
-            $reasonMessage = 'The requested URL could not be matched by routing.';
-            break;
-        default:
-            $reasonMessage = 'We cannot determine at this time why a 404 was generated.';
-            break;
-    }
-?>
-
-<p><?= $reasonMessage ?></p>
-
-<?php endif ?>
-
-<?php if (! empty($this->controller)) : ?>
-
-<dl>
-    <dt>Controller:</dt>
-    <dd><?= $this->escapeHtml($this->controller) ?>
-    <?php
-    if (! empty($this->controller_class)
-        && $this->controller_class != $this->controller
-    ) {
-        echo sprintf('(resolves to %s)', $this->escapeHtml($this->controller_class));
-    }
-    ?>
-</dd>
-</dl>
-
-<?php endif ?>
-
-<?php if (! empty($this->display_exceptions)) : ?>
-
-    <?php if (isset($this->exception)
-        && ($this->exception instanceof \Throwable || $this->exception instanceof \Exception)) : ?>
-<hr/>
-<h2>Additional information:</h2>
-<h3><?= get_class($this->exception) ?></h3>
-<dl>
-    <dt>File:</dt>
-    <dd>
-        <pre class="prettyprint linenums"><?= $this->exception->getFile() ?>:<?= $this->exception->getLine() ?></pre>
-    </dd>
-    <dt>Message:</dt>
-    <dd>
-        <pre class="prettyprint linenums"><?= $this->escapeHtml($this->exception->getMessage()) ?></pre>
-    </dd>
-    <dt>Stack trace:</dt>
-    <dd>
-        <pre class="prettyprint linenums"><?= $this->exception->getTraceAsString() ?></pre>
-    </dd>
-</dl>
-        <?php $e = $this->exception->getPrevious() ?>
-        <?php if ($e) : ?>
-<hr/>
-<h2>Previous exceptions:</h2>
-<ul class="unstyled">
-            <?php while ($e) : ?>
-    <li>
-        <h3><?= get_class($e) ?></h3>
-        <dl>
-            <dt>File:</dt>
-            <dd>
-                <pre class="prettyprint linenums"><?= $e->getFile() ?>:<?= $e->getLine() ?></pre>
-            </dd>
-            <dt>Message:</dt>
-            <dd>
-                <pre class="prettyprint linenums"><?= $this->escapeHtml($e->getMessage()) ?></pre>
-            </dd>
-            <dt>Stack trace:</dt>
-            <dd>
-                <pre class="prettyprint linenums"><?= $e->getTraceAsString() ?></pre>
-            </dd>
-        </dl>
-    </li>
-                <?php $e = $e->getPrevious() ?>
-            <?php endwhile ?>
-</ul>
-        <?php endif ?>
-
-    <?php else : ?>
-
-<h3>No Exception available</h3>
-
-    <?php endif ?>
-
-<?php endif ?>
Index: src/webapp/apigility/module/Application/view/error/index.phtml
===================================================================
--- src/webapp/apigility/module/Application/view/error/index.phtml	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,59 +1,0 @@
-<h1>An error occurred</h1>
-<h2><?= $this->message ?></h2>
-
-<?php if (! empty($this->display_exceptions)) : ?>
-
-    <?php if (isset($this->exception)
-        && ($this->exception instanceof \Throwable || $this->exception instanceof \Exception)) : ?>
-<hr/>
-<h2>Additional information:</h2>
-<h3><?= get_class($this->exception) ?></h3>
-<dl>
-    <dt>File:</dt>
-    <dd>
-        <pre class="prettyprint linenums"><?= $this->exception->getFile() ?>:<?= $this->exception->getLine() ?></pre>
-    </dd>
-    <dt>Message:</dt>
-    <dd>
-        <pre class="prettyprint linenums"><?= $this->escapeHtml($this->exception->getMessage()) ?></pre>
-    </dd>
-    <dt>Stack trace:</dt>
-    <dd>
-        <pre class="prettyprint linenums"><?= $this->exception->getTraceAsString() ?></pre>
-    </dd>
-</dl>
-        <?php $e = $this->exception->getPrevious() ?>
-        <?php if ($e) : ?>
-<hr/>
-<h2>Previous exceptions:</h2>
-<ul class="unstyled">
-            <?php while ($e) : ?>
-    <li>
-        <h3><?= get_class($e); ?></h3>
-        <dl>
-            <dt>File:</dt>
-            <dd>
-                <pre class="prettyprint linenums"><?= $e->getFile() ?>:<?= $e->getLine() ?></pre>
-            </dd>
-            <dt>Message:</dt>
-            <dd>
-                <pre class="prettyprint linenums"><?= $this->escapeHtml($e->getMessage()) ?></pre>
-            </dd>
-            <dt>Stack trace:</dt>
-            <dd>
-                <pre class="prettyprint linenums"><?= $e->getTraceAsString() ?></pre>
-            </dd>
-        </dl>
-    </li>
-                <?php $e = $e->getPrevious() ?>
-            <?php endwhile ?>
-</ul>
-        <?php endif ?>
-
-    <?php else : ?>
-
-<h3>No Exception available</h3>
-
-    <?php endif ?>
-
-<?php endif ?>
Index: src/webapp/apigility/module/Application/view/layout/layout.phtml
===================================================================
--- src/webapp/apigility/module/Application/view/layout/layout.phtml	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,42 +1,0 @@
-<?= $this->doctype() ?>
-<html lang="en">
-<head>
-    <meta charset="utf-8">
-<?php
-echo $this->headTitle('Apigility');
-
-echo $this->headMeta()->appendName('viewport', 'width=device-width, initial-scale=1.0');
-
-echo $this->headLink(['rel' => 'icon', 'type' => 'image/png', 'href' => $this->basePath('/img/favicon.png')])
-    ->prependStylesheet($this->basePath('/zf-apigility/css/main.min.css'))
-    ->prependStylesheet($this->basePath('/zf-apigility/css/bootstrap.min.css'));
-
-echo $this->headScript()
-    ->prependFile($this->basePath('/zf-apigility/js/bootstrap.min.js'))
-    ->prependFile($this->basePath('/zf-apigility/js/jquery.min.js'));
-?>
-</head>
-<body>
-    <div class="container">
-        <?= $this->content ?>
-    </div>
-    <footer>
-        <hr>
-        <div class="container center-block"><div class="row">
-            <div class="col-sm-4">
-                &copy; Copyright 2013 - <?= date('Y') ?>
-                by <a href="http://www.zend.com">Zend Technologies</a> Ltd.
-            </div>
-
-            <div class="col-sm-4"><p class="center-block">
-                Apigility version <strong><?= \Apigility\VERSION ?></strong>
-            </p></div>
-
-            <div class="col-sm-4"><p class="pull-right">
-                For more information <a href="https://apigility.org">apigility.org</a>
-            </p></div>
-        </div></div>
-    </footer>
-    <?= $this->inlineScript() ?>
-</body>
-</html>
Index: src/webapp/apigility/module/gnuboat_mapservice/Module.php
===================================================================
--- src/webapp/apigility/module/gnuboat_mapservice/Module.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,23 +1,0 @@
-<?php
-namespace gnuboat_mapservice;
-
-use ZF\Apigility\Provider\ApigilityProviderInterface;
-
-class Module implements ApigilityProviderInterface
-{
-    public function getConfig()
-    {
-        return include __DIR__ . '/config/module.config.php';
-    }
-
-    public function getAutoloaderConfig()
-    {
-        return [
-            'ZF\Apigility\Autoloader' => [
-                'namespaces' => [
-                    __NAMESPACE__ => __DIR__ . '/src',
-                ],
-            ],
-        ];
-    }
-}
Index: src/webapp/apigility/module/gnuboat_mapservice/config/module.config.php
===================================================================
--- src/webapp/apigility/module/gnuboat_mapservice/config/module.config.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,269 +1,0 @@
-<?php
-return [
-    'service_manager' => [
-        'factories' => [
-            \gnuboat_mapservice\V1\Rest\Upload\UploadResource::class => \gnuboat_mapservice\V1\Rest\Upload\UploadResourceFactory::class,
-            \gnuboat_mapservice\V1\Rest\Waters\WatersResource::class => \gnuboat_mapservice\V1\Rest\Waters\WatersResourceFactory::class,
-        ],
-    ],
-    'router' => [
-        'routes' => [
-            'gnuboat_mapservice.rest.upload' => [
-                'type' => 'Segment',
-                'options' => [
-                    'route' => '/upload[/:upload_id]',
-                    'defaults' => [
-                        'controller' => 'gnuboat_mapservice\\V1\\Rest\\Upload\\Controller',
-                    ],
-                ],
-            ],
-            'gnuboat_mapservice.rest.waters' => [
-                'type' => 'Segment',
-                'options' => [
-                    'route' => '/waters[/:waters_id]',
-                    'defaults' => [
-                        'controller' => 'gnuboat_mapservice\\V1\\Rest\\Waters\\Controller',
-                    ],
-                ],
-            ],
-        ],
-    ],
-    'zf-versioning' => [
-        'uri' => [
-            0 => 'gnuboat_mapservice.rest.upload',
-            1 => 'gnuboat_mapservice.rest.waters',
-        ],
-    ],
-    'zf-rest' => [
-        'gnuboat_mapservice\\V1\\Rest\\Upload\\Controller' => [
-            'listener' => \gnuboat_mapservice\V1\Rest\Upload\UploadResource::class,
-            'route_name' => 'gnuboat_mapservice.rest.upload',
-            'route_identifier_name' => 'upload_id',
-            'collection_name' => 'upload',
-            'entity_http_methods' => [
-                0 => 'GET',
-                1 => 'PATCH',
-                2 => 'PUT',
-                3 => 'DELETE',
-            ],
-            'collection_http_methods' => [
-                0 => 'GET',
-                1 => 'POST',
-            ],
-            'collection_query_whitelist' => [],
-            'page_size' => 25,
-            'page_size_param' => null,
-            'entity_class' => \gnuboat_mapservice\V1\Rest\Upload\UploadEntity::class,
-            'collection_class' => \gnuboat_mapservice\V1\Rest\Upload\UploadCollection::class,
-            'service_name' => 'upload',
-        ],
-        'gnuboat_mapservice\\V1\\Rest\\Waters\\Controller' => [
-            'listener' => \gnuboat_mapservice\V1\Rest\Waters\WatersResource::class,
-            'route_name' => 'gnuboat_mapservice.rest.waters',
-            'route_identifier_name' => 'waters_id',
-            'collection_name' => 'waters',
-            'entity_http_methods' => [
-                0 => 'GET',
-                1 => 'PATCH',
-                2 => 'PUT',
-                3 => 'DELETE',
-            ],
-            'collection_http_methods' => [
-                0 => 'GET',
-                1 => 'POST',
-            ],
-            'collection_query_whitelist' => [
-                0 => 'label',
-            ],
-            'page_size' => 25,
-            'page_size_param' => null,
-            'entity_class' => \gnuboat_mapservice\GnuBoat\MapService\Water::class,
-            'collection_class' => 'GnuBoat\\MapService\\WaterCollection',
-            'service_name' => 'waters',
-        ],
-    ],
-    'zf-content-negotiation' => [
-        'controllers' => [
-            'gnuboat_mapservice\\V1\\Rest\\Upload\\Controller' => 'HalJson',
-            'gnuboat_mapservice\\V1\\Rest\\Waters\\Controller' => 'HalJson',
-        ],
-        'accept_whitelist' => [
-            'gnuboat_mapservice\\V1\\Rest\\Upload\\Controller' => [
-                0 => 'application/vnd.gnuboat_mapservice.v1+json',
-                1 => 'application/hal+json',
-                2 => 'application/json',
-            ],
-            'gnuboat_mapservice\\V1\\Rest\\Waters\\Controller' => [
-                0 => 'application/vnd.gnuboat_mapservice.v1+json',
-                1 => 'application/hal+json',
-                2 => 'application/json',
-            ],
-        ],
-        'content_type_whitelist' => [
-            'gnuboat_mapservice\\V1\\Rest\\Upload\\Controller' => [
-                0 => 'application/vnd.gnuboat_mapservice.v1+json',
-                1 => 'application/json',
-            ],
-            'gnuboat_mapservice\\V1\\Rest\\Waters\\Controller' => [
-                0 => 'application/vnd.gnuboat_mapservice.v1+json',
-                1 => 'application/json',
-            ],
-        ],
-    ],
-    'zf-hal' => [
-        'metadata_map' => [
-            \gnuboat_mapservice\V1\Rest\Upload\UploadEntity::class => [
-                'entity_identifier_name' => 'id',
-                'route_name' => 'gnuboat_mapservice.rest.upload',
-                'route_identifier_name' => 'upload_id',
-                'hydrator' => \Zend\Hydrator\ArraySerializable::class,
-            ],
-            \gnuboat_mapservice\V1\Rest\Upload\UploadCollection::class => [
-                'entity_identifier_name' => 'id',
-                'route_name' => 'gnuboat_mapservice.rest.upload',
-                'route_identifier_name' => 'upload_id',
-                'is_collection' => true,
-            ],
-            'gnuboat_mapservice\\V1\\Rest\\Waters\\WatersEntity' => [
-                'entity_identifier_name' => 'id',
-                'route_name' => 'gnuboat_mapservice.rest.waters',
-                'route_identifier_name' => 'waters_id',
-                'hydrator' => \Zend\Hydrator\ArraySerializable::class,
-            ],
-            'gnuboat_mapservice\\V1\\Rest\\Waters\\WatersCollection' => [
-                'entity_identifier_name' => 'id',
-                'route_name' => 'gnuboat_mapservice.rest.waters',
-                'route_identifier_name' => 'waters_id',
-                'is_collection' => true,
-            ],
-            \gnuboat_mapservice\GnuBoat\MapService\Water::class => [
-                'entity_identifier_name' => 'id',
-                'route_name' => 'gnuboat_mapservice.rest.waters',
-                'route_identifier_name' => 'waters_id',
-                'hydrator' => \Zend\Hydrator\Reflection::class,
-            ],
-            \gnuboat_mapservice\GnuBoat\MapService\WaterCollection::class => [
-                'entity_identifier_name' => 'id',
-                'route_name' => 'gnuboat_mapservice.rest.waters',
-                'route_identifier_name' => 'waters_id',
-                'is_collection' => true,
-            ],
-            'gnuboat_mapservice\\src\\GnuBoat\\MapService\\Water' => [
-                'entity_identifier_name' => 'id',
-                'route_name' => 'gnuboat_mapservice.rest.waters',
-                'route_identifier_name' => 'waters_id',
-                'hydrator' => \Zend\Hydrator\Reflection::class,
-            ],
-            'gnuboat_mapservice\\src\\GnuBoat\\MapService\\WaterCollection' => [
-                'entity_identifier_name' => 'id',
-                'route_name' => 'gnuboat_mapservice.rest.waters',
-                'route_identifier_name' => 'waters_id',
-                'is_collection' => true,
-            ],
-            'GnuBoat\\MapService\\Water' => [
-                'entity_identifier_name' => 'id',
-                'route_name' => 'gnuboat_mapservice.rest.waters',
-                'route_identifier_name' => 'waters_id',
-                'hydrator' => \Zend\Hydrator\Reflection::class,
-            ],
-            'GnuBoat\\MapService\\WaterCollection' => [
-                'entity_identifier_name' => 'id',
-                'route_name' => 'gnuboat_mapservice.rest.waters',
-                'route_identifier_name' => 'waters_id',
-                'is_collection' => true,
-            ],
-        ],
-    ],
-    'zf-content-validation' => [
-        'gnuboat_mapservice\\V1\\Rest\\Waters\\Controller' => [
-            'input_filter' => 'gnuboat_mapservice\\V1\\Rest\\Waters\\Validator',
-        ],
-    ],
-    'input_filter_specs' => [
-        'gnuboat_mapservice\\V1\\Rest\\Waters\\Validator' => [
-            0 => [
-                'required' => false,
-                'validators' => [
-                    0 => [
-                        'name' => \Zend\Validator\Digits::class,
-                        'options' => [],
-                    ],
-                ],
-                'filters' => [],
-                'name' => 'id',
-                'description' => 'Unique Identifier',
-                'field_type' => 'int',
-                'error_message' => 'The identifier of a water must be an integer.',
-            ],
-            1 => [
-                'required' => true,
-                'validators' => [],
-                'filters' => [
-                    0 => [
-                        'name' => \Zend\Filter\StringTrim::class,
-                        'options' => [],
-                    ],
-                ],
-                'name' => 'label',
-                'description' => 'Label of the water',
-                'error_message' => 'You must enter a Water name',
-            ],
-            2 => [
-                'required' => false,
-                'validators' => [
-                    0 => [
-                        'name' => \Zend\Validator\Digits::class,
-                        'options' => [],
-                    ],
-                ],
-                'filters' => [],
-                'name' => 'osm_id',
-                'description' => 'OpenStreetMap Id of the object',
-                'allow_empty' => true,
-            ],
-            3 => [
-                'required' => false,
-                'validators' => [],
-                'filters' => [
-                    0 => [
-                        'name' => \Zend\Filter\StringTrim::class,
-                        'options' => [],
-                    ],
-                ],
-                'name' => 'osm_type',
-                'description' => 'OpenStreetMap type of the object',
-                'field_type' => 'string',
-                'allow_empty' => true,
-            ],
-        ],
-    ],
-    'zf-mvc-auth' => [
-		'authentication' => [
-		'map' => [
-				'gnuboat_mapservice\\V1'  => 'gnuboat-oauth',
-				'ZF\\OAuth2' => 'session',
-			],
-		],
-        'authorization' => [
-            'gnuboat_mapservice\\V1\\Rest\\Waters\\Controller' => [
-                'collection' => [
-                    'GET' => false,
-                    'POST' => true,
-                    'PUT' => false,
-                    'PATCH' => false,
-                    'DELETE' => false,
-                ],
-                'entity' => [
-                    'GET' => false,
-                    'POST' => false,
-                    'PUT' => true,
-                    'PATCH' => true,
-                    'DELETE' => true,
-                ],
-            ],
-        ],
-        'session' => [
-			'adapter' => 'Application\\Authentication\\Adapter\\SessionAdapter',
-		],
-    ],
-];
Index: src/webapp/apigility/module/gnuboat_mapservice/src/GnuBoat/MapService/Water.php
===================================================================
--- src/webapp/apigility/module/gnuboat_mapservice/src/GnuBoat/MapService/Water.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,37 +1,0 @@
-<?php
-/*
-    Copyright (C) 2019 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
-
-    This program is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-
-namespace gnuboat_mapservice\GnuBoat\MapService;
-
-class Water
-{
-	public $waterId;
-	public $label;
-	public $osmId;
-	public $osmType;
-	public $osmClass;
-	
-	public function __construct(int $id, string $label, int $osm_id, string $osm_type, string $osm_class)
-	{
-		$this->waterId = $id;
-		$this->label = $label;
-		$this->osmId = $osm_id;
-		$this->osmType = $osm_type;
-		$this->osmClass = $osm_class;
-	}
-}
Index: src/webapp/apigility/module/gnuboat_mapservice/src/GnuBoat/MapService/WaterCollection.php
===================================================================
--- src/webapp/apigility/module/gnuboat_mapservice/src/GnuBoat/MapService/WaterCollection.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,30 +1,0 @@
-<?php
-/*
-    Copyright (C) 2019 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
-
-    This program is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-
-namespace gnuboat_mapservice\GnuBoat\MapService;
-
-use Zend\Paginator\Paginator;
-use Zend\Paginator\Adapter;
-
-class WaterCollection extends Paginator
-{
-	public function __construct($waters, $waterHydrator)
-	{
-		parent::__construct(new Adapter\ArrayAdapter($waters));
-	}
-}
Index: src/webapp/apigility/module/gnuboat_mapservice/src/GnuBoat/MapService/WaterMapper.php
===================================================================
--- src/webapp/apigility/module/gnuboat_mapservice/src/GnuBoat/MapService/WaterMapper.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,129 +1,0 @@
-<?php
-/*
-    Copyright (C) 2019 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
-
-    This program is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-
-namespace gnuboat_mapservice\GnuBoat\MapService;
-
-use Zend\Db\Sql as Sql;
-use Zend\Db\Sql\Where;
-use Zend\Db\Sql\Predicate\Like;
-use Zend\Db\Adapter\Driver\ResultInterface;
-use Zend\Db\ResultSet\HydratingResultSet;
-use ReflectionClass;
-use ZF\ApiProblem\ApiProblem;
-
-use gnuboat_mapservice\GnuBoat\MapService\WaterCollection as WaterCollection;
-
-class WaterMapper
-{
-	protected $database_adapter;
-	protected $hydrator;
-	
-	public function __construct($hydrator, $database_adapter)
-	{
-		$this->hydrator = $hydrator;
-		$this->database_adapter = $database_adapter;
-	}
-	
-	public function store($water)
-	{
-		$waters = $this->fetchByLabel($water->label);
-		if($waters){
-			if($waters->count() == 1){
-				return $this->hydrator->extract($waters->current());
-			}
-			elseif($waters->count() > 1){
-				/*return new ApiProblem(901, new WaterCollection($waters, $this->hydrator))*/;
-				return new ApiProblem(901, "Need to return found waters here!");
-			}
-		}
-		
-		$sql = new Sql\Sql($this->database_adapter);
-		$insert = $sql->insert("waters");
-		$insert->columns(['label', 'osm_id', 'osm_type']);
-		$insert->values([$water->label, $water->osmId, $water->osmType]);
-		$statement = $sql->getSqlStringForSqlObject($insert);
-		$results = $this->database_adapter->query($statement)->execute();
-
-		$waters = $this->fetchByLabel($water->label);
-		if($waters->count() < 1)
-			return new ApiProblem(500, "Should not happen in ". __CLASS__ .".". __METHOD__);
-		return $this->hydrator->extract($waters->current());
-	}
-	
-	public function fetch($params)
-	{
-		$sql = new Sql\Sql($this->database_adapter);
-		$select = $sql->select('waters');
-		
-		$where = new Where();
-		if(isset($params['label']) )
-			$where->like('label', '%'. $params['label'] .'%');
-		$select->where($where);
-		
-		$sqlQuery = $sql->getSqlStringForSqlObject($select);
-		$statement = $this->database_adapter->createStatement($sqlQuery);
-		$statement->prepare();
-		$results = $statement->execute();
-		$waters = $this->watersFromResult($results);
-		if(!$waters)
-			return new ApiProblem(500, "Could not fetch waters");
-		return new WaterCollection($waters->toArray(), $this->hydrator);
-	}
-	
-	public function fetchById($id)
-	{
-		$sql = new Sql\Sql($this->database_adapter);
-		$select = $sql->select('waters');
-		$select->where(['water_id' => $id]);
-		$sqlQuery = $sql->getSqlStringForSqlObject($select);
-		$statement = $this->database_adapter->createStatement($sqlQuery);
-		$statement->prepare();
-		$results = $statement->execute();
-		$waters = $this->watersFromResult($results);
-		if(!$waters || $waters->count() != 1)
-			return new ApiProblem(404, "Requested water not found");
-		return $this->hydrator->extract($waters->current());
-	}
-	
-	private function fetchByLabel($label)
-	{
-		$sql = new Sql\Sql($this->database_adapter);
-		$select = $sql->select('waters');
-		$select->where(['label' => $label]);
-		$statement = $sql->getSqlStringForSqlObject($select);
-		$results = $this->database_adapter->query($statement)->execute();
-		if($results->count() < 1)
-			return array();
-		return $this->watersFromResult($results);
-	}
-	
-	private function watersFromResult($dbResult)
-	{
-		if(!($dbResult instanceof ResultInterface)){
-			error_log("No instance of ResultInterface in ". __CLASS__ .".". __METHOD__);
-			return False;
-		}
-		if(!$dbResult->isQueryResult()){
-			error_log("No query result in ". __CLASS__ .".". __METHOD__);
-			return False;
-		}
-		$waters = new HydratingResultSet($this->hydrator, (new ReflectionClass(Water::class))->newInstanceWithoutConstructor());
-		$waters->initialize($dbResult);
-		return $waters;
-	}
-}
Index: src/webapp/apigility/module/gnuboat_mapservice/src/V1/Rest/Upload/UploadCollection.php
===================================================================
--- src/webapp/apigility/module/gnuboat_mapservice/src/V1/Rest/Upload/UploadCollection.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,8 +1,0 @@
-<?php
-namespace gnuboat_mapservice\V1\Rest\Upload;
-
-use Zend\Paginator\Paginator;
-
-class UploadCollection extends Paginator
-{
-}
Index: src/webapp/apigility/module/gnuboat_mapservice/src/V1/Rest/Upload/UploadEntity.php
===================================================================
--- src/webapp/apigility/module/gnuboat_mapservice/src/V1/Rest/Upload/UploadEntity.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,6 +1,0 @@
-<?php
-namespace gnuboat_mapservice\V1\Rest\Upload;
-
-class UploadEntity
-{
-}
Index: src/webapp/apigility/module/gnuboat_mapservice/src/V1/Rest/Upload/UploadResource.php
===================================================================
--- src/webapp/apigility/module/gnuboat_mapservice/src/V1/Rest/Upload/UploadResource.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,109 +1,0 @@
-<?php
-namespace gnuboat_mapservice\V1\Rest\Upload;
-
-use ZF\ApiProblem\ApiProblem;
-use ZF\Rest\AbstractResourceListener;
-
-class UploadResource extends AbstractResourceListener
-{
-    /**
-     * Create a resource
-     *
-     * @param  mixed $data
-     * @return ApiProblem|mixed
-     */
-    public function create($data)
-    {
-        return new ApiProblem(405, 'The POST method has not been defined');
-    }
-
-    /**
-     * Delete a resource
-     *
-     * @param  mixed $id
-     * @return ApiProblem|mixed
-     */
-    public function delete($id)
-    {
-        return new ApiProblem(405, 'The DELETE method has not been defined for individual resources');
-    }
-
-    /**
-     * Delete a collection, or members of a collection
-     *
-     * @param  mixed $data
-     * @return ApiProblem|mixed
-     */
-    public function deleteList($data)
-    {
-        return new ApiProblem(405, 'The DELETE method has not been defined for collections');
-    }
-
-    /**
-     * Fetch a resource
-     *
-     * @param  mixed $id
-     * @return ApiProblem|mixed
-     */
-    public function fetch($id)
-    {
-        return new ApiProblem(405, 'The GET method has not been defined for individual resources');
-    }
-
-    /**
-     * Fetch all or a subset of resources
-     *
-     * @param  array $params
-     * @return ApiProblem|mixed
-     */
-    public function fetchAll($params = [])
-    {
-        return new ApiProblem(405, 'The GET method has not been defined for collections');
-    }
-
-    /**
-     * Patch (partial in-place update) a resource
-     *
-     * @param  mixed $id
-     * @param  mixed $data
-     * @return ApiProblem|mixed
-     */
-    public function patch($id, $data)
-    {
-        return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');
-    }
-
-    /**
-     * Patch (partial in-place update) a collection or members of a collection
-     *
-     * @param  mixed $data
-     * @return ApiProblem|mixed
-     */
-    public function patchList($data)
-    {
-        return new ApiProblem(405, 'The PATCH method has not been defined for collections');
-    }
-
-    /**
-     * Replace a collection or members of a collection
-     *
-     * @param  mixed $data
-     * @return ApiProblem|mixed
-     */
-    public function replaceList($data)
-    {
-        return new ApiProblem(405, 'The PUT method has not been defined for collections');
-    }
-
-    /**
-     * Update a resource
-     *
-     * @param  mixed $id
-     * @param  mixed $data
-     * @return ApiProblem|mixed
-     */
-    public function update($id, $data)
-    {
-        return new ApiProblem(405, 'The PUT method has not been defined for individual resources');
-    }
-}
Index: src/webapp/apigility/module/gnuboat_mapservice/src/V1/Rest/Upload/UploadResourceFactory.php
===================================================================
--- src/webapp/apigility/module/gnuboat_mapservice/src/V1/Rest/Upload/UploadResourceFactory.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,10 +1,0 @@
-<?php
-namespace gnuboat_mapservice\V1\Rest\Upload;
-
-class UploadResourceFactory
-{
-    public function __invoke($services)
-    {
-        return new UploadResource();
-    }
-}
Index: src/webapp/apigility/module/gnuboat_mapservice/src/V1/Rest/Waters/WatersResource.php
===================================================================
--- src/webapp/apigility/module/gnuboat_mapservice/src/V1/Rest/Waters/WatersResource.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,146 +1,0 @@
-<?php
-/*
-    Copyright (C) 2019 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
-
-    This program is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-
-namespace gnuboat_mapservice\V1\Rest\Waters;
-
-use ZF\ApiProblem\ApiProblem;
-use ZF\Rest\AbstractResourceListener;
-use ReflectionClass;
-
-use gnuboat_mapservice\GnuBoat\MapService\Water as Water;
-use gnuboat_mapservice\GnuBoat\MapService\WaterCollection as WaterCollection;
-use gnuboat_mapservice\GnuBoat\MapService\WaterMapper as WaterMapper;
-
-class WatersResource extends AbstractResourceListener
-{
-	protected $hydrator;
-	protected $database_adapter;
-	protected $identity;
-	protected $mapperWater;
-
-	public function __construct($hydrator, $database_adapter, $identity)
-	{
-		$this->hydrator = $hydrator;
-		$this->database_adapter = $database_adapter;
-		$this->identity = $identity;
-		
-		$this->mapperWater = new WaterMapper($hydrator, $database_adapter);
-	}
-
-    /**
-     * Create a resource
-     *
-     * @param  mixed $data
-     * @return ApiProblem|mixed
-     */
-    public function create($data)
-    {
-		return $this->mapperWater->store($this->hydrator->hydrate(get_object_vars($data), (new ReflectionClass(Water::class))->newInstanceWithoutConstructor()));
-    }
-
-    /**
-     * Delete a resource
-     *
-     * @param  mixed $id
-     * @return ApiProblem|mixed
-     */
-    public function delete($id)
-    {
-        return new ApiProblem(405, 'The DELETE method has not been defined for individual resources');
-    }
-
-    /**
-     * Delete a collection, or members of a collection
-     *
-     * @param  mixed $data
-     * @return ApiProblem|mixed
-     */
-    public function deleteList($data)
-    {
-        return new ApiProblem(405, 'The DELETE method has not been defined for collections');
-    }
-
-    /**
-     * Fetch a resource
-     *
-     * @param  mixed $id
-     * @return ApiProblem|mixed
-     */
-    public function fetch($id)
-    {
-		return $this->mapperWater->fetchById($id);
-    }
-
-    /**
-     * Fetch all or a subset of resources
-     *
-     * @param  array $params
-     * @return ApiProblem|mixed
-     */
-    public function fetchAll($params = [])
-    {
-		error_log(print_r($params, True));
-		return $this->mapperWater->fetch($params);
-    }
-
-    /**
-     * Patch (partial in-place update) a resource
-     *
-     * @param  mixed $id
-     * @param  mixed $data
-     * @return ApiProblem|mixed
-     */
-    public function patch($id, $data)
-    {
-        return new ApiProblem(405, 'The PATCH method has not been defined for individual resources');
-    }
-
-    /**
-     * Patch (partial in-place update) a collection or members of a collection
-     *
-     * @param  mixed $data
-     * @return ApiProblem|mixed
-     */
-    public function patchList($data)
-    {
-        return new ApiProblem(405, 'The PATCH method has not been defined for collections');
-    }
-
-    /**
-     * Replace a collection or members of a collection
-     *
-     * @param  mixed $data
-     * @return ApiProblem|mixed
-     */
-    public function replaceList($data)
-    {
-        return new ApiProblem(405, 'The PUT method has not been defined for collections');
-    }
-
-    /**
-     * Update a resource
-     *
-     * @param  mixed $id
-     * @param  mixed $data
-     * @return ApiProblem|mixed
-     */
-    public function update($id, $data)
-    {
-        return new ApiProblem(405, 'The PUT method has not been defined for individual resources');
-    }
-}
Index: src/webapp/apigility/module/gnuboat_mapservice/src/V1/Rest/Waters/WatersResourceFactory.php
===================================================================
--- src/webapp/apigility/module/gnuboat_mapservice/src/V1/Rest/Waters/WatersResourceFactory.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,40 +1,0 @@
-<?php
-/*
-    Copyright (C) 2019 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
-
-    This program is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-
-namespace gnuboat_mapservice\V1\Rest\Waters;
-
-use Zend\Hydrator\Reflection as ReflectionHydrator;
-use Zend\Hydrator\NamingStrategy\UnderscoreNamingStrategy as UnderscoreNamingStrategy;
-
-use Zend\Db\Adapter\AdapterInterface;
-
-class WatersResourceFactory
-{
-    public function __invoke($services)
-    {
-		$hydrator = new ReflectionHydrator();
-		// converts camelCase names into camel_case names and vice versa
-		$hydrator->setNamingStrategy(new UnderscoreNamingStrategy());
-    
-		$adapter = $services->get('gnuboat_mapservice_db');
-		
-		$identity = $services->get('api-identity');
-
-        return new WatersResource($hydrator, $adapter, $identity);
-    }
-}
Index: src/webapp/apigility/module/gnuboat_mapservice/test/V1/Rest/WatersTest.php
===================================================================
--- src/webapp/apigility/module/gnuboat_mapservice/test/V1/Rest/WatersTest.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,96 +1,0 @@
-<?php
-/*
-    Copyright (C) 2019 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
-
-    This program is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-
-namespace gnuboat_mapservice\Test\V1\Rest;
-
-//  enable in php 7
-// declare(Strict_types=1);
-use Zend\Test\PHPUnit\Controller\AbstractHttpControllerTestCase;
-use Zend\Stdlib\ArrayUtils;
-use Zend\Http\Request;
-use Zend\Http\Headers;
-
-// use ApplicationTest\Bootstrap;
-use Zend\Mvc\Router\Http\TreeRouteStack as HttpRouter;
-use Application\Controller\IndexController;
-use Zend\Http\Request;
-use Zend\Http\Response;
-use Zend\Mvc\MvcEvent;
-use Zend\Mvc\Router\RouteMatch;
-use PHPUnit_Framework_TestCase;
-
-/**
-* @brief Covers Parser.php
-*/
-final class WatersTest extends AbstractHttpControllerTestCase
-{
-	protected $traceError = true;
-	
-	protected $controller;
-    protected $request;
-    protected $response;
-    protected $routeMatch;
-    protected $event;
-
-	public function setUp()
-    {
-// 		$configOverrides = [
-// 			'module_listener_options' => [
-// 				'config_cache_enabled' => false,
-// 			],
-// 		];
-// 
-// 		$this->setApplicationConfig(ArrayUtils::merge(
-// 			include __DIR__ . '/../../../../../config/application.config.php',
-// 			$configOverrides
-// 		));
-// 
-// 		parent::setUp();
-
-// 		$serviceManager = Bootstrap::getServiceManager();
-        $this->controller = new IndexController();
-        $this->request    = new Request();
-        $this->routeMatch = new RouteMatch(array('controller' => 'index'));
-        $this->event      = new MvcEvent();
-        $config = $serviceManager->get('Config');
-        $routerConfig = isset($config['router']) ? $config['router'] : array();
-        $router = HttpRouter::factory($routerConfig);
-
-        $this->event->setRouter($router);
-        $this->event->setRouteMatch($this->routeMatch);
-        $this->controller->setEvent($this->event);
-        $this->controller->setServiceLocator($serviceManager);
-	}
-
-    public function testWatersById()
-    {
-// 		$this->request = new \Zend\Http\Request();
-// 		$headers = new \Zend\Http\Headers;
-// 		$headers->addHeaderLine('Accept', 'application/json');
-// // 		$this->request->setHeaders($headers);
-//         $this->dispatch('/waters/1');
-//         $this->assertResponseStatusCode(200);
-// 
-//         $this->assertModuleName('application');
-//         $this->assertControllerName('application_index');
-//         $this->assertControllerClass('IndexController');
-//         $this->assertMatchedRouteName('home');
-    }
-}
-
-?>
Index: src/webapp/apigility/phpcs.xml
===================================================================
--- src/webapp/apigility/phpcs.xml	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,33 +1,0 @@
-<?xml version="1.0"?>
-<ruleset name="Zend Framework coding standard">
-    <description>Zend Framework coding standard</description>
-
-    <!-- display progress -->
-    <arg value="p"/>
-    <arg name="colors"/>
-    <arg name="extensions" value="php,dist,phtml"/>
-
-    <!-- inherit rules from: -->
-    <rule ref="PSR2"/>
-    <rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
-    <rule ref="Generic.Formatting.SpaceAfterNot"/>
-    <rule ref="Squiz.WhiteSpace.OperatorSpacing">
-        <properties>
-            <property name="ignoreNewlines" value="true"/>
-        </properties>
-    </rule>
-    <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
-        <properties>
-            <property name="ignoreBlankLines" value="false"/>
-        </properties>
-    </rule>
-    <rule ref="PSR1.Files.SideEffects">
-        <exclude-pattern>public/index.php</exclude-pattern>
-    </rule>
-
-    <!-- Paths to check -->
-    <file>config</file>
-    <file>module</file>
-    <file>public/index.php</file>
-    <file>src</file>
-</ruleset>
Index: src/webapp/apigility/phpunit.xml.dist
===================================================================
--- src/webapp/apigility/phpunit.xml.dist	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,17 +1,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
-         bootstrap="vendor/autoload.php"
-         colors="true">
-    <testsuites>
-        <testsuite name="zf-apigility-skeleton">
-            <directory>./module/Application/test</directory>
-        </testsuite>
-    </testsuites>
-
-    <filter>
-        <whitelist processUncoveredFilesFromWhitelist="true">
-            <directory suffix=".php">./module/Application/src</directory>
-        </whitelist>
-    </filter>
-</phpunit>
Index: src/webapp/apigility/public/.gitignore
===================================================================
--- src/webapp/apigility/public/.gitignore	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,2 +1,0 @@
-apigility-ui/
-zf-apigility/
Index: src/webapp/apigility/public/.htaccess
===================================================================
--- src/webapp/apigility/public/.htaccess	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,18 +1,0 @@
-RewriteEngine On
-# The following rule allows authentication to work with fast-cgi
-RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
-# The following rule tells Apache that if the requested filename
-# exists, simply serve it.
-RewriteCond %{REQUEST_FILENAME} -s [OR]
-RewriteCond %{REQUEST_FILENAME} -l [OR]
-RewriteCond %{REQUEST_FILENAME} -d
-RewriteRule ^.*$ - [NC,L]
-# The following rewrites all other queries to index.php. The 
-# condition ensures that if you are using Apache aliases to do
-# mass virtual hosting, the base path will be prepended to 
-# allow proper resolution of the index.php file; it will work
-# in non-aliased environments as well, providing a safe, one-size 
-# fits all solution.
-RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::\2$
-RewriteRule ^(.*) - [E=BASE:%1]
-RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]
Index: src/webapp/apigility/public/index.php
===================================================================
--- src/webapp/apigility/public/index.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,58 +1,0 @@
-<?php
-/**
- * @license   http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
- * @copyright Copyright (c) 2014-2016 Zend Technologies USA Inc. (http://www.zend.com)
- */
-
-use Zend\Stdlib\ArrayUtils;
-use ZF\Apigility\Application;
-
-/**
- * This makes our life easier when dealing with paths. Everything is relative
- * to the application root now.
- */
-chdir(dirname(__DIR__));
-
-// Redirect legacy requests to enable/disable development mode to new tool
-if (php_sapi_name() === 'cli'
-    && $argc > 2
-    && 'development' == $argv[1]
-    && in_array($argv[2], ['disable', 'enable'])
-) {
-    // Windows needs to execute the batch scripts that Composer generates,
-    // and not the Unix shell version.
-    $script = defined('PHP_WINDOWS_VERSION_BUILD') && constant('PHP_WINDOWS_VERSION_BUILD')
-        ? '.\\vendor\\bin\\zf-development-mode.bat'
-        : './vendor/bin/zf-development-mode';
-    system(sprintf('%s %s', $script, $argv[2]), $return);
-    exit($return);
-}
-
-// Decline static file requests back to the PHP built-in webserver
-if (php_sapi_name() === 'cli-server' && is_file(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))) {
-    return false;
-}
-
-if (! file_exists('vendor/autoload.php')) {
-    throw new RuntimeException(
-        'Unable to load application.' . PHP_EOL
-        . '- Type `composer install` if you are developing locally.' . PHP_EOL
-        . '- Type `vagrant ssh -c \'composer install\'` if you are using Vagrant.' . PHP_EOL
-        . '- Type `docker-compose run apigility composer install` if you are using Docker.'
-    );
-}
-
-// Setup autoloading
-include 'vendor/autoload.php';
-
-$appConfig = include 'config/application.config.php';
-
-if (file_exists('config/development.config.php')) {
-    $appConfig = ArrayUtils::merge(
-        $appConfig,
-        include 'config/development.config.php'
-    );
-}
-
-// Run the application!
-Application::init($appConfig)->run();
Index: src/webapp/apigility/public/web.config
===================================================================
--- src/webapp/apigility/public/web.config	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,26 +1,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<configuration>
-    <system.webServer>
-        <rewrite>
-            <rules>
-                <rule name="Imported Rule 1" stopProcessing="true">
-                    <match url="^.*$" />
-                    <conditions logicalGrouping="MatchAny">
-                        <add input="{REQUEST_FILENAME}"
-                             matchType="IsFile" pattern=""
-                             ignoreCase="false" />
-                        <add input="{REQUEST_FILENAME}"
-                             matchType="IsDirectory"
-                             pattern=""
-                             ignoreCase="false" />
-                    </conditions>
-                    <action type="None" />
-                </rule>
-                <rule name="Imported Rule 2" stopProcessing="true">
-                    <match url="^.*$" />
-                    <action type="Rewrite" url="index.php" />
-                </rule>
-            </rules>
-        </rewrite>
-    </system.webServer>
-</configuration>
Index: src/webapp/apigility/src/Apigility/constants.php
===================================================================
--- src/webapp/apigility/src/Apigility/constants.php	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,9 +1,0 @@
-<?php
-/**
- * @license   http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
- * @copyright Copyright (c) 2016 Zend Technologies USA Inc. (http://www.zend.com)
- */
-
-namespace Apigility;
-
-const VERSION = '1.5.1dev';
Index: src/webapp/composer.phar
===================================================================
--- src/webapp/composer.phar	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,89784 +1,0 @@
-#!/usr/bin/env php
-<?php
-/*
- * This file is part of Composer.
- *
- * (c) Nils Adermann <naderman@naderman.de>
- *     Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view
- * the license that is located at the bottom of this file.
- */
-
-// Avoid APC causing random fatal errors per https://github.com/composer/composer/issues/264
-if (extension_loaded('apc') && filter_var(ini_get('apc.enable_cli'), FILTER_VALIDATE_BOOLEAN) && filter_var(ini_get('apc.cache_by_default'), FILTER_VALIDATE_BOOLEAN)) {
-    if (version_compare(phpversion('apc'), '3.0.12', '>=')) {
-        ini_set('apc.cache_by_default', 0);
-    } else {
-        fwrite(STDERR, 'Warning: APC <= 3.0.12 may cause fatal errors when running composer commands.'.PHP_EOL);
-        fwrite(STDERR, 'Update APC, or set apc.enable_cli or apc.cache_by_default to 0 in your php.ini.'.PHP_EOL);
-    }
-}
-
-Phar::mapPhar('composer.phar');
-require 'phar://composer.phar/bin/composer';
-
-__HALT_COMPILER(); ?>
-4  ö      
-   composer.phar    +   src/Composer/Autoload/AutoloadGenerator.phpe  ä÷\e  ÃØ
-w¶      +   src/Composer/Autoload/ClassMapGenerator.php  ä÷\  MèÄ¶         src/Composer/Cache.php  ä÷\  ­b0¶      %   src/Composer/Command/AboutCommand.phpÍ  ä÷\Í  ÿÌ4¶      '   src/Composer/Command/ArchiveCommand.phpc  ä÷\c  ¥{ï¶      $   src/Composer/Command/BaseCommand.phpÜ
-  ä÷\Ü
-  gô1¶      .   src/Composer/Command/BaseDependencyCommand.phpñ  ä÷\ñ  XgFð¶      1   src/Composer/Command/CheckPlatformReqsCommand.phpë
-  ä÷\ë
-  kâÂ¶      *   src/Composer/Command/ClearCacheCommand.php^  ä÷\^  ¨ãj¶      &   src/Composer/Command/ConfigCommand.phpI  ä÷\I  ä³ï¶      -   src/Composer/Command/CreateProjectCommand.php%5  ä÷\%5  èP-¶      '   src/Composer/Command/DependsCommand.php¸  ä÷\¸  K°¶      (   src/Composer/Command/DiagnoseCommand.php©M  ä÷\©M  Pä¶      ,   src/Composer/Command/DumpAutoloadCommand.phpñ
-  ä÷\ñ
-  U
-b¶      $   src/Composer/Command/ExecCommand.phpk  ä÷\k  ¼À[¶      &   src/Composer/Command/GlobalCommand.php@	  ä÷\@	  ·©ð¶      $   src/Composer/Command/HomeCommand.phpÄ  ä÷\Ä  ÇH¶      $   src/Composer/Command/InitCommand.phpO  ä÷\O  Ø&b¶      '   src/Composer/Command/InstallCommand.php  ä÷\  [
-	¶      (   src/Composer/Command/LicensesCommand.php;  ä÷\;  U¶      (   src/Composer/Command/OutdatedCommand.phpÇ
-  ä÷\Ç
-  Ñnë(¶      )   src/Composer/Command/ProhibitsCommand.phpÌ  ä÷\Ì  ¨[®¶      &   src/Composer/Command/RemoveCommand.php§  ä÷\§  ÉäÚ¶      '   src/Composer/Command/RequireCommand.phpK#  ä÷\K#  i:¶      )   src/Composer/Command/RunScriptCommand.phpã  ä÷\ã  Ô¶      +   src/Composer/Command/ScriptAliasCommand.phpp  ä÷\p  g
-(¶      &   src/Composer/Command/SearchCommand.php	  ä÷\	  Ò=Á¶      *   src/Composer/Command/SelfUpdateCommand.phpå2  ä÷\å2  ÔÛ¶      $   src/Composer/Command/ShowCommand.php0q  ä÷\0q  lÇ'Ø¶      &   src/Composer/Command/StatusCommand.php\  ä÷\\  «In¶      (   src/Composer/Command/SuggestsCommand.php©
-  ä÷\©
-  <Qþ¶      &   src/Composer/Command/UpdateCommand.phpµ#  ä÷\µ#  @4-¶      (   src/Composer/Command/ValidateCommand.php)  ä÷\)  <¬¶         src/Composer/Composer.phpù	  ä÷\ù	  }çÓ¶         src/Composer/Config.phpÎ"  ä÷\Î"  )Î\¶      -   src/Composer/Config/ConfigSourceInterface.php  ä÷\  ³
-[/¶      (   src/Composer/Config/JsonConfigSource.phpu  ä÷\u  =¤
-¶      $   src/Composer/Console/Application.php\4  ä÷\\4  à
-»¶      ,   src/Composer/Console/HtmlOutputFormatter.php3  ä÷\3  ÚEu¶      -   src/Composer/DependencyResolver/Decisions.phpQ  ä÷\Q  ?¬$¶      1   src/Composer/DependencyResolver/DefaultPolicy.php  ä÷\  õÝv¶      /   src/Composer/DependencyResolver/GenericRule.phpµ  ä÷\µ  á«¤¶      >   src/Composer/DependencyResolver/Operation/InstallOperation.phpC  ä÷\C  ´\õ*¶      I   src/Composer/DependencyResolver/Operation/MarkAliasInstalledOperation.php÷  ä÷\÷  ïÎà÷¶      K   src/Composer/DependencyResolver/Operation/MarkAliasUninstalledOperation.phpý  ä÷\ý  3#¶      @   src/Composer/DependencyResolver/Operation/OperationInterface.phpÓ   ä÷\Ó   Ùâ&ä¶      =   src/Composer/DependencyResolver/Operation/SolverOperation.php¹  ä÷\¹  &¢e
-¶      @   src/Composer/DependencyResolver/Operation/UninstallOperation.phpI  ä÷\I  FûÂÉ¶      =   src/Composer/DependencyResolver/Operation/UpdateOperation.phph  ä÷\h  öSÕ]¶      3   src/Composer/DependencyResolver/PolicyInterface.php­  ä÷\­  R¶      (   src/Composer/DependencyResolver/Pool.php¯"  ä÷\¯"  m½
-	¶      +   src/Composer/DependencyResolver/Problem.php¤  ä÷\¤   Þ¶      +   src/Composer/DependencyResolver/Request.php  ä÷\  åVP¶      (   src/Composer/DependencyResolver/Rule.php  ä÷\  ø@J¶      1   src/Composer/DependencyResolver/Rule2Literals.php  ä÷\  tZÅÉ¶      +   src/Composer/DependencyResolver/RuleSet.phpª
-  ä÷\ª
-  _Î¶      4   src/Composer/DependencyResolver/RuleSetGenerator.php&
-  ä÷\&
-  gÇF£¶      3   src/Composer/DependencyResolver/RuleSetIterator.php  ä÷\  Cü$¶      2   src/Composer/DependencyResolver/RuleWatchChain.phpi  ä÷\i  hï,¶      2   src/Composer/DependencyResolver/RuleWatchGraph.phpá  ä÷\á  rôv¶      1   src/Composer/DependencyResolver/RuleWatchNode.php  ä÷\  Gd7¶      *   src/Composer/DependencyResolver/Solver.php,:  ä÷\,:  ²ã~¶      6   src/Composer/DependencyResolver/SolverBugException.php  ä÷\  Xg6¶      ;   src/Composer/DependencyResolver/SolverProblemsException.phpô  ä÷\ô  ×|Å¦¶      /   src/Composer/DependencyResolver/Transaction.php×  ä÷\×  Vmì¶      -   src/Composer/Downloader/ArchiveDownloader.phpÆ	  ä÷\Æ	  G s0¶      1   src/Composer/Downloader/ChangeReportInterface.phpÌ   ä÷\Ì   ¯à¨¿¶      +   src/Composer/Downloader/DownloadManager.php`  ä÷\`  #ÏX¶      /   src/Composer/Downloader/DownloaderInterface.phpÊ  ä÷\Ê  gs!l¶      3   src/Composer/Downloader/DvcsDownloaderInterface.phpÑ   ä÷\Ñ   &Á¿¶      *   src/Composer/Downloader/FileDownloader.php?
-  ä÷\?
-  "Aý¶      /   src/Composer/Downloader/FilesystemException.php
-  ä÷\
-  .-
-¶      ,   src/Composer/Downloader/FossilDownloader.php
-  ä÷\
-  ÜIi¶      )   src/Composer/Downloader/GitDownloader.phpq4  ä÷\q4  ZÎÇ×¶      *   src/Composer/Downloader/GzipDownloader.phpó  ä÷\ó  }ÚoÂ¶      (   src/Composer/Downloader/HgDownloader.php  ä÷\  ßisÌ¶      *   src/Composer/Downloader/PathDownloader.phpQ  ä÷\Q  Cn¤¶      0   src/Composer/Downloader/PearPackageExtractor.phpu  ä÷\u  z¶      .   src/Composer/Downloader/PerforceDownloader.php§  ä÷\§  â¨¶      *   src/Composer/Downloader/PharDownloader.phpå   ä÷\å   ÞÉç¶      )   src/Composer/Downloader/RarDownloader.php  ä÷\  6	3U¶      )   src/Composer/Downloader/SvnDownloader.phpG  ä÷\G  M#j
-¶      )   src/Composer/Downloader/TarDownloader.phpã   ä÷\ã   ÍX?¶      .   src/Composer/Downloader/TransportException.php=  ä÷\=  ZÎÈÞ¶      9   src/Composer/Downloader/VcsCapableDownloaderInterface.phpÔ   ä÷\Ô   `§ôö¶      )   src/Composer/Downloader/VcsDownloader.php¡  ä÷\¡  (	à>¶      (   src/Composer/Downloader/XzDownloader.php§  ä÷\§  W$;á¶      )   src/Composer/Downloader/ZipDownloader.phpk  ä÷\k  ÒoÎ¶      &   src/Composer/EventDispatcher/Event.php   ä÷\   ±jï¶      0   src/Composer/EventDispatcher/EventDispatcher.phpY3  ä÷\Y3  ã&=q¶      9   src/Composer/EventDispatcher/EventSubscriberInterface.php©   ä÷\©   h·0¶      9   src/Composer/EventDispatcher/ScriptExecutionException.phpv   ä÷\v   wZ8S¶      )   src/Composer/Exception/NoSslException.phpf   ä÷\f   ËíM¶         src/Composer/Factory.phpW=  ä÷\W=  gMý¶         src/Composer/IO/BaseIO.php  ä÷\  (l¶      
-   src/Composer/IO/BufferIO.php*  ä÷\*  ¢®hT¶      
-   src/Composer/IO/ConsoleIO.php6  ä÷\6  ö#$¶         src/Composer/IO/IOInterface.phpì  ä÷\ì   Õ¶         src/Composer/IO/NullIO.phpÀ  ä÷\À  F`sÊ¶         src/Composer/Installer.php|  ä÷\|  Ã¢!¶      *   src/Composer/Installer/BinaryInstaller.php×  ä÷\×  £æq¶      2   src/Composer/Installer/BinaryPresenceInterface.phpË   ä÷\Ë   À5¨¶      .   src/Composer/Installer/InstallationManager.php-  ä÷\-  ¾}7¶      )   src/Composer/Installer/InstallerEvent.php  ä÷\  lÔzi¶      *   src/Composer/Installer/InstallerEvents.phpÞ   ä÷\Þ   ì@G¶      -   src/Composer/Installer/InstallerInterface.phpã  ä÷\ã  ^Ê¶      +   src/Composer/Installer/LibraryInstaller.php%  ä÷\%  
-»Ì¶      /   src/Composer/Installer/MetapackageInstaller.php  ä÷\  ÆÅ!¶      (   src/Composer/Installer/NoopInstaller.php+  ä÷\+  À·M}¶      '   src/Composer/Installer/PackageEvent.phpe  ä÷\e  ;° ¶      (   src/Composer/Installer/PackageEvents.php¸  ä÷\¸  dbØs¶      .   src/Composer/Installer/PearBinaryInstaller.phpø
-  ä÷\ø
-  *ëk¶      (   src/Composer/Installer/PearInstaller.php¢  ä÷\¢  È¶Ñ¶      *   src/Composer/Installer/PluginInstaller.php  ä÷\  ÒX8¶      +   src/Composer/Installer/ProjectInstaller.php
-  ä÷\
-  *0@P¶      4   src/Composer/Installer/SuggestedPackagesReporter.php:  ä÷\:  ´UV¶      
-   src/Composer/Json/JsonFile.phpî  ä÷\î  b-~¶      #   src/Composer/Json/JsonFormatter.phpb  ä÷\b  ÝN¶      %   src/Composer/Json/JsonManipulator.php3  ä÷\3  é7¶      -   src/Composer/Json/JsonValidationException.php\  ä÷\\  .XóÜ¶      %   src/Composer/Package/AliasPackage.php  ä÷\  ¹~¶      7   src/Composer/Package/Archiver/ArchivableFilesFilter.php	  ä÷\	  yY+¦¶      7   src/Composer/Package/Archiver/ArchivableFilesFinder.phpÞ  ä÷\Þ  
-²²¹¶      0   src/Composer/Package/Archiver/ArchiveManager.php
-  ä÷\
-  ß5°¶      3   src/Composer/Package/Archiver/ArchiverInterface.php  ä÷\  ñ´>
-¶      3   src/Composer/Package/Archiver/BaseExcludeFilter.php  ä÷\  y¶=Æ¶      7   src/Composer/Package/Archiver/ComposerExcludeFilter.php  ä÷\  SZ0¶      2   src/Composer/Package/Archiver/GitExcludeFilter.phpr  ä÷\r  3Mh¶      1   src/Composer/Package/Archiver/HgExcludeFilter.php
-  ä÷\
-  
-¦S¶      .   src/Composer/Package/Archiver/PharArchiver.php?  ä÷\?  ®	u¶      -   src/Composer/Package/Archiver/ZipArchiver.php½  ä÷\½  VÀ¨¶      $   src/Composer/Package/BasePackage.phpü
-  ä÷\ü
-  ¬ÊyÚ¶      *   src/Composer/Package/Comparer/Comparer.phpR  ä÷\R  ÏØ³î¶      (   src/Composer/Package/CompletePackage.phpü  ä÷\ü  þMË¶¶      1   src/Composer/Package/CompletePackageInterface.phpõ  ä÷\õ  ¦Êò¶      +   src/Composer/Package/Dumper/ArrayDumper.phpë
-  ä÷\ë
-  Ó8WE¶      
-   src/Composer/Package/Link.php  ä÷\  å¶Y«¶      7   src/Composer/Package/LinkConstraint/EmptyConstraint.php  ä÷\  é~¶      ?   src/Composer/Package/LinkConstraint/LinkConstraintInterface.phpd  ä÷\d  ¤ôLn¶      7   src/Composer/Package/LinkConstraint/MultiConstraint.php  ä÷\  ób`ý¶      :   src/Composer/Package/LinkConstraint/SpecificConstraint.phpi  ä÷\i  Þ%¶      9   src/Composer/Package/LinkConstraint/VersionConstraint.phpX  ä÷\X  }`y¶      +   src/Composer/Package/Loader/ArrayLoader.php
-  ä÷\
-  n~¶      7   src/Composer/Package/Loader/InvalidPackageException.phpE  ä÷\E  xb¾¶      *   src/Composer/Package/Loader/JsonLoader.phpù  ä÷\ù  !~{¶      /   src/Composer/Package/Loader/LoaderInterface.php²   ä÷\²   ¦}úÎ¶      1   src/Composer/Package/Loader/RootPackageLoader.php  ä÷\  -£{¶      5   src/Composer/Package/Loader/ValidatingArrayLoader.php½6  ä÷\½6  ¶Î	x¶         src/Composer/Package/Locker.php¥!  ä÷\¥!  /=xö¶          src/Composer/Package/Package.phpÉ  ä÷\É  cÃh¶      )   src/Composer/Package/PackageInterface.php   ä÷\   ûÇ^Æ¶      )   src/Composer/Package/RootAliasPackage.php	  ä÷\	  	_ø¶      $   src/Composer/Package/RootPackage.php  ä÷\  Î_¶      -   src/Composer/Package/RootPackageInterface.php¹  ä÷\¹  "maV¶      /   src/Composer/Package/Version/VersionGuesser.phpÏ
-  ä÷\Ï
-  ÌÂß¶      .   src/Composer/Package/Version/VersionParser.php¥  ä÷\¥  ô´à¶      0   src/Composer/Package/Version/VersionSelector.phpK
-  ä÷\K
-  ²<È¶      -   src/Composer/Plugin/Capability/Capability.phpW   ä÷\W   æ_¨1¶      2   src/Composer/Plugin/Capability/CommandProvider.php   ä÷\   ûOâ>¶         src/Composer/Plugin/Capable.php   ä÷\   Æq+¶      $   src/Composer/Plugin/CommandEvent.phpâ  ä÷\â  ³ÆÇW¶      $   src/Composer/Plugin/PluginEvents.phpö   ä÷\ö   á1=z¶      '   src/Composer/Plugin/PluginInterface.phpô   ä÷\ô   )'*Ø¶      %   src/Composer/Plugin/PluginManager.php$  ä÷\$  K©¶      *   src/Composer/Plugin/PreCommandRunEvent.phpõ  ä÷\õ  :ðd
-¶      ,   src/Composer/Plugin/PreFileDownloadEvent.php`  ä÷\`   9-Î¶      4   src/Composer/Question/StrictConfirmationQuestion.php
-  ä÷\
-  '.³è¶      +   src/Composer/Repository/ArrayRepository.php  ä÷\  éÌt ¶      .   src/Composer/Repository/ArtifactRepository.php	
-  ä÷\	
-  Fâò¶      *   src/Composer/Repository/BaseRepository.phpv
-  ä÷\v
-  ÜL¶      .   src/Composer/Repository/ComposerRepository.phpÐU  ä÷\ÐU  ü­l¶      /   src/Composer/Repository/CompositeRepository.php;  ä÷\;  ¤¯S¶      ;   src/Composer/Repository/ConfigurableRepositoryInterface.php
-   ä÷\
-   ±_
-¶      0   src/Composer/Repository/FilesystemRepository.php$  ä÷\$  ¾Ãá
-¶      4   src/Composer/Repository/InstalledArrayRepository.php£   ä÷\£   /ö~>¶      9   src/Composer/Repository/InstalledFilesystemRepository.php£   ä÷\£   V
-_¶      8   src/Composer/Repository/InstalledRepositoryInterface.php   ä÷\   £9p¶      6   src/Composer/Repository/InvalidRepositoryException.phpn   ä÷\n   àë¶      -   src/Composer/Repository/PackageRepository.phpj  ä÷\j  ¥ôòÌ¶      *   src/Composer/Repository/PathRepository.php
-  ä÷\
-  WÛ¶      2   src/Composer/Repository/Pear/BaseChannelReader.phpI  ä÷\I  c6³¶      ,   src/Composer/Repository/Pear/ChannelInfo.phpÄ  ä÷\Ä  :T*É¶      .   src/Composer/Repository/Pear/ChannelReader.phpí  ä÷\í  ?ÈYT¶      4   src/Composer/Repository/Pear/ChannelRest10Reader.php®	  ä÷\®	  ÖÛú¶      4   src/Composer/Repository/Pear/ChannelRest11Reader.php&	  ä÷\&	  òUb¶      5   src/Composer/Repository/Pear/DependencyConstraint.phpq  ä÷\q  9=¶      /   src/Composer/Repository/Pear/DependencyInfo.phpq  ä÷\q  fºTò¶      8   src/Composer/Repository/Pear/PackageDependencyParser.php
-  ä÷\
-  ÷$Li¶      ,   src/Composer/Repository/Pear/PackageInfo.php°  ä÷\°  
-¸
-¶      ,   src/Composer/Repository/Pear/ReleaseInfo.php  ä÷\  oÃ¶      *   src/Composer/Repository/PearRepository.phpª  ä÷\ª  )}¶      .   src/Composer/Repository/PlatformRepository.phpþ
-  ä÷\þ
-  õfëõ¶      -   src/Composer/Repository/RepositoryFactory.php2  ä÷\2  t>¶      /   src/Composer/Repository/RepositoryInterface.phpÛ  ä÷\Û  âÁ¶      -   src/Composer/Repository/RepositoryManager.php2
-  ä÷\2
-  á
-5#¶      7   src/Composer/Repository/RepositorySecurityException.phpo   ä÷\o   pÕ«ª¶      /   src/Composer/Repository/Vcs/BitbucketDriver.phpå  ä÷\å  vãâ¶      ,   src/Composer/Repository/Vcs/FossilDriver.php©  ä÷\©  t1Ú®¶      2   src/Composer/Repository/Vcs/GitBitbucketDriver.phpê  ä÷\ê  Ã»¶      )   src/Composer/Repository/Vcs/GitDriver.php¼  ä÷\¼  ©Ðê¶      ,   src/Composer/Repository/Vcs/GitHubDriver.php¡(  ä÷\¡(  º
-¶      ,   src/Composer/Repository/Vcs/GitLabDriver.phpÍ#  ä÷\Í#  ßNìÊ¶      1   src/Composer/Repository/Vcs/HgBitbucketDriver.phpä  ä÷\ä  iüà¶      (   src/Composer/Repository/Vcs/HgDriver.php\  ä÷\\  sàØ
-¶      .   src/Composer/Repository/Vcs/PerforceDriver.php'	  ä÷\'	  ÙóH¶      )   src/Composer/Repository/Vcs/SvnDriver.php¤
-  ä÷\¤
-  
-
-¶      )   src/Composer/Repository/Vcs/VcsDriver.phpæ
-  ä÷\æ
-  e×¯-¶      2   src/Composer/Repository/Vcs/VcsDriverInterface.php÷  ä÷\÷  ÇX[¶      )   src/Composer/Repository/VcsRepository.php±&  ä÷\±&  ¢Þ¸t¶      1   src/Composer/Repository/VersionCacheInterface.php   ä÷\   A?Rï¶      3   src/Composer/Repository/WritableArrayRepository.php  ä÷\  ¾G*¶      7   src/Composer/Repository/WritableRepositoryInterface.php  ä÷\  /sï¶      $   src/Composer/Script/CommandEvent.phpW   ä÷\W   £VZt¶      
-   src/Composer/Script/Event.phpµ  ä÷\µ  lt¦M¶      $   src/Composer/Script/PackageEvent.php   ä÷\   §ÿÉ
-¶      $   src/Composer/Script/ScriptEvents.phpP  ä÷\P  ¶¶          src/Composer/SelfUpdate/Keys.php  ä÷\  
-îÊN¶      $   src/Composer/SelfUpdate/Versions.phpì  ä÷\ì  Íµ¶          src/Composer/Util/AuthHelper.phpË  ä÷\Ë  >zx¶         src/Composer/Util/Bitbucket.php*  ä÷\*  ,Lk¶      $   src/Composer/Util/ComposerMirror.php±  ä÷\±  ­½øØ¶      %   src/Composer/Util/ConfigValidator.php÷  ä÷\÷  vÍ¶      "   src/Composer/Util/ErrorHandler.php¬  ä÷\¬  ^`Æ¶          src/Composer/Util/Filesystem.phpj/  ä÷\j/  ú?ý¶         src/Composer/Util/Git.phpg&  ä÷\g&  ]ó²´¶      
-   src/Composer/Util/GitHub.php|
-  ä÷\|
-  `0tü¶      
-   src/Composer/Util/GitLab.php
-  ä÷\
-  
-`YÖ¶         src/Composer/Util/Hg.php¾  ä÷\¾  LÓ
-¶         src/Composer/Util/IniHelper.phph  ä÷\h  ;FP¶      $   src/Composer/Util/NoProxyPattern.php¾  ä÷\¾  Z+°m¶      
-   src/Composer/Util/Perforce.php2  ä÷\2  *¦·®¶      
-   src/Composer/Util/Platform.phpü  ä÷\ü  s­fç¶      %   src/Composer/Util/ProcessExecutor.phpO
-  ä÷\O
-  ÅNv¶      &   src/Composer/Util/RemoteFilesystem.phpÙj  ä÷\Ùj  ¹¸;¶      
-   src/Composer/Util/Silencer.phpé  ä÷\é  Vjf¶      !   src/Composer/Util/SpdxLicense.php  ä÷\  ¾7
-ñ¶      *   src/Composer/Util/StreamContextFactory.php8  ä÷\8  ¸2+¶         src/Composer/Util/Svn.php,  ä÷\,  Ì
-Ä¶         src/Composer/Util/TlsHelper.phpn
-  ä÷\n
-  S¯Í:¶         src/Composer/Util/Url.php£  ä÷\£  3ÉÜ¶      
-   src/Composer/XdebugHandler.phpð  ä÷\ð  zÓf~¶         src/bootstrap.php¹  ä÷\¹  I}¶      %   src/Composer/Autoload/ClassLoader.php4  ä÷\4  ²z¶      #   res/composer-repository-schema.jsonð  ä÷\ð  GÐà¶         res/composer-schema.json
-  ä÷\
-  
-º,¶      6   vendor/composer/spdx-licenses/res/spdx-exceptions.jsonJ	  ä÷\J	  ñR¶      4   vendor/composer/spdx-licenses/res/spdx-licenses.jsonË  ä÷\Ë  p'V¶      4   vendor/symfony/console/Resources/bin/hiddeninput.exe $  ä÷\ $  ¥v¶      &   vendor/symfony/console/Application.php=X  ä÷\=X   S¶      *   vendor/symfony/console/Command/Command.phpî"  ä÷\î"  x°jÕ¶      .   vendor/symfony/console/Command/HelpCommand.phpØ  ä÷\Ø  ¦Ú-:¶      .   vendor/symfony/console/Command/ListCommand.phpZ  ä÷\Z  »w`¶      (   vendor/symfony/console/ConsoleEvents.phpé   ä÷\é   RÛÔe¶      <   vendor/symfony/console/Descriptor/ApplicationDescription.phpÐ  ä÷\Ð  5°¶      0   vendor/symfony/console/Descriptor/Descriptor.php  ä÷\  ¿N¶      9   vendor/symfony/console/Descriptor/DescriptorInterface.phpü   ä÷\ü   ±Qµ¶      4   vendor/symfony/console/Descriptor/JsonDescriptor.phpÜ
-  ä÷\Ü
-  *ûÉ¶      8   vendor/symfony/console/Descriptor/MarkdownDescriptor.php¶  ä÷\¶  ·Ô;Ý¶      4   vendor/symfony/console/Descriptor/TextDescriptor.php¼
-  ä÷\¼
-  òç$¶      3   vendor/symfony/console/Descriptor/XmlDescriptor.php
-  ä÷\
-  b{<¶      4   vendor/symfony/console/Event/ConsoleCommandEvent.php°  ä÷\°  ! È¶      -   vendor/symfony/console/Event/ConsoleEvent.phpÅ  ä÷\Å  ÒxÛ\¶      6   vendor/symfony/console/Event/ConsoleExceptionEvent.php  ä÷\  á2é¶      6   vendor/symfony/console/Event/ConsoleTerminateEvent.phpz  ä÷\z  ³,îL¶      =   vendor/symfony/console/Exception/CommandNotFoundException.phpÔ  ä÷\Ô  È÷ L¶      7   vendor/symfony/console/Exception/ExceptionInterface.phpf   ä÷\f   ¡ABª¶      =   vendor/symfony/console/Exception/InvalidArgumentException.php¦   ä÷\¦   ÖÌ½Z¶      ;   vendor/symfony/console/Exception/InvalidOptionException.php¦   ä÷\¦   Ë×H¶      3   vendor/symfony/console/Exception/LogicException.php   ä÷\   ÍO\e¶      5   vendor/symfony/console/Exception/RuntimeException.php   ä÷\   Ùí,6¶      4   vendor/symfony/console/Formatter/OutputFormatter.php6  ä÷\6  ?=¨¶      =   vendor/symfony/console/Formatter/OutputFormatterInterface.php  ä÷\  òññÀ¶      9   vendor/symfony/console/Formatter/OutputFormatterStyle.phpF  ä÷\F  
-ð¦´¶      B   vendor/symfony/console/Formatter/OutputFormatterStyleInterface.php  ä÷\  ÷½G¶      >   vendor/symfony/console/Formatter/OutputFormatterStyleStack.php@  ä÷\@  G¨ýU¶      6   vendor/symfony/console/Helper/DebugFormatterHelper.phpy  ä÷\y  Ì8ÆÐ¶      2   vendor/symfony/console/Helper/DescriptorHelper.phpw  ä÷\w  |¦C¶      .   vendor/symfony/console/Helper/DialogHelper.php  ä÷\  ¹ÜÃ_¶      1   vendor/symfony/console/Helper/FormatterHelper.phpd  ä÷\d  §×,¸¶      (   vendor/symfony/console/Helper/Helper.php«  ä÷\«  !§¶      1   vendor/symfony/console/Helper/HelperInterface.phpå   ä÷\å    ¶      +   vendor/symfony/console/Helper/HelperSet.phpÊ  ä÷\Ê  áÏW"¶      2   vendor/symfony/console/Helper/InputAwareHelper.phpc  ä÷\c  Ìø¶      /   vendor/symfony/console/Helper/ProcessHelper.phpÓ	  ä÷\Ó	  ©wR¶      -   vendor/symfony/console/Helper/ProgressBar.phpl%  ä÷\l%   díÛ¶      0   vendor/symfony/console/Helper/ProgressHelper.php]  ä÷\]  ù»X¶      3   vendor/symfony/console/Helper/ProgressIndicator.phpN  ä÷\N  ÿ§³l¶      0   vendor/symfony/console/Helper/QuestionHelper.phpl
-  ä÷\l
-  Ntó¶      7   vendor/symfony/console/Helper/SymfonyQuestionHelper.php
-  ä÷\
-  -
-Ø¶      '   vendor/symfony/console/Helper/Table.phpÄ*  ä÷\Ä*  ¾ØT¶      +   vendor/symfony/console/Helper/TableCell.php  ä÷\  åV^¶      -   vendor/symfony/console/Helper/TableHelper.php
-  ä÷\
-  uô¶      0   vendor/symfony/console/Helper/TableSeparator.phpÊ   ä÷\Ê   az
-¶      ,   vendor/symfony/console/Helper/TableStyle.php 
-  ä÷\ 
-  _ÍI"¶      *   vendor/symfony/console/Input/ArgvInput.php  ä÷\  ×ö¶      +   vendor/symfony/console/Input/ArrayInput.php)
-  ä÷\)
-  ¥ÑC¶      &   vendor/symfony/console/Input/Input.php£
-  ä÷\£
-  f¡?¶      .   vendor/symfony/console/Input/InputArgument.php  ä÷\  D
-£¶      4   vendor/symfony/console/Input/InputAwareInterface.php   ä÷\   ­O°¶      0   vendor/symfony/console/Input/InputDefinition.php  ä÷\  ¤U)¤¶      /   vendor/symfony/console/Input/InputInterface.php£  ä÷\£  ÆB'¶      ,   vendor/symfony/console/Input/InputOption.php
-  ä÷\
-  \¢Ü=¶      ,   vendor/symfony/console/Input/StringInput.php  ä÷\  µ
-è¶      
-   vendor/symfony/console/LICENSE)  ä÷\)  NUN½¶      /   vendor/symfony/console/Logger/ConsoleLogger.php0	  ä÷\0	  
-
-¸¶      0   vendor/symfony/console/Output/BufferedOutput.php_  ä÷\_   >P¶      /   vendor/symfony/console/Output/ConsoleOutput.php±  ä÷\±  nì!f¶      8   vendor/symfony/console/Output/ConsoleOutputInterface.phpà   ä÷\à   ÆÊ¶      ,   vendor/symfony/console/Output/NullOutput.phpÏ  ä÷\Ï  ®Z¶      (   vendor/symfony/console/Output/Output.php	  ä÷\	  0p¶      1   vendor/symfony/console/Output/OutputInterface.php  ä÷\   ì&¶      .   vendor/symfony/console/Output/StreamOutput.php  ä÷\  ÄOç¶      2   vendor/symfony/console/Question/ChoiceQuestion.phpx
-  ä÷\x
-  W!¶      8   vendor/symfony/console/Question/ConfirmationQuestion.phpè  ä÷\è  /
-Ô¶      ,   vendor/symfony/console/Question/Question.phpÎ	  ä÷\Î	  lF¶          vendor/symfony/console/Shell.phpæ  ä÷\æ  ¼XÒA¶      ,   vendor/symfony/console/Style/OutputStyle.php\  ä÷\\  w×¤¶      /   vendor/symfony/console/Style/StyleInterface.phpÏ  ä÷\Ï  &nÅÑ¶      -   vendor/symfony/console/Style/SymfonyStyle.phpä  ä÷\ä  ­å (¶      3   vendor/symfony/console/Tester/ApplicationTester.phpÏ  ä÷\Ï  s9i¶      /   vendor/symfony/console/Tester/CommandTester.phpª  ä÷\ª  ¬K
-z¶      (   vendor/symfony/debug/BufferingLogger.phpt  ä÷\t  = hÜ¶      
-   vendor/symfony/debug/Debug.php,  ä÷\,  Ë~.¶      )   vendor/symfony/debug/DebugClassLoader.phpµ
-  ä÷\µ
-  1rEÓ¶      %   vendor/symfony/debug/ErrorHandler.php
-H  ä÷\
-H  ¹:D#¶      9   vendor/symfony/debug/Exception/ClassNotFoundException.php  ä÷\  iæô¶      8   vendor/symfony/debug/Exception/ContextErrorException.php  ä÷\  -
-d2¶      1   vendor/symfony/debug/Exception/DummyException.php  ä÷\  ®+Ãê¶      6   vendor/symfony/debug/Exception/FatalErrorException.php  ä÷\  Ä¶      6   vendor/symfony/debug/Exception/FatalThrowableError.phpW  ä÷\W  ?àèK¶      3   vendor/symfony/debug/Exception/FlattenException.php¼  ä÷\¼  
-×¶      7   vendor/symfony/debug/Exception/OutOfMemoryException.php~   ä÷\~   ë¨oâ¶      =   vendor/symfony/debug/Exception/UndefinedFunctionException.php  ä÷\  ñJÀ¶      ;   vendor/symfony/debug/Exception/UndefinedMethodException.php  ä÷\  nöêØ¶      )   vendor/symfony/debug/ExceptionHandler.php)3  ä÷\)3  h5=¶      I   vendor/symfony/debug/FatalErrorHandler/ClassNotFoundFatalErrorHandler.phpA  ä÷\A  Ï¤¹l¶      E   vendor/symfony/debug/FatalErrorHandler/FatalErrorHandlerInterface.php  ä÷\  Ä¹BV¶      M   vendor/symfony/debug/FatalErrorHandler/UndefinedFunctionFatalErrorHandler.phpx  ä÷\x  ~ò"¶      K   vendor/symfony/debug/FatalErrorHandler/UndefinedMethodFatalErrorHandler.phpO  ä÷\O  ¦*¶      
-   vendor/symfony/debug/LICENSE)  ä÷\)  NUN½¶      :   vendor/symfony/filesystem/Exception/ExceptionInterface.phpi   ä÷\i   $ ÿ¶      =   vendor/symfony/filesystem/Exception/FileNotFoundException.php¼  ä÷\¼  pí\¶¶      3   vendor/symfony/filesystem/Exception/IOException.php  ä÷\  ü#Ñ¶      <   vendor/symfony/filesystem/Exception/IOExceptionInterface.php¦   ä÷\¦   jÙwM¶      (   vendor/symfony/filesystem/Filesystem.phpc4  ä÷\c4  ×@þ¶      !   vendor/symfony/filesystem/LICENSE)  ä÷\)  NUN½¶      )   vendor/symfony/filesystem/LockHandler.phpö  ä÷\ö  Zµ1¶      1   vendor/symfony/finder/Adapter/AbstractAdapter.php\
-  ä÷\\
-  hB¶      5   vendor/symfony/finder/Adapter/AbstractFindAdapter.php  ä÷\  HC/¶      2   vendor/symfony/finder/Adapter/AdapterInterface.php  ä÷\  Mþ¶      0   vendor/symfony/finder/Adapter/BsdFindAdapter.php3  ä÷\3  75$·¶      0   vendor/symfony/finder/Adapter/GnuFindAdapter.php  ä÷\  
-`]¶      ,   vendor/symfony/finder/Adapter/PhpAdapter.phpô  ä÷\ô  Þdè;¶      /   vendor/symfony/finder/Comparator/Comparator.php  ä÷\  ¾üµ¶      3   vendor/symfony/finder/Comparator/DateComparator.php#  ä÷\#  °Î¶      5   vendor/symfony/finder/Comparator/NumberComparator.php|  ä÷\|  ITÇÍ¶      9   vendor/symfony/finder/Exception/AccessDeniedException.php   ä÷\   ½¾s¶      ;   vendor/symfony/finder/Exception/AdapterFailureException.php¬  ä÷\¬  w
-R¶      6   vendor/symfony/finder/Exception/ExceptionInterface.php   ä÷\   
-Gz-¶      A   vendor/symfony/finder/Exception/OperationNotPermitedException.php)  ä÷\)  x§e¶      @   vendor/symfony/finder/Exception/ShellCommandFailureException.phpº  ä÷\º  þ¶      /   vendor/symfony/finder/Expression/Expression.php  ä÷\  i¥:Å¶      )   vendor/symfony/finder/Expression/Glob.phpf  ä÷\f  DÞcj¶      *   vendor/symfony/finder/Expression/Regex.php  ä÷\  ü(ÃÏ¶      3   vendor/symfony/finder/Expression/ValueInterface.phpÍ  ä÷\Í  \p4¶          vendor/symfony/finder/Finder.phpc.  ä÷\c.  :5g¶      
-   vendor/symfony/finder/Glob.phpL  ä÷\L  jÍ9×¶      7   vendor/symfony/finder/Iterator/CustomFilterIterator.php]  ä÷\]  ÎoÅÆ¶      :   vendor/symfony/finder/Iterator/DateRangeFilterIterator.phpx  ä÷\x  ôP¶      ;   vendor/symfony/finder/Iterator/DepthRangeFilterIterator.phpî  ä÷\î  üÍq¶      A   vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.phpí  ä÷\í  nõH¶      4   vendor/symfony/finder/Iterator/FilePathsIterator.php#  ä÷\#  G?T½¶      9   vendor/symfony/finder/Iterator/FileTypeFilterIterator.phpZ  ä÷\Z  (&ø¶      <   vendor/symfony/finder/Iterator/FilecontentFilterIterator.php5  ä÷\5  í¶      9   vendor/symfony/finder/Iterator/FilenameFilterIterator.phpr  ä÷\r  tu¶      1   vendor/symfony/finder/Iterator/FilterIterator.phpÃ  ä÷\Ã  +µÞ¶      =   vendor/symfony/finder/Iterator/MultiplePcreFilterIterator.php-  ä÷\-  ºÎÒ_¶      5   vendor/symfony/finder/Iterator/PathFilterIterator.phpÐ  ä÷\Ð  c¶      =   vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php	  ä÷\	  ë]í»¶      :   vendor/symfony/finder/Iterator/SizeRangeFilterIterator.phpe  ä÷\e  áé¶      3   vendor/symfony/finder/Iterator/SortableIterator.php+  ä÷\+  õÝË ¶      
-   vendor/symfony/finder/LICENSE)  ä÷\)  NUN½¶      '   vendor/symfony/finder/Shell/Command.php>
-  ä÷\>
-  _~u
-¶      %   vendor/symfony/finder/Shell/Shell.phpr  ä÷\r  þ
-pN¶      %   vendor/symfony/finder/SplFileInfo.php  ä÷\  þ íù¶      '   vendor/symfony/polyfill-ctype/Ctype.phpH	  ä÷\H	  ³ÕÝ¶      %   vendor/symfony/polyfill-ctype/LICENSE$  ä÷\$  ?s:¶      +   vendor/symfony/polyfill-ctype/bootstrap.phpI  ä÷\I  D!e¶      (   vendor/symfony/polyfill-mbstring/LICENSE)  ä÷\)  ±íÐ¶      -   vendor/symfony/polyfill-mbstring/Mbstring.php
-C  ä÷\
-C  ãZ?¶      @   vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php÷@  ä÷\÷@  õØ¶      F   vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.phpã  ä÷\ã  öy_¶      @   vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.phpfA  ä÷\fA  Úfß¶      .   vendor/symfony/polyfill-mbstring/bootstrap.phpË  ä÷\Ë  ó<Ë¢¶      7   vendor/symfony/process/Exception/ExceptionInterface.phpf   ä÷\f   ]ö>T¶      =   vendor/symfony/process/Exception/InvalidArgumentException.php¨   ä÷\¨   ÐÀ+_¶      3   vendor/symfony/process/Exception/LogicException.php   ä÷\    ³ãñ¶      ;   vendor/symfony/process/Exception/ProcessFailedException.phpx  ä÷\x  ¨Ìzy¶      =   vendor/symfony/process/Exception/ProcessTimedOutException.php  ä÷\  ï«¶      5   vendor/symfony/process/Exception/RuntimeException.php   ä÷\   ¢Ø:¶      +   vendor/symfony/process/ExecutableFinder.php  ä÷\  ûus¶      
-   vendor/symfony/process/LICENSE)  ä÷\)  NUN½¶      .   vendor/symfony/process/PhpExecutableFinder.phpÏ  ä÷\Ï  Î%h
-¶      %   vendor/symfony/process/PhpProcess.phpü  ä÷\ü  jûü¶      .   vendor/symfony/process/Pipes/AbstractPipes.php½  ä÷\½  æ¶      /   vendor/symfony/process/Pipes/PipesInterface.phpD  ä÷\D  vØî¡¶      *   vendor/symfony/process/Pipes/UnixPipes.php>  ä÷\>  ªir¶      -   vendor/symfony/process/Pipes/WindowsPipes.phpp
-  ä÷\p
-  âU~É¶      "   vendor/symfony/process/Process.php·R  ä÷\·R  `Õ¶      )   vendor/symfony/process/ProcessBuilder.phpâ
-  ä÷\â
-  
-M¶¶      '   vendor/symfony/process/ProcessUtils.phpQ  ä÷\Q  b-$m¶      
-   vendor/seld/jsonlint/LICENSE"  ä÷\"  asy¶      @   vendor/seld/jsonlint/src/Seld/JsonLint/DuplicateKeyException.php*  ä÷\*  pñ¶      5   vendor/seld/jsonlint/src/Seld/JsonLint/JsonParser.php/2  ä÷\/2  ­ßö¶      0   vendor/seld/jsonlint/src/Seld/JsonLint/Lexer.php  ä÷\  %ÿ3N¶      ;   vendor/seld/jsonlint/src/Seld/JsonLint/ParsingException.php
-  ä÷\
-  ²ñ¶      4   vendor/seld/jsonlint/src/Seld/JsonLint/Undefined.php>   ä÷\>   ÿq¶      (   vendor/justinrainbow/json-schema/LICENSE   ä÷\   ºç©¶      .   vendor/justinrainbow/json-schema/demo/demo.phpñ  ä÷\ñ  fC¶      N   vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/BaseConstraint.php¡	  ä÷\¡	  wÌl¶      T   vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/CollectionConstraint.php)
-  ä÷\)
-  #©¶      J   vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php§
-  ä÷\§
-  VØ¶      S   vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ConstraintInterface.php¼  ä÷\¼  ÿ Q¶      N   vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/EnumConstraint.php]  ä÷\]  VU<¶      G   vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Factory.phpã
-  ä÷\ã
-  á0;¶      P   vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/FormatConstraint.php
-  ä÷\
-  TÚ¶      P   vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/NumberConstraint.php
-  ä÷\
-  
-z&¶      P   vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ObjectConstraint.phpÃ  ä÷\Ã  ©Å¼x¶      P   vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/SchemaConstraint.php0	  ä÷\0	  ×j´¶      P   vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/StringConstraint.php  ä÷\  ¥w¶      X   vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/LooseTypeCheck.phpa  ä÷\a  
-	qÃ¶      Y   vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/StrictTypeCheck.phpp  ä÷\p  rë¶      \   vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/TypeCheckInterface.php  ä÷\  µ+j¶      N   vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeConstraint.php&  ä÷\&  4©T¶      S   vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php,"  ä÷\,"  ulÙ·¶      F   vendor/justinrainbow/json-schema/src/JsonSchema/Entity/JsonPointer.phpè  ä÷\è  {N¶      P   vendor/justinrainbow/json-schema/src/JsonSchema/Exception/ExceptionInterface.phpI   ä÷\I   %|°¶      V   vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidArgumentException.php   ä÷\   àG¶      T   vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidConfigException.phpl   ä÷\l   A!L×¶      T   vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSchemaException.phpl   ä÷\l   è2÷þ¶      ]   vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSchemaMediaTypeException.phpu   ä÷\u   =hç¶      W   vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSourceUriException.phpw   ä÷\w   N-ò[¶      S   vendor/justinrainbow/json-schema/src/JsonSchema/Exception/JsonDecodingException.phpÞ  ä÷\Þ  \¸
-¶      W   vendor/justinrainbow/json-schema/src/JsonSchema/Exception/ResourceNotFoundException.phpo   ä÷\o   píÛù¶      N   vendor/justinrainbow/json-schema/src/JsonSchema/Exception/RuntimeException.php
-   ä÷\
-   %
-¶      ^   vendor/justinrainbow/json-schema/src/JsonSchema/Exception/UnresolvableJsonPointerException.php   ä÷\   u-#1¶      R   vendor/justinrainbow/json-schema/src/JsonSchema/Exception/UriResolverException.phpj   ä÷\j   å>¶      Q   vendor/justinrainbow/json-schema/src/JsonSchema/Exception/ValidationException.phpf   ä÷\f   ¬¤þ¶      K   vendor/justinrainbow/json-schema/src/JsonSchema/Iterator/ObjectIterator.phpþ  ä÷\þ  Mõ¶      ;   vendor/justinrainbow/json-schema/src/JsonSchema/Rfc3339.php   ä÷\   f4÷³¶      A   vendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorage.php
-  ä÷\
-  åfO¶      J   vendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorageInterface.php  ä÷\  o+}¶      T   vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/AbstractRetriever.phpá   ä÷\á   [þA¶      G   vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/Curl.php¥  ä÷\¥  Ô§Lb¶      R   vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/FileGetContents.php%  ä÷\%  5" ¶      R   vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/PredefinedArray.php,  ä÷\,  15þ¶      X   vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/UriRetrieverInterface.php®   ä÷\®   ÿÁå¶      C   vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriResolver.php
-  ä÷\
-  £)à¶      D   vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php&  ä÷\&  ¼î¢¶      H   vendor/justinrainbow/json-schema/src/JsonSchema/UriResolverInterface.php   ä÷\   J¶      I   vendor/justinrainbow/json-schema/src/JsonSchema/UriRetrieverInterface.php
-   ä÷\
-   íæe¶      =   vendor/justinrainbow/json-schema/src/JsonSchema/Validator.phpx  ä÷\x  eÃþ¶      %   vendor/composer/spdx-licenses/LICENSE
-  ä÷\
-  Bhí¶      2   vendor/composer/spdx-licenses/src/SpdxLicenses.phpH  ä÷\H  ÍT¶      
-   vendor/composer/semver/LICENSE
-  ä÷\
-  Bhí¶      )   vendor/composer/semver/src/Comparator.php  ä÷\  wlï¶      <   vendor/composer/semver/src/Constraint/AbstractConstraint.php×  ä÷\×  õî>¶      4   vendor/composer/semver/src/Constraint/Constraint.phpª
-  ä÷\ª
-  ÇO7²¶      =   vendor/composer/semver/src/Constraint/ConstraintInterface.phpß   ä÷\ß   0C,¶      9   vendor/composer/semver/src/Constraint/EmptyConstraint.phpé  ä÷\é  !-Ø¶      9   vendor/composer/semver/src/Constraint/MultiConstraint.php1  ä÷\1  í xU¶      %   vendor/composer/semver/src/Semver.phpv  ä÷\v  ×È¶      ,   vendor/composer/semver/src/VersionParser.php¿*  ä÷\¿*  )mÆ¶      !   vendor/composer/ca-bundle/LICENSE
-  ä÷\
-  *!^`¶      *   vendor/composer/ca-bundle/src/CaBundle.php
-  ä÷\
-  Ê
-~Ä¶      &   vendor/composer/xdebug-handler/LICENSE)  ä÷\)  #Ô;^¶      0   vendor/composer/xdebug-handler/src/PhpConfig.php´  ä÷\´  *D ¶      .   vendor/composer/xdebug-handler/src/Process.phpt  ä÷\t  Ûú&¶      -   vendor/composer/xdebug-handler/src/Status.php
-  ä÷\
-  ²²¶      4   vendor/composer/xdebug-handler/src/XdebugHandler.phpå  ä÷\å  È°Ì¶         vendor/psr/log/LICENSE=  ä÷\=  p±O¶      )   vendor/psr/log/Psr/Log/AbstractLogger.php;  ä÷\;  ñ>3[¶      3   vendor/psr/log/Psr/Log/InvalidArgumentException.php`   ä÷\`    X1¶      #   vendor/psr/log/Psr/Log/LogLevel.phpû   ä÷\û   jðñ8¶      /   vendor/psr/log/Psr/Log/LoggerAwareInterface.php|   ä÷\|   $£¶      +   vendor/psr/log/Psr/Log/LoggerAwareTrait.php§   ä÷\§   T½úB¶      *   vendor/psr/log/Psr/Log/LoggerInterface.phpÆ  ä÷\Æ  »sg¶      &   vendor/psr/log/Psr/Log/LoggerTrait.phpi  ä÷\i  35§Þ¶      %   vendor/psr/log/Psr/Log/NullLogger.php   ä÷\   ÇÃ¶      3   vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.phpI
-  ä÷\I
-  õÇAs¶      *   vendor/psr/log/Psr/Log/Test/TestLogger.php   ä÷\   ôc ¶         vendor/autoload.php   ä÷\   òö p¶      '   vendor/composer/autoload_namespaces.phpd   ä÷\d   Z¡¦H¶      !   vendor/composer/autoload_psr4.php÷  ä÷\÷  Å*¶      %   vendor/composer/autoload_classmap.phpd   ä÷\d   Z¡¦H¶      "   vendor/composer/autoload_files.php  ä÷\  ¥  ®¶      !   vendor/composer/autoload_real.phpI  ä÷\I  5KY¶      #   vendor/composer/autoload_static.php§
-  ä÷\§
-  `~g¶         vendor/composer/ClassLoader.php¨  ä÷\¨  xää`¶      (   vendor/composer/ca-bundle/res/cacert.pem1 ä÷\1 Xó¶      
-   bin/composer
-  ä÷\
-  ¹Û¶         LICENSE.  ä÷\.   Õ¶      <?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Autoload;
-
-use Composer\Config;
-use Composer\EventDispatcher\EventDispatcher;
-use Composer\Installer\InstallationManager;
-use Composer\IO\IOInterface;
-use Composer\Package\AliasPackage;
-use Composer\Package\PackageInterface;
-use Composer\Repository\InstalledRepositoryInterface;
-use Composer\Util\Filesystem;
-use Composer\Script\ScriptEvents;
-
-
-
-
-
-class AutoloadGenerator
-{
-
-
-
-private $eventDispatcher;
-
-
-
-
-private $io;
-
-
-
-
-private $devMode = false;
-
-
-
-
-private $classMapAuthoritative = false;
-
-
-
-
-private $apcu = false;
-
-
-
-
-private $runScripts = false;
-
-public function __construct(EventDispatcher $eventDispatcher, IOInterface $io = null)
-{
-$this->eventDispatcher = $eventDispatcher;
-$this->io = $io;
-}
-
-public function setDevMode($devMode = true)
-{
-$this->devMode = (bool) $devMode;
-}
-
-
-
-
-
-
-
-public function setClassMapAuthoritative($classMapAuthoritative)
-{
-$this->classMapAuthoritative = (bool) $classMapAuthoritative;
-}
-
-
-
-
-
-
-public function setApcu($apcu)
-{
-$this->apcu = (bool) $apcu;
-}
-
-
-
-
-
-
-public function setRunScripts($runScripts = true)
-{
-$this->runScripts = (bool) $runScripts;
-}
-
-public function dump(Config $config, InstalledRepositoryInterface $localRepo, PackageInterface $mainPackage, InstallationManager $installationManager, $targetDir, $scanPsr0Packages = false, $suffix = '')
-{
-if ($this->classMapAuthoritative) {
-
- $scanPsr0Packages = true;
-}
-if ($this->runScripts) {
-$this->eventDispatcher->dispatchScript(ScriptEvents::PRE_AUTOLOAD_DUMP, $this->devMode, array(), array(
-'optimize' => (bool) $scanPsr0Packages,
-));
-}
-
-$filesystem = new Filesystem();
-$filesystem->ensureDirectoryExists($config->get('vendor-dir'));
-
- 
- 
- $basePath = $filesystem->normalizePath(realpath(realpath(getcwd())));
-$vendorPath = $filesystem->normalizePath(realpath(realpath($config->get('vendor-dir'))));
-$useGlobalIncludePath = (bool) $config->get('use-include-path');
-$prependAutoloader = $config->get('prepend-autoloader') === false ? 'false' : 'true';
-$targetDir = $vendorPath.'/'.$targetDir;
-$filesystem->ensureDirectoryExists($targetDir);
-
-$vendorPathCode = $filesystem->findShortestPathCode(realpath($targetDir), $vendorPath, true);
-$vendorPathCode52 = str_replace('__DIR__', 'dirname(__FILE__)', $vendorPathCode);
-$vendorPathToTargetDirCode = $filesystem->findShortestPathCode($vendorPath, realpath($targetDir), true);
-
-$appBaseDirCode = $filesystem->findShortestPathCode($vendorPath, $basePath, true);
-$appBaseDirCode = str_replace('__DIR__', '$vendorDir', $appBaseDirCode);
-
-$namespacesFile = <<<EOF
-<?php
-
-// autoload_namespaces.php @generated by Composer
-
-\$vendorDir = $vendorPathCode52;
-\$baseDir = $appBaseDirCode;
-
-return array(
-
-EOF;
-
-$psr4File = <<<EOF
-<?php
-
-// autoload_psr4.php @generated by Composer
-
-\$vendorDir = $vendorPathCode52;
-\$baseDir = $appBaseDirCode;
-
-return array(
-
-EOF;
-
-
- $packageMap = $this->buildPackageMap($installationManager, $mainPackage, $localRepo->getCanonicalPackages());
-$autoloads = $this->parseAutoloads($packageMap, $mainPackage, $this->devMode === false);
-
-
- foreach ($autoloads['psr-0'] as $namespace => $paths) {
-$exportedPaths = array();
-foreach ($paths as $path) {
-$exportedPaths[] = $this->getPathCode($filesystem, $basePath, $vendorPath, $path);
-}
-$exportedPrefix = var_export($namespace, true);
-$namespacesFile .= "    $exportedPrefix => ";
-$namespacesFile .= "array(".implode(', ', $exportedPaths)."),\n";
-}
-$namespacesFile .= ");\n";
-
-
- foreach ($autoloads['psr-4'] as $namespace => $paths) {
-$exportedPaths = array();
-foreach ($paths as $path) {
-$exportedPaths[] = $this->getPathCode($filesystem, $basePath, $vendorPath, $path);
-}
-$exportedPrefix = var_export($namespace, true);
-$psr4File .= "    $exportedPrefix => ";
-$psr4File .= "array(".implode(', ', $exportedPaths)."),\n";
-}
-$psr4File .= ");\n";
-
-$classmapFile = <<<EOF
-<?php
-
-// autoload_classmap.php @generated by Composer
-
-\$vendorDir = $vendorPathCode52;
-\$baseDir = $appBaseDirCode;
-
-return array(
-
-EOF;
-
-
- $targetDirLoader = null;
-$mainAutoload = $mainPackage->getAutoload();
-if ($mainPackage->getTargetDir() && !empty($mainAutoload['psr-0'])) {
-$levels = substr_count($filesystem->normalizePath($mainPackage->getTargetDir()), '/') + 1;
-$prefixes = implode(', ', array_map(function ($prefix) {
-return var_export($prefix, true);
-}, array_keys($mainAutoload['psr-0'])));
-$baseDirFromTargetDirCode = $filesystem->findShortestPathCode($targetDir, $basePath, true);
-
-$targetDirLoader = <<<EOF
-
-    public static function autoload(\$class)
-    {
-        \$dir = $baseDirFromTargetDirCode . '/';
-        \$prefixes = array($prefixes);
-        foreach (\$prefixes as \$prefix) {
-            if (0 !== strpos(\$class, \$prefix)) {
-                continue;
-            }
-            \$path = \$dir . implode('/', array_slice(explode('\\\\', \$class), $levels)).'.php';
-            if (!\$path = stream_resolve_include_path(\$path)) {
-                return false;
-            }
-            require \$path;
-
-            return true;
-        }
-    }
-
-EOF;
-}
-
-$blacklist = null;
-if (!empty($autoloads['exclude-from-classmap'])) {
-$blacklist = '{(' . implode('|', $autoloads['exclude-from-classmap']) . ')}';
-}
-
-
- $classMap = array();
-if ($scanPsr0Packages) {
-$namespacesToScan = array();
-
-
- foreach (array('psr-0', 'psr-4') as $psrType) {
-foreach ($autoloads[$psrType] as $namespace => $paths) {
-$namespacesToScan[$namespace][] = array('paths' => $paths, 'type' => $psrType);
-}
-}
-
-krsort($namespacesToScan);
-
-foreach ($namespacesToScan as $namespace => $groups) {
-foreach ($groups as $group) {
-foreach ($group['paths'] as $dir) {
-$dir = $filesystem->normalizePath($filesystem->isAbsolutePath($dir) ? $dir : $basePath.'/'.$dir);
-if (!is_dir($dir)) {
-continue;
-}
-
-$namespaceFilter = $namespace === '' ? null : $namespace;
-$classMap = $this->addClassMapCode($filesystem, $basePath, $vendorPath, $dir, $blacklist, $namespaceFilter, $classMap);
-}
-}
-}
-}
-
-foreach ($autoloads['classmap'] as $dir) {
-$classMap = $this->addClassMapCode($filesystem, $basePath, $vendorPath, $dir, $blacklist, null, $classMap);
-}
-
-ksort($classMap);
-foreach ($classMap as $class => $code) {
-$classmapFile .= '    '.var_export($class, true).' => '.$code;
-}
-$classmapFile .= ");\n";
-
-if (!$suffix) {
-if (!$config->get('autoloader-suffix') && is_readable($vendorPath.'/autoload.php')) {
-$content = file_get_contents($vendorPath.'/autoload.php');
-if (preg_match('{ComposerAutoloaderInit([^:\s]+)::}', $content, $match)) {
-$suffix = $match[1];
-}
-}
-
-if (!$suffix) {
-$suffix = $config->get('autoloader-suffix') ?: md5(uniqid('', true));
-}
-}
-
-file_put_contents($targetDir.'/autoload_namespaces.php', $namespacesFile);
-file_put_contents($targetDir.'/autoload_psr4.php', $psr4File);
-file_put_contents($targetDir.'/autoload_classmap.php', $classmapFile);
-$includePathFilePath = $targetDir.'/include_paths.php';
-if ($includePathFileContents = $this->getIncludePathsFile($packageMap, $filesystem, $basePath, $vendorPath, $vendorPathCode52, $appBaseDirCode)) {
-file_put_contents($includePathFilePath, $includePathFileContents);
-} elseif (file_exists($includePathFilePath)) {
-unlink($includePathFilePath);
-}
-$includeFilesFilePath = $targetDir.'/autoload_files.php';
-if ($includeFilesFileContents = $this->getIncludeFilesFile($autoloads['files'], $filesystem, $basePath, $vendorPath, $vendorPathCode52, $appBaseDirCode)) {
-file_put_contents($includeFilesFilePath, $includeFilesFileContents);
-} elseif (file_exists($includeFilesFilePath)) {
-unlink($includeFilesFilePath);
-}
-file_put_contents($targetDir.'/autoload_static.php', $this->getStaticFile($suffix, $targetDir, $vendorPath, $basePath, $staticPhpVersion));
-file_put_contents($vendorPath.'/autoload.php', $this->getAutoloadFile($vendorPathToTargetDirCode, $suffix));
-file_put_contents($targetDir.'/autoload_real.php', $this->getAutoloadRealFile(true, (bool) $includePathFileContents, $targetDirLoader, (bool) $includeFilesFileContents, $vendorPathCode, $appBaseDirCode, $suffix, $useGlobalIncludePath, $prependAutoloader, $staticPhpVersion));
-
-$this->safeCopy(__DIR__.'/ClassLoader.php', $targetDir.'/ClassLoader.php');
-$this->safeCopy(__DIR__.'/../../../LICENSE', $targetDir.'/LICENSE');
-
-if ($this->runScripts) {
-$this->eventDispatcher->dispatchScript(ScriptEvents::POST_AUTOLOAD_DUMP, $this->devMode, array(), array(
-'optimize' => (bool) $scanPsr0Packages,
-));
-}
-
-return count($classMap);
-}
-
-private function addClassMapCode($filesystem, $basePath, $vendorPath, $dir, $blacklist = null, $namespaceFilter = null, array $classMap = array())
-{
-foreach ($this->generateClassMap($dir, $blacklist, $namespaceFilter) as $class => $path) {
-$pathCode = $this->getPathCode($filesystem, $basePath, $vendorPath, $path).",\n";
-if (!isset($classMap[$class])) {
-$classMap[$class] = $pathCode;
-} elseif ($this->io && $classMap[$class] !== $pathCode && !preg_match('{/(test|fixture|example|stub)s?/}i', strtr($classMap[$class].' '.$path, '\\', '/'))) {
-$this->io->writeError(
-'<warning>Warning: Ambiguous class resolution, "'.$class.'"'.
-' was found in both "'.str_replace(array('$vendorDir . \'', "',\n"), array($vendorPath, ''), $classMap[$class]).'" and "'.$path.'", the first will be used.</warning>'
-);
-}
-}
-
-return $classMap;
-}
-
-private function generateClassMap($dir, $blacklist = null, $namespaceFilter = null, $showAmbiguousWarning = true)
-{
-return ClassMapGenerator::createMap($dir, $blacklist, $showAmbiguousWarning ? $this->io : null, $namespaceFilter);
-}
-
-public function buildPackageMap(InstallationManager $installationManager, PackageInterface $mainPackage, array $packages)
-{
-
- $packageMap = array(array($mainPackage, ''));
-
-foreach ($packages as $package) {
-if ($package instanceof AliasPackage) {
-continue;
-}
-$this->validatePackage($package);
-
-$packageMap[] = array(
-$package,
-$installationManager->getInstallPath($package),
-);
-}
-
-return $packageMap;
-}
-
-
-
-
-
-
-protected function validatePackage(PackageInterface $package)
-{
-$autoload = $package->getAutoload();
-if (!empty($autoload['psr-4']) && null !== $package->getTargetDir()) {
-$name = $package->getName();
-$package->getTargetDir();
-throw new \InvalidArgumentException("PSR-4 autoloading is incompatible with the target-dir property, remove the target-dir in package '$name'.");
-}
-if (!empty($autoload['psr-4'])) {
-foreach ($autoload['psr-4'] as $namespace => $dirs) {
-if ($namespace !== '' && '\\' !== substr($namespace, -1)) {
-throw new \InvalidArgumentException("psr-4 namespaces must end with a namespace separator, '$namespace' does not, use '$namespace\\'.");
-}
-}
-}
-}
-
-
-
-
-
-
-
-
-
-public function parseAutoloads(array $packageMap, PackageInterface $mainPackage, $filterOutRequireDevPackages = false)
-{
-$mainPackageMap = array_shift($packageMap);
-if ($filterOutRequireDevPackages) {
-$packageMap = $this->filterPackageMap($packageMap, $mainPackage);
-}
-$sortedPackageMap = $this->sortPackageMap($packageMap);
-$sortedPackageMap[] = $mainPackageMap;
-array_unshift($packageMap, $mainPackageMap);
-
-$psr0 = $this->parseAutoloadsType($packageMap, 'psr-0', $mainPackage);
-$psr4 = $this->parseAutoloadsType($packageMap, 'psr-4', $mainPackage);
-$classmap = $this->parseAutoloadsType(array_reverse($sortedPackageMap), 'classmap', $mainPackage);
-$files = $this->parseAutoloadsType($sortedPackageMap, 'files', $mainPackage);
-$exclude = $this->parseAutoloadsType($sortedPackageMap, 'exclude-from-classmap', $mainPackage);
-
-krsort($psr0);
-krsort($psr4);
-
-return array(
-'psr-0' => $psr0,
-'psr-4' => $psr4,
-'classmap' => $classmap,
-'files' => $files,
-'exclude-from-classmap' => $exclude,
-);
-}
-
-
-
-
-
-
-
-public function createLoader(array $autoloads)
-{
-$loader = new ClassLoader();
-
-if (isset($autoloads['psr-0'])) {
-foreach ($autoloads['psr-0'] as $namespace => $path) {
-$loader->add($namespace, $path);
-}
-}
-
-if (isset($autoloads['psr-4'])) {
-foreach ($autoloads['psr-4'] as $namespace => $path) {
-$loader->addPsr4($namespace, $path);
-}
-}
-
-if (isset($autoloads['classmap'])) {
-$blacklist = null;
-if (!empty($autoloads['exclude-from-classmap'])) {
-$blacklist = '{(' . implode('|', $autoloads['exclude-from-classmap']) . ')}';
-}
-
-foreach ($autoloads['classmap'] as $dir) {
-try {
-$loader->addClassMap($this->generateClassMap($dir, $blacklist, null, false));
-} catch (\RuntimeException $e) {
-$this->io->writeError('<warning>'.$e->getMessage().'</warning>');
-}
-}
-}
-
-return $loader;
-}
-
-protected function getIncludePathsFile(array $packageMap, Filesystem $filesystem, $basePath, $vendorPath, $vendorPathCode, $appBaseDirCode)
-{
-$includePaths = array();
-
-foreach ($packageMap as $item) {
-list($package, $installPath) = $item;
-
-if (null !== $package->getTargetDir() && strlen($package->getTargetDir()) > 0) {
-$installPath = substr($installPath, 0, -strlen('/'.$package->getTargetDir()));
-}
-
-foreach ($package->getIncludePaths() as $includePath) {
-$includePath = trim($includePath, '/');
-$includePaths[] = empty($installPath) ? $includePath : $installPath.'/'.$includePath;
-}
-}
-
-if (!$includePaths) {
-return;
-}
-
-$includePathsCode = '';
-foreach ($includePaths as $path) {
-$includePathsCode .= "    " . $this->getPathCode($filesystem, $basePath, $vendorPath, $path) . ",\n";
-}
-
-return <<<EOF
-<?php
-
-// include_paths.php @generated by Composer
-
-\$vendorDir = $vendorPathCode;
-\$baseDir = $appBaseDirCode;
-
-return array(
-$includePathsCode);
-
-EOF;
-}
-
-protected function getIncludeFilesFile(array $files, Filesystem $filesystem, $basePath, $vendorPath, $vendorPathCode, $appBaseDirCode)
-{
-$filesCode = '';
-foreach ($files as $fileIdentifier => $functionFile) {
-$filesCode .= '    ' . var_export($fileIdentifier, true) . ' => '
-. $this->getPathCode($filesystem, $basePath, $vendorPath, $functionFile) . ",\n";
-}
-
-if (!$filesCode) {
-return false;
-}
-
-return <<<EOF
-<?php
-
-// autoload_files.php @generated by Composer
-
-\$vendorDir = $vendorPathCode;
-\$baseDir = $appBaseDirCode;
-
-return array(
-$filesCode);
-
-EOF;
-}
-
-protected function getPathCode(Filesystem $filesystem, $basePath, $vendorPath, $path)
-{
-if (!$filesystem->isAbsolutePath($path)) {
-$path = $basePath . '/' . $path;
-}
-$path = $filesystem->normalizePath($path);
-
-$baseDir = '';
-if (strpos($path.'/', $vendorPath.'/') === 0) {
-$path = substr($path, strlen($vendorPath));
-$baseDir = '$vendorDir';
-
-if ($path !== false) {
-$baseDir .= " . ";
-}
-} else {
-$path = $filesystem->normalizePath($filesystem->findShortestPath($basePath, $path, true));
-if (!$filesystem->isAbsolutePath($path)) {
-$baseDir = '$baseDir . ';
-$path = '/' . $path;
-}
-}
-
-if (preg_match('/\.phar.+$/', $path)) {
-$baseDir = "'phar://' . " . $baseDir;
-}
-
-return $baseDir . (($path !== false) ? var_export($path, true) : "");
-}
-
-protected function getAutoloadFile($vendorPathToTargetDirCode, $suffix)
-{
-$lastChar = $vendorPathToTargetDirCode[strlen($vendorPathToTargetDirCode) - 1];
-if ("'" === $lastChar || '"' === $lastChar) {
-$vendorPathToTargetDirCode = substr($vendorPathToTargetDirCode, 0, -1).'/autoload_real.php'.$lastChar;
-} else {
-$vendorPathToTargetDirCode .= " . '/autoload_real.php'";
-}
-
-return <<<AUTOLOAD
-<?php
-
-// autoload.php @generated by Composer
-
-require_once $vendorPathToTargetDirCode;
-
-return ComposerAutoloaderInit$suffix::getLoader();
-
-AUTOLOAD;
-}
-
-protected function getAutoloadRealFile($useClassMap, $useIncludePath, $targetDirLoader, $useIncludeFiles, $vendorPathCode, $appBaseDirCode, $suffix, $useGlobalIncludePath, $prependAutoloader, $staticPhpVersion = 70000)
-{
-$file = <<<HEADER
-<?php
-
-// autoload_real.php @generated by Composer
-
-class ComposerAutoloaderInit$suffix
-{
-    private static \$loader;
-
-    public static function loadClassLoader(\$class)
-    {
-        if ('Composer\\Autoload\\ClassLoader' === \$class) {
-            require __DIR__ . '/ClassLoader.php';
-        }
-    }
-
-    public static function getLoader()
-    {
-        if (null !== self::\$loader) {
-            return self::\$loader;
-        }
-
-        spl_autoload_register(array('ComposerAutoloaderInit$suffix', 'loadClassLoader'), true, $prependAutoloader);
-        self::\$loader = \$loader = new \\Composer\\Autoload\\ClassLoader();
-        spl_autoload_unregister(array('ComposerAutoloaderInit$suffix', 'loadClassLoader'));
-
-
-HEADER;
-
-if ($useIncludePath) {
-$file .= <<<'INCLUDE_PATH'
-        $includePaths = require __DIR__ . '/include_paths.php';
-        $includePaths[] = get_include_path();
-        set_include_path(implode(PATH_SEPARATOR, $includePaths));
-
-
-INCLUDE_PATH;
-}
-
-$file .= <<<STATIC_INIT
-        \$useStaticLoader = PHP_VERSION_ID >= $staticPhpVersion && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
-        if (\$useStaticLoader) {
-            require_once __DIR__ . '/autoload_static.php';
-
-            call_user_func(\Composer\Autoload\ComposerStaticInit$suffix::getInitializer(\$loader));
-        } else {
-
-STATIC_INIT;
-
-if (!$this->classMapAuthoritative) {
-$file .= <<<'PSR04'
-            $map = require __DIR__ . '/autoload_namespaces.php';
-            foreach ($map as $namespace => $path) {
-                $loader->set($namespace, $path);
-            }
-
-            $map = require __DIR__ . '/autoload_psr4.php';
-            foreach ($map as $namespace => $path) {
-                $loader->setPsr4($namespace, $path);
-            }
-
-
-PSR04;
-}
-
-if ($useClassMap) {
-$file .= <<<'CLASSMAP'
-            $classMap = require __DIR__ . '/autoload_classmap.php';
-            if ($classMap) {
-                $loader->addClassMap($classMap);
-            }
-
-CLASSMAP;
-}
-
-$file .= "        }\n\n";
-
-if ($this->classMapAuthoritative) {
-$file .= <<<'CLASSMAPAUTHORITATIVE'
-        $loader->setClassMapAuthoritative(true);
-
-CLASSMAPAUTHORITATIVE;
-}
-
-if ($this->apcu) {
-$apcuPrefix = substr(base64_encode(md5(uniqid('', true), true)), 0, -3);
-$file .= <<<APCU
-        \$loader->setApcuPrefix('$apcuPrefix');
-
-APCU;
-}
-
-if ($useGlobalIncludePath) {
-$file .= <<<'INCLUDEPATH'
-        $loader->setUseIncludePath(true);
-
-INCLUDEPATH;
-}
-
-if ($targetDirLoader) {
-$file .= <<<REGISTER_TARGET_DIR_AUTOLOAD
-        spl_autoload_register(array('ComposerAutoloaderInit$suffix', 'autoload'), true, true);
-
-
-REGISTER_TARGET_DIR_AUTOLOAD;
-}
-
-$file .= <<<REGISTER_LOADER
-        \$loader->register($prependAutoloader);
-
-
-REGISTER_LOADER;
-
-if ($useIncludeFiles) {
-$file .= <<<INCLUDE_FILES
-        if (\$useStaticLoader) {
-            \$includeFiles = Composer\Autoload\ComposerStaticInit$suffix::\$files;
-        } else {
-            \$includeFiles = require __DIR__ . '/autoload_files.php';
-        }
-        foreach (\$includeFiles as \$fileIdentifier => \$file) {
-            composerRequire$suffix(\$fileIdentifier, \$file);
-        }
-
-
-INCLUDE_FILES;
-}
-
-$file .= <<<METHOD_FOOTER
-        return \$loader;
-    }
-
-METHOD_FOOTER;
-
-$file .= $targetDirLoader;
-
-if ($useIncludeFiles) {
-return $file . <<<FOOTER
-}
-
-function composerRequire$suffix(\$fileIdentifier, \$file)
-{
-    if (empty(\$GLOBALS['__composer_autoload_files'][\$fileIdentifier])) {
-        require \$file;
-
-        \$GLOBALS['__composer_autoload_files'][\$fileIdentifier] = true;
-    }
-}
-
-FOOTER;
-}
-
-return $file . <<<FOOTER
-}
-
-FOOTER;
-}
-
-protected function getStaticFile($suffix, $targetDir, $vendorPath, $basePath, &$staticPhpVersion)
-{
-$staticPhpVersion = 50600;
-
-$file = <<<HEADER
-<?php
-
-// autoload_static.php @generated by Composer
-
-namespace Composer\Autoload;
-
-class ComposerStaticInit$suffix
-{
-
-HEADER;
-
-$loader = new ClassLoader();
-
-$map = require $targetDir . '/autoload_namespaces.php';
-foreach ($map as $namespace => $path) {
-$loader->set($namespace, $path);
-}
-
-$map = require $targetDir . '/autoload_psr4.php';
-foreach ($map as $namespace => $path) {
-$loader->setPsr4($namespace, $path);
-}
-
-$classMap = require $targetDir . '/autoload_classmap.php';
-if ($classMap) {
-$loader->addClassMap($classMap);
-}
-
-$filesystem = new Filesystem();
-
-$vendorPathCode = ' => ' . $filesystem->findShortestPathCode(realpath($targetDir), $vendorPath, true, true) . " . '/";
-$appBaseDirCode = ' => ' . $filesystem->findShortestPathCode(realpath($targetDir), $basePath, true, true) . " . '/";
-
-$absoluteVendorPathCode = ' => ' . substr(var_export(rtrim($vendorDir, '\\/') . '/', true), 0, -1);
-$absoluteAppBaseDirCode = ' => ' . substr(var_export(rtrim($baseDir, '\\/') . '/', true), 0, -1);
-
-$initializer = '';
-$prefix = "\0Composer\Autoload\ClassLoader\0";
-$prefixLen = strlen($prefix);
-if (file_exists($targetDir . '/autoload_files.php')) {
-$maps = array('files' => require $targetDir . '/autoload_files.php');
-} else {
-$maps = array();
-}
-
-foreach ((array) $loader as $prop => $value) {
-if ($value && 0 === strpos($prop, $prefix)) {
-$maps[substr($prop, $prefixLen)] = $value;
-}
-}
-
-foreach ($maps as $prop => $value) {
-if (count($value) > 32767) {
-
- 
- $staticPhpVersion = 70000;
-}
-$value = var_export($value, true);
-$value = str_replace($absoluteVendorPathCode, $vendorPathCode, $value);
-$value = str_replace($absoluteAppBaseDirCode, $appBaseDirCode, $value);
-$value = ltrim(preg_replace('/^ */m', '    $0$0', $value));
-
-$file .= sprintf("    public static $%s = %s;\n\n", $prop, $value);
-if ('files' !== $prop) {
-$initializer .= "            \$loader->$prop = ComposerStaticInit$suffix::\$$prop;\n";
-}
-}
-
-return $file . <<<INITIALIZER
-    public static function getInitializer(ClassLoader \$loader)
-    {
-        return \Closure::bind(function () use (\$loader) {
-$initializer
-        }, null, ClassLoader::class);
-    }
-}
-
-INITIALIZER;
-}
-
-protected function parseAutoloadsType(array $packageMap, $type, PackageInterface $mainPackage)
-{
-$autoloads = array();
-
-foreach ($packageMap as $item) {
-list($package, $installPath) = $item;
-
-$autoload = $package->getAutoload();
-if ($this->devMode && $package === $mainPackage) {
-$autoload = array_merge_recursive($autoload, $package->getDevAutoload());
-}
-
-
- if (!isset($autoload[$type]) || !is_array($autoload[$type])) {
-continue;
-}
-if (null !== $package->getTargetDir() && $package !== $mainPackage) {
-$installPath = substr($installPath, 0, -strlen('/'.$package->getTargetDir()));
-}
-
-foreach ($autoload[$type] as $namespace => $paths) {
-foreach ((array) $paths as $path) {
-if (($type === 'files' || $type === 'classmap' || $type === 'exclude-from-classmap') && $package->getTargetDir() && !is_readable($installPath.'/'.$path)) {
-
- if ($package === $mainPackage) {
-$targetDir = str_replace('\\<dirsep\\>', '[\\\\/]', preg_quote(str_replace(array('/', '\\'), '<dirsep>', $package->getTargetDir())));
-$path = ltrim(preg_replace('{^'.$targetDir.'}', '', ltrim($path, '\\/')), '\\/');
-} else {
-
- $path = $package->getTargetDir() . '/' . $path;
-}
-}
-
-if ($type === 'exclude-from-classmap') {
-
- $path = preg_replace('{/+}', '/', preg_quote(trim(strtr($path, '\\', '/'), '/')));
-
-
- $path = str_replace('\\*\\*', '.+?', $path);
-$path = str_replace('\\*', '[^/]+?', $path);
-
-
- $updir = null;
-$path = preg_replace_callback(
-'{^((?:(?:\\\\\\.){1,2}+/)+)}',
-function ($matches) use (&$updir) {
-if (isset($matches[1])) {
-
- $updir = str_replace('\\.', '.', $matches[1]);
-}
-
-return '';
-},
-$path
-);
-if (empty($installPath)) {
-$installPath = strtr(getcwd(), '\\', '/');
-}
-
-$resolvedPath = realpath($installPath . '/' . $updir);
-$autoloads[] = preg_quote(strtr($resolvedPath, '\\', '/')) . '/' . $path;
-continue;
-}
-
-$relativePath = empty($installPath) ? (empty($path) ? '.' : $path) : $installPath.'/'.$path;
-
-if ($type === 'files') {
-$autoloads[$this->getFileIdentifier($package, $path)] = $relativePath;
-continue;
-} elseif ($type === 'classmap') {
-$autoloads[] = $relativePath;
-continue;
-}
-
-$autoloads[$namespace][] = $relativePath;
-}
-}
-}
-
-return $autoloads;
-}
-
-protected function getFileIdentifier(PackageInterface $package, $path)
-{
-return md5($package->getName() . ':' . $path);
-}
-
-
-
-
-
-
-
-
-protected function filterPackageMap(array $packageMap, PackageInterface $mainPackage)
-{
-$packages = array();
-$include = array();
-
-foreach ($packageMap as $item) {
-$package = $item[0];
-$name = $package->getName();
-$packages[$name] = $package;
-}
-
-$add = function (PackageInterface $package) use (&$add, $packages, &$include) {
-foreach ($package->getRequires() as $link) {
-$target = $link->getTarget();
-if (!isset($include[$target])) {
-$include[$target] = true;
-if (isset($packages[$target])) {
-$add($packages[$target]);
-}
-}
-}
-};
-$add($mainPackage);
-
-return array_filter(
-$packageMap,
-function ($item) use ($include) {
-$package = $item[0];
-$name = $package->getName();
-
-return isset($include[$name]);
-}
-);
-}
-
-
-
-
-
-
-
-
-
-protected function sortPackageMap(array $packageMap)
-{
-$packages = array();
-$paths = array();
-$usageList = array();
-
-foreach ($packageMap as $item) {
-list($package, $path) = $item;
-$name = $package->getName();
-$packages[$name] = $package;
-$paths[$name] = $path;
-
-foreach (array_merge($package->getRequires(), $package->getDevRequires()) as $link) {
-$target = $link->getTarget();
-$usageList[$target][] = $name;
-}
-}
-
-$computing = array();
-$computed = array();
-$computeImportance = function ($name) use (&$computeImportance, &$computing, &$computed, $usageList) {
-
- if (isset($computed[$name])) {
-return $computed[$name];
-}
-
-
- if (isset($computing[$name])) {
-return 0;
-}
-
-$computing[$name] = true;
-$weight = 0;
-
-if (isset($usageList[$name])) {
-foreach ($usageList[$name] as $user) {
-$weight -= 1 - $computeImportance($user);
-}
-}
-
-unset($computing[$name]);
-$computed[$name] = $weight;
-
-return $weight;
-};
-
-$weightList = array();
-
-foreach ($packages as $name => $package) {
-$weight = $computeImportance($name);
-$weightList[$name] = $weight;
-}
-
-$stable_sort = function (&$array) {
-static $transform, $restore;
-
-$i = 0;
-
-if (!$transform) {
-$transform = function (&$v, $k) use (&$i) {
-$v = array($v, ++$i, $k, $v);
-};
-
-$restore = function (&$v, $k) {
-$v = $v[3];
-};
-}
-
-array_walk($array, $transform);
-asort($array);
-array_walk($array, $restore);
-};
-
-$stable_sort($weightList);
-
-$sortedPackageMap = array();
-
-foreach (array_keys($weightList) as $name) {
-$sortedPackageMap[] = array($packages[$name], $paths[$name]);
-}
-
-return $sortedPackageMap;
-}
-
-
-
-
-
-
-
-protected function safeCopy($source, $target)
-{
-$source = fopen($source, 'r');
-$target = fopen($target, 'w+');
-
-stream_copy_to_stream($source, $target);
-fclose($source);
-fclose($target);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Autoload;
-
-use Symfony\Component\Finder\Finder;
-use Composer\IO\IOInterface;
-use Composer\Util\Filesystem;
-
-
-
-
-
-
-
-class ClassMapGenerator
-{
-
-
-
-
-
-
-public static function dump($dirs, $file)
-{
-$maps = array();
-
-foreach ($dirs as $dir) {
-$maps = array_merge($maps, static::createMap($dir));
-}
-
-file_put_contents($file, sprintf('<?php return %s;', var_export($maps, true)));
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public static function createMap($path, $blacklist = null, IOInterface $io = null, $namespace = null)
-{
-if (is_string($path)) {
-if (is_file($path)) {
-$path = array(new \SplFileInfo($path));
-} elseif (is_dir($path)) {
-$path = Finder::create()->files()->followLinks()->name('/\.(php|inc|hh)$/')->in($path);
-} else {
-throw new \RuntimeException(
-'Could not scan for classes inside "'.$path.
-'" which does not appear to be a file nor a folder'
-);
-}
-}
-
-$map = array();
-$filesystem = new Filesystem();
-$cwd = realpath(getcwd());
-
-foreach ($path as $file) {
-$filePath = $file->getPathname();
-if (!in_array(pathinfo($filePath, PATHINFO_EXTENSION), array('php', 'inc', 'hh'))) {
-continue;
-}
-
-if (!$filesystem->isAbsolutePath($filePath)) {
-$filePath = $cwd . '/' . $filePath;
-$filePath = $filesystem->normalizePath($filePath);
-} else {
-$filePath = preg_replace('{[\\\\/]{2,}}', '/', $filePath);
-}
-
-
- if ($blacklist && preg_match($blacklist, strtr(realpath($filePath), '\\', '/'))) {
-continue;
-}
-
- if ($blacklist && preg_match($blacklist, strtr($filePath, '\\', '/'))) {
-continue;
-}
-
-$classes = self::findClasses($filePath);
-
-foreach ($classes as $class) {
-
- if (null !== $namespace && 0 !== strpos($class, $namespace)) {
-continue;
-}
-
-if (!isset($map[$class])) {
-$map[$class] = $filePath;
-} elseif ($io && $map[$class] !== $filePath && !preg_match('{/(test|fixture|example|stub)s?/}i', strtr($map[$class].' '.$filePath, '\\', '/'))) {
-$io->writeError(
-'<warning>Warning: Ambiguous class resolution, "'.$class.'"'.
-' was found in both "'.$map[$class].'" and "'.$filePath.'", the first will be used.</warning>'
-);
-}
-}
-}
-
-return $map;
-}
-
-
-
-
-
-
-
-
-private static function findClasses($path)
-{
-$extraTypes = PHP_VERSION_ID < 50400 ? '' : '|trait';
-if (defined('HHVM_VERSION') && version_compare(HHVM_VERSION, '3.3', '>=')) {
-$extraTypes .= '|enum';
-}
-
-
- 
- $contents = @php_strip_whitespace($path);
-if (!$contents) {
-if (!file_exists($path)) {
-$message = 'File at "%s" does not exist, check your classmap definitions';
-} elseif (!is_readable($path)) {
-$message = 'File at "%s" is not readable, check its permissions';
-} elseif ('' === trim(file_get_contents($path))) {
-
- return array();
-} else {
-$message = 'File at "%s" could not be parsed as PHP, it may be binary or corrupted';
-}
-$error = error_get_last();
-if (isset($error['message'])) {
-$message .= PHP_EOL . 'The following message may be helpful:' . PHP_EOL . $error['message'];
-}
-throw new \RuntimeException(sprintf($message, $path));
-}
-
-
- if (!preg_match('{\b(?:class|interface'.$extraTypes.')\s}i', $contents)) {
-return array();
-}
-
-
- $contents = preg_replace('{<<<\s*(\'?)(\w+)\\1(?:\r\n|\n|\r)(?:.*?)(?:\r\n|\n|\r)\\2(?=\r\n|\n|\r|;)}s', 'null', $contents);
-
- $contents = preg_replace('{"[^"\\\\]*+(\\\\.[^"\\\\]*+)*+"|\'[^\'\\\\]*+(\\\\.[^\'\\\\]*+)*+\'}s', 'null', $contents);
-
- if (substr($contents, 0, 2) !== '<?') {
-$contents = preg_replace('{^.+?<\?}s', '<?', $contents, 1, $replacements);
-if ($replacements === 0) {
-return array();
-}
-}
-
- $contents = preg_replace('{\?>.+<\?}s', '?><?', $contents);
-
- $pos = strrpos($contents, '?>');
-if (false !== $pos && false === strpos(substr($contents, $pos), '<?')) {
-$contents = substr($contents, 0, $pos);
-}
-
- if (preg_match('{(<\?)(?!(php|hh))}i', $contents)) {
-$contents = preg_replace('{//.* | /\*(?:[^*]++|\*(?!/))*\*/}x', '', $contents);
-}
-
-preg_match_all('{
-            (?:
-                 \b(?<![\$:>])(?P<type>class|interface'.$extraTypes.') \s++ (?P<name>[a-zA-Z_\x7f-\xff:][a-zA-Z0-9_\x7f-\xff:\-]*+)
-               | \b(?<![\$:>])(?P<ns>namespace) (?P<nsname>\s++[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+(?:\s*+\\\\\s*+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+)*+)? \s*+ [\{;]
-            )
-        }ix', $contents, $matches);
-
-$classes = array();
-$namespace = '';
-
-for ($i = 0, $len = count($matches['type']); $i < $len; $i++) {
-if (!empty($matches['ns'][$i])) {
-$namespace = str_replace(array(' ', "\t", "\r", "\n"), '', $matches['nsname'][$i]) . '\\';
-} else {
-$name = $matches['name'][$i];
-
- if ($name === 'extends' || $name === 'implements') {
-continue;
-}
-if ($name[0] === ':') {
-
- $name = 'xhp'.substr(str_replace(array('-', ':'), array('_', '__'), $name), 1);
-} elseif ($matches['type'][$i] === 'enum') {
-
- 
- 
- 
- $name = rtrim($name, ':');
-}
-$classes[] = ltrim($namespace . $name, '\\');
-}
-}
-
-return $classes;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer;
-
-use Composer\IO\IOInterface;
-use Composer\Util\Filesystem;
-use Composer\Util\Silencer;
-use Symfony\Component\Finder\Finder;
-
-
-
-
-
-
-class Cache
-{
-private static $cacheCollected = false;
-private $io;
-private $root;
-private $enabled = true;
-private $whitelist;
-private $filesystem;
-
-
-
-
-
-
-
-public function __construct(IOInterface $io, $cacheDir, $whitelist = 'a-z0-9.', Filesystem $filesystem = null)
-{
-$this->io = $io;
-$this->root = rtrim($cacheDir, '/\\') . '/';
-$this->whitelist = $whitelist;
-$this->filesystem = $filesystem ?: new Filesystem();
-
-if (preg_match('{(^|[\\\\/])(\$null|NUL|/dev/null)([\\\\/]|$)}', $cacheDir)) {
-$this->enabled = false;
-
-return;
-}
-
-if (
-(!is_dir($this->root) && !Silencer::call('mkdir', $this->root, 0777, true))
-|| !is_writable($this->root)
-) {
-$this->io->writeError('<warning>Cannot create cache directory ' . $this->root . ', or directory is not writable. Proceeding without cache</warning>');
-$this->enabled = false;
-}
-}
-
-public function isEnabled()
-{
-return $this->enabled;
-}
-
-public function getRoot()
-{
-return $this->root;
-}
-
-public function read($file)
-{
-if ($this->enabled) {
-$file = preg_replace('{[^'.$this->whitelist.']}i', '-', $file);
-if (file_exists($this->root . $file)) {
-$this->io->writeError('Reading '.$this->root . $file.' from cache', true, IOInterface::DEBUG);
-
-return file_get_contents($this->root . $file);
-}
-}
-
-return false;
-}
-
-public function write($file, $contents)
-{
-if ($this->enabled) {
-$file = preg_replace('{[^'.$this->whitelist.']}i', '-', $file);
-
-$this->io->writeError('Writing '.$this->root . $file.' into cache', true, IOInterface::DEBUG);
-
-try {
-return file_put_contents($this->root . $file, $contents);
-} catch (\ErrorException $e) {
-$this->io->writeError('<warning>Failed to write into cache: '.$e->getMessage().'</warning>', true, IOInterface::DEBUG);
-if (preg_match('{^file_put_contents\(\): Only ([0-9]+) of ([0-9]+) bytes written}', $e->getMessage(), $m)) {
-
- unlink($this->root . $file);
-
-$message = sprintf(
-'<warning>Writing %1$s into cache failed after %2$u of %3$u bytes written, only %4$u bytes of free space available</warning>',
-$this->root . $file,
-$m[1],
-$m[2],
-@disk_free_space($this->root . dirname($file))
-);
-
-$this->io->writeError($message);
-
-return false;
-}
-
-throw $e;
-}
-}
-
-return false;
-}
-
-
-
-
-public function copyFrom($file, $source)
-{
-if ($this->enabled) {
-$file = preg_replace('{[^'.$this->whitelist.']}i', '-', $file);
-$this->filesystem->ensureDirectoryExists(dirname($this->root . $file));
-
-if (!file_exists($source)) {
-$this->io->writeError('<error>'.$source.' does not exist, can not write into cache</error>');
-} elseif ($this->io->isDebug()) {
-$this->io->writeError('Writing '.$this->root . $file.' into cache from '.$source);
-}
-
-return copy($source, $this->root . $file);
-}
-
-return false;
-}
-
-
-
-
-public function copyTo($file, $target)
-{
-if ($this->enabled) {
-$file = preg_replace('{[^'.$this->whitelist.']}i', '-', $file);
-if (file_exists($this->root . $file)) {
-try {
-touch($this->root . $file, filemtime($this->root . $file), time());
-} catch (\ErrorException $e) {
-
- 
- Silencer::call('touch', $this->root . $file);
-}
-
-$this->io->writeError('Reading '.$this->root . $file.' from cache', true, IOInterface::DEBUG);
-
-return copy($this->root . $file, $target);
-}
-}
-
-return false;
-}
-
-public function gcIsNecessary()
-{
-return (!self::$cacheCollected && !mt_rand(0, 50));
-}
-
-public function remove($file)
-{
-if ($this->enabled) {
-$file = preg_replace('{[^'.$this->whitelist.']}i', '-', $file);
-if (file_exists($this->root . $file)) {
-return $this->filesystem->unlink($this->root . $file);
-}
-}
-
-return false;
-}
-
-public function clear()
-{
-if ($this->enabled) {
-return $this->filesystem->removeDirectory($this->root);
-}
-
-return false;
-}
-
-public function gc($ttl, $maxSize)
-{
-if ($this->enabled) {
-$expire = new \DateTime();
-$expire->modify('-'.$ttl.' seconds');
-
-$finder = $this->getFinder()->date('until '.$expire->format('Y-m-d H:i:s'));
-foreach ($finder as $file) {
-$this->filesystem->unlink($file->getPathname());
-}
-
-$totalSize = $this->filesystem->size($this->root);
-if ($totalSize > $maxSize) {
-$iterator = $this->getFinder()->sortByAccessedTime()->getIterator();
-while ($totalSize > $maxSize && $iterator->valid()) {
-$filepath = $iterator->current()->getPathname();
-$totalSize -= $this->filesystem->size($filepath);
-$this->filesystem->unlink($filepath);
-$iterator->next();
-}
-}
-
-self::$cacheCollected = true;
-
-return true;
-}
-
-return false;
-}
-
-public function sha1($file)
-{
-if ($this->enabled) {
-$file = preg_replace('{[^'.$this->whitelist.']}i', '-', $file);
-if (file_exists($this->root . $file)) {
-return sha1_file($this->root . $file);
-}
-}
-
-return false;
-}
-
-public function sha256($file)
-{
-if ($this->enabled) {
-$file = preg_replace('{[^'.$this->whitelist.']}i', '-', $file);
-if (file_exists($this->root . $file)) {
-return hash_file('sha256', $this->root . $file);
-}
-}
-
-return false;
-}
-
-protected function getFinder()
-{
-return Finder::create()->in($this->root)->files();
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-class AboutCommand extends BaseCommand
-{
-protected function configure()
-{
-$this
-->setName('about')
-->setDescription('Shows the short information about Composer.')
-->setHelp(
-<<<EOT
-<info>php composer.phar about</info>
-EOT
-)
-;
-}
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-$this->getIO()->write(
-<<<EOT
-<info>Composer - Dependency Manager for PHP</info>
-<comment>Composer is a dependency manager tracking local dependencies of your projects and libraries.
-See https://getcomposer.org/ for more information.</comment>
-EOT
-);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Composer\Factory;
-use Composer\IO\IOInterface;
-use Composer\Config;
-use Composer\Composer;
-use Composer\Repository\CompositeRepository;
-use Composer\Repository\RepositoryFactory;
-use Composer\Script\ScriptEvents;
-use Composer\Plugin\CommandEvent;
-use Composer\Plugin\PluginEvents;
-use Composer\Util\Filesystem;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-
-
-class ArchiveCommand extends BaseCommand
-{
-protected function configure()
-{
-$this
-->setName('archive')
-->setDescription('Creates an archive of this composer package.')
-->setDefinition(array(
-new InputArgument('package', InputArgument::OPTIONAL, 'The package to archive instead of the current project'),
-new InputArgument('version', InputArgument::OPTIONAL, 'A version constraint to find the package to archive'),
-new InputOption('format', 'f', InputOption::VALUE_REQUIRED, 'Format of the resulting archive: tar or zip'),
-new InputOption('dir', null, InputOption::VALUE_REQUIRED, 'Write the archive to this directory'),
-new InputOption('file', null, InputOption::VALUE_REQUIRED, 'Write the archive with the given file name.'
-.' Note that the format will be appended.'),
-new InputOption('ignore-filters', false, InputOption::VALUE_NONE, 'Ignore filters when saving package'),
-))
-->setHelp(
-<<<EOT
-The <info>archive</info> command creates an archive of the specified format
-containing the files and directories of the Composer project or the specified
-package in the specified version and writes it to the specified directory.
-
-<info>php composer.phar archive [--format=zip] [--dir=/foo] [package [version]]</info>
-
-EOT
-)
-;
-}
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-$config = Factory::createConfig();
-$composer = $this->getComposer(false);
-if ($composer) {
-$commandEvent = new CommandEvent(PluginEvents::COMMAND, 'archive', $input, $output);
-$eventDispatcher = $composer->getEventDispatcher();
-$eventDispatcher->dispatch($commandEvent->getName(), $commandEvent);
-$eventDispatcher->dispatchScript(ScriptEvents::PRE_ARCHIVE_CMD);
-}
-
-if (null === $input->getOption('format')) {
-$input->setOption('format', $config->get('archive-format'));
-}
-if (null === $input->getOption('dir')) {
-$input->setOption('dir', $config->get('archive-dir'));
-}
-
-$returnCode = $this->archive(
-$this->getIO(),
-$config,
-$input->getArgument('package'),
-$input->getArgument('version'),
-$input->getOption('format'),
-$input->getOption('dir'),
-$input->getOption('file'),
-$input->getOption('ignore-filters'),
-$composer
-);
-
-if (0 === $returnCode && $composer) {
-$composer->getEventDispatcher()->dispatchScript(ScriptEvents::POST_ARCHIVE_CMD);
-}
-
-return $returnCode;
-}
-
-protected function archive(IOInterface $io, Config $config, $packageName = null, $version = null, $format = 'tar', $dest = '.', $fileName = null, $ignoreFilters = false, Composer $composer = null)
-{
-if ($composer) {
-$archiveManager = $composer->getArchiveManager();
-} else {
-$factory = new Factory;
-$downloadManager = $factory->createDownloadManager($io, $config);
-$archiveManager = $factory->createArchiveManager($config, $downloadManager);
-}
-
-if ($packageName) {
-$package = $this->selectPackage($io, $packageName, $version);
-
-if (!$package) {
-return 1;
-}
-} else {
-$package = $this->getComposer()->getPackage();
-}
-
-$io->writeError('<info>Creating the archive into "'.$dest.'".</info>');
-$packagePath = $archiveManager->archive($package, $format, $dest, $fileName, $ignoreFilters);
-$fs = new Filesystem;
-$shortPath = $fs->findShortestPath(getcwd(), $packagePath, true);
-
-$io->writeError('Created: ', false);
-$io->write(strlen($shortPath) < strlen($packagePath) ? $shortPath : $packagePath);
-
-return 0;
-}
-
-protected function selectPackage(IOInterface $io, $packageName, $version = null)
-{
-$io->writeError('<info>Searching for the specified package.</info>');
-
-if ($composer = $this->getComposer(false)) {
-$localRepo = $composer->getRepositoryManager()->getLocalRepository();
-$repo = new CompositeRepository(array_merge(array($localRepo), $composer->getRepositoryManager()->getRepositories()));
-} else {
-$defaultRepos = RepositoryFactory::defaultRepos($this->getIO());
-$io->writeError('No composer.json found in the current directory, searching packages from ' . implode(', ', array_keys($defaultRepos)));
-$repo = new CompositeRepository($defaultRepos);
-}
-
-$packages = $repo->findPackages($packageName, $version);
-
-if (count($packages) > 1) {
-$package = reset($packages);
-$io->writeError('<info>Found multiple matches, selected '.$package->getPrettyString().'.</info>');
-$io->writeError('Alternatives were '.implode(', ', array_map(function ($p) {
-return $p->getPrettyString();
-}, $packages)).'.');
-$io->writeError('<comment>Please use a more specific constraint to pick a different package.</comment>');
-} elseif ($packages) {
-$package = reset($packages);
-$io->writeError('<info>Found an exact match '.$package->getPrettyString().'.</info>');
-} else {
-$io->writeError('<error>Could not find a package matching '.$packageName.'.</error>');
-
-return false;
-}
-
-return $package;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Composer\Composer;
-use Composer\Config;
-use Composer\Console\Application;
-use Composer\Factory;
-use Composer\IO\IOInterface;
-use Composer\IO\NullIO;
-use Composer\Plugin\PreCommandRunEvent;
-use Composer\Plugin\PluginEvents;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Command\Command;
-
-
-
-
-
-
-
-abstract class BaseCommand extends Command
-{
-
-
-
-private $composer;
-
-
-
-
-private $io;
-
-
-
-
-
-
-
-public function getComposer($required = true, $disablePlugins = null)
-{
-if (null === $this->composer) {
-$application = $this->getApplication();
-if ($application instanceof Application) {
-
-$this->composer = $application->getComposer($required, $disablePlugins);
-} elseif ($required) {
-throw new \RuntimeException(
-'Could not create a Composer\Composer instance, you must inject '.
-'one if this command is not used with a Composer\Console\Application instance'
-);
-}
-}
-
-return $this->composer;
-}
-
-
-
-
-public function setComposer(Composer $composer)
-{
-$this->composer = $composer;
-}
-
-
-
-
-public function resetComposer()
-{
-$this->composer = null;
-$this->getApplication()->resetComposer();
-}
-
-
-
-
-
-
-
-
-public function isProxyCommand()
-{
-return false;
-}
-
-
-
-
-public function getIO()
-{
-if (null === $this->io) {
-$application = $this->getApplication();
-if ($application instanceof Application) {
-
-$this->io = $application->getIO();
-} else {
-$this->io = new NullIO();
-}
-}
-
-return $this->io;
-}
-
-
-
-
-public function setIO(IOInterface $io)
-{
-$this->io = $io;
-}
-
-
-
-
-protected function initialize(InputInterface $input, OutputInterface $output)
-{
-
- $disablePlugins = $input->hasParameterOption('--no-plugins');
-$composer = $this->getComposer(false, $disablePlugins);
-if (null === $composer) {
-$composer = Factory::createGlobal($this->getIO(), $disablePlugins);
-}
-if ($composer) {
-$preCommandRunEvent = new PreCommandRunEvent(PluginEvents::PRE_COMMAND_RUN, $input, $this->getName());
-$composer->getEventDispatcher()->dispatch($preCommandRunEvent->getName(), $preCommandRunEvent);
-}
-
-if (true === $input->hasParameterOption(array('--no-ansi')) && $input->hasOption('no-progress')) {
-$input->setOption('no-progress', true);
-}
-
-parent::initialize($input, $output);
-}
-
-
-
-
-
-
-
-
-
-
-protected function getPreferredInstallOptions(Config $config, InputInterface $input, $keepVcsRequiresPreferSource = false)
-{
-$preferSource = false;
-$preferDist = false;
-
-switch ($config->get('preferred-install')) {
-case 'source':
-$preferSource = true;
-break;
-case 'dist':
-$preferDist = true;
-break;
-case 'auto':
-default:
-
- break;
-}
-
-if ($input->getOption('prefer-source') || $input->getOption('prefer-dist') || ($keepVcsRequiresPreferSource && $input->hasOption('keep-vcs') && $input->getOption('keep-vcs'))) {
-$preferSource = $input->getOption('prefer-source') || ($keepVcsRequiresPreferSource && $input->hasOption('keep-vcs') && $input->getOption('keep-vcs'));
-$preferDist = $input->getOption('prefer-dist');
-}
-
-return array($preferSource, $preferDist);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Composer\DependencyResolver\Pool;
-use Composer\Package\Link;
-use Composer\Package\PackageInterface;
-use Composer\Repository\ArrayRepository;
-use Composer\Repository\CompositeRepository;
-use Composer\Repository\PlatformRepository;
-use Composer\Repository\RepositoryFactory;
-use Composer\Plugin\CommandEvent;
-use Composer\Plugin\PluginEvents;
-use Symfony\Component\Console\Formatter\OutputFormatterStyle;
-use Composer\Package\Version\VersionParser;
-use Symfony\Component\Console\Helper\Table;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-
-
-class BaseDependencyCommand extends BaseCommand
-{
-const ARGUMENT_PACKAGE = 'package';
-const ARGUMENT_CONSTRAINT = 'constraint';
-const OPTION_RECURSIVE = 'recursive';
-const OPTION_TREE = 'tree';
-
-protected $colors;
-
-
-
-
-protected function configure()
-{
-$this->setDefinition(array(
-new InputArgument(self::ARGUMENT_PACKAGE, InputArgument::REQUIRED, 'Package to inspect'),
-new InputArgument(self::ARGUMENT_CONSTRAINT, InputArgument::OPTIONAL, 'Optional version constraint', '*'),
-new InputOption(self::OPTION_RECURSIVE, 'r', InputOption::VALUE_NONE, 'Recursively resolves up to the root package'),
-new InputOption(self::OPTION_TREE, 't', InputOption::VALUE_NONE, 'Prints the results as a nested tree'),
-));
-}
-
-
-
-
-
-
-
-
-
-protected function doExecute(InputInterface $input, OutputInterface $output, $inverted = false)
-{
-
- $composer = $this->getComposer();
-$commandEvent = new CommandEvent(PluginEvents::COMMAND, $this->getName(), $input, $output);
-$composer->getEventDispatcher()->dispatch($commandEvent->getName(), $commandEvent);
-
-
- $platformOverrides = $composer->getConfig()->get('platform') ?: array();
-$repository = new CompositeRepository(array(
-new ArrayRepository(array($composer->getPackage())),
-$composer->getRepositoryManager()->getLocalRepository(),
-new PlatformRepository(array(), $platformOverrides),
-));
-$pool = new Pool();
-$pool->addRepository($repository);
-
-
- list($needle, $textConstraint) = array_pad(
-explode(':', $input->getArgument(self::ARGUMENT_PACKAGE)),
-2,
-$input->getArgument(self::ARGUMENT_CONSTRAINT)
-);
-
-
- $packages = $pool->whatProvides(strtolower($needle));
-if (empty($packages)) {
-throw new \InvalidArgumentException(sprintf('Could not find package "%s" in your project', $needle));
-}
-
-
- 
- if (!$repository->findPackage($needle, $textConstraint)) {
-$defaultRepos = new CompositeRepository(RepositoryFactory::defaultRepos($this->getIO()));
-if ($match = $defaultRepos->findPackage($needle, $textConstraint)) {
-$repository->addRepository(new ArrayRepository(array(clone $match)));
-}
-}
-
-
- $needles = array($needle);
-if ($inverted) {
-foreach ($packages as $package) {
-$needles = array_merge($needles, array_map(function (Link $link) {
-return $link->getTarget();
-}, $package->getReplaces()));
-}
-}
-
-
- if ('*' !== $textConstraint) {
-$versionParser = new VersionParser();
-$constraint = $versionParser->parseConstraints($textConstraint);
-} else {
-$constraint = null;
-}
-
-
- $renderTree = $input->getOption(self::OPTION_TREE);
-$recursive = $renderTree || $input->getOption(self::OPTION_RECURSIVE);
-
-
- $results = $repository->getDependents($needles, $constraint, $inverted, $recursive);
-if (empty($results)) {
-$extra = (null !== $constraint) ? sprintf(' in versions %smatching %s', $inverted ? 'not ' : '', $textConstraint) : '';
-$this->getIO()->writeError(sprintf(
-'<info>There is no installed package depending on "%s"%s</info>',
-$needle,
-$extra
-));
-} elseif ($renderTree) {
-$this->initStyles($output);
-$root = $packages[0];
-$this->getIO()->write(sprintf('<info>%s</info> %s %s', $root->getPrettyName(), $root->getPrettyVersion(), $root->getDescription()));
-$this->printTree($results);
-} else {
-$this->printTable($output, $results);
-}
-
-return 0;
-}
-
-
-
-
-
-
-
-protected function printTable(OutputInterface $output, $results)
-{
-$table = array();
-$doubles = array();
-do {
-$queue = array();
-$rows = array();
-foreach ($results as $result) {
-
-
-
-
-list($package, $link, $children) = $result;
-$unique = (string) $link;
-if (isset($doubles[$unique])) {
-continue;
-}
-$doubles[$unique] = true;
-$version = (strpos($package->getPrettyVersion(), 'No version set') === 0) ? '-' : $package->getPrettyVersion();
-$rows[] = array($package->getPrettyName(), $version, $link->getDescription(), sprintf('%s (%s)', $link->getTarget(), $link->getPrettyConstraint()));
-if ($children) {
-$queue = array_merge($queue, $children);
-}
-}
-$results = $queue;
-$table = array_merge($rows, $table);
-} while (!empty($results));
-
-
- $renderer = new Table($output);
-$renderer->setStyle('compact');
-$rendererStyle = $renderer->getStyle();
-$rendererStyle->setVerticalBorderChar('');
-$rendererStyle->setCellRowContentFormat('%s  ');
-$renderer->setRows($table)->render();
-}
-
-
-
-
-
-
-protected function initStyles(OutputInterface $output)
-{
-$this->colors = array(
-'green',
-'yellow',
-'cyan',
-'magenta',
-'blue',
-);
-
-foreach ($this->colors as $color) {
-$style = new OutputFormatterStyle($color);
-$output->getFormatter()->setStyle($color, $style);
-}
-}
-
-
-
-
-
-
-
-
-protected function printTree($results, $prefix = '', $level = 1)
-{
-$count = count($results);
-$idx = 0;
-foreach ($results as $result) {
-
-
-
-
-
-list($package, $link, $children) = $result;
-
-$color = $this->colors[$level % count($this->colors)];
-$prevColor = $this->colors[($level - 1) % count($this->colors)];
-$isLast = (++$idx == $count);
-$versionText = (strpos($package->getPrettyVersion(), 'No version set') === 0) ? '' : $package->getPrettyVersion();
-$packageText = rtrim(sprintf('<%s>%s</%1$s> %s', $color, $package->getPrettyName(), $versionText));
-$linkText = sprintf('%s <%s>%s</%2$s> %s', $link->getDescription(), $prevColor, $link->getTarget(), $link->getPrettyConstraint());
-$circularWarn = $children === false ? '(circular dependency aborted here)' : '';
-$this->writeTreeLine(rtrim(sprintf("%s%s%s (%s) %s", $prefix, $isLast ? 'âââ' : 'âââ', $packageText, $linkText, $circularWarn)));
-if ($children) {
-$this->printTree($children, $prefix . ($isLast ? '   ' : 'â  '), $level + 1);
-}
-}
-}
-
-private function writeTreeLine($line)
-{
-$io = $this->getIO();
-if (!$io->isDecorated()) {
-$line = str_replace(array('â', 'â', 'ââ', 'â'), array('`-', '|-', '-', '|'), $line);
-}
-
-$io->write($line);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Composer\Package\Link;
-use Composer\Package\PackageInterface;
-use Composer\Semver\Constraint\Constraint;
-use Symfony\Component\Console\Helper\Table;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-use Composer\Repository\PlatformRepository;
-
-class CheckPlatformReqsCommand extends BaseCommand
-{
-protected function configure()
-{
-$this->setName('check-platform-reqs')
-->setDescription('Check that platform requirements are satisfied.')
-->setDefinition(array(
-new InputOption('no-dev', null, InputOption::VALUE_NONE, 'Disables checking of require-dev packages requirements.'),
-))
-->setHelp(
-<<<EOT
-Checks that your PHP and extensions versions match the platform requirements of the installed packages.
-
-<info>php composer.phar check-platform-reqs</info>
-
-EOT
-);
-}
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-$composer = $this->getComposer();
-
-$requires = $composer->getPackage()->getRequires();
-if ($input->getOption('no-dev')) {
-$dependencies = $composer->getLocker()->getLockedRepository(!$input->getOption('no-dev'))->getPackages();
-} else {
-$dependencies = $composer->getRepositoryManager()->getLocalRepository()->getPackages();
-$requires += $composer->getPackage()->getDevRequires();
-}
-foreach ($requires as $require => $link) {
-$requires[$require] = array($link);
-}
-
-foreach ($dependencies as $package) {
-foreach ($package->getRequires() as $require => $link) {
-$requires[$require][] = $link;
-}
-}
-
-ksort($requires);
-
-$platformRepo = new PlatformRepository(array(), array());
-$currentPlatformPackages = $platformRepo->getPackages();
-$currentPlatformPackageMap = array();
-
-
-
-
-foreach ($currentPlatformPackages as $currentPlatformPackage) {
-$currentPlatformPackageMap[$currentPlatformPackage->getName()] = $currentPlatformPackage;
-}
-
-$results = array();
-
-$exitCode = 0;
-
-
-
-
-foreach ($requires as $require => $links) {
-if (preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $require)) {
-if (isset($currentPlatformPackageMap[$require])) {
-$pass = true;
-$version = $currentPlatformPackageMap[$require]->getVersion();
-
-foreach ($links as $link) {
-if (!$link->getConstraint()->matches(new Constraint('=', $version))) {
-$results[] = array(
-$currentPlatformPackageMap[$require]->getPrettyName(),
-$currentPlatformPackageMap[$require]->getPrettyVersion(),
-$link,
-'<error>failed</error>',
-);
-$pass = false;
-
-$exitCode = max($exitCode, 1);
-}
-}
-
-if ($pass) {
-$results[] = array(
-$currentPlatformPackageMap[$require]->getPrettyName(),
-$currentPlatformPackageMap[$require]->getPrettyVersion(),
-null,
-'<info>success</info>',
-);
-}
-} else {
-$results[] = array(
-$require,
-'n/a',
-$links[0],
-'<error>missing</error>',
-);
-
-$exitCode = max($exitCode, 2);
-}
-}
-}
-
-$this->printTable($output, $results);
-
-return $exitCode;
-}
-
-protected function printTable(OutputInterface $output, $results)
-{
-$table = array();
-$rows = array();
-foreach ($results as $result) {
-
-
-
-list($platformPackage, $version, $link, $status) = $result;
-$rows[] = array(
-$platformPackage,
-$version,
-$link ? sprintf('%s %s %s (%s)', $link->getSource(), $link->getDescription(), $link->getTarget(), $link->getPrettyConstraint()) : '',
-$status,
-);
-}
-$table = array_merge($rows, $table);
-
-
- $renderer = new Table($output);
-$renderer->setStyle('compact');
-$rendererStyle = $renderer->getStyle();
-$rendererStyle->setVerticalBorderChar('');
-$rendererStyle->setCellRowContentFormat('%s  ');
-$renderer->setRows($table)->render();
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Composer\Cache;
-use Composer\Factory;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-class ClearCacheCommand extends BaseCommand
-{
-protected function configure()
-{
-$this
-->setName('clear-cache')
-->setAliases(array('clearcache'))
-->setDescription('Clears composer\'s internal package cache.')
-->setHelp(
-<<<EOT
-The <info>clear-cache</info> deletes all cached packages from composer's
-cache directory.
-EOT
-)
-;
-}
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-$config = Factory::createConfig();
-$io = $this->getIO();
-
-$cachePaths = array(
-'cache-vcs-dir' => $config->get('cache-vcs-dir'),
-'cache-repo-dir' => $config->get('cache-repo-dir'),
-'cache-files-dir' => $config->get('cache-files-dir'),
-'cache-dir' => $config->get('cache-dir'),
-);
-
-foreach ($cachePaths as $key => $cachePath) {
-$cachePath = realpath($cachePath);
-if (!$cachePath) {
-$io->writeError("<info>Cache directory does not exist ($key): $cachePath</info>");
-
-continue;
-}
-$cache = new Cache($io, $cachePath);
-if (!$cache->isEnabled()) {
-$io->writeError("<info>Cache is not enabled ($key): $cachePath</info>");
-
-continue;
-}
-
-$io->writeError("<info>Clearing cache ($key): $cachePath</info>");
-$cache->clear();
-}
-
-$io->writeError('<info>All caches cleared.</info>');
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Composer\Util\Platform;
-use Composer\Util\Silencer;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-use Composer\Config;
-use Composer\Config\JsonConfigSource;
-use Composer\Factory;
-use Composer\Json\JsonFile;
-use Composer\Semver\VersionParser;
-use Composer\Package\BasePackage;
-
-
-
-
-
-class ConfigCommand extends BaseCommand
-{
-
-
-
-protected $config;
-
-
-
-
-protected $configFile;
-
-
-
-
-protected $configSource;
-
-
-
-
-protected $authConfigFile;
-
-
-
-
-protected $authConfigSource;
-
-
-
-
-protected function configure()
-{
-$this
-->setName('config')
-->setDescription('Sets config options.')
-->setDefinition(array(
-new InputOption('global', 'g', InputOption::VALUE_NONE, 'Apply command to the global config file'),
-new InputOption('editor', 'e', InputOption::VALUE_NONE, 'Open editor'),
-new InputOption('auth', 'a', InputOption::VALUE_NONE, 'Affect auth config file (only used for --editor)'),
-new InputOption('unset', null, InputOption::VALUE_NONE, 'Unset the given setting-key'),
-new InputOption('list', 'l', InputOption::VALUE_NONE, 'List configuration settings'),
-new InputOption('file', 'f', InputOption::VALUE_REQUIRED, 'If you want to choose a different composer.json or config.json'),
-new InputOption('absolute', null, InputOption::VALUE_NONE, 'Returns absolute paths when fetching *-dir config values instead of relative'),
-new InputArgument('setting-key', null, 'Setting key'),
-new InputArgument('setting-value', InputArgument::IS_ARRAY, 'Setting value'),
-))
-->setHelp(
-<<<EOT
-This command allows you to edit composer config settings and repositories
-in either the local composer.json file or the global config.json file.
-
-Additionally it lets you edit most properties in the local composer.json.
-
-To set a config setting:
-
-    <comment>%command.full_name% bin-dir bin/</comment>
-
-To read a config setting:
-
-    <comment>%command.full_name% bin-dir</comment>
-    Outputs: <info>bin</info>
-
-To edit the global config.json file:
-
-    <comment>%command.full_name% --global</comment>
-
-To add a repository:
-
-    <comment>%command.full_name% repositories.foo vcs https://bar.com</comment>
-
-To remove a repository (repo is a short alias for repositories):
-
-    <comment>%command.full_name% --unset repo.foo</comment>
-
-To disable packagist:
-
-    <comment>%command.full_name% repo.packagist false</comment>
-
-You can alter repositories in the global config.json file by passing in the
-<info>--global</info> option.
-
-To edit the file in an external editor:
-
-    <comment>%command.full_name% --editor</comment>
-
-To choose your editor you can set the "EDITOR" env variable.
-
-To get a list of configuration values in the file:
-
-    <comment>%command.full_name% --list</comment>
-
-You can always pass more than one option. As an example, if you want to edit the
-global config.json file.
-
-    <comment>%command.full_name% --editor --global</comment>
-EOT
-)
-;
-}
-
-
-
-
-protected function initialize(InputInterface $input, OutputInterface $output)
-{
-parent::initialize($input, $output);
-
-if ($input->getOption('global') && null !== $input->getOption('file')) {
-throw new \RuntimeException('--file and --global can not be combined');
-}
-
-$io = $this->getIO();
-$this->config = Factory::createConfig($io);
-
-
- 
- $configFile = $input->getOption('global')
-? ($this->config->get('home') . '/config.json')
-: ($input->getOption('file') ?: Factory::getComposerFile());
-
-
- if (
-($configFile === 'composer.json' || $configFile === './composer.json')
-&& !file_exists($configFile)
-&& realpath(getcwd()) === realpath($this->config->get('home'))
-) {
-file_put_contents($configFile, "{\n}\n");
-}
-
-$this->configFile = new JsonFile($configFile, null, $io);
-$this->configSource = new JsonConfigSource($this->configFile);
-
-$authConfigFile = $input->getOption('global')
-? ($this->config->get('home') . '/auth.json')
-: dirname(realpath($configFile)) . '/auth.json';
-
-$this->authConfigFile = new JsonFile($authConfigFile, null, $io);
-$this->authConfigSource = new JsonConfigSource($this->authConfigFile, true);
-
-
- if ($input->getOption('global') && !$this->configFile->exists()) {
-touch($this->configFile->getPath());
-$this->configFile->write(array('config' => new \ArrayObject));
-Silencer::call('chmod', $this->configFile->getPath(), 0600);
-}
-if ($input->getOption('global') && !$this->authConfigFile->exists()) {
-touch($this->authConfigFile->getPath());
-$this->authConfigFile->write(array('bitbucket-oauth' => new \ArrayObject, 'github-oauth' => new \ArrayObject, 'gitlab-oauth' => new \ArrayObject, 'gitlab-token' => new \ArrayObject, 'http-basic' => new \ArrayObject));
-Silencer::call('chmod', $this->authConfigFile->getPath(), 0600);
-}
-
-if (!$this->configFile->exists()) {
-throw new \RuntimeException(sprintf('File "%s" cannot be found in the current directory', $configFile));
-}
-}
-
-
-
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-
- if ($input->getOption('editor')) {
-$editor = escapeshellcmd(getenv('EDITOR'));
-if (!$editor) {
-if (Platform::isWindows()) {
-$editor = 'notepad';
-} else {
-foreach (array('editor', 'vim', 'vi', 'nano', 'pico', 'ed') as $candidate) {
-if (exec('which '.$candidate)) {
-$editor = $candidate;
-break;
-}
-}
-}
-}
-
-$file = $input->getOption('auth') ? $this->authConfigFile->getPath() : $this->configFile->getPath();
-system($editor . ' ' . $file . (Platform::isWindows() ? '' : ' > `tty`'));
-
-return 0;
-}
-
-if (!$input->getOption('global')) {
-$this->config->merge($this->configFile->read());
-$this->config->merge(array('config' => $this->authConfigFile->exists() ? $this->authConfigFile->read() : array()));
-}
-
-
- if ($input->getOption('list')) {
-$this->listConfiguration($this->config->all(), $this->config->raw(), $output);
-
-return 0;
-}
-
-$settingKey = $input->getArgument('setting-key');
-if (!$settingKey) {
-return 0;
-}
-
-
- if (array() !== $input->getArgument('setting-value') && $input->getOption('unset')) {
-throw new \RuntimeException('You can not combine a setting value with --unset');
-}
-
-
- if (array() === $input->getArgument('setting-value') && !$input->getOption('unset')) {
-$properties = array('name', 'type', 'description', 'homepage', 'version', 'minimum-stability', 'prefer-stable', 'keywords', 'license', 'extra');
-$rawData = $this->configFile->read();
-$data = $this->config->all();
-if (preg_match('/^repos?(?:itories)?(?:\.(.+))?/', $settingKey, $matches)) {
-if (!isset($matches[1]) || $matches[1] === '') {
-$value = isset($data['repositories']) ? $data['repositories'] : array();
-} else {
-if (!isset($data['repositories'][$matches[1]])) {
-throw new \InvalidArgumentException('There is no '.$matches[1].' repository defined');
-}
-
-$value = $data['repositories'][$matches[1]];
-}
-} elseif (strpos($settingKey, '.')) {
-$bits = explode('.', $settingKey);
-if ($bits[0] === 'extra') {
-$data = $rawData;
-} else {
-$data = $data['config'];
-}
-$match = false;
-foreach ($bits as $bit) {
-$key = isset($key) ? $key.'.'.$bit : $bit;
-$match = false;
-if (isset($data[$key])) {
-$match = true;
-$data = $data[$key];
-unset($key);
-}
-}
-
-if (!$match) {
-throw new \RuntimeException($settingKey.' is not defined.');
-}
-
-$value = $data;
-} elseif (isset($data['config'][$settingKey])) {
-$value = $this->config->get($settingKey, $input->getOption('absolute') ? 0 : Config::RELATIVE_PATHS);
-} elseif (in_array($settingKey, $properties, true) && isset($rawData[$settingKey])) {
-$value = $rawData[$settingKey];
-} else {
-throw new \RuntimeException($settingKey.' is not defined');
-}
-
-if (is_array($value)) {
-$value = json_encode($value);
-}
-
-$this->getIO()->write($value);
-
-return 0;
-}
-
-$values = $input->getArgument('setting-value'); 
-
-$booleanValidator = function ($val) {
-return in_array($val, array('true', 'false', '1', '0'), true);
-};
-$booleanNormalizer = function ($val) {
-return $val !== 'false' && (bool) $val;
-};
-
-
- $uniqueConfigValues = array(
-'process-timeout' => array('is_numeric', 'intval'),
-'use-include-path' => array($booleanValidator, $booleanNormalizer),
-'preferred-install' => array(
-function ($val) {
-return in_array($val, array('auto', 'source', 'dist'), true);
-},
-function ($val) {
-return $val;
-},
-),
-'store-auths' => array(
-function ($val) {
-return in_array($val, array('true', 'false', 'prompt'), true);
-},
-function ($val) {
-if ('prompt' === $val) {
-return 'prompt';
-}
-
-return $val !== 'false' && (bool) $val;
-},
-),
-'notify-on-install' => array($booleanValidator, $booleanNormalizer),
-'vendor-dir' => array('is_string', function ($val) {
-return $val;
-}),
-'bin-dir' => array('is_string', function ($val) {
-return $val;
-}),
-'archive-dir' => array('is_string', function ($val) {
-return $val;
-}),
-'archive-format' => array('is_string', function ($val) {
-return $val;
-}),
-'data-dir' => array('is_string', function ($val) {
-return $val;
-}),
-'cache-dir' => array('is_string', function ($val) {
-return $val;
-}),
-'cache-files-dir' => array('is_string', function ($val) {
-return $val;
-}),
-'cache-repo-dir' => array('is_string', function ($val) {
-return $val;
-}),
-'cache-vcs-dir' => array('is_string', function ($val) {
-return $val;
-}),
-'cache-ttl' => array('is_numeric', 'intval'),
-'cache-files-ttl' => array('is_numeric', 'intval'),
-'cache-files-maxsize' => array(
-function ($val) {
-return preg_match('/^\s*([0-9.]+)\s*(?:([kmg])(?:i?b)?)?\s*$/i', $val) > 0;
-},
-function ($val) {
-return $val;
-},
-),
-'bin-compat' => array(
-function ($val) {
-return in_array($val, array('auto', 'full'));
-},
-function ($val) {
-return $val;
-},
-),
-'discard-changes' => array(
-function ($val) {
-return in_array($val, array('stash', 'true', 'false', '1', '0'), true);
-},
-function ($val) {
-if ('stash' === $val) {
-return 'stash';
-}
-
-return $val !== 'false' && (bool) $val;
-},
-),
-'autoloader-suffix' => array('is_string', function ($val) {
-return $val === 'null' ? null : $val;
-}),
-'sort-packages' => array($booleanValidator, $booleanNormalizer),
-'optimize-autoloader' => array($booleanValidator, $booleanNormalizer),
-'classmap-authoritative' => array($booleanValidator, $booleanNormalizer),
-'apcu-autoloader' => array($booleanValidator, $booleanNormalizer),
-'prepend-autoloader' => array($booleanValidator, $booleanNormalizer),
-'disable-tls' => array($booleanValidator, $booleanNormalizer),
-'secure-http' => array($booleanValidator, $booleanNormalizer),
-'cafile' => array(
-function ($val) {
-return file_exists($val) && is_readable($val);
-},
-function ($val) {
-return $val === 'null' ? null : $val;
-},
-),
-'capath' => array(
-function ($val) {
-return is_dir($val) && is_readable($val);
-},
-function ($val) {
-return $val === 'null' ? null : $val;
-},
-),
-'github-expose-hostname' => array($booleanValidator, $booleanNormalizer),
-'htaccess-protect' => array($booleanValidator, $booleanNormalizer),
-);
-$multiConfigValues = array(
-'github-protocols' => array(
-function ($vals) {
-if (!is_array($vals)) {
-return 'array expected';
-}
-
-foreach ($vals as $val) {
-if (!in_array($val, array('git', 'https', 'ssh'))) {
-return 'valid protocols include: git, https, ssh';
-}
-}
-
-return true;
-},
-function ($vals) {
-return $vals;
-},
-),
-'github-domains' => array(
-function ($vals) {
-if (!is_array($vals)) {
-return 'array expected';
-}
-
-return true;
-},
-function ($vals) {
-return $vals;
-},
-),
-'gitlab-domains' => array(
-function ($vals) {
-if (!is_array($vals)) {
-return 'array expected';
-}
-
-return true;
-},
-function ($vals) {
-return $vals;
-},
-),
-);
-
-if ($input->getOption('unset') && (isset($uniqueConfigValues[$settingKey]) || isset($multiConfigValues[$settingKey]))) {
-return $this->configSource->removeConfigSetting($settingKey);
-}
-if (isset($uniqueConfigValues[$settingKey])) {
-return $this->handleSingleValue($settingKey, $uniqueConfigValues[$settingKey], $values, 'addConfigSetting');
-}
-if (isset($multiConfigValues[$settingKey])) {
-return $this->handleMultiValue($settingKey, $multiConfigValues[$settingKey], $values, 'addConfigSetting');
-}
-
-
- $uniqueProps = array(
-'name' => array('is_string', function ($val) {
-return $val;
-}),
-'type' => array('is_string', function ($val) {
-return $val;
-}),
-'description' => array('is_string', function ($val) {
-return $val;
-}),
-'homepage' => array('is_string', function ($val) {
-return $val;
-}),
-'version' => array('is_string', function ($val) {
-return $val;
-}),
-'minimum-stability' => array(
-function ($val) {
-return isset(BasePackage::$stabilities[VersionParser::normalizeStability($val)]);
-},
-function ($val) {
-return VersionParser::normalizeStability($val);
-},
-),
-'prefer-stable' => array($booleanValidator, $booleanNormalizer),
-);
-$multiProps = array(
-'keywords' => array(
-function ($vals) {
-if (!is_array($vals)) {
-return 'array expected';
-}
-
-return true;
-},
-function ($vals) {
-return $vals;
-},
-),
-'license' => array(
-function ($vals) {
-if (!is_array($vals)) {
-return 'array expected';
-}
-
-return true;
-},
-function ($vals) {
-return $vals;
-},
-),
-);
-
-if ($input->getOption('global') && (isset($uniqueProps[$settingKey]) || isset($multiProps[$settingKey]) || substr($settingKey, 0, 6) === 'extra.')) {
-throw new \InvalidArgumentException('The '.$settingKey.' property can not be set in the global config.json file. Use `composer global config` to apply changes to the global composer.json');
-}
-if ($input->getOption('unset') && (isset($uniqueProps[$settingKey]) || isset($multiProps[$settingKey]))) {
-return $this->configSource->removeProperty($settingKey);
-}
-if (isset($uniqueProps[$settingKey])) {
-return $this->handleSingleValue($settingKey, $uniqueProps[$settingKey], $values, 'addProperty');
-}
-if (isset($multiProps[$settingKey])) {
-return $this->handleMultiValue($settingKey, $multiProps[$settingKey], $values, 'addProperty');
-}
-
-
- if (preg_match('/^repos?(?:itories)?\.(.+)/', $settingKey, $matches)) {
-if ($input->getOption('unset')) {
-return $this->configSource->removeRepository($matches[1]);
-}
-
-if (2 === count($values)) {
-return $this->configSource->addRepository($matches[1], array(
-'type' => $values[0],
-'url' => $values[1],
-));
-}
-
-if (1 === count($values)) {
-$value = strtolower($values[0]);
-if (true === $booleanValidator($value)) {
-if (false === $booleanNormalizer($value)) {
-return $this->configSource->addRepository($matches[1], false);
-}
-} else {
-$value = JsonFile::parseJson($values[0]);
-
-return $this->configSource->addRepository($matches[1], $value);
-}
-}
-
-throw new \RuntimeException('You must pass the type and a url. Example: php composer.phar config repositories.foo vcs https://bar.com');
-}
-
-
- if (preg_match('/^extra\.(.+)/', $settingKey, $matches)) {
-if ($input->getOption('unset')) {
-return $this->configSource->removeProperty($settingKey);
-}
-
-return $this->configSource->addProperty($settingKey, $values[0]);
-}
-
-
- if (preg_match('/^platform\.(.+)/', $settingKey, $matches)) {
-if ($input->getOption('unset')) {
-return $this->configSource->removeConfigSetting($settingKey);
-}
-
-return $this->configSource->addConfigSetting($settingKey, $values[0]);
-}
-if ($settingKey === 'platform' && $input->getOption('unset')) {
-return $this->configSource->removeConfigSetting($settingKey);
-}
-
-
- if (preg_match('/^(bitbucket-oauth|github-oauth|gitlab-oauth|gitlab-token|http-basic)\.(.+)/', $settingKey, $matches)) {
-if ($input->getOption('unset')) {
-$this->authConfigSource->removeConfigSetting($matches[1].'.'.$matches[2]);
-$this->configSource->removeConfigSetting($matches[1].'.'.$matches[2]);
-
-return;
-}
-
-if ($matches[1] === 'bitbucket-oauth') {
-if (2 !== count($values)) {
-throw new \RuntimeException('Expected two arguments (consumer-key, consumer-secret), got '.count($values));
-}
-$this->configSource->removeConfigSetting($matches[1].'.'.$matches[2]);
-$this->authConfigSource->addConfigSetting($matches[1].'.'.$matches[2], array('consumer-key' => $values[0], 'consumer-secret' => $values[1]));
-} elseif (in_array($matches[1], array('github-oauth', 'gitlab-oauth', 'gitlab-token'), true)) {
-if (1 !== count($values)) {
-throw new \RuntimeException('Too many arguments, expected only one token');
-}
-$this->configSource->removeConfigSetting($matches[1].'.'.$matches[2]);
-$this->authConfigSource->addConfigSetting($matches[1].'.'.$matches[2], $values[0]);
-} elseif ($matches[1] === 'http-basic') {
-if (2 !== count($values)) {
-throw new \RuntimeException('Expected two arguments (username, password), got '.count($values));
-}
-$this->configSource->removeConfigSetting($matches[1].'.'.$matches[2]);
-$this->authConfigSource->addConfigSetting($matches[1].'.'.$matches[2], array('username' => $values[0], 'password' => $values[1]));
-}
-
-return;
-}
-
-
- if (preg_match('/^scripts\.(.+)/', $settingKey, $matches)) {
-if ($input->getOption('unset')) {
-return $this->configSource->removeProperty($settingKey);
-}
-
-return $this->configSource->addProperty($settingKey, count($values) > 1 ? $values : $values[0]);
-}
-
-throw new \InvalidArgumentException('Setting '.$settingKey.' does not exist or is not supported by this command');
-}
-
-protected function handleSingleValue($key, array $callbacks, array $values, $method)
-{
-list($validator, $normalizer) = $callbacks;
-if (1 !== count($values)) {
-throw new \RuntimeException('You can only pass one value. Example: php composer.phar config process-timeout 300');
-}
-
-if (true !== $validation = $validator($values[0])) {
-throw new \RuntimeException(sprintf(
-'"%s" is an invalid value'.($validation ? ' ('.$validation.')' : ''),
-$values[0]
-));
-}
-
-return call_user_func(array($this->configSource, $method), $key, $normalizer($values[0]));
-}
-
-protected function handleMultiValue($key, array $callbacks, array $values, $method)
-{
-list($validator, $normalizer) = $callbacks;
-if (true !== $validation = $validator($values)) {
-throw new \RuntimeException(sprintf(
-'%s is an invalid value'.($validation ? ' ('.$validation.')' : ''),
-json_encode($values)
-));
-}
-
-return call_user_func(array($this->configSource, $method), $key, $normalizer($values));
-}
-
-
-
-
-
-
-
-
-
-protected function listConfiguration(array $contents, array $rawContents, OutputInterface $output, $k = null)
-{
-$origK = $k;
-$io = $this->getIO();
-foreach ($contents as $key => $value) {
-if ($k === null && !in_array($key, array('config', 'repositories'))) {
-continue;
-}
-
-$rawVal = isset($rawContents[$key]) ? $rawContents[$key] : null;
-
-if (is_array($value) && (!is_numeric(key($value)) || ($key === 'repositories' && null === $k))) {
-$k .= preg_replace('{^config\.}', '', $key . '.');
-$this->listConfiguration($value, $rawVal, $output, $k);
-$k = $origK;
-
-continue;
-}
-
-if (is_array($value)) {
-$value = array_map(function ($val) {
-return is_array($val) ? json_encode($val) : $val;
-}, $value);
-
-$value = '['.implode(', ', $value).']';
-}
-
-if (is_bool($value)) {
-$value = var_export($value, true);
-}
-
-if (is_string($rawVal) && $rawVal != $value) {
-$io->write('[<comment>' . $k . $key . '</comment>] <info>' . $rawVal . ' (' . $value . ')</info>');
-} else {
-$io->write('[<comment>' . $k . $key . '</comment>] <info>' . $value . '</info>');
-}
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Composer\Config;
-use Composer\Factory;
-use Composer\Installer;
-use Composer\Installer\ProjectInstaller;
-use Composer\Installer\InstallationManager;
-use Composer\Installer\SuggestedPackagesReporter;
-use Composer\IO\IOInterface;
-use Composer\Package\BasePackage;
-use Composer\DependencyResolver\Pool;
-use Composer\DependencyResolver\Operation\InstallOperation;
-use Composer\Package\Version\VersionSelector;
-use Composer\Package\AliasPackage;
-use Composer\Repository\RepositoryFactory;
-use Composer\Repository\CompositeRepository;
-use Composer\Repository\PlatformRepository;
-use Composer\Repository\InstalledFilesystemRepository;
-use Composer\Script\ScriptEvents;
-use Composer\Util\Silencer;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Finder\Finder;
-use Composer\Json\JsonFile;
-use Composer\Config\JsonConfigSource;
-use Composer\Util\Filesystem;
-use Composer\Package\Version\VersionParser;
-
-
-
-
-
-
-
-
-
-class CreateProjectCommand extends BaseCommand
-{
-
-
-
-protected $suggestedPackagesReporter;
-
-protected function configure()
-{
-$this
-->setName('create-project')
-->setDescription('Creates new project from a package into given directory.')
-->setDefinition(array(
-new InputArgument('package', InputArgument::OPTIONAL, 'Package name to be installed'),
-new InputArgument('directory', InputArgument::OPTIONAL, 'Directory where the files should be created'),
-new InputArgument('version', InputArgument::OPTIONAL, 'Version, will default to latest'),
-new InputOption('stability', 's', InputOption::VALUE_REQUIRED, 'Minimum-stability allowed (unless a version is specified).'),
-new InputOption('prefer-source', null, InputOption::VALUE_NONE, 'Forces installation from package sources when possible, including VCS information.'),
-new InputOption('prefer-dist', null, InputOption::VALUE_NONE, 'Forces installation from package dist even for dev versions.'),
-new InputOption('repository', null, InputOption::VALUE_REQUIRED, 'Pick a different repository (as url or json config) to look for the package.'),
-new InputOption('repository-url', null, InputOption::VALUE_REQUIRED, 'DEPRECATED: Use --repository instead.'),
-new InputOption('dev', null, InputOption::VALUE_NONE, 'Enables installation of require-dev packages (enabled by default, only present for BC).'),
-new InputOption('no-dev', null, InputOption::VALUE_NONE, 'Disables installation of require-dev packages.'),
-new InputOption('no-custom-installers', null, InputOption::VALUE_NONE, 'DEPRECATED: Use no-plugins instead.'),
-new InputOption('no-scripts', null, InputOption::VALUE_NONE, 'Whether to prevent execution of all defined scripts in the root package.'),
-new InputOption('no-progress', null, InputOption::VALUE_NONE, 'Do not output download progress.'),
-new InputOption('no-secure-http', null, InputOption::VALUE_NONE, 'Disable the secure-http config option temporarily while installing the root package. Use at your own risk. Using this flag is a bad idea.'),
-new InputOption('keep-vcs', null, InputOption::VALUE_NONE, 'Whether to prevent deleting the vcs folder.'),
-new InputOption('remove-vcs', null, InputOption::VALUE_NONE, 'Whether to force deletion of the vcs folder without prompting.'),
-new InputOption('no-install', null, InputOption::VALUE_NONE, 'Whether to skip installation of the package dependencies.'),
-new InputOption('ignore-platform-reqs', null, InputOption::VALUE_NONE, 'Ignore platform requirements (php & ext- packages).'),
-))
-->setHelp(
-<<<EOT
-The <info>create-project</info> command creates a new project from a given
-package into a new directory. If executed without params and in a directory
-with a composer.json file it installs the packages for the current project.
-
-You can use this command to bootstrap new projects or setup a clean
-version-controlled installation for developers of your project.
-
-<info>php composer.phar create-project vendor/project target-directory [version]</info>
-
-You can also specify the version with the package name using = or : as separator.
-
-<info>php composer.phar create-project vendor/project:version target-directory</info>
-
-To install unstable packages, either specify the version you want, or use the
---stability=dev (where dev can be one of RC, beta, alpha or dev).
-
-To setup a developer workable version you should create the project using the source
-controlled code by appending the <info>'--prefer-source'</info> flag.
-
-To install a package from another repository than the default one you
-can pass the <info>'--repository=https://myrepository.org'</info> flag.
-
-EOT
-)
-;
-}
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-$config = Factory::createConfig();
-$io = $this->getIO();
-
-list($preferSource, $preferDist) = $this->getPreferredInstallOptions($config, $input, true);
-
-if ($input->getOption('dev')) {
-$io->writeError('<warning>You are using the deprecated option "dev". Dev packages are installed by default now.</warning>');
-}
-if ($input->getOption('no-custom-installers')) {
-$io->writeError('<warning>You are using the deprecated option "no-custom-installers". Use "no-plugins" instead.</warning>');
-$input->setOption('no-plugins', true);
-}
-
-return $this->installProject(
-$io,
-$config,
-$input,
-$input->getArgument('package'),
-$input->getArgument('directory'),
-$input->getArgument('version'),
-$input->getOption('stability'),
-$preferSource,
-$preferDist,
-!$input->getOption('no-dev'),
-$input->getOption('repository') ?: $input->getOption('repository-url'),
-$input->getOption('no-plugins'),
-$input->getOption('no-scripts'),
-$input->getOption('no-progress'),
-$input->getOption('no-install'),
-$input->getOption('ignore-platform-reqs'),
-!$input->getOption('no-secure-http')
-);
-}
-
-public function installProject(IOInterface $io, Config $config, InputInterface $input, $packageName, $directory = null, $packageVersion = null, $stability = 'stable', $preferSource = false, $preferDist = false, $installDevPackages = false, $repository = null, $disablePlugins = false, $noScripts = false, $noProgress = false, $noInstall = false, $ignorePlatformReqs = false, $secureHttp = true)
-{
-$oldCwd = getcwd();
-
-
- $io->loadConfiguration($config);
-
-$this->suggestedPackagesReporter = new SuggestedPackagesReporter($io);
-
-if ($packageName !== null) {
-$installedFromVcs = $this->installRootPackage($io, $config, $packageName, $directory, $packageVersion, $stability, $preferSource, $preferDist, $installDevPackages, $repository, $disablePlugins, $noScripts, $noProgress, $ignorePlatformReqs, $secureHttp);
-} else {
-$installedFromVcs = false;
-}
-
-$composer = Factory::create($io, null, $disablePlugins);
-$composer->getDownloadManager()->setOutputProgress(!$noProgress);
-
-$fs = new Filesystem();
-
-if ($noScripts === false) {
-
- $composer->getEventDispatcher()->dispatchScript(ScriptEvents::POST_ROOT_PACKAGE_INSTALL, $installDevPackages);
-}
-
-
- $config = $composer->getConfig();
-list($preferSource, $preferDist) = $this->getPreferredInstallOptions($config, $input);
-
-
- if ($noInstall === false) {
-$installer = Installer::create($io, $composer);
-$installer->setPreferSource($preferSource)
-->setPreferDist($preferDist)
-->setDevMode($installDevPackages)
-->setRunScripts(!$noScripts)
-->setIgnorePlatformRequirements($ignorePlatformReqs)
-->setSuggestedPackagesReporter($this->suggestedPackagesReporter)
-->setOptimizeAutoloader($config->get('optimize-autoloader'));
-
-if ($disablePlugins) {
-$installer->disablePlugins();
-}
-
-$status = $installer->run();
-if (0 !== $status) {
-return $status;
-}
-}
-
-$hasVcs = $installedFromVcs;
-if (
-!$input->getOption('keep-vcs')
-&& $installedFromVcs
-&& (
-$input->getOption('remove-vcs')
-|| !$io->isInteractive()
-|| $io->askConfirmation('<info>Do you want to remove the existing VCS (.git, .svn..) history?</info> [<comment>Y,n</comment>]? ', true)
-)
-) {
-$finder = new Finder();
-$finder->depth(0)->directories()->in(getcwd())->ignoreVCS(false)->ignoreDotFiles(false);
-foreach (array('.svn', '_svn', 'CVS', '_darcs', '.arch-params', '.monotone', '.bzr', '.git', '.hg', '.fslckout', '_FOSSIL_') as $vcsName) {
-$finder->name($vcsName);
-}
-
-try {
-$dirs = iterator_to_array($finder);
-unset($finder);
-foreach ($dirs as $dir) {
-if (!$fs->removeDirectory($dir)) {
-throw new \RuntimeException('Could not remove '.$dir);
-}
-}
-} catch (\Exception $e) {
-$io->writeError('<error>An error occurred while removing the VCS metadata: '.$e->getMessage().'</error>');
-}
-
-$hasVcs = false;
-}
-
-
- if (!$hasVcs) {
-$package = $composer->getPackage();
-$configSource = new JsonConfigSource(new JsonFile('composer.json'));
-foreach (BasePackage::$supportedLinkTypes as $type => $meta) {
-foreach ($package->{'get'.$meta['method']}() as $link) {
-if ($link->getPrettyConstraint() === 'self.version') {
-$configSource->addLink($type, $link->getTarget(), $package->getPrettyVersion());
-}
-}
-}
-}
-
-if ($noScripts === false) {
-
- $composer->getEventDispatcher()->dispatchScript(ScriptEvents::POST_CREATE_PROJECT_CMD, $installDevPackages);
-}
-
-chdir($oldCwd);
-$vendorComposerDir = $config->get('vendor-dir').'/composer';
-if (is_dir($vendorComposerDir) && $fs->isDirEmpty($vendorComposerDir)) {
-Silencer::call('rmdir', $vendorComposerDir);
-$vendorDir = $config->get('vendor-dir');
-if (is_dir($vendorDir) && $fs->isDirEmpty($vendorDir)) {
-Silencer::call('rmdir', $vendorDir);
-}
-}
-
-return 0;
-}
-
-protected function installRootPackage(IOInterface $io, Config $config, $packageName, $directory = null, $packageVersion = null, $stability = 'stable', $preferSource = false, $preferDist = false, $installDevPackages = false, $repository = null, $disablePlugins = false, $noScripts = false, $noProgress = false, $ignorePlatformReqs = false, $secureHttp = true)
-{
-if (!$secureHttp) {
-$config->merge(array('config' => array('secure-http' => false)));
-}
-
-if (null === $repository) {
-$sourceRepo = new CompositeRepository(RepositoryFactory::defaultRepos($io, $config));
-} else {
-$sourceRepo = RepositoryFactory::fromString($io, $config, $repository, true);
-}
-
-$parser = new VersionParser();
-$requirements = $parser->parseNameVersionPairs(array($packageName));
-$name = strtolower($requirements[0]['name']);
-if (!$packageVersion && isset($requirements[0]['version'])) {
-$packageVersion = $requirements[0]['version'];
-}
-
-if (null === $stability) {
-if (preg_match('{^[^,\s]*?@('.implode('|', array_keys(BasePackage::$stabilities)).')$}i', $packageVersion, $match)) {
-$stability = $match[1];
-} else {
-$stability = VersionParser::parseStability($packageVersion);
-}
-}
-
-$stability = VersionParser::normalizeStability($stability);
-
-if (!isset(BasePackage::$stabilities[$stability])) {
-throw new \InvalidArgumentException('Invalid stability provided ('.$stability.'), must be one of: '.implode(', ', array_keys(BasePackage::$stabilities)));
-}
-
-$pool = new Pool($stability);
-$pool->addRepository($sourceRepo);
-
-$phpVersion = null;
-$prettyPhpVersion = null;
-if (!$ignorePlatformReqs) {
-$platformOverrides = $config->get('platform') ?: array();
-
- $platform = new PlatformRepository(array(), $platformOverrides);
-$phpPackage = $platform->findPackage('php', '*');
-$phpVersion = $phpPackage->getVersion();
-$prettyPhpVersion = $phpPackage->getPrettyVersion();
-}
-
-
- $versionSelector = new VersionSelector($pool);
-$package = $versionSelector->findBestCandidate($name, $packageVersion, $phpVersion, $stability);
-
-if (!$package) {
-$errorMessage = "Could not find package $name with " . ($packageVersion ? "version $packageVersion" : "stability $stability");
-if ($phpVersion && $versionSelector->findBestCandidate($name, $packageVersion, null, $stability)) {
-throw new \InvalidArgumentException($errorMessage .' in a version installable using your PHP version '.$prettyPhpVersion.'.');
-}
-
-throw new \InvalidArgumentException($errorMessage .'.');
-}
-
-if (null === $directory) {
-$parts = explode("/", $name, 2);
-$directory = getcwd() . DIRECTORY_SEPARATOR . array_pop($parts);
-}
-
-
- if (function_exists('pcntl_async_signals')) {
-@mkdir($directory, 0777, true);
-if ($realDir = realpath($directory)) {
-pcntl_async_signals(true);
-pcntl_signal(SIGINT, function () use ($realDir) {
-$fs = new Filesystem();
-$fs->removeDirectory($realDir);
-exit(130);
-});
-}
-}
-
-$io->writeError('<info>Installing ' . $package->getName() . ' (' . $package->getFullPrettyVersion(false) . ')</info>');
-
-if ($disablePlugins) {
-$io->writeError('<info>Plugins have been disabled.</info>');
-}
-
-if ($package instanceof AliasPackage) {
-$package = $package->getAliasOf();
-}
-
-$dm = $this->createDownloadManager($io, $config);
-$dm->setPreferSource($preferSource)
-->setPreferDist($preferDist)
-->setOutputProgress(!$noProgress);
-
-$projectInstaller = new ProjectInstaller($directory, $dm);
-$im = $this->createInstallationManager();
-$im->addInstaller($projectInstaller);
-$im->install(new InstalledFilesystemRepository(new JsonFile('php://memory')), new InstallOperation($package));
-$im->notifyInstalls($io);
-
-
- $this->suggestedPackagesReporter->addSuggestionsFromPackage($package);
-
-$installedFromVcs = 'source' === $package->getInstallationSource();
-
-$io->writeError('<info>Created project in ' . $directory . '</info>');
-chdir($directory);
-
-$_SERVER['COMPOSER_ROOT_VERSION'] = $package->getPrettyVersion();
-putenv('COMPOSER_ROOT_VERSION='.$_SERVER['COMPOSER_ROOT_VERSION']);
-
-return $installedFromVcs;
-}
-
-protected function createDownloadManager(IOInterface $io, Config $config)
-{
-$factory = new Factory();
-
-return $factory->createDownloadManager($io, $config);
-}
-
-protected function createInstallationManager()
-{
-return new InstallationManager();
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-class DependsCommand extends BaseDependencyCommand
-{
-
-
-
-protected function configure()
-{
-parent::configure();
-
-$this
-->setName('depends')
-->setAliases(array('why'))
-->setDescription('Shows which packages cause the given package to be installed.')
-->setHelp(
-<<<EOT
-Displays detailed information about where a package is referenced.
-
-<info>php composer.phar depends composer/composer</info>
-
-EOT
-)
-;
-}
-
-
-
-
-
-
-
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-return parent::doExecute($input, $output, false);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Composer\Composer;
-use Composer\Factory;
-use Composer\Config;
-use Composer\Downloader\TransportException;
-use Composer\Repository\PlatformRepository;
-use Composer\Plugin\CommandEvent;
-use Composer\Plugin\PluginEvents;
-use Composer\Util\ConfigValidator;
-use Composer\Util\IniHelper;
-use Composer\Util\ProcessExecutor;
-use Composer\Util\RemoteFilesystem;
-use Composer\Util\StreamContextFactory;
-use Composer\SelfUpdate\Keys;
-use Composer\SelfUpdate\Versions;
-use Composer\IO\NullIO;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-class DiagnoseCommand extends BaseCommand
-{
-
-protected $rfs;
-
-
-protected $process;
-
-
-protected $exitCode = 0;
-
-protected function configure()
-{
-$this
-->setName('diagnose')
-->setDescription('Diagnoses the system to identify common errors.')
-->setHelp(
-<<<EOT
-The <info>diagnose</info> command checks common errors to help debugging problems.
-
-The process exit code will be 1 in case of warnings and 2 for errors.
-
-EOT
-)
-;
-}
-
-
-
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-$composer = $this->getComposer(false);
-$io = $this->getIO();
-
-if ($composer) {
-$commandEvent = new CommandEvent(PluginEvents::COMMAND, 'diagnose', $input, $output);
-$composer->getEventDispatcher()->dispatch($commandEvent->getName(), $commandEvent);
-
-$io->write('Checking composer.json: ', false);
-$this->outputResult($this->checkComposerSchema());
-}
-
-if ($composer) {
-$config = $composer->getConfig();
-} else {
-$config = Factory::createConfig();
-}
-
-$config->merge(array('config' => array('secure-http' => false)));
-$config->prohibitUrlByConfig('http://repo.packagist.org', new NullIO);
-
-$this->rfs = Factory::createRemoteFilesystem($io, $config);
-$this->process = new ProcessExecutor($io);
-
-$io->write('Checking platform settings: ', false);
-$this->outputResult($this->checkPlatform());
-
-$io->write('Checking git settings: ', false);
-$this->outputResult($this->checkGit());
-
-$io->write('Checking http connectivity to packagist: ', false);
-$this->outputResult($this->checkHttp('http', $config));
-
-$io->write('Checking https connectivity to packagist: ', false);
-$this->outputResult($this->checkHttp('https', $config));
-
-$opts = stream_context_get_options(StreamContextFactory::getContext('http://example.org'));
-if (!empty($opts['http']['proxy'])) {
-$io->write('Checking HTTP proxy: ', false);
-$this->outputResult($this->checkHttpProxy());
-$io->write('Checking HTTP proxy support for request_fulluri: ', false);
-$this->outputResult($this->checkHttpProxyFullUriRequestParam());
-$io->write('Checking HTTPS proxy support for request_fulluri: ', false);
-$this->outputResult($this->checkHttpsProxyFullUriRequestParam());
-}
-
-if ($oauth = $config->get('github-oauth')) {
-foreach ($oauth as $domain => $token) {
-$io->write('Checking '.$domain.' oauth access: ', false);
-$this->outputResult($this->checkGithubOauth($domain, $token));
-}
-} else {
-$io->write('Checking github.com rate limit: ', false);
-try {
-$rate = $this->getGithubRateLimit('github.com');
-if (!is_array($rate)) {
-$this->outputResult($rate);
-} elseif (10 > $rate['remaining']) {
-$io->write('<warning>WARNING</warning>');
-$io->write(sprintf(
-'<comment>Github has a rate limit on their API. '
-. 'You currently have <options=bold>%u</options=bold> '
-. 'out of <options=bold>%u</options=bold> requests left.' . PHP_EOL
-. 'See https://developer.github.com/v3/#rate-limiting and also' . PHP_EOL
-. '    https://getcomposer.org/doc/articles/troubleshooting.md#api-rate-limit-and-oauth-tokens</comment>',
-$rate['remaining'],
-$rate['limit']
-));
-} else {
-$this->outputResult(true);
-}
-} catch (\Exception $e) {
-if ($e instanceof TransportException && $e->getCode() === 401) {
-$this->outputResult('<comment>The oauth token for github.com seems invalid, run "composer config --global --unset github-oauth.github.com" to remove it</comment>');
-} else {
-$this->outputResult($e);
-}
-}
-}
-
-$io->write('Checking disk free space: ', false);
-$this->outputResult($this->checkDiskSpace($config));
-
-if ('phar:' === substr(__FILE__, 0, 5)) {
-$io->write('Checking pubkeys: ', false);
-$this->outputResult($this->checkPubKeys($config));
-
-$io->write('Checking composer version: ', false);
-$this->outputResult($this->checkVersion($config));
-}
-
-$io->write(sprintf('Composer version: <comment>%s</comment>', Composer::VERSION));
-
-$platformOverrides = $config->get('platform') ?: array();
-$platformRepo = new PlatformRepository(array(), $platformOverrides);
-$phpPkg = $platformRepo->findPackage('php', '*');
-$phpVersion = $phpPkg->getPrettyVersion();
-if (false !== strpos($phpPkg->getDescription(), 'overridden')) {
-$phpVersion .= ' - ' . $phpPkg->getDescription();
-}
-
-$io->write(sprintf('PHP version: <comment>%s</comment>', $phpVersion));
-
-if (defined('PHP_BINARY')) {
-$io->write(sprintf('PHP binary path: <comment>%s</comment>', PHP_BINARY));
-}
-
-return $this->exitCode;
-}
-
-private function checkComposerSchema()
-{
-$validator = new ConfigValidator($this->getIO());
-list($errors, , $warnings) = $validator->validate(Factory::getComposerFile());
-
-if ($errors || $warnings) {
-$messages = array(
-'error' => $errors,
-'warning' => $warnings,
-);
-
-$output = '';
-foreach ($messages as $style => $msgs) {
-foreach ($msgs as $msg) {
-$output .= '<' . $style . '>' . $msg . '</' . $style . '>' . PHP_EOL;
-}
-}
-
-return rtrim($output);
-}
-
-return true;
-}
-
-private function checkGit()
-{
-$this->process->execute('git config color.ui', $output);
-if (strtolower(trim($output)) === 'always') {
-return '<comment>Your git color.ui setting is set to always, this is known to create issues. Use "git config --global color.ui true" to set it correctly.</comment>';
-}
-
-return true;
-}
-
-private function checkHttp($proto, Config $config)
-{
-$result = $this->checkConnectivity();
-if ($result !== true) {
-return $result;
-}
-
-$disableTls = false;
-$result = array();
-if ($proto === 'https' && $config->get('disable-tls') === true) {
-$disableTls = true;
-$result[] = '<warning>Composer is configured to disable SSL/TLS protection. This will leave remote HTTPS requests vulnerable to Man-In-The-Middle attacks.</warning>';
-}
-if ($proto === 'https' && !extension_loaded('openssl') && !$disableTls) {
-$result[] = '<error>Composer is configured to use SSL/TLS protection but the openssl extension is not available.</error>';
-}
-
-try {
-$this->rfs->getContents('packagist.org', $proto . '://repo.packagist.org/packages.json', false);
-} catch (TransportException $e) {
-if (false !== strpos($e->getMessage(), 'cafile')) {
-$result[] = '<error>[' . get_class($e) . '] ' . $e->getMessage() . '</error>';
-$result[] = '<error>Unable to locate a valid CA certificate file. You must set a valid \'cafile\' option.</error>';
-$result[] = '<error>You can alternatively disable this error, at your own risk, by enabling the \'disable-tls\' option.</error>';
-} else {
-array_unshift($result, '[' . get_class($e) . '] ' . $e->getMessage());
-}
-}
-
-if (count($result) > 0) {
-return $result;
-}
-
-return true;
-}
-
-private function checkHttpProxy()
-{
-$result = $this->checkConnectivity();
-if ($result !== true) {
-return $result;
-}
-
-$protocol = extension_loaded('openssl') ? 'https' : 'http';
-try {
-$json = json_decode($this->rfs->getContents('packagist.org', $protocol . '://repo.packagist.org/packages.json', false), true);
-$hash = reset($json['provider-includes']);
-$hash = $hash['sha256'];
-$path = str_replace('%hash%', $hash, key($json['provider-includes']));
-$provider = $this->rfs->getContents('packagist.org', $protocol . '://repo.packagist.org/'.$path, false);
-
-if (hash('sha256', $provider) !== $hash) {
-return 'It seems that your proxy is modifying http traffic on the fly';
-}
-} catch (\Exception $e) {
-return $e;
-}
-
-return true;
-}
-
-
-
-
-
-
-
-
-private function checkHttpProxyFullUriRequestParam()
-{
-$result = $this->checkConnectivity();
-if ($result !== true) {
-return $result;
-}
-
-$url = 'http://repo.packagist.org/packages.json';
-try {
-$this->rfs->getContents('packagist.org', $url, false);
-} catch (TransportException $e) {
-try {
-$this->rfs->getContents('packagist.org', $url, false, array('http' => array('request_fulluri' => false)));
-} catch (TransportException $e) {
-return 'Unable to assess the situation, maybe packagist.org is down ('.$e->getMessage().')';
-}
-
-return 'It seems there is a problem with your proxy server, try setting the "HTTP_PROXY_REQUEST_FULLURI" and "HTTPS_PROXY_REQUEST_FULLURI" environment variables to "false"';
-}
-
-return true;
-}
-
-
-
-
-
-
-
-
-private function checkHttpsProxyFullUriRequestParam()
-{
-$result = $this->checkConnectivity();
-if ($result !== true) {
-return $result;
-}
-
-if (!extension_loaded('openssl')) {
-return 'You need the openssl extension installed for this check';
-}
-
-$url = 'https://api.github.com/repos/Seldaek/jsonlint/zipball/1.0.0';
-try {
-$this->rfs->getContents('github.com', $url, false);
-} catch (TransportException $e) {
-try {
-$this->rfs->getContents('github.com', $url, false, array('http' => array('request_fulluri' => false)));
-} catch (TransportException $e) {
-return 'Unable to assess the situation, maybe github is down ('.$e->getMessage().')';
-}
-
-return 'It seems there is a problem with your proxy server, try setting the "HTTPS_PROXY_REQUEST_FULLURI" environment variable to "false"';
-}
-
-return true;
-}
-
-private function checkGithubOauth($domain, $token)
-{
-$result = $this->checkConnectivity();
-if ($result !== true) {
-return $result;
-}
-
-$this->getIO()->setAuthentication($domain, $token, 'x-oauth-basic');
-try {
-$url = $domain === 'github.com' ? 'https://api.'.$domain.'/' : 'https://'.$domain.'/api/v3/';
-
-return $this->rfs->getContents($domain, $url, false, array(
-'retry-auth-failure' => false,
-)) ? true : 'Unexpected error';
-} catch (\Exception $e) {
-if ($e instanceof TransportException && $e->getCode() === 401) {
-return '<comment>The oauth token for '.$domain.' seems invalid, run "composer config --global --unset github-oauth.'.$domain.'" to remove it</comment>';
-}
-
-return $e;
-}
-}
-
-
-
-
-
-
-
-private function getGithubRateLimit($domain, $token = null)
-{
-$result = $this->checkConnectivity();
-if ($result !== true) {
-return $result;
-}
-
-if ($token) {
-$this->getIO()->setAuthentication($domain, $token, 'x-oauth-basic');
-}
-
-$url = $domain === 'github.com' ? 'https://api.'.$domain.'/rate_limit' : 'https://'.$domain.'/api/rate_limit';
-$json = $this->rfs->getContents($domain, $url, false, array('retry-auth-failure' => false));
-$data = json_decode($json, true);
-
-return $data['resources']['core'];
-}
-
-private function checkDiskSpace($config)
-{
-$minSpaceFree = 1024 * 1024;
-if ((($df = @disk_free_space($dir = $config->get('home'))) !== false && $df < $minSpaceFree)
-|| (($df = @disk_free_space($dir = $config->get('vendor-dir'))) !== false && $df < $minSpaceFree)
-) {
-return '<error>The disk hosting '.$dir.' is full</error>';
-}
-
-return true;
-}
-
-private function checkPubKeys($config)
-{
-$home = $config->get('home');
-$errors = array();
-$io = $this->getIO();
-
-if (file_exists($home.'/keys.tags.pub') && file_exists($home.'/keys.dev.pub')) {
-$io->write('');
-}
-
-if (file_exists($home.'/keys.tags.pub')) {
-$io->write('Tags Public Key Fingerprint: ' . Keys::fingerprint($home.'/keys.tags.pub'));
-} else {
-$errors[] = '<error>Missing pubkey for tags verification</error>';
-}
-
-if (file_exists($home.'/keys.dev.pub')) {
-$io->write('Dev Public Key Fingerprint: ' . Keys::fingerprint($home.'/keys.dev.pub'));
-} else {
-$errors[] = '<error>Missing pubkey for dev verification</error>';
-}
-
-if ($errors) {
-$errors[] = '<error>Run composer self-update --update-keys to set them up</error>';
-}
-
-return $errors ?: true;
-}
-
-private function checkVersion($config)
-{
-$result = $this->checkConnectivity();
-if ($result !== true) {
-return $result;
-}
-
-$versionsUtil = new Versions($config, $this->rfs);
-$latest = $versionsUtil->getLatest();
-
-if (Composer::VERSION !== $latest['version'] && Composer::VERSION !== '@package_version@') {
-return '<comment>You are not running the latest '.$versionsUtil->getChannel().' version, run `composer self-update` to update ('.Composer::VERSION.' => '.$latest['version'].')</comment>';
-}
-
-return true;
-}
-
-
-
-
-private function outputResult($result)
-{
-$io = $this->getIO();
-if (true === $result) {
-$io->write('<info>OK</info>');
-
-return;
-}
-
-$hadError = false;
-$hadWarning = false;
-if ($result instanceof \Exception) {
-$result = '<error>['.get_class($result).'] '.$result->getMessage().'</error>';
-}
-
-if (!$result) {
-
- $hadError = true;
-} else {
-if (!is_array($result)) {
-$result = array($result);
-}
-foreach ($result as $message) {
-if (false !== strpos($message, '<error>')) {
-$hadError = true;
-} elseif (false !== strpos($message, '<warning>')) {
-$hadWarning = true;
-}
-}
-}
-
-if ($hadError) {
-$io->write('<error>FAIL</error>');
-$this->exitCode = max($this->exitCode, 2);
-} elseif ($hadWarning) {
-$io->write('<warning>WARNING</warning>');
-$this->exitCode = max($this->exitCode, 1);
-}
-
-if ($result) {
-foreach ($result as $message) {
-$io->write($message);
-}
-}
-}
-
-private function checkPlatform()
-{
-$output = '';
-$out = function ($msg, $style) use (&$output) {
-$output .= '<'.$style.'>'.$msg.'</'.$style.'>'.PHP_EOL;
-};
-
-
- $errors = array();
-$warnings = array();
-$displayIniMessage = false;
-
-$iniMessage = PHP_EOL.PHP_EOL.IniHelper::getMessage();
-$iniMessage .= PHP_EOL.'If you can not modify the ini file, you can also run `php -d option=value` to modify ini values on the fly. You can use -d multiple times.';
-
-if (!function_exists('json_decode')) {
-$errors['json'] = true;
-}
-
-if (!extension_loaded('Phar')) {
-$errors['phar'] = true;
-}
-
-if (!extension_loaded('filter')) {
-$errors['filter'] = true;
-}
-
-if (!extension_loaded('hash')) {
-$errors['hash'] = true;
-}
-
-if (!extension_loaded('iconv') && !extension_loaded('mbstring')) {
-$errors['iconv_mbstring'] = true;
-}
-
-if (!filter_var(ini_get('allow_url_fopen'), FILTER_VALIDATE_BOOLEAN)) {
-$errors['allow_url_fopen'] = true;
-}
-
-if (extension_loaded('ionCube Loader') && ioncube_loader_iversion() < 40009) {
-$errors['ioncube'] = ioncube_loader_version();
-}
-
-if (PHP_VERSION_ID < 50302) {
-$errors['php'] = PHP_VERSION;
-}
-
-if (!isset($errors['php']) && PHP_VERSION_ID < 50304) {
-$warnings['php'] = PHP_VERSION;
-}
-
-if (!extension_loaded('openssl')) {
-$errors['openssl'] = true;
-}
-
-if (extension_loaded('openssl') && OPENSSL_VERSION_NUMBER < 0x1000100f) {
-$warnings['openssl_version'] = true;
-}
-
-if (!defined('HHVM_VERSION') && !extension_loaded('apcu') && filter_var(ini_get('apc.enable_cli'), FILTER_VALIDATE_BOOLEAN)) {
-$warnings['apc_cli'] = true;
-}
-
-if (!extension_loaded('zlib')) {
-$warnings['zlib'] = true;
-}
-
-ob_start();
-phpinfo(INFO_GENERAL);
-$phpinfo = ob_get_clean();
-if (preg_match('{Configure Command(?: *</td><td class="v">| *=> *)(.*?)(?:</td>|$)}m', $phpinfo, $match)) {
-$configure = $match[1];
-
-if (false !== strpos($configure, '--enable-sigchild')) {
-$warnings['sigchild'] = true;
-}
-
-if (false !== strpos($configure, '--with-curlwrappers')) {
-$warnings['curlwrappers'] = true;
-}
-}
-
-if (filter_var(ini_get('xdebug.profiler_enabled'), FILTER_VALIDATE_BOOLEAN)) {
-$warnings['xdebug_profile'] = true;
-} elseif (extension_loaded('xdebug')) {
-$warnings['xdebug_loaded'] = true;
-}
-
-if (!empty($errors)) {
-foreach ($errors as $error => $current) {
-switch ($error) {
-case 'json':
-$text = PHP_EOL."The json extension is missing.".PHP_EOL;
-$text .= "Install it or recompile php without --disable-json";
-break;
-
-case 'phar':
-$text = PHP_EOL."The phar extension is missing.".PHP_EOL;
-$text .= "Install it or recompile php without --disable-phar";
-break;
-
-case 'filter':
-$text = PHP_EOL."The filter extension is missing.".PHP_EOL;
-$text .= "Install it or recompile php without --disable-filter";
-break;
-
-case 'hash':
-$text = PHP_EOL."The hash extension is missing.".PHP_EOL;
-$text .= "Install it or recompile php without --disable-hash";
-break;
-
-case 'iconv_mbstring':
-$text = PHP_EOL."The iconv OR mbstring extension is required and both are missing.".PHP_EOL;
-$text .= "Install either of them or recompile php without --disable-iconv";
-break;
-
-case 'unicode':
-$text = PHP_EOL."The detect_unicode setting must be disabled.".PHP_EOL;
-$text .= "Add the following to the end of your `php.ini`:".PHP_EOL;
-$text .= "    detect_unicode = Off";
-$displayIniMessage = true;
-break;
-
-case 'suhosin':
-$text = PHP_EOL."The suhosin.executor.include.whitelist setting is incorrect.".PHP_EOL;
-$text .= "Add the following to the end of your `php.ini` or suhosin.ini (Example path [for Debian]: /etc/php5/cli/conf.d/suhosin.ini):".PHP_EOL;
-$text .= "    suhosin.executor.include.whitelist = phar ".$current;
-$displayIniMessage = true;
-break;
-
-case 'php':
-$text = PHP_EOL."Your PHP ({$current}) is too old, you must upgrade to PHP 5.3.2 or higher.";
-break;
-
-case 'allow_url_fopen':
-$text = PHP_EOL."The allow_url_fopen setting is incorrect.".PHP_EOL;
-$text .= "Add the following to the end of your `php.ini`:".PHP_EOL;
-$text .= "    allow_url_fopen = On";
-$displayIniMessage = true;
-break;
-
-case 'ioncube':
-$text = PHP_EOL."Your ionCube Loader extension ($current) is incompatible with Phar files.".PHP_EOL;
-$text .= "Upgrade to ionCube 4.0.9 or higher or remove this line (path may be different) from your `php.ini` to disable it:".PHP_EOL;
-$text .= "    zend_extension = /usr/lib/php5/20090626+lfs/ioncube_loader_lin_5.3.so";
-$displayIniMessage = true;
-break;
-
-case 'openssl':
-$text = PHP_EOL."The openssl extension is missing, which means that secure HTTPS transfers are impossible.".PHP_EOL;
-$text .= "If possible you should enable it or recompile php with --with-openssl";
-break;
-}
-$out($text, 'error');
-}
-
-$output .= PHP_EOL;
-}
-
-if (!empty($warnings)) {
-foreach ($warnings as $warning => $current) {
-switch ($warning) {
-case 'apc_cli':
-$text = "The apc.enable_cli setting is incorrect.".PHP_EOL;
-$text .= "Add the following to the end of your `php.ini`:".PHP_EOL;
-$text .= "  apc.enable_cli = Off";
-$displayIniMessage = true;
-break;
-
-case 'zlib':
-$text = 'The zlib extension is not loaded, this can slow down Composer a lot.'.PHP_EOL;
-$text .= 'If possible, enable it or recompile php with --with-zlib'.PHP_EOL;
-$displayIniMessage = true;
-break;
-
-case 'sigchild':
-$text = "PHP was compiled with --enable-sigchild which can cause issues on some platforms.".PHP_EOL;
-$text .= "Recompile it without this flag if possible, see also:".PHP_EOL;
-$text .= "  https://bugs.php.net/bug.php?id=22999";
-break;
-
-case 'curlwrappers':
-$text = "PHP was compiled with --with-curlwrappers which will cause issues with HTTP authentication and GitHub.".PHP_EOL;
-$text .= " Recompile it without this flag if possible";
-break;
-
-case 'php':
-$text = "Your PHP ({$current}) is quite old, upgrading to PHP 5.3.4 or higher is recommended.".PHP_EOL;
-$text .= " Composer works with 5.3.2+ for most people, but there might be edge case issues.";
-break;
-
-case 'openssl_version':
-
- $opensslVersion = strstr(trim(strstr(OPENSSL_VERSION_TEXT, ' ')), ' ', true);
-$opensslVersion = $opensslVersion ?: OPENSSL_VERSION_TEXT;
-
-$text = "The OpenSSL library ({$opensslVersion}) used by PHP does not support TLSv1.2 or TLSv1.1.".PHP_EOL;
-$text .= "If possible you should upgrade OpenSSL to version 1.0.1 or above.";
-break;
-
-case 'xdebug_loaded':
-$text = "The xdebug extension is loaded, this can slow down Composer a little.".PHP_EOL;
-$text .= " Disabling it when using Composer is recommended.";
-break;
-
-case 'xdebug_profile':
-$text = "The xdebug.profiler_enabled setting is enabled, this can slow down Composer a lot.".PHP_EOL;
-$text .= "Add the following to the end of your `php.ini` to disable it:".PHP_EOL;
-$text .= "  xdebug.profiler_enabled = 0";
-$displayIniMessage = true;
-break;
-}
-$out($text, 'comment');
-}
-}
-
-if ($displayIniMessage) {
-$out($iniMessage, 'comment');
-}
-
-return !$warnings && !$errors ? true : $output;
-}
-
-
-
-
-
-
-
-private function checkConnectivity()
-{
-if (!ini_get('allow_url_fopen')) {
-$result = '<info>Skipped because allow_url_fopen is missing.</info>';
-return $result;
-}
-
-return true;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Composer\Plugin\CommandEvent;
-use Composer\Plugin\PluginEvents;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-class DumpAutoloadCommand extends BaseCommand
-{
-protected function configure()
-{
-$this
-->setName('dump-autoload')
-->setAliases(array('dumpautoload'))
-->setDescription('Dumps the autoloader.')
-->setDefinition(array(
-new InputOption('no-scripts', null, InputOption::VALUE_NONE, 'Skips the execution of all scripts defined in composer.json file.'),
-new InputOption('optimize', 'o', InputOption::VALUE_NONE, 'Optimizes PSR0 and PSR4 packages to be loaded with classmaps too, good for production.'),
-new InputOption('classmap-authoritative', 'a', InputOption::VALUE_NONE, 'Autoload classes from the classmap only. Implicitly enables `--optimize`.'),
-new InputOption('apcu', null, InputOption::VALUE_NONE, 'Use APCu to cache found/not-found classes.'),
-new InputOption('no-dev', null, InputOption::VALUE_NONE, 'Disables autoload-dev rules.'),
-))
-->setHelp(
-<<<EOT
-<info>php composer.phar dump-autoload</info>
-EOT
-)
-;
-}
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-$composer = $this->getComposer();
-
-$commandEvent = new CommandEvent(PluginEvents::COMMAND, 'dump-autoload', $input, $output);
-$composer->getEventDispatcher()->dispatch($commandEvent->getName(), $commandEvent);
-
-$installationManager = $composer->getInstallationManager();
-$localRepo = $composer->getRepositoryManager()->getLocalRepository();
-$package = $composer->getPackage();
-$config = $composer->getConfig();
-
-$optimize = $input->getOption('optimize') || $config->get('optimize-autoloader');
-$authoritative = $input->getOption('classmap-authoritative') || $config->get('classmap-authoritative');
-$apcu = $input->getOption('apcu') || $config->get('apcu-autoloader');
-
-if ($authoritative) {
-$this->getIO()->writeError('<info>Generating optimized autoload files (authoritative)</info>', false);
-} elseif ($optimize) {
-$this->getIO()->writeError('<info>Generating optimized autoload files</info>', false);
-} else {
-$this->getIO()->writeError('<info>Generating autoload files</info>', false);
-}
-
-$generator = $composer->getAutoloadGenerator();
-$generator->setDevMode(!$input->getOption('no-dev'));
-$generator->setClassMapAuthoritative($authoritative);
-$generator->setApcu($apcu);
-$generator->setRunScripts(!$input->getOption('no-scripts'));
-$numberOfClasses = $generator->dump($config, $localRepo, $package, $installationManager, 'composer', $optimize);
-
-if ($authoritative) {
-$this->getIO()->overwriteError('<info>Generated optimized autoload files (authoritative) containing '. $numberOfClasses .' classes</info>');
-} elseif ($optimize) {
-$this->getIO()->overwriteError('<info>Generated optimized autoload files containing '. $numberOfClasses .' classes</info>');
-} else {
-$this->getIO()->overwriteError('<info>Generated autoload files containing '. $numberOfClasses .' classes</info>');
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Input\InputArgument;
-
-
-
-
-class ExecCommand extends BaseCommand
-{
-protected function configure()
-{
-$this
-->setName('exec')
-->setDescription('Executes a vendored binary/script.')
-->setDefinition(array(
-new InputOption('list', 'l', InputOption::VALUE_NONE),
-new InputArgument('binary', InputArgument::OPTIONAL, 'The binary to run, e.g. phpunit'),
-new InputArgument(
-'args',
-InputArgument::IS_ARRAY | InputArgument::OPTIONAL,
-'Arguments to pass to the binary. Use <info>--</info> to separate from composer arguments'
-),
-))
-;
-}
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-$composer = $this->getComposer();
-$binDir = $composer->getConfig()->get('bin-dir');
-if ($input->getOption('list') || !$input->getArgument('binary')) {
-$bins = glob($binDir . '/*');
-$bins = array_merge($bins, array_map(function ($e) {
-return "$e (local)";
-}, $composer->getPackage()->getBinaries()));
-
-if (!$bins) {
-throw new \RuntimeException("No binaries found in composer.json or in bin-dir ($binDir)");
-}
-
-$this->getIO()->write(
-<<<EOT
-<comment>Available binaries:</comment>
-EOT
-);
-
-foreach ($bins as $bin) {
-
- if (isset($previousBin) && $bin === $previousBin.'.bat') {
-continue;
-}
-
-$previousBin = $bin;
-$bin = basename($bin);
-$this->getIO()->write(
-<<<EOT
-<info>- $bin</info>
-EOT
-);
-}
-
-return 0;
-}
-
-$binary = $input->getArgument('binary');
-
-$dispatcher = $composer->getEventDispatcher();
-$dispatcher->addListener('__exec_command', $binary);
-if ($output->getVerbosity() === OutputInterface::VERBOSITY_NORMAL) {
-$output->setVerbosity(OutputInterface::VERBOSITY_QUIET);
-}
-
-return $dispatcher->dispatchScript('__exec_command', true, $input->getArgument('args'));
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Composer\Factory;
-use Composer\Util\Filesystem;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\StringInput;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-class GlobalCommand extends BaseCommand
-{
-protected function configure()
-{
-$this
-->setName('global')
-->setDescription('Allows running commands in the global composer dir ($COMPOSER_HOME).')
-->setDefinition(array(
-new InputArgument('command-name', InputArgument::REQUIRED, ''),
-new InputArgument('args', InputArgument::IS_ARRAY | InputArgument::OPTIONAL, ''),
-))
-->setHelp(
-<<<EOT
-Use this command as a wrapper to run other Composer commands
-within the global context of COMPOSER_HOME.
-
-You can use this to install CLI utilities globally, all you need
-is to add the COMPOSER_HOME/vendor/bin dir to your PATH env var.
-
-COMPOSER_HOME is c:\Users\<user>\AppData\Roaming\Composer on Windows
-and /home/<user>/.composer on unix systems.
-
-If your system uses freedesktop.org standards, then it will first check
-XDG_CONFIG_HOME or default to /home/<user>/.config/composer
-
-Note: This path may vary depending on customizations to bin-dir in
-composer.json or the environmental variable COMPOSER_BIN_DIR.
-
-EOT
-)
-;
-}
-
-public function run(InputInterface $input, OutputInterface $output)
-{
-
- $tokens = preg_split('{\s+}', $input->__toString());
-$args = array();
-foreach ($tokens as $token) {
-if ($token && $token[0] !== '-') {
-$args[] = $token;
-if (count($args) >= 2) {
-break;
-}
-}
-}
-
-
- if (count($args) < 2) {
-return parent::run($input, $output);
-}
-
-
- $config = Factory::createConfig();
-$home = $config->get('home');
-
-if (!is_dir($home)) {
-$fs = new Filesystem();
-$fs->ensureDirectoryExists($home);
-if (!is_dir($home)) {
-throw new \RuntimeException('Could not create home directory');
-}
-}
-
-try {
-chdir($home);
-} catch (\Exception $e) {
-throw new \RuntimeException('Could not switch to home directory "'.$home.'"', 0, $e);
-}
-$this->getIO()->writeError('<info>Changed current directory to '.$home.'</info>');
-
-
- $input = new StringInput(preg_replace('{\bg(?:l(?:o(?:b(?:a(?:l)?)?)?)?)?\b}', '', $input->__toString(), 1));
-$this->getApplication()->resetComposer();
-
-return $this->getApplication()->run($input, $output);
-}
-
-
-
-
-public function isProxyCommand()
-{
-return true;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Composer\Package\CompletePackageInterface;
-use Composer\Repository\RepositoryInterface;
-use Composer\Repository\ArrayRepository;
-use Composer\Repository\RepositoryFactory;
-use Composer\Util\Platform;
-use Composer\Util\ProcessExecutor;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-class HomeCommand extends BaseCommand
-{
-
-
-
-protected function configure()
-{
-$this
-->setName('browse')
-->setAliases(array('home'))
-->setDescription('Opens the package\'s repository URL or homepage in your browser.')
-->setDefinition(array(
-new InputArgument('packages', InputArgument::IS_ARRAY, 'Package(s) to browse to.'),
-new InputOption('homepage', 'H', InputOption::VALUE_NONE, 'Open the homepage instead of the repository URL.'),
-new InputOption('show', 's', InputOption::VALUE_NONE, 'Only show the homepage or repository URL.'),
-))
-->setHelp(
-<<<EOT
-The home command opens or shows a package's repository URL or
-homepage in your default browser.
-
-To open the homepage by default, use -H or --homepage.
-To show instead of open the repository or homepage URL, use -s or --show.
-EOT
-);
-}
-
-
-
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-$repos = $this->initializeRepos();
-$io = $this->getIO();
-$return = 0;
-
-$packages = $input->getArgument('packages');
-if (!$packages) {
-$io->writeError('No package specified, opening homepage for the root package');
-$packages = array($this->getComposer()->getPackage()->getName());
-}
-
-foreach ($packages as $packageName) {
-$handled = false;
-$packageExists = false;
-foreach ($repos as $repo) {
-foreach ($repo->findPackages($packageName) as $package) {
-$packageExists = true;
-if ($package instanceof CompletePackageInterface && $this->handlePackage($package, $input->getOption('homepage'), $input->getOption('show'))) {
-$handled = true;
-break 2;
-}
-}
-}
-
-if (!$packageExists) {
-$return = 1;
-$io->writeError('<warning>Package '.$packageName.' not found</warning>');
-}
-
-if (!$handled) {
-$return = 1;
-$io->writeError('<warning>'.($input->getOption('homepage') ? 'Invalid or missing homepage' : 'Invalid or missing repository URL').' for '.$packageName.'</warning>');
-}
-}
-
-return $return;
-}
-
-private function handlePackage(CompletePackageInterface $package, $showHomepage, $showOnly)
-{
-$support = $package->getSupport();
-$url = isset($support['source']) ? $support['source'] : $package->getSourceUrl();
-if (!$url || $showHomepage) {
-$url = $package->getHomepage();
-}
-
-if (!$url || !filter_var($url, FILTER_VALIDATE_URL)) {
-return false;
-}
-
-if ($showOnly) {
-$this->getIO()->write(sprintf('<info>%s</info>', $url));
-} else {
-$this->openBrowser($url);
-}
-
-return true;
-}
-
-
-
-
-
-
-private function openBrowser($url)
-{
-$url = ProcessExecutor::escape($url);
-
-$process = new ProcessExecutor($this->getIO());
-if (Platform::isWindows()) {
-return $process->execute('start "web" explorer "' . $url . '"', $output);
-}
-
-$linux = $process->execute('which xdg-open', $output);
-$osx = $process->execute('which open', $output);
-
-if (0 === $linux) {
-$process->execute('xdg-open ' . $url, $output);
-} elseif (0 === $osx) {
-$process->execute('open ' . $url, $output);
-} else {
-$this->getIO()->writeError('No suitable browser opening command found, open yourself: ' . $url);
-}
-}
-
-
-
-
-
-
-
-
-private function initializeRepos()
-{
-$composer = $this->getComposer(false);
-
-if ($composer) {
-return array_merge(
-array(new ArrayRepository(array($composer->getPackage()))), 
- array($composer->getRepositoryManager()->getLocalRepository()), 
- $composer->getRepositoryManager()->getRepositories() 
- );
-}
-
-return RepositoryFactory::defaultRepos($this->getIO());
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Composer\DependencyResolver\Pool;
-use Composer\Factory;
-use Composer\Json\JsonFile;
-use Composer\Package\BasePackage;
-use Composer\Package\Version\VersionParser;
-use Composer\Package\Version\VersionSelector;
-use Composer\Repository\CompositeRepository;
-use Composer\Repository\PlatformRepository;
-use Composer\Repository\RepositoryFactory;
-use Composer\Util\ProcessExecutor;
-use Symfony\Component\Console\Input\ArrayInput;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Process\ExecutableFinder;
-use Symfony\Component\Process\Process;
-
-
-
-
-
-class InitCommand extends BaseCommand
-{
-
-protected $repos;
-
-
-private $gitConfig;
-
-
-private $pools;
-
-
-
-
-protected function configure()
-{
-$this
-->setName('init')
-->setDescription('Creates a basic composer.json file in current directory.')
-->setDefinition(array(
-new InputOption('name', null, InputOption::VALUE_REQUIRED, 'Name of the package'),
-new InputOption('description', null, InputOption::VALUE_REQUIRED, 'Description of package'),
-new InputOption('author', null, InputOption::VALUE_REQUIRED, 'Author name of package'),
-
- new InputOption('type', null, InputOption::VALUE_OPTIONAL, 'Type of package (e.g. library, project, metapackage, composer-plugin)'),
-new InputOption('homepage', null, InputOption::VALUE_REQUIRED, 'Homepage of package'),
-new InputOption('require', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'Package to require with a version constraint, e.g. foo/bar:1.0.0 or foo/bar=1.0.0 or "foo/bar 1.0.0"'),
-new InputOption('require-dev', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'Package to require for development with a version constraint, e.g. foo/bar:1.0.0 or foo/bar=1.0.0 or "foo/bar 1.0.0"'),
-new InputOption('stability', 's', InputOption::VALUE_REQUIRED, 'Minimum stability (empty or one of: '.implode(', ', array_keys(BasePackage::$stabilities)).')'),
-new InputOption('license', 'l', InputOption::VALUE_REQUIRED, 'License of package'),
-new InputOption('repository', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Add custom repositories, either by URL or using JSON arrays'),
-))
-->setHelp(
-<<<EOT
-The <info>init</info> command creates a basic composer.json file
-in the current directory.
-
-<info>php composer.phar init</info>
-
-EOT
-)
-;
-}
-
-
-
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-$io = $this->getIO();
-
-$whitelist = array('name', 'description', 'author', 'type', 'homepage', 'require', 'require-dev', 'stability', 'license');
-$options = array_filter(array_intersect_key($input->getOptions(), array_flip($whitelist)));
-
-if (isset($options['author'])) {
-$options['authors'] = $this->formatAuthors($options['author']);
-unset($options['author']);
-}
-
-$repositories = $input->getOption('repository');
-if ($repositories) {
-$config = Factory::createConfig($io);
-foreach ($repositories as $repo) {
-$options['repositories'][] = RepositoryFactory::configFromString($io, $config, $repo);
-}
-}
-
-if (isset($options['stability'])) {
-$options['minimum-stability'] = $options['stability'];
-unset($options['stability']);
-}
-
-$options['require'] = isset($options['require']) ? $this->formatRequirements($options['require']) : new \stdClass;
-if (array() === $options['require']) {
-$options['require'] = new \stdClass;
-}
-
-if (isset($options['require-dev'])) {
-$options['require-dev'] = $this->formatRequirements($options['require-dev']);
-if (array() === $options['require-dev']) {
-$options['require-dev'] = new \stdClass;
-}
-}
-
-$file = new JsonFile(Factory::getComposerFile());
-$json = $file->encode($options);
-
-if ($input->isInteractive()) {
-$io->writeError(array('', $json, ''));
-if (!$io->askConfirmation('Do you confirm generation [<comment>yes</comment>]? ', true)) {
-$io->writeError('<error>Command aborted</error>');
-
-return 1;
-}
-}
-
-$file->write($options);
-
-if ($input->isInteractive() && is_dir('.git')) {
-$ignoreFile = realpath('.gitignore');
-
-if (false === $ignoreFile) {
-$ignoreFile = realpath('.') . '/.gitignore';
-}
-
-if (!$this->hasVendorIgnore($ignoreFile)) {
-$question = 'Would you like the <info>vendor</info> directory added to your <info>.gitignore</info> [<comment>yes</comment>]? ';
-
-if ($io->askConfirmation($question, true)) {
-$this->addVendorIgnore($ignoreFile);
-}
-}
-}
-
-$question = 'Would you like to install dependencies now [<comment>yes</comment>]? ';
-if ($input->isInteractive() && $this->hasDependencies($options) && $io->askConfirmation($question, true)) {
-$this->installDependencies($output);
-}
-}
-
-
-
-
-protected function interact(InputInterface $input, OutputInterface $output)
-{
-$git = $this->getGitConfig();
-$io = $this->getIO();
-$formatter = $this->getHelperSet()->get('formatter');
-
-
- $repositories = $input->getOption('repository');
-if ($repositories) {
-$config = Factory::createConfig($io);
-$repos = array(new PlatformRepository);
-foreach ($repositories as $repo) {
-$repos[] = RepositoryFactory::fromString($io, $config, $repo);
-}
-$repos[] = RepositoryFactory::createRepo($io, $config, array(
-'type' => 'composer',
-'url' => 'https://repo.packagist.org',
-));
-
-$this->repos = new CompositeRepository($repos);
-unset($repos, $config, $repositories);
-}
-
-$io->writeError(array(
-'',
-$formatter->formatBlock('Welcome to the Composer config generator', 'bg=blue;fg=white', true),
-'',
-));
-
-
- $io->writeError(array(
-'',
-'This command will guide you through creating your composer.json config.',
-'',
-));
-
-$cwd = realpath(".");
-
-if (!$name = $input->getOption('name')) {
-$name = basename($cwd);
-$name = preg_replace('{(?:([a-z])([A-Z])|([A-Z])([A-Z][a-z]))}', '\\1\\3-\\2\\4', $name);
-$name = strtolower($name);
-if (!empty($_SERVER['COMPOSER_DEFAULT_VENDOR'])) {
-$name = $_SERVER['COMPOSER_DEFAULT_VENDOR'] . '/' . $name;
-} elseif (isset($git['github.user'])) {
-$name = $git['github.user'] . '/' . $name;
-} elseif (!empty($_SERVER['USERNAME'])) {
-$name = $_SERVER['USERNAME'] . '/' . $name;
-} elseif (!empty($_SERVER['USER'])) {
-$name = $_SERVER['USER'] . '/' . $name;
-} elseif (get_current_user()) {
-$name = get_current_user() . '/' . $name;
-} else {
-
- $name .= '/' . $name;
-}
-$name = strtolower($name);
-} else {
-if (!preg_match('{^[a-z0-9_.-]+/[a-z0-9_.-]+$}D', $name)) {
-throw new \InvalidArgumentException(
-'The package name '.$name.' is invalid, it should be lowercase and have a vendor name, a forward slash, and a package name, matching: [a-z0-9_.-]+/[a-z0-9_.-]+'
-);
-}
-}
-
-$name = $io->askAndValidate(
-'Package name (<vendor>/<name>) [<comment>'.$name.'</comment>]: ',
-function ($value) use ($name) {
-if (null === $value) {
-return $name;
-}
-
-if (!preg_match('{^[a-z0-9_.-]+/[a-z0-9_.-]+$}D', $value)) {
-throw new \InvalidArgumentException(
-'The package name '.$value.' is invalid, it should be lowercase and have a vendor name, a forward slash, and a package name, matching: [a-z0-9_.-]+/[a-z0-9_.-]+'
-);
-}
-
-return $value;
-},
-null,
-$name
-);
-$input->setOption('name', $name);
-
-$description = $input->getOption('description') ?: false;
-$description = $io->ask(
-'Description [<comment>'.$description.'</comment>]: ',
-$description
-);
-$input->setOption('description', $description);
-
-if (null === $author = $input->getOption('author')) {
-if (!empty($_SERVER['COMPOSER_DEFAULT_AUTHOR'])) {
-$author_name = $_SERVER['COMPOSER_DEFAULT_AUTHOR'];
-} elseif (isset($git['user.name'])) {
-$author_name = $git['user.name'];
-}
-
-if (!empty($_SERVER['COMPOSER_DEFAULT_EMAIL'])) {
-$author_email = $_SERVER['COMPOSER_DEFAULT_EMAIL'];
-} elseif (isset($git['user.email'])) {
-$author_email = $git['user.email'];
-}
-
-if (isset($author_name) && isset($author_email)) {
-$author = sprintf('%s <%s>', $author_name, $author_email);
-}
-}
-
-$self = $this;
-$author = $io->askAndValidate(
-'Author [<comment>'.$author.'</comment>, n to skip]: ',
-function ($value) use ($self, $author) {
-if ($value === 'n' || $value === 'no') {
-return;
-}
-$value = $value ?: $author;
-$author = $self->parseAuthorString($value);
-
-return sprintf('%s <%s>', $author['name'], $author['email']);
-},
-null,
-$author
-);
-$input->setOption('author', $author);
-
-$minimumStability = $input->getOption('stability') ?: null;
-$minimumStability = $io->askAndValidate(
-'Minimum Stability [<comment>'.$minimumStability.'</comment>]: ',
-function ($value) use ($minimumStability) {
-if (null === $value) {
-return $minimumStability;
-}
-
-if (!isset(BasePackage::$stabilities[$value])) {
-throw new \InvalidArgumentException(
-'Invalid minimum stability "'.$value.'". Must be empty or one of: '.
-implode(', ', array_keys(BasePackage::$stabilities))
-);
-}
-
-return $value;
-},
-null,
-$minimumStability
-);
-$input->setOption('stability', $minimumStability);
-
-$type = $input->getOption('type') ?: false;
-$type = $io->ask(
-'Package Type (e.g. library, project, metapackage, composer-plugin) [<comment>'.$type.'</comment>]: ',
-$type
-);
-$input->setOption('type', $type);
-
-if (null === $license = $input->getOption('license')) {
-if (!empty($_SERVER['COMPOSER_DEFAULT_LICENSE'])) {
-$license = $_SERVER['COMPOSER_DEFAULT_LICENSE'];
-}
-}
-
-$license = $io->ask(
-'License [<comment>'.$license.'</comment>]: ',
-$license
-);
-$input->setOption('license', $license);
-
-$io->writeError(array('', 'Define your dependencies.', ''));
-
-
- $repos = $this->getRepos();
-$preferredStability = $minimumStability ?: 'stable';
-$phpVersion = $repos->findPackage('php', '*')->getPrettyVersion();
-
-$question = 'Would you like to define your dependencies (require) interactively [<comment>yes</comment>]? ';
-$require = $input->getOption('require');
-$requirements = array();
-if ($require || $io->askConfirmation($question, true)) {
-$requirements = $this->determineRequirements($input, $output, $require, $phpVersion, $preferredStability);
-}
-$input->setOption('require', $requirements);
-
-$question = 'Would you like to define your dev dependencies (require-dev) interactively [<comment>yes</comment>]? ';
-$requireDev = $input->getOption('require-dev');
-$devRequirements = array();
-if ($requireDev || $io->askConfirmation($question, true)) {
-$devRequirements = $this->determineRequirements($input, $output, $requireDev, $phpVersion, $preferredStability);
-}
-$input->setOption('require-dev', $devRequirements);
-}
-
-
-
-
-
-
-public function parseAuthorString($author)
-{
-if (preg_match('/^(?P<name>[- .,\p{L}\p{N}\p{Mn}\'â"()]+) <(?P<email>.+?)>$/u', $author, $match)) {
-if ($this->isValidEmail($match['email'])) {
-return array(
-'name' => trim($match['name']),
-'email' => $match['email'],
-);
-}
-}
-
-throw new \InvalidArgumentException(
-'Invalid author string.  Must be in the format: '.
-'John Smith <john@example.com>'
-);
-}
-
-protected function findPackages($name)
-{
-return $this->getRepos()->search($name);
-}
-
-protected function getRepos()
-{
-if (!$this->repos) {
-$this->repos = new CompositeRepository(array_merge(
-array(new PlatformRepository),
-RepositoryFactory::defaultRepos($this->getIO())
-));
-}
-
-return $this->repos;
-}
-
-protected function determineRequirements(InputInterface $input, OutputInterface $output, $requires = array(), $phpVersion = null, $preferredStability = 'stable', $checkProvidedVersions = true)
-{
-if ($requires) {
-$requires = $this->normalizeRequirements($requires);
-$result = array();
-$io = $this->getIO();
-
-foreach ($requires as $requirement) {
-if (!isset($requirement['version'])) {
-
- list($name, $version) = $this->findBestVersionAndNameForPackage($input, $requirement['name'], $phpVersion, $preferredStability);
-$requirement['version'] = $version;
-
-
- $requirement['name'] = $name;
-
-$io->writeError(sprintf(
-'Using version <info>%s</info> for <info>%s</info>',
-$requirement['version'],
-$requirement['name']
-));
-} else {
-
- list($name, $version) = $this->findBestVersionAndNameForPackage($input, $requirement['name'], $phpVersion, $preferredStability, $checkProvidedVersions ? $requirement['version'] : null, 'dev');
-
-
- $requirement['name'] = $name;
-}
-
-$result[] = $requirement['name'] . ' ' . $requirement['version'];
-}
-
-return $result;
-}
-
-$versionParser = new VersionParser();
-$io = $this->getIO();
-while (null !== $package = $io->ask('Search for a package: ')) {
-$matches = $this->findPackages($package);
-
-if (count($matches)) {
-$exactMatch = null;
-$choices = array();
-foreach ($matches as $position => $foundPackage) {
-$abandoned = '';
-if (isset($foundPackage['abandoned'])) {
-if (is_string($foundPackage['abandoned'])) {
-$replacement = sprintf('Use %s instead', $foundPackage['abandoned']);
-} else {
-$replacement = 'No replacement was suggested';
-}
-$abandoned = sprintf('<warning>Abandoned. %s.</warning>', $replacement);
-}
-
-$choices[] = sprintf(' <info>%5s</info> %s %s', "[$position]", $foundPackage['name'], $abandoned);
-if ($foundPackage['name'] === $package) {
-$exactMatch = true;
-break;
-}
-}
-
-
- if (!$exactMatch) {
-$io->writeError(array(
-'',
-sprintf('Found <info>%s</info> packages matching <info>%s</info>', count($matches), $package),
-'',
-));
-
-$io->writeError($choices);
-$io->writeError('');
-
-$validator = function ($selection) use ($matches, $versionParser) {
-if ('' === $selection) {
-return false;
-}
-
-if (is_numeric($selection) && isset($matches[(int) $selection])) {
-$package = $matches[(int) $selection];
-
-return $package['name'];
-}
-
-if (preg_match('{^\s*(?P<name>[\S/]+)(?:\s+(?P<version>\S+))?\s*$}', $selection, $packageMatches)) {
-if (isset($packageMatches['version'])) {
-
-
-
- $versionParser->parseConstraints($packageMatches['version']);
-
-return $packageMatches['name'].' '.$packageMatches['version'];
-}
-
-
- return $packageMatches['name'];
-}
-
-throw new \Exception('Not a valid selection');
-};
-
-$package = $io->askAndValidate(
-'Enter package # to add, or the complete package name if it is not listed: ',
-$validator,
-3,
-false
-);
-}
-
-
- if (false !== $package && false === strpos($package, ' ')) {
-$validator = function ($input) {
-$input = trim($input);
-
-return $input ?: false;
-};
-
-$constraint = $io->askAndValidate(
-'Enter the version constraint to require (or leave blank to use the latest version): ',
-$validator,
-3,
-false
-);
-
-if (false === $constraint) {
-list($name, $constraint) = $this->findBestVersionAndNameForPackage($input, $package, $phpVersion, $preferredStability);
-
-$io->writeError(sprintf(
-'Using version <info>%s</info> for <info>%s</info>',
-$constraint,
-$package
-));
-}
-
-$package .= ' '.$constraint;
-}
-
-if (false !== $package) {
-$requires[] = $package;
-}
-}
-}
-
-return $requires;
-}
-
-protected function formatAuthors($author)
-{
-return array($this->parseAuthorString($author));
-}
-
-protected function formatRequirements(array $requirements)
-{
-$requires = array();
-$requirements = $this->normalizeRequirements($requirements);
-foreach ($requirements as $requirement) {
-$requires[$requirement['name']] = $requirement['version'];
-}
-
-return $requires;
-}
-
-protected function getGitConfig()
-{
-if (null !== $this->gitConfig) {
-return $this->gitConfig;
-}
-
-$finder = new ExecutableFinder();
-$gitBin = $finder->find('git');
-
-$cmd = new Process(sprintf('%s config -l', ProcessExecutor::escape($gitBin)));
-$cmd->run();
-
-if ($cmd->isSuccessful()) {
-$this->gitConfig = array();
-preg_match_all('{^([^=]+)=(.*)$}m', $cmd->getOutput(), $matches, PREG_SET_ORDER);
-foreach ($matches as $match) {
-$this->gitConfig[$match[1]] = $match[2];
-}
-
-return $this->gitConfig;
-}
-
-return $this->gitConfig = array();
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-protected function hasVendorIgnore($ignoreFile, $vendor = 'vendor')
-{
-if (!file_exists($ignoreFile)) {
-return false;
-}
-
-$pattern = sprintf('{^/?%s(/\*?)?$}', preg_quote($vendor));
-
-$lines = file($ignoreFile, FILE_IGNORE_NEW_LINES);
-foreach ($lines as $line) {
-if (preg_match($pattern, $line)) {
-return true;
-}
-}
-
-return false;
-}
-
-protected function normalizeRequirements(array $requirements)
-{
-$parser = new VersionParser();
-
-return $parser->parseNameVersionPairs($requirements);
-}
-
-protected function addVendorIgnore($ignoreFile, $vendor = '/vendor/')
-{
-$contents = "";
-if (file_exists($ignoreFile)) {
-$contents = file_get_contents($ignoreFile);
-
-if ("\n" !== substr($contents, 0, -1)) {
-$contents .= "\n";
-}
-}
-
-file_put_contents($ignoreFile, $contents . $vendor. "\n");
-}
-
-protected function isValidEmail($email)
-{
-
- if (!function_exists('filter_var')) {
-return true;
-}
-
-
- if (PHP_VERSION_ID < 50303) {
-return true;
-}
-
-return false !== filter_var($email, FILTER_VALIDATE_EMAIL);
-}
-
-private function getPool(InputInterface $input, $minimumStability = null)
-{
-$key = $minimumStability ?: 'default';
-
-if (!isset($this->pools[$key])) {
-$this->pools[$key] = $pool = new Pool($minimumStability ?: $this->getMinimumStability($input));
-$pool->addRepository($this->getRepos());
-}
-
-return $this->pools[$key];
-}
-
-private function getMinimumStability(InputInterface $input)
-{
-if ($input->hasOption('stability')) {
-return $input->getOption('stability') ?: 'stable';
-}
-
-$file = Factory::getComposerFile();
-if (is_file($file) && is_readable($file) && is_array($composer = json_decode(file_get_contents($file), true))) {
-if (!empty($composer['minimum-stability'])) {
-return $composer['minimum-stability'];
-}
-}
-
-return 'stable';
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-private function findBestVersionAndNameForPackage(InputInterface $input, $name, $phpVersion, $preferredStability = 'stable', $requiredVersion = null, $minimumStability = null)
-{
-
- $versionSelector = new VersionSelector($this->getPool($input, $minimumStability));
-$package = $versionSelector->findBestCandidate($name, $requiredVersion, $phpVersion, $preferredStability);
-
-
- if ($input->hasOption('ignore-platform-reqs') && $input->getOption('ignore-platform-reqs')) {
-$phpVersion = null;
-$package = $versionSelector->findBestCandidate($name, $requiredVersion, $phpVersion, $preferredStability);
-}
-
-if (!$package) {
-
- if ($phpVersion && $versionSelector->findBestCandidate($name, $requiredVersion, null, $preferredStability)) {
-throw new \InvalidArgumentException(sprintf(
-'Package %s at version %s has a PHP requirement incompatible with your PHP version (%s)',
-$name,
-$requiredVersion,
-$phpVersion
-));
-}
-
- if ($requiredVersion && $versionSelector->findBestCandidate($name, null, $phpVersion, $preferredStability)) {
-throw new \InvalidArgumentException(sprintf(
-'Could not find package %s in a version matching %s',
-$name,
-$requiredVersion
-));
-}
-
- if ($phpVersion && $versionSelector->findBestCandidate($name)) {
-throw new \InvalidArgumentException(sprintf(
-'Could not find package %s in any version matching your PHP version (%s)',
-$name,
-$phpVersion
-));
-}
-
-
- $similar = $this->findSimilar($name);
-if ($similar) {
-
- if ($requiredVersion === null && in_array($name, $similar, true)) {
-throw new \InvalidArgumentException(sprintf(
-'Could not find a version of package %s matching your minimum-stability (%s). Require it with an explicit version constraint allowing its desired stability.',
-$name,
-$this->getMinimumStability($input)
-));
-}
-
-throw new \InvalidArgumentException(sprintf(
-"Could not find package %s.\n\nDid you mean " . (count($similar) > 1 ? 'one of these' : 'this') . "?\n    %s",
-$name,
-implode("\n    ", $similar)
-));
-}
-
-throw new \InvalidArgumentException(sprintf(
-'Could not find a matching version of package %s. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (%s).',
-$name,
-$this->getMinimumStability($input)
-));
-}
-
-return array(
-$package->getPrettyName(),
-$versionSelector->findRecommendedRequireVersion($package),
-);
-}
-
-private function findSimilar($package)
-{
-try {
-$results = $this->repos->search($package);
-} catch (\Exception $e) {
-
- return array();
-}
-$similarPackages = array();
-
-foreach ($results as $result) {
-$similarPackages[$result['name']] = levenshtein($package, $result['name']);
-}
-asort($similarPackages);
-
-return array_keys(array_slice($similarPackages, 0, 5));
-}
-
-private function installDependencies($output)
-{
-try {
-$installCommand = $this->getApplication()->find('install');
-$installCommand->run(new ArrayInput(array()), $output);
-} catch (\Exception $e) {
-$this->getIO()->writeError('Could not install dependencies. Run `composer install` to see more information.');
-}
-
-}
-
-private function hasDependencies($options)
-{
-$requires = (array) $options['require'];
-$devRequires = isset($options['require-dev']) ? (array) $options['require-dev'] : array();
-
-return !empty($requires) || !empty($devRequires);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Composer\Installer;
-use Composer\Plugin\CommandEvent;
-use Composer\Plugin\PluginEvents;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-
-
-
-class InstallCommand extends BaseCommand
-{
-protected function configure()
-{
-$this
-->setName('install')
-->setAliases(array('i'))
-->setDescription('Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json.')
-->setDefinition(array(
-new InputOption('prefer-source', null, InputOption::VALUE_NONE, 'Forces installation from package sources when possible, including VCS information.'),
-new InputOption('prefer-dist', null, InputOption::VALUE_NONE, 'Forces installation from package dist even for dev versions.'),
-new InputOption('dry-run', null, InputOption::VALUE_NONE, 'Outputs the operations but will not execute anything (implicitly enables --verbose).'),
-new InputOption('dev', null, InputOption::VALUE_NONE, 'Enables installation of require-dev packages (enabled by default, only present for BC).'),
-new InputOption('no-dev', null, InputOption::VALUE_NONE, 'Disables installation of require-dev packages.'),
-new InputOption('no-custom-installers', null, InputOption::VALUE_NONE, 'DEPRECATED: Use no-plugins instead.'),
-new InputOption('no-autoloader', null, InputOption::VALUE_NONE, 'Skips autoloader generation'),
-new InputOption('no-scripts', null, InputOption::VALUE_NONE, 'Skips the execution of all scripts defined in composer.json file.'),
-new InputOption('no-progress', null, InputOption::VALUE_NONE, 'Do not output download progress.'),
-new InputOption('no-suggest', null, InputOption::VALUE_NONE, 'Do not show package suggestions.'),
-new InputOption('verbose', 'v|vv|vvv', InputOption::VALUE_NONE, 'Shows more details including new commits pulled in when updating packages.'),
-new InputOption('optimize-autoloader', 'o', InputOption::VALUE_NONE, 'Optimize autoloader during autoloader dump'),
-new InputOption('classmap-authoritative', 'a', InputOption::VALUE_NONE, 'Autoload classes from the classmap only. Implicitly enables `--optimize-autoloader`.'),
-new InputOption('apcu-autoloader', null, InputOption::VALUE_NONE, 'Use APCu to cache found/not-found classes.'),
-new InputOption('ignore-platform-reqs', null, InputOption::VALUE_NONE, 'Ignore platform requirements (php & ext- packages).'),
-new InputArgument('packages', InputArgument::IS_ARRAY | InputArgument::OPTIONAL, 'Should not be provided, use composer require instead to add a given package to composer.json.'),
-))
-->setHelp(
-<<<EOT
-The <info>install</info> command reads the composer.lock file from
-the current directory, processes it, and downloads and installs all the
-libraries and dependencies outlined in that file. If the file does not
-exist it will look for composer.json and do the same.
-
-<info>php composer.phar install</info>
-
-EOT
-)
-;
-}
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-$io = $this->getIO();
-if ($args = $input->getArgument('packages')) {
-$io->writeError('<error>Invalid argument '.implode(' ', $args).'. Use "composer require '.implode(' ', $args).'" instead to add packages to your composer.json.</error>');
-
-return 1;
-}
-
-if ($input->getOption('no-custom-installers')) {
-$io->writeError('<warning>You are using the deprecated option "no-custom-installers". Use "no-plugins" instead.</warning>');
-$input->setOption('no-plugins', true);
-}
-
-if ($input->getOption('dev')) {
-$io->writeError('<warning>You are using the deprecated option "dev". Dev packages are installed by default now.</warning>');
-}
-
-$composer = $this->getComposer(true, $input->getOption('no-plugins'));
-$composer->getDownloadManager()->setOutputProgress(!$input->getOption('no-progress'));
-
-$commandEvent = new CommandEvent(PluginEvents::COMMAND, 'install', $input, $output);
-$composer->getEventDispatcher()->dispatch($commandEvent->getName(), $commandEvent);
-
-$install = Installer::create($io, $composer);
-
-$config = $composer->getConfig();
-list($preferSource, $preferDist) = $this->getPreferredInstallOptions($config, $input);
-
-$optimize = $input->getOption('optimize-autoloader') || $config->get('optimize-autoloader');
-$authoritative = $input->getOption('classmap-authoritative') || $config->get('classmap-authoritative');
-$apcu = $input->getOption('apcu-autoloader') || $config->get('apcu-autoloader');
-
-$install
-->setDryRun($input->getOption('dry-run'))
-->setVerbose($input->getOption('verbose'))
-->setPreferSource($preferSource)
-->setPreferDist($preferDist)
-->setDevMode(!$input->getOption('no-dev'))
-->setDumpAutoloader(!$input->getOption('no-autoloader'))
-->setRunScripts(!$input->getOption('no-scripts'))
-->setSkipSuggest($input->getOption('no-suggest'))
-->setOptimizeAutoloader($optimize)
-->setClassMapAuthoritative($authoritative)
-->setApcuAutoloader($apcu)
-->setIgnorePlatformRequirements($input->getOption('ignore-platform-reqs'))
-;
-
-if ($input->getOption('no-plugins')) {
-$install->disablePlugins();
-}
-
-return $install->run();
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Composer\Json\JsonFile;
-use Composer\Plugin\CommandEvent;
-use Composer\Plugin\PluginEvents;
-use Composer\Package\PackageInterface;
-use Composer\Repository\RepositoryInterface;
-use Symfony\Component\Console\Helper\Table;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-class LicensesCommand extends BaseCommand
-{
-protected function configure()
-{
-$this
-->setName('licenses')
-->setDescription('Shows information about licenses of dependencies.')
-->setDefinition(array(
-new InputOption('format', 'f', InputOption::VALUE_REQUIRED, 'Format of the output: text or json', 'text'),
-new InputOption('no-dev', null, InputOption::VALUE_NONE, 'Disables search in require-dev packages.'),
-))
-->setHelp(
-<<<EOT
-The license command displays detailed information about the licenses of
-the installed dependencies.
-
-EOT
-)
-;
-}
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-$composer = $this->getComposer();
-
-$commandEvent = new CommandEvent(PluginEvents::COMMAND, 'licenses', $input, $output);
-$composer->getEventDispatcher()->dispatch($commandEvent->getName(), $commandEvent);
-
-$root = $composer->getPackage();
-$repo = $composer->getRepositoryManager()->getLocalRepository();
-
-if ($input->getOption('no-dev')) {
-$packages = $this->filterRequiredPackages($repo, $root);
-} else {
-$packages = $this->appendPackages($repo->getPackages(), array());
-}
-
-ksort($packages);
-$io = $this->getIO();
-
-switch ($format = $input->getOption('format')) {
-case 'text':
-$io->write('Name: <comment>'.$root->getPrettyName().'</comment>');
-$io->write('Version: <comment>'.$root->getFullPrettyVersion().'</comment>');
-$io->write('Licenses: <comment>'.(implode(', ', $root->getLicense()) ?: 'none').'</comment>');
-$io->write('Dependencies:');
-$io->write('');
-
-$table = new Table($output);
-$table->setStyle('compact');
-$tableStyle = $table->getStyle();
-$tableStyle->setVerticalBorderChar('');
-$tableStyle->setCellRowContentFormat('%s  ');
-$table->setHeaders(array('Name', 'Version', 'License'));
-foreach ($packages as $package) {
-$table->addRow(array(
-$package->getPrettyName(),
-$package->getFullPrettyVersion(),
-implode(', ', $package->getLicense()) ?: 'none',
-));
-}
-$table->render();
-break;
-
-case 'json':
-$dependencies = array();
-foreach ($packages as $package) {
-$dependencies[$package->getPrettyName()] = array(
-'version' => $package->getFullPrettyVersion(),
-'license' => $package->getLicense(),
-);
-}
-
-$io->write(JsonFile::encode(array(
-'name' => $root->getPrettyName(),
-'version' => $root->getFullPrettyVersion(),
-'license' => $root->getLicense(),
-'dependencies' => $dependencies,
-)));
-break;
-
-default:
-throw new \RuntimeException(sprintf('Unsupported format "%s".  See help for supported formats.', $format));
-}
-}
-
-
-
-
-
-
-
-
-
-private function filterRequiredPackages(RepositoryInterface $repo, PackageInterface $package, $bucket = array())
-{
-$requires = array_keys($package->getRequires());
-
-$packageListNames = array_keys($bucket);
-$packages = array_filter(
-$repo->getPackages(),
-function ($package) use ($requires, $packageListNames) {
-return in_array($package->getName(), $requires) && !in_array($package->getName(), $packageListNames);
-}
-);
-
-$bucket = $this->appendPackages($packages, $bucket);
-
-foreach ($packages as $package) {
-$bucket = $this->filterRequiredPackages($repo, $package, $bucket);
-}
-
-return $bucket;
-}
-
-
-
-
-
-
-
-
-public function appendPackages(array $packages, array $bucket)
-{
-foreach ($packages as $package) {
-$bucket[$package->getName()] = $package;
-}
-
-return $bucket;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\ArrayInput;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-class OutdatedCommand extends ShowCommand
-{
-protected function configure()
-{
-$this
-->setName('outdated')
-->setDescription('Shows a list of installed packages that have updates available, including their latest version.')
-->setDefinition(array(
-new InputArgument('package', InputArgument::OPTIONAL, 'Package to inspect. Or a name including a wildcard (*) to filter lists of packages instead.'),
-new InputOption('outdated', 'o', InputOption::VALUE_NONE, 'Show only packages that are outdated (this is the default, but present here for compat with `show`'),
-new InputOption('all', 'a', InputOption::VALUE_NONE, 'Show all installed packages with their latest versions'),
-new InputOption('direct', 'D', InputOption::VALUE_NONE, 'Shows only packages that are directly required by the root package'),
-new InputOption('strict', null, InputOption::VALUE_NONE, 'Return a non-zero exit code when there are outdated packages'),
-new InputOption('minor-only', 'm', InputOption::VALUE_NONE, 'Show only packages that have minor SemVer-compatible updates. Use with the --outdated option.'),
-new InputOption('format', 'f', InputOption::VALUE_REQUIRED, 'Format of the output: text or json', 'text'),
-new InputOption('ignore', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Ignore specified package(s). Use it with the --outdated option if you don\'t want to be informed about new versions of some packages.'),
-))
-->setHelp(
-<<<EOT
-The outdated command is just a proxy for `composer show -l`
-
-The color coding (or signage if you have ANSI colors disabled) for dependency versions is as such:
-
-- <info>green</info> (=): Dependency is in the latest version and is up to date.
-- <comment>yellow</comment> (~): Dependency has a new version available that includes backwards
-  compatibility breaks according to semver, so upgrade when you can but it
-  may involve work.
-- <highlight>red</highlight> (!): Dependency has a new version that is semver-compatible and you should upgrade it.
-
-
-EOT
-)
-;
-}
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-$args = array(
-'show',
-'--latest' => true,
-);
-if (!$input->getOption('all')) {
-$args['--outdated'] = true;
-}
-if ($input->getOption('direct')) {
-$args['--direct'] = true;
-}
-if ($input->getArgument('package')) {
-$args['package'] = $input->getArgument('package');
-}
-if ($input->getOption('strict')) {
-$args['--strict'] = true;
-}
-if ($input->getOption('minor-only')) {
-$args['--minor-only'] = true;
-}
-$args['--format'] = $input->getOption('format');
-$args['--ignore'] = $input->getOption('ignore');
-
-$input = new ArrayInput($args);
-
-return $this->getApplication()->run($input, $output);
-}
-
-
-
-
-public function isProxyCommand()
-{
-return true;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-class ProhibitsCommand extends BaseDependencyCommand
-{
-
-
-
-protected function configure()
-{
-parent::configure();
-
-$this
-->setName('prohibits')
-->setAliases(array('why-not'))
-->setDescription('Shows which packages prevent the given package from being installed.')
-->setHelp(
-<<<EOT
-Displays detailed information about why a package cannot be installed.
-
-<info>php composer.phar prohibits composer/composer</info>
-
-EOT
-)
-;
-}
-
-
-
-
-
-
-
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-return parent::doExecute($input, $output, true);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Composer\Config\JsonConfigSource;
-use Composer\Installer;
-use Composer\Plugin\CommandEvent;
-use Composer\Plugin\PluginEvents;
-use Composer\Json\JsonFile;
-use Composer\Factory;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Output\OutputInterface;
-use Composer\Package\BasePackage;
-
-
-
-
-
-class RemoveCommand extends BaseCommand
-{
-protected function configure()
-{
-$this
-->setName('remove')
-->setDescription('Removes a package from the require or require-dev.')
-->setDefinition(array(
-new InputArgument('packages', InputArgument::IS_ARRAY | InputArgument::REQUIRED, 'Packages that should be removed.'),
-new InputOption('dev', null, InputOption::VALUE_NONE, 'Removes a package from the require-dev section.'),
-new InputOption('no-progress', null, InputOption::VALUE_NONE, 'Do not output download progress.'),
-new InputOption('no-update', null, InputOption::VALUE_NONE, 'Disables the automatic update of the dependencies.'),
-new InputOption('no-scripts', null, InputOption::VALUE_NONE, 'Skips the execution of all scripts defined in composer.json file.'),
-new InputOption('update-no-dev', null, InputOption::VALUE_NONE, 'Run the dependency update with the --no-dev option.'),
-new InputOption('update-with-dependencies', null, InputOption::VALUE_NONE, 'Allows inherited dependencies to be updated with explicit dependencies. (Deprecrated, is now default behavior)'),
-new InputOption('no-update-with-dependencies', null, InputOption::VALUE_NONE, 'Does not allow inherited dependencies to be updated with explicit dependencies.'),
-new InputOption('ignore-platform-reqs', null, InputOption::VALUE_NONE, 'Ignore platform requirements (php & ext- packages).'),
-new InputOption('optimize-autoloader', 'o', InputOption::VALUE_NONE, 'Optimize autoloader during autoloader dump'),
-new InputOption('classmap-authoritative', 'a', InputOption::VALUE_NONE, 'Autoload classes from the classmap only. Implicitly enables `--optimize-autoloader`.'),
-new InputOption('apcu-autoloader', null, InputOption::VALUE_NONE, 'Use APCu to cache found/not-found classes.'),
-))
-->setHelp(
-<<<EOT
-The <info>remove</info> command removes a package from the current
-list of installed packages
-
-<info>php composer.phar remove</info>
-
-EOT
-)
-;
-}
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-$packages = $input->getArgument('packages');
-$packages = array_map('strtolower', $packages);
-
-$file = Factory::getComposerFile();
-
-$jsonFile = new JsonFile($file);
-$composer = $jsonFile->read();
-$composerBackup = file_get_contents($jsonFile->getPath());
-
-$json = new JsonConfigSource($jsonFile);
-
-$type = $input->getOption('dev') ? 'require-dev' : 'require';
-$altType = !$input->getOption('dev') ? 'require-dev' : 'require';
-$io = $this->getIO();
-
-if ($input->getOption('update-with-dependencies')) {
-$io->writeError('<warning>You are using the deprecated option "update-with-dependencies". This is now default behaviour. The --no-update-with-dependencies option can be used to remove a package without its dependencies.</warning>');
-}
-
-
- foreach (array('require', 'require-dev') as $linkType) {
-if (isset($composer[$linkType])) {
-foreach ($composer[$linkType] as $name => $version) {
-$composer[$linkType][strtolower($name)] = $name;
-}
-}
-}
-
-foreach ($packages as $package) {
-if (isset($composer[$type][$package])) {
-$json->removeLink($type, $composer[$type][$package]);
-} elseif (isset($composer[$altType][$package])) {
-$io->writeError('<warning>' . $composer[$altType][$package] . ' could not be found in ' . $type . ' but it is present in ' . $altType . '</warning>');
-if ($io->isInteractive()) {
-if ($io->askConfirmation('Do you want to remove it from ' . $altType . ' [<comment>yes</comment>]? ', true)) {
-$json->removeLink($altType, $composer[$altType][$package]);
-}
-}
-} elseif (isset($composer[$type]) && $matches = preg_grep(BasePackage::packageNameToRegexp($package), array_keys($composer[$type]))) {
-foreach ($matches as $matchedPackage) {
-$json->removeLink($type, $matchedPackage);
-}
-} elseif (isset($composer[$altType]) && $matches = preg_grep(BasePackage::packageNameToRegexp($package), array_keys($composer[$altType]))) {
-foreach ($matches as $matchedPackage) {
-$io->writeError('<warning>' . $matchedPackage . ' could not be found in ' . $type . ' but it is present in ' . $altType . '</warning>');
-if ($io->isInteractive()) {
-if ($io->askConfirmation('Do you want to remove it from ' . $altType . ' [<comment>yes</comment>]? ', true)) {
-$json->removeLink($altType, $matchedPackage);
-}
-}
-}
-} else {
-$io->writeError('<warning>'.$package.' is not required in your composer.json and has not been removed</warning>');
-}
-}
-
-if ($input->getOption('no-update')) {
-return 0;
-}
-
-
- $this->resetComposer();
-$composer = $this->getComposer(true, $input->getOption('no-plugins'));
-$composer->getDownloadManager()->setOutputProgress(!$input->getOption('no-progress'));
-
-$commandEvent = new CommandEvent(PluginEvents::COMMAND, 'remove', $input, $output);
-$composer->getEventDispatcher()->dispatch($commandEvent->getName(), $commandEvent);
-
-$install = Installer::create($io, $composer);
-
-$updateDevMode = !$input->getOption('update-no-dev');
-$optimize = $input->getOption('optimize-autoloader') || $composer->getConfig()->get('optimize-autoloader');
-$authoritative = $input->getOption('classmap-authoritative') || $composer->getConfig()->get('classmap-authoritative');
-$apcu = $input->getOption('apcu-autoloader') || $composer->getConfig()->get('apcu-autoloader');
-
-$install
-->setVerbose($input->getOption('verbose'))
-->setDevMode($updateDevMode)
-->setOptimizeAutoloader($optimize)
-->setClassMapAuthoritative($authoritative)
-->setApcuAutoloader($apcu)
-->setUpdate(true)
-->setUpdateWhitelist($packages)
-->setWhitelistTransitiveDependencies(!$input->getOption('no-update-with-dependencies'))
-->setIgnorePlatformRequirements($input->getOption('ignore-platform-reqs'))
-->setRunScripts(!$input->getOption('no-scripts'))
-;
-
-$status = $install->run();
-if ($status !== 0) {
-$io->writeError("\n".'<error>Removal failed, reverting '.$file.' to its original content.</error>');
-file_put_contents($jsonFile->getPath(), $composerBackup);
-}
-
-return $status;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-use Composer\Factory;
-use Composer\Installer;
-use Composer\Json\JsonFile;
-use Composer\Json\JsonManipulator;
-use Composer\Package\Version\VersionParser;
-use Composer\Plugin\CommandEvent;
-use Composer\Plugin\PluginEvents;
-use Composer\Repository\CompositeRepository;
-use Composer\Repository\PlatformRepository;
-
-
-
-
-
-class RequireCommand extends InitCommand
-{
-private $newlyCreated;
-private $json;
-private $file;
-private $composerBackup;
-
-protected function configure()
-{
-$this
-->setName('require')
-->setDescription('Adds required packages to your composer.json and installs them.')
-->setDefinition(array(
-new InputArgument('packages', InputArgument::IS_ARRAY | InputArgument::OPTIONAL, 'Optional package name can also include a version constraint, e.g. foo/bar or foo/bar:1.0.0 or foo/bar=1.0.0 or "foo/bar 1.0.0"'),
-new InputOption('dev', null, InputOption::VALUE_NONE, 'Add requirement to require-dev.'),
-new InputOption('prefer-source', null, InputOption::VALUE_NONE, 'Forces installation from package sources when possible, including VCS information.'),
-new InputOption('prefer-dist', null, InputOption::VALUE_NONE, 'Forces installation from package dist even for dev versions.'),
-new InputOption('no-progress', null, InputOption::VALUE_NONE, 'Do not output download progress.'),
-new InputOption('no-suggest', null, InputOption::VALUE_NONE, 'Do not show package suggestions.'),
-new InputOption('no-update', null, InputOption::VALUE_NONE, 'Disables the automatic update of the dependencies.'),
-new InputOption('no-scripts', null, InputOption::VALUE_NONE, 'Skips the execution of all scripts defined in composer.json file.'),
-new InputOption('update-no-dev', null, InputOption::VALUE_NONE, 'Run the dependency update with the --no-dev option.'),
-new InputOption('update-with-dependencies', null, InputOption::VALUE_NONE, 'Allows inherited dependencies to be updated, except those that are root requirements.'),
-new InputOption('update-with-all-dependencies', null, InputOption::VALUE_NONE, 'Allows all inherited dependencies to be updated, including those that are root requirements.'),
-new InputOption('ignore-platform-reqs', null, InputOption::VALUE_NONE, 'Ignore platform requirements (php & ext- packages).'),
-new InputOption('prefer-stable', null, InputOption::VALUE_NONE, 'Prefer stable versions of dependencies.'),
-new InputOption('prefer-lowest', null, InputOption::VALUE_NONE, 'Prefer lowest versions of dependencies.'),
-new InputOption('sort-packages', null, InputOption::VALUE_NONE, 'Sorts packages when adding/updating a new dependency'),
-new InputOption('optimize-autoloader', 'o', InputOption::VALUE_NONE, 'Optimize autoloader during autoloader dump'),
-new InputOption('classmap-authoritative', 'a', InputOption::VALUE_NONE, 'Autoload classes from the classmap only. Implicitly enables `--optimize-autoloader`.'),
-new InputOption('apcu-autoloader', null, InputOption::VALUE_NONE, 'Use APCu to cache found/not-found classes.'),
-))
-->setHelp(
-<<<EOT
-The require command adds required packages to your composer.json and installs them.
-
-If you do not specify a package, composer will prompt you to search for a package, and given results, provide a list of
-matches to require.
-
-If you do not specify a version constraint, composer will choose a suitable one based on the available package versions.
-
-If you do not want to install the new dependencies immediately you can call it with --no-update
-
-EOT
-)
-;
-}
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-if (function_exists('pcntl_async_signals')) {
-pcntl_async_signals(true);
-pcntl_signal(SIGINT, array($this, 'revertComposerFile'));
-pcntl_signal(SIGTERM, array($this, 'revertComposerFile'));
-pcntl_signal(SIGHUP, array($this, 'revertComposerFile'));
-}
-
-$this->file = Factory::getComposerFile();
-$io = $this->getIO();
-
-$this->newlyCreated = !file_exists($this->file);
-if ($this->newlyCreated && !file_put_contents($this->file, "{\n}\n")) {
-$io->writeError('<error>'.$this->file.' could not be created.</error>');
-
-return 1;
-}
-if (!is_readable($this->file)) {
-$io->writeError('<error>'.$this->file.' is not readable.</error>');
-
-return 1;
-}
-if (!is_writable($this->file)) {
-$io->writeError('<error>'.$this->file.' is not writable.</error>');
-
-return 1;
-}
-
-if (filesize($this->file) === 0) {
-file_put_contents($this->file, "{\n}\n");
-}
-
-$this->json = new JsonFile($this->file);
-$this->composerBackup = file_get_contents($this->json->getPath());
-
-$composer = $this->getComposer(true, $input->getOption('no-plugins'));
-$repos = $composer->getRepositoryManager()->getRepositories();
-
-$platformOverrides = $composer->getConfig()->get('platform') ?: array();
-
- $this->repos = new CompositeRepository(array_merge(
-array(new PlatformRepository(array(), $platformOverrides)),
-$repos
-));
-
-if ($composer->getPackage()->getPreferStable()) {
-$preferredStability = 'stable';
-} else {
-$preferredStability = $composer->getPackage()->getMinimumStability();
-}
-
-$phpVersion = $this->repos->findPackage('php', '*')->getPrettyVersion();
-$requirements = $this->determineRequirements($input, $output, $input->getArgument('packages'), $phpVersion, $preferredStability, !$input->getOption('no-update'));
-
-$requireKey = $input->getOption('dev') ? 'require-dev' : 'require';
-$removeKey = $input->getOption('dev') ? 'require' : 'require-dev';
-$requirements = $this->formatRequirements($requirements);
-
-
- $versionParser = new VersionParser();
-foreach ($requirements as $constraint) {
-$versionParser->parseConstraints($constraint);
-}
-
-$sortPackages = $input->getOption('sort-packages') || $composer->getConfig()->get('sort-packages');
-
-if (!$this->updateFileCleanly($this->json, $requirements, $requireKey, $removeKey, $sortPackages)) {
-$composerDefinition = $this->json->read();
-foreach ($requirements as $package => $version) {
-$composerDefinition[$requireKey][$package] = $version;
-unset($composerDefinition[$removeKey][$package]);
-}
-$this->json->write($composerDefinition);
-}
-
-$io->writeError('<info>'.$this->file.' has been '.($this->newlyCreated ? 'created' : 'updated').'</info>');
-
-if ($input->getOption('no-update')) {
-return 0;
-}
-$updateDevMode = !$input->getOption('update-no-dev');
-$optimize = $input->getOption('optimize-autoloader') || $composer->getConfig()->get('optimize-autoloader');
-$authoritative = $input->getOption('classmap-authoritative') || $composer->getConfig()->get('classmap-authoritative');
-$apcu = $input->getOption('apcu-autoloader') || $composer->getConfig()->get('apcu-autoloader');
-
-
- $this->resetComposer();
-$composer = $this->getComposer(true, $input->getOption('no-plugins'));
-$composer->getDownloadManager()->setOutputProgress(!$input->getOption('no-progress'));
-
-$commandEvent = new CommandEvent(PluginEvents::COMMAND, 'require', $input, $output);
-$composer->getEventDispatcher()->dispatch($commandEvent->getName(), $commandEvent);
-
-$install = Installer::create($io, $composer);
-
-$install
-->setVerbose($input->getOption('verbose'))
-->setPreferSource($input->getOption('prefer-source'))
-->setPreferDist($input->getOption('prefer-dist'))
-->setDevMode($updateDevMode)
-->setRunScripts(!$input->getOption('no-scripts'))
-->setSkipSuggest($input->getOption('no-suggest'))
-->setOptimizeAutoloader($optimize)
-->setClassMapAuthoritative($authoritative)
-->setApcuAutoloader($apcu)
-->setUpdate(true)
-->setUpdateWhitelist(array_keys($requirements))
-->setWhitelistTransitiveDependencies($input->getOption('update-with-dependencies'))
-->setWhitelistAllDependencies($input->getOption('update-with-all-dependencies'))
-->setIgnorePlatformRequirements($input->getOption('ignore-platform-reqs'))
-->setPreferStable($input->getOption('prefer-stable'))
-->setPreferLowest($input->getOption('prefer-lowest'))
-;
-
-$status = $install->run();
-if ($status !== 0) {
-$this->revertComposerFile();
-}
-
-return $status;
-}
-
-private function updateFileCleanly($json, array $new, $requireKey, $removeKey, $sortPackages)
-{
-$contents = file_get_contents($json->getPath());
-
-$manipulator = new JsonManipulator($contents);
-
-foreach ($new as $package => $constraint) {
-if (!$manipulator->addLink($requireKey, $package, $constraint, $sortPackages)) {
-return false;
-}
-if (!$manipulator->removeSubNode($removeKey, $package)) {
-return false;
-}
-}
-
-file_put_contents($json->getPath(), $manipulator->getContents());
-
-return true;
-}
-
-protected function interact(InputInterface $input, OutputInterface $output)
-{
-return;
-}
-
-public function revertComposerFile()
-{
-$io = $this->getIO();
-
-if ($this->newlyCreated) {
-$io->writeError("\n".'<error>Installation failed, deleting '.$this->file.'.</error>');
-unlink($this->json->getPath());
-} else {
-$io->writeError("\n".'<error>Installation failed, reverting '.$this->file.' to its original content.</error>');
-file_put_contents($this->json->getPath(), $this->composerBackup);
-}
-
-exit(1);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Composer\Script\Event as ScriptEvent;
-use Composer\Script\ScriptEvents;
-use Composer\Util\ProcessExecutor;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Helper\Table;
-
-
-
-
-class RunScriptCommand extends BaseCommand
-{
-
-
-
-protected $scriptEvents = array(
-ScriptEvents::PRE_INSTALL_CMD,
-ScriptEvents::POST_INSTALL_CMD,
-ScriptEvents::PRE_UPDATE_CMD,
-ScriptEvents::POST_UPDATE_CMD,
-ScriptEvents::PRE_STATUS_CMD,
-ScriptEvents::POST_STATUS_CMD,
-ScriptEvents::POST_ROOT_PACKAGE_INSTALL,
-ScriptEvents::POST_CREATE_PROJECT_CMD,
-ScriptEvents::PRE_ARCHIVE_CMD,
-ScriptEvents::POST_ARCHIVE_CMD,
-ScriptEvents::PRE_AUTOLOAD_DUMP,
-ScriptEvents::POST_AUTOLOAD_DUMP,
-);
-
-protected function configure()
-{
-$this
-->setName('run-script')
-->setDescription('Runs the scripts defined in composer.json.')
-->setDefinition(array(
-new InputArgument('script', InputArgument::OPTIONAL, 'Script name to run.'),
-new InputArgument('args', InputArgument::IS_ARRAY | InputArgument::OPTIONAL, ''),
-new InputOption('timeout', null, InputOption::VALUE_REQUIRED, 'Sets script timeout in seconds, or 0 for never.'),
-new InputOption('dev', null, InputOption::VALUE_NONE, 'Sets the dev mode.'),
-new InputOption('no-dev', null, InputOption::VALUE_NONE, 'Disables the dev mode.'),
-new InputOption('list', 'l', InputOption::VALUE_NONE, 'List scripts.'),
-))
-->setHelp(
-<<<EOT
-The <info>run-script</info> command runs scripts defined in composer.json:
-
-<info>php composer.phar run-script post-update-cmd</info>
-EOT
-)
-;
-}
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-if ($input->getOption('list')) {
-return $this->listScripts($output);
-} elseif (!$input->getArgument('script')) {
-throw new \RuntimeException('Missing required argument "script"');
-}
-
-$script = $input->getArgument('script');
-if (!in_array($script, $this->scriptEvents)) {
-if (defined('Composer\Script\ScriptEvents::'.str_replace('-', '_', strtoupper($script)))) {
-throw new \InvalidArgumentException(sprintf('Script "%s" cannot be run with this command', $script));
-}
-}
-
-$composer = $this->getComposer();
-$devMode = $input->getOption('dev') || !$input->getOption('no-dev');
-$event = new ScriptEvent($script, $composer, $this->getIO(), $devMode);
-$hasListeners = $composer->getEventDispatcher()->hasEventListeners($event);
-if (!$hasListeners) {
-throw new \InvalidArgumentException(sprintf('Script "%s" is not defined in this package', $script));
-}
-
-$args = $input->getArgument('args');
-
-if (null !== $timeout = $input->getOption('timeout')) {
-if (!ctype_digit($timeout)) {
-throw new \RuntimeException('Timeout value must be numeric and positive if defined, or 0 for forever');
-}
-
- ProcessExecutor::setTimeout((int) $timeout);
-}
-
-return $composer->getEventDispatcher()->dispatchScript($script, $devMode, $args);
-}
-
-protected function listScripts(OutputInterface $output)
-{
-$scripts = $this->getComposer()->getPackage()->getScripts();
-
-if (!count($scripts)) {
-return 0;
-}
-
-$io = $this->getIO();
-$io->writeError('<info>scripts:</info>');
-$table = array();
-foreach ($scripts as $name => $script) {
-$description = '';
-try {
-$cmd = $this->getApplication()->find($name);
-if ($cmd instanceof ScriptAliasCommand) {
-$description = $cmd->getDescription();
-}
-} catch (\Symfony\Component\Console\Exception\CommandNotFoundException $e) {
-
- }
-$table[] = array('  '.$name, $description);
-}
-
-$renderer = new Table($output);
-$renderer->setStyle('compact');
-$rendererStyle = $renderer->getStyle();
-$rendererStyle->setVerticalBorderChar('');
-$rendererStyle->setCellRowContentFormat('%s  ');
-$renderer->setRows($table)->render();
-
-return 0;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-class ScriptAliasCommand extends BaseCommand
-{
-private $script;
-private $description;
-
-public function __construct($script, $description)
-{
-$this->script = $script;
-$this->description = empty($description) ? 'Runs the '.$script.' script as defined in composer.json.' : $description;
-
-parent::__construct();
-}
-
-protected function configure()
-{
-$this
-->setName($this->script)
-->setDescription($this->description)
-->setDefinition(array(
-new InputOption('dev', null, InputOption::VALUE_NONE, 'Sets the dev mode.'),
-new InputOption('no-dev', null, InputOption::VALUE_NONE, 'Disables the dev mode.'),
-new InputArgument('args', InputArgument::IS_ARRAY | InputArgument::OPTIONAL, ''),
-))
-->setHelp(
-<<<EOT
-The <info>run-script</info> command runs scripts defined in composer.json:
-
-<info>php composer.phar run-script post-update-cmd</info>
-EOT
-)
-;
-}
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-$composer = $this->getComposer();
-
-$args = $input->getArguments();
-
-return $composer->getEventDispatcher()->dispatchScript($this->script, $input->getOption('dev') || !$input->getOption('no-dev'), $args['args']);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Composer\Factory;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-use Composer\Repository\CompositeRepository;
-use Composer\Repository\PlatformRepository;
-use Composer\Repository\RepositoryInterface;
-use Composer\Plugin\CommandEvent;
-use Composer\Plugin\PluginEvents;
-
-
-
-
-class SearchCommand extends BaseCommand
-{
-protected $matches;
-protected $lowMatches = array();
-protected $tokens;
-protected $output;
-protected $onlyName;
-
-protected function configure()
-{
-$this
-->setName('search')
-->setDescription('Searches for packages.')
-->setDefinition(array(
-new InputOption('only-name', 'N', InputOption::VALUE_NONE, 'Search only in name'),
-new InputOption('type', 't', InputOption::VALUE_REQUIRED, 'Search for a specific package type'),
-new InputArgument('tokens', InputArgument::IS_ARRAY | InputArgument::REQUIRED, 'tokens to search for'),
-))
-->setHelp(
-<<<EOT
-The search command searches for packages by its name
-<info>php composer.phar search symfony composer</info>
-
-EOT
-)
-;
-}
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-
- $platformRepo = new PlatformRepository;
-$io = $this->getIO();
-if (!($composer = $this->getComposer(false))) {
-$composer = Factory::create($this->getIO(), array(), $input->hasParameterOption('--no-plugins'));
-}
-$localRepo = $composer->getRepositoryManager()->getLocalRepository();
-$installedRepo = new CompositeRepository(array($localRepo, $platformRepo));
-$repos = new CompositeRepository(array_merge(array($installedRepo), $composer->getRepositoryManager()->getRepositories()));
-
-$commandEvent = new CommandEvent(PluginEvents::COMMAND, 'search', $input, $output);
-$composer->getEventDispatcher()->dispatch($commandEvent->getName(), $commandEvent);
-
-$onlyName = $input->getOption('only-name');
-$type = $input->getOption('type') ?: null;
-
-$flags = $onlyName ? RepositoryInterface::SEARCH_NAME : RepositoryInterface::SEARCH_FULLTEXT;
-$results = $repos->search(implode(' ', $input->getArgument('tokens')), $flags, $type);
-
-foreach ($results as $result) {
-$io->write($result['name'] . (isset($result['description']) ? ' '. $result['description'] : ''));
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Composer\Composer;
-use Composer\Factory;
-use Composer\Config;
-use Composer\Util\Filesystem;
-use Composer\SelfUpdate\Keys;
-use Composer\SelfUpdate\Versions;
-use Composer\IO\IOInterface;
-use Composer\Downloader\FilesystemException;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Finder\Finder;
-
-
-
-
-
-
-class SelfUpdateCommand extends BaseCommand
-{
-const HOMEPAGE = 'getcomposer.org';
-const OLD_INSTALL_EXT = '-old.phar';
-
-protected function configure()
-{
-$this
-->setName('self-update')
-->setAliases(array('selfupdate'))
-->setDescription('Updates composer.phar to the latest version.')
-->setDefinition(array(
-new InputOption('rollback', 'r', InputOption::VALUE_NONE, 'Revert to an older installation of composer'),
-new InputOption('clean-backups', null, InputOption::VALUE_NONE, 'Delete old backups during an update. This makes the current version of composer the only backup available after the update'),
-new InputArgument('version', InputArgument::OPTIONAL, 'The version to update to'),
-new InputOption('no-progress', null, InputOption::VALUE_NONE, 'Do not output download progress.'),
-new InputOption('update-keys', null, InputOption::VALUE_NONE, 'Prompt user for a key update'),
-new InputOption('stable', null, InputOption::VALUE_NONE, 'Force an update to the stable channel'),
-new InputOption('preview', null, InputOption::VALUE_NONE, 'Force an update to the preview channel'),
-new InputOption('snapshot', null, InputOption::VALUE_NONE, 'Force an update to the snapshot channel'),
-new InputOption('set-channel-only', null, InputOption::VALUE_NONE, 'Only store the channel as the default one and then exit'),
-))
-->setHelp(
-<<<EOT
-The <info>self-update</info> command checks getcomposer.org for newer
-versions of composer and if found, installs the latest.
-
-<info>php composer.phar self-update</info>
-
-EOT
-)
-;
-}
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-$config = Factory::createConfig();
-
-if ($config->get('disable-tls') === true) {
-$baseUrl = 'http://' . self::HOMEPAGE;
-} else {
-$baseUrl = 'https://' . self::HOMEPAGE;
-}
-
-$io = $this->getIO();
-$remoteFilesystem = Factory::createRemoteFilesystem($io, $config);
-
-$versionsUtil = new Versions($config, $remoteFilesystem);
-
-
- foreach (array('stable', 'preview', 'snapshot') as $channel) {
-if ($input->getOption($channel)) {
-$versionsUtil->setChannel($channel);
-}
-}
-
-if ($input->getOption('set-channel-only')) {
-return 0;
-}
-
-$cacheDir = $config->get('cache-dir');
-$rollbackDir = $config->get('data-dir');
-$home = $config->get('home');
-$localFilename = realpath($_SERVER['argv'][0]) ?: $_SERVER['argv'][0];
-
-if ($input->getOption('update-keys')) {
-return $this->fetchKeys($io, $config);
-}
-
-
- $tmpDir = is_writable(dirname($localFilename)) ? dirname($localFilename) : $cacheDir;
-
-
- if (!is_writable($tmpDir)) {
-throw new FilesystemException('Composer update failed: the "'.$tmpDir.'" directory used to download the temp file could not be written');
-}
-
-
- if (function_exists('posix_getpwuid') && function_exists('posix_geteuid')) {
-$composeUser = posix_getpwuid(posix_geteuid());
-$homeOwner = posix_getpwuid(fileowner($home));
-if (isset($composeUser['name']) && isset($homeOwner['name']) && $composeUser['name'] !== $homeOwner['name']) {
-$io->writeError('<warning>You are running composer as "'.$composeUser['name'].'", while "'.$home.'" is owned by "'.$homeOwner['name'].'"</warning>');
-}
-}
-
-if ($input->getOption('rollback')) {
-return $this->rollback($output, $rollbackDir, $localFilename);
-}
-
-$latest = $versionsUtil->getLatest();
-$latestVersion = $latest['version'];
-$updateVersion = $input->getArgument('version') ?: $latestVersion;
-
-if (preg_match('{^[0-9a-f]{40}$}', $updateVersion) && $updateVersion !== $latestVersion) {
-$io->writeError('<error>You can not update to a specific SHA-1 as those phars are not available for download</error>');
-
-return 1;
-}
-
-if (Composer::VERSION === $updateVersion) {
-$io->writeError(sprintf('<info>You are already using composer version %s (%s channel).</info>', $updateVersion, $versionsUtil->getChannel()));
-
-
- if ($input->getOption('clean-backups')) {
-$this->cleanBackups($rollbackDir, $this->getLastBackupVersion($rollbackDir));
-}
-
-return 0;
-}
-
-$tempFilename = $tmpDir . '/' . basename($localFilename, '.phar').'-temp.phar';
-$backupFile = sprintf(
-'%s/%s-%s%s',
-$rollbackDir,
-strtr(Composer::RELEASE_DATE, ' :', '_-'),
-preg_replace('{^([0-9a-f]{7})[0-9a-f]{33}$}', '$1', Composer::VERSION),
-self::OLD_INSTALL_EXT
-);
-
-$updatingToTag = !preg_match('{^[0-9a-f]{40}$}', $updateVersion);
-
-$io->write(sprintf("Updating to version <info>%s</info> (%s channel).", $updateVersion, $versionsUtil->getChannel()));
-$remoteFilename = $baseUrl . ($updatingToTag ? "/download/{$updateVersion}/composer.phar" : '/composer.phar');
-$signature = $remoteFilesystem->getContents(self::HOMEPAGE, $remoteFilename.'.sig', false);
-$io->writeError('   ', false);
-$remoteFilesystem->copy(self::HOMEPAGE, $remoteFilename, $tempFilename, !$input->getOption('no-progress'));
-$io->writeError('');
-
-if (!file_exists($tempFilename) || !$signature) {
-$io->writeError('<error>The download of the new composer version failed for an unexpected reason</error>');
-
-return 1;
-}
-
-
- if (!extension_loaded('openssl') && $config->get('disable-tls')) {
-$io->writeError('<warning>Skipping phar signature verification as you have disabled OpenSSL via config.disable-tls</warning>');
-} else {
-if (!extension_loaded('openssl')) {
-throw new \RuntimeException('The openssl extension is required for phar signatures to be verified but it is not available. '
-. 'If you can not enable the openssl extension, you can disable this error, at your own risk, by setting the \'disable-tls\' option to true.');
-}
-
-$sigFile = 'file://'.$home.'/' . ($updatingToTag ? 'keys.tags.pub' : 'keys.dev.pub');
-if (!file_exists($sigFile)) {
-file_put_contents(
-$home.'/keys.dev.pub',
-<<<DEVPUBKEY
------BEGIN PUBLIC KEY-----
-MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAnBDHjZS6e0ZMoK3xTD7f
-FNCzlXjX/Aie2dit8QXA03pSrOTbaMnxON3hUL47Lz3g1SC6YJEMVHr0zYq4elWi
-i3ecFEgzLcj+pZM5X6qWu2Ozz4vWx3JYo1/a/HYdOuW9e3lwS8VtS0AVJA+U8X0A
-hZnBmGpltHhO8hPKHgkJtkTUxCheTcbqn4wGHl8Z2SediDcPTLwqezWKUfrYzu1f
-o/j3WFwFs6GtK4wdYtiXr+yspBZHO3y1udf8eFFGcb2V3EaLOrtfur6XQVizjOuk
-8lw5zzse1Qp/klHqbDRsjSzJ6iL6F4aynBc6Euqt/8ccNAIz0rLjLhOraeyj4eNn
-8iokwMKiXpcrQLTKH+RH1JCuOVxQ436bJwbSsp1VwiqftPQieN+tzqy+EiHJJmGf
-TBAbWcncicCk9q2md+AmhNbvHO4PWbbz9TzC7HJb460jyWeuMEvw3gNIpEo2jYa9
-pMV6cVqnSa+wOc0D7pC9a6bne0bvLcm3S+w6I5iDB3lZsb3A9UtRiSP7aGSo7D72
-8tC8+cIgZcI7k9vjvOqH+d7sdOU2yPCnRY6wFh62/g8bDnUpr56nZN1G89GwM4d4
-r/TU7BQQIzsZgAiqOGXvVklIgAMiV0iucgf3rNBLjjeNEwNSTTG9F0CtQ+7JLwaE
-wSEuAuRm+pRqi8BRnQ/GKUcCAwEAAQ==
------END PUBLIC KEY-----
-DEVPUBKEY
-);
-
-file_put_contents(
-$home.'/keys.tags.pub',
-<<<TAGSPUBKEY
------BEGIN PUBLIC KEY-----
-MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA0Vi/2K6apCVj76nCnCl2
-MQUPdK+A9eqkYBacXo2wQBYmyVlXm2/n/ZsX6pCLYPQTHyr5jXbkQzBw8SKqPdlh
-vA7NpbMeNCz7wP/AobvUXM8xQuXKbMDTY2uZ4O7sM+PfGbptKPBGLe8Z8d2sUnTO
-bXtX6Lrj13wkRto7st/w/Yp33RHe9SlqkiiS4MsH1jBkcIkEHsRaveZzedUaxY0M
-mba0uPhGUInpPzEHwrYqBBEtWvP97t2vtfx8I5qv28kh0Y6t+jnjL1Urid2iuQZf
-noCMFIOu4vksK5HxJxxrN0GOmGmwVQjOOtxkwikNiotZGPR4KsVj8NnBrLX7oGuM
-nQvGciiu+KoC2r3HDBrpDeBVdOWxDzT5R4iI0KoLzFh2pKqwbY+obNPS2bj+2dgJ
-rV3V5Jjry42QOCBN3c88wU1PKftOLj2ECpewY6vnE478IipiEu7EAdK8Zwj2LmTr
-RKQUSa9k7ggBkYZWAeO/2Ag0ey3g2bg7eqk+sHEq5ynIXd5lhv6tC5PBdHlWipDK
-tl2IxiEnejnOmAzGVivE1YGduYBjN+mjxDVy8KGBrjnz1JPgAvgdwJ2dYw4Rsc/e
-TzCFWGk/HM6a4f0IzBWbJ5ot0PIi4amk07IotBXDWwqDiQTwyuGCym5EqWQ2BD95
-RGv89BPD+2DLnJysngsvVaUCAwEAAQ==
------END PUBLIC KEY-----
-TAGSPUBKEY
-);
-}
-
-$pubkeyid = openssl_pkey_get_public($sigFile);
-$algo = defined('OPENSSL_ALGO_SHA384') ? OPENSSL_ALGO_SHA384 : 'SHA384';
-if (!in_array('sha384', array_map('strtolower', openssl_get_md_methods()))) {
-throw new \RuntimeException('SHA384 is not supported by your openssl extension, could not verify the phar file integrity');
-}
-$signature = json_decode($signature, true);
-$signature = base64_decode($signature['sha384']);
-$verified = 1 === openssl_verify(file_get_contents($tempFilename), $signature, $pubkeyid, $algo);
-openssl_free_key($pubkeyid);
-if (!$verified) {
-throw new \RuntimeException('The phar signature did not match the file you downloaded, this means your public keys are outdated or that the phar file is corrupt/has been modified');
-}
-}
-
-
- if ($input->getOption('clean-backups')) {
-$this->cleanBackups($rollbackDir);
-}
-
-if ($err = $this->setLocalPhar($localFilename, $tempFilename, $backupFile)) {
-@unlink($tempFilename);
-$io->writeError('<error>The file is corrupted ('.$err->getMessage().').</error>');
-$io->writeError('<error>Please re-run the self-update command to try again.</error>');
-
-return 1;
-}
-
-if (file_exists($backupFile)) {
-$io->writeError(sprintf(
-'Use <info>composer self-update --rollback</info> to return to version <comment>%s</comment>',
-Composer::VERSION
-));
-} else {
-$io->writeError('<warning>A backup of the current version could not be written to '.$backupFile.', no rollback possible</warning>');
-}
-}
-
-protected function fetchKeys(IOInterface $io, Config $config)
-{
-if (!$io->isInteractive()) {
-throw new \RuntimeException('Public keys can not be fetched in non-interactive mode, please run Composer interactively');
-}
-
-$io->write('Open <info>https://composer.github.io/pubkeys.html</info> to find the latest keys');
-
-$validator = function ($value) {
-if (!preg_match('{^-----BEGIN PUBLIC KEY-----$}', trim($value))) {
-throw new \UnexpectedValueException('Invalid input');
-}
-
-return trim($value)."\n";
-};
-
-$devKey = '';
-while (!preg_match('{(-----BEGIN PUBLIC KEY-----.+?-----END PUBLIC KEY-----)}s', $devKey, $match)) {
-$devKey = $io->askAndValidate('Enter Dev / Snapshot Public Key (including lines with -----): ', $validator);
-while ($line = $io->ask('')) {
-$devKey .= trim($line)."\n";
-if (trim($line) === '-----END PUBLIC KEY-----') {
-break;
-}
-}
-}
-file_put_contents($keyPath = $config->get('home').'/keys.dev.pub', $match[0]);
-$io->write('Stored key with fingerprint: ' . Keys::fingerprint($keyPath));
-
-$tagsKey = '';
-while (!preg_match('{(-----BEGIN PUBLIC KEY-----.+?-----END PUBLIC KEY-----)}s', $tagsKey, $match)) {
-$tagsKey = $io->askAndValidate('Enter Tags Public Key (including lines with -----): ', $validator);
-while ($line = $io->ask('')) {
-$tagsKey .= trim($line)."\n";
-if (trim($line) === '-----END PUBLIC KEY-----') {
-break;
-}
-}
-}
-file_put_contents($keyPath = $config->get('home').'/keys.tags.pub', $match[0]);
-$io->write('Stored key with fingerprint: ' . Keys::fingerprint($keyPath));
-
-$io->write('Public keys stored in '.$config->get('home'));
-}
-
-protected function rollback(OutputInterface $output, $rollbackDir, $localFilename)
-{
-$rollbackVersion = $this->getLastBackupVersion($rollbackDir);
-if (!$rollbackVersion) {
-throw new \UnexpectedValueException('Composer rollback failed: no installation to roll back to in "'.$rollbackDir.'"');
-}
-
-$oldFile = $rollbackDir . '/' . $rollbackVersion . self::OLD_INSTALL_EXT;
-
-if (!is_file($oldFile)) {
-throw new FilesystemException('Composer rollback failed: "'.$oldFile.'" could not be found');
-}
-if (!is_readable($oldFile)) {
-throw new FilesystemException('Composer rollback failed: "'.$oldFile.'" could not be read');
-}
-
-$io = $this->getIO();
-$io->writeError(sprintf("Rolling back to version <info>%s</info>.", $rollbackVersion));
-if ($err = $this->setLocalPhar($localFilename, $oldFile)) {
-$io->writeError('<error>The backup file was corrupted ('.$err->getMessage().').</error>');
-
-return 1;
-}
-
-return 0;
-}
-
-
-
-
-
-
-
-
-protected function setLocalPhar($localFilename, $newFilename, $backupTarget = null)
-{
-try {
-@chmod($newFilename, fileperms($localFilename));
-if (!ini_get('phar.readonly')) {
-
- $phar = new \Phar($newFilename);
-
- unset($phar);
-}
-
-
- if ($backupTarget && file_exists($localFilename)) {
-@copy($localFilename, $backupTarget);
-}
-
-rename($newFilename, $localFilename);
-
-return null;
-} catch (\Exception $e) {
-if (!$e instanceof \UnexpectedValueException && !$e instanceof \PharException) {
-throw $e;
-}
-
-return $e;
-}
-}
-
-protected function cleanBackups($rollbackDir, $except = null)
-{
-$finder = $this->getOldInstallationFinder($rollbackDir);
-$io = $this->getIO();
-$fs = new Filesystem;
-
-foreach ($finder as $file) {
-if ($except && $file->getBasename(self::OLD_INSTALL_EXT) === $except) {
-continue;
-}
-$file = (string) $file;
-$io->writeError('<info>Removing: '.$file.'</info>');
-$fs->remove($file);
-}
-}
-
-protected function getLastBackupVersion($rollbackDir)
-{
-$finder = $this->getOldInstallationFinder($rollbackDir);
-$finder->sortByName();
-$files = iterator_to_array($finder);
-
-if (count($files)) {
-return basename(end($files), self::OLD_INSTALL_EXT);
-}
-
-return false;
-}
-
-protected function getOldInstallationFinder($rollbackDir)
-{
-$finder = Finder::create()
-->depth(0)
-->files()
-->name('*' . self::OLD_INSTALL_EXT)
-->in($rollbackDir);
-
-return $finder;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Composer\Composer;
-use Composer\DependencyResolver\DefaultPolicy;
-use Composer\DependencyResolver\Pool;
-use Composer\Json\JsonFile;
-use Composer\Package\BasePackage;
-use Composer\Package\CompletePackageInterface;
-use Composer\Package\PackageInterface;
-use Composer\Package\Version\VersionParser;
-use Composer\Package\Version\VersionSelector;
-use Composer\Plugin\CommandEvent;
-use Composer\Plugin\PluginEvents;
-use Composer\Repository\ArrayRepository;
-use Composer\Repository\ComposerRepository;
-use Composer\Repository\CompositeRepository;
-use Composer\Repository\PlatformRepository;
-use Composer\Repository\RepositoryFactory;
-use Composer\Repository\RepositoryInterface;
-use Composer\Semver\Constraint\ConstraintInterface;
-use Composer\Semver\Semver;
-use Composer\Spdx\SpdxLicenses;
-use Composer\Util\Platform;
-use Symfony\Component\Console\Formatter\OutputFormatterStyle;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Terminal;
-
-
-
-
-
-
-
-class ShowCommand extends BaseCommand
-{
-
-protected $versionParser;
-protected $colors;
-
-
-private $pool;
-
-protected function configure()
-{
-$this
-->setName('show')
-->setAliases(array('info'))
-->setDescription('Shows information about packages.')
-->setDefinition(array(
-new InputArgument('package', InputArgument::OPTIONAL, 'Package to inspect. Or a name including a wildcard (*) to filter lists of packages instead.'),
-new InputArgument('version', InputArgument::OPTIONAL, 'Version or version constraint to inspect'),
-new InputOption('all', null, InputOption::VALUE_NONE, 'List all packages'),
-new InputOption('installed', 'i', InputOption::VALUE_NONE, 'List installed packages only (enabled by default, only present for BC).'),
-new InputOption('platform', 'p', InputOption::VALUE_NONE, 'List platform packages only'),
-new InputOption('available', 'a', InputOption::VALUE_NONE, 'List available packages only'),
-new InputOption('self', 's', InputOption::VALUE_NONE, 'Show the root package information'),
-new InputOption('name-only', 'N', InputOption::VALUE_NONE, 'List package names only'),
-new InputOption('path', 'P', InputOption::VALUE_NONE, 'Show package paths'),
-new InputOption('tree', 't', InputOption::VALUE_NONE, 'List the dependencies as a tree'),
-new InputOption('latest', 'l', InputOption::VALUE_NONE, 'Show the latest version'),
-new InputOption('outdated', 'o', InputOption::VALUE_NONE, 'Show the latest version but only for packages that are outdated'),
-new InputOption('ignore', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Ignore specified package(s). Use it with the --outdated option if you don\'t want to be informed about new versions of some packages.'),
-new InputOption('minor-only', 'm', InputOption::VALUE_NONE, 'Show only packages that have minor SemVer-compatible updates. Use with the --outdated option.'),
-new InputOption('direct', 'D', InputOption::VALUE_NONE, 'Shows only packages that are directly required by the root package'),
-new InputOption('strict', null, InputOption::VALUE_NONE, 'Return a non-zero exit code when there are outdated packages'),
-new InputOption('format', 'f', InputOption::VALUE_REQUIRED, 'Format of the output: text or json', 'text'),
-))
-->setHelp(
-<<<EOT
-The show command displays detailed information about a package, or
-lists all packages available.
-
-EOT
-)
-;
-}
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-$this->versionParser = new VersionParser;
-if ($input->getOption('tree')) {
-$this->initStyles($output);
-}
-
-$composer = $this->getComposer(false);
-$io = $this->getIO();
-
-if ($input->getOption('installed')) {
-$io->writeError('<warning>You are using the deprecated option "installed". Only installed packages are shown by default now. The --all option can be used to show all packages.</warning>');
-}
-
-if ($input->getOption('outdated')) {
-$input->setOption('latest', true);
-} elseif ($input->getOption('ignore')) {
-$io->writeError('<warning>You are using the option "ignore" for action other than "outdated", it will be ignored.</warning>');
-}
-
-if ($input->getOption('direct') && ($input->getOption('all') || $input->getOption('available') || $input->getOption('platform'))) {
-$io->writeError('The --direct (-D) option is not usable in combination with --all, --platform (-p) or --available (-a)');
-
-return 1;
-}
-
-if ($input->getOption('tree') && ($input->getOption('all') || $input->getOption('available'))) {
-$io->writeError('The --tree (-t) option is not usable in combination with --all or --available (-a)');
-
-return 1;
-}
-
-if ($input->getOption('tree') && $input->getOption('latest')) {
-$io->writeError('The --tree (-t) option is not usable in combination with --latest (-l)');
-
-return 1;
-}
-
-$format = $input->getOption('format');
-if (!in_array($format, array('text', 'json'))) {
-$io->writeError(sprintf('Unsupported format "%s". See help for supported formats.', $format));
-
-return 1;
-}
-
-
- $platformOverrides = array();
-if ($composer) {
-$platformOverrides = $composer->getConfig()->get('platform') ?: array();
-}
-$platformRepo = new PlatformRepository(array(), $platformOverrides);
-$phpVersion = $platformRepo->findPackage('php', '*')->getVersion();
-
-if ($input->getOption('self')) {
-$package = $this->getComposer()->getPackage();
-$repos = $installedRepo = new ArrayRepository(array($package));
-} elseif ($input->getOption('platform')) {
-$repos = $installedRepo = $platformRepo;
-} elseif ($input->getOption('available')) {
-$installedRepo = $platformRepo;
-if ($composer) {
-$repos = new CompositeRepository($composer->getRepositoryManager()->getRepositories());
-} else {
-$defaultRepos = RepositoryFactory::defaultRepos($io);
-$repos = new CompositeRepository($defaultRepos);
-$io->writeError('No composer.json found in the current directory, showing available packages from ' . implode(', ', array_keys($defaultRepos)));
-}
-} elseif ($input->getOption('all') && $composer) {
-$localRepo = $composer->getRepositoryManager()->getLocalRepository();
-$installedRepo = new CompositeRepository(array($localRepo, $platformRepo));
-$repos = new CompositeRepository(array_merge(array($installedRepo), $composer->getRepositoryManager()->getRepositories()));
-} elseif ($input->getOption('all')) {
-$defaultRepos = RepositoryFactory::defaultRepos($io);
-$io->writeError('No composer.json found in the current directory, showing available packages from ' . implode(', ', array_keys($defaultRepos)));
-$installedRepo = $platformRepo;
-$repos = new CompositeRepository(array_merge(array($installedRepo), $defaultRepos));
-} else {
-$repos = $installedRepo = $this->getComposer()->getRepositoryManager()->getLocalRepository();
-$rootPkg = $this->getComposer()->getPackage();
-if (!$installedRepo->getPackages() && ($rootPkg->getRequires() || $rootPkg->getDevRequires())) {
-$io->writeError('<warning>No dependencies installed. Try running composer install or update.</warning>');
-}
-}
-
-if ($composer) {
-$commandEvent = new CommandEvent(PluginEvents::COMMAND, 'show', $input, $output);
-$composer->getEventDispatcher()->dispatch($commandEvent->getName(), $commandEvent);
-}
-
-if ($input->getOption('latest') && null === $composer) {
-$io->writeError('No composer.json found in the current directory, disabling "latest" option');
-$input->setOption('latest', false);
-}
-
-$packageFilter = $input->getArgument('package');
-
-
- if (($packageFilter && false === strpos($packageFilter, '*')) || !empty($package)) {
-if (empty($package)) {
-list($package, $versions) = $this->getPackage($installedRepo, $repos, $input->getArgument('package'), $input->getArgument('version'));
-
-if (empty($package)) {
-$options = $input->getOptions();
-if (!isset($options['working-dir']) || !file_exists('composer.json')) {
-throw new \InvalidArgumentException('Package ' . $packageFilter . ' not found');
-}
-
-$io->writeError('Package ' . $packageFilter . ' not found in ' . $options['working-dir'] . '/composer.json');
-
-return 1;
-}
-} else {
-$versions = array($package->getPrettyVersion() => $package->getVersion());
-}
-
-$exitCode = 0;
-if ($input->getOption('tree')) {
-$arrayTree = $this->generatePackageTree($package, $installedRepo, $repos);
-
-if ('json' === $format) {
-$io->write(JsonFile::encode(array('installed' => array($arrayTree))));
-} else {
-$this->displayPackageTree(array($arrayTree));
-}
-} else {
-$latestPackage = null;
-if ($input->getOption('latest')) {
-$latestPackage = $this->findLatestPackage($package, $composer, $phpVersion);
-}
-if ($input->getOption('outdated') && $input->getOption('strict') && $latestPackage && $latestPackage->getFullPrettyVersion() !== $package->getFullPrettyVersion() && !$latestPackage->isAbandoned()) {
-$exitCode = 1;
-}
-if ($input->getOption('path')) {
-$io->write($package->getName(), false);
-$io->write(' ' . strtok(realpath($composer->getInstallationManager()->getInstallPath($package)), "\r\n"));
-
-return $exitCode;
-}
-$this->printMeta($package, $versions, $installedRepo, $latestPackage ?: null);
-$this->printLinks($package, 'requires');
-$this->printLinks($package, 'devRequires', 'requires (dev)');
-if ($package->getSuggests()) {
-$io->write("\n<info>suggests</info>");
-foreach ($package->getSuggests() as $suggested => $reason) {
-$io->write($suggested . ' <comment>' . $reason . '</comment>');
-}
-}
-$this->printLinks($package, 'provides');
-$this->printLinks($package, 'conflicts');
-$this->printLinks($package, 'replaces');
-}
-
-return $exitCode;
-}
-
-
- if ($input->getOption('tree')) {
-$rootRequires = $this->getRootRequires();
-$packages = $installedRepo->getPackages();
-usort($packages, 'strcmp');
-$arrayTree = array();
-foreach ($packages as $package) {
-if (in_array($package->getName(), $rootRequires, true)) {
-$arrayTree[] = $this->generatePackageTree($package, $installedRepo, $repos);
-}
-}
-
-if ('json' === $format) {
-$io->write(JsonFile::encode(array('installed' => $arrayTree)));
-} else {
-$this->displayPackageTree($arrayTree);
-}
-
-return 0;
-}
-
-if ($repos instanceof CompositeRepository) {
-$repos = $repos->getRepositories();
-} elseif (!is_array($repos)) {
-$repos = array($repos);
-}
-
-
- $packages = array();
-if (null !== $packageFilter) {
-$packageFilter = '{^'.str_replace('\\*', '.*?', preg_quote($packageFilter)).'$}i';
-}
-
-$packageListFilter = array();
-if ($input->getOption('direct')) {
-$packageListFilter = $this->getRootRequires();
-}
-
-if (class_exists('Symfony\Component\Console\Terminal')) {
-$terminal = new Terminal();
-$width = $terminal->getWidth();
-} else {
-
- list($width) = $this->getApplication()->getTerminalDimensions();
-}
-if (null === $width) {
-
- 
- $width = PHP_INT_MAX;
-}
-if (Platform::isWindows()) {
-$width--;
-} else {
-$width = max(80, $width);
-}
-
-if ($input->getOption('path') && null === $composer) {
-$io->writeError('No composer.json found in the current directory, disabling "path" option');
-$input->setOption('path', false);
-}
-
-foreach ($repos as $repo) {
-if ($repo === $platformRepo) {
-$type = 'platform';
-} elseif (
-$repo === $installedRepo
-|| ($installedRepo instanceof CompositeRepository && in_array($repo, $installedRepo->getRepositories(), true))
-) {
-$type = 'installed';
-} else {
-$type = 'available';
-}
-if ($repo instanceof ComposerRepository && $repo->hasProviders()) {
-foreach ($repo->getProviderNames() as $name) {
-if (!$packageFilter || preg_match($packageFilter, $name)) {
-$packages[$type][$name] = $name;
-}
-}
-} else {
-foreach ($repo->getPackages() as $package) {
-if (!isset($packages[$type][$package->getName()])
-|| !is_object($packages[$type][$package->getName()])
-|| version_compare($packages[$type][$package->getName()]->getVersion(), $package->getVersion(), '<')
-) {
-if (!$packageFilter || preg_match($packageFilter, $package->getName())) {
-if (!$packageListFilter || in_array($package->getName(), $packageListFilter, true)) {
-$packages[$type][$package->getName()] = $package;
-}
-}
-}
-}
-}
-}
-
-$showAllTypes = $input->getOption('all');
-$showLatest = $input->getOption('latest');
-$showMinorOnly = $input->getOption('minor-only');
-$ignoredPackages = array_map('strtolower', $input->getOption('ignore'));
-$indent = $showAllTypes ? '  ' : '';
-$latestPackages = array();
-$exitCode = 0;
-$viewData = array();
-$viewMetaData = array();
-foreach (array('platform' => true, 'available' => false, 'installed' => true) as $type => $showVersion) {
-if (isset($packages[$type])) {
-ksort($packages[$type]);
-
-$nameLength = $versionLength = $latestLength = 0;
-
-if ($showLatest && $showVersion) {
-foreach ($packages[$type] as $package) {
-if (is_object($package)) {
-$latestPackage = $this->findLatestPackage($package, $composer, $phpVersion, $showMinorOnly);
-if ($latestPackage === false) {
-continue;
-}
-
-$latestPackages[$package->getPrettyName()] = $latestPackage;
-}
-}
-}
-
-$writePath = !$input->getOption('name-only') && $input->getOption('path');
-$writeVersion = !$input->getOption('name-only') && !$input->getOption('path') && $showVersion;
-$writeLatest = $writeVersion && $showLatest;
-$writeDescription = !$input->getOption('name-only') && !$input->getOption('path');
-
-$hasOutdatedPackages = false;
-
-$viewData[$type] = array();
-foreach ($packages[$type] as $package) {
-$packageViewData = array();
-if (is_object($package)) {
-$latestPackage = null;
-if ($showLatest && isset($latestPackages[$package->getPrettyName()])) {
-$latestPackage = $latestPackages[$package->getPrettyName()];
-}
-
-
- $packageIsUpToDate = $latestPackage && $latestPackage->getFullPrettyVersion() === $package->getFullPrettyVersion() && !$latestPackage->isAbandoned();
-$packageIsIgnored = \in_array($package->getPrettyName(), $ignoredPackages, true);
-if ($input->getOption('outdated') && ($packageIsUpToDate || $packageIsIgnored)) {
-continue;
-} elseif ($input->getOption('outdated') || $input->getOption('strict')) {
-$hasOutdatedPackages = true;
-}
-
-$packageViewData['name'] = $package->getPrettyName();
-$nameLength = max($nameLength, strlen($package->getPrettyName()));
-if ($writeVersion) {
-$packageViewData['version'] = $package->getFullPrettyVersion();
-$versionLength = max($versionLength, strlen($package->getFullPrettyVersion()));
-}
-if ($writeLatest && $latestPackage) {
-$packageViewData['latest'] = $latestPackage->getFullPrettyVersion();
-$packageViewData['latest-status'] = $this->getUpdateStatus($latestPackage, $package);
-$latestLength = max($latestLength, strlen($latestPackage->getFullPrettyVersion()));
-}
-if ($writeDescription) {
-$packageViewData['description'] = $package->getDescription();
-}
-if ($writePath) {
-$packageViewData['path'] = strtok(realpath($composer->getInstallationManager()->getInstallPath($package)), "\r\n");
-}
-
-if ($latestPackage && $latestPackage->isAbandoned()) {
-$replacement = is_string($latestPackage->getReplacementPackage())
-? 'Use ' . $latestPackage->getReplacementPackage() . ' instead'
-: 'No replacement was suggested';
-$packageWarning = sprintf(
-'Package %s is abandoned, you should avoid using it. %s.',
-$package->getPrettyName(),
-$replacement
-);
-$packageViewData['warning'] = $packageWarning;
-}
-} else {
-$packageViewData['name'] = $package;
-$nameLength = max($nameLength, strlen($package));
-}
-$viewData[$type][] = $packageViewData;
-}
-$viewMetaData[$type] = array(
-'nameLength' => $nameLength,
-'versionLength' => $versionLength,
-'latestLength' => $latestLength,
-);
-if ($input->getOption('strict') && $hasOutdatedPackages) {
-$exitCode = 1;
-break;
-}
-}
-}
-
-if ('json' === $format) {
-$io->write(JsonFile::encode($viewData));
-} else {
-foreach ($viewData as $type => $packages) {
-$nameLength = $viewMetaData[$type]['nameLength'];
-$versionLength = $viewMetaData[$type]['versionLength'];
-$latestLength = $viewMetaData[$type]['latestLength'];
-
-$writeVersion = $nameLength + $versionLength + 3 <= $width;
-$writeLatest = $nameLength + $versionLength + $latestLength + 3 <= $width;
-$writeDescription = $nameLength + $versionLength + $latestLength + 24 <= $width;
-
-if ($writeLatest && !$io->isDecorated()) {
-$latestLength += 2;
-}
-
-if ($showAllTypes) {
-if ('available' === $type) {
-$io->write('<comment>' . $type . '</comment>:');
-} else {
-$io->write('<info>' . $type . '</info>:');
-}
-}
-
-foreach ($packages as $package) {
-$io->write($indent . str_pad($package['name'], $nameLength, ' '), false);
-if (isset($package['version']) && $writeVersion) {
-$io->write(' ' . str_pad($package['version'], $versionLength, ' '), false);
-}
-if (isset($package['latest']) && $writeLatest) {
-$latestVersion = $package['latest'];
-$updateStatus = $package['latest-status'];
-$style = $this->updateStatusToVersionStyle($updateStatus);
-if (!$io->isDecorated()) {
-$latestVersion = str_replace(array('up-to-date', 'semver-safe-update', 'update-possible'), array('=', '!', '~'), $updateStatus) . ' ' . $latestVersion;
-}
-$io->write(' <' . $style . '>' . str_pad($latestVersion, $latestLength, ' ') . '</' . $style . '>', false);
-}
-if (isset($package['description']) && $writeDescription) {
-$description = strtok($package['description'], "\r\n");
-$remaining = $width - $nameLength - $versionLength - 4;
-if ($writeLatest) {
-$remaining -= $latestLength;
-}
-if (strlen($description) > $remaining) {
-$description = substr($description, 0, $remaining - 3) . '...';
-}
-$io->write(' ' . $description, false);
-}
-if (isset($package['path'])) {
-$io->write(' ' . $package['path'], false);
-}
-$io->write('');
-if (isset($package['warning'])) {
-$io->writeError('<warning>' . $package['warning'] . '</warning>');
-}
-}
-
-if ($showAllTypes) {
-$io->write('');
-}
-}
-}
-
-return $exitCode;
-}
-
-protected function getRootRequires()
-{
-$rootPackage = $this->getComposer()->getPackage();
-
-return array_map(
-'strtolower',
-array_keys(array_merge($rootPackage->getRequires(), $rootPackage->getDevRequires()))
-);
-}
-
-protected function getVersionStyle(PackageInterface $latestPackage, PackageInterface $package)
-{
-return $this->updateStatusToVersionStyle($this->getUpdateStatus($latestPackage, $package));
-}
-
-
-
-
-
-
-
-
-
-
-
-protected function getPackage(RepositoryInterface $installedRepo, RepositoryInterface $repos, $name, $version = null)
-{
-$name = strtolower($name);
-$constraint = is_string($version) ? $this->versionParser->parseConstraints($version) : $version;
-
-$policy = new DefaultPolicy();
-$pool = new Pool('dev');
-$pool->addRepository($repos);
-
-$matchedPackage = null;
-$versions = array();
-$matches = $pool->whatProvides($name, $constraint);
-foreach ($matches as $index => $package) {
-
- if ($package->getName() !== $name) {
-unset($matches[$index]);
-continue;
-}
-
-
- if (null === $version && $installedRepo->hasPackage($package)) {
-$matchedPackage = $package;
-}
-
-$versions[$package->getPrettyVersion()] = $package->getVersion();
-$matches[$index] = $package->getId();
-}
-
-
- if (!$matchedPackage && $matches && $preferred = $policy->selectPreferredPackages($pool, array(), $matches)) {
-$matchedPackage = $pool->literalToPackage($preferred[0]);
-}
-
-return array($matchedPackage, $versions);
-}
-
-
-
-
-
-
-
-
-protected function printMeta(CompletePackageInterface $package, array $versions, RepositoryInterface $installedRepo, PackageInterface $latestPackage = null)
-{
-$io = $this->getIO();
-$io->write('<info>name</info>     : ' . $package->getPrettyName());
-$io->write('<info>descrip.</info> : ' . $package->getDescription());
-$io->write('<info>keywords</info> : ' . implode(', ', $package->getKeywords() ?: array()));
-$this->printVersions($package, $versions, $installedRepo);
-if ($latestPackage) {
-$style = $this->getVersionStyle($latestPackage, $package);
-$io->write('<info>latest</info>   : <'.$style.'>' . $latestPackage->getPrettyVersion() . '</'.$style.'>');
-} else {
-$latestPackage = $package;
-}
-$io->write('<info>type</info>     : ' . $package->getType());
-$this->printLicenses($package);
-$io->write('<info>source</info>   : ' . sprintf('[%s] <comment>%s</comment> %s', $package->getSourceType(), $package->getSourceUrl(), $package->getSourceReference()));
-$io->write('<info>dist</info>     : ' . sprintf('[%s] <comment>%s</comment> %s', $package->getDistType(), $package->getDistUrl(), $package->getDistReference()));
-if ($installedRepo->hasPackage($package)) {
-$io->write('<info>path</info>     : ' . sprintf('%s', realpath($this->getComposer()->getInstallationManager()->getInstallPath($package))));
-}
-$io->write('<info>names</info>    : ' . implode(', ', $package->getNames()));
-
-if ($latestPackage->isAbandoned()) {
-$replacement = ($latestPackage->getReplacementPackage() !== null)
-? ' The author suggests using the ' . $latestPackage->getReplacementPackage(). ' package instead.'
-: null;
-
-$io->writeError(
-sprintf('<warning>Attention: This package is abandoned and no longer maintained.%s</warning>', $replacement)
-);
-}
-
-if ($package->getSupport()) {
-$io->write("\n<info>support</info>");
-foreach ($package->getSupport() as $type => $value) {
-$io->write('<comment>' . $type . '</comment> : '.$value);
-}
-}
-
-if ($package->getAutoload()) {
-$io->write("\n<info>autoload</info>");
-foreach ($package->getAutoload() as $type => $autoloads) {
-$io->write('<comment>' . $type . '</comment>');
-
-if ($type === 'psr-0') {
-foreach ($autoloads as $name => $path) {
-$io->write(($name ?: '*') . ' => ' . (is_array($path) ? implode(', ', $path) : ($path ?: '.')));
-}
-} elseif ($type === 'psr-4') {
-foreach ($autoloads as $name => $path) {
-$io->write(($name ?: '*') . ' => ' . (is_array($path) ? implode(', ', $path) : ($path ?: '.')));
-}
-} elseif ($type === 'classmap') {
-$io->write(implode(', ', $autoloads));
-}
-}
-if ($package->getIncludePaths()) {
-$io->write('<comment>include-path</comment>');
-$io->write(implode(', ', $package->getIncludePaths()));
-}
-}
-}
-
-
-
-
-
-
-
-
-protected function printVersions(CompletePackageInterface $package, array $versions, RepositoryInterface $installedRepo)
-{
-uasort($versions, 'version_compare');
-$versions = array_keys(array_reverse($versions));
-
-
- if ($installedRepo->hasPackage($package)) {
-$installedVersion = $package->getPrettyVersion();
-$key = array_search($installedVersion, $versions);
-if (false !== $key) {
-$versions[$key] = '<info>* ' . $installedVersion . '</info>';
-}
-}
-
-$versions = implode(', ', $versions);
-
-$this->getIO()->write('<info>versions</info> : ' . $versions);
-}
-
-
-
-
-
-
-
-
-protected function printLinks(CompletePackageInterface $package, $linkType, $title = null)
-{
-$title = $title ?: $linkType;
-$io = $this->getIO();
-if ($links = $package->{'get'.ucfirst($linkType)}()) {
-$io->write("\n<info>" . $title . "</info>");
-
-foreach ($links as $link) {
-$io->write($link->getTarget() . ' <comment>' . $link->getPrettyConstraint() . '</comment>');
-}
-}
-}
-
-
-
-
-
-
-protected function printLicenses(CompletePackageInterface $package)
-{
-$spdxLicenses = new SpdxLicenses();
-
-$licenses = $package->getLicense();
-$io = $this->getIO();
-
-foreach ($licenses as $licenseId) {
-$license = $spdxLicenses->getLicenseByIdentifier($licenseId); 
-
-if (!$license) {
-$out = $licenseId;
-} else {
-
- if ($license[1] === true) {
-$out = sprintf('%s (%s) (OSI approved) %s', $license[0], $licenseId, $license[2]);
-} else {
-$out = sprintf('%s (%s) %s', $license[0], $licenseId, $license[2]);
-}
-}
-
-$io->write('<info>license</info>  : ' . $out);
-}
-}
-
-
-
-
-
-
-protected function initStyles(OutputInterface $output)
-{
-$this->colors = array(
-'green',
-'yellow',
-'cyan',
-'magenta',
-'blue',
-);
-
-foreach ($this->colors as $color) {
-$style = new OutputFormatterStyle($color);
-$output->getFormatter()->setStyle($color, $style);
-}
-}
-
-
-
-
-
-
-protected function displayPackageTree(array $arrayTree)
-{
-$io = $this->getIO();
-foreach ($arrayTree as $package) {
-$io->write(sprintf('<info>%s</info>', $package['name']), false);
-$io->write(' ' . $package['version'], false);
-$io->write(' ' . strtok($package['description'], "\r\n"));
-
-if (isset($package['requires'])) {
-$requires = $package['requires'];
-$treeBar = 'â';
-$j = 0;
-$total = count($requires);
-foreach ($requires as $require) {
-$requireName = $require['name'];
-$j++;
-if ($j === $total) {
-$treeBar = 'â';
-}
-$level = 1;
-$color = $this->colors[$level];
-$info = sprintf(
-'%sââ<%s>%s</%s> %s',
-$treeBar,
-$color,
-$requireName,
-$color,
-$require['version']
-);
-$this->writeTreeLine($info);
-
-$treeBar = str_replace('â', ' ', $treeBar);
-$packagesInTree = array($package['name'], $requireName);
-
-$this->displayTree($require, $packagesInTree, $treeBar, $level + 1);
-}
-}
-}
-}
-
-
-
-
-
-
-
-
-
-protected function generatePackageTree(
-PackageInterface $package,
-RepositoryInterface $installedRepo,
-RepositoryInterface $distantRepos
-) {
-$requires = $package->getRequires();
-ksort($requires);
-$children = array();
-foreach ($requires as $requireName => $require) {
-$packagesInTree = array($package->getName(), $requireName);
-
-$treeChildDesc = array(
-'name' => $requireName,
-'version' => $require->getPrettyConstraint(),
-);
-
-$deepChildren = $this->addTree($requireName, $require, $installedRepo, $distantRepos, $packagesInTree);
-
-if ($deepChildren) {
-$treeChildDesc['requires'] = $deepChildren;
-}
-
-$children[] = $treeChildDesc;
-}
-$tree = array(
-'name' => $package->getPrettyName(),
-'version' => $package->getPrettyVersion(),
-'description' => $package->getDescription(),
-);
-
-if ($children) {
-$tree['requires'] = $children;
-}
-
-return $tree;
-}
-
-
-
-
-
-
-
-
-
-protected function displayTree(
-$package,
-array $packagesInTree,
-$previousTreeBar = 'â',
-$level = 1
-) {
-$previousTreeBar = str_replace('â', 'â', $previousTreeBar);
-if (isset($package['requires'])) {
-$requires = $package['requires'];
-$treeBar = $previousTreeBar . '  â';
-$i = 0;
-$total = count($requires);
-foreach ($requires as $require) {
-$currentTree = $packagesInTree;
-$i++;
-if ($i === $total) {
-$treeBar = $previousTreeBar . '  â';
-}
-$colorIdent = $level % count($this->colors);
-$color = $this->colors[$colorIdent];
-
-$circularWarn = in_array(
-$require['name'],
-$currentTree,
-true
-) ? '(circular dependency aborted here)' : '';
-$info = rtrim(sprintf(
-'%sââ<%s>%s</%s> %s %s',
-$treeBar,
-$color,
-$require['name'],
-$color,
-$require['version'],
-$circularWarn
-));
-$this->writeTreeLine($info);
-
-$treeBar = str_replace('â', ' ', $treeBar);
-
-$currentTree[] = $require['name'];
-$this->displayTree($require, $currentTree, $treeBar, $level + 1);
-}
-}
-}
-
-
-
-
-
-
-
-
-
-
-
-protected function addTree(
-$name,
-$package,
-RepositoryInterface $installedRepo,
-RepositoryInterface $distantRepos,
-array $packagesInTree
-) {
-$children = array();
-list($package, $versions) = $this->getPackage(
-$installedRepo,
-$distantRepos,
-$name,
-$package->getPrettyConstraint() === 'self.version' ? $package->getConstraint() : $package->getPrettyConstraint()
-);
-if (is_object($package)) {
-$requires = $package->getRequires();
-ksort($requires);
-foreach ($requires as $requireName => $require) {
-$currentTree = $packagesInTree;
-
-$treeChildDesc = array(
-'name' => $requireName,
-'version' => $require->getPrettyConstraint(),
-);
-
-if (!in_array($requireName, $currentTree, true)) {
-$currentTree[] = $requireName;
-$deepChildren = $this->addTree($requireName, $require, $installedRepo, $distantRepos, $currentTree);
-if ($deepChildren) {
-$treeChildDesc['requires'] = $deepChildren;
-}
-}
-
-$children[] = $treeChildDesc;
-}
-}
-
-return $children;
-}
-
-private function updateStatusToVersionStyle($updateStatus)
-{
-
- 
- 
- return str_replace(array('up-to-date', 'semver-safe-update', 'update-possible'), array('info', 'highlight', 'comment'), $updateStatus);
-}
-
-private function getUpdateStatus(PackageInterface $latestPackage, PackageInterface $package)
-{
-if ($latestPackage->getFullPrettyVersion() === $package->getFullPrettyVersion()) {
-return 'up-to-date';
-}
-
-$constraint = $package->getVersion();
-if (0 !== strpos($constraint, 'dev-')) {
-$constraint = '^'.$constraint;
-}
-if ($latestPackage->getVersion() && Semver::satisfies($latestPackage->getVersion(), $constraint)) {
-
- return 'semver-safe-update';
-}
-
-
- return 'update-possible';
-}
-
-private function writeTreeLine($line)
-{
-$io = $this->getIO();
-if (!$io->isDecorated()) {
-$line = str_replace(array('â', 'â', 'ââ', 'â'), array('`-', '|-', '-', '|'), $line);
-}
-
-$io->write($line);
-}
-
-
-
-
-
-
-
-
-
-
-
-private function findLatestPackage(PackageInterface $package, Composer $composer, $phpVersion, $minorOnly = false)
-{
-
- $name = $package->getName();
-$versionSelector = new VersionSelector($this->getPool($composer));
-$stability = $composer->getPackage()->getMinimumStability();
-$flags = $composer->getPackage()->getStabilityFlags();
-if (isset($flags[$name])) {
-$stability = array_search($flags[$name], BasePackage::$stabilities, true);
-}
-
-$bestStability = $stability;
-if ($composer->getPackage()->getPreferStable()) {
-$bestStability = $package->getStability();
-}
-
-$targetVersion = null;
-if (0 === strpos($package->getVersion(), 'dev-')) {
-$targetVersion = $package->getVersion();
-}
-
-if ($targetVersion === null && $minorOnly) {
-$targetVersion = '^' . $package->getVersion();
-}
-
-return $versionSelector->findBestCandidate($name, $targetVersion, $phpVersion, $bestStability);
-}
-
-private function getPool(Composer $composer)
-{
-if (!$this->pool) {
-$this->pool = new Pool($composer->getPackage()->getMinimumStability(), $composer->getPackage()->getStabilityFlags());
-$this->pool->addRepository(new CompositeRepository($composer->getRepositoryManager()->getRepositories()));
-}
-
-return $this->pool;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-use Composer\Downloader\ChangeReportInterface;
-use Composer\Downloader\DvcsDownloaderInterface;
-use Composer\Downloader\VcsCapableDownloaderInterface;
-use Composer\Package\Dumper\ArrayDumper;
-use Composer\Package\Version\VersionGuesser;
-use Composer\Package\Version\VersionParser;
-use Composer\Plugin\CommandEvent;
-use Composer\Plugin\PluginEvents;
-use Composer\Script\ScriptEvents;
-use Composer\Util\ProcessExecutor;
-
-
-
-
-
-class StatusCommand extends BaseCommand
-{
-const EXIT_CODE_ERRORS = 1;
-const EXIT_CODE_UNPUSHED_CHANGES = 2;
-const EXIT_CODE_VERSION_CHANGES = 4;
-
-
-
-
-protected function configure()
-{
-$this
-->setName('status')
-->setDescription('Shows a list of locally modified packages, for packages installed from source.')
-->setDefinition(array(
-new InputOption('verbose', 'v|vv|vvv', InputOption::VALUE_NONE, 'Show modified files for each directory that contains changes.'),
-))
-->setHelp(
-<<<EOT
-The status command displays a list of dependencies that have
-been modified locally.
-
-EOT
-)
-;
-}
-
-
-
-
-
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-
- $composer = $this->getComposer();
-
-$commandEvent = new CommandEvent(PluginEvents::COMMAND, 'status', $input, $output);
-$composer->getEventDispatcher()->dispatch($commandEvent->getName(), $commandEvent);
-
-$installedRepo = $composer->getRepositoryManager()->getLocalRepository();
-
-$dm = $composer->getDownloadManager();
-$im = $composer->getInstallationManager();
-
-
- $composer->getEventDispatcher()->dispatchScript(ScriptEvents::PRE_STATUS_CMD, true);
-
-$errors = array();
-$io = $this->getIO();
-$unpushedChanges = array();
-$vcsVersionChanges = array();
-
-$parser = new VersionParser;
-$guesser = new VersionGuesser($composer->getConfig(), new ProcessExecutor($io), $parser);
-$dumper = new ArrayDumper;
-
-
- foreach ($installedRepo->getCanonicalPackages() as $package) {
-$downloader = $dm->getDownloaderForInstalledPackage($package);
-$targetDir = $im->getInstallPath($package);
-
-if ($downloader instanceof ChangeReportInterface) {
-if (is_link($targetDir)) {
-$errors[$targetDir] = $targetDir . ' is a symbolic link.';
-}
-
-if ($changes = $downloader->getLocalChanges($package, $targetDir)) {
-$errors[$targetDir] = $changes;
-}
-}
-
-if ($downloader instanceof VcsCapableDownloaderInterface) {
-if ($currentRef = $downloader->getVcsReference($package, $targetDir)) {
-switch ($package->getInstallationSource()) {
-case 'source':
-$previousRef = $package->getSourceReference();
-break;
-case 'dist':
-$previousRef = $package->getDistReference();
-break;
-default:
-$previousRef = null;
-}
-
-$currentVersion = $guesser->guessVersion($dumper->dump($package), $targetDir);
-
-if ($previousRef && $currentVersion && $currentVersion['commit'] !== $previousRef) {
-$vcsVersionChanges[$targetDir] = array(
-'previous' => array(
-'version' => $package->getPrettyVersion(),
-'ref' => $previousRef,
-),
-'current' => array(
-'version' => $currentVersion['pretty_version'],
-'ref' => $currentVersion['commit'],
-),
-);
-}
-}
-}
-
-if ($downloader instanceof DvcsDownloaderInterface) {
-if ($unpushed = $downloader->getUnpushedChanges($package, $targetDir)) {
-$unpushedChanges[$targetDir] = $unpushed;
-}
-}
-}
-
-
- if (!$errors && !$unpushedChanges && !$vcsVersionChanges) {
-$io->writeError('<info>No local changes</info>');
-
-return 0;
-}
-
-if ($errors) {
-$io->writeError('<error>You have changes in the following dependencies:</error>');
-
-foreach ($errors as $path => $changes) {
-if ($input->getOption('verbose')) {
-$indentedChanges = implode("\n", array_map(function ($line) {
-return '    ' . ltrim($line);
-}, explode("\n", $changes)));
-$io->write('<info>'.$path.'</info>:');
-$io->write($indentedChanges);
-} else {
-$io->write($path);
-}
-}
-}
-
-if ($unpushedChanges) {
-$io->writeError('<warning>You have unpushed changes on the current branch in the following dependencies:</warning>');
-
-foreach ($unpushedChanges as $path => $changes) {
-if ($input->getOption('verbose')) {
-$indentedChanges = implode("\n", array_map(function ($line) {
-return '    ' . ltrim($line);
-}, explode("\n", $changes)));
-$io->write('<info>'.$path.'</info>:');
-$io->write($indentedChanges);
-} else {
-$io->write($path);
-}
-}
-}
-
-if ($vcsVersionChanges) {
-$io->writeError('<warning>You have version variations in the following dependencies:</warning>');
-
-foreach ($vcsVersionChanges as $path => $changes) {
-if ($input->getOption('verbose')) {
-
- $currentVersion = $changes['current']['version'] ?: $changes['current']['ref'];
-$previousVersion = $changes['previous']['version'] ?: $changes['previous']['ref'];
-
-if ($io->isVeryVerbose()) {
-
- $currentVersion .= sprintf(' (%s)', $changes['current']['ref']);
-$previousVersion .= sprintf(' (%s)', $changes['previous']['ref']);
-}
-
-$io->write('<info>'.$path.'</info>:');
-$io->write(sprintf('    From <comment>%s</comment> to <comment>%s</comment>', $previousVersion, $currentVersion));
-} else {
-$io->write($path);
-}
-}
-}
-
-if (($errors || $unpushedChanges || $vcsVersionChanges) && !$input->getOption('verbose')) {
-$io->writeError('Use --verbose (-v) to see a list of files');
-}
-
-
- $composer->getEventDispatcher()->dispatchScript(ScriptEvents::POST_STATUS_CMD, true);
-
-return ($errors ? self::EXIT_CODE_ERRORS : 0) + ($unpushedChanges ? self::EXIT_CODE_UNPUSHED_CHANGES : 0) + ($vcsVersionChanges ? self::EXIT_CODE_VERSION_CHANGES : 0);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Composer\Repository\PlatformRepository;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-class SuggestsCommand extends BaseCommand
-{
-protected function configure()
-{
-$this
-->setName('suggests')
-->setDescription('Shows package suggestions.')
-->setDefinition(array(
-new InputOption('by-package', null, InputOption::VALUE_NONE, 'Groups output by suggesting package'),
-new InputOption('by-suggestion', null, InputOption::VALUE_NONE, 'Groups output by suggested package'),
-new InputOption('no-dev', null, InputOption::VALUE_NONE, 'Exclude suggestions from require-dev packages'),
-new InputArgument('packages', InputArgument::IS_ARRAY | InputArgument::OPTIONAL, 'Packages that you want to list suggestions from.'),
-))
-->setHelp(
-<<<EOT
-
-The <info>%command.name%</info> command shows a sorted list of suggested packages.
-
-Enabling <info>-v</info> implies <info>--by-package --by-suggestion</info>, showing both lists.
-
-EOT
-)
-;
-}
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-$lock = $this->getComposer()->getLocker()->getLockData();
-
-if (empty($lock)) {
-throw new \RuntimeException('Lockfile seems to be empty?');
-}
-
-$packages = $lock['packages'];
-
-if (!$input->getOption('no-dev')) {
-$packages += $lock['packages-dev'];
-}
-
-$filter = $input->getArgument('packages');
-
-
- $installed = array();
-foreach ($packages as $package) {
-$installed[] = $package['name'];
-
-if (!empty($package['provide'])) {
-$installed = array_merge($installed, array_keys($package['provide']));
-}
-
-if (!empty($package['replace'])) {
-$installed = array_merge($installed, array_keys($package['replace']));
-}
-}
-
-
- $installed = array_flip($installed);
-ksort($installed);
-
-
- $platform = new PlatformRepository(array(), $this->getComposer()->getConfig()->get('platform') ?: array());
-
-
- $suggesters = array();
-$suggested = array();
-foreach ($packages as $package) {
-$packageName = $package['name'];
-if ((!empty($filter) && !in_array($packageName, $filter)) || empty($package['suggest'])) {
-continue;
-}
-foreach ($package['suggest'] as $suggestion => $reason) {
-if (false === strpos('/', $suggestion) && null !== $platform->findPackage($suggestion, '*')) {
-continue;
-}
-if (!isset($installed[$suggestion])) {
-$suggesters[$packageName][$suggestion] = $reason;
-$suggested[$suggestion][$packageName] = $reason;
-}
-}
-}
-ksort($suggesters);
-ksort($suggested);
-
-
- $mode = 0;
-$io = $this->getIO();
-if ($input->getOption('by-package') || $io->isVerbose()) {
-$mode |= 1;
-}
-if ($input->getOption('by-suggestion')) {
-$mode |= 2;
-}
-
-
- if ($mode === 0) {
-foreach (array_keys($suggested) as $suggestion) {
-$io->write(sprintf('<info>%s</info>', $suggestion));
-}
-
-return;
-}
-
-
- if ($mode & 1) {
-foreach ($suggesters as $suggester => $suggestions) {
-$io->write(sprintf('<comment>%s</comment> suggests:', $suggester));
-
-foreach ($suggestions as $suggestion => $reason) {
-$io->write(sprintf(' - <info>%s</info>: %s', $suggestion, $reason ?: '*'));
-}
-$io->write('');
-}
-}
-
-
- if ($mode & 2) {
-
- if ($mode & 1) {
-$io->write(str_repeat('-', 78));
-}
-foreach ($suggested as $suggestion => $suggesters) {
-$io->write(sprintf('<comment>%s</comment> is suggested by:', $suggestion));
-
-foreach ($suggesters as $suggester => $reason) {
-$io->write(sprintf(' - <info>%s</info>: %s', $suggester, $reason ?: '*'));
-}
-$io->write('');
-}
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Composer\Composer;
-use Composer\Installer;
-use Composer\IO\IOInterface;
-use Composer\Plugin\CommandEvent;
-use Composer\Plugin\PluginEvents;
-use Symfony\Component\Console\Helper\Table;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Question\Question;
-
-
-
-
-
-class UpdateCommand extends BaseCommand
-{
-protected function configure()
-{
-$this
-->setName('update')
-->setAliases(array('u', 'upgrade'))
-->setDescription('Upgrades your dependencies to the latest version according to composer.json, and updates the composer.lock file.')
-->setDefinition(array(
-new InputArgument('packages', InputArgument::IS_ARRAY | InputArgument::OPTIONAL, 'Packages that should be updated, if not provided all packages are.'),
-new InputOption('prefer-source', null, InputOption::VALUE_NONE, 'Forces installation from package sources when possible, including VCS information.'),
-new InputOption('prefer-dist', null, InputOption::VALUE_NONE, 'Forces installation from package dist even for dev versions.'),
-new InputOption('dry-run', null, InputOption::VALUE_NONE, 'Outputs the operations but will not execute anything (implicitly enables --verbose).'),
-new InputOption('dev', null, InputOption::VALUE_NONE, 'Enables installation of require-dev packages (enabled by default, only present for BC).'),
-new InputOption('no-dev', null, InputOption::VALUE_NONE, 'Disables installation of require-dev packages.'),
-new InputOption('lock', null, InputOption::VALUE_NONE, 'Only updates the lock file hash to suppress warning about the lock file being out of date.'),
-new InputOption('no-custom-installers', null, InputOption::VALUE_NONE, 'DEPRECATED: Use no-plugins instead.'),
-new InputOption('no-autoloader', null, InputOption::VALUE_NONE, 'Skips autoloader generation'),
-new InputOption('no-scripts', null, InputOption::VALUE_NONE, 'Skips the execution of all scripts defined in composer.json file.'),
-new InputOption('no-progress', null, InputOption::VALUE_NONE, 'Do not output download progress.'),
-new InputOption('no-suggest', null, InputOption::VALUE_NONE, 'Do not show package suggestions.'),
-new InputOption('with-dependencies', null, InputOption::VALUE_NONE, 'Add also dependencies of whitelisted packages to the whitelist, except those defined in root package.'),
-new InputOption('with-all-dependencies', null, InputOption::VALUE_NONE, 'Add also all dependencies of whitelisted packages to the whitelist, including those defined in root package.'),
-new InputOption('verbose', 'v|vv|vvv', InputOption::VALUE_NONE, 'Shows more details including new commits pulled in when updating packages.'),
-new InputOption('optimize-autoloader', 'o', InputOption::VALUE_NONE, 'Optimize autoloader during autoloader dump.'),
-new InputOption('classmap-authoritative', 'a', InputOption::VALUE_NONE, 'Autoload classes from the classmap only. Implicitly enables `--optimize-autoloader`.'),
-new InputOption('apcu-autoloader', null, InputOption::VALUE_NONE, 'Use APCu to cache found/not-found classes.'),
-new InputOption('ignore-platform-reqs', null, InputOption::VALUE_NONE, 'Ignore platform requirements (php & ext- packages).'),
-new InputOption('prefer-stable', null, InputOption::VALUE_NONE, 'Prefer stable versions of dependencies.'),
-new InputOption('prefer-lowest', null, InputOption::VALUE_NONE, 'Prefer lowest versions of dependencies.'),
-new InputOption('interactive', 'i', InputOption::VALUE_NONE, 'Interactive interface with autocompletion to select the packages to update.'),
-new InputOption('root-reqs', null, InputOption::VALUE_NONE, 'Restricts the update to your first degree dependencies.'),
-))
-->setHelp(
-<<<EOT
-The <info>update</info> command reads the composer.json file from the
-current directory, processes it, and updates, removes or installs all the
-dependencies.
-
-<info>php composer.phar update</info>
-
-To limit the update operation to a few packages, you can list the package(s)
-you want to update as such:
-
-<info>php composer.phar update vendor/package1 foo/mypackage [...]</info>
-
-You may also use an asterisk (*) pattern to limit the update operation to package(s)
-from a specific vendor:
-
-<info>php composer.phar update vendor/package1 foo/* [...]</info>
-
-To select packages names interactively with auto-completion use <info>-i</info>.
-
-EOT
-)
-;
-}
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-$io = $this->getIO();
-if ($input->getOption('no-custom-installers')) {
-$io->writeError('<warning>You are using the deprecated option "no-custom-installers". Use "no-plugins" instead.</warning>');
-$input->setOption('no-plugins', true);
-}
-
-if ($input->getOption('dev')) {
-$io->writeError('<warning>You are using the deprecated option "dev". Dev packages are installed by default now.</warning>');
-}
-
-$composer = $this->getComposer(true, $input->getOption('no-plugins'));
-
-$packages = $input->getArgument('packages');
-
-if ($input->getOption('interactive')) {
-$packages = $this->getPackagesInteractively($io, $input, $output, $composer, $packages);
-}
-
-if ($input->getOption('root-reqs')) {
-$require = array_keys($composer->getPackage()->getRequires());
-if (!$input->getOption('no-dev')) {
-$requireDev = array_keys($composer->getPackage()->getDevRequires());
-$require = array_merge($require, $requireDev);
-}
-
-if (!empty($packages)) {
-$packages = array_intersect($packages, $require);
-} else {
-$packages = $require;
-}
-}
-
-$composer->getDownloadManager()->setOutputProgress(!$input->getOption('no-progress'));
-
-$commandEvent = new CommandEvent(PluginEvents::COMMAND, 'update', $input, $output);
-$composer->getEventDispatcher()->dispatch($commandEvent->getName(), $commandEvent);
-
-$install = Installer::create($io, $composer);
-
-$config = $composer->getConfig();
-list($preferSource, $preferDist) = $this->getPreferredInstallOptions($config, $input);
-
-$optimize = $input->getOption('optimize-autoloader') || $config->get('optimize-autoloader');
-$authoritative = $input->getOption('classmap-authoritative') || $config->get('classmap-authoritative');
-$apcu = $input->getOption('apcu-autoloader') || $config->get('apcu-autoloader');
-
-$install
-->setDryRun($input->getOption('dry-run'))
-->setVerbose($input->getOption('verbose'))
-->setPreferSource($preferSource)
-->setPreferDist($preferDist)
-->setDevMode(!$input->getOption('no-dev'))
-->setDumpAutoloader(!$input->getOption('no-autoloader'))
-->setRunScripts(!$input->getOption('no-scripts'))
-->setSkipSuggest($input->getOption('no-suggest'))
-->setOptimizeAutoloader($optimize)
-->setClassMapAuthoritative($authoritative)
-->setApcuAutoloader($apcu)
-->setUpdate(true)
-->setUpdateWhitelist($input->getOption('lock') ? array('lock') : $packages)
-->setWhitelistTransitiveDependencies($input->getOption('with-dependencies'))
-->setWhitelistAllDependencies($input->getOption('with-all-dependencies'))
-->setIgnorePlatformRequirements($input->getOption('ignore-platform-reqs'))
-->setPreferStable($input->getOption('prefer-stable'))
-->setPreferLowest($input->getOption('prefer-lowest'))
-;
-
-if ($input->getOption('no-plugins')) {
-$install->disablePlugins();
-}
-
-return $install->run();
-}
-
-private function getPackagesInteractively(IOInterface $io, InputInterface $input, OutputInterface $output, Composer $composer, array $packages)
-{
-if (!$input->isInteractive()) {
-throw new \InvalidArgumentException('--interactive cannot be used in non-interactive terminals.');
-}
-
-$requires = array_merge(
-$composer->getPackage()->getRequires(),
-$composer->getPackage()->getDevRequires()
-);
-$autocompleterValues = array();
-foreach ($requires as $require) {
-$target = $require->getTarget();
-$autocompleterValues[strtolower($target)] = $target;
-}
-
-$installedPackages = $composer->getRepositoryManager()->getLocalRepository()->getPackages();
-foreach ($installedPackages as $package) {
-$autocompleterValues[$package->getName()] = $package->getPrettyName();
-}
-
-$helper = $this->getHelper('question');
-$question = new Question('<comment>Enter package name: </comment>', null);
-
-$io->writeError('<info>Press enter without value to end submission</info>');
-
-do {
-$autocompleterValues = array_diff($autocompleterValues, $packages);
-$question->setAutocompleterValues($autocompleterValues);
-$addedPackage = $helper->ask($input, $output, $question);
-
-if (!is_string($addedPackage) || empty($addedPackage)) {
-break;
-}
-
-$addedPackage = strtolower($addedPackage);
-if (!in_array($addedPackage, $packages)) {
-$packages[] = $addedPackage;
-}
-} while (true);
-
-$packages = array_filter($packages);
-if (!$packages) {
-throw new \InvalidArgumentException('You must enter minimum one package.');
-}
-
-$table = new Table($output);
-$table->setHeaders(array('Selected packages'));
-foreach ($packages as $package) {
-$table->addRow(array($package));
-}
-$table->render();
-
-if ($io->askConfirmation(sprintf(
-'Would you like to continue and update the above package%s [<comment>yes</comment>]? ',
-1 === count($packages) ? '' : 's'
-), true)) {
-return $packages;
-}
-
-throw new \RuntimeException('Installation aborted.');
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Command;
-
-use Composer\Factory;
-use Composer\Package\Loader\ValidatingArrayLoader;
-use Composer\Plugin\CommandEvent;
-use Composer\Plugin\PluginEvents;
-use Composer\Util\ConfigValidator;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-
-
-
-class ValidateCommand extends BaseCommand
-{
-
-
-
-protected function configure()
-{
-$this
-->setName('validate')
-->setDescription('Validates a composer.json and composer.lock.')
-->setDefinition(array(
-new InputOption('no-check-all', null, InputOption::VALUE_NONE, 'Do not make a complete validation'),
-new InputOption('no-check-lock', null, InputOption::VALUE_NONE, 'Do not check if lock file is up to date'),
-new InputOption('no-check-publish', null, InputOption::VALUE_NONE, 'Do not check for publish errors'),
-new InputOption('with-dependencies', 'A', InputOption::VALUE_NONE, 'Also validate the composer.json of all installed dependencies'),
-new InputOption('strict', null, InputOption::VALUE_NONE, 'Return a non-zero exit code for warnings as well as errors'),
-new InputArgument('file', InputArgument::OPTIONAL, 'path to composer.json file'),
-))
-->setHelp(
-<<<EOT
-The validate command validates a given composer.json and composer.lock
-
-Exit codes in case of errors are:
-1 validation warning(s), only when --strict is given
-2 validation error(s)
-3 file unreadable or missing
-
-EOT
-);
-}
-
-
-
-
-
-
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-$file = $input->getArgument('file') ?: Factory::getComposerFile();
-$io = $this->getIO();
-
-if (!file_exists($file)) {
-$io->writeError('<error>' . $file . ' not found.</error>');
-
-return 3;
-}
-if (!is_readable($file)) {
-$io->writeError('<error>' . $file . ' is not readable.</error>');
-
-return 3;
-}
-
-$validator = new ConfigValidator($io);
-$checkAll = $input->getOption('no-check-all') ? 0 : ValidatingArrayLoader::CHECK_ALL;
-$checkPublish = !$input->getOption('no-check-publish');
-$checkLock = !$input->getOption('no-check-lock');
-$isStrict = $input->getOption('strict');
-list($errors, $publishErrors, $warnings) = $validator->validate($file, $checkAll);
-
-$lockErrors = array();
-$composer = Factory::create($io, $file, $input->hasParameterOption('--no-plugins'));
-$locker = $composer->getLocker();
-if ($locker->isLocked() && !$locker->isFresh()) {
-$lockErrors[] = 'The lock file is not up to date with the latest changes in composer.json, it is recommended that you run `composer update`.';
-}
-
-$this->outputResult($io, $file, $errors, $warnings, $checkPublish, $publishErrors, $checkLock, $lockErrors, true, $isStrict);
-
-
- $exitCode = $errors ? 2 : ($isStrict && $warnings ? 1 : 0);
-
-if ($input->getOption('with-dependencies')) {
-$localRepo = $composer->getRepositoryManager()->getLocalRepository();
-foreach ($localRepo->getPackages() as $package) {
-$path = $composer->getInstallationManager()->getInstallPath($package);
-$file = $path . '/composer.json';
-if (is_dir($path) && file_exists($file)) {
-list($errors, $publishErrors, $warnings) = $validator->validate($file, $checkAll);
-$this->outputResult($io, $package->getPrettyName(), $errors, $warnings, $checkPublish, $publishErrors);
-
-$depCode = $errors ? 2 : ($isStrict && $warnings ? 1 : 0);
-$exitCode = max($depCode, $exitCode);
-}
-}
-}
-
-$commandEvent = new CommandEvent(PluginEvents::COMMAND, 'validate', $input, $output);
-$eventCode = $composer->getEventDispatcher()->dispatch($commandEvent->getName(), $commandEvent);
-$exitCode = max($eventCode, $exitCode);
-
-return $exitCode;
-}
-
-private function outputResult($io, $name, &$errors, &$warnings, $checkPublish = false, $publishErrors = array(), $checkLock = false, $lockErrors = array(), $printSchemaUrl = false, $isStrict = false)
-{
-if (!$errors && !$publishErrors && !$warnings) {
-$io->write('<info>' . $name . ' is valid</info>');
-} elseif (!$errors && !$publishErrors) {
-$io->writeError('<info>' . $name . ' is valid, but with a few warnings</info>');
-if ($printSchemaUrl) {
-$io->writeError('<warning>See https://getcomposer.org/doc/04-schema.md for details on the schema</warning>');
-}
-} elseif (!$errors) {
-$io->writeError('<info>' . $name . ' is valid for simple usage with composer but has</info>');
-$io->writeError('<info>strict errors that make it unable to be published as a package:</info>');
-if ($printSchemaUrl) {
-$io->writeError('<warning>See https://getcomposer.org/doc/04-schema.md for details on the schema</warning>');
-}
-} else {
-$io->writeError('<error>' . $name . ' is invalid, the following errors/warnings were found:</error>');
-}
-
-
- 
- if ($checkPublish) {
-$errors = array_merge($errors, $publishErrors);
-} elseif (!$isStrict) {
-$warnings = array_merge($warnings, $publishErrors);
-}
-
-
- 
- if ($checkLock) {
-$errors = array_merge($errors, $lockErrors);
-} elseif (!$isStrict) {
-$warnings = array_merge($warnings, $lockErrors);
-}
-
-$messages = array(
-'error' => $errors,
-'warning' => $warnings,
-);
-
-foreach ($messages as $style => $msgs) {
-foreach ($msgs as $msg) {
-$io->writeError('<' . $style . '>' . $msg . '</' . $style . '>');
-}
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer;
-
-use Composer\Package\RootPackageInterface;
-use Composer\Package\Locker;
-use Composer\Repository\RepositoryManager;
-use Composer\Installer\InstallationManager;
-use Composer\Plugin\PluginManager;
-use Composer\Downloader\DownloadManager;
-use Composer\EventDispatcher\EventDispatcher;
-use Composer\Autoload\AutoloadGenerator;
-use Composer\Package\Archiver\ArchiveManager;
-
-
-
-
-
-
-class Composer
-{
-const VERSION = '1.8.0';
-const BRANCH_ALIAS_VERSION = '';
-const RELEASE_DATE = '2018-12-03 10:31:16';
-
-
-
-
-private $package;
-
-
-
-
-private $locker;
-
-
-
-
-private $repositoryManager;
-
-
-
-
-private $downloadManager;
-
-
-
-
-private $installationManager;
-
-
-
-
-private $pluginManager;
-
-
-
-
-private $config;
-
-
-
-
-private $eventDispatcher;
-
-
-
-
-private $autoloadGenerator;
-
-
-
-
-private $archiveManager;
-
-
-
-
-
-public function setPackage(RootPackageInterface $package)
-{
-$this->package = $package;
-}
-
-
-
-
-public function getPackage()
-{
-return $this->package;
-}
-
-
-
-
-public function setConfig(Config $config)
-{
-$this->config = $config;
-}
-
-
-
-
-public function getConfig()
-{
-return $this->config;
-}
-
-
-
-
-public function setLocker(Locker $locker)
-{
-$this->locker = $locker;
-}
-
-
-
-
-public function getLocker()
-{
-return $this->locker;
-}
-
-
-
-
-public function setRepositoryManager(RepositoryManager $manager)
-{
-$this->repositoryManager = $manager;
-}
-
-
-
-
-public function getRepositoryManager()
-{
-return $this->repositoryManager;
-}
-
-
-
-
-public function setDownloadManager(DownloadManager $manager)
-{
-$this->downloadManager = $manager;
-}
-
-
-
-
-public function getDownloadManager()
-{
-return $this->downloadManager;
-}
-
-
-
-
-public function setArchiveManager(ArchiveManager $manager)
-{
-$this->archiveManager = $manager;
-}
-
-
-
-
-public function getArchiveManager()
-{
-return $this->archiveManager;
-}
-
-
-
-
-public function setInstallationManager(InstallationManager $manager)
-{
-$this->installationManager = $manager;
-}
-
-
-
-
-public function getInstallationManager()
-{
-return $this->installationManager;
-}
-
-
-
-
-public function setPluginManager(PluginManager $manager)
-{
-$this->pluginManager = $manager;
-}
-
-
-
-
-public function getPluginManager()
-{
-return $this->pluginManager;
-}
-
-
-
-
-public function setEventDispatcher(EventDispatcher $eventDispatcher)
-{
-$this->eventDispatcher = $eventDispatcher;
-}
-
-
-
-
-public function getEventDispatcher()
-{
-return $this->eventDispatcher;
-}
-
-
-
-
-public function setAutoloadGenerator(AutoloadGenerator $autoloadGenerator)
-{
-$this->autoloadGenerator = $autoloadGenerator;
-}
-
-
-
-
-public function getAutoloadGenerator()
-{
-return $this->autoloadGenerator;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer;
-
-use Composer\Config\ConfigSourceInterface;
-use Composer\Downloader\TransportException;
-use Composer\IO\IOInterface;
-use Composer\Util\Platform;
-
-
-
-
-class Config
-{
-const RELATIVE_PATHS = 1;
-
-public static $defaultConfig = array(
-'process-timeout' => 300,
-'use-include-path' => false,
-'preferred-install' => 'auto',
-'notify-on-install' => true,
-'github-protocols' => array('https', 'ssh', 'git'),
-'vendor-dir' => 'vendor',
-'bin-dir' => '{$vendor-dir}/bin',
-'cache-dir' => '{$home}/cache',
-'data-dir' => '{$home}',
-'cache-files-dir' => '{$cache-dir}/files',
-'cache-repo-dir' => '{$cache-dir}/repo',
-'cache-vcs-dir' => '{$cache-dir}/vcs',
-'cache-ttl' => 15552000, 
- 'cache-files-ttl' => null, 
- 'cache-files-maxsize' => '300MiB',
-'bin-compat' => 'auto',
-'discard-changes' => false,
-'autoloader-suffix' => null,
-'sort-packages' => false,
-'optimize-autoloader' => false,
-'classmap-authoritative' => false,
-'apcu-autoloader' => false,
-'prepend-autoloader' => true,
-'github-domains' => array('github.com'),
-'bitbucket-expose-hostname' => true,
-'disable-tls' => false,
-'secure-http' => true,
-'cafile' => null,
-'capath' => null,
-'github-expose-hostname' => true,
-'gitlab-domains' => array('gitlab.com'),
-'store-auths' => 'prompt',
-'platform' => array(),
-'archive-format' => 'tar',
-'archive-dir' => '.',
-'htaccess-protect' => true,
-
- 
- 
- 
- 
- 
- );
-
-public static $defaultRepositories = array(
-'packagist.org' => array(
-'type' => 'composer',
-'url' => 'https?://repo.packagist.org',
-'allow_ssl_downgrade' => true,
-),
-);
-
-private $config;
-private $baseDir;
-private $repositories;
-
-private $configSource;
-
-private $authConfigSource;
-private $useEnvironment;
-private $warnedHosts = array();
-
-
-
-
-
-public function __construct($useEnvironment = true, $baseDir = null)
-{
-
- $this->config = static::$defaultConfig;
-$this->repositories = static::$defaultRepositories;
-$this->useEnvironment = (bool) $useEnvironment;
-$this->baseDir = $baseDir;
-}
-
-public function setConfigSource(ConfigSourceInterface $source)
-{
-$this->configSource = $source;
-}
-
-public function getConfigSource()
-{
-return $this->configSource;
-}
-
-public function setAuthConfigSource(ConfigSourceInterface $source)
-{
-$this->authConfigSource = $source;
-}
-
-public function getAuthConfigSource()
-{
-return $this->authConfigSource;
-}
-
-
-
-
-
-
-public function merge($config)
-{
-
- if (!empty($config['config']) && is_array($config['config'])) {
-foreach ($config['config'] as $key => $val) {
-if (in_array($key, array('bitbucket-oauth', 'github-oauth', 'gitlab-oauth', 'gitlab-token', 'http-basic')) && isset($this->config[$key])) {
-$this->config[$key] = array_merge($this->config[$key], $val);
-} elseif ('preferred-install' === $key && isset($this->config[$key])) {
-if (is_array($val) || is_array($this->config[$key])) {
-if (is_string($val)) {
-$val = array('*' => $val);
-}
-if (is_string($this->config[$key])) {
-$this->config[$key] = array('*' => $this->config[$key]);
-}
-$this->config[$key] = array_merge($this->config[$key], $val);
-
- if (isset($this->config[$key]['*'])) {
-$wildcard = $this->config[$key]['*'];
-unset($this->config[$key]['*']);
-$this->config[$key]['*'] = $wildcard;
-}
-} else {
-$this->config[$key] = $val;
-}
-} else {
-$this->config[$key] = $val;
-}
-}
-}
-
-if (!empty($config['repositories']) && is_array($config['repositories'])) {
-$this->repositories = array_reverse($this->repositories, true);
-$newRepos = array_reverse($config['repositories'], true);
-foreach ($newRepos as $name => $repository) {
-
- if (false === $repository) {
-$this->disableRepoByName($name);
-continue;
-}
-
-
- if (is_array($repository) && 1 === count($repository) && false === current($repository)) {
-$this->disableRepoByName(key($repository));
-continue;
-}
-
-
- if (is_int($name)) {
-$this->repositories[] = $repository;
-} else {
-if ($name === 'packagist') { 
- $this->repositories[$name . '.org'] = $repository;
-} else {
-$this->repositories[$name] = $repository;
-}
-}
-}
-$this->repositories = array_reverse($this->repositories, true);
-}
-}
-
-
-
-
-public function getRepositories()
-{
-return $this->repositories;
-}
-
-
-
-
-
-
-
-
-
-public function get($key, $flags = 0)
-{
-switch ($key) {
-case 'vendor-dir':
-case 'bin-dir':
-case 'process-timeout':
-case 'data-dir':
-case 'cache-dir':
-case 'cache-files-dir':
-case 'cache-repo-dir':
-case 'cache-vcs-dir':
-case 'cafile':
-case 'capath':
-case 'htaccess-protect':
-
- $env = 'COMPOSER_' . strtoupper(strtr($key, '-', '_'));
-
-$val = $this->getComposerEnv($env);
-$val = rtrim((string) $this->process(false !== $val ? $val : $this->config[$key], $flags), '/\\');
-$val = Platform::expandPath($val);
-
-if (substr($key, -4) !== '-dir') {
-return $val;
-}
-
-return (($flags & self::RELATIVE_PATHS) == self::RELATIVE_PATHS) ? $val : $this->realpath($val);
-
-case 'cache-ttl':
-return (int) $this->config[$key];
-
-case 'cache-files-maxsize':
-if (!preg_match('/^\s*([0-9.]+)\s*(?:([kmg])(?:i?b)?)?\s*$/i', $this->config[$key], $matches)) {
-throw new \RuntimeException(
-"Could not parse the value of 'cache-files-maxsize': {$this->config[$key]}"
-);
-}
-$size = $matches[1];
-if (isset($matches[2])) {
-switch (strtolower($matches[2])) {
-case 'g':
-$size *= 1024;
-
- 
- case 'm':
-$size *= 1024;
-
- 
- case 'k':
-$size *= 1024;
-break;
-}
-}
-
-return $size;
-
-case 'cache-files-ttl':
-if (isset($this->config[$key])) {
-return (int) $this->config[$key];
-}
-
-return (int) $this->config['cache-ttl'];
-
-case 'home':
-$val = preg_replace('#^(\$HOME|~)(/|$)#', rtrim(getenv('HOME') ?: getenv('USERPROFILE'), '/\\') . '/', $this->config[$key]);
-
-return rtrim($this->process($val, $flags), '/\\');
-
-case 'bin-compat':
-$value = $this->getComposerEnv('COMPOSER_BIN_COMPAT') ?: $this->config[$key];
-
-if (!in_array($value, array('auto', 'full'))) {
-throw new \RuntimeException(
-"Invalid value for 'bin-compat': {$value}. Expected auto, full"
-);
-}
-
-return $value;
-
-case 'discard-changes':
-if ($env = $this->getComposerEnv('COMPOSER_DISCARD_CHANGES')) {
-if (!in_array($env, array('stash', 'true', 'false', '1', '0'), true)) {
-throw new \RuntimeException(
-"Invalid value for COMPOSER_DISCARD_CHANGES: {$env}. Expected 1, 0, true, false or stash"
-);
-}
-if ('stash' === $env) {
-return 'stash';
-}
-
-
- return $env !== 'false' && (bool) $env;
-}
-
-if (!in_array($this->config[$key], array(true, false, 'stash'), true)) {
-throw new \RuntimeException(
-"Invalid value for 'discard-changes': {$this->config[$key]}. Expected true, false or stash"
-);
-}
-
-return $this->config[$key];
-
-case 'github-protocols':
-$protos = $this->config['github-protocols'];
-if ($this->config['secure-http'] && false !== ($index = array_search('git', $protos))) {
-unset($protos[$index]);
-}
-if (reset($protos) === 'http') {
-throw new \RuntimeException('The http protocol for github is not available anymore, update your config\'s github-protocols to use "https", "git" or "ssh"');
-}
-
-return $protos;
-
-case 'disable-tls':
-return $this->config[$key] !== 'false' && (bool) $this->config[$key];
-
-case 'secure-http':
-return $this->config[$key] !== 'false' && (bool) $this->config[$key];
-
-default:
-if (!isset($this->config[$key])) {
-return null;
-}
-
-return $this->process($this->config[$key], $flags);
-}
-}
-
-public function all($flags = 0)
-{
-$all = array(
-'repositories' => $this->getRepositories(),
-);
-foreach (array_keys($this->config) as $key) {
-$all['config'][$key] = $this->get($key, $flags);
-}
-
-return $all;
-}
-
-public function raw()
-{
-return array(
-'repositories' => $this->getRepositories(),
-'config' => $this->config,
-);
-}
-
-
-
-
-
-
-
-public function has($key)
-{
-return array_key_exists($key, $this->config);
-}
-
-
-
-
-
-
-
-
-private function process($value, $flags)
-{
-$config = $this;
-
-if (!is_string($value)) {
-return $value;
-}
-
-return preg_replace_callback('#\{\$(.+)\}#', function ($match) use ($config, $flags) {
-return $config->get($match[1], $flags);
-}, $value);
-}
-
-
-
-
-
-
-
-
-
-private function realpath($path)
-{
-if (preg_match('{^(?:/|[a-z]:|[a-z0-9.]+://)}i', $path)) {
-return $path;
-}
-
-return $this->baseDir . '/' . $path;
-}
-
-
-
-
-
-
-
-
-
-
-private function getComposerEnv($var)
-{
-if ($this->useEnvironment) {
-return getenv($var);
-}
-
-return false;
-}
-
-private function disableRepoByName($name)
-{
-if (isset($this->repositories[$name])) {
-unset($this->repositories[$name]);
-} elseif ($name === 'packagist') { 
- unset($this->repositories['packagist.org']);
-}
-}
-
-
-
-
-
-
-
-public function prohibitUrlByConfig($url, IOInterface $io = null)
-{
-
- if (false === filter_var($url, FILTER_VALIDATE_URL)) {
-return;
-}
-
-
- $scheme = parse_url($url, PHP_URL_SCHEME);
-if (in_array($scheme, array('http', 'git', 'ftp', 'svn'))) {
-if ($this->get('secure-http')) {
-throw new TransportException("Your configuration does not allow connections to $url. See https://getcomposer.org/doc/06-config.md#secure-http for details.");
-} elseif ($io) {
-$host = parse_url($url, PHP_URL_HOST);
-if (!isset($this->warnedHosts[$host])) {
-$io->writeError("<warning>Warning: Accessing $host over $scheme which is an insecure protocol.</warning>");
-}
-$this->warnedHosts[$host] = true;
-}
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Config;
-
-
-
-
-
-
-
-interface ConfigSourceInterface
-{
-
-
-
-
-
-
-public function addRepository($name, $config);
-
-
-
-
-
-
-public function removeRepository($name);
-
-
-
-
-
-
-
-public function addConfigSetting($name, $value);
-
-
-
-
-
-
-public function removeConfigSetting($name);
-
-
-
-
-
-
-
-public function addProperty($name, $value);
-
-
-
-
-
-
-public function removeProperty($name);
-
-
-
-
-
-
-
-
-public function addLink($type, $name, $value);
-
-
-
-
-
-
-
-public function removeLink($type, $name);
-
-
-
-
-
-
-public function getName();
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Config;
-
-use Composer\Json\JsonFile;
-use Composer\Json\JsonManipulator;
-use Composer\Util\Silencer;
-
-
-
-
-
-
-
-class JsonConfigSource implements ConfigSourceInterface
-{
-
-
-
-private $file;
-
-
-
-
-private $authConfig;
-
-
-
-
-
-
-
-public function __construct(JsonFile $file, $authConfig = false)
-{
-$this->file = $file;
-$this->authConfig = $authConfig;
-}
-
-
-
-
-public function getName()
-{
-return $this->file->getPath();
-}
-
-
-
-
-public function addRepository($name, $config)
-{
-$this->manipulateJson('addRepository', $name, $config, function (&$config, $repo, $repoConfig) {
-
- 
- if (isset($config['repositories'])) {
-foreach ($config['repositories'] as $index => $val) {
-if ($index === $repo) {
-continue;
-}
-if (is_numeric($index) && ($val === array('packagist' => false) || $val === array('packagist.org' => false))) {
-unset($config['repositories'][$index]);
-$config['repositories']['packagist.org'] = false;
-break;
-}
-}
-}
-
-$config['repositories'][$repo] = $repoConfig;
-});
-}
-
-
-
-
-public function removeRepository($name)
-{
-$this->manipulateJson('removeRepository', $name, function (&$config, $repo) {
-unset($config['repositories'][$repo]);
-});
-}
-
-
-
-
-public function addConfigSetting($name, $value)
-{
-$authConfig = $this->authConfig;
-$this->manipulateJson('addConfigSetting', $name, $value, function (&$config, $key, $val) use ($authConfig) {
-if (preg_match('{^(bitbucket-oauth|github-oauth|gitlab-oauth|gitlab-token|http-basic|platform)\.}', $key)) {
-list($key, $host) = explode('.', $key, 2);
-if ($authConfig) {
-$config[$key][$host] = $val;
-} else {
-$config['config'][$key][$host] = $val;
-}
-} else {
-$config['config'][$key] = $val;
-}
-});
-}
-
-
-
-
-public function removeConfigSetting($name)
-{
-$authConfig = $this->authConfig;
-$this->manipulateJson('removeConfigSetting', $name, function (&$config, $key) use ($authConfig) {
-if (preg_match('{^(bitbucket-oauth|github-oauth|gitlab-oauth|gitlab-token|http-basic|platform)\.}', $key)) {
-list($key, $host) = explode('.', $key, 2);
-if ($authConfig) {
-unset($config[$key][$host]);
-} else {
-unset($config['config'][$key][$host]);
-}
-} else {
-unset($config['config'][$key]);
-}
-});
-}
-
-
-
-
-public function addProperty($name, $value)
-{
-$this->manipulateJson('addProperty', $name, $value, function (&$config, $key, $val) {
-if (substr($key, 0, 6) === 'extra.' || substr($key, 0, 8) === 'scripts.') {
-$bits = explode('.', $key);
-$last = array_pop($bits);
-$arr = &$config[reset($bits)];
-foreach ($bits as $bit) {
-if (!isset($arr[$bit])) {
-$arr[$bit] = array();
-}
-$arr = &$arr[$bit];
-}
-$arr[$last] = $val;
-} else {
-$config[$key] = $val;
-}
-});
-}
-
-
-
-
-public function removeProperty($name)
-{
-$authConfig = $this->authConfig;
-$this->manipulateJson('removeProperty', $name, function (&$config, $key) {
-if (substr($key, 0, 6) === 'extra.' || substr($key, 0, 8) === 'scripts.') {
-$bits = explode('.', $key);
-$last = array_pop($bits);
-$arr = &$config[reset($bits)];
-foreach ($bits as $bit) {
-if (!isset($arr[$bit])) {
-return;
-}
-$arr = &$arr[$bit];
-}
-unset($arr[$last]);
-} else {
-unset($config[$key]);
-}
-});
-}
-
-
-
-
-public function addLink($type, $name, $value)
-{
-$this->manipulateJson('addLink', $type, $name, $value, function (&$config, $type, $name, $value) {
-$config[$type][$name] = $value;
-});
-}
-
-
-
-
-public function removeLink($type, $name)
-{
-$this->manipulateJson('removeSubNode', $type, $name, function (&$config, $type, $name) {
-unset($config[$type][$name]);
-});
-}
-
-protected function manipulateJson($method, $args, $fallback)
-{
-$args = func_get_args();
-
- array_shift($args);
-$fallback = array_pop($args);
-
-if ($this->file->exists()) {
-if (!is_writable($this->file->getPath())) {
-throw new \RuntimeException(sprintf('The file "%s" is not writable.', $this->file->getPath()));
-}
-
-if (!is_readable($this->file->getPath())) {
-throw new \RuntimeException(sprintf('The file "%s" is not readable.', $this->file->getPath()));
-}
-
-$contents = file_get_contents($this->file->getPath());
-} elseif ($this->authConfig) {
-$contents = "{\n}\n";
-} else {
-$contents = "{\n    \"config\": {\n    }\n}\n";
-}
-
-$manipulator = new JsonManipulator($contents);
-
-$newFile = !$this->file->exists();
-
-
- if ($this->authConfig && $method === 'addConfigSetting') {
-$method = 'addSubNode';
-list($mainNode, $name) = explode('.', $args[0], 2);
-$args = array($mainNode, $name, $args[1]);
-} elseif ($this->authConfig && $method === 'removeConfigSetting') {
-$method = 'removeSubNode';
-list($mainNode, $name) = explode('.', $args[0], 2);
-$args = array($mainNode, $name);
-}
-
-
- if (call_user_func_array(array($manipulator, $method), $args)) {
-file_put_contents($this->file->getPath(), $manipulator->getContents());
-} else {
-
- $config = $this->file->read();
-$this->arrayUnshiftRef($args, $config);
-call_user_func_array($fallback, $args);
-$this->file->write($config);
-}
-
-if ($newFile) {
-Silencer::call('chmod', $this->file->getPath(), 0600);
-}
-}
-
-
-
-
-
-
-
-
-private function arrayUnshiftRef(&$array, &$value)
-{
-$return = array_unshift($array, '');
-$array[0] = &$value;
-
-return $return;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Console;
-
-use Composer\IO\NullIO;
-use Composer\Util\Platform;
-use Composer\Util\Silencer;
-use Symfony\Component\Console\Application as BaseApplication;
-use Symfony\Component\Console\Exception\CommandNotFoundException;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-use Composer\Command;
-use Composer\Composer;
-use Composer\Factory;
-use Composer\IO\IOInterface;
-use Composer\IO\ConsoleIO;
-use Composer\Json\JsonValidationException;
-use Composer\Util\ErrorHandler;
-use Composer\EventDispatcher\ScriptExecutionException;
-use Composer\Exception\NoSslException;
-
-
-
-
-
-
-
-
-class Application extends BaseApplication
-{
-
-
-
-protected $composer;
-
-
-
-
-protected $io;
-
-private static $logo = '   ______
-  / ____/___  ____ ___  ____  ____  ________  _____
- / /   / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
-/ /___/ /_/ / / / / / / /_/ / /_/ (__  )  __/ /
-\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
-                    /_/
-';
-
-private $hasPluginCommands = false;
-private $disablePluginsByDefault = false;
-
-public function __construct()
-{
-static $shutdownRegistered = false;
-
-if (function_exists('ini_set') && extension_loaded('xdebug')) {
-ini_set('xdebug.show_exception_trace', false);
-ini_set('xdebug.scream', false);
-}
-
-if (function_exists('date_default_timezone_set') && function_exists('date_default_timezone_get')) {
-date_default_timezone_set(Silencer::call('date_default_timezone_get'));
-}
-
-if (!$shutdownRegistered) {
-$shutdownRegistered = true;
-
-register_shutdown_function(function () {
-$lastError = error_get_last();
-
-if ($lastError && $lastError['message'] &&
-(strpos($lastError['message'], 'Allowed memory') !== false  ||
-strpos($lastError['message'], 'exceeded memory') !== false )) {
-echo "\n". 'Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.';
-}
-});
-}
-
-$this->io = new NullIO();
-
-parent::__construct('Composer', Composer::VERSION);
-}
-
-
-
-
-public function run(InputInterface $input = null, OutputInterface $output = null)
-{
-if (null === $output) {
-$output = Factory::createOutput();
-}
-
-return parent::run($input, $output);
-}
-
-
-
-
-public function doRun(InputInterface $input, OutputInterface $output)
-{
-$this->disablePluginsByDefault = $input->hasParameterOption('--no-plugins');
-
-$io = $this->io = new ConsoleIO($input, $output, $this->getHelperSet());
-ErrorHandler::register($io);
-
-
- if ($newWorkDir = $this->getNewWorkingDir($input)) {
-$oldWorkingDir = getcwd();
-chdir($newWorkDir);
-$io->writeError('Changed CWD to ' . getcwd(), true, IOInterface::DEBUG);
-}
-
-
- $commandName = '';
-if ($name = $this->getCommandName($input)) {
-try {
-$commandName = $this->find($name)->getName();
-} catch (CommandNotFoundException $e) {
-
- $commandName = false;
-} catch (\InvalidArgumentException $e) {
-}
-}
-
-
- if ($io->isInteractive() && !$newWorkDir && !in_array($commandName, array('', 'list', 'init', 'about', 'help', 'diagnose', 'self-update', 'global', 'create-project'), true) && !file_exists(Factory::getComposerFile())) {
-$dir = dirname(getcwd());
-$home = realpath(getenv('HOME') ?: getenv('USERPROFILE') ?: '/');
-
-
- while (dirname($dir) !== $dir && $dir !== $home) {
-if (file_exists($dir.'/'.Factory::getComposerFile())) {
-if ($io->askConfirmation('<info>No composer.json in current directory, do you want to use the one at '.$dir.'?</info> [<comment>Y,n</comment>]? ', true)) {
-$oldWorkingDir = getcwd();
-chdir($dir);
-}
-break;
-}
-$dir = dirname($dir);
-}
-}
-
-if (!$this->disablePluginsByDefault && !$this->hasPluginCommands && 'global' !== $commandName) {
-try {
-foreach ($this->getPluginCommands() as $command) {
-if ($this->has($command->getName())) {
-$io->writeError('<warning>Plugin command '.$command->getName().' ('.get_class($command).') would override a Composer command and has been skipped</warning>');
-} else {
-$this->add($command);
-}
-}
-} catch (NoSslException $e) {
-
- }
-
-$this->hasPluginCommands = true;
-}
-
-
- $isProxyCommand = false;
-if ($name = $this->getCommandName($input)) {
-try {
-$command = $this->find($name);
-$commandName = $command->getName();
-$isProxyCommand = ($command instanceof Command\BaseCommand && $command->isProxyCommand());
-} catch (\InvalidArgumentException $e) {
-}
-}
-
-if (!$isProxyCommand) {
-$io->writeError(sprintf(
-'Running %s (%s) with %s on %s',
-Composer::VERSION,
-Composer::RELEASE_DATE,
-defined('HHVM_VERSION') ? 'HHVM '.HHVM_VERSION : 'PHP '.PHP_VERSION,
-function_exists('php_uname') ? php_uname('s') . ' / ' . php_uname('r') : 'Unknown OS'
-), true, IOInterface::DEBUG);
-
-if (PHP_VERSION_ID < 50302) {
-$io->writeError('<warning>Composer only officially supports PHP 5.3.2 and above, you will most likely encounter problems with your PHP '.PHP_VERSION.', upgrading is strongly recommended.</warning>');
-}
-
-if (extension_loaded('xdebug') && !getenv('COMPOSER_DISABLE_XDEBUG_WARN')) {
-$io->writeError('<warning>You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug</warning>');
-}
-
-if (defined('COMPOSER_DEV_WARNING_TIME') && $commandName !== 'self-update' && $commandName !== 'selfupdate' && time() > COMPOSER_DEV_WARNING_TIME) {
-$io->writeError(sprintf('<warning>Warning: This development build of composer is over 60 days old. It is recommended to update it by running "%s self-update" to get the latest version.</warning>', $_SERVER['PHP_SELF']));
-}
-
-if (getenv('COMPOSER_NO_INTERACTION')) {
-$input->setInteractive(false);
-}
-
-if (!Platform::isWindows() && function_exists('exec') && !getenv('COMPOSER_ALLOW_SUPERUSER')) {
-if (function_exists('posix_getuid') && posix_getuid() === 0) {
-if ($commandName !== 'self-update' && $commandName !== 'selfupdate') {
-$io->writeError('<warning>Do not run Composer as root/super user! See https://getcomposer.org/root for details</warning>');
-}
-if ($uid = (int) getenv('SUDO_UID')) {
-
- 
- Silencer::call('exec', "sudo -u \\#{$uid} sudo -K > /dev/null 2>&1");
-}
-}
-
- Silencer::call('exec', 'sudo -K > /dev/null 2>&1');
-}
-
-
- Silencer::call(function () use ($io) {
-$tempfile = sys_get_temp_dir() . '/temp-' . md5(microtime());
-if (!(file_put_contents($tempfile, __FILE__) && (file_get_contents($tempfile) == __FILE__) && unlink($tempfile) && !file_exists($tempfile))) {
-$io->writeError(sprintf('<error>PHP temp directory (%s) does not exist or is not writable to Composer. Set sys_temp_dir in your php.ini</error>', sys_get_temp_dir()));
-}
-});
-
-
- $file = Factory::getComposerFile();
-if (is_file($file) && is_readable($file) && is_array($composer = json_decode(file_get_contents($file), true))) {
-if (isset($composer['scripts']) && is_array($composer['scripts'])) {
-foreach ($composer['scripts'] as $script => $dummy) {
-if (!defined('Composer\Script\ScriptEvents::'.str_replace('-', '_', strtoupper($script)))) {
-if ($this->has($script)) {
-$io->writeError('<warning>A script named '.$script.' would override a Composer command and has been skipped</warning>');
-} else {
-$description = null;
-
-if (isset($composer['scripts-descriptions'][$script])) {
-$description = $composer['scripts-descriptions'][$script];
-}
-
-$this->add(new Command\ScriptAliasCommand($script, $description));
-}
-}
-}
-}
-}
-}
-
-try {
-if ($input->hasParameterOption('--profile')) {
-$startTime = microtime(true);
-$this->io->enableDebugging($startTime);
-}
-
-$result = parent::doRun($input, $output);
-
-if (isset($oldWorkingDir)) {
-chdir($oldWorkingDir);
-}
-
-if (isset($startTime)) {
-$io->writeError('<info>Memory usage: '.round(memory_get_usage() / 1024 / 1024, 2).'MB (peak: '.round(memory_get_peak_usage() / 1024 / 1024, 2).'MB), time: '.round(microtime(true) - $startTime, 2).'s');
-}
-
-restore_error_handler();
-
-return $result;
-} catch (ScriptExecutionException $e) {
-return $e->getCode();
-} catch (\Exception $e) {
-$this->hintCommonErrors($e);
-restore_error_handler();
-throw $e;
-}
-}
-
-
-
-
-
-
-private function getNewWorkingDir(InputInterface $input)
-{
-$workingDir = $input->getParameterOption(array('--working-dir', '-d'));
-if (false !== $workingDir && !is_dir($workingDir)) {
-throw new \RuntimeException('Invalid working directory specified, '.$workingDir.' does not exist.');
-}
-
-return $workingDir;
-}
-
-
-
-
-private function hintCommonErrors($exception)
-{
-$io = $this->getIO();
-
-Silencer::suppress();
-try {
-$composer = $this->getComposer(false, true);
-if ($composer) {
-$config = $composer->getConfig();
-
-$minSpaceFree = 1024 * 1024;
-if ((($df = disk_free_space($dir = $config->get('home'))) !== false && $df < $minSpaceFree)
-|| (($df = disk_free_space($dir = $config->get('vendor-dir'))) !== false && $df < $minSpaceFree)
-|| (($df = disk_free_space($dir = sys_get_temp_dir())) !== false && $df < $minSpaceFree)
-) {
-$io->writeError('<error>The disk hosting '.$dir.' is full, this may be the cause of the following exception</error>', true, IOInterface::QUIET);
-}
-}
-} catch (\Exception $e) {
-}
-Silencer::restore();
-
-if (Platform::isWindows() && false !== strpos($exception->getMessage(), 'The system cannot find the path specified')) {
-$io->writeError('<error>The following exception may be caused by a stale entry in your cmd.exe AutoRun</error>', true, IOInterface::QUIET);
-$io->writeError('<error>Check https://getcomposer.org/doc/articles/troubleshooting.md#-the-system-cannot-find-the-path-specified-windows- for details</error>', true, IOInterface::QUIET);
-}
-
-if (false !== strpos($exception->getMessage(), 'fork failed - Cannot allocate memory')) {
-$io->writeError('<error>The following exception is caused by a lack of memory or swap, or not having swap configured</error>', true, IOInterface::QUIET);
-$io->writeError('<error>Check https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors for details</error>', true, IOInterface::QUIET);
-}
-}
-
-
-
-
-
-
-
-public function getComposer($required = true, $disablePlugins = null)
-{
-if (null === $disablePlugins) {
-$disablePlugins = $this->disablePluginsByDefault;
-}
-
-if (null === $this->composer) {
-try {
-$this->composer = Factory::create($this->io, null, $disablePlugins);
-} catch (\InvalidArgumentException $e) {
-if ($required) {
-$this->io->writeError($e->getMessage());
-exit(1);
-}
-} catch (JsonValidationException $e) {
-$errors = ' - ' . implode(PHP_EOL . ' - ', $e->getErrors());
-$message = $e->getMessage() . ':' . PHP_EOL . $errors;
-throw new JsonValidationException($message);
-}
-}
-
-return $this->composer;
-}
-
-
-
-
-public function resetComposer()
-{
-$this->composer = null;
-}
-
-
-
-
-public function getIO()
-{
-return $this->io;
-}
-
-public function getHelp()
-{
-return self::$logo . parent::getHelp();
-}
-
-
-
-
-protected function getDefaultCommands()
-{
-$commands = array_merge(parent::getDefaultCommands(), array(
-new Command\AboutCommand(),
-new Command\ConfigCommand(),
-new Command\DependsCommand(),
-new Command\ProhibitsCommand(),
-new Command\InitCommand(),
-new Command\InstallCommand(),
-new Command\CreateProjectCommand(),
-new Command\UpdateCommand(),
-new Command\SearchCommand(),
-new Command\ValidateCommand(),
-new Command\ShowCommand(),
-new Command\SuggestsCommand(),
-new Command\RequireCommand(),
-new Command\DumpAutoloadCommand(),
-new Command\StatusCommand(),
-new Command\ArchiveCommand(),
-new Command\DiagnoseCommand(),
-new Command\RunScriptCommand(),
-new Command\LicensesCommand(),
-new Command\GlobalCommand(),
-new Command\ClearCacheCommand(),
-new Command\RemoveCommand(),
-new Command\HomeCommand(),
-new Command\ExecCommand(),
-new Command\OutdatedCommand(),
-new Command\CheckPlatformReqsCommand(),
-));
-
-if ('phar:' === substr(__FILE__, 0, 5)) {
-$commands[] = new Command\SelfUpdateCommand();
-}
-
-return $commands;
-}
-
-
-
-
-public function getLongVersion()
-{
-if (Composer::BRANCH_ALIAS_VERSION) {
-return sprintf(
-'<info>%s</info> version <comment>%s (%s)</comment> %s',
-$this->getName(),
-Composer::BRANCH_ALIAS_VERSION,
-$this->getVersion(),
-Composer::RELEASE_DATE
-);
-}
-
-return parent::getLongVersion() . ' ' . Composer::RELEASE_DATE;
-}
-
-
-
-
-protected function getDefaultInputDefinition()
-{
-$definition = parent::getDefaultInputDefinition();
-$definition->addOption(new InputOption('--profile', null, InputOption::VALUE_NONE, 'Display timing and memory usage information'));
-$definition->addOption(new InputOption('--no-plugins', null, InputOption::VALUE_NONE, 'Whether to disable plugins.'));
-$definition->addOption(new InputOption('--working-dir', '-d', InputOption::VALUE_REQUIRED, 'If specified, use the given directory as working directory.'));
-
-return $definition;
-}
-
-private function getPluginCommands()
-{
-$commands = array();
-
-$composer = $this->getComposer(false, false);
-if (null === $composer) {
-$composer = Factory::createGlobal($this->io, false);
-}
-
-if (null !== $composer) {
-$pm = $composer->getPluginManager();
-foreach ($pm->getPluginCapabilities('Composer\Plugin\Capability\CommandProvider', array('composer' => $composer, 'io' => $this->io)) as $capability) {
-$newCommands = $capability->getCommands();
-if (!is_array($newCommands)) {
-throw new \UnexpectedValueException('Plugin capability '.get_class($capability).' failed to return an array from getCommands');
-}
-foreach ($newCommands as $command) {
-if (!$command instanceof Command\BaseCommand) {
-throw new \UnexpectedValueException('Plugin capability '.get_class($capability).' returned an invalid value, we expected an array of Composer\Command\BaseCommand objects');
-}
-}
-$commands = array_merge($commands, $newCommands);
-}
-}
-
-return $commands;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Console;
-
-use Symfony\Component\Console\Formatter\OutputFormatter;
-
-
-
-
-class HtmlOutputFormatter extends OutputFormatter
-{
-private static $availableForegroundColors = array(
-30 => 'black',
-31 => 'red',
-32 => 'green',
-33 => 'yellow',
-34 => 'blue',
-35 => 'magenta',
-36 => 'cyan',
-37 => 'white',
-);
-private static $availableBackgroundColors = array(
-40 => 'black',
-41 => 'red',
-42 => 'green',
-43 => 'yellow',
-44 => 'blue',
-45 => 'magenta',
-46 => 'cyan',
-47 => 'white',
-);
-private static $availableOptions = array(
-1 => 'bold',
-4 => 'underscore',
-
- 
- 
- );
-
-
-
-
-public function __construct(array $styles = array())
-{
-parent::__construct(true, $styles);
-}
-
-public function format($message)
-{
-$formatted = parent::format($message);
-
-$clearEscapeCodes = '(?:39|49|0|22|24|25|27|28)';
-
-return preg_replace_callback("{\033\[([0-9;]+)m(.*?)\033\[(?:".$clearEscapeCodes.";)*?".$clearEscapeCodes."m}s", array($this, 'formatHtml'), $formatted);
-}
-
-private function formatHtml($matches)
-{
-$out = '<span style="';
-foreach (explode(';', $matches[1]) as $code) {
-if (isset(self::$availableForegroundColors[$code])) {
-$out .= 'color:'.self::$availableForegroundColors[$code].';';
-} elseif (isset(self::$availableBackgroundColors[$code])) {
-$out .= 'background-color:'.self::$availableBackgroundColors[$code].';';
-} elseif (isset(self::$availableOptions[$code])) {
-switch (self::$availableOptions[$code]) {
-case 'bold':
-$out .= 'font-weight:bold;';
-break;
-
-case 'underscore':
-$out .= 'text-decoration:underline;';
-break;
-}
-}
-}
-
-return $out.'">'.$matches[2].'</span>';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver;
-
-
-
-
-
-
-class Decisions implements \Iterator, \Countable
-{
-const DECISION_LITERAL = 0;
-const DECISION_REASON = 1;
-
-protected $pool;
-protected $decisionMap;
-protected $decisionQueue = array();
-
-public function __construct($pool)
-{
-$this->pool = $pool;
-$this->decisionMap = array();
-}
-
-public function decide($literal, $level, $why)
-{
-$this->addDecision($literal, $level);
-$this->decisionQueue[] = array(
-self::DECISION_LITERAL => $literal,
-self::DECISION_REASON => $why,
-);
-}
-
-public function satisfy($literal)
-{
-$packageId = abs($literal);
-
-return (
-$literal > 0 && isset($this->decisionMap[$packageId]) && $this->decisionMap[$packageId] > 0 ||
-$literal < 0 && isset($this->decisionMap[$packageId]) && $this->decisionMap[$packageId] < 0
-);
-}
-
-public function conflict($literal)
-{
-$packageId = abs($literal);
-
-return (
-(isset($this->decisionMap[$packageId]) && $this->decisionMap[$packageId] > 0 && $literal < 0) ||
-(isset($this->decisionMap[$packageId]) && $this->decisionMap[$packageId] < 0 && $literal > 0)
-);
-}
-
-public function decided($literalOrPackageId)
-{
-return !empty($this->decisionMap[abs($literalOrPackageId)]);
-}
-
-public function undecided($literalOrPackageId)
-{
-return empty($this->decisionMap[abs($literalOrPackageId)]);
-}
-
-public function decidedInstall($literalOrPackageId)
-{
-$packageId = abs($literalOrPackageId);
-
-return isset($this->decisionMap[$packageId]) && $this->decisionMap[$packageId] > 0;
-}
-
-public function decisionLevel($literalOrPackageId)
-{
-$packageId = abs($literalOrPackageId);
-if (isset($this->decisionMap[$packageId])) {
-return abs($this->decisionMap[$packageId]);
-}
-
-return 0;
-}
-
-public function decisionRule($literalOrPackageId)
-{
-$packageId = abs($literalOrPackageId);
-
-foreach ($this->decisionQueue as $i => $decision) {
-if ($packageId === abs($decision[self::DECISION_LITERAL])) {
-return $decision[self::DECISION_REASON];
-}
-}
-
-return null;
-}
-
-public function atOffset($queueOffset)
-{
-return $this->decisionQueue[$queueOffset];
-}
-
-public function validOffset($queueOffset)
-{
-return $queueOffset >= 0 && $queueOffset < count($this->decisionQueue);
-}
-
-public function lastReason()
-{
-return $this->decisionQueue[count($this->decisionQueue) - 1][self::DECISION_REASON];
-}
-
-public function lastLiteral()
-{
-return $this->decisionQueue[count($this->decisionQueue) - 1][self::DECISION_LITERAL];
-}
-
-public function reset()
-{
-while ($decision = array_pop($this->decisionQueue)) {
-$this->decisionMap[abs($decision[self::DECISION_LITERAL])] = 0;
-}
-}
-
-public function resetToOffset($offset)
-{
-while (count($this->decisionQueue) > $offset + 1) {
-$decision = array_pop($this->decisionQueue);
-$this->decisionMap[abs($decision[self::DECISION_LITERAL])] = 0;
-}
-}
-
-public function revertLast()
-{
-$this->decisionMap[abs($this->lastLiteral())] = 0;
-array_pop($this->decisionQueue);
-}
-
-public function count()
-{
-return count($this->decisionQueue);
-}
-
-public function rewind()
-{
-end($this->decisionQueue);
-}
-
-public function current()
-{
-return current($this->decisionQueue);
-}
-
-public function key()
-{
-return key($this->decisionQueue);
-}
-
-public function next()
-{
-return prev($this->decisionQueue);
-}
-
-public function valid()
-{
-return false !== current($this->decisionQueue);
-}
-
-public function isEmpty()
-{
-return count($this->decisionQueue) === 0;
-}
-
-protected function addDecision($literal, $level)
-{
-$packageId = abs($literal);
-
-$previousDecision = isset($this->decisionMap[$packageId]) ? $this->decisionMap[$packageId] : null;
-if ($previousDecision != 0) {
-$literalString = $this->pool->literalToString($literal);
-$package = $this->pool->literalToPackage($literal);
-throw new SolverBugException(
-"Trying to decide $literalString on level $level, even though $package was previously decided as ".(int) $previousDecision."."
-);
-}
-
-if ($literal > 0) {
-$this->decisionMap[$packageId] = $level;
-} else {
-$this->decisionMap[$packageId] = -$level;
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver;
-
-use Composer\Package\PackageInterface;
-use Composer\Package\AliasPackage;
-use Composer\Package\BasePackage;
-use Composer\Semver\Constraint\Constraint;
-
-
-
-
-
-class DefaultPolicy implements PolicyInterface
-{
-private $preferStable;
-private $preferLowest;
-
-public function __construct($preferStable = false, $preferLowest = false)
-{
-$this->preferStable = $preferStable;
-$this->preferLowest = $preferLowest;
-}
-
-public function versionCompare(PackageInterface $a, PackageInterface $b, $operator)
-{
-if ($this->preferStable && ($stabA = $a->getStability()) !== ($stabB = $b->getStability())) {
-return BasePackage::$stabilities[$stabA] < BasePackage::$stabilities[$stabB];
-}
-
-$constraint = new Constraint($operator, $b->getVersion());
-$version = new Constraint('==', $a->getVersion());
-
-return $constraint->matchSpecific($version, true);
-}
-
-public function findUpdatePackages(Pool $pool, array $installedMap, PackageInterface $package, $mustMatchName = false)
-{
-$packages = array();
-
-foreach ($pool->whatProvides($package->getName(), null, $mustMatchName) as $candidate) {
-if ($candidate !== $package) {
-$packages[] = $candidate;
-}
-}
-
-return $packages;
-}
-
-public function getPriority(Pool $pool, PackageInterface $package)
-{
-return $pool->getPriority($package->getRepository());
-}
-
-public function selectPreferredPackages(Pool $pool, array $installedMap, array $literals, $requiredPackage = null)
-{
-$packages = $this->groupLiteralsByNamePreferInstalled($pool, $installedMap, $literals);
-
-foreach ($packages as &$literals) {
-$policy = $this;
-usort($literals, function ($a, $b) use ($policy, $pool, $installedMap, $requiredPackage) {
-return $policy->compareByPriorityPreferInstalled($pool, $installedMap, $pool->literalToPackage($a), $pool->literalToPackage($b), $requiredPackage, true);
-});
-}
-
-foreach ($packages as &$literals) {
-$literals = $this->pruneToHighestPriorityOrInstalled($pool, $installedMap, $literals);
-
-$literals = $this->pruneToBestVersion($pool, $literals);
-
-$literals = $this->pruneRemoteAliases($pool, $literals);
-}
-
-$selected = call_user_func_array('array_merge', $packages);
-
-
- usort($selected, function ($a, $b) use ($policy, $pool, $installedMap, $requiredPackage) {
-return $policy->compareByPriorityPreferInstalled($pool, $installedMap, $pool->literalToPackage($a), $pool->literalToPackage($b), $requiredPackage);
-});
-
-return $selected;
-}
-
-protected function groupLiteralsByNamePreferInstalled(Pool $pool, array $installedMap, $literals)
-{
-$packages = array();
-foreach ($literals as $literal) {
-$packageName = $pool->literalToPackage($literal)->getName();
-
-if (!isset($packages[$packageName])) {
-$packages[$packageName] = array();
-}
-
-if (isset($installedMap[abs($literal)])) {
-array_unshift($packages[$packageName], $literal);
-} else {
-$packages[$packageName][] = $literal;
-}
-}
-
-return $packages;
-}
-
-
-
-
-public function compareByPriorityPreferInstalled(Pool $pool, array $installedMap, PackageInterface $a, PackageInterface $b, $requiredPackage = null, $ignoreReplace = false)
-{
-if ($a->getRepository() === $b->getRepository()) {
-
- if ($a->getName() === $b->getName()) {
-$aAliased = $a instanceof AliasPackage;
-$bAliased = $b instanceof AliasPackage;
-if ($aAliased && !$bAliased) {
-return -1; 
- }
-if (!$aAliased && $bAliased) {
-return 1; 
- }
-}
-
-if (!$ignoreReplace) {
-
- if ($this->replaces($a, $b)) {
-return 1; 
- }
-if ($this->replaces($b, $a)) {
-return -1; 
- }
-
-
- 
- if ($requiredPackage && false !== ($pos = strpos($requiredPackage, '/'))) {
-$requiredVendor = substr($requiredPackage, 0, $pos);
-
-$aIsSameVendor = substr($a->getName(), 0, $pos) === $requiredVendor;
-$bIsSameVendor = substr($b->getName(), 0, $pos) === $requiredVendor;
-
-if ($bIsSameVendor !== $aIsSameVendor) {
-return $aIsSameVendor ? -1 : 1;
-}
-}
-}
-
-
- if ($a->id === $b->id) {
-return 0;
-}
-
-return ($a->id < $b->id) ? -1 : 1;
-}
-
-if (isset($installedMap[$a->id])) {
-return -1;
-}
-
-if (isset($installedMap[$b->id])) {
-return 1;
-}
-
-return ($this->getPriority($pool, $a) > $this->getPriority($pool, $b)) ? -1 : 1;
-}
-
-
-
-
-
-
-
-
-
-
-
-protected function replaces(PackageInterface $source, PackageInterface $target)
-{
-foreach ($source->getReplaces() as $link) {
-if ($link->getTarget() === $target->getName()
-
-
- ) {
-return true;
-}
-}
-
-return false;
-}
-
-protected function pruneToBestVersion(Pool $pool, $literals)
-{
-$operator = $this->preferLowest ? '<' : '>';
-$bestLiterals = array($literals[0]);
-$bestPackage = $pool->literalToPackage($literals[0]);
-foreach ($literals as $i => $literal) {
-if (0 === $i) {
-continue;
-}
-
-$package = $pool->literalToPackage($literal);
-
-if ($this->versionCompare($package, $bestPackage, $operator)) {
-$bestPackage = $package;
-$bestLiterals = array($literal);
-} elseif ($this->versionCompare($package, $bestPackage, '==')) {
-$bestLiterals[] = $literal;
-}
-}
-
-return $bestLiterals;
-}
-
-
-
-
-protected function pruneToHighestPriorityOrInstalled(Pool $pool, array $installedMap, array $literals)
-{
-$selected = array();
-
-$priority = null;
-
-foreach ($literals as $literal) {
-$package = $pool->literalToPackage($literal);
-
-if (isset($installedMap[$package->id])) {
-$selected[] = $literal;
-continue;
-}
-
-if (null === $priority) {
-$priority = $this->getPriority($pool, $package);
-}
-
-if ($this->getPriority($pool, $package) != $priority) {
-break;
-}
-
-$selected[] = $literal;
-}
-
-return $selected;
-}
-
-
-
-
-
-
-protected function pruneRemoteAliases(Pool $pool, array $literals)
-{
-$hasLocalAlias = false;
-
-foreach ($literals as $literal) {
-$package = $pool->literalToPackage($literal);
-
-if ($package instanceof AliasPackage && $package->isRootPackageAlias()) {
-$hasLocalAlias = true;
-break;
-}
-}
-
-if (!$hasLocalAlias) {
-return $literals;
-}
-
-$selected = array();
-foreach ($literals as $literal) {
-$package = $pool->literalToPackage($literal);
-
-if ($package instanceof AliasPackage && $package->isRootPackageAlias()) {
-$selected[] = $literal;
-}
-}
-
-return $selected;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver;
-
-use Composer\Package\PackageInterface;
-use Composer\Package\Link;
-
-
-
-
-class GenericRule extends Rule
-{
-protected $literals;
-
-
-
-
-
-
-
-public function __construct(array $literals, $reason, $reasonData, $job = null)
-{
-parent::__construct($reason, $reasonData, $job);
-
-
- sort($literals);
-
-$this->literals = $literals;
-}
-
-public function getLiterals()
-{
-return $this->literals;
-}
-
-public function getHash()
-{
-$data = unpack('ihash', md5(implode(',', $this->literals), true));
-
-return $data['hash'];
-}
-
-
-
-
-
-
-
-
-
-public function equals(Rule $rule)
-{
-return $this->literals === $rule->getLiterals();
-}
-
-public function isAssertion()
-{
-return 1 === count($this->literals);
-}
-
-
-
-
-
-
-public function __toString()
-{
-$result = $this->isDisabled() ? 'disabled(' : '(';
-
-foreach ($this->literals as $i => $literal) {
-if ($i != 0) {
-$result .= '|';
-}
-$result .= $literal;
-}
-
-$result .= ')';
-
-return $result;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver\Operation;
-
-use Composer\Package\PackageInterface;
-
-
-
-
-
-
-class InstallOperation extends SolverOperation
-{
-protected $package;
-
-
-
-
-
-
-
-public function __construct(PackageInterface $package, $reason = null)
-{
-parent::__construct($reason);
-
-$this->package = $package;
-}
-
-
-
-
-
-
-public function getPackage()
-{
-return $this->package;
-}
-
-
-
-
-
-
-public function getJobType()
-{
-return 'install';
-}
-
-
-
-
-public function __toString()
-{
-return 'Installing '.$this->package->getPrettyName().' ('.$this->formatVersion($this->package).')';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver\Operation;
-
-use Composer\Package\AliasPackage;
-use Composer\Package\PackageInterface;
-
-
-
-
-
-
-class MarkAliasInstalledOperation extends SolverOperation
-{
-protected $package;
-
-
-
-
-
-
-
-public function __construct(AliasPackage $package, $reason = null)
-{
-parent::__construct($reason);
-
-$this->package = $package;
-}
-
-
-
-
-
-
-public function getPackage()
-{
-return $this->package;
-}
-
-
-
-
-
-
-public function getJobType()
-{
-return 'markAliasInstalled';
-}
-
-
-
-
-public function __toString()
-{
-return 'Marking '.$this->package->getPrettyName().' ('.$this->formatVersion($this->package).') as installed, alias of '.$this->package->getAliasOf()->getPrettyName().' ('.$this->formatVersion($this->package->getAliasOf()).')';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver\Operation;
-
-use Composer\Package\AliasPackage;
-use Composer\Package\PackageInterface;
-
-
-
-
-
-
-class MarkAliasUninstalledOperation extends SolverOperation
-{
-protected $package;
-
-
-
-
-
-
-
-public function __construct(AliasPackage $package, $reason = null)
-{
-parent::__construct($reason);
-
-$this->package = $package;
-}
-
-
-
-
-
-
-public function getPackage()
-{
-return $this->package;
-}
-
-
-
-
-
-
-public function getJobType()
-{
-return 'markAliasUninstalled';
-}
-
-
-
-
-public function __toString()
-{
-return 'Marking '.$this->package->getPrettyName().' ('.$this->formatVersion($this->package).') as uninstalled, alias of '.$this->package->getAliasOf()->getPrettyName().' ('.$this->formatVersion($this->package->getAliasOf()).')';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver\Operation;
-
-
-
-
-
-
-interface OperationInterface
-{
-
-
-
-
-
-public function getJobType();
-
-
-
-
-
-
-public function getReason();
-
-
-
-
-
-
-public function __toString();
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver\Operation;
-
-use Composer\Package\PackageInterface;
-
-
-
-
-
-
-abstract class SolverOperation implements OperationInterface
-{
-protected $reason;
-
-
-
-
-
-
-public function __construct($reason = null)
-{
-$this->reason = $reason;
-}
-
-
-
-
-
-
-public function getReason()
-{
-return $this->reason;
-}
-
-protected function formatVersion(PackageInterface $package)
-{
-return $package->getFullPrettyVersion();
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver\Operation;
-
-use Composer\Package\PackageInterface;
-
-
-
-
-
-
-class UninstallOperation extends SolverOperation
-{
-protected $package;
-
-
-
-
-
-
-
-public function __construct(PackageInterface $package, $reason = null)
-{
-parent::__construct($reason);
-
-$this->package = $package;
-}
-
-
-
-
-
-
-public function getPackage()
-{
-return $this->package;
-}
-
-
-
-
-
-
-public function getJobType()
-{
-return 'uninstall';
-}
-
-
-
-
-public function __toString()
-{
-return 'Uninstalling '.$this->package->getPrettyName().' ('.$this->formatVersion($this->package).')';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver\Operation;
-
-use Composer\Package\PackageInterface;
-
-
-
-
-
-
-class UpdateOperation extends SolverOperation
-{
-protected $initialPackage;
-protected $targetPackage;
-
-
-
-
-
-
-
-
-public function __construct(PackageInterface $initial, PackageInterface $target, $reason = null)
-{
-parent::__construct($reason);
-
-$this->initialPackage = $initial;
-$this->targetPackage = $target;
-}
-
-
-
-
-
-
-public function getInitialPackage()
-{
-return $this->initialPackage;
-}
-
-
-
-
-
-
-public function getTargetPackage()
-{
-return $this->targetPackage;
-}
-
-
-
-
-
-
-public function getJobType()
-{
-return 'update';
-}
-
-
-
-
-public function __toString()
-{
-return 'Updating '.$this->initialPackage->getPrettyName().' ('.$this->formatVersion($this->initialPackage).') to '.
-$this->targetPackage->getPrettyName(). ' ('.$this->formatVersion($this->targetPackage).')';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver;
-
-use Composer\Package\PackageInterface;
-
-
-
-
-interface PolicyInterface
-{
-public function versionCompare(PackageInterface $a, PackageInterface $b, $operator);
-
-public function findUpdatePackages(Pool $pool, array $installedMap, PackageInterface $package);
-
-public function selectPreferredPackages(Pool $pool, array $installedMap, array $literals, $requiredPackage = null);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver;
-
-use Composer\Package\BasePackage;
-use Composer\Package\AliasPackage;
-use Composer\Package\Version\VersionParser;
-use Composer\Semver\Constraint\ConstraintInterface;
-use Composer\Semver\Constraint\Constraint;
-use Composer\Semver\Constraint\EmptyConstraint;
-use Composer\Repository\RepositoryInterface;
-use Composer\Repository\CompositeRepository;
-use Composer\Repository\ComposerRepository;
-use Composer\Repository\InstalledRepositoryInterface;
-use Composer\Repository\PlatformRepository;
-use Composer\Package\PackageInterface;
-
-
-
-
-
-
-
-class Pool implements \Countable
-{
-const MATCH_NAME = -1;
-const MATCH_NONE = 0;
-const MATCH = 1;
-const MATCH_PROVIDE = 2;
-const MATCH_REPLACE = 3;
-const MATCH_FILTERED = 4;
-
-protected $repositories = array();
-protected $providerRepos = array();
-protected $packages = array();
-protected $packageByName = array();
-protected $packageByExactName = array();
-protected $acceptableStabilities;
-protected $stabilityFlags;
-protected $versionParser;
-protected $providerCache = array();
-protected $filterRequires;
-protected $whitelist = null;
-protected $id = 1;
-
-public function __construct($minimumStability = 'stable', array $stabilityFlags = array(), array $filterRequires = array())
-{
-$this->versionParser = new VersionParser;
-$this->acceptableStabilities = array();
-foreach (BasePackage::$stabilities as $stability => $value) {
-if ($value <= BasePackage::$stabilities[$minimumStability]) {
-$this->acceptableStabilities[$stability] = $value;
-}
-}
-$this->stabilityFlags = $stabilityFlags;
-$this->filterRequires = $filterRequires;
-foreach ($filterRequires as $name => $constraint) {
-if (preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $name)) {
-unset($this->filterRequires[$name]);
-}
-}
-}
-
-public function setWhitelist($whitelist)
-{
-$this->whitelist = $whitelist;
-$this->providerCache = array();
-}
-
-
-
-
-
-
-
-public function addRepository(RepositoryInterface $repo, $rootAliases = array())
-{
-if ($repo instanceof CompositeRepository) {
-$repos = $repo->getRepositories();
-} else {
-$repos = array($repo);
-}
-
-foreach ($repos as $repo) {
-$this->repositories[] = $repo;
-
-$exempt = $repo instanceof PlatformRepository || $repo instanceof InstalledRepositoryInterface;
-
-if ($repo instanceof ComposerRepository && $repo->hasProviders()) {
-$this->providerRepos[] = $repo;
-$repo->setRootAliases($rootAliases);
-$repo->resetPackageIds();
-} else {
-foreach ($repo->getPackages() as $package) {
-$names = $package->getNames();
-$stability = $package->getStability();
-if ($exempt || $this->isPackageAcceptable($names, $stability)) {
-$package->setId($this->id++);
-$this->packages[] = $package;
-$this->packageByExactName[$package->getName()][$package->id] = $package;
-
-foreach ($names as $provided) {
-$this->packageByName[$provided][] = $package;
-}
-
-
- $name = $package->getName();
-if (isset($rootAliases[$name][$package->getVersion()])) {
-$alias = $rootAliases[$name][$package->getVersion()];
-if ($package instanceof AliasPackage) {
-$package = $package->getAliasOf();
-}
-$aliasPackage = new AliasPackage($package, $alias['alias_normalized'], $alias['alias']);
-$aliasPackage->setRootPackageAlias(true);
-$aliasPackage->setId($this->id++);
-
-$package->getRepository()->addPackage($aliasPackage);
-$this->packages[] = $aliasPackage;
-$this->packageByExactName[$aliasPackage->getName()][$aliasPackage->id] = $aliasPackage;
-
-foreach ($aliasPackage->getNames() as $name) {
-$this->packageByName[$name][] = $aliasPackage;
-}
-}
-}
-}
-}
-}
-}
-
-public function getPriority(RepositoryInterface $repo)
-{
-$priority = array_search($repo, $this->repositories, true);
-
-if (false === $priority) {
-throw new \RuntimeException("Could not determine repository priority. The repository was not registered in the pool.");
-}
-
-return -$priority;
-}
-
-
-
-
-
-
-
-public function packageById($id)
-{
-return $this->packages[$id - 1];
-}
-
-
-
-
-public function count()
-{
-return count($this->packages);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function whatProvides($name, ConstraintInterface $constraint = null, $mustMatchName = false, $bypassFilters = false)
-{
-if ($bypassFilters) {
-return $this->computeWhatProvides($name, $constraint, $mustMatchName, true);
-}
-
-$key = ((int) $mustMatchName).$constraint;
-if (isset($this->providerCache[$name][$key])) {
-return $this->providerCache[$name][$key];
-}
-
-return $this->providerCache[$name][$key] = $this->computeWhatProvides($name, $constraint, $mustMatchName, $bypassFilters);
-}
-
-
-
-
-private function computeWhatProvides($name, $constraint, $mustMatchName = false, $bypassFilters = false)
-{
-$candidates = array();
-
-foreach ($this->providerRepos as $repo) {
-foreach ($repo->whatProvides($this, $name, $bypassFilters) as $candidate) {
-$candidates[] = $candidate;
-if ($candidate->id < 1) {
-$candidate->setId($this->id++);
-$this->packages[$this->id - 2] = $candidate;
-}
-}
-}
-
-if ($mustMatchName) {
-$candidates = array_filter($candidates, function ($candidate) use ($name) {
-return $candidate->getName() == $name;
-});
-if (isset($this->packageByExactName[$name])) {
-$candidates = array_merge($candidates, $this->packageByExactName[$name]);
-}
-} elseif (isset($this->packageByName[$name])) {
-$candidates = array_merge($candidates, $this->packageByName[$name]);
-}
-
-$matches = $provideMatches = array();
-$nameMatch = false;
-
-foreach ($candidates as $candidate) {
-$aliasOfCandidate = null;
-
-
- 
- if ($candidate instanceof AliasPackage) {
-$aliasOfCandidate = $candidate->getAliasOf();
-}
-
-if ($this->whitelist !== null && !$bypassFilters && (
-(!($candidate instanceof AliasPackage) && !isset($this->whitelist[$candidate->id])) ||
-($candidate instanceof AliasPackage && !isset($this->whitelist[$aliasOfCandidate->id]))
-)) {
-continue;
-}
-switch ($this->match($candidate, $name, $constraint, $bypassFilters)) {
-case self::MATCH_NONE:
-break;
-
-case self::MATCH_NAME:
-$nameMatch = true;
-break;
-
-case self::MATCH:
-$nameMatch = true;
-$matches[] = $candidate;
-break;
-
-case self::MATCH_PROVIDE:
-$provideMatches[] = $candidate;
-break;
-
-case self::MATCH_REPLACE:
-$matches[] = $candidate;
-break;
-
-case self::MATCH_FILTERED:
-break;
-
-default:
-throw new \UnexpectedValueException('Unexpected match type');
-}
-}
-
-
- if ($nameMatch) {
-return $matches;
-}
-
-return array_merge($matches, $provideMatches);
-}
-
-public function literalToPackage($literal)
-{
-$packageId = abs($literal);
-
-return $this->packageById($packageId);
-}
-
-public function literalToPrettyString($literal, $installedMap)
-{
-$package = $this->literalToPackage($literal);
-
-if (isset($installedMap[$package->id])) {
-$prefix = ($literal > 0 ? 'keep' : 'remove');
-} else {
-$prefix = ($literal > 0 ? 'install' : 'don\'t install');
-}
-
-return $prefix.' '.$package->getPrettyString();
-}
-
-public function isPackageAcceptable($name, $stability)
-{
-foreach ((array) $name as $n) {
-
- if (!isset($this->stabilityFlags[$n]) && isset($this->acceptableStabilities[$stability])) {
-return true;
-}
-
-
- if (isset($this->stabilityFlags[$n]) && BasePackage::$stabilities[$stability] <= $this->stabilityFlags[$n]) {
-return true;
-}
-}
-
-return false;
-}
-
-
-
-
-
-
-
-
-
-
-public function match($candidate, $name, ConstraintInterface $constraint = null, $bypassFilters)
-{
-$candidateName = $candidate->getName();
-$candidateVersion = $candidate->getVersion();
-$isDev = $candidate->getStability() === 'dev';
-$isAlias = $candidate instanceof AliasPackage;
-
-if (!$bypassFilters && !$isDev && !$isAlias && isset($this->filterRequires[$name])) {
-$requireFilter = $this->filterRequires[$name];
-} else {
-$requireFilter = new EmptyConstraint;
-}
-
-if ($candidateName === $name) {
-$pkgConstraint = new Constraint('==', $candidateVersion);
-
-if ($constraint === null || $constraint->matches($pkgConstraint)) {
-return $requireFilter->matches($pkgConstraint) ? self::MATCH : self::MATCH_FILTERED;
-}
-
-return self::MATCH_NAME;
-}
-
-$provides = $candidate->getProvides();
-$replaces = $candidate->getReplaces();
-
-
- if (isset($replaces[0]) || isset($provides[0])) {
-foreach ($provides as $link) {
-if ($link->getTarget() === $name && ($constraint === null || $constraint->matches($link->getConstraint()))) {
-return $requireFilter->matches($link->getConstraint()) ? self::MATCH_PROVIDE : self::MATCH_FILTERED;
-}
-}
-
-foreach ($replaces as $link) {
-if ($link->getTarget() === $name && ($constraint === null || $constraint->matches($link->getConstraint()))) {
-return $requireFilter->matches($link->getConstraint()) ? self::MATCH_REPLACE : self::MATCH_FILTERED;
-}
-}
-
-return self::MATCH_NONE;
-}
-
-if (isset($provides[$name]) && ($constraint === null || $constraint->matches($provides[$name]->getConstraint()))) {
-return $requireFilter->matches($provides[$name]->getConstraint()) ? self::MATCH_PROVIDE : self::MATCH_FILTERED;
-}
-
-if (isset($replaces[$name]) && ($constraint === null || $constraint->matches($replaces[$name]->getConstraint()))) {
-return $requireFilter->matches($replaces[$name]->getConstraint()) ? self::MATCH_REPLACE : self::MATCH_FILTERED;
-}
-
-return self::MATCH_NONE;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver;
-
-use Composer\Package\CompletePackageInterface;
-
-
-
-
-
-
-class Problem
-{
-
-
-
-
-protected $reasonSeen;
-
-
-
-
-
-protected $reasons = array();
-
-protected $section = 0;
-
-protected $pool;
-
-public function __construct(Pool $pool)
-{
-$this->pool = $pool;
-}
-
-
-
-
-
-
-public function addRule(Rule $rule)
-{
-$this->addReason(spl_object_hash($rule), array(
-'rule' => $rule,
-'job' => $rule->getJob(),
-));
-}
-
-
-
-
-
-
-public function getReasons()
-{
-return $this->reasons;
-}
-
-
-
-
-
-
-
-public function getPrettyString(array $installedMap = array())
-{
-$reasons = call_user_func_array('array_merge', array_reverse($this->reasons));
-
-if (count($reasons) === 1) {
-reset($reasons);
-$reason = current($reasons);
-
-$rule = $reason['rule'];
-$job = $reason['job'];
-
-if (isset($job['constraint'])) {
-$packages = $this->pool->whatProvides($job['packageName'], $job['constraint']);
-} else {
-$packages = array();
-}
-
-if ($job && $job['cmd'] === 'install' && empty($packages)) {
-
-
- if ($job['packageName'] === 'php' || $job['packageName'] === 'php-64bit' || $job['packageName'] === 'hhvm') {
-$version = phpversion();
-$available = $this->pool->whatProvides($job['packageName']);
-
-if (count($available)) {
-$firstAvailable = reset($available);
-$version = $firstAvailable->getPrettyVersion();
-$extra = $firstAvailable->getExtra();
-if ($firstAvailable instanceof CompletePackageInterface && isset($extra['config.platform']) && $extra['config.platform'] === true) {
-$version .= '; ' . $firstAvailable->getDescription();
-}
-}
-
-$msg = "\n    - This package requires ".$job['packageName'].$this->constraintToText($job['constraint']).' but ';
-
-if (defined('HHVM_VERSION')) {
-return $msg . 'your HHVM version does not satisfy that requirement.';
-}
-
-if ($job['packageName'] === 'hhvm') {
-return $msg . 'you are running this with PHP and not HHVM.';
-}
-
-return $msg . 'your PHP version ('. $version .') does not satisfy that requirement.';
-}
-
-
- if (0 === stripos($job['packageName'], 'ext-')) {
-if (false !== strpos($job['packageName'], ' ')) {
-return "\n    - The requested PHP extension ".$job['packageName'].' should be required as '.str_replace(' ', '-', $job['packageName']).'.';
-}
-
-$ext = substr($job['packageName'], 4);
-$error = extension_loaded($ext) ? 'has the wrong version ('.(phpversion($ext) ?: '0').') installed' : 'is missing from your system';
-
-return "\n    - The requested PHP extension ".$job['packageName'].$this->constraintToText($job['constraint']).' '.$error.'. Install or enable PHP\'s '.$ext.' extension.';
-}
-
-
- if (0 === stripos($job['packageName'], 'lib-')) {
-if (strtolower($job['packageName']) === 'lib-icu') {
-$error = extension_loaded('intl') ? 'has the wrong version installed, try upgrading the intl extension.' : 'is missing from your system, make sure the intl extension is loaded.';
-
-return "\n    - The requested linked library ".$job['packageName'].$this->constraintToText($job['constraint']).' '.$error;
-}
-
-return "\n    - The requested linked library ".$job['packageName'].$this->constraintToText($job['constraint']).' has the wrong version installed or is missing from your system, make sure to load the extension providing it.';
-}
-
-if (!preg_match('{^[A-Za-z0-9_./-]+$}', $job['packageName'])) {
-$illegalChars = preg_replace('{[A-Za-z0-9_./-]+}', '', $job['packageName']);
-
-return "\n    - The requested package ".$job['packageName'].' could not be found, it looks like its name is invalid, "'.$illegalChars.'" is not allowed in package names.';
-}
-
-if ($providers = $this->pool->whatProvides($job['packageName'], $job['constraint'], true, true)) {
-return "\n    - The requested package ".$job['packageName'].$this->constraintToText($job['constraint']).' is satisfiable by '.$this->getPackageList($providers).' but these conflict with your requirements or minimum-stability.';
-}
-
-if ($providers = $this->pool->whatProvides($job['packageName'], null, true, true)) {
-return "\n    - The requested package ".$job['packageName'].$this->constraintToText($job['constraint']).' exists as '.$this->getPackageList($providers).' but these are rejected by your constraint.';
-}
-
-return "\n    - The requested package ".$job['packageName'].' could not be found in any version, there may be a typo in the package name.';
-}
-}
-
-$messages = array();
-
-foreach ($reasons as $reason) {
-$rule = $reason['rule'];
-$job = $reason['job'];
-
-if ($job) {
-$messages[] = $this->jobToText($job);
-} elseif ($rule) {
-if ($rule instanceof Rule) {
-$messages[] = $rule->getPrettyString($this->pool, $installedMap);
-}
-}
-}
-
-return "\n    - ".implode("\n    - ", $messages);
-}
-
-
-
-
-
-
-
-protected function addReason($id, $reason)
-{
-if (!isset($this->reasonSeen[$id])) {
-$this->reasonSeen[$id] = true;
-$this->reasons[$this->section][] = $reason;
-}
-}
-
-public function nextSection()
-{
-$this->section++;
-}
-
-
-
-
-
-
-
-protected function jobToText($job)
-{
-switch ($job['cmd']) {
-case 'install':
-$packages = $this->pool->whatProvides($job['packageName'], $job['constraint']);
-if (!$packages) {
-return 'No package found to satisfy install request for '.$job['packageName'].$this->constraintToText($job['constraint']);
-}
-
-return 'Installation request for '.$job['packageName'].$this->constraintToText($job['constraint']).' -> satisfiable by '.$this->getPackageList($packages).'.';
-case 'update':
-return 'Update request for '.$job['packageName'].$this->constraintToText($job['constraint']).'.';
-case 'remove':
-return 'Removal request for '.$job['packageName'].$this->constraintToText($job['constraint']).'';
-}
-
-if (isset($job['constraint'])) {
-$packages = $this->pool->whatProvides($job['packageName'], $job['constraint']);
-} else {
-$packages = array();
-}
-
-return 'Job(cmd='.$job['cmd'].', target='.$job['packageName'].', packages=['.$this->getPackageList($packages).'])';
-}
-
-protected function getPackageList($packages)
-{
-$prepared = array();
-foreach ($packages as $package) {
-$prepared[$package->getName()]['name'] = $package->getPrettyName();
-$prepared[$package->getName()]['versions'][$package->getVersion()] = $package->getPrettyVersion();
-}
-foreach ($prepared as $name => $package) {
-$prepared[$name] = $package['name'].'['.implode(', ', $package['versions']).']';
-}
-
-return implode(', ', $prepared);
-}
-
-
-
-
-
-
-
-protected function constraintToText($constraint)
-{
-return $constraint ? ' '.$constraint->getPrettyString() : '';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver;
-
-use Composer\Semver\Constraint\ConstraintInterface;
-
-
-
-
-class Request
-{
-protected $jobs;
-
-public function __construct()
-{
-$this->jobs = array();
-}
-
-public function install($packageName, ConstraintInterface $constraint = null)
-{
-$this->addJob($packageName, 'install', $constraint);
-}
-
-public function update($packageName, ConstraintInterface $constraint = null)
-{
-$this->addJob($packageName, 'update', $constraint);
-}
-
-public function remove($packageName, ConstraintInterface $constraint = null)
-{
-$this->addJob($packageName, 'remove', $constraint);
-}
-
-
-
-
-
-
-
-
-
-public function fix($packageName, ConstraintInterface $constraint = null)
-{
-$this->addJob($packageName, 'install', $constraint, true);
-}
-
-protected function addJob($packageName, $cmd, ConstraintInterface $constraint = null, $fixed = false)
-{
-$packageName = strtolower($packageName);
-
-$this->jobs[] = array(
-'cmd' => $cmd,
-'packageName' => $packageName,
-'constraint' => $constraint,
-'fixed' => $fixed,
-);
-}
-
-public function updateAll()
-{
-$this->jobs[] = array('cmd' => 'update-all');
-}
-
-public function getJobs()
-{
-return $this->jobs;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver;
-
-use Composer\Package\CompletePackage;
-use Composer\Package\Link;
-use Composer\Package\PackageInterface;
-
-
-
-
-
-abstract class Rule
-{
-
- const RULE_INTERNAL_ALLOW_UPDATE = 1;
-const RULE_JOB_INSTALL = 2;
-const RULE_JOB_REMOVE = 3;
-const RULE_PACKAGE_CONFLICT = 6;
-const RULE_PACKAGE_REQUIRES = 7;
-const RULE_PACKAGE_OBSOLETES = 8;
-const RULE_INSTALLED_PACKAGE_OBSOLETES = 9;
-const RULE_PACKAGE_SAME_NAME = 10;
-const RULE_PACKAGE_IMPLICIT_OBSOLETES = 11;
-const RULE_LEARNED = 12;
-const RULE_PACKAGE_ALIAS = 13;
-
-
- const BITFIELD_TYPE = 0;
-const BITFIELD_REASON = 8;
-const BITFIELD_DISABLED = 16;
-
-protected $bitfield;
-protected $job;
-protected $reasonData;
-
-
-
-
-
-
-public function __construct($reason, $reasonData, $job = null)
-{
-$this->reasonData = $reasonData;
-
-if ($job) {
-$this->job = $job;
-}
-
-$this->bitfield = (0 << self::BITFIELD_DISABLED) |
-($reason << self::BITFIELD_REASON) |
-(255 << self::BITFIELD_TYPE);
-}
-
-abstract public function getLiterals();
-
-abstract public function getHash();
-
-public function getJob()
-{
-return $this->job;
-}
-
-abstract public function equals(Rule $rule);
-
-public function getReason()
-{
-return ($this->bitfield & (255 << self::BITFIELD_REASON)) >> self::BITFIELD_REASON;
-}
-
-public function getReasonData()
-{
-return $this->reasonData;
-}
-
-public function getRequiredPackage()
-{
-if ($this->getReason() === self::RULE_JOB_INSTALL) {
-return $this->reasonData;
-}
-
-if ($this->getReason() === self::RULE_PACKAGE_REQUIRES) {
-return $this->reasonData->getTarget();
-}
-}
-
-public function setType($type)
-{
-$this->bitfield = ($this->bitfield & ~(255 << self::BITFIELD_TYPE)) | ((255 & $type) << self::BITFIELD_TYPE);
-}
-
-public function getType()
-{
-return ($this->bitfield & (255 << self::BITFIELD_TYPE)) >> self::BITFIELD_TYPE;
-}
-
-public function disable()
-{
-$this->bitfield = ($this->bitfield & ~(255 << self::BITFIELD_DISABLED)) | (1 << self::BITFIELD_DISABLED);
-}
-
-public function enable()
-{
-$this->bitfield &= ~(255 << self::BITFIELD_DISABLED);
-}
-
-public function isDisabled()
-{
-return (bool) (($this->bitfield & (255 << self::BITFIELD_DISABLED)) >> self::BITFIELD_DISABLED);
-}
-
-public function isEnabled()
-{
-return !(($this->bitfield & (255 << self::BITFIELD_DISABLED)) >> self::BITFIELD_DISABLED);
-}
-
-abstract public function isAssertion();
-
-public function getPrettyString(Pool $pool, array $installedMap = array())
-{
-$literals = $this->getLiterals();
-
-$ruleText = '';
-foreach ($literals as $i => $literal) {
-if ($i != 0) {
-$ruleText .= '|';
-}
-$ruleText .= $pool->literalToPrettyString($literal, $installedMap);
-}
-
-switch ($this->getReason()) {
-case self::RULE_INTERNAL_ALLOW_UPDATE:
-return $ruleText;
-
-case self::RULE_JOB_INSTALL:
-return "Install command rule ($ruleText)";
-
-case self::RULE_JOB_REMOVE:
-return "Remove command rule ($ruleText)";
-
-case self::RULE_PACKAGE_CONFLICT:
-$package1 = $pool->literalToPackage($literals[0]);
-$package2 = $pool->literalToPackage($literals[1]);
-
-return $package1->getPrettyString().' conflicts with '.$this->formatPackagesUnique($pool, array($package2)).'.';
-
-case self::RULE_PACKAGE_REQUIRES:
-$sourceLiteral = array_shift($literals);
-$sourcePackage = $pool->literalToPackage($sourceLiteral);
-
-$requires = array();
-foreach ($literals as $literal) {
-$requires[] = $pool->literalToPackage($literal);
-}
-
-$text = $this->reasonData->getPrettyString($sourcePackage);
-if ($requires) {
-$text .= ' -> satisfiable by ' . $this->formatPackagesUnique($pool, $requires) . '.';
-} else {
-$targetName = $this->reasonData->getTarget();
-
-if ($targetName === 'php' || $targetName === 'php-64bit' || $targetName === 'hhvm') {
-
- if (defined('HHVM_VERSION')) {
-return $text . ' -> your HHVM version does not satisfy that requirement.';
-}
-
-if ($targetName === 'hhvm') {
-return $text . ' -> you are running this with PHP and not HHVM.';
-}
-
-$packages = $pool->whatProvides($targetName);
-$package = count($packages) ? current($packages) : phpversion();
-
-if (!($package instanceof CompletePackage)) {
-return $text . ' -> your PHP version ('.phpversion().') does not satisfy that requirement.';
-}
-
-$extra = $package->getExtra();
-
-if (!empty($extra['config.platform'])) {
-$text .= ' -> your PHP version ('.phpversion().') overridden by "config.platform.php" version ('.$package->getPrettyVersion().') does not satisfy that requirement.';
-} else {
-$text .= ' -> your PHP version ('.$package->getPrettyVersion().') does not satisfy that requirement.';
-}
-
-return $text;
-}
-
-if (0 === strpos($targetName, 'ext-')) {
-
- $ext = substr($targetName, 4);
-$error = extension_loaded($ext) ? 'has the wrong version ('.(phpversion($ext) ?: '0').') installed' : 'is missing from your system';
-
-return $text . ' -> the requested PHP extension '.$ext.' '.$error.'.';
-}
-
-if (0 === strpos($targetName, 'lib-')) {
-
- $lib = substr($targetName, 4);
-
-return $text . ' -> the requested linked library '.$lib.' has the wrong version installed or is missing from your system, make sure to have the extension providing it.';
-}
-
-if ($providers = $pool->whatProvides($targetName, $this->reasonData->getConstraint(), true, true)) {
-return $text . ' -> satisfiable by ' . $this->formatPackagesUnique($pool, $providers) .' but these conflict with your requirements or minimum-stability.';
-}
-
-return $text . ' -> no matching package found.';
-}
-
-return $text;
-
-case self::RULE_PACKAGE_OBSOLETES:
-return $ruleText;
-case self::RULE_INSTALLED_PACKAGE_OBSOLETES:
-return $ruleText;
-case self::RULE_PACKAGE_SAME_NAME:
-return 'Can only install one of: ' . $this->formatPackagesUnique($pool, $literals) . '.';
-case self::RULE_PACKAGE_IMPLICIT_OBSOLETES:
-return $ruleText;
-case self::RULE_LEARNED:
-return 'Conclusion: '.$ruleText;
-case self::RULE_PACKAGE_ALIAS:
-return $ruleText;
-default:
-return '('.$ruleText.')';
-}
-}
-
-
-
-
-
-
-
-protected function formatPackagesUnique($pool, array $packages)
-{
-$prepared = array();
-foreach ($packages as $package) {
-if (!is_object($package)) {
-$package = $pool->literalToPackage($package);
-}
-$prepared[$package->getName()]['name'] = $package->getPrettyName();
-$prepared[$package->getName()]['versions'][$package->getVersion()] = $package->getPrettyVersion();
-}
-foreach ($prepared as $name => $package) {
-$prepared[$name] = $package['name'].'['.implode(', ', $package['versions']).']';
-}
-
-return implode(', ', $prepared);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver;
-
-use Composer\Package\PackageInterface;
-use Composer\Package\Link;
-
-
-
-
-class Rule2Literals extends Rule
-{
-protected $literal1;
-protected $literal2;
-
-
-
-
-
-
-
-
-public function __construct($literal1, $literal2, $reason, $reasonData, $job = null)
-{
-parent::__construct($reason, $reasonData, $job);
-
-if ($literal1 < $literal2) {
-$this->literal1 = $literal1;
-$this->literal2 = $literal2;
-} else {
-$this->literal1 = $literal2;
-$this->literal2 = $literal1;
-}
-}
-
-public function getLiterals()
-{
-return array($this->literal1, $this->literal2);
-}
-
-public function getHash()
-{
-return $this->literal1.','.$this->literal2;
-}
-
-
-
-
-
-
-
-
-
-public function equals(Rule $rule)
-{
-
- if ($rule instanceof self) {
-if ($this->literal1 !== $rule->literal1) {
-return false;
-}
-
-if ($this->literal2 !== $rule->literal2) {
-return false;
-}
-
-return true;
-}
-
-$literals = $rule->getLiterals();
-if (2 != count($literals)) {
-return false;
-}
-
-if ($this->literal1 !== $literals[0]) {
-return false;
-}
-
-if ($this->literal2 !== $literals[1]) {
-return false;
-}
-
-return true;
-}
-
-public function isAssertion()
-{
-return false;
-}
-
-
-
-
-
-
-public function __toString()
-{
-$result = $this->isDisabled() ? 'disabled(' : '(';
-
-$result .= $this->literal1 . '|' . $this->literal2 . ')';
-
-return $result;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver;
-
-
-
-
-class RuleSet implements \IteratorAggregate, \Countable
-{
-
- const TYPE_PACKAGE = 0;
-const TYPE_JOB = 1;
-const TYPE_LEARNED = 4;
-
-
-
-
-
-
-public $ruleById;
-
-protected static $types = array(
-255 => 'UNKNOWN',
-self::TYPE_PACKAGE => 'PACKAGE',
-self::TYPE_JOB => 'JOB',
-self::TYPE_LEARNED => 'LEARNED',
-);
-
-protected $rules;
-protected $nextRuleId;
-
-protected $rulesByHash;
-
-public function __construct()
-{
-$this->nextRuleId = 0;
-
-foreach ($this->getTypes() as $type) {
-$this->rules[$type] = array();
-}
-
-$this->rulesByHash = array();
-}
-
-public function add(Rule $rule, $type)
-{
-if (!isset(self::$types[$type])) {
-throw new \OutOfBoundsException('Unknown rule type: ' . $type);
-}
-
-$hash = $rule->getHash();
-
-
- if (isset($this->rulesByHash[$hash])) {
-$potentialDuplicates = $this->rulesByHash[$hash];
-if (is_array($potentialDuplicates)) {
-foreach ($potentialDuplicates as $potentialDuplicate) {
-if ($rule->equals($potentialDuplicate)) {
-return;
-}
-}
-} else {
-if ($rule->equals($potentialDuplicates)) {
-return;
-}
-}
-}
-
-if (!isset($this->rules[$type])) {
-$this->rules[$type] = array();
-}
-
-$this->rules[$type][] = $rule;
-$this->ruleById[$this->nextRuleId] = $rule;
-$rule->setType($type);
-
-$this->nextRuleId++;
-
-if (!isset($this->rulesByHash[$hash])) {
-$this->rulesByHash[$hash] = $rule;
-} elseif (is_array($this->rulesByHash[$hash])) {
-$this->rulesByHash[$hash][] = $rule;
-} else {
-$originalRule = $this->rulesByHash[$hash];
-$this->rulesByHash[$hash] = array($originalRule, $rule);
-}
-}
-
-public function count()
-{
-return $this->nextRuleId;
-}
-
-public function ruleById($id)
-{
-return $this->ruleById[$id];
-}
-
-public function getRules()
-{
-return $this->rules;
-}
-
-public function getIterator()
-{
-return new RuleSetIterator($this->getRules());
-}
-
-public function getIteratorFor($types)
-{
-if (!is_array($types)) {
-$types = array($types);
-}
-
-$allRules = $this->getRules();
-$rules = array();
-
-foreach ($types as $type) {
-$rules[$type] = $allRules[$type];
-}
-
-return new RuleSetIterator($rules);
-}
-
-public function getIteratorWithout($types)
-{
-if (!is_array($types)) {
-$types = array($types);
-}
-
-$rules = $this->getRules();
-
-foreach ($types as $type) {
-unset($rules[$type]);
-}
-
-return new RuleSetIterator($rules);
-}
-
-public function getTypes()
-{
-$types = self::$types;
-unset($types[255]);
-
-return array_keys($types);
-}
-
-public function getPrettyString(Pool $pool = null)
-{
-$string = "\n";
-foreach ($this->rules as $type => $rules) {
-$string .= str_pad(self::$types[$type], 8, ' ') . ": ";
-foreach ($rules as $rule) {
-$string .= ($pool ? $rule->getPrettyString($pool) : $rule)."\n";
-}
-$string .= "\n\n";
-}
-
-return $string;
-}
-
-public function __toString()
-{
-return $this->getPrettyString(null);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver;
-
-use Composer\Package\PackageInterface;
-use Composer\Package\AliasPackage;
-use Composer\Repository\PlatformRepository;
-
-
-
-
-class RuleSetGenerator
-{
-protected $policy;
-protected $pool;
-protected $rules;
-protected $jobs;
-protected $installedMap;
-protected $whitelistedMap;
-protected $addedMap;
-protected $conflictAddedMap;
-protected $addedPackages;
-protected $addedPackagesByNames;
-
-public function __construct(PolicyInterface $policy, Pool $pool)
-{
-$this->policy = $policy;
-$this->pool = $pool;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-protected function createRequireRule(PackageInterface $package, array $providers, $reason, $reasonData = null)
-{
-$literals = array(-$package->id);
-
-foreach ($providers as $provider) {
-
- if ($provider === $package) {
-return null;
-}
-$literals[] = $provider->id;
-}
-
-return new GenericRule($literals, $reason, $reasonData);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-protected function createInstallOneOfRule(array $packages, $reason, $job)
-{
-$literals = array();
-foreach ($packages as $package) {
-$literals[] = $package->id;
-}
-
-return new GenericRule($literals, $reason, $job['packageName'], $job);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-protected function createRemoveRule(PackageInterface $package, $reason, $job)
-{
-return new GenericRule(array(-$package->id), $reason, $job['packageName'], $job);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-protected function createRule2Literals(PackageInterface $issuer, PackageInterface $provider, $reason, $reasonData = null)
-{
-
- if ($issuer === $provider) {
-return null;
-}
-
-return new Rule2Literals(-$issuer->id, -$provider->id, $reason, $reasonData);
-}
-
-
-
-
-
-
-
-
-
-
-private function addRule($type, Rule $newRule = null)
-{
-if (!$newRule) {
-return;
-}
-
-$this->rules->add($newRule, $type);
-}
-
-protected function whitelistFromPackage(PackageInterface $package)
-{
-$workQueue = new \SplQueue;
-$workQueue->enqueue($package);
-
-while (!$workQueue->isEmpty()) {
-$package = $workQueue->dequeue();
-if (isset($this->whitelistedMap[$package->id])) {
-continue;
-}
-
-$this->whitelistedMap[$package->id] = true;
-
-foreach ($package->getRequires() as $link) {
-$possibleRequires = $this->pool->whatProvides($link->getTarget(), $link->getConstraint(), true);
-
-foreach ($possibleRequires as $require) {
-$workQueue->enqueue($require);
-}
-}
-
-$obsoleteProviders = $this->pool->whatProvides($package->getName(), null, true);
-
-foreach ($obsoleteProviders as $provider) {
-if ($provider === $package) {
-continue;
-}
-
-if (($package instanceof AliasPackage) && $package->getAliasOf() === $provider) {
-$workQueue->enqueue($provider);
-}
-}
-}
-}
-
-protected function addRulesForPackage(PackageInterface $package, $ignorePlatformReqs)
-{
-$workQueue = new \SplQueue;
-$workQueue->enqueue($package);
-
-while (!$workQueue->isEmpty()) {
-
-$package = $workQueue->dequeue();
-if (isset($this->addedMap[$package->id])) {
-continue;
-}
-
-$this->addedMap[$package->id] = true;
-
-$this->addedPackages[] = $package;
-foreach ($package->getNames() as $name) {
-$this->addedPackagesByNames[$name][] = $package;
-}
-
-foreach ($package->getRequires() as $link) {
-if ($ignorePlatformReqs && preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $link->getTarget())) {
-continue;
-}
-
-$possibleRequires = $this->pool->whatProvides($link->getTarget(), $link->getConstraint());
-
-$this->addRule(RuleSet::TYPE_PACKAGE, $this->createRequireRule($package, $possibleRequires, Rule::RULE_PACKAGE_REQUIRES, $link));
-
-foreach ($possibleRequires as $require) {
-$workQueue->enqueue($require);
-}
-}
-
-$packageName = $package->getName();
-$obsoleteProviders = $this->pool->whatProvides($packageName, null);
-
-foreach ($obsoleteProviders as $provider) {
-if ($provider === $package) {
-continue;
-}
-
-if (($package instanceof AliasPackage) && $package->getAliasOf() === $provider) {
-$this->addRule(RuleSet::TYPE_PACKAGE, $this->createRequireRule($package, array($provider), Rule::RULE_PACKAGE_ALIAS, $package));
-} elseif (!$this->obsoleteImpossibleForAlias($package, $provider)) {
-$reason = ($packageName == $provider->getName()) ? Rule::RULE_PACKAGE_SAME_NAME : Rule::RULE_PACKAGE_IMPLICIT_OBSOLETES;
-$this->addRule(RuleSet::TYPE_PACKAGE, $this->createRule2Literals($package, $provider, $reason, $package));
-}
-}
-}
-}
-
-protected function addConflictRules()
-{
-
-foreach ($this->addedPackages as $package) {
-foreach ($package->getConflicts() as $link) {
-if (!isset($this->addedPackagesByNames[$link->getTarget()])) {
-continue;
-}
-
-
-foreach ($this->addedPackagesByNames[$link->getTarget()] as $possibleConflict) {
-$conflictMatch = $this->pool->match($possibleConflict, $link->getTarget(), $link->getConstraint(), true);
-
-if ($conflictMatch === Pool::MATCH || $conflictMatch === Pool::MATCH_REPLACE) {
-$this->addRule(RuleSet::TYPE_PACKAGE, $this->createRule2Literals($package, $possibleConflict, Rule::RULE_PACKAGE_CONFLICT, $link));
-}
-
-}
-}
-
-
- $isInstalled = isset($this->installedMap[$package->id]);
-
-foreach ($package->getReplaces() as $link) {
-if (!isset($this->addedPackagesByNames[$link->getTarget()])) {
-continue;
-}
-
-
-foreach ($this->addedPackagesByNames[$link->getTarget()] as $provider) {
-if ($provider === $package) {
-continue;
-}
-
-if (!$this->obsoleteImpossibleForAlias($package, $provider)) {
-$reason = $isInstalled ? Rule::RULE_INSTALLED_PACKAGE_OBSOLETES : Rule::RULE_PACKAGE_OBSOLETES;
-$this->addRule(RuleSet::TYPE_PACKAGE, $this->createRule2Literals($package, $provider, $reason, $link));
-}
-}
-}
-}
-}
-
-protected function obsoleteImpossibleForAlias($package, $provider)
-{
-$packageIsAlias = $package instanceof AliasPackage;
-$providerIsAlias = $provider instanceof AliasPackage;
-
-$impossible = (
-($packageIsAlias && $package->getAliasOf() === $provider) ||
-($providerIsAlias && $provider->getAliasOf() === $package) ||
-($packageIsAlias && $providerIsAlias && $provider->getAliasOf() === $package->getAliasOf())
-);
-
-return $impossible;
-}
-
-protected function whitelistFromJobs()
-{
-foreach ($this->jobs as $job) {
-switch ($job['cmd']) {
-case 'install':
-$packages = $this->pool->whatProvides($job['packageName'], $job['constraint'], true);
-foreach ($packages as $package) {
-$this->whitelistFromPackage($package);
-}
-break;
-}
-}
-}
-
-protected function addRulesForJobs($ignorePlatformReqs)
-{
-foreach ($this->jobs as $job) {
-switch ($job['cmd']) {
-case 'install':
-if (!$job['fixed'] && $ignorePlatformReqs && preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $job['packageName'])) {
-break;
-}
-
-$packages = $this->pool->whatProvides($job['packageName'], $job['constraint']);
-if ($packages) {
-foreach ($packages as $package) {
-if (!isset($this->installedMap[$package->id])) {
-$this->addRulesForPackage($package, $ignorePlatformReqs);
-}
-}
-
-$rule = $this->createInstallOneOfRule($packages, Rule::RULE_JOB_INSTALL, $job);
-$this->addRule(RuleSet::TYPE_JOB, $rule);
-}
-break;
-case 'remove':
-
- 
- $packages = $this->pool->whatProvides($job['packageName'], $job['constraint']);
-foreach ($packages as $package) {
-$rule = $this->createRemoveRule($package, Rule::RULE_JOB_REMOVE, $job);
-$this->addRule(RuleSet::TYPE_JOB, $rule);
-}
-break;
-}
-}
-}
-
-public function getRulesFor($jobs, $installedMap, $ignorePlatformReqs = false)
-{
-$this->jobs = $jobs;
-$this->rules = new RuleSet;
-$this->installedMap = $installedMap;
-
-$this->whitelistedMap = array();
-foreach ($this->installedMap as $package) {
-$this->whitelistFromPackage($package);
-}
-$this->whitelistFromJobs();
-
-$this->pool->setWhitelist($this->whitelistedMap);
-
-$this->addedMap = array();
-$this->conflictAddedMap = array();
-$this->addedPackages = array();
-$this->addedPackagesByNames = array();
-foreach ($this->installedMap as $package) {
-$this->addRulesForPackage($package, $ignorePlatformReqs);
-}
-
-$this->addRulesForJobs($ignorePlatformReqs);
-
-$this->addConflictRules();
-
-
- $this->addedPackages = $this->addedPackagesByNames = null;
-
-return $this->rules;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver;
-
-
-
-
-class RuleSetIterator implements \Iterator
-{
-protected $rules;
-protected $types;
-
-protected $currentOffset;
-protected $currentType;
-protected $currentTypeOffset;
-
-public function __construct(array $rules)
-{
-$this->rules = $rules;
-$this->types = array_keys($rules);
-sort($this->types);
-
-$this->rewind();
-}
-
-public function current()
-{
-return $this->rules[$this->currentType][$this->currentOffset];
-}
-
-public function key()
-{
-return $this->currentType;
-}
-
-public function next()
-{
-$this->currentOffset++;
-
-if (!isset($this->rules[$this->currentType])) {
-return;
-}
-
-if ($this->currentOffset >= count($this->rules[$this->currentType])) {
-$this->currentOffset = 0;
-
-do {
-$this->currentTypeOffset++;
-
-if (!isset($this->types[$this->currentTypeOffset])) {
-$this->currentType = -1;
-break;
-}
-
-$this->currentType = $this->types[$this->currentTypeOffset];
-} while (isset($this->types[$this->currentTypeOffset]) && !count($this->rules[$this->currentType]));
-}
-}
-
-public function rewind()
-{
-$this->currentOffset = 0;
-
-$this->currentTypeOffset = -1;
-$this->currentType = -1;
-
-do {
-$this->currentTypeOffset++;
-
-if (!isset($this->types[$this->currentTypeOffset])) {
-$this->currentType = -1;
-break;
-}
-
-$this->currentType = $this->types[$this->currentTypeOffset];
-} while (isset($this->types[$this->currentTypeOffset]) && !count($this->rules[$this->currentType]));
-}
-
-public function valid()
-{
-return isset($this->rules[$this->currentType])
-&& isset($this->rules[$this->currentType][$this->currentOffset]);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver;
-
-
-
-
-
-
-
-
-
-class RuleWatchChain extends \SplDoublyLinkedList
-{
-protected $offset = 0;
-
-
-
-
-
-
-public function seek($offset)
-{
-$this->rewind();
-for ($i = 0; $i < $offset; $i++, $this->next());
-}
-
-
-
-
-
-
-
-
-
-public function remove()
-{
-$offset = $this->key();
-$this->offsetUnset($offset);
-$this->seek($offset);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver;
-
-
-
-
-
-
-
-
-
-
-
-class RuleWatchGraph
-{
-protected $watchChains = array();
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function insert(RuleWatchNode $node)
-{
-if ($node->getRule()->isAssertion()) {
-return;
-}
-
-foreach (array($node->watch1, $node->watch2) as $literal) {
-if (!isset($this->watchChains[$literal])) {
-$this->watchChains[$literal] = new RuleWatchChain;
-}
-
-$this->watchChains[$literal]->unshift($node);
-}
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function propagateLiteral($decidedLiteral, $level, $decisions)
-{
-
- 
- 
- $literal = -$decidedLiteral;
-
-if (!isset($this->watchChains[$literal])) {
-return null;
-}
-
-$chain = $this->watchChains[$literal];
-
-$chain->rewind();
-while ($chain->valid()) {
-$node = $chain->current();
-$otherWatch = $node->getOtherWatch($literal);
-
-if (!$node->getRule()->isDisabled() && !$decisions->satisfy($otherWatch)) {
-$ruleLiterals = $node->getRule()->getLiterals();
-
-$alternativeLiterals = array_filter($ruleLiterals, function ($ruleLiteral) use ($literal, $otherWatch, $decisions) {
-return $literal !== $ruleLiteral &&
-$otherWatch !== $ruleLiteral &&
-!$decisions->conflict($ruleLiteral);
-});
-
-if ($alternativeLiterals) {
-reset($alternativeLiterals);
-$this->moveWatch($literal, current($alternativeLiterals), $node);
-continue;
-}
-
-if ($decisions->conflict($otherWatch)) {
-return $node->getRule();
-}
-
-$decisions->decide($otherWatch, $level, $node->getRule());
-}
-
-$chain->next();
-}
-
-return null;
-}
-
-
-
-
-
-
-
-
-
-
-protected function moveWatch($fromLiteral, $toLiteral, $node)
-{
-if (!isset($this->watchChains[$toLiteral])) {
-$this->watchChains[$toLiteral] = new RuleWatchChain;
-}
-
-$node->moveWatch($fromLiteral, $toLiteral);
-$this->watchChains[$fromLiteral]->remove();
-$this->watchChains[$toLiteral]->unshift($node);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver;
-
-
-
-
-
-
-
-
-class RuleWatchNode
-{
-public $watch1;
-public $watch2;
-
-protected $rule;
-
-
-
-
-
-
-public function __construct($rule)
-{
-$this->rule = $rule;
-
-$literals = $rule->getLiterals();
-
-$literalCount = count($literals);
-$this->watch1 = $literalCount > 0 ? $literals[0] : 0;
-$this->watch2 = $literalCount > 1 ? $literals[1] : 0;
-}
-
-
-
-
-
-
-
-
-
-public function watch2OnHighest(Decisions $decisions)
-{
-$literals = $this->rule->getLiterals();
-
-
- if (count($literals) < 3) {
-return;
-}
-
-$watchLevel = 0;
-
-foreach ($literals as $literal) {
-$level = $decisions->decisionLevel($literal);
-
-if ($level > $watchLevel) {
-$this->watch2 = $literal;
-$watchLevel = $level;
-}
-}
-}
-
-
-
-
-
-
-public function getRule()
-{
-return $this->rule;
-}
-
-
-
-
-
-
-
-public function getOtherWatch($literal)
-{
-if ($this->watch1 == $literal) {
-return $this->watch2;
-}
-
-return $this->watch1;
-}
-
-
-
-
-
-
-
-public function moveWatch($from, $to)
-{
-if ($this->watch1 == $from) {
-$this->watch1 = $to;
-} else {
-$this->watch2 = $to;
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver;
-
-use Composer\IO\IOInterface;
-use Composer\Repository\RepositoryInterface;
-use Composer\Repository\PlatformRepository;
-
-
-
-
-class Solver
-{
-const BRANCH_LITERALS = 0;
-const BRANCH_LEVEL = 1;
-
-
-protected $policy;
-
-protected $pool;
-
-protected $installed;
-
-protected $rules;
-
-protected $ruleSetGenerator;
-
-protected $jobs;
-
-
-protected $updateMap = array();
-
-protected $watchGraph;
-
-protected $decisions;
-
-protected $installedMap;
-
-
-protected $propagateIndex;
-
-protected $branches = array();
-
-protected $problems = array();
-
-protected $learnedPool = array();
-
-protected $learnedWhy = array();
-
-
-protected $io;
-
-
-
-
-
-
-
-public function __construct(PolicyInterface $policy, Pool $pool, RepositoryInterface $installed, IOInterface $io)
-{
-$this->io = $io;
-$this->policy = $policy;
-$this->pool = $pool;
-$this->installed = $installed;
-$this->ruleSetGenerator = new RuleSetGenerator($policy, $pool);
-}
-
-
-
-
-public function getRuleSetSize()
-{
-return count($this->rules);
-}
-
-
-
-private function makeAssertionRuleDecisions()
-{
-$decisionStart = count($this->decisions) - 1;
-
-$rulesCount = count($this->rules);
-for ($ruleIndex = 0; $ruleIndex < $rulesCount; $ruleIndex++) {
-$rule = $this->rules->ruleById[$ruleIndex];
-
-if (!$rule->isAssertion() || $rule->isDisabled()) {
-continue;
-}
-
-$literals = $rule->getLiterals();
-$literal = $literals[0];
-
-if (!$this->decisions->decided($literal)) {
-$this->decisions->decide($literal, 1, $rule);
-continue;
-}
-
-if ($this->decisions->satisfy($literal)) {
-continue;
-}
-
-
- if (RuleSet::TYPE_LEARNED === $rule->getType()) {
-$rule->disable();
-continue;
-}
-
-$conflict = $this->decisions->decisionRule($literal);
-
-if ($conflict && RuleSet::TYPE_PACKAGE === $conflict->getType()) {
-$problem = new Problem($this->pool);
-
-$problem->addRule($rule);
-$problem->addRule($conflict);
-$this->disableProblem($rule);
-$this->problems[] = $problem;
-continue;
-}
-
-
- $problem = new Problem($this->pool);
-$problem->addRule($rule);
-$problem->addRule($conflict);
-
-
- 
- foreach ($this->rules->getIteratorFor(RuleSet::TYPE_JOB) as $assertRule) {
-if ($assertRule->isDisabled() || !$assertRule->isAssertion()) {
-continue;
-}
-
-$assertRuleLiterals = $assertRule->getLiterals();
-$assertRuleLiteral = $assertRuleLiterals[0];
-
-if (abs($literal) !== abs($assertRuleLiteral)) {
-continue;
-}
-
-$problem->addRule($assertRule);
-$this->disableProblem($assertRule);
-}
-$this->problems[] = $problem;
-
-$this->decisions->resetToOffset($decisionStart);
-$ruleIndex = -1;
-}
-}
-
-protected function setupInstalledMap()
-{
-$this->installedMap = array();
-foreach ($this->installed->getPackages() as $package) {
-$this->installedMap[$package->id] = $package;
-}
-}
-
-
-
-
-protected function checkForRootRequireProblems($ignorePlatformReqs)
-{
-foreach ($this->jobs as $job) {
-switch ($job['cmd']) {
-case 'update':
-$packages = $this->pool->whatProvides($job['packageName'], $job['constraint']);
-foreach ($packages as $package) {
-if (isset($this->installedMap[$package->id])) {
-$this->updateMap[$package->id] = true;
-}
-}
-break;
-
-case 'update-all':
-foreach ($this->installedMap as $package) {
-$this->updateMap[$package->id] = true;
-}
-break;
-
-case 'install':
-if ($ignorePlatformReqs && preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $job['packageName'])) {
-break;
-}
-
-if (!$this->pool->whatProvides($job['packageName'], $job['constraint'])) {
-$problem = new Problem($this->pool);
-$problem->addRule(new GenericRule(array(), null, null, $job));
-$this->problems[] = $problem;
-}
-break;
-}
-}
-}
-
-
-
-
-
-
-public function solve(Request $request, $ignorePlatformReqs = false)
-{
-$this->jobs = $request->getJobs();
-
-$this->setupInstalledMap();
-$this->rules = $this->ruleSetGenerator->getRulesFor($this->jobs, $this->installedMap, $ignorePlatformReqs);
-$this->checkForRootRequireProblems($ignorePlatformReqs);
-$this->decisions = new Decisions($this->pool);
-$this->watchGraph = new RuleWatchGraph;
-
-foreach ($this->rules as $rule) {
-$this->watchGraph->insert(new RuleWatchNode($rule));
-}
-
-
-$this->makeAssertionRuleDecisions();
-
-$this->io->writeError('Resolving dependencies through SAT', true, IOInterface::DEBUG);
-$before = microtime(true);
-$this->runSat(true);
-$this->io->writeError('', true, IOInterface::DEBUG);
-$this->io->writeError(sprintf('Dependency resolution completed in %.3f seconds', microtime(true) - $before), true, IOInterface::VERBOSE);
-
-
- foreach ($this->installedMap as $packageId => $void) {
-if ($this->decisions->undecided($packageId)) {
-$this->decisions->decide(-$packageId, 1, null);
-}
-}
-
-if ($this->problems) {
-throw new SolverProblemsException($this->problems, $this->installedMap);
-}
-
-$transaction = new Transaction($this->policy, $this->pool, $this->installedMap, $this->decisions);
-
-return $transaction->getOperations();
-}
-
-
-
-
-
-
-
-
-
-
-protected function propagate($level)
-{
-while ($this->decisions->validOffset($this->propagateIndex)) {
-$decision = $this->decisions->atOffset($this->propagateIndex);
-
-$conflict = $this->watchGraph->propagateLiteral(
-$decision[Decisions::DECISION_LITERAL],
-$level,
-$this->decisions
-);
-
-$this->propagateIndex++;
-
-if ($conflict) {
-return $conflict;
-}
-}
-
-return null;
-}
-
-
-
-
-
-
-private function revert($level)
-{
-while (!$this->decisions->isEmpty()) {
-$literal = $this->decisions->lastLiteral();
-
-if ($this->decisions->undecided($literal)) {
-break;
-}
-
-$decisionLevel = $this->decisions->decisionLevel($literal);
-
-if ($decisionLevel <= $level) {
-break;
-}
-
-$this->decisions->revertLast();
-$this->propagateIndex = count($this->decisions);
-}
-
-while (!empty($this->branches) && $this->branches[count($this->branches) - 1][self::BRANCH_LEVEL] >= $level) {
-array_pop($this->branches);
-}
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-private function setPropagateLearn($level, $literal, $disableRules, Rule $rule)
-{
-$level++;
-
-$this->decisions->decide($literal, $level, $rule);
-
-while (true) {
-$rule = $this->propagate($level);
-
-if (!$rule) {
-break;
-}
-
-if ($level == 1) {
-return $this->analyzeUnsolvable($rule, $disableRules);
-}
-
-
- list($learnLiteral, $newLevel, $newRule, $why) = $this->analyze($level, $rule);
-
-if ($newLevel <= 0 || $newLevel >= $level) {
-throw new SolverBugException(
-"Trying to revert to invalid level ".(int) $newLevel." from level ".(int) $level."."
-);
-} elseif (!$newRule) {
-throw new SolverBugException(
-"No rule was learned from analyzing $rule at level $level."
-);
-}
-
-$level = $newLevel;
-
-$this->revert($level);
-
-$this->rules->add($newRule, RuleSet::TYPE_LEARNED);
-
-$this->learnedWhy[spl_object_hash($newRule)] = $why;
-
-$ruleNode = new RuleWatchNode($newRule);
-$ruleNode->watch2OnHighest($this->decisions);
-$this->watchGraph->insert($ruleNode);
-
-$this->decisions->decide($learnLiteral, $level, $newRule);
-}
-
-return $level;
-}
-
-
-
-
-
-
-
-
-private function selectAndInstall($level, array $decisionQueue, $disableRules, Rule $rule)
-{
-
- $literals = $this->policy->selectPreferredPackages($this->pool, $this->installedMap, $decisionQueue, $rule->getRequiredPackage());
-
-$selectedLiteral = array_shift($literals);
-
-
- if (count($literals)) {
-$this->branches[] = array($literals, $level);
-}
-
-return $this->setPropagateLearn($level, $selectedLiteral, $disableRules, $rule);
-}
-
-
-
-
-
-
-protected function analyze($level, Rule $rule)
-{
-$analyzedRule = $rule;
-$ruleLevel = 1;
-$num = 0;
-$l1num = 0;
-$seen = array();
-$learnedLiterals = array(null);
-
-$decisionId = count($this->decisions);
-
-$this->learnedPool[] = array();
-
-while (true) {
-$this->learnedPool[count($this->learnedPool) - 1][] = $rule;
-
-foreach ($rule->getLiterals() as $literal) {
-
- if ($this->decisions->satisfy($literal)) {
-continue;
-}
-
-if (isset($seen[abs($literal)])) {
-continue;
-}
-$seen[abs($literal)] = true;
-
-$l = $this->decisions->decisionLevel($literal);
-
-if (1 === $l) {
-$l1num++;
-} elseif ($level === $l) {
-$num++;
-} else {
-
- $learnedLiterals[] = $literal;
-
-if ($l > $ruleLevel) {
-$ruleLevel = $l;
-}
-}
-}
-
-$l1retry = true;
-while ($l1retry) {
-$l1retry = false;
-
-if (!$num && !--$l1num) {
-
- break 2;
-}
-
-while (true) {
-if ($decisionId <= 0) {
-throw new SolverBugException(
-"Reached invalid decision id $decisionId while looking through $rule for a literal present in the analyzed rule $analyzedRule."
-);
-}
-
-$decisionId--;
-
-$decision = $this->decisions->atOffset($decisionId);
-$literal = $decision[Decisions::DECISION_LITERAL];
-
-if (isset($seen[abs($literal)])) {
-break;
-}
-}
-
-unset($seen[abs($literal)]);
-
-if ($num && 0 === --$num) {
-$learnedLiterals[0] = -abs($literal);
-
-if (!$l1num) {
-break 2;
-}
-
-foreach ($learnedLiterals as $i => $learnedLiteral) {
-if ($i !== 0) {
-unset($seen[abs($learnedLiteral)]);
-}
-}
-
- $l1num++;
-$l1retry = true;
-}
-}
-
-$decision = $this->decisions->atOffset($decisionId);
-$rule = $decision[Decisions::DECISION_REASON];
-}
-
-$why = count($this->learnedPool) - 1;
-
-if (!$learnedLiterals[0]) {
-throw new SolverBugException(
-"Did not find a learnable literal in analyzed rule $analyzedRule."
-);
-}
-
-$newRule = new GenericRule($learnedLiterals, Rule::RULE_LEARNED, $why);
-
-return array($learnedLiterals[0], $ruleLevel, $newRule, $why);
-}
-
-
-
-
-
-private function analyzeUnsolvableRule(Problem $problem, Rule $conflictRule)
-{
-if ($conflictRule->getType() == RuleSet::TYPE_LEARNED) {
-$why = spl_object_hash($conflictRule);
-$learnedWhy = $this->learnedWhy[$why];
-$problemRules = $this->learnedPool[$learnedWhy];
-
-foreach ($problemRules as $problemRule) {
-$this->analyzeUnsolvableRule($problem, $problemRule);
-}
-
-return;
-}
-
-if ($conflictRule->getType() == RuleSet::TYPE_PACKAGE) {
-
- return;
-}
-
-$problem->nextSection();
-$problem->addRule($conflictRule);
-}
-
-
-
-
-
-
-private function analyzeUnsolvable(Rule $conflictRule, $disableRules)
-{
-$problem = new Problem($this->pool);
-$problem->addRule($conflictRule);
-
-$this->analyzeUnsolvableRule($problem, $conflictRule);
-
-$this->problems[] = $problem;
-
-$seen = array();
-$literals = $conflictRule->getLiterals();
-
-foreach ($literals as $literal) {
-
- if ($this->decisions->satisfy($literal)) {
-continue;
-}
-$seen[abs($literal)] = true;
-}
-
-foreach ($this->decisions as $decision) {
-$literal = $decision[Decisions::DECISION_LITERAL];
-
-
- if (!isset($seen[abs($literal)])) {
-continue;
-}
-
-$why = $decision[Decisions::DECISION_REASON];
-
-$problem->addRule($why);
-$this->analyzeUnsolvableRule($problem, $why);
-
-$literals = $why->getLiterals();
-
-foreach ($literals as $literal) {
-
- if ($this->decisions->satisfy($literal)) {
-continue;
-}
-$seen[abs($literal)] = true;
-}
-}
-
-if ($disableRules) {
-foreach ($this->problems[count($this->problems) - 1] as $reason) {
-$this->disableProblem($reason['rule']);
-}
-
-$this->resetSolver();
-
-return 1;
-}
-
-return 0;
-}
-
-
-
-
-private function disableProblem(Rule $why)
-{
-$job = $why->getJob();
-
-if (!$job) {
-$why->disable();
-
-return;
-}
-
-
- foreach ($this->rules as $rule) {
-
-if ($job === $rule->getJob()) {
-$rule->disable();
-}
-}
-}
-
-private function resetSolver()
-{
-$this->decisions->reset();
-
-$this->propagateIndex = 0;
-$this->branches = array();
-
-$this->enableDisableLearnedRules();
-$this->makeAssertionRuleDecisions();
-}
-
-
-
-
-
-
-
-
-private function enableDisableLearnedRules()
-{
-foreach ($this->rules->getIteratorFor(RuleSet::TYPE_LEARNED) as $rule) {
-$why = $this->learnedWhy[spl_object_hash($rule)];
-$problemRules = $this->learnedPool[$why];
-
-$foundDisabled = false;
-foreach ($problemRules as $problemRule) {
-if ($problemRule->isDisabled()) {
-$foundDisabled = true;
-break;
-}
-}
-
-if ($foundDisabled && $rule->isEnabled()) {
-$rule->disable();
-} elseif (!$foundDisabled && $rule->isDisabled()) {
-$rule->enable();
-}
-}
-}
-
-
-
-
-private function runSat($disableRules = true)
-{
-$this->propagateIndex = 0;
-
-
-
-
-
-
-
-
-
-
-
-$decisionQueue = array();
-$decisionSupplementQueue = array();
-
-
-
-$disableRules = array();
-
-$level = 1;
-$systemLevel = $level + 1;
-$installedPos = 0;
-
-while (true) {
-if (1 === $level) {
-$conflictRule = $this->propagate($level);
-if (null !== $conflictRule) {
-if ($this->analyzeUnsolvable($conflictRule, $disableRules)) {
-continue;
-}
-
-return;
-}
-}
-
-
- if ($level < $systemLevel) {
-$iterator = $this->rules->getIteratorFor(RuleSet::TYPE_JOB);
-foreach ($iterator as $rule) {
-if ($rule->isEnabled()) {
-$decisionQueue = array();
-$noneSatisfied = true;
-
-foreach ($rule->getLiterals() as $literal) {
-if ($this->decisions->satisfy($literal)) {
-$noneSatisfied = false;
-break;
-}
-if ($literal > 0 && $this->decisions->undecided($literal)) {
-$decisionQueue[] = $literal;
-}
-}
-
-if ($noneSatisfied && count($decisionQueue)) {
-
- 
- if (count($this->installed) != count($this->updateMap)) {
-$prunedQueue = array();
-foreach ($decisionQueue as $literal) {
-if (isset($this->installedMap[abs($literal)])) {
-$prunedQueue[] = $literal;
-if (isset($this->updateMap[abs($literal)])) {
-$prunedQueue = $decisionQueue;
-break;
-}
-}
-}
-$decisionQueue = $prunedQueue;
-}
-}
-
-if ($noneSatisfied && count($decisionQueue)) {
-$oLevel = $level;
-$level = $this->selectAndInstall($level, $decisionQueue, $disableRules, $rule);
-
-if (0 === $level) {
-return;
-}
-if ($level <= $oLevel) {
-break;
-}
-}
-}
-}
-
-$systemLevel = $level + 1;
-
-
- $iterator->next();
-if ($iterator->valid()) {
-continue;
-}
-}
-
-if ($level < $systemLevel) {
-$systemLevel = $level;
-}
-
-$rulesCount = count($this->rules);
-$pass = 1;
-
-$this->io->writeError('Looking at all rules.', true, IOInterface::DEBUG);
-for ($i = 0, $n = 0; $n < $rulesCount; $i++, $n++) {
-if ($i == $rulesCount) {
-if (1 === $pass) {
-$this->io->writeError("Something's changed, looking at all rules again (pass #$pass)", false, IOInterface::DEBUG);
-} else {
-$this->io->overwriteError("Something's changed, looking at all rules again (pass #$pass)", false, null, IOInterface::DEBUG);
-}
-
-$i = 0;
-$pass++;
-}
-
-$rule = $this->rules->ruleById[$i];
-$literals = $rule->getLiterals();
-
-if ($rule->isDisabled()) {
-continue;
-}
-
-$decisionQueue = array();
-
-
- 
- 
- 
- 
- 
- foreach ($literals as $literal) {
-if ($literal <= 0) {
-if (!$this->decisions->decidedInstall($literal)) {
-continue 2; 
- }
-} else {
-if ($this->decisions->decidedInstall($literal)) {
-continue 2; 
- }
-if ($this->decisions->undecided($literal)) {
-$decisionQueue[] = $literal;
-}
-}
-}
-
-
- if (count($decisionQueue) < 2) {
-continue;
-}
-
-$level = $this->selectAndInstall($level, $decisionQueue, $disableRules, $rule);
-
-if (0 === $level) {
-return;
-}
-
-
- $rulesCount = count($this->rules);
-$n = -1;
-}
-
-if ($level < $systemLevel) {
-continue;
-}
-
-
- if (count($this->branches)) {
-$lastLiteral = null;
-$lastLevel = null;
-$lastBranchIndex = 0;
-$lastBranchOffset = 0;
-
-for ($i = count($this->branches) - 1; $i >= 0; $i--) {
-list($literals, $l) = $this->branches[$i];
-
-foreach ($literals as $offset => $literal) {
-if ($literal && $literal > 0 && $this->decisions->decisionLevel($literal) > $l + 1) {
-$lastLiteral = $literal;
-$lastBranchIndex = $i;
-$lastBranchOffset = $offset;
-$lastLevel = $l;
-}
-}
-}
-
-if ($lastLiteral) {
-unset($this->branches[$lastBranchIndex][self::BRANCH_LITERALS][$lastBranchOffset]);
-
-$level = $lastLevel;
-$this->revert($level);
-
-$why = $this->decisions->lastReason();
-
-$level = $this->setPropagateLearn($level, $lastLiteral, $disableRules, $why);
-
-if ($level == 0) {
-return;
-}
-
-continue;
-}
-}
-
-break;
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver;
-
-
-
-
-class SolverBugException extends \RuntimeException
-{
-public function __construct($message)
-{
-parent::__construct(
-$message."\nThis exception was most likely caused by a bug in Composer.\n".
-"Please report the command you ran, the exact error you received, and your composer.json on https://github.com/composer/composer/issues - thank you!\n"
-);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver;
-
-use Composer\Util\IniHelper;
-
-
-
-
-class SolverProblemsException extends \RuntimeException
-{
-protected $problems;
-protected $installedMap;
-
-public function __construct(array $problems, array $installedMap)
-{
-$this->problems = $problems;
-$this->installedMap = $installedMap;
-
-parent::__construct($this->createMessage(), 2);
-}
-
-protected function createMessage()
-{
-$text = "\n";
-$hasExtensionProblems = false;
-foreach ($this->problems as $i => $problem) {
-$text .= "  Problem ".($i + 1).$problem->getPrettyString($this->installedMap)."\n";
-
-if (!$hasExtensionProblems && $this->hasExtensionProblems($problem->getReasons())) {
-$hasExtensionProblems = true;
-}
-}
-
-if (strpos($text, 'could not be found') || strpos($text, 'no matching package found')) {
-$text .= "\nPotential causes:\n - A typo in the package name\n - The package is not available in a stable-enough version according to your minimum-stability setting\n   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.\n - It's a private package and you forgot to add a custom repository to find it\n\nRead <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.";
-}
-
-if ($hasExtensionProblems) {
-$text .= $this->createExtensionHint();
-}
-
-return $text;
-}
-
-public function getProblems()
-{
-return $this->problems;
-}
-
-private function createExtensionHint()
-{
-$paths = IniHelper::getAll();
-
-if (count($paths) === 1 && empty($paths[0])) {
-return '';
-}
-
-$text = "\n  To enable extensions, verify that they are enabled in your .ini files:\n    - ";
-$text .= implode("\n    - ", $paths);
-$text .= "\n  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.";
-
-return $text;
-}
-
-private function hasExtensionProblems(array $reasonSets)
-{
-foreach ($reasonSets as $reasonSet) {
-foreach ($reasonSet as $reason) {
-if (isset($reason["rule"]) && 0 === strpos($reason["rule"]->getRequiredPackage(), 'ext-')) {
-return true;
-}
-}
-}
-
-return false;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\DependencyResolver;
-
-use Composer\Package\AliasPackage;
-
-
-
-
-class Transaction
-{
-protected $policy;
-protected $pool;
-protected $installedMap;
-protected $decisions;
-protected $transaction;
-
-public function __construct($policy, $pool, $installedMap, $decisions)
-{
-$this->policy = $policy;
-$this->pool = $pool;
-$this->installedMap = $installedMap;
-$this->decisions = $decisions;
-$this->transaction = array();
-}
-
-public function getOperations()
-{
-$installMeansUpdateMap = $this->findUpdates();
-
-$updateMap = array();
-$installMap = array();
-$uninstallMap = array();
-
-foreach ($this->decisions as $i => $decision) {
-$literal = $decision[Decisions::DECISION_LITERAL];
-$reason = $decision[Decisions::DECISION_REASON];
-
-$package = $this->pool->literalToPackage($literal);
-
-
- if (($literal > 0) == isset($this->installedMap[$package->id])) {
-continue;
-}
-
-if ($literal > 0) {
-if (isset($installMeansUpdateMap[abs($literal)]) && !$package instanceof AliasPackage) {
-$source = $installMeansUpdateMap[abs($literal)];
-
-$updateMap[$package->id] = array(
-'package' => $package,
-'source' => $source,
-'reason' => $reason,
-);
-
-
- unset($installMeansUpdateMap[abs($literal)]);
-$ignoreRemove[$source->id] = true;
-} else {
-$installMap[$package->id] = array(
-'package' => $package,
-'reason' => $reason,
-);
-}
-}
-}
-
-foreach ($this->decisions as $i => $decision) {
-$literal = $decision[Decisions::DECISION_LITERAL];
-$reason = $decision[Decisions::DECISION_REASON];
-$package = $this->pool->literalToPackage($literal);
-
-if ($literal <= 0 &&
-isset($this->installedMap[$package->id]) &&
-!isset($ignoreRemove[$package->id])) {
-$uninstallMap[$package->id] = array(
-'package' => $package,
-'reason' => $reason,
-);
-}
-}
-
-$this->transactionFromMaps($installMap, $updateMap, $uninstallMap);
-
-return $this->transaction;
-}
-
-protected function transactionFromMaps($installMap, $updateMap, $uninstallMap)
-{
-$queue = array_map(
-function ($operation) {
-return $operation['package'];
-},
-$this->findRootPackages($installMap, $updateMap)
-);
-
-$visited = array();
-
-while (!empty($queue)) {
-$package = array_pop($queue);
-$packageId = $package->id;
-
-if (!isset($visited[$packageId])) {
-$queue[] = $package;
-
-if ($package instanceof AliasPackage) {
-$queue[] = $package->getAliasOf();
-} else {
-foreach ($package->getRequires() as $link) {
-$possibleRequires = $this->pool->whatProvides($link->getTarget(), $link->getConstraint());
-
-foreach ($possibleRequires as $require) {
-$queue[] = $require;
-}
-}
-}
-
-$visited[$package->id] = true;
-} else {
-if (isset($installMap[$packageId])) {
-$this->install(
-$installMap[$packageId]['package'],
-$installMap[$packageId]['reason']
-);
-unset($installMap[$packageId]);
-}
-if (isset($updateMap[$packageId])) {
-$this->update(
-$updateMap[$packageId]['source'],
-$updateMap[$packageId]['package'],
-$updateMap[$packageId]['reason']
-);
-unset($updateMap[$packageId]);
-}
-}
-}
-
-foreach ($uninstallMap as $uninstall) {
-$this->uninstall($uninstall['package'], $uninstall['reason']);
-}
-}
-
-protected function findRootPackages($installMap, $updateMap)
-{
-$packages = $installMap + $updateMap;
-$roots = $packages;
-
-foreach ($packages as $packageId => $operation) {
-$package = $operation['package'];
-
-if (!isset($roots[$packageId])) {
-continue;
-}
-
-foreach ($package->getRequires() as $link) {
-$possibleRequires = $this->pool->whatProvides($link->getTarget(), $link->getConstraint());
-
-foreach ($possibleRequires as $require) {
-if ($require !== $package) {
-unset($roots[$require->id]);
-}
-}
-}
-}
-
-return $roots;
-}
-
-protected function findUpdates()
-{
-$installMeansUpdateMap = array();
-
-foreach ($this->decisions as $i => $decision) {
-$literal = $decision[Decisions::DECISION_LITERAL];
-$package = $this->pool->literalToPackage($literal);
-
-if ($package instanceof AliasPackage) {
-continue;
-}
-
-
- if ($literal <= 0 && isset($this->installedMap[$package->id])) {
-$updates = $this->policy->findUpdatePackages($this->pool, $this->installedMap, $package);
-
-$literals = array($package->id);
-
-foreach ($updates as $update) {
-$literals[] = $update->id;
-}
-
-foreach ($literals as $updateLiteral) {
-if ($updateLiteral !== $literal) {
-$installMeansUpdateMap[abs($updateLiteral)] = $package;
-}
-}
-}
-}
-
-return $installMeansUpdateMap;
-}
-
-protected function install($package, $reason)
-{
-if ($package instanceof AliasPackage) {
-return $this->markAliasInstalled($package, $reason);
-}
-
-$this->transaction[] = new Operation\InstallOperation($package, $reason);
-}
-
-protected function update($from, $to, $reason)
-{
-$this->transaction[] = new Operation\UpdateOperation($from, $to, $reason);
-}
-
-protected function uninstall($package, $reason)
-{
-if ($package instanceof AliasPackage) {
-return $this->markAliasUninstalled($package, $reason);
-}
-
-$this->transaction[] = new Operation\UninstallOperation($package, $reason);
-}
-
-protected function markAliasInstalled($package, $reason)
-{
-$this->transaction[] = new Operation\MarkAliasInstalledOperation($package, $reason);
-}
-
-protected function markAliasUninstalled($package, $reason)
-{
-$this->transaction[] = new Operation\MarkAliasUninstalledOperation($package, $reason);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-use Composer\Package\PackageInterface;
-use Symfony\Component\Finder\Finder;
-use Composer\IO\IOInterface;
-
-
-
-
-
-
-
-
-abstract class ArchiveDownloader extends FileDownloader
-{
-
-
-
-
-
-public function download(PackageInterface $package, $path, $output = true)
-{
-$temporaryDir = $this->config->get('vendor-dir').'/composer/'.substr(md5(uniqid('', true)), 0, 8);
-$retries = 3;
-while ($retries--) {
-$fileName = parent::download($package, $path, $output);
-
-if ($output) {
-$this->io->writeError(' Extracting archive', false, IOInterface::VERBOSE);
-}
-
-try {
-$this->filesystem->ensureDirectoryExists($temporaryDir);
-try {
-$this->extract($fileName, $temporaryDir);
-} catch (\Exception $e) {
-
- parent::clearLastCacheWrite($package);
-throw $e;
-}
-
-$this->filesystem->unlink($fileName);
-
-$contentDir = $this->getFolderContent($temporaryDir);
-
-
- if (1 === count($contentDir) && is_dir(reset($contentDir))) {
-$contentDir = $this->getFolderContent((string) reset($contentDir));
-}
-
-
- foreach ($contentDir as $file) {
-$file = (string) $file;
-$this->filesystem->rename($file, $path . '/' . basename($file));
-}
-
-$this->filesystem->removeDirectory($temporaryDir);
-if ($this->filesystem->isDirEmpty($this->config->get('vendor-dir').'/composer/')) {
-$this->filesystem->removeDirectory($this->config->get('vendor-dir').'/composer/');
-}
-if ($this->filesystem->isDirEmpty($this->config->get('vendor-dir'))) {
-$this->filesystem->removeDirectory($this->config->get('vendor-dir'));
-}
-} catch (\Exception $e) {
-
- $this->filesystem->removeDirectory($path);
-$this->filesystem->removeDirectory($temporaryDir);
-
-
- if ($retries && $e instanceof \UnexpectedValueException && class_exists('ZipArchive') && $e->getCode() === \ZipArchive::ER_NOZIP) {
-$this->io->writeError('');
-if ($this->io->isDebug()) {
-$this->io->writeError('    Invalid zip file ('.$e->getMessage().'), retrying...');
-} else {
-$this->io->writeError('    Invalid zip file, retrying...');
-}
-usleep(500000);
-continue;
-}
-
-throw $e;
-}
-
-break;
-}
-}
-
-
-
-
-protected function getFileName(PackageInterface $package, $path)
-{
-return rtrim($path.'/'.md5($path.spl_object_hash($package)).'.'.pathinfo(parse_url($package->getDistUrl(), PHP_URL_PATH), PATHINFO_EXTENSION), '.');
-}
-
-
-
-
-
-
-
-
-
-abstract protected function extract($file, $path);
-
-
-
-
-
-
-
-private function getFolderContent($dir)
-{
-$finder = Finder::create()
-->ignoreVCS(false)
-->ignoreDotFiles(false)
-->notName('.DS_Store')
-->depth(0)
-->in($dir);
-
-return iterator_to_array($finder);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-use Composer\Package\PackageInterface;
-
-
-
-
-
-
-interface ChangeReportInterface
-{
-
-
-
-
-
-
-
-public function getLocalChanges(PackageInterface $package, $path);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-use Composer\Package\PackageInterface;
-use Composer\IO\IOInterface;
-use Composer\Util\Filesystem;
-
-
-
-
-
-
-class DownloadManager
-{
-private $io;
-private $preferDist = false;
-private $preferSource = false;
-private $packagePreferences = array();
-private $filesystem;
-private $downloaders = array();
-
-
-
-
-
-
-
-
-public function __construct(IOInterface $io, $preferSource = false, Filesystem $filesystem = null)
-{
-$this->io = $io;
-$this->preferSource = $preferSource;
-$this->filesystem = $filesystem ?: new Filesystem();
-}
-
-
-
-
-
-
-
-public function setPreferSource($preferSource)
-{
-$this->preferSource = $preferSource;
-
-return $this;
-}
-
-
-
-
-
-
-
-public function setPreferDist($preferDist)
-{
-$this->preferDist = $preferDist;
-
-return $this;
-}
-
-
-
-
-
-
-
-public function setPreferences(array $preferences)
-{
-$this->packagePreferences = $preferences;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function setOutputProgress($outputProgress)
-{
-foreach ($this->downloaders as $downloader) {
-$downloader->setOutputProgress($outputProgress);
-}
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function setDownloader($type, DownloaderInterface $downloader)
-{
-$type = strtolower($type);
-$this->downloaders[$type] = $downloader;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function getDownloader($type)
-{
-$type = strtolower($type);
-if (!isset($this->downloaders[$type])) {
-throw new \InvalidArgumentException(sprintf('Unknown downloader type: %s. Available types: %s.', $type, implode(', ', array_keys($this->downloaders))));
-}
-
-return $this->downloaders[$type];
-}
-
-
-
-
-
-
-
-
-
-
-public function getDownloaderForInstalledPackage(PackageInterface $package)
-{
-$installationSource = $package->getInstallationSource();
-
-if ('metapackage' === $package->getType()) {
-return;
-}
-
-if ('dist' === $installationSource) {
-$downloader = $this->getDownloader($package->getDistType());
-} elseif ('source' === $installationSource) {
-$downloader = $this->getDownloader($package->getSourceType());
-} else {
-throw new \InvalidArgumentException(
-'Package '.$package.' seems not been installed properly'
-);
-}
-
-if ($installationSource !== $downloader->getInstallationSource()) {
-throw new \LogicException(sprintf(
-'Downloader "%s" is a %s type downloader and can not be used to download %s for package %s',
-get_class($downloader),
-$downloader->getInstallationSource(),
-$installationSource,
-$package
-));
-}
-
-return $downloader;
-}
-
-
-
-
-
-
-
-
-
-
-
-public function download(PackageInterface $package, $targetDir, $preferSource = null)
-{
-$preferSource = null !== $preferSource ? $preferSource : $this->preferSource;
-$sourceType = $package->getSourceType();
-$distType = $package->getDistType();
-
-$sources = array();
-if ($sourceType) {
-$sources[] = 'source';
-}
-if ($distType) {
-$sources[] = 'dist';
-}
-
-if (empty($sources)) {
-throw new \InvalidArgumentException('Package '.$package.' must have a source or dist specified');
-}
-
-if (!$preferSource && ($this->preferDist || 'dist' === $this->resolvePackageInstallPreference($package))) {
-$sources = array_reverse($sources);
-}
-
-$this->filesystem->ensureDirectoryExists($targetDir);
-
-foreach ($sources as $i => $source) {
-if (isset($e)) {
-$this->io->writeError('    <warning>Now trying to download from ' . $source . '</warning>');
-}
-$package->setInstallationSource($source);
-try {
-$downloader = $this->getDownloaderForInstalledPackage($package);
-if ($downloader) {
-$downloader->download($package, $targetDir);
-}
-break;
-} catch (\RuntimeException $e) {
-if ($i === count($sources) - 1) {
-throw $e;
-}
-
-$this->io->writeError(
-'    <warning>Failed to download '.
-$package->getPrettyName().
-' from ' . $source . ': '.
-$e->getMessage().'</warning>'
-);
-}
-}
-}
-
-
-
-
-
-
-
-
-
-
-public function update(PackageInterface $initial, PackageInterface $target, $targetDir)
-{
-$downloader = $this->getDownloaderForInstalledPackage($initial);
-if (!$downloader) {
-return;
-}
-
-$installationSource = $initial->getInstallationSource();
-
-if ('dist' === $installationSource) {
-$initialType = $initial->getDistType();
-$targetType = $target->getDistType();
-} else {
-$initialType = $initial->getSourceType();
-$targetType = $target->getSourceType();
-}
-
-
- if ($target->isDev() && 'dist' === $installationSource) {
-$downloader->remove($initial, $targetDir);
-$this->download($target, $targetDir);
-
-return;
-}
-
-if ($initialType === $targetType) {
-$target->setInstallationSource($installationSource);
-try {
-$downloader->update($initial, $target, $targetDir);
-
-return;
-} catch (\RuntimeException $e) {
-if (!$this->io->isInteractive()) {
-throw $e;
-}
-$this->io->writeError('<error>    Update failed ('.$e->getMessage().')</error>');
-if (!$this->io->askConfirmation('    Would you like to try reinstalling the package instead [<comment>yes</comment>]? ', true)) {
-throw $e;
-}
-}
-}
-
-$downloader->remove($initial, $targetDir);
-$this->download($target, $targetDir, 'source' === $installationSource);
-}
-
-
-
-
-
-
-
-public function remove(PackageInterface $package, $targetDir)
-{
-$downloader = $this->getDownloaderForInstalledPackage($package);
-if ($downloader) {
-$downloader->remove($package, $targetDir);
-}
-}
-
-
-
-
-
-
-
-
-protected function resolvePackageInstallPreference(PackageInterface $package)
-{
-foreach ($this->packagePreferences as $pattern => $preference) {
-$pattern = '{^'.str_replace('\\*', '.*', preg_quote($pattern)).'$}i';
-if (preg_match($pattern, $package->getName())) {
-if ('dist' === $preference || (!$package->isDev() && 'auto' === $preference)) {
-return 'dist';
-}
-
-return 'source';
-}
-}
-
-return $package->isDev() ? 'source' : 'dist';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-use Composer\Package\PackageInterface;
-
-
-
-
-
-
-
-interface DownloaderInterface
-{
-
-
-
-
-
-public function getInstallationSource();
-
-
-
-
-
-
-
-public function download(PackageInterface $package, $path);
-
-
-
-
-
-
-
-
-public function update(PackageInterface $initial, PackageInterface $target, $path);
-
-
-
-
-
-
-
-public function remove(PackageInterface $package, $path);
-
-
-
-
-
-
-
-public function setOutputProgress($outputProgress);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-use Composer\Package\PackageInterface;
-
-
-
-
-
-
-interface DvcsDownloaderInterface
-{
-
-
-
-
-
-
-
-public function getUnpushedChanges(PackageInterface $package, $path);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-use Composer\Config;
-use Composer\Cache;
-use Composer\Factory;
-use Composer\IO\IOInterface;
-use Composer\IO\NullIO;
-use Composer\Package\Comparer\Comparer;
-use Composer\Package\PackageInterface;
-use Composer\Package\Version\VersionParser;
-use Composer\Plugin\PluginEvents;
-use Composer\Plugin\PreFileDownloadEvent;
-use Composer\EventDispatcher\EventDispatcher;
-use Composer\Util\Filesystem;
-use Composer\Util\RemoteFilesystem;
-use Composer\Util\Url as UrlUtil;
-
-
-
-
-
-
-
-
-
-class FileDownloader implements DownloaderInterface, ChangeReportInterface
-{
-protected $io;
-protected $config;
-protected $rfs;
-protected $filesystem;
-protected $cache;
-protected $outputProgress = true;
-private $lastCacheWrites = array();
-private $eventDispatcher;
-
-
-
-
-
-
-
-
-
-
-
-public function __construct(IOInterface $io, Config $config, EventDispatcher $eventDispatcher = null, Cache $cache = null, RemoteFilesystem $rfs = null, Filesystem $filesystem = null)
-{
-$this->io = $io;
-$this->config = $config;
-$this->eventDispatcher = $eventDispatcher;
-$this->rfs = $rfs ?: Factory::createRemoteFilesystem($this->io, $config);
-$this->filesystem = $filesystem ?: new Filesystem();
-$this->cache = $cache;
-
-if ($this->cache && $this->cache->gcIsNecessary()) {
-$this->cache->gc($config->get('cache-files-ttl'), $config->get('cache-files-maxsize'));
-}
-}
-
-
-
-
-public function getInstallationSource()
-{
-return 'dist';
-}
-
-
-
-
-public function download(PackageInterface $package, $path, $output = true)
-{
-if (!$package->getDistUrl()) {
-throw new \InvalidArgumentException('The given package is missing url information');
-}
-
-if ($output) {
-$this->io->writeError("  - Installing <info>" . $package->getName() . "</info> (<comment>" . $package->getFullPrettyVersion() . "</comment>): ", false);
-}
-
-$urls = $package->getDistUrls();
-while ($url = array_shift($urls)) {
-try {
-$fileName = $this->doDownload($package, $path, $url);
-break;
-} catch (\Exception $e) {
-if ($this->io->isDebug()) {
-$this->io->writeError('');
-$this->io->writeError('Failed: ['.get_class($e).'] '.$e->getCode().': '.$e->getMessage());
-} elseif (count($urls)) {
-$this->io->writeError('');
-$this->io->writeError(' Failed, trying the next URL ('.$e->getCode().': '.$e->getMessage().')', false);
-}
-
-if (!count($urls)) {
-throw $e;
-}
-}
-}
-
-if ($output) {
-$this->io->writeError('');
-}
-
-return $fileName;
-}
-
-protected function doDownload(PackageInterface $package, $path, $url)
-{
-$this->filesystem->emptyDirectory($path);
-
-$fileName = $this->getFileName($package, $path);
-
-$processedUrl = $this->processUrl($package, $url);
-$hostname = parse_url($processedUrl, PHP_URL_HOST);
-
-$preFileDownloadEvent = new PreFileDownloadEvent(PluginEvents::PRE_FILE_DOWNLOAD, $this->rfs, $processedUrl);
-if ($this->eventDispatcher) {
-$this->eventDispatcher->dispatch($preFileDownloadEvent->getName(), $preFileDownloadEvent);
-}
-$rfs = $preFileDownloadEvent->getRemoteFilesystem();
-
-try {
-$checksum = $package->getDistSha1Checksum();
-$cacheKey = $this->getCacheKey($package, $processedUrl);
-
-
- if ($this->cache && (!$checksum || $checksum === $this->cache->sha1($cacheKey)) && $this->cache->copyTo($cacheKey, $fileName)) {
-$this->io->writeError('Loading from cache', false);
-} else {
-
- if (!$this->outputProgress) {
-$this->io->writeError('Downloading', false);
-}
-
-
- $retries = 3;
-while ($retries--) {
-try {
-$rfs->copy($hostname, $processedUrl, $fileName, $this->outputProgress, $package->getTransportOptions());
-break;
-} catch (TransportException $e) {
-
- if ((0 !== $e->getCode() && !in_array($e->getCode(), array(500, 502, 503, 504))) || !$retries) {
-throw $e;
-}
-$this->io->writeError('');
-$this->io->writeError('    Download failed, retrying...', true, IOInterface::VERBOSE);
-usleep(500000);
-}
-}
-
-if (!$this->outputProgress) {
-$this->io->writeError(' (<comment>100%</comment>)', false);
-}
-
-if ($this->cache) {
-$this->lastCacheWrites[$package->getName()] = $cacheKey;
-$this->cache->copyFrom($cacheKey, $fileName);
-}
-}
-
-if (!file_exists($fileName)) {
-throw new \UnexpectedValueException($url.' could not be saved to '.$fileName.', make sure the'
-.' directory is writable and you have internet connectivity');
-}
-
-if ($checksum && hash_file('sha1', $fileName) !== $checksum) {
-throw new \UnexpectedValueException('The checksum verification of the file failed (downloaded from '.$url.')');
-}
-} catch (\Exception $e) {
-
- $this->filesystem->removeDirectory($path);
-$this->clearLastCacheWrite($package);
-throw $e;
-}
-
-return $fileName;
-}
-
-
-
-
-public function setOutputProgress($outputProgress)
-{
-$this->outputProgress = $outputProgress;
-
-return $this;
-}
-
-protected function clearLastCacheWrite(PackageInterface $package)
-{
-if ($this->cache && isset($this->lastCacheWrites[$package->getName()])) {
-$this->cache->remove($this->lastCacheWrites[$package->getName()]);
-unset($this->lastCacheWrites[$package->getName()]);
-}
-}
-
-
-
-
-public function update(PackageInterface $initial, PackageInterface $target, $path)
-{
-$name = $target->getName();
-$from = $initial->getPrettyVersion();
-$to = $target->getPrettyVersion();
-
-$actionName = VersionParser::isUpgrade($initial->getVersion(), $target->getVersion()) ? 'Updating' : 'Downgrading';
-$this->io->writeError("  - " . $actionName . " <info>" . $name . "</info> (<comment>" . $from . "</comment> => <comment>" . $to . "</comment>): ", false);
-
-$this->remove($initial, $path, false);
-$this->download($target, $path, false);
-
-$this->io->writeError('');
-}
-
-
-
-
-public function remove(PackageInterface $package, $path, $output = true)
-{
-if ($output) {
-$this->io->writeError("  - Removing <info>" . $package->getName() . "</info> (<comment>" . $package->getFullPrettyVersion() . "</comment>)");
-}
-if (!$this->filesystem->removeDirectory($path)) {
-throw new \RuntimeException('Could not completely delete '.$path.', aborting.');
-}
-}
-
-
-
-
-
-
-
-
-protected function getFileName(PackageInterface $package, $path)
-{
-return $path.'/'.pathinfo(parse_url($package->getDistUrl(), PHP_URL_PATH), PATHINFO_BASENAME);
-}
-
-
-
-
-
-
-
-
-
-protected function processUrl(PackageInterface $package, $url)
-{
-if (!extension_loaded('openssl') && 0 === strpos($url, 'https:')) {
-throw new \RuntimeException('You must enable the openssl extension to download files via https');
-}
-
-if ($package->getDistReference()) {
-$url = UrlUtil::updateDistReference($this->config, $url, $package->getDistReference());
-}
-
-return $url;
-}
-
-private function getCacheKey(PackageInterface $package, $processedUrl)
-{
-
- 
- 
- 
- $cacheKey = sha1($processedUrl);
-
-return $package->getName().'/'.$cacheKey.'.'.$package->getDistType();
-}
-
-
-
-
-
-public function getLocalChanges(PackageInterface $package, $targetDir)
-{
-$prevIO = $this->io;
-$prevProgress = $this->outputProgress;
-
-$this->io = new NullIO;
-$this->io->loadConfiguration($this->config);
-$this->outputProgress = false;
-$e = null;
-
-try {
-$this->download($package, $targetDir.'_compare', false);
-
-$comparer = new Comparer();
-$comparer->setSource($targetDir.'_compare');
-$comparer->setUpdate($targetDir);
-$comparer->doCompare();
-$output = $comparer->getChanged(true, true);
-$this->filesystem->removeDirectory($targetDir.'_compare');
-} catch (\Exception $e) {
-}
-
-$this->io = $prevIO;
-$this->outputProgress = $prevProgress;
-
-if ($e) {
-throw $e;
-}
-
-return trim($output);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-
-
-
-
-
-class FilesystemException extends \Exception
-{
-public function __construct($message = '', $code = 0, \Exception $previous = null)
-{
-parent::__construct("Filesystem exception: \n".$message, $code, $previous);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-use Composer\Package\PackageInterface;
-use Composer\Util\ProcessExecutor;
-
-
-
-
-class FossilDownloader extends VcsDownloader
-{
-
-
-
-public function doDownload(PackageInterface $package, $path, $url)
-{
-
- $this->config->prohibitUrlByConfig($url, $this->io);
-
-$url = ProcessExecutor::escape($url);
-$ref = ProcessExecutor::escape($package->getSourceReference());
-$repoFile = $path . '.fossil';
-$this->io->writeError("Cloning ".$package->getSourceReference());
-$command = sprintf('fossil clone %s %s', $url, ProcessExecutor::escape($repoFile));
-if (0 !== $this->process->execute($command, $ignoredOutput)) {
-throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput());
-}
-$command = sprintf('fossil open %s --nested', ProcessExecutor::escape($repoFile));
-if (0 !== $this->process->execute($command, $ignoredOutput, realpath($path))) {
-throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput());
-}
-$command = sprintf('fossil update %s', $ref);
-if (0 !== $this->process->execute($command, $ignoredOutput, realpath($path))) {
-throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput());
-}
-}
-
-
-
-
-public function doUpdate(PackageInterface $initial, PackageInterface $target, $path, $url)
-{
-
- $this->config->prohibitUrlByConfig($url, $this->io);
-
-$url = ProcessExecutor::escape($url);
-$ref = ProcessExecutor::escape($target->getSourceReference());
-$this->io->writeError(" Updating to ".$target->getSourceReference());
-
-if (!$this->hasMetadataRepository($path)) {
-throw new \RuntimeException('The .fslckout file is missing from '.$path.', see https://getcomposer.org/commit-deps for more information');
-}
-
-$command = sprintf('fossil pull && fossil up %s', $ref);
-if (0 !== $this->process->execute($command, $ignoredOutput, realpath($path))) {
-throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput());
-}
-}
-
-
-
-
-public function getLocalChanges(PackageInterface $package, $path)
-{
-if (!$this->hasMetadataRepository($path)) {
-return null;
-}
-
-$this->process->execute('fossil changes', $output, realpath($path));
-
-return trim($output) ?: null;
-}
-
-
-
-
-protected function getCommitLogs($fromReference, $toReference, $path)
-{
-$command = sprintf('fossil timeline -t ci -W 0 -n 0 before %s', ProcessExecutor::escape($toReference));
-
-if (0 !== $this->process->execute($command, $output, realpath($path))) {
-throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput());
-}
-
-$log = '';
-$match = '/\d\d:\d\d:\d\d\s+\[' . $toReference . '\]/';
-
-foreach ($this->process->splitLines($output) as $line) {
-if (preg_match($match, $line)) {
-break;
-}
-$log .= $line;
-}
-
-return $log;
-}
-
-
-
-
-protected function hasMetadataRepository($path)
-{
-return is_file($path . '/.fslckout') || is_file($path . '/_FOSSIL_');
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-use Composer\Config;
-use Composer\IO\IOInterface;
-use Composer\Package\PackageInterface;
-use Composer\Util\Filesystem;
-use Composer\Util\Git as GitUtil;
-use Composer\Util\Platform;
-use Composer\Util\ProcessExecutor;
-
-
-
-
-class GitDownloader extends VcsDownloader implements DvcsDownloaderInterface
-{
-private $hasStashedChanges = false;
-private $hasDiscardedChanges = false;
-private $gitUtil;
-
-public function __construct(IOInterface $io, Config $config, ProcessExecutor $process = null, Filesystem $fs = null)
-{
-parent::__construct($io, $config, $process, $fs);
-$this->gitUtil = new GitUtil($this->io, $this->config, $this->process, $this->filesystem);
-}
-
-
-
-
-public function doDownload(PackageInterface $package, $path, $url)
-{
-GitUtil::cleanEnv();
-$path = $this->normalizePath($path);
-$cachePath = $this->config->get('cache-vcs-dir').'/'.preg_replace('{[^a-z0-9.]}i', '-', $url).'/';
-$ref = $package->getSourceReference();
-$flag = Platform::isWindows() ? '/D ' : '';
-
-
- $gitVersion = $this->gitUtil->getVersion();
-$msg = "Cloning ".$this->getShortHash($ref);
-
-$command = 'git clone --no-checkout %url% %path% && cd '.$flag.'%path% && git remote add composer %url% && git fetch composer';
-if ($gitVersion && version_compare($gitVersion, '2.3.0-rc0', '>=')) {
-$this->io->writeError('', true, IOInterface::DEBUG);
-$this->io->writeError(sprintf('    Cloning to cache at %s', ProcessExecutor::escape($cachePath)), true, IOInterface::DEBUG);
-try {
-$this->gitUtil->fetchRefOrSyncMirror($url, $cachePath, $ref);
-if (is_dir($cachePath)) {
-$command =
-'git clone --no-checkout %cachePath% %path% --dissociate --reference %cachePath% '
-. '&& cd '.$flag.'%path% '
-. '&& git remote set-url origin %url% && git remote add composer %url%';
-$msg = "Cloning ".$this->getShortHash($ref).' from cache';
-}
-} catch (\RuntimeException $e) {
-}
-}
-$this->io->writeError($msg);
-
-$commandCallable = function ($url) use ($path, $command, $cachePath) {
-return str_replace(
-array('%url%', '%path%', '%cachePath%'),
-array(
-ProcessExecutor::escape($url),
-ProcessExecutor::escape($path),
-ProcessExecutor::escape($cachePath),
-),
-$command
-);
-};
-
-$this->gitUtil->runCommand($commandCallable, $url, $path, true);
-if ($url !== $package->getSourceUrl()) {
-$this->updateOriginUrl($path, $package->getSourceUrl());
-} else {
-$this->setPushUrl($path, $url);
-}
-
-if ($newRef = $this->updateToCommit($path, $ref, $package->getPrettyVersion(), $package->getReleaseDate())) {
-if ($package->getDistReference() === $package->getSourceReference()) {
-$package->setDistReference($newRef);
-}
-$package->setSourceReference($newRef);
-}
-}
-
-
-
-
-public function doUpdate(PackageInterface $initial, PackageInterface $target, $path, $url)
-{
-GitUtil::cleanEnv();
-if (!$this->hasMetadataRepository($path)) {
-throw new \RuntimeException('The .git directory is missing from '.$path.', see https://getcomposer.org/commit-deps for more information');
-}
-
-$updateOriginUrl = false;
-if (
-0 === $this->process->execute('git remote -v', $output, $path)
-&& preg_match('{^origin\s+(?P<url>\S+)}m', $output, $originMatch)
-&& preg_match('{^composer\s+(?P<url>\S+)}m', $output, $composerMatch)
-) {
-if ($originMatch['url'] === $composerMatch['url'] && $composerMatch['url'] !== $target->getSourceUrl()) {
-$updateOriginUrl = true;
-}
-}
-
-$ref = $target->getSourceReference();
-$this->io->writeError(" Checking out ".$this->getShortHash($ref));
-$command = 'git remote set-url composer %s && git rev-parse --quiet --verify %s || (git fetch composer && git fetch --tags composer)';
-
-$commandCallable = function ($url) use ($command, $ref) {
-return sprintf($command, ProcessExecutor::escape($url), ProcessExecutor::escape($ref.'^{commit}'));
-};
-
-$this->gitUtil->runCommand($commandCallable, $url, $path);
-if ($newRef = $this->updateToCommit($path, $ref, $target->getPrettyVersion(), $target->getReleaseDate())) {
-if ($target->getDistReference() === $target->getSourceReference()) {
-$target->setDistReference($newRef);
-}
-$target->setSourceReference($newRef);
-}
-
-if ($updateOriginUrl) {
-$this->updateOriginUrl($path, $target->getSourceUrl());
-}
-}
-
-
-
-
-public function getLocalChanges(PackageInterface $package, $path)
-{
-GitUtil::cleanEnv();
-if (!$this->hasMetadataRepository($path)) {
-return;
-}
-
-$command = 'git status --porcelain --untracked-files=no';
-if (0 !== $this->process->execute($command, $output, $path)) {
-throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput());
-}
-
-return trim($output) ?: null;
-}
-
-public function getUnpushedChanges(PackageInterface $package, $path)
-{
-GitUtil::cleanEnv();
-$path = $this->normalizePath($path);
-if (!$this->hasMetadataRepository($path)) {
-return;
-}
-
-$command = 'git show-ref --head -d';
-if (0 !== $this->process->execute($command, $output, $path)) {
-throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput());
-}
-
-$refs = trim($output);
-if (!preg_match('{^([a-f0-9]+) HEAD$}mi', $refs, $match)) {
-
- return;
-}
-
-$headRef = $match[1];
-if (!preg_match_all('{^'.$headRef.' refs/heads/(.+)$}mi', $refs, $matches)) {
-
- return;
-}
-
-
- $branch = $matches[1][0];
-$unpushedChanges = null;
-
-
- for ($i = 0; $i <= 1; $i++) {
-
- foreach ($matches[1] as $candidate) {
-if (preg_match('{^[a-f0-9]+ refs/remotes/((?:composer|origin)/'.preg_quote($candidate).')$}mi', $refs, $match)) {
-$branch = $candidate;
-$remoteBranch = $match[1];
-break;
-}
-}
-
-
- 
- 
- if (!isset($remoteBranch)) {
-$unpushedChanges = 'Branch ' . $branch . ' could not be found on the origin remote and appears to be unpushed';
-} else {
-$command = sprintf('git diff --name-status %s...%s --', $remoteBranch, $branch);
-if (0 !== $this->process->execute($command, $output, $path)) {
-throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput());
-}
-
-$unpushedChanges = trim($output) ?: null;
-}
-
-
- 
- if ($unpushedChanges && $i === 0) {
-$this->process->execute('git fetch composer && git fetch origin', $output, $path);
-}
-
-
- if (!$unpushedChanges) {
-break;
-}
-}
-
-return $unpushedChanges;
-}
-
-
-
-
-protected function cleanChanges(PackageInterface $package, $path, $update)
-{
-GitUtil::cleanEnv();
-$path = $this->normalizePath($path);
-
-$unpushed = $this->getUnpushedChanges($package, $path);
-if ($unpushed && ($this->io->isInteractive() || $this->config->get('discard-changes') !== true)) {
-throw new \RuntimeException('Source directory ' . $path . ' has unpushed changes on the current branch: '."\n".$unpushed);
-}
-
-if (!$changes = $this->getLocalChanges($package, $path)) {
-return;
-}
-
-if (!$this->io->isInteractive()) {
-$discardChanges = $this->config->get('discard-changes');
-if (true === $discardChanges) {
-return $this->discardChanges($path);
-}
-if ('stash' === $discardChanges) {
-if (!$update) {
-return parent::cleanChanges($package, $path, $update);
-}
-
-return $this->stashChanges($path);
-}
-
-return parent::cleanChanges($package, $path, $update);
-}
-
-$changes = array_map(function ($elem) {
-return '    '.$elem;
-}, preg_split('{\s*\r?\n\s*}', $changes));
-$this->io->writeError('    <error>The package has modified files:</error>');
-$this->io->writeError(array_slice($changes, 0, 10));
-if (count($changes) > 10) {
-$this->io->writeError('    <info>' . (count($changes) - 10) . ' more files modified, choose "v" to view the full list</info>');
-}
-
-while (true) {
-switch ($this->io->ask('    <info>Discard changes [y,n,v,d,'.($update ? 's,' : '').'?]?</info> ', '?')) {
-case 'y':
-$this->discardChanges($path);
-break 2;
-
-case 's':
-if (!$update) {
-goto help;
-}
-
-$this->stashChanges($path);
-break 2;
-
-case 'n':
-throw new \RuntimeException('Update aborted');
-
-case 'v':
-$this->io->writeError($changes);
-break;
-
-case 'd':
-$this->viewDiff($path);
-break;
-
-case '?':
-default:
-help:
-$this->io->writeError(array(
-'    y - discard changes and apply the '.($update ? 'update' : 'uninstall'),
-'    n - abort the '.($update ? 'update' : 'uninstall').' and let you manually clean things up',
-'    v - view modified files',
-'    d - view local modifications (diff)',
-));
-if ($update) {
-$this->io->writeError('    s - stash changes and try to reapply them after the update');
-}
-$this->io->writeError('    ? - print help');
-break;
-}
-}
-}
-
-
-
-
-protected function reapplyChanges($path)
-{
-$path = $this->normalizePath($path);
-if ($this->hasStashedChanges) {
-$this->hasStashedChanges = false;
-$this->io->writeError('    <info>Re-applying stashed changes</info>');
-if (0 !== $this->process->execute('git stash pop', $output, $path)) {
-throw new \RuntimeException("Failed to apply stashed changes:\n\n".$this->process->getErrorOutput());
-}
-}
-
-$this->hasDiscardedChanges = false;
-}
-
-
-
-
-
-
-
-
-
-
-
-protected function updateToCommit($path, $reference, $branch, $date)
-{
-$force = $this->hasDiscardedChanges || $this->hasStashedChanges ? '-f ' : '';
-
-
- 
- 
- 
- 
- $template = 'git checkout '.$force.'%s -- && git reset --hard %1$s --';
-$branch = preg_replace('{(?:^dev-|(?:\.x)?-dev$)}i', '', $branch);
-
-$branches = null;
-if (0 === $this->process->execute('git branch -r', $output, $path)) {
-$branches = $output;
-}
-
-
- $gitRef = $reference;
-if (!preg_match('{^[a-f0-9]{40}$}', $reference)
-&& $branches
-&& preg_match('{^\s+composer/'.preg_quote($reference).'$}m', $branches)
-) {
-$command = sprintf('git checkout '.$force.'-B %s %s -- && git reset --hard %2$s --', ProcessExecutor::escape($branch), ProcessExecutor::escape('composer/'.$reference));
-if (0 === $this->process->execute($command, $output, $path)) {
-return;
-}
-}
-
-
- if (preg_match('{^[a-f0-9]{40}$}', $reference)) {
-
- if (!preg_match('{^\s+composer/'.preg_quote($branch).'$}m', $branches) && preg_match('{^\s+composer/v'.preg_quote($branch).'$}m', $branches)) {
-$branch = 'v' . $branch;
-}
-
-$command = sprintf('git checkout %s --', ProcessExecutor::escape($branch));
-$fallbackCommand = sprintf('git checkout '.$force.'-B %s %s --', ProcessExecutor::escape($branch), ProcessExecutor::escape('composer/'.$branch));
-if (0 === $this->process->execute($command, $output, $path)
-|| 0 === $this->process->execute($fallbackCommand, $output, $path)
-) {
-$command = sprintf('git reset --hard %s --', ProcessExecutor::escape($reference));
-if (0 === $this->process->execute($command, $output, $path)) {
-return;
-}
-}
-}
-
-$command = sprintf($template, ProcessExecutor::escape($gitRef));
-if (0 === $this->process->execute($command, $output, $path)) {
-return;
-}
-
-
- if (false !== strpos($this->process->getErrorOutput(), $reference)) {
-$this->io->writeError('    <warning>'.$reference.' is gone (history was rewritten?)</warning>');
-}
-
-throw new \RuntimeException(GitUtil::sanitizeUrl('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput()));
-}
-
-protected function updateOriginUrl($path, $url)
-{
-$this->process->execute(sprintf('git remote set-url origin %s', ProcessExecutor::escape($url)), $output, $path);
-$this->setPushUrl($path, $url);
-}
-
-protected function setPushUrl($path, $url)
-{
-
- if (preg_match('{^(?:https?|git)://'.GitUtil::getGitHubDomainsRegex($this->config).'/([^/]+)/([^/]+?)(?:\.git)?$}', $url, $match)) {
-$protocols = $this->config->get('github-protocols');
-$pushUrl = 'git@'.$match[1].':'.$match[2].'/'.$match[3].'.git';
-if (!in_array('ssh', $protocols, true)) {
-$pushUrl = 'https://' . $match[1] . '/'.$match[2].'/'.$match[3].'.git';
-}
-$cmd = sprintf('git remote set-url --push origin %s', ProcessExecutor::escape($pushUrl));
-$this->process->execute($cmd, $ignoredOutput, $path);
-}
-}
-
-
-
-
-protected function getCommitLogs($fromReference, $toReference, $path)
-{
-$path = $this->normalizePath($path);
-$command = sprintf('git log %s..%s --pretty=format:"%%h - %%an: %%s"', ProcessExecutor::escape($fromReference), ProcessExecutor::escape($toReference));
-
-if (0 !== $this->process->execute($command, $output, $path)) {
-throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput());
-}
-
-return $output;
-}
-
-
-
-
-
-protected function discardChanges($path)
-{
-$path = $this->normalizePath($path);
-if (0 !== $this->process->execute('git reset --hard', $output, $path)) {
-throw new \RuntimeException("Could not reset changes\n\n:".$this->process->getErrorOutput());
-}
-
-$this->hasDiscardedChanges = true;
-}
-
-
-
-
-
-protected function stashChanges($path)
-{
-$path = $this->normalizePath($path);
-if (0 !== $this->process->execute('git stash --include-untracked', $output, $path)) {
-throw new \RuntimeException("Could not stash changes\n\n:".$this->process->getErrorOutput());
-}
-
-$this->hasStashedChanges = true;
-}
-
-
-
-
-
-protected function viewDiff($path)
-{
-$path = $this->normalizePath($path);
-if (0 !== $this->process->execute('git diff HEAD', $output, $path)) {
-throw new \RuntimeException("Could not view diff\n\n:".$this->process->getErrorOutput());
-}
-
-$this->io->writeError($output);
-}
-
-protected function normalizePath($path)
-{
-if (Platform::isWindows() && strlen($path) > 0) {
-$basePath = $path;
-$removed = array();
-
-while (!is_dir($basePath) && $basePath !== '\\') {
-array_unshift($removed, basename($basePath));
-$basePath = dirname($basePath);
-}
-
-if ($basePath === '\\') {
-return $path;
-}
-
-$path = rtrim(realpath($basePath) . '/' . implode('/', $removed), '/');
-}
-
-return $path;
-}
-
-
-
-
-protected function hasMetadataRepository($path)
-{
-$path = $this->normalizePath($path);
-
-return is_dir($path.'/.git');
-}
-
-protected function getShortHash($reference)
-{
-if (!$this->io->isVerbose() && preg_match('{^[0-9a-f]{40}$}', $reference)) {
-return substr($reference, 0, 10);
-}
-
-return $reference;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-use Composer\Config;
-use Composer\Cache;
-use Composer\EventDispatcher\EventDispatcher;
-use Composer\Package\PackageInterface;
-use Composer\Util\Platform;
-use Composer\Util\ProcessExecutor;
-use Composer\Util\RemoteFilesystem;
-use Composer\IO\IOInterface;
-
-
-
-
-
-
-class GzipDownloader extends ArchiveDownloader
-{
-protected $process;
-
-public function __construct(IOInterface $io, Config $config, EventDispatcher $eventDispatcher = null, Cache $cache = null, ProcessExecutor $process = null, RemoteFilesystem $rfs = null)
-{
-$this->process = $process ?: new ProcessExecutor($io);
-parent::__construct($io, $config, $eventDispatcher, $cache, $rfs);
-}
-
-protected function extract($file, $path)
-{
-$targetFilepath = $path . DIRECTORY_SEPARATOR . basename(substr($file, 0, -3));
-
-
- if (!Platform::isWindows()) {
-$command = 'gzip -cd ' . ProcessExecutor::escape($file) . ' > ' . ProcessExecutor::escape($targetFilepath);
-
-if (0 === $this->process->execute($command, $ignoredOutput)) {
-return;
-}
-
-if (extension_loaded('zlib')) {
-
- $this->extractUsingExt($file, $targetFilepath);
-
-return;
-}
-
-$processError = 'Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput();
-throw new \RuntimeException($processError);
-}
-
-
- $this->extractUsingExt($file, $targetFilepath);
-}
-
-
-
-
-protected function getFileName(PackageInterface $package, $path)
-{
-return $path.'/'.pathinfo(parse_url($package->getDistUrl(), PHP_URL_PATH), PATHINFO_BASENAME);
-}
-
-private function extractUsingExt($file, $targetFilepath)
-{
-$archiveFile = gzopen($file, 'rb');
-$targetFile = fopen($targetFilepath, 'wb');
-while ($string = gzread($archiveFile, 4096)) {
-fwrite($targetFile, $string, Platform::strlen($string));
-}
-gzclose($archiveFile);
-fclose($targetFile);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-use Composer\Package\PackageInterface;
-use Composer\Util\ProcessExecutor;
-use Composer\Util\Hg as HgUtils;
-
-
-
-
-class HgDownloader extends VcsDownloader
-{
-
-
-
-public function doDownload(PackageInterface $package, $path, $url)
-{
-$hgUtils = new HgUtils($this->io, $this->config, $this->process);
-
-$cloneCommand = function ($url) use ($path) {
-return sprintf('hg clone %s %s', ProcessExecutor::escape($url), ProcessExecutor::escape($path));
-};
-
-$hgUtils->runCommand($cloneCommand, $url, $path);
-
-$ref = ProcessExecutor::escape($package->getSourceReference());
-$command = sprintf('hg up %s', $ref);
-if (0 !== $this->process->execute($command, $ignoredOutput, realpath($path))) {
-throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput());
-}
-}
-
-
-
-
-public function doUpdate(PackageInterface $initial, PackageInterface $target, $path, $url)
-{
-$hgUtils = new HgUtils($this->io, $this->config, $this->process);
-
-$ref = $target->getSourceReference();
-$this->io->writeError(" Updating to ".$target->getSourceReference());
-
-if (!$this->hasMetadataRepository($path)) {
-throw new \RuntimeException('The .hg directory is missing from '.$path.', see https://getcomposer.org/commit-deps for more information');
-}
-
-$command = function ($url) use ($ref) {
-return sprintf('hg pull %s && hg up %s', ProcessExecutor::escape($url), ProcessExecutor::escape($ref));
-};
-
-$hgUtils->runCommand($command, $url, $path);
-}
-
-
-
-
-public function getLocalChanges(PackageInterface $package, $path)
-{
-if (!is_dir($path.'/.hg')) {
-return null;
-}
-
-$this->process->execute('hg st', $output, realpath($path));
-
-return trim($output) ?: null;
-}
-
-
-
-
-protected function getCommitLogs($fromReference, $toReference, $path)
-{
-$command = sprintf('hg log -r %s:%s --style compact', ProcessExecutor::escape($fromReference), ProcessExecutor::escape($toReference));
-
-if (0 !== $this->process->execute($command, $output, realpath($path))) {
-throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput());
-}
-
-return $output;
-}
-
-
-
-
-protected function hasMetadataRepository($path)
-{
-return is_dir($path . '/.hg');
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-use Composer\Package\Archiver\ArchivableFilesFinder;
-use Composer\Package\Dumper\ArrayDumper;
-use Composer\Package\PackageInterface;
-use Composer\Package\Version\VersionGuesser;
-use Composer\Package\Version\VersionParser;
-use Composer\Util\Platform;
-use Composer\Util\ProcessExecutor;
-use Composer\Util\Filesystem as ComposerFilesystem;
-use Symfony\Component\Filesystem\Exception\IOException;
-use Symfony\Component\Filesystem\Filesystem;
-
-
-
-
-
-
-
-class PathDownloader extends FileDownloader implements VcsCapableDownloaderInterface
-{
-const STRATEGY_SYMLINK = 10;
-const STRATEGY_MIRROR = 20;
-
-
-
-
-public function download(PackageInterface $package, $path, $output = true)
-{
-$url = $package->getDistUrl();
-$realUrl = realpath($url);
-if (false === $realUrl || !file_exists($realUrl) || !is_dir($realUrl)) {
-throw new \RuntimeException(sprintf(
-'Source path "%s" is not found for package %s',
-$url,
-$package->getName()
-));
-}
-
-if (strpos(realpath($path) . DIRECTORY_SEPARATOR, $realUrl . DIRECTORY_SEPARATOR) === 0) {
-
- 
- 
- 
- throw new \RuntimeException(sprintf(
-'Package %s cannot install to "%s" inside its source at "%s"',
-$package->getName(),
-realpath($path),
-$realUrl
-));
-}
-
-
- $transportOptions = $package->getTransportOptions() + array('symlink' => null);
-
-
- $currentStrategy = self::STRATEGY_SYMLINK;
-$allowedStrategies = array(self::STRATEGY_SYMLINK, self::STRATEGY_MIRROR);
-
-$mirrorPathRepos = getenv('COMPOSER_MIRROR_PATH_REPOS');
-if ($mirrorPathRepos) {
-$currentStrategy = self::STRATEGY_MIRROR;
-}
-
-if (true === $transportOptions['symlink']) {
-$currentStrategy = self::STRATEGY_SYMLINK;
-$allowedStrategies = array(self::STRATEGY_SYMLINK);
-} elseif (false === $transportOptions['symlink']) {
-$currentStrategy = self::STRATEGY_MIRROR;
-$allowedStrategies = array(self::STRATEGY_MIRROR);
-}
-
-$fileSystem = new Filesystem();
-$this->filesystem->removeDirectory($path);
-
-if ($output) {
-$this->io->writeError(sprintf(
-'  - Installing <info>%s</info> (<comment>%s</comment>): ',
-$package->getName(),
-$package->getFullPrettyVersion()
-), false);
-}
-
-$isFallback = false;
-if (self::STRATEGY_SYMLINK == $currentStrategy) {
-try {
-if (Platform::isWindows()) {
-
- $this->io->writeError(sprintf('Junctioning from %s', $url), false);
-$this->filesystem->junction($realUrl, $path);
-} else {
-$absolutePath = $path;
-if (!$this->filesystem->isAbsolutePath($absolutePath)) {
-$absolutePath = getcwd() . DIRECTORY_SEPARATOR . $path;
-}
-$shortestPath = $this->filesystem->findShortestPath($absolutePath, $realUrl);
-$path = rtrim($path, "/");
-$this->io->writeError(sprintf('Symlinking from %s', $url), false);
-$fileSystem->symlink($shortestPath, $path);
-}
-} catch (IOException $e) {
-if (in_array(self::STRATEGY_MIRROR, $allowedStrategies)) {
-$this->io->writeError('');
-$this->io->writeError('    <error>Symlink failed, fallback to use mirroring!</error>');
-$currentStrategy = self::STRATEGY_MIRROR;
-$isFallback = true;
-} else {
-throw new \RuntimeException(sprintf('Symlink from "%s" to "%s" failed!', $realUrl, $path));
-}
-}
-}
-
-
- if (self::STRATEGY_MIRROR == $currentStrategy) {
-$fs = new ComposerFilesystem();
-$realUrl = $fs->normalizePath($realUrl);
-
-$this->io->writeError(sprintf('%sMirroring from %s', $isFallback ? '    ' : '', $url), false);
-$iterator = new ArchivableFilesFinder($realUrl, array());
-$fileSystem->mirror($realUrl, $path, $iterator);
-}
-
-$this->io->writeError('');
-}
-
-
-
-
-public function remove(PackageInterface $package, $path, $output = true)
-{
-
-
-
-
-
-if (Platform::isWindows() && $this->filesystem->isJunction($path)) {
-if ($output) {
-$this->io->writeError("  - Removing junction for <info>" . $package->getName() . "</info> (<comment>" . $package->getFullPrettyVersion() . "</comment>)");
-}
-if (!$this->filesystem->removeJunction($path)) {
-$this->io->writeError("    <warning>Could not remove junction at " . $path . " - is another process locking it?</warning>");
-throw new \RuntimeException('Could not reliably remove junction for package ' . $package->getName());
-}
-} else {
-parent::remove($package, $path, $output);
-}
-}
-
-
-
-
-public function getVcsReference(PackageInterface $package, $path)
-{
-$parser = new VersionParser;
-$guesser = new VersionGuesser($this->config, new ProcessExecutor($this->io), $parser);
-$dumper = new ArrayDumper;
-
-$packageConfig = $dumper->dump($package);
-if ($packageVersion = $guesser->guessVersion($packageConfig, $path)) {
-return $packageVersion['commit'];
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-use Composer\Util\Filesystem;
-
-
-
-
-
-
-
-
-
-
-class PearPackageExtractor
-{
-private static $rolesWithoutPackageNamePrefix = array('php', 'script', 'www');
-
-private $filesystem;
-private $file;
-
-public function __construct($file)
-{
-if (!is_file($file)) {
-throw new \UnexpectedValueException('PEAR package file is not found at '.$file);
-}
-
-$this->filesystem = new Filesystem();
-$this->file = $file;
-}
-
-
-
-
-
-
-
-
-
-
-public function extractTo($target, array $roles = array('php' => '/', 'script' => '/bin'), $vars = array())
-{
-$extractionPath = $target.'/tarball';
-
-try {
-$archive = new \PharData($this->file);
-$archive->extractTo($extractionPath, null, true);
-
-if (!is_file($this->combine($extractionPath, '/package.xml'))) {
-throw new \RuntimeException('Invalid PEAR package. It must contain package.xml file.');
-}
-
-$fileCopyActions = $this->buildCopyActions($extractionPath, $roles, $vars);
-$this->copyFiles($fileCopyActions, $extractionPath, $target, $roles, $vars);
-$this->filesystem->removeDirectory($extractionPath);
-} catch (\Exception $exception) {
-throw new \UnexpectedValueException(sprintf('Failed to extract PEAR package %s to %s. Reason: %s', $this->file, $target, $exception->getMessage()), 0, $exception);
-}
-}
-
-
-
-
-
-
-
-
-
-
-private function copyFiles($files, $source, $target, $roles, $vars)
-{
-foreach ($files as $file) {
-$from = $this->combine($source, $file['from']);
-$to = $this->combine($target, $roles[$file['role']]);
-$to = $this->combine($to, $file['to']);
-$tasks = $file['tasks'];
-$this->copyFile($from, $to, $tasks, $vars);
-}
-}
-
-private function copyFile($from, $to, $tasks, $vars)
-{
-if (!is_file($from)) {
-throw new \RuntimeException('Invalid PEAR package. package.xml defines file that is not located inside tarball.');
-}
-
-$this->filesystem->ensureDirectoryExists(dirname($to));
-
-if (0 == count($tasks)) {
-$copied = copy($from, $to);
-} else {
-$content = file_get_contents($from);
-$replacements = array();
-foreach ($tasks as $task) {
-$pattern = $task['from'];
-$varName = $task['to'];
-if (isset($vars[$varName])) {
-if ($varName === 'php_bin' && false === strpos($to, '.bat')) {
-$replacements[$pattern] = preg_replace('{\.bat$}', '', $vars[$varName]);
-} else {
-$replacements[$pattern] = $vars[$varName];
-}
-}
-}
-$content = strtr($content, $replacements);
-
-$copied = file_put_contents($to, $content);
-}
-
-if (false === $copied) {
-throw new \RuntimeException(sprintf('Failed to copy %s to %s', $from, $to));
-}
-}
-
-
-
-
-
-
-
-
-
-
-
-private function buildCopyActions($source, array $roles, $vars)
-{
-
-$package = simplexml_load_string(file_get_contents($this->combine($source, 'package.xml')));
-if (false === $package) {
-throw new \RuntimeException('Package definition file is not valid.');
-}
-
-$packageSchemaVersion = $package['version'];
-if ('1.0' == $packageSchemaVersion) {
-$children = $package->release->filelist->children();
-$packageName = (string) $package->name;
-$packageVersion = (string) $package->release->version;
-$sourceDir = $packageName . '-' . $packageVersion;
-$result = $this->buildSourceList10($children, $roles, $sourceDir, '', null, $packageName);
-} elseif ('2.0' == $packageSchemaVersion || '2.1' == $packageSchemaVersion) {
-$children = $package->contents->children();
-$packageName = (string) $package->name;
-$packageVersion = (string) $package->version->release;
-$sourceDir = $packageName . '-' . $packageVersion;
-$result = $this->buildSourceList20($children, $roles, $sourceDir, '', null, $packageName);
-
-$namespaces = $package->getNamespaces();
-$package->registerXPathNamespace('ns', $namespaces['']);
-$releaseNodes = $package->xpath('ns:phprelease');
-$this->applyRelease($result, $releaseNodes, $vars);
-} else {
-throw new \RuntimeException('Unsupported schema version of package definition file.');
-}
-
-return $result;
-}
-
-private function applyRelease(&$actions, $releaseNodes, $vars)
-{
-foreach ($releaseNodes as $releaseNode) {
-$requiredOs = $releaseNode->installconditions && $releaseNode->installconditions->os && $releaseNode->installconditions->os->name ? (string) $releaseNode->installconditions->os->name : '';
-if ($requiredOs && $vars['os'] != $requiredOs) {
-continue;
-}
-
-if ($releaseNode->filelist) {
-foreach ($releaseNode->filelist->children() as $action) {
-if ('install' == $action->getName()) {
-$name = (string) $action['name'];
-$as = (string) $action['as'];
-if (isset($actions[$name])) {
-$actions[$name]['to'] = $as;
-}
-} elseif ('ignore' == $action->getName()) {
-$name = (string) $action['name'];
-unset($actions[$name]);
-} else {
-
- }
-}
-}
-break;
-}
-}
-
-private function buildSourceList10($children, $targetRoles, $source, $target, $role, $packageName)
-{
-$result = array();
-
-
- foreach ($children as $child) {
-
-if ($child->getName() == 'dir') {
-$dirSource = $this->combine($source, (string) $child['name']);
-$dirTarget = $child['baseinstalldir'] ?: $target;
-$dirRole = $child['role'] ?: $role;
-$dirFiles = $this->buildSourceList10($child->children(), $targetRoles, $dirSource, $dirTarget, $dirRole, $packageName);
-$result = array_merge($result, $dirFiles);
-} elseif ($child->getName() == 'file') {
-$fileRole = (string) $child['role'] ?: $role;
-if (isset($targetRoles[$fileRole])) {
-$fileName = (string) ($child['name'] ?: $child[0]); 
- $fileSource = $this->combine($source, $fileName);
-$fileTarget = $this->combine((string) $child['baseinstalldir'] ?: $target, $fileName);
-if (!in_array($fileRole, self::$rolesWithoutPackageNamePrefix)) {
-$fileTarget = $packageName . '/' . $fileTarget;
-}
-$result[(string) $child['name']] = array('from' => $fileSource, 'to' => $fileTarget, 'role' => $fileRole, 'tasks' => array());
-}
-}
-}
-
-return $result;
-}
-
-private function buildSourceList20($children, $targetRoles, $source, $target, $role, $packageName)
-{
-$result = array();
-
-
- foreach ($children as $child) {
-
-if ('dir' == $child->getName()) {
-$dirSource = $this->combine($source, $child['name']);
-$dirTarget = $child['baseinstalldir'] ?: $target;
-$dirRole = $child['role'] ?: $role;
-$dirFiles = $this->buildSourceList20($child->children(), $targetRoles, $dirSource, $dirTarget, $dirRole, $packageName);
-$result = array_merge($result, $dirFiles);
-} elseif ('file' == $child->getName()) {
-$fileRole = (string) $child['role'] ?: $role;
-if (isset($targetRoles[$fileRole])) {
-$fileSource = $this->combine($source, (string) $child['name']);
-$fileTarget = $this->combine((string) ($child['baseinstalldir'] ?: $target), (string) $child['name']);
-$fileTasks = array();
-foreach ($child->children('http://pear.php.net/dtd/tasks-1.0') as $taskNode) {
-if ('replace' == $taskNode->getName()) {
-$fileTasks[] = array('from' => (string) $taskNode->attributes()->from, 'to' => (string) $taskNode->attributes()->to);
-}
-}
-if (!in_array($fileRole, self::$rolesWithoutPackageNamePrefix)) {
-$fileTarget = $packageName . '/' . $fileTarget;
-}
-$result[(string) $child['name']] = array('from' => $fileSource, 'to' => $fileTarget, 'role' => $fileRole, 'tasks' => $fileTasks);
-}
-}
-}
-
-return $result;
-}
-
-private function combine($left, $right)
-{
-return rtrim($left, '/') . '/' . ltrim($right, '/');
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-use Composer\Package\PackageInterface;
-use Composer\Repository\VcsRepository;
-use Composer\Util\Perforce;
-
-
-
-
-class PerforceDownloader extends VcsDownloader
-{
-
-protected $perforce;
-
-
-
-
-public function doDownload(PackageInterface $package, $path, $url)
-{
-$ref = $package->getSourceReference();
-$label = $this->getLabelFromSourceReference($ref);
-
-$this->io->writeError('Cloning ' . $ref);
-$this->initPerforce($package, $path, $url);
-$this->perforce->setStream($ref);
-$this->perforce->p4Login();
-$this->perforce->writeP4ClientSpec();
-$this->perforce->connectClient();
-$this->perforce->syncCodeBase($label);
-$this->perforce->cleanupClientSpec();
-}
-
-private function getLabelFromSourceReference($ref)
-{
-$pos = strpos($ref, '@');
-if (false !== $pos) {
-return substr($ref, $pos + 1);
-}
-
-return null;
-}
-
-public function initPerforce(PackageInterface $package, $path, $url)
-{
-if (!empty($this->perforce)) {
-$this->perforce->initializePath($path);
-
-return;
-}
-
-$repository = $package->getRepository();
-$repoConfig = null;
-if ($repository instanceof VcsRepository) {
-$repoConfig = $this->getRepoConfig($repository);
-}
-$this->perforce = Perforce::create($repoConfig, $url, $path, $this->process, $this->io);
-}
-
-private function getRepoConfig(VcsRepository $repository)
-{
-return $repository->getRepoConfig();
-}
-
-
-
-
-public function doUpdate(PackageInterface $initial, PackageInterface $target, $path, $url)
-{
-$this->doDownload($target, $path, $url);
-}
-
-
-
-
-public function getLocalChanges(PackageInterface $package, $path)
-{
-$this->io->writeError('Perforce driver does not check for local changes before overriding', true);
-
-return;
-}
-
-
-
-
-protected function getCommitLogs($fromReference, $toReference, $path)
-{
-return $this->perforce->getCommitLogs($fromReference, $toReference);
-}
-
-public function setPerforce($perforce)
-{
-$this->perforce = $perforce;
-}
-
-
-
-
-protected function hasMetadataRepository($path)
-{
-return true;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-
-
-
-
-
-class PharDownloader extends ArchiveDownloader
-{
-
-
-
-protected function extract($file, $path)
-{
-
- $archive = new \Phar($file);
-$archive->extractTo($path, null, true);
-
-
-
-
-
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-use Composer\Config;
-use Composer\Cache;
-use Composer\EventDispatcher\EventDispatcher;
-use Composer\Util\IniHelper;
-use Composer\Util\Platform;
-use Composer\Util\ProcessExecutor;
-use Composer\Util\RemoteFilesystem;
-use Composer\IO\IOInterface;
-use RarArchive;
-
-
-
-
-
-
-
-
-class RarDownloader extends ArchiveDownloader
-{
-protected $process;
-
-public function __construct(IOInterface $io, Config $config, EventDispatcher $eventDispatcher = null, Cache $cache = null, ProcessExecutor $process = null, RemoteFilesystem $rfs = null)
-{
-$this->process = $process ?: new ProcessExecutor($io);
-parent::__construct($io, $config, $eventDispatcher, $cache, $rfs);
-}
-
-protected function extract($file, $path)
-{
-$processError = null;
-
-
- if (!Platform::isWindows()) {
-$command = 'unrar x ' . ProcessExecutor::escape($file) . ' ' . ProcessExecutor::escape($path) . ' >/dev/null && chmod -R u+w ' . ProcessExecutor::escape($path);
-
-if (0 === $this->process->execute($command, $ignoredOutput)) {
-return;
-}
-
-$processError = 'Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput();
-}
-
-if (!class_exists('RarArchive')) {
-
- $iniMessage = IniHelper::getMessage();
-
-$error = "Could not decompress the archive, enable the PHP rar extension or install unrar.\n"
-. $iniMessage . "\n" . $processError;
-
-if (!Platform::isWindows()) {
-$error = "Could not decompress the archive, enable the PHP rar extension.\n" . $iniMessage;
-}
-
-throw new \RuntimeException($error);
-}
-
-$rarArchive = RarArchive::open($file);
-
-if (false === $rarArchive) {
-throw new \UnexpectedValueException('Could not open RAR archive: ' . $file);
-}
-
-$entries = $rarArchive->getEntries();
-
-if (false === $entries) {
-throw new \RuntimeException('Could not retrieve RAR archive entries');
-}
-
-foreach ($entries as $entry) {
-if (false === $entry->extract($path)) {
-throw new \RuntimeException('Could not extract entry');
-}
-}
-
-$rarArchive->close();
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-use Composer\Package\PackageInterface;
-use Composer\Util\Svn as SvnUtil;
-use Composer\Repository\VcsRepository;
-use Composer\Util\ProcessExecutor;
-
-
-
-
-
-class SvnDownloader extends VcsDownloader
-{
-protected $cacheCredentials = true;
-
-
-
-
-public function doDownload(PackageInterface $package, $path, $url)
-{
-SvnUtil::cleanEnv();
-$ref = $package->getSourceReference();
-
-$repo = $package->getRepository();
-if ($repo instanceof VcsRepository) {
-$repoConfig = $repo->getRepoConfig();
-if (array_key_exists('svn-cache-credentials', $repoConfig)) {
-$this->cacheCredentials = (bool) $repoConfig['svn-cache-credentials'];
-}
-}
-
-$this->io->writeError(" Checking out ".$package->getSourceReference());
-$this->execute($url, "svn co", sprintf("%s/%s", $url, $ref), null, $path);
-}
-
-
-
-
-public function doUpdate(PackageInterface $initial, PackageInterface $target, $path, $url)
-{
-SvnUtil::cleanEnv();
-$ref = $target->getSourceReference();
-
-if (!$this->hasMetadataRepository($path)) {
-throw new \RuntimeException('The .svn directory is missing from '.$path.', see https://getcomposer.org/commit-deps for more information');
-}
-
-$util = new SvnUtil($url, $this->io, $this->config);
-$flags = "";
-if (version_compare($util->binaryVersion(), '1.7.0', '>=')) {
-$flags .= ' --ignore-ancestry';
-}
-
-$this->io->writeError(" Checking out " . $ref);
-$this->execute($url, "svn switch" . $flags, sprintf("%s/%s", $url, $ref), $path);
-}
-
-
-
-
-public function getLocalChanges(PackageInterface $package, $path)
-{
-if (!$this->hasMetadataRepository($path)) {
-return null;
-}
-
-$this->process->execute('svn status --ignore-externals', $output, $path);
-
-return preg_match('{^ *[^X ] +}m', $output) ? $output : null;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-protected function execute($baseUrl, $command, $url, $cwd = null, $path = null)
-{
-$util = new SvnUtil($baseUrl, $this->io, $this->config);
-$util->setCacheCredentials($this->cacheCredentials);
-try {
-return $util->execute($command, $url, $cwd, $path, $this->io->isVerbose());
-} catch (\RuntimeException $e) {
-throw new \RuntimeException(
-'Package could not be downloaded, '.$e->getMessage()
-);
-}
-}
-
-
-
-
-protected function cleanChanges(PackageInterface $package, $path, $update)
-{
-if (!$changes = $this->getLocalChanges($package, $path)) {
-return;
-}
-
-if (!$this->io->isInteractive()) {
-if (true === $this->config->get('discard-changes')) {
-return $this->discardChanges($path);
-}
-
-return parent::cleanChanges($package, $path, $update);
-}
-
-$changes = array_map(function ($elem) {
-return '    '.$elem;
-}, preg_split('{\s*\r?\n\s*}', $changes));
-$countChanges = count($changes);
-$this->io->writeError(sprintf('    <error>The package has modified file%s:</error>', $countChanges === 1 ? '' : 's'));
-$this->io->writeError(array_slice($changes, 0, 10));
-if ($countChanges > 10) {
-$remaingChanges = $countChanges - 10;
-$this->io->writeError(
-sprintf(
-'    <info>'.$remaingChanges.' more file%s modified, choose "v" to view the full list</info>',
-$remaingChanges === 1 ? '' : 's'
-)
-);
-}
-
-while (true) {
-switch ($this->io->ask('    <info>Discard changes [y,n,v,?]?</info> ', '?')) {
-case 'y':
-$this->discardChanges($path);
-break 2;
-
-case 'n':
-throw new \RuntimeException('Update aborted');
-
-case 'v':
-$this->io->writeError($changes);
-break;
-
-case '?':
-default:
-$this->io->writeError(array(
-'    y - discard changes and apply the '.($update ? 'update' : 'uninstall'),
-'    n - abort the '.($update ? 'update' : 'uninstall').' and let you manually clean things up',
-'    v - view modified files',
-'    ? - print help',
-));
-break;
-}
-}
-}
-
-
-
-
-protected function getCommitLogs($fromReference, $toReference, $path)
-{
-if (preg_match('{.*@(\d+)$}', $fromReference) && preg_match('{.*@(\d+)$}', $toReference)) {
-
- $command = sprintf('svn info --non-interactive --xml %s', ProcessExecutor::escape($path));
-if (0 !== $this->process->execute($command, $output, $path)) {
-throw new \RuntimeException(
-'Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput()
-);
-}
-
-$urlPattern = '#<url>(.*)</url>#';
-if (preg_match($urlPattern, $output, $matches)) {
-$baseUrl = $matches[1];
-} else {
-throw new \RuntimeException(
-'Unable to determine svn url for path '. $path
-);
-}
-
-
- $fromRevision = preg_replace('{.*@(\d+)$}', '$1', $fromReference);
-$toRevision = preg_replace('{.*@(\d+)$}', '$1', $toReference);
-
-$command = sprintf('svn log -r%s:%s --incremental', ProcessExecutor::escape($fromRevision), ProcessExecutor::escape($toRevision));
-
-$util = new SvnUtil($baseUrl, $this->io, $this->config);
-$util->setCacheCredentials($this->cacheCredentials);
-try {
-return $util->executeLocal($command, $path, null, $this->io->isVerbose());
-} catch (\RuntimeException $e) {
-throw new \RuntimeException(
-'Failed to execute ' . $command . "\n\n".$e->getMessage()
-);
-}
-}
-
-return "Could not retrieve changes between $fromReference and $toReference due to missing revision information";
-}
-
-protected function discardChanges($path)
-{
-if (0 !== $this->process->execute('svn revert -R .', $output, $path)) {
-throw new \RuntimeException("Could not reset changes\n\n:".$this->process->getErrorOutput());
-}
-}
-
-
-
-
-protected function hasMetadataRepository($path)
-{
-return is_dir($path.'/.svn');
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-
-
-
-
-
-class TarDownloader extends ArchiveDownloader
-{
-
-
-
-protected function extract($file, $path)
-{
-
- $archive = new \PharData($file);
-$archive->extractTo($path, null, true);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-
-
-
-class TransportException extends \RuntimeException
-{
-protected $headers;
-protected $response;
-protected $statusCode;
-
-public function setHeaders($headers)
-{
-$this->headers = $headers;
-}
-
-public function getHeaders()
-{
-return $this->headers;
-}
-
-public function setResponse($response)
-{
-$this->response = $response;
-}
-
-public function getResponse()
-{
-return $this->response;
-}
-
-public function setStatusCode($statusCode)
-{
-$this->statusCode = $statusCode;
-}
-
-public function getStatusCode()
-{
-return $this->statusCode;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-use Composer\Package\PackageInterface;
-
-
-
-
-
-
-interface VcsCapableDownloaderInterface
-{
-
-
-
-
-
-
-
-public function getVcsReference(PackageInterface $package, $path);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-use Composer\Config;
-use Composer\Package\Dumper\ArrayDumper;
-use Composer\Package\PackageInterface;
-use Composer\Package\Version\VersionGuesser;
-use Composer\Package\Version\VersionParser;
-use Composer\Util\ProcessExecutor;
-use Composer\IO\IOInterface;
-use Composer\Util\Filesystem;
-
-
-
-
-abstract class VcsDownloader implements DownloaderInterface, ChangeReportInterface, VcsCapableDownloaderInterface
-{
-
-protected $io;
-
-protected $config;
-
-protected $process;
-
-protected $filesystem;
-
-public function __construct(IOInterface $io, Config $config, ProcessExecutor $process = null, Filesystem $fs = null)
-{
-$this->io = $io;
-$this->config = $config;
-$this->process = $process ?: new ProcessExecutor($io);
-$this->filesystem = $fs ?: new Filesystem($this->process);
-}
-
-
-
-
-public function getInstallationSource()
-{
-return 'source';
-}
-
-
-
-
-public function download(PackageInterface $package, $path)
-{
-if (!$package->getSourceReference()) {
-throw new \InvalidArgumentException('Package '.$package->getPrettyName().' is missing reference information');
-}
-
-$this->io->writeError("  - Installing <info>" . $package->getName() . "</info> (<comment>" . $package->getFullPrettyVersion() . "</comment>): ", false);
-$this->filesystem->emptyDirectory($path);
-
-$urls = $package->getSourceUrls();
-while ($url = array_shift($urls)) {
-try {
-if (Filesystem::isLocalPath($url)) {
-
- 
- $needle = 'file://';
-$isFileProtocol = false;
-if (0 === strpos($url, $needle)) {
-$url = substr($url, strlen($needle));
-$isFileProtocol = true;
-}
-
-
- if (false !== strpos($url, '%')) {
-$url = rawurldecode($url);
-}
-
-$url = realpath($url);
-
-if ($isFileProtocol) {
-$url = $needle . $url;
-}
-}
-$this->doDownload($package, $path, $url);
-break;
-} catch (\Exception $e) {
-
- if ($e instanceof \PHPUnit_Framework_Exception) {
-throw $e;
-}
-if ($this->io->isDebug()) {
-$this->io->writeError('Failed: ['.get_class($e).'] '.$e->getMessage());
-} elseif (count($urls)) {
-$this->io->writeError('    Failed, trying the next URL');
-}
-if (!count($urls)) {
-throw $e;
-}
-}
-}
-}
-
-
-
-
-public function update(PackageInterface $initial, PackageInterface $target, $path)
-{
-if (!$target->getSourceReference()) {
-throw new \InvalidArgumentException('Package '.$target->getPrettyName().' is missing reference information');
-}
-
-$name = $target->getName();
-if ($initial->getPrettyVersion() == $target->getPrettyVersion()) {
-if ($target->getSourceType() === 'svn') {
-$from = $initial->getSourceReference();
-$to = $target->getSourceReference();
-} else {
-$from = substr($initial->getSourceReference(), 0, 7);
-$to = substr($target->getSourceReference(), 0, 7);
-}
-$name .= ' '.$initial->getPrettyVersion();
-} else {
-$from = $initial->getFullPrettyVersion();
-$to = $target->getFullPrettyVersion();
-}
-
-$actionName = VersionParser::isUpgrade($initial->getVersion(), $target->getVersion()) ? 'Updating' : 'Downgrading';
-$this->io->writeError("  - " . $actionName . " <info>" . $name . "</info> (<comment>" . $from . "</comment> => <comment>" . $to . "</comment>): ", false);
-
-$this->cleanChanges($initial, $path, true);
-$urls = $target->getSourceUrls();
-
-$exception = null;
-while ($url = array_shift($urls)) {
-try {
-if (Filesystem::isLocalPath($url)) {
-$url = realpath($url);
-}
-$this->doUpdate($initial, $target, $path, $url);
-
-$exception = null;
-break;
-} catch (\Exception $exception) {
-
- if ($exception instanceof \PHPUnit_Framework_Exception) {
-throw $exception;
-}
-if ($this->io->isDebug()) {
-$this->io->writeError('Failed: ['.get_class($exception).'] '.$exception->getMessage());
-} elseif (count($urls)) {
-$this->io->writeError('    Failed, trying the next URL');
-}
-}
-}
-
-$this->reapplyChanges($path);
-
-
- 
- if (!$exception && $this->io->isVerbose() && $this->hasMetadataRepository($path)) {
-$message = 'Pulling in changes:';
-$logs = $this->getCommitLogs($initial->getSourceReference(), $target->getSourceReference(), $path);
-
-if (!trim($logs)) {
-$message = 'Rolling back changes:';
-$logs = $this->getCommitLogs($target->getSourceReference(), $initial->getSourceReference(), $path);
-}
-
-if (trim($logs)) {
-$logs = implode("\n", array_map(function ($line) {
-return '      ' . $line;
-}, explode("\n", $logs)));
-
-
- $logs = str_replace('<', '\<', $logs);
-
-$this->io->writeError('    '.$message);
-$this->io->writeError($logs);
-}
-}
-
-if (!$urls && $exception) {
-throw $exception;
-}
-}
-
-
-
-
-public function remove(PackageInterface $package, $path)
-{
-$this->io->writeError("  - Removing <info>" . $package->getName() . "</info> (<comment>" . $package->getPrettyVersion() . "</comment>)");
-$this->cleanChanges($package, $path, false);
-if (!$this->filesystem->removeDirectory($path)) {
-throw new \RuntimeException('Could not completely delete '.$path.', aborting.');
-}
-}
-
-
-
-
-
-public function setOutputProgress($outputProgress)
-{
-return $this;
-}
-
-
-
-
-public function getVcsReference(PackageInterface $package, $path)
-{
-$parser = new VersionParser;
-$guesser = new VersionGuesser($this->config, $this->process, $parser);
-$dumper = new ArrayDumper;
-
-$packageConfig = $dumper->dump($package);
-if ($packageVersion = $guesser->guessVersion($packageConfig, $path)) {
-return $packageVersion['commit'];
-}
-}
-
-
-
-
-
-
-
-
-
-
-protected function cleanChanges(PackageInterface $package, $path, $update)
-{
-
- if (null !== $this->getLocalChanges($package, $path)) {
-throw new \RuntimeException('Source directory ' . $path . ' has uncommitted changes.');
-}
-}
-
-
-
-
-
-
-
-protected function reapplyChanges($path)
-{
-}
-
-
-
-
-
-
-
-
-abstract protected function doDownload(PackageInterface $package, $path, $url);
-
-
-
-
-
-
-
-
-
-abstract protected function doUpdate(PackageInterface $initial, PackageInterface $target, $path, $url);
-
-
-
-
-
-
-
-
-
-abstract protected function getCommitLogs($fromReference, $toReference, $path);
-
-
-
-
-
-
-
-
-abstract protected function hasMetadataRepository($path);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-use Composer\Config;
-use Composer\Cache;
-use Composer\EventDispatcher\EventDispatcher;
-use Composer\Package\PackageInterface;
-use Composer\Util\ProcessExecutor;
-use Composer\Util\RemoteFilesystem;
-use Composer\IO\IOInterface;
-
-
-
-
-
-
-
-class XzDownloader extends ArchiveDownloader
-{
-protected $process;
-
-public function __construct(IOInterface $io, Config $config, EventDispatcher $eventDispatcher = null, Cache $cache = null, ProcessExecutor $process = null, RemoteFilesystem $rfs = null)
-{
-$this->process = $process ?: new ProcessExecutor($io);
-
-parent::__construct($io, $config, $eventDispatcher, $cache, $rfs);
-}
-
-protected function extract($file, $path)
-{
-$command = 'tar -xJf ' . ProcessExecutor::escape($file) . ' -C ' . ProcessExecutor::escape($path);
-
-if (0 === $this->process->execute($command, $ignoredOutput)) {
-return;
-}
-
-$processError = 'Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput();
-
-throw new \RuntimeException($processError);
-}
-
-
-
-
-protected function getFileName(PackageInterface $package, $path)
-{
-return $path.'/'.pathinfo(parse_url($package->getDistUrl(), PHP_URL_PATH), PATHINFO_BASENAME);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Downloader;
-
-use Composer\Config;
-use Composer\Cache;
-use Composer\EventDispatcher\EventDispatcher;
-use Composer\Package\PackageInterface;
-use Composer\Util\IniHelper;
-use Composer\Util\Platform;
-use Composer\Util\ProcessExecutor;
-use Composer\Util\RemoteFilesystem;
-use Composer\IO\IOInterface;
-use Symfony\Component\Process\ExecutableFinder;
-use ZipArchive;
-
-
-
-
-class ZipDownloader extends ArchiveDownloader
-{
-protected static $hasSystemUnzip;
-private static $hasZipArchive;
-private static $isWindows;
-
-protected $process;
-private $zipArchiveObject;
-
-public function __construct(IOInterface $io, Config $config, EventDispatcher $eventDispatcher = null, Cache $cache = null, ProcessExecutor $process = null, RemoteFilesystem $rfs = null)
-{
-$this->process = $process ?: new ProcessExecutor($io);
-parent::__construct($io, $config, $eventDispatcher, $cache, $rfs);
-}
-
-
-
-
-public function download(PackageInterface $package, $path, $output = true)
-{
-if (null === self::$hasSystemUnzip) {
-$finder = new ExecutableFinder;
-self::$hasSystemUnzip = (bool) $finder->find('unzip');
-}
-
-if (null === self::$hasZipArchive) {
-self::$hasZipArchive = class_exists('ZipArchive');
-}
-
-if (!self::$hasZipArchive && !self::$hasSystemUnzip) {
-
- $iniMessage = IniHelper::getMessage();
-$error = "The zip extension and unzip command are both missing, skipping.\n" . $iniMessage;
-
-throw new \RuntimeException($error);
-}
-
-if (null === self::$isWindows) {
-self::$isWindows = Platform::isWindows();
-
-if (!self::$isWindows && !self::$hasSystemUnzip) {
-$this->io->writeError("<warning>As there is no 'unzip' command installed zip files are being unpacked using the PHP zip extension.</warning>");
-$this->io->writeError("<warning>This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost.</warning>");
-$this->io->writeError("<warning>Installing 'unzip' may remediate them.</warning>");
-}
-}
-
-return parent::download($package, $path, $output);
-}
-
-
-
-
-
-
-
-
-
-protected function extractWithSystemUnzip($file, $path, $isLastChance)
-{
-if (!self::$hasZipArchive) {
-
- $isLastChance = true;
-}
-
-if (!self::$hasSystemUnzip && !$isLastChance) {
-
- 
- return $this->extractWithZipArchive($file, $path, true);
-}
-
-$processError = null;
-
- $overwrite = $isLastChance ? '-o' : '';
-
-$command = 'unzip -qq '.$overwrite.' '.ProcessExecutor::escape($file).' -d '.ProcessExecutor::escape($path);
-
-try {
-if (0 === $this->process->execute($command, $ignoredOutput)) {
-return true;
-}
-
-$processError = new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput());
-} catch (\Exception $e) {
-$processError = $e;
-}
-
-if ($isLastChance) {
-throw $processError;
-}
-
-$this->io->writeError('    '.$processError->getMessage());
-$this->io->writeError('    The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)');
-$this->io->writeError('    Unzip with unzip command failed, falling back to ZipArchive class');
-
-return $this->extractWithZipArchive($file, $path, true);
-}
-
-
-
-
-
-
-
-
-
-protected function extractWithZipArchive($file, $path, $isLastChance)
-{
-if (!self::$hasSystemUnzip) {
-
- $isLastChance = true;
-}
-
-if (!self::$hasZipArchive && !$isLastChance) {
-
- 
- return $this->extractWithSystemUnzip($file, $path, true);
-}
-
-$processError = null;
-$zipArchive = $this->zipArchiveObject ?: new ZipArchive();
-
-try {
-if (true === ($retval = $zipArchive->open($file))) {
-$extractResult = $zipArchive->extractTo($path);
-
-if (true === $extractResult) {
-$zipArchive->close();
-
-return true;
-}
-
-$processError = new \RuntimeException(rtrim("There was an error extracting the ZIP file, it is either corrupted or using an invalid format.\n"));
-} else {
-$processError = new \UnexpectedValueException(rtrim($this->getErrorMessage($retval, $file)."\n"), $retval);
-}
-} catch (\ErrorException $e) {
-$processError = new \RuntimeException('The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems): '.$e->getMessage(), 0, $e);
-} catch (\Exception $e) {
-$processError = $e;
-}
-
-if ($isLastChance) {
-throw $processError;
-}
-
-$this->io->writeError('    '.$processError->getMessage());
-$this->io->writeError('    Unzip with ZipArchive class failed, falling back to unzip command');
-
-return $this->extractWithSystemUnzip($file, $path, true);
-}
-
-
-
-
-
-
-
-public function extract($file, $path)
-{
-
- if (self::$isWindows) {
-$this->extractWithZipArchive($file, $path, false);
-} else {
-$this->extractWithSystemUnzip($file, $path, false);
-}
-}
-
-
-
-
-
-
-
-
-protected function getErrorMessage($retval, $file)
-{
-switch ($retval) {
-case ZipArchive::ER_EXISTS:
-return sprintf("File '%s' already exists.", $file);
-case ZipArchive::ER_INCONS:
-return sprintf("Zip archive '%s' is inconsistent.", $file);
-case ZipArchive::ER_INVAL:
-return sprintf("Invalid argument (%s)", $file);
-case ZipArchive::ER_MEMORY:
-return sprintf("Malloc failure (%s)", $file);
-case ZipArchive::ER_NOENT:
-return sprintf("No such zip file: '%s'", $file);
-case ZipArchive::ER_NOZIP:
-return sprintf("'%s' is not a zip archive.", $file);
-case ZipArchive::ER_OPEN:
-return sprintf("Can't open zip file: %s", $file);
-case ZipArchive::ER_READ:
-return sprintf("Zip read error (%s)", $file);
-case ZipArchive::ER_SEEK:
-return sprintf("Zip seek error (%s)", $file);
-default:
-return sprintf("'%s' is not a valid zip archive, got error code: %s", $file, $retval);
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\EventDispatcher;
-
-
-
-
-
-
-class Event
-{
-
-
-
-protected $name;
-
-
-
-
-protected $args;
-
-
-
-
-protected $flags;
-
-
-
-
-private $propagationStopped = false;
-
-
-
-
-
-
-
-
-public function __construct($name, array $args = array(), array $flags = array())
-{
-$this->name = $name;
-$this->args = $args;
-$this->flags = $flags;
-}
-
-
-
-
-
-
-public function getName()
-{
-return $this->name;
-}
-
-
-
-
-
-
-public function getArguments()
-{
-return $this->args;
-}
-
-
-
-
-
-
-public function getFlags()
-{
-return $this->flags;
-}
-
-
-
-
-
-
-public function isPropagationStopped()
-{
-return $this->propagationStopped;
-}
-
-
-
-
-public function stopPropagation()
-{
-$this->propagationStopped = true;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\EventDispatcher;
-
-use Composer\DependencyResolver\PolicyInterface;
-use Composer\DependencyResolver\Pool;
-use Composer\DependencyResolver\Request;
-use Composer\Installer\InstallerEvent;
-use Composer\IO\IOInterface;
-use Composer\Composer;
-use Composer\DependencyResolver\Operation\OperationInterface;
-use Composer\Repository\CompositeRepository;
-use Composer\Script;
-use Composer\Installer\PackageEvent;
-use Composer\Installer\BinaryInstaller;
-use Composer\Util\ProcessExecutor;
-use Composer\Script\Event as ScriptEvent;
-use Symfony\Component\Process\PhpExecutableFinder;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-class EventDispatcher
-{
-protected $composer;
-protected $io;
-protected $loader;
-protected $process;
-protected $listeners;
-private $eventStack;
-
-
-
-
-
-
-
-
-public function __construct(Composer $composer, IOInterface $io, ProcessExecutor $process = null)
-{
-$this->composer = $composer;
-$this->io = $io;
-$this->process = $process ?: new ProcessExecutor($io);
-$this->eventStack = array();
-}
-
-
-
-
-
-
-
-
-
-public function dispatch($eventName, Event $event = null)
-{
-if (null === $event) {
-$event = new Event($eventName);
-}
-
-return $this->doDispatch($event);
-}
-
-
-
-
-
-
-
-
-
-
-
-public function dispatchScript($eventName, $devMode = false, $additionalArgs = array(), $flags = array())
-{
-return $this->doDispatch(new Script\Event($eventName, $this->composer, $this->io, $devMode, $additionalArgs, $flags));
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function dispatchPackageEvent($eventName, $devMode, PolicyInterface $policy, Pool $pool, CompositeRepository $installedRepo, Request $request, array $operations, OperationInterface $operation)
-{
-return $this->doDispatch(new PackageEvent($eventName, $this->composer, $this->io, $devMode, $policy, $pool, $installedRepo, $request, $operations, $operation));
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function dispatchInstallerEvent($eventName, $devMode, PolicyInterface $policy, Pool $pool, CompositeRepository $installedRepo, Request $request, array $operations = array())
-{
-return $this->doDispatch(new InstallerEvent($eventName, $this->composer, $this->io, $devMode, $policy, $pool, $installedRepo, $request, $operations));
-}
-
-
-
-
-
-
-
-
-
-protected function doDispatch(Event $event)
-{
-$pathStr = 'PATH';
-if (!isset($_SERVER[$pathStr]) && isset($_SERVER['Path'])) {
-$pathStr = 'Path';
-}
-
-
- $binDir = $this->composer->getConfig()->get('bin-dir');
-if (is_dir($binDir)) {
-$binDir = realpath($binDir);
-if (isset($_SERVER[$pathStr]) && !preg_match('{(^|'.PATH_SEPARATOR.')'.preg_quote($binDir).'($|'.PATH_SEPARATOR.')}', $_SERVER[$pathStr])) {
-$_SERVER[$pathStr] = $binDir.PATH_SEPARATOR.getenv($pathStr);
-putenv($pathStr.'='.$_SERVER[$pathStr]);
-}
-}
-
-$listeners = $this->getListeners($event);
-
-$this->pushEvent($event);
-
-$return = 0;
-foreach ($listeners as $callable) {
-if (!is_string($callable)) {
-if (!is_callable($callable)) {
-$className = is_object($callable[0]) ? get_class($callable[0]) : $callable[0];
-
-throw new \RuntimeException('Subscriber '.$className.'::'.$callable[1].' for event '.$event->getName().' is not callable, make sure the function is defined and public');
-}
-$event = $this->checkListenerExpectedEvent($callable, $event);
-$return = false === call_user_func($callable, $event) ? 1 : 0;
-} elseif ($this->isComposerScript($callable)) {
-$this->io->writeError(sprintf('> %s: %s', $event->getName(), $callable), true, IOInterface::VERBOSE);
-
-$script = explode(' ', substr($callable, 1));
-$scriptName = $script[0];
-unset($script[0]);
-
-$args = array_merge($script, $event->getArguments());
-$flags = $event->getFlags();
-if (substr($callable, 0, 10) === '@composer ') {
-$exec = $this->getPhpExecCommand() . ' ' . ProcessExecutor::escape(getenv('COMPOSER_BINARY')) . substr($callable, 9);
-if (0 !== ($exitCode = $this->process->execute($exec))) {
-$this->io->writeError(sprintf('<error>Script %s handling the %s event returned with error code '.$exitCode.'</error>', $callable, $event->getName()), true, IOInterface::QUIET);
-
-throw new ScriptExecutionException('Error Output: '.$this->process->getErrorOutput(), $exitCode);
-}
-} else {
-if (!$this->getListeners(new Event($scriptName))) {
-$this->io->writeError(sprintf('<warning>You made a reference to a non-existent script %s</warning>', $callable), true, IOInterface::QUIET);
-}
-
-try {
-$return = $this->dispatch($scriptName, new Script\Event($scriptName, $event->getComposer(), $event->getIO(), $event->isDevMode(), $args, $flags));
-} catch (ScriptExecutionException $e) {
-$this->io->writeError(sprintf('<error>Script %s was called via %s</error>', $callable, $event->getName()), true, IOInterface::QUIET);
-throw $e;
-}
-}
-} elseif ($this->isPhpScript($callable)) {
-$className = substr($callable, 0, strpos($callable, '::'));
-$methodName = substr($callable, strpos($callable, '::') + 2);
-
-if (!class_exists($className)) {
-$this->io->writeError('<warning>Class '.$className.' is not autoloadable, can not call '.$event->getName().' script</warning>', true, IOInterface::QUIET);
-continue;
-}
-if (!is_callable($callable)) {
-$this->io->writeError('<warning>Method '.$callable.' is not callable, can not call '.$event->getName().' script</warning>', true, IOInterface::QUIET);
-continue;
-}
-
-try {
-$return = false === $this->executeEventPhpScript($className, $methodName, $event) ? 1 : 0;
-} catch (\Exception $e) {
-$message = "Script %s handling the %s event terminated with an exception";
-$this->io->writeError('<error>'.sprintf($message, $callable, $event->getName()).'</error>', true, IOInterface::QUIET);
-throw $e;
-}
-} else {
-$args = implode(' ', array_map(array('Composer\Util\ProcessExecutor', 'escape'), $event->getArguments()));
-$exec = $callable . ($args === '' ? '' : ' '.$args);
-if ($this->io->isVerbose()) {
-$this->io->writeError(sprintf('> %s: %s', $event->getName(), $exec));
-} else {
-$this->io->writeError(sprintf('> %s', $exec));
-}
-
-$possibleLocalBinaries = $this->composer->getPackage()->getBinaries();
-if ($possibleLocalBinaries) {
-foreach ($possibleLocalBinaries as $localExec) {
-if (preg_match('{\b'.preg_quote($callable).'$}', $localExec)) {
-$caller = BinaryInstaller::determineBinaryCaller($localExec);
-$exec = preg_replace('{^'.preg_quote($callable).'}', $caller . ' ' . $localExec, $exec);
-break;
-}
-}
-}
-
-if (substr($exec, 0, 5) === '@php ') {
-$exec = $this->getPhpExecCommand() . ' ' . substr($exec, 5);
-}
-
-if (0 !== ($exitCode = $this->process->execute($exec))) {
-$this->io->writeError(sprintf('<error>Script %s handling the %s event returned with error code '.$exitCode.'</error>', $callable, $event->getName()), true, IOInterface::QUIET);
-
-throw new ScriptExecutionException('Error Output: '.$this->process->getErrorOutput(), $exitCode);
-}
-}
-
-if ($event->isPropagationStopped()) {
-break;
-}
-}
-
-$this->popEvent();
-
-return $return;
-}
-
-protected function getPhpExecCommand()
-{
-$finder = new PhpExecutableFinder();
-$phpPath = $finder->find(false);
-if (!$phpPath) {
-throw new \RuntimeException('Failed to locate PHP binary to execute '.$phpPath);
-}
-$phpArgs = $finder->findArguments();
-$phpArgs = $phpArgs ? ' ' . implode(' ', $phpArgs) : '';
-$allowUrlFOpenFlag = ' -d allow_url_fopen=' . ProcessExecutor::escape(ini_get('allow_url_fopen'));
-$disableFunctionsFlag = ' -d disable_functions=' . ProcessExecutor::escape(ini_get('disable_functions'));
-$memoryLimitFlag = ' -d memory_limit=' . ProcessExecutor::escape(ini_get('memory_limit'));
-
-return ProcessExecutor::escape($phpPath) . $phpArgs . $allowUrlFOpenFlag . $disableFunctionsFlag . $memoryLimitFlag;
-}
-
-
-
-
-
-
-protected function executeEventPhpScript($className, $methodName, Event $event)
-{
-$event = $this->checkListenerExpectedEvent(array($className, $methodName), $event);
-
-if ($this->io->isVerbose()) {
-$this->io->writeError(sprintf('> %s: %s::%s', $event->getName(), $className, $methodName));
-} else {
-$this->io->writeError(sprintf('> %s::%s', $className, $methodName));
-}
-
-return $className::$methodName($event);
-}
-
-
-
-
-
-
-protected function checkListenerExpectedEvent($target, Event $event)
-{
-if (in_array($event->getName(), array(
-'init',
-'command',
-'pre-file-download',
-), true)) {
-return $event;
-}
-
-try {
-$reflected = new \ReflectionParameter($target, 0);
-} catch (\Exception $e) {
-return $event;
-}
-
-$typehint = $reflected->getClass();
-
-if (!$typehint instanceof \ReflectionClass) {
-return $event;
-}
-
-$expected = $typehint->getName();
-
-
- if (!$event instanceof $expected && $expected === 'Composer\Script\CommandEvent') {
-trigger_error('The callback '.$this->serializeCallback($target).' declared at '.$reflected->getDeclaringFunction()->getFileName().' accepts a '.$expected.' but '.$event->getName().' events use a '.get_class($event).' instance. Please adjust your type hint accordingly, see https://getcomposer.org/doc/articles/scripts.md#event-classes', E_USER_DEPRECATED);
-$event = new \Composer\Script\CommandEvent(
-$event->getName(),
-$event->getComposer(),
-$event->getIO(),
-$event->isDevMode(),
-$event->getArguments()
-);
-}
-if (!$event instanceof $expected && $expected === 'Composer\Script\PackageEvent') {
-trigger_error('The callback '.$this->serializeCallback($target).' declared at '.$reflected->getDeclaringFunction()->getFileName().' accepts a '.$expected.' but '.$event->getName().' events use a '.get_class($event).' instance. Please adjust your type hint accordingly, see https://getcomposer.org/doc/articles/scripts.md#event-classes', E_USER_DEPRECATED);
-$event = new \Composer\Script\PackageEvent(
-$event->getName(),
-$event->getComposer(),
-$event->getIO(),
-$event->isDevMode(),
-$event->getPolicy(),
-$event->getPool(),
-$event->getInstalledRepo(),
-$event->getRequest(),
-$event->getOperations(),
-$event->getOperation()
-);
-}
-if (!$event instanceof $expected && $expected === 'Composer\Script\Event') {
-trigger_error('The callback '.$this->serializeCallback($target).' declared at '.$reflected->getDeclaringFunction()->getFileName().' accepts a '.$expected.' but '.$event->getName().' events use a '.get_class($event).' instance. Please adjust your type hint accordingly, see https://getcomposer.org/doc/articles/scripts.md#event-classes', E_USER_DEPRECATED);
-$event = new \Composer\Script\Event(
-$event->getName(),
-$event->getComposer(),
-$event->getIO(),
-$event->isDevMode(),
-$event->getArguments(),
-$event->getFlags()
-);
-}
-
-return $event;
-}
-
-private function serializeCallback($cb)
-{
-if (is_array($cb) && count($cb) === 2) {
-if (is_object($cb[0])) {
-$cb[0] = get_class($cb[0]);
-}
-if (is_string($cb[0]) && is_string($cb[1])) {
-$cb = implode('::', $cb);
-}
-}
-if (is_string($cb)) {
-return $cb;
-}
-
-return var_export($cb, true);
-}
-
-
-
-
-
-
-
-
-public function addListener($eventName, $listener, $priority = 0)
-{
-$this->listeners[$eventName][$priority][] = $listener;
-}
-
-
-
-
-
-
-
-
-public function addSubscriber(EventSubscriberInterface $subscriber)
-{
-foreach ($subscriber->getSubscribedEvents() as $eventName => $params) {
-if (is_string($params)) {
-$this->addListener($eventName, array($subscriber, $params));
-} elseif (is_string($params[0])) {
-$this->addListener($eventName, array($subscriber, $params[0]), isset($params[1]) ? $params[1] : 0);
-} else {
-foreach ($params as $listener) {
-$this->addListener($eventName, array($subscriber, $listener[0]), isset($listener[1]) ? $listener[1] : 0);
-}
-}
-}
-}
-
-
-
-
-
-
-
-protected function getListeners(Event $event)
-{
-$scriptListeners = $this->getScriptListeners($event);
-
-if (!isset($this->listeners[$event->getName()][0])) {
-$this->listeners[$event->getName()][0] = array();
-}
-krsort($this->listeners[$event->getName()]);
-
-$listeners = $this->listeners;
-$listeners[$event->getName()][0] = array_merge($listeners[$event->getName()][0], $scriptListeners);
-
-return call_user_func_array('array_merge', $listeners[$event->getName()]);
-}
-
-
-
-
-
-
-
-public function hasEventListeners(Event $event)
-{
-$listeners = $this->getListeners($event);
-
-return count($listeners) > 0;
-}
-
-
-
-
-
-
-
-protected function getScriptListeners(Event $event)
-{
-$package = $this->composer->getPackage();
-$scripts = $package->getScripts();
-
-if (empty($scripts[$event->getName()])) {
-return array();
-}
-
-if ($this->loader) {
-$this->loader->unregister();
-}
-
-$generator = $this->composer->getAutoloadGenerator();
-if ($event instanceof ScriptEvent) {
-$generator->setDevMode($event->isDevMode());
-}
-
-$packages = $this->composer->getRepositoryManager()->getLocalRepository()->getCanonicalPackages();
-$packageMap = $generator->buildPackageMap($this->composer->getInstallationManager(), $package, $packages);
-$map = $generator->parseAutoloads($packageMap, $package);
-$this->loader = $generator->createLoader($map);
-$this->loader->register();
-
-return $scripts[$event->getName()];
-}
-
-
-
-
-
-
-
-protected function isPhpScript($callable)
-{
-return false === strpos($callable, ' ') && false !== strpos($callable, '::');
-}
-
-
-
-
-
-
-
-protected function isComposerScript($callable)
-{
-return '@' === substr($callable, 0, 1) && '@php ' !== substr($callable, 0, 5);
-}
-
-
-
-
-
-
-
-
-protected function pushEvent(Event $event)
-{
-$eventName = $event->getName();
-if (in_array($eventName, $this->eventStack)) {
-throw new \RuntimeException(sprintf("Circular call to script handler '%s' detected", $eventName));
-}
-
-return array_push($this->eventStack, $eventName);
-}
-
-
-
-
-
-
-protected function popEvent()
-{
-return array_pop($this->eventStack);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\EventDispatcher;
-
-
-
-
-
-
-
-
-
-
-
-
-
-interface EventSubscriberInterface
-{
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public static function getSubscribedEvents();
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\EventDispatcher;
-
-
-
-
-class ScriptExecutionException extends \RuntimeException
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Exception;
-
-
-
-
-class NoSslException extends \RuntimeException
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer;
-
-use Composer\Config\JsonConfigSource;
-use Composer\Json\JsonFile;
-use Composer\IO\IOInterface;
-use Composer\Package\Archiver;
-use Composer\Package\Version\VersionGuesser;
-use Composer\Repository\RepositoryManager;
-use Composer\Repository\RepositoryFactory;
-use Composer\Repository\WritableRepositoryInterface;
-use Composer\Util\Filesystem;
-use Composer\Util\Platform;
-use Composer\Util\ProcessExecutor;
-use Composer\Util\RemoteFilesystem;
-use Composer\Util\Silencer;
-use Composer\Plugin\PluginEvents;
-use Composer\EventDispatcher\Event;
-use Seld\JsonLint\DuplicateKeyException;
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Formatter\OutputFormatterStyle;
-use Symfony\Component\Console\Output\ConsoleOutput;
-use Composer\EventDispatcher\EventDispatcher;
-use Composer\Autoload\AutoloadGenerator;
-use Composer\Package\Version\VersionParser;
-use Composer\Downloader\TransportException;
-use Seld\JsonLint\JsonParser;
-
-
-
-
-
-
-
-
-
-class Factory
-{
-
-
-
-
-protected static function getHomeDir()
-{
-$home = getenv('COMPOSER_HOME');
-if ($home) {
-return $home;
-}
-
-if (Platform::isWindows()) {
-if (!getenv('APPDATA')) {
-throw new \RuntimeException('The APPDATA or COMPOSER_HOME environment variable must be set for composer to run correctly');
-}
-
-return rtrim(strtr(getenv('APPDATA'), '\\', '/'), '/') . '/Composer';
-}
-
-$userDir = self::getUserDir();
-if (is_dir($userDir . '/.composer')) {
-return $userDir . '/.composer';
-}
-
-if (self::useXdg()) {
-
- $xdgConfig = getenv('XDG_CONFIG_HOME') ?: $userDir . '/.config';
-
-return $xdgConfig . '/composer';
-}
-
-return $userDir . '/.composer';
-}
-
-
-
-
-
-protected static function getCacheDir($home)
-{
-$cacheDir = getenv('COMPOSER_CACHE_DIR');
-if ($cacheDir) {
-return $cacheDir;
-}
-
-$homeEnv = getenv('COMPOSER_HOME');
-if ($homeEnv) {
-return $homeEnv . '/cache';
-}
-
-if (Platform::isWindows()) {
-if ($cacheDir = getenv('LOCALAPPDATA')) {
-$cacheDir .= '/Composer';
-} else {
-$cacheDir = $home . '/cache';
-}
-
-return rtrim(strtr($cacheDir, '\\', '/'), '/');
-}
-
-$userDir = self::getUserDir();
-if ($home === $userDir . '/.composer' && is_dir($home . '/cache')) {
-return $home . '/cache';
-}
-
-if (self::useXdg()) {
-$xdgCache = getenv('XDG_CACHE_HOME') ?: $userDir . '/.cache';
-
-return $xdgCache . '/composer';
-}
-
-return $home . '/cache';
-}
-
-
-
-
-
-protected static function getDataDir($home)
-{
-$homeEnv = getenv('COMPOSER_HOME');
-if ($homeEnv) {
-return $homeEnv;
-}
-
-if (Platform::isWindows()) {
-return strtr($home, '\\', '/');
-}
-
-$userDir = self::getUserDir();
-if ($home !== $userDir . '/.composer' && self::useXdg()) {
-$xdgData = getenv('XDG_DATA_HOME') ?: $userDir . '/.local/share';
-
-return $xdgData . '/composer';
-}
-
-return $home;
-}
-
-
-
-
-
-public static function createConfig(IOInterface $io = null, $cwd = null)
-{
-$cwd = $cwd ?: getcwd();
-
-$config = new Config(true, $cwd);
-
-
- $home = self::getHomeDir();
-$config->merge(array('config' => array(
-'home' => $home,
-'cache-dir' => self::getCacheDir($home),
-'data-dir' => self::getDataDir($home),
-)));
-
-$htaccessProtect = (bool) $config->get('htaccess-protect');
-if ($htaccessProtect) {
-
- 
- 
- $dirs = array($config->get('home'), $config->get('cache-dir'), $config->get('data-dir'));
-foreach ($dirs as $dir) {
-if (!file_exists($dir . '/.htaccess')) {
-if (!is_dir($dir)) {
-Silencer::call('mkdir', $dir, 0777, true);
-}
-Silencer::call('file_put_contents', $dir . '/.htaccess', 'Deny from all');
-}
-}
-}
-
-
- $file = new JsonFile($config->get('home').'/config.json');
-if ($file->exists()) {
-if ($io && $io->isDebug()) {
-$io->writeError('Loading config file ' . $file->getPath());
-}
-$config->merge($file->read());
-}
-$config->setConfigSource(new JsonConfigSource($file));
-
-
- $file = new JsonFile($config->get('home').'/auth.json');
-if ($file->exists()) {
-if ($io && $io->isDebug()) {
-$io->writeError('Loading config file ' . $file->getPath());
-}
-$config->merge(array('config' => $file->read()));
-}
-$config->setAuthConfigSource(new JsonConfigSource($file, true));
-
-
- if ($composerAuthEnv = getenv('COMPOSER_AUTH')) {
-$authData = json_decode($composerAuthEnv, true);
-
-if (null === $authData) {
-throw new \UnexpectedValueException('COMPOSER_AUTH environment variable is malformed, should be a valid JSON object');
-}
-
-if ($io && $io->isDebug()) {
-$io->writeError('Loading auth config from COMPOSER_AUTH');
-}
-$config->merge(array('config' => $authData));
-}
-
-return $config;
-}
-
-public static function getComposerFile()
-{
-return trim(getenv('COMPOSER')) ?: './composer.json';
-}
-
-public static function createAdditionalStyles()
-{
-return array(
-'highlight' => new OutputFormatterStyle('red'),
-'warning' => new OutputFormatterStyle('black', 'yellow'),
-);
-}
-
-
-
-
-
-
-public static function createOutput()
-{
-$styles = self::createAdditionalStyles();
-$formatter = new OutputFormatter(false, $styles);
-
-return new ConsoleOutput(ConsoleOutput::VERBOSITY_NORMAL, null, $formatter);
-}
-
-
-
-
-public static function createDefaultRepositories(IOInterface $io = null, Config $config = null, RepositoryManager $rm = null)
-{
-return RepositoryFactory::defaultRepos($io, $config, $rm);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function createComposer(IOInterface $io, $localConfig = null, $disablePlugins = false, $cwd = null, $fullLoad = true)
-{
-$cwd = $cwd ?: getcwd();
-
-
- if (null === $localConfig) {
-$localConfig = static::getComposerFile();
-}
-
-if (is_string($localConfig)) {
-$composerFile = $localConfig;
-
-$file = new JsonFile($localConfig, null, $io);
-
-if (!$file->exists()) {
-if ($localConfig === './composer.json' || $localConfig === 'composer.json') {
-$message = 'Composer could not find a composer.json file in '.$cwd;
-} else {
-$message = 'Composer could not find the config file: '.$localConfig;
-}
-$instructions = 'To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section';
-throw new \InvalidArgumentException($message.PHP_EOL.$instructions);
-}
-
-$file->validateSchema(JsonFile::LAX_SCHEMA);
-$jsonParser = new JsonParser;
-try {
-$jsonParser->parse(file_get_contents($localConfig), JsonParser::DETECT_KEY_CONFLICTS);
-} catch (DuplicateKeyException $e) {
-$details = $e->getDetails();
-$io->writeError('<warning>Key '.$details['key'].' is a duplicate in '.$localConfig.' at line '.$details['line'].'</warning>');
-}
-
-$localConfig = $file->read();
-}
-
-
- $config = static::createConfig($io, $cwd);
-$config->merge($localConfig);
-if (isset($composerFile)) {
-$io->writeError('Loading config file ' . $composerFile, true, IOInterface::DEBUG);
-$config->setConfigSource(new JsonConfigSource(new JsonFile(realpath($composerFile), null, $io)));
-
-$localAuthFile = new JsonFile(dirname(realpath($composerFile)) . '/auth.json', null, $io);
-if ($localAuthFile->exists()) {
-$io->writeError('Loading config file ' . $localAuthFile->getPath(), true, IOInterface::DEBUG);
-$config->merge(array('config' => $localAuthFile->read()));
-$config->setAuthConfigSource(new JsonConfigSource($localAuthFile, true));
-}
-}
-
-$vendorDir = $config->get('vendor-dir');
-
-
- $composer = new Composer();
-$composer->setConfig($config);
-
-if ($fullLoad) {
-
- $io->loadConfiguration($config);
-}
-
-$rfs = self::createRemoteFilesystem($io, $config);
-
-
- $dispatcher = new EventDispatcher($composer, $io);
-$composer->setEventDispatcher($dispatcher);
-
-
- $rm = RepositoryFactory::manager($io, $config, $dispatcher, $rfs);
-$composer->setRepositoryManager($rm);
-
-
- $this->addLocalRepository($io, $rm, $vendorDir);
-
-
- 
- if (!$fullLoad && !isset($localConfig['version'])) {
-$localConfig['version'] = '1.0.0';
-}
-
-
- $parser = new VersionParser;
-$guesser = new VersionGuesser($config, new ProcessExecutor($io), $parser);
-$loader = new Package\Loader\RootPackageLoader($rm, $config, $parser, $guesser);
-$package = $loader->load($localConfig, 'Composer\Package\RootPackage', $cwd);
-$composer->setPackage($package);
-
-
- $im = $this->createInstallationManager();
-$composer->setInstallationManager($im);
-
-if ($fullLoad) {
-
- $dm = $this->createDownloadManager($io, $config, $dispatcher, $rfs);
-$composer->setDownloadManager($dm);
-
-
- $generator = new AutoloadGenerator($dispatcher, $io);
-$composer->setAutoloadGenerator($generator);
-
-
- $am = $this->createArchiveManager($config, $dm);
-$composer->setArchiveManager($am);
-}
-
-
- $this->createDefaultInstallers($im, $composer, $io);
-
-if ($fullLoad) {
-$globalComposer = null;
-if (realpath($config->get('home')) !== $cwd) {
-$globalComposer = $this->createGlobalComposer($io, $config, $disablePlugins);
-}
-
-$pm = $this->createPluginManager($io, $composer, $globalComposer, $disablePlugins);
-$composer->setPluginManager($pm);
-
-$pm->loadInstalledPlugins();
-}
-
-
- if ($fullLoad && isset($composerFile)) {
-$lockFile = "json" === pathinfo($composerFile, PATHINFO_EXTENSION)
-? substr($composerFile, 0, -4).'lock'
-: $composerFile . '.lock';
-
-$locker = new Package\Locker($io, new JsonFile($lockFile, null, $io), $rm, $im, file_get_contents($composerFile));
-$composer->setLocker($locker);
-}
-
-if ($fullLoad) {
-$initEvent = new Event(PluginEvents::INIT);
-$composer->getEventDispatcher()->dispatch($initEvent->getName(), $initEvent);
-
-
- 
- if ($rm->getLocalRepository()) {
-$this->purgePackages($rm->getLocalRepository(), $im);
-}
-}
-
-return $composer;
-}
-
-
-
-
-
-
-public static function createGlobal(IOInterface $io, $disablePlugins = false)
-{
-$factory = new static();
-
-return $factory->createGlobalComposer($io, static::createConfig($io), $disablePlugins, true);
-}
-
-
-
-
-
-protected function addLocalRepository(IOInterface $io, RepositoryManager $rm, $vendorDir)
-{
-$rm->setLocalRepository(new Repository\InstalledFilesystemRepository(new JsonFile($vendorDir.'/composer/installed.json', null, $io)));
-}
-
-
-
-
-
-protected function createGlobalComposer(IOInterface $io, Config $config, $disablePlugins, $fullLoad = false)
-{
-$composer = null;
-try {
-$composer = $this->createComposer($io, $config->get('home') . '/composer.json', $disablePlugins, $config->get('home'), $fullLoad);
-} catch (\Exception $e) {
-$io->writeError('Failed to initialize global composer: '.$e->getMessage(), true, IOInterface::DEBUG);
-}
-
-return $composer;
-}
-
-
-
-
-
-
-
-public function createDownloadManager(IOInterface $io, Config $config, EventDispatcher $eventDispatcher = null, RemoteFilesystem $rfs = null)
-{
-$cache = null;
-if ($config->get('cache-files-ttl') > 0) {
-$cache = new Cache($io, $config->get('cache-files-dir'), 'a-z0-9_./');
-}
-
-$dm = new Downloader\DownloadManager($io);
-switch ($preferred = $config->get('preferred-install')) {
-case 'dist':
-$dm->setPreferDist(true);
-break;
-case 'source':
-$dm->setPreferSource(true);
-break;
-case 'auto':
-default:
-
- break;
-}
-
-if (is_array($preferred)) {
-$dm->setPreferences($preferred);
-}
-
-$executor = new ProcessExecutor($io);
-$fs = new Filesystem($executor);
-
-$dm->setDownloader('git', new Downloader\GitDownloader($io, $config, $executor, $fs));
-$dm->setDownloader('svn', new Downloader\SvnDownloader($io, $config, $executor, $fs));
-$dm->setDownloader('fossil', new Downloader\FossilDownloader($io, $config, $executor, $fs));
-$dm->setDownloader('hg', new Downloader\HgDownloader($io, $config, $executor, $fs));
-$dm->setDownloader('perforce', new Downloader\PerforceDownloader($io, $config));
-$dm->setDownloader('zip', new Downloader\ZipDownloader($io, $config, $eventDispatcher, $cache, $executor, $rfs));
-$dm->setDownloader('rar', new Downloader\RarDownloader($io, $config, $eventDispatcher, $cache, $executor, $rfs));
-$dm->setDownloader('tar', new Downloader\TarDownloader($io, $config, $eventDispatcher, $cache, $rfs));
-$dm->setDownloader('gzip', new Downloader\GzipDownloader($io, $config, $eventDispatcher, $cache, $executor, $rfs));
-$dm->setDownloader('xz', new Downloader\XzDownloader($io, $config, $eventDispatcher, $cache, $executor, $rfs));
-$dm->setDownloader('phar', new Downloader\PharDownloader($io, $config, $eventDispatcher, $cache, $rfs));
-$dm->setDownloader('file', new Downloader\FileDownloader($io, $config, $eventDispatcher, $cache, $rfs));
-$dm->setDownloader('path', new Downloader\PathDownloader($io, $config, $eventDispatcher, $cache, $rfs));
-
-return $dm;
-}
-
-
-
-
-
-
-public function createArchiveManager(Config $config, Downloader\DownloadManager $dm = null)
-{
-if (null === $dm) {
-$io = new IO\NullIO();
-$io->loadConfiguration($config);
-$dm = $this->createDownloadManager($io, $config);
-}
-
-$am = new Archiver\ArchiveManager($dm);
-$am->addArchiver(new Archiver\ZipArchiver);
-$am->addArchiver(new Archiver\PharArchiver);
-
-return $am;
-}
-
-
-
-
-
-
-
-
-protected function createPluginManager(IOInterface $io, Composer $composer, Composer $globalComposer = null, $disablePlugins = false)
-{
-return new Plugin\PluginManager($io, $composer, $globalComposer, $disablePlugins);
-}
-
-
-
-
-protected function createInstallationManager()
-{
-return new Installer\InstallationManager();
-}
-
-
-
-
-
-
-protected function createDefaultInstallers(Installer\InstallationManager $im, Composer $composer, IOInterface $io)
-{
-$im->addInstaller(new Installer\LibraryInstaller($io, $composer, null));
-$im->addInstaller(new Installer\PearInstaller($io, $composer, 'pear-library'));
-$im->addInstaller(new Installer\PluginInstaller($io, $composer));
-$im->addInstaller(new Installer\MetapackageInstaller());
-}
-
-
-
-
-
-protected function purgePackages(WritableRepositoryInterface $repo, Installer\InstallationManager $im)
-{
-foreach ($repo->getPackages() as $package) {
-if (!$im->isPackageInstalled($repo, $package)) {
-$repo->removePackage($package);
-}
-}
-}
-
-
-
-
-
-
-
-
-public static function create(IOInterface $io, $config = null, $disablePlugins = false)
-{
-$factory = new static();
-
-return $factory->createComposer($io, $config, $disablePlugins);
-}
-
-
-
-
-
-
-
-public static function createRemoteFilesystem(IOInterface $io, Config $config = null, $options = array())
-{
-static $warned = false;
-$disableTls = false;
-if ($config && $config->get('disable-tls') === true) {
-if (!$warned) {
-$io->writeError('<warning>You are running Composer with SSL/TLS protection disabled.</warning>');
-}
-$warned = true;
-$disableTls = true;
-} elseif (!extension_loaded('openssl')) {
-throw new Exception\NoSslException('The openssl extension is required for SSL/TLS protection but is not available. '
-. 'If you can not enable the openssl extension, you can disable this error, at your own risk, by setting the \'disable-tls\' option to true.');
-}
-$remoteFilesystemOptions = array();
-if ($disableTls === false) {
-if ($config && $config->get('cafile')) {
-$remoteFilesystemOptions['ssl']['cafile'] = $config->get('cafile');
-}
-if ($config && $config->get('capath')) {
-$remoteFilesystemOptions['ssl']['capath'] = $config->get('capath');
-}
-$remoteFilesystemOptions = array_replace_recursive($remoteFilesystemOptions, $options);
-}
-try {
-$remoteFilesystem = new RemoteFilesystem($io, $config, $remoteFilesystemOptions, $disableTls);
-} catch (TransportException $e) {
-if (false !== strpos($e->getMessage(), 'cafile')) {
-$io->write('<error>Unable to locate a valid CA certificate file. You must set a valid \'cafile\' option.</error>');
-$io->write('<error>A valid CA certificate file is required for SSL/TLS protection.</error>');
-if (PHP_VERSION_ID < 50600) {
-$io->write('<error>It is recommended you upgrade to PHP 5.6+ which can detect your system CA file automatically.</error>');
-}
-$io->write('<error>You can disable this error, at your own risk, by setting the \'disable-tls\' option to true.</error>');
-}
-throw $e;
-}
-
-return $remoteFilesystem;
-}
-
-
-
-
-private static function useXdg()
-{
-foreach (array_keys($_SERVER) as $key) {
-if (substr($key, 0, 4) === 'XDG_') {
-return true;
-}
-}
-
-return false;
-}
-
-
-
-
-
-private static function getUserDir()
-{
-$home = getenv('HOME');
-if (!$home) {
-throw new \RuntimeException('The HOME or COMPOSER_HOME environment variable must be set for composer to run correctly');
-}
-
-return rtrim(strtr($home, '\\', '/'), '/');
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\IO;
-
-use Composer\Config;
-use Composer\Util\ProcessExecutor;
-use Psr\Log\LoggerInterface;
-use Psr\Log\LogLevel;
-
-abstract class BaseIO implements IOInterface, LoggerInterface
-{
-protected $authentications = array();
-
-
-
-
-public function getAuthentications()
-{
-return $this->authentications;
-}
-
-
-
-
-public function hasAuthentication($repositoryName)
-{
-return isset($this->authentications[$repositoryName]);
-}
-
-
-
-
-public function getAuthentication($repositoryName)
-{
-if (isset($this->authentications[$repositoryName])) {
-return $this->authentications[$repositoryName];
-}
-
-return array('username' => null, 'password' => null);
-}
-
-
-
-
-public function setAuthentication($repositoryName, $username, $password = null)
-{
-$this->authentications[$repositoryName] = array('username' => $username, 'password' => $password);
-}
-
-
-
-
-
-
-
-
-protected function checkAndSetAuthentication($repositoryName, $username, $password = null)
-{
-if ($this->hasAuthentication($repositoryName)) {
-$auth = $this->getAuthentication($repositoryName);
-if ($auth['username'] === $username && $auth['password'] === $password) {
-return;
-}
-
-$this->writeError(
-sprintf(
-"<warning>Warning: You should avoid overwriting already defined auth settings for %s.</warning>",
-$repositoryName
-)
-);
-}
-$this->setAuthentication($repositoryName, $username, $password);
-}
-
-
-
-
-public function loadConfiguration(Config $config)
-{
-$bitbucketOauth = $config->get('bitbucket-oauth') ?: array();
-$githubOauth = $config->get('github-oauth') ?: array();
-$gitlabOauth = $config->get('gitlab-oauth') ?: array();
-$gitlabToken = $config->get('gitlab-token') ?: array();
-$httpBasic = $config->get('http-basic') ?: array();
-
-
-
-foreach ($bitbucketOauth as $domain => $cred) {
-$this->checkAndSetAuthentication($domain, $cred['consumer-key'], $cred['consumer-secret']);
-}
-
-foreach ($githubOauth as $domain => $token) {
-if (!preg_match('{^[.a-z0-9]+$}', $token)) {
-throw new \UnexpectedValueException('Your github oauth token for '.$domain.' contains invalid characters: "'.$token.'"');
-}
-$this->checkAndSetAuthentication($domain, $token, 'x-oauth-basic');
-}
-
-foreach ($gitlabOauth as $domain => $token) {
-$this->checkAndSetAuthentication($domain, $token, 'oauth2');
-}
-
-foreach ($gitlabToken as $domain => $token) {
-$this->checkAndSetAuthentication($domain, $token, 'private-token');
-}
-
-
- foreach ($httpBasic as $domain => $cred) {
-$this->checkAndSetAuthentication($domain, $cred['username'], $cred['password']);
-}
-
-
- ProcessExecutor::setTimeout((int) $config->get('process-timeout'));
-}
-
-
-
-
-
-
-
-
-public function emergency($message, array $context = array())
-{
-return $this->log(LogLevel::EMERGENCY, $message, $context);
-}
-
-
-
-
-
-
-
-
-
-
-
-public function alert($message, array $context = array())
-{
-return $this->log(LogLevel::ALERT, $message, $context);
-}
-
-
-
-
-
-
-
-
-
-
-public function critical($message, array $context = array())
-{
-return $this->log(LogLevel::CRITICAL, $message, $context);
-}
-
-
-
-
-
-
-
-
-
-public function error($message, array $context = array())
-{
-return $this->log(LogLevel::ERROR, $message, $context);
-}
-
-
-
-
-
-
-
-
-
-
-
-public function warning($message, array $context = array())
-{
-return $this->log(LogLevel::WARNING, $message, $context);
-}
-
-
-
-
-
-
-
-
-public function notice($message, array $context = array())
-{
-return $this->log(LogLevel::NOTICE, $message, $context);
-}
-
-
-
-
-
-
-
-
-
-
-public function info($message, array $context = array())
-{
-return $this->log(LogLevel::INFO, $message, $context);
-}
-
-
-
-
-
-
-
-
-public function debug($message, array $context = array())
-{
-return $this->log(LogLevel::DEBUG, $message, $context);
-}
-
-
-
-
-
-
-
-
-
-public function log($level, $message, array $context = array())
-{
-if (in_array($level, array(LogLevel::EMERGENCY, LogLevel::ALERT, LogLevel::CRITICAL, LogLevel::ERROR))) {
-$this->writeError('<error>'.$message.'</error>', true, self::NORMAL);
-} elseif ($level === LogLevel::WARNING) {
-$this->writeError('<warning>'.$message.'</warning>', true, self::NORMAL);
-} elseif ($level === LogLevel::NOTICE) {
-$this->writeError('<info>'.$message.'</info>', true, self::VERBOSE);
-} elseif ($level === LogLevel::INFO) {
-$this->writeError('<info>'.$message.'</info>', true, self::VERY_VERBOSE);
-} else {
-$this->writeError($message, true, self::DEBUG);
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\IO;
-
-use Symfony\Component\Console\Output\StreamOutput;
-use Symfony\Component\Console\Formatter\OutputFormatterInterface;
-use Symfony\Component\Console\Input\StringInput;
-use Symfony\Component\Console\Helper\HelperSet;
-
-
-
-
-class BufferIO extends ConsoleIO
-{
-
-
-
-
-
-public function __construct($input = '', $verbosity = StreamOutput::VERBOSITY_NORMAL, OutputFormatterInterface $formatter = null)
-{
-$input = new StringInput($input);
-$input->setInteractive(false);
-
-$output = new StreamOutput(fopen('php://memory', 'rw'), $verbosity, $formatter ? $formatter->isDecorated() : false, $formatter);
-
-parent::__construct($input, $output, new HelperSet(array()));
-}
-
-public function getOutput()
-{
-fseek($this->output->getStream(), 0);
-
-$output = stream_get_contents($this->output->getStream());
-
-$output = preg_replace_callback("{(?<=^|\n|\x08)(.+?)(\x08+)}", function ($matches) {
-$pre = strip_tags($matches[1]);
-
-if (strlen($pre) === strlen($matches[2])) {
-return '';
-}
-
-
- return rtrim($matches[1])."\n";
-}, $output);
-
-return $output;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\IO;
-
-use Composer\Question\StrictConfirmationQuestion;
-use Symfony\Component\Console\Helper\HelperSet;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\ConsoleOutputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Question\ChoiceQuestion;
-use Symfony\Component\Console\Question\Question;
-
-
-
-
-
-
-
-class ConsoleIO extends BaseIO
-{
-
-protected $input;
-
-protected $output;
-
-protected $helperSet;
-
-protected $lastMessage;
-
-protected $lastMessageErr;
-
-
-private $startTime;
-
-private $verbosityMap;
-
-
-
-
-
-
-
-
-public function __construct(InputInterface $input, OutputInterface $output, HelperSet $helperSet)
-{
-$this->input = $input;
-$this->output = $output;
-$this->helperSet = $helperSet;
-$this->verbosityMap = array(
-self::QUIET => OutputInterface::VERBOSITY_QUIET,
-self::NORMAL => OutputInterface::VERBOSITY_NORMAL,
-self::VERBOSE => OutputInterface::VERBOSITY_VERBOSE,
-self::VERY_VERBOSE => OutputInterface::VERBOSITY_VERY_VERBOSE,
-self::DEBUG => OutputInterface::VERBOSITY_DEBUG,
-);
-}
-
-
-
-
-public function enableDebugging($startTime)
-{
-$this->startTime = $startTime;
-}
-
-
-
-
-public function isInteractive()
-{
-return $this->input->isInteractive();
-}
-
-
-
-
-public function isDecorated()
-{
-return $this->output->isDecorated();
-}
-
-
-
-
-public function isVerbose()
-{
-return $this->output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE;
-}
-
-
-
-
-public function isVeryVerbose()
-{
-return $this->output->getVerbosity() >= OutputInterface::VERBOSITY_VERY_VERBOSE;
-}
-
-
-
-
-public function isDebug()
-{
-return $this->output->getVerbosity() >= OutputInterface::VERBOSITY_DEBUG;
-}
-
-
-
-
-public function write($messages, $newline = true, $verbosity = self::NORMAL)
-{
-$this->doWrite($messages, $newline, false, $verbosity);
-}
-
-
-
-
-public function writeError($messages, $newline = true, $verbosity = self::NORMAL)
-{
-$this->doWrite($messages, $newline, true, $verbosity);
-}
-
-
-
-
-
-
-
-private function doWrite($messages, $newline, $stderr, $verbosity)
-{
-$sfVerbosity = $this->verbosityMap[$verbosity];
-if ($sfVerbosity > $this->output->getVerbosity()) {
-return;
-}
-
-
- 
- 
- if (OutputInterface::VERBOSITY_QUIET === 0) {
-$sfVerbosity = OutputInterface::OUTPUT_NORMAL;
-}
-
-if (null !== $this->startTime) {
-$memoryUsage = memory_get_usage() / 1024 / 1024;
-$timeSpent = microtime(true) - $this->startTime;
-$messages = array_map(function ($message) use ($memoryUsage, $timeSpent) {
-return sprintf('[%.1fMB/%.2fs] %s', $memoryUsage, $timeSpent, $message);
-}, (array) $messages);
-}
-
-if (true === $stderr && $this->output instanceof ConsoleOutputInterface) {
-$this->output->getErrorOutput()->write($messages, $newline, $sfVerbosity);
-$this->lastMessageErr = implode($newline ? "\n" : '', (array) $messages);
-
-return;
-}
-
-$this->output->write($messages, $newline, $sfVerbosity);
-$this->lastMessage = implode($newline ? "\n" : '', (array) $messages);
-}
-
-
-
-
-public function overwrite($messages, $newline = true, $size = null, $verbosity = self::NORMAL)
-{
-$this->doOverwrite($messages, $newline, $size, false, $verbosity);
-}
-
-
-
-
-public function overwriteError($messages, $newline = true, $size = null, $verbosity = self::NORMAL)
-{
-$this->doOverwrite($messages, $newline, $size, true, $verbosity);
-}
-
-
-
-
-
-
-
-
-private function doOverwrite($messages, $newline, $size, $stderr, $verbosity)
-{
-
- $messages = implode($newline ? "\n" : '', (array) $messages);
-
-
- if (!isset($size)) {
-
- $size = strlen(strip_tags($stderr ? $this->lastMessageErr : $this->lastMessage));
-}
-
- $this->doWrite(str_repeat("\x08", $size), false, $stderr, $verbosity);
-
-
- $this->doWrite($messages, false, $stderr, $verbosity);
-
-
- 
- 
- $fill = $size - strlen(strip_tags($messages));
-if ($fill > 0) {
-
- $this->doWrite(str_repeat(' ', $fill), false, $stderr, $verbosity);
-
- $this->doWrite(str_repeat("\x08", $fill), false, $stderr, $verbosity);
-}
-
-if ($newline) {
-$this->doWrite('', true, $stderr, $verbosity);
-}
-
-if ($stderr) {
-$this->lastMessageErr = $messages;
-} else {
-$this->lastMessage = $messages;
-}
-}
-
-
-
-
-public function ask($question, $default = null)
-{
-
-$helper = $this->helperSet->get('question');
-$question = new Question($question, $default);
-
-return $helper->ask($this->input, $this->getErrorOutput(), $question);
-}
-
-
-
-
-public function askConfirmation($question, $default = true)
-{
-
-$helper = $this->helperSet->get('question');
-$question = new StrictConfirmationQuestion($question, $default);
-
-return $helper->ask($this->input, $this->getErrorOutput(), $question);
-}
-
-
-
-
-public function askAndValidate($question, $validator, $attempts = null, $default = null)
-{
-
-$helper = $this->helperSet->get('question');
-$question = new Question($question, $default);
-$question->setValidator($validator);
-$question->setMaxAttempts($attempts);
-
-return $helper->ask($this->input, $this->getErrorOutput(), $question);
-}
-
-
-
-
-public function askAndHideAnswer($question)
-{
-
-$helper = $this->helperSet->get('question');
-$question = new Question($question);
-$question->setHidden(true);
-
-return $helper->ask($this->input, $this->getErrorOutput(), $question);
-}
-
-
-
-
-public function select($question, $choices, $default, $attempts = false, $errorMessage = 'Value "%s" is invalid', $multiselect = false)
-{
-
-$helper = $this->helperSet->get('question');
-$question = new ChoiceQuestion($question, $choices, $default);
-$question->setMaxAttempts($attempts ?: null); 
- $question->setErrorMessage($errorMessage);
-$question->setMultiselect($multiselect);
-
-$result = $helper->ask($this->input, $this->getErrorOutput(), $question);
-
-if (!is_array($result)) {
-return (string) array_search($result, $choices, true);
-}
-
-$results = array();
-foreach ($choices as $index => $choice) {
-if (in_array($choice, $result, true)) {
-$results[] = (string) $index;
-}
-}
-
-return $results;
-}
-
-
-
-
-private function getErrorOutput()
-{
-if ($this->output instanceof ConsoleOutputInterface) {
-return $this->output->getErrorOutput();
-}
-
-return $this->output;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\IO;
-
-use Composer\Config;
-
-
-
-
-
-
-interface IOInterface
-{
-const QUIET = 1;
-const NORMAL = 2;
-const VERBOSE = 4;
-const VERY_VERBOSE = 8;
-const DEBUG = 16;
-
-
-
-
-
-
-public function isInteractive();
-
-
-
-
-
-
-public function isVerbose();
-
-
-
-
-
-
-public function isVeryVerbose();
-
-
-
-
-
-
-public function isDebug();
-
-
-
-
-
-
-public function isDecorated();
-
-
-
-
-
-
-
-
-public function write($messages, $newline = true, $verbosity = self::NORMAL);
-
-
-
-
-
-
-
-
-public function writeError($messages, $newline = true, $verbosity = self::NORMAL);
-
-
-
-
-
-
-
-
-
-public function overwrite($messages, $newline = true, $size = null, $verbosity = self::NORMAL);
-
-
-
-
-
-
-
-
-
-public function overwriteError($messages, $newline = true, $size = null, $verbosity = self::NORMAL);
-
-
-
-
-
-
-
-
-
-
-public function ask($question, $default = null);
-
-
-
-
-
-
-
-
-
-
-
-public function askConfirmation($question, $default = true);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function askAndValidate($question, $validator, $attempts = null, $default = null);
-
-
-
-
-
-
-
-
-public function askAndHideAnswer($question);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function select($question, $choices, $default, $attempts = false, $errorMessage = 'Value "%s" is invalid', $multiselect = false);
-
-
-
-
-
-
-public function getAuthentications();
-
-
-
-
-
-
-
-
-public function hasAuthentication($repositoryName);
-
-
-
-
-
-
-
-
-public function getAuthentication($repositoryName);
-
-
-
-
-
-
-
-
-public function setAuthentication($repositoryName, $username, $password = null);
-
-
-
-
-
-
-public function loadConfiguration(Config $config);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\IO;
-
-
-
-
-
-
-class NullIO extends BaseIO
-{
-
-
-
-public function isInteractive()
-{
-return false;
-}
-
-
-
-
-public function isVerbose()
-{
-return false;
-}
-
-
-
-
-public function isVeryVerbose()
-{
-return false;
-}
-
-
-
-
-public function isDebug()
-{
-return false;
-}
-
-
-
-
-public function isDecorated()
-{
-return false;
-}
-
-
-
-
-public function write($messages, $newline = true, $verbosity = self::NORMAL)
-{
-}
-
-
-
-
-public function writeError($messages, $newline = true, $verbosity = self::NORMAL)
-{
-}
-
-
-
-
-public function overwrite($messages, $newline = true, $size = 80, $verbosity = self::NORMAL)
-{
-}
-
-
-
-
-public function overwriteError($messages, $newline = true, $size = 80, $verbosity = self::NORMAL)
-{
-}
-
-
-
-
-public function ask($question, $default = null)
-{
-return $default;
-}
-
-
-
-
-public function askConfirmation($question, $default = true)
-{
-return $default;
-}
-
-
-
-
-public function askAndValidate($question, $validator, $attempts = false, $default = null)
-{
-return $default;
-}
-
-
-
-
-public function askAndHideAnswer($question)
-{
-return null;
-}
-
-
-
-
-public function select($question, $choices, $default, $attempts = false, $errorMessage = 'Value "%s" is invalid', $multiselect = false)
-{
-return $default;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer;
-
-use Composer\Autoload\AutoloadGenerator;
-use Composer\DependencyResolver\DefaultPolicy;
-use Composer\DependencyResolver\Operation\UpdateOperation;
-use Composer\DependencyResolver\Operation\InstallOperation;
-use Composer\DependencyResolver\Operation\UninstallOperation;
-use Composer\DependencyResolver\Operation\MarkAliasUninstalledOperation;
-use Composer\DependencyResolver\Operation\OperationInterface;
-use Composer\DependencyResolver\PolicyInterface;
-use Composer\DependencyResolver\Pool;
-use Composer\DependencyResolver\Request;
-use Composer\DependencyResolver\Rule;
-use Composer\DependencyResolver\Solver;
-use Composer\DependencyResolver\SolverProblemsException;
-use Composer\Downloader\DownloadManager;
-use Composer\EventDispatcher\EventDispatcher;
-use Composer\Installer\InstallationManager;
-use Composer\Installer\InstallerEvents;
-use Composer\Installer\NoopInstaller;
-use Composer\Installer\SuggestedPackagesReporter;
-use Composer\IO\IOInterface;
-use Composer\Package\AliasPackage;
-use Composer\Package\BasePackage;
-use Composer\Package\CompletePackage;
-use Composer\Package\Link;
-use Composer\Package\Loader\ArrayLoader;
-use Composer\Package\Dumper\ArrayDumper;
-use Composer\Semver\Constraint\Constraint;
-use Composer\Package\Locker;
-use Composer\Package\PackageInterface;
-use Composer\Package\RootPackageInterface;
-use Composer\Repository\CompositeRepository;
-use Composer\Repository\InstalledArrayRepository;
-use Composer\Repository\PlatformRepository;
-use Composer\Repository\RepositoryInterface;
-use Composer\Repository\RepositoryManager;
-use Composer\Repository\WritableRepositoryInterface;
-use Composer\Script\ScriptEvents;
-
-
-
-
-
-
-
-class Installer
-{
-
-
-
-protected $io;
-
-
-
-
-protected $config;
-
-
-
-
-protected $package;
-
-
-
-
-protected $downloadManager;
-
-
-
-
-protected $repositoryManager;
-
-
-
-
-protected $locker;
-
-
-
-
-protected $installationManager;
-
-
-
-
-protected $eventDispatcher;
-
-
-
-
-protected $autoloadGenerator;
-
-protected $preferSource = false;
-protected $preferDist = false;
-protected $optimizeAutoloader = false;
-protected $classMapAuthoritative = false;
-protected $apcuAutoloader = false;
-protected $devMode = false;
-protected $dryRun = false;
-protected $verbose = false;
-protected $update = false;
-protected $dumpAutoloader = true;
-protected $runScripts = true;
-protected $ignorePlatformReqs = false;
-protected $preferStable = false;
-protected $preferLowest = false;
-protected $skipSuggest = false;
-protected $writeLock = true;
-protected $executeOperations = true;
-
-
-
-
-
-
-protected $updateWhitelist = null;
-protected $whitelistDependencies = false; 
- protected $whitelistAllDependencies = false;
-
-
-
-
-protected $suggestedPackagesReporter;
-
-
-
-
-protected $additionalInstalledRepository;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function __construct(IOInterface $io, Config $config, RootPackageInterface $package, DownloadManager $downloadManager, RepositoryManager $repositoryManager, Locker $locker, InstallationManager $installationManager, EventDispatcher $eventDispatcher, AutoloadGenerator $autoloadGenerator)
-{
-$this->io = $io;
-$this->config = $config;
-$this->package = $package;
-$this->downloadManager = $downloadManager;
-$this->repositoryManager = $repositoryManager;
-$this->locker = $locker;
-$this->installationManager = $installationManager;
-$this->eventDispatcher = $eventDispatcher;
-$this->autoloadGenerator = $autoloadGenerator;
-}
-
-
-
-
-
-
-
-public function run()
-{
-
- 
- 
- 
- gc_collect_cycles();
-gc_disable();
-
-
- if (!$this->update && !$this->locker->isLocked()) {
-$this->update = true;
-}
-
-if ($this->dryRun) {
-$this->verbose = true;
-$this->runScripts = false;
-$this->executeOperations = false;
-$this->writeLock = false;
-$this->dumpAutoloader = false;
-$this->installationManager->addInstaller(new NoopInstaller);
-$this->mockLocalRepositories($this->repositoryManager);
-}
-
-if ($this->runScripts) {
-$devMode = (int) $this->devMode;
-putenv("COMPOSER_DEV_MODE=$devMode");
-
-
- $eventName = $this->update ? ScriptEvents::PRE_UPDATE_CMD : ScriptEvents::PRE_INSTALL_CMD;
-$this->eventDispatcher->dispatchScript($eventName, $this->devMode);
-}
-
-$this->downloadManager->setPreferSource($this->preferSource);
-$this->downloadManager->setPreferDist($this->preferDist);
-
-
- $localRepo = $this->repositoryManager->getLocalRepository();
-if ($this->update) {
-$platformOverrides = $this->config->get('platform') ?: array();
-} else {
-$platformOverrides = $this->locker->getPlatformOverrides();
-}
-$platformRepo = new PlatformRepository(array(), $platformOverrides);
-$installedRepo = $this->createInstalledRepo($localRepo, $platformRepo);
-
-$aliases = $this->getRootAliases();
-$this->aliasPlatformPackages($platformRepo, $aliases);
-
-if (!$this->suggestedPackagesReporter) {
-$this->suggestedPackagesReporter = new SuggestedPackagesReporter($this->io);
-}
-
-try {
-list($res, $devPackages) = $this->doInstall($localRepo, $installedRepo, $platformRepo, $aliases);
-if ($res !== 0) {
-return $res;
-}
-} catch (\Exception $e) {
-if ($this->executeOperations) {
-$this->installationManager->notifyInstalls($this->io);
-}
-
-throw $e;
-}
-if ($this->executeOperations) {
-$this->installationManager->notifyInstalls($this->io);
-}
-
-
- if ($this->devMode && !$this->skipSuggest) {
-$this->suggestedPackagesReporter->output($installedRepo);
-}
-
-
- foreach ($localRepo->getPackages() as $package) {
-if (!$package instanceof CompletePackage || !$package->isAbandoned()) {
-continue;
-}
-
-$replacement = is_string($package->getReplacementPackage())
-? 'Use ' . $package->getReplacementPackage() . ' instead'
-: 'No replacement was suggested';
-
-$this->io->writeError(
-sprintf(
-"<warning>Package %s is abandoned, you should avoid using it. %s.</warning>",
-$package->getPrettyName(),
-$replacement
-)
-);
-}
-
-
- if ($this->update && $this->writeLock) {
-$localRepo->reload();
-
-$platformReqs = $this->extractPlatformRequirements($this->package->getRequires());
-$platformDevReqs = $this->extractPlatformRequirements($this->package->getDevRequires());
-
-$updatedLock = $this->locker->setLockData(
-array_diff($localRepo->getCanonicalPackages(), $devPackages),
-$devPackages,
-$platformReqs,
-$platformDevReqs,
-$aliases,
-$this->package->getMinimumStability(),
-$this->package->getStabilityFlags(),
-$this->preferStable || $this->package->getPreferStable(),
-$this->preferLowest,
-$this->config->get('platform') ?: array()
-);
-if ($updatedLock) {
-$this->io->writeError('<info>Writing lock file</info>');
-}
-}
-
-if ($this->dumpAutoloader) {
-
- if ($this->optimizeAutoloader) {
-$this->io->writeError('<info>Generating optimized autoload files</info>');
-} else {
-$this->io->writeError('<info>Generating autoload files</info>');
-}
-
-$this->autoloadGenerator->setDevMode($this->devMode);
-$this->autoloadGenerator->setClassMapAuthoritative($this->classMapAuthoritative);
-$this->autoloadGenerator->setApcu($this->apcuAutoloader);
-$this->autoloadGenerator->setRunScripts($this->runScripts);
-$this->autoloadGenerator->dump($this->config, $localRepo, $this->package, $this->installationManager, 'composer', $this->optimizeAutoloader);
-}
-
-if ($this->executeOperations) {
-
- foreach ($localRepo->getPackages() as $package) {
-$this->installationManager->ensureBinariesPresence($package);
-}
-
-$vendorDir = $this->config->get('vendor-dir');
-if (is_dir($vendorDir)) {
-
- 
- @touch($vendorDir);
-}
-}
-
-if ($this->runScripts) {
-
- $eventName = $this->update ? ScriptEvents::POST_UPDATE_CMD : ScriptEvents::POST_INSTALL_CMD;
-$this->eventDispatcher->dispatchScript($eventName, $this->devMode);
-}
-
-
- if (!defined('HHVM_VERSION')) {
-gc_enable();
-}
-
-return 0;
-}
-
-
-
-
-
-
-
-
-protected function doInstall($localRepo, $installedRepo, $platformRepo, $aliases)
-{
-
- $lockedRepository = null;
-$repositories = null;
-
-
- 
- 
- if (!$this->update || (!empty($this->updateWhitelist) && $this->locker->isLocked())) {
-try {
-$lockedRepository = $this->locker->getLockedRepository($this->devMode);
-} catch (\RuntimeException $e) {
-
- if ($this->package->getDevRequires()) {
-throw $e;
-}
-
- $lockedRepository = $this->locker->getLockedRepository();
-}
-}
-
-$this->whitelistUpdateDependencies(
-$lockedRepository ?: $localRepo,
-$this->package->getRequires(),
-$this->package->getDevRequires()
-);
-
-$this->io->writeError('<info>Loading composer repositories with package information</info>');
-
-
- $policy = $this->createPolicy();
-$pool = $this->createPool($this->update ? null : $lockedRepository);
-$pool->addRepository($installedRepo, $aliases);
-if ($this->update) {
-$repositories = $this->repositoryManager->getRepositories();
-foreach ($repositories as $repository) {
-$pool->addRepository($repository, $aliases);
-}
-}
-
- 
- 
- if ($lockedRepository) {
-$pool->addRepository($lockedRepository, $aliases);
-}
-
-
- $request = $this->createRequest($this->package, $platformRepo);
-
-if ($this->update) {
-
- $removedUnstablePackages = array();
-foreach ($localRepo->getPackages() as $package) {
-if (
-!$pool->isPackageAcceptable($package->getNames(), $package->getStability())
-&& $this->installationManager->isPackageInstalled($localRepo, $package)
-) {
-$removedUnstablePackages[$package->getName()] = true;
-$request->remove($package->getName(), new Constraint('=', $package->getVersion()));
-}
-}
-
-$this->io->writeError('<info>Updating dependencies'.($this->devMode ? ' (including require-dev)' : '').'</info>');
-
-$request->updateAll();
-
-$links = array_merge($this->package->getRequires(), $this->package->getDevRequires());
-
-foreach ($links as $link) {
-$request->install($link->getTarget(), $link->getConstraint());
-}
-
-
- 
- if ($this->updateWhitelist) {
-$currentPackages = $this->getCurrentPackages($installedRepo);
-
-
- $candidates = array();
-foreach ($links as $link) {
-$candidates[$link->getTarget()] = true;
-$rootRequires[$link->getTarget()] = $link;
-}
-foreach ($currentPackages as $package) {
-$candidates[$package->getName()] = true;
-}
-
-
- foreach ($candidates as $candidate => $dummy) {
-foreach ($currentPackages as $curPackage) {
-if ($curPackage->getName() === $candidate) {
-if (!$this->isUpdateable($curPackage) && !isset($removedUnstablePackages[$curPackage->getName()])) {
-$constraint = new Constraint('=', $curPackage->getVersion());
-$description = $this->locker->isLocked() ? '(locked at' : '(installed at';
-$requiredAt = isset($rootRequires[$candidate]) ? ', required as ' . $rootRequires[$candidate]->getPrettyConstraint() : '';
-$constraint->setPrettyString($description . ' ' . $curPackage->getPrettyVersion() . $requiredAt . ')');
-$request->install($curPackage->getName(), $constraint);
-}
-break;
-}
-}
-}
-}
-} else {
-$this->io->writeError('<info>Installing dependencies'.($this->devMode ? ' (including require-dev)' : '').' from lock file</info>');
-
-if (!$this->locker->isFresh()) {
-$this->io->writeError('<warning>Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.</warning>', true, IOInterface::QUIET);
-}
-
-foreach ($lockedRepository->getPackages() as $package) {
-$version = $package->getVersion();
-if (isset($aliases[$package->getName()][$version])) {
-$version = $aliases[$package->getName()][$version]['alias_normalized'];
-}
-$constraint = new Constraint('=', $version);
-$constraint->setPrettyString($package->getPrettyVersion());
-$request->install($package->getName(), $constraint);
-}
-
-foreach ($this->locker->getPlatformRequirements($this->devMode) as $link) {
-$request->install($link->getTarget(), $link->getConstraint());
-}
-}
-
-
- $this->processDevPackages($localRepo, $pool, $policy, $repositories, $installedRepo, $lockedRepository, 'force-links');
-
-
- $this->eventDispatcher->dispatchInstallerEvent(InstallerEvents::PRE_DEPENDENCIES_SOLVING, $this->devMode, $policy, $pool, $installedRepo, $request);
-$solver = new Solver($policy, $pool, $installedRepo, $this->io);
-try {
-$operations = $solver->solve($request, $this->ignorePlatformReqs);
-} catch (SolverProblemsException $e) {
-$this->io->writeError('<error>Your requirements could not be resolved to an installable set of packages.</error>', true, IOInterface::QUIET);
-$this->io->writeError($e->getMessage());
-if ($this->update && !$this->devMode) {
-$this->io->writeError('<warning>Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.</warning>', true, IOInterface::QUIET);
-}
-
-return array(max(1, $e->getCode()), array());
-}
-
-
- $operations = $this->processDevPackages($localRepo, $pool, $policy, $repositories, $installedRepo, $lockedRepository, 'force-updates', $operations);
-
-$this->eventDispatcher->dispatchInstallerEvent(InstallerEvents::POST_DEPENDENCIES_SOLVING, $this->devMode, $policy, $pool, $installedRepo, $request, $operations);
-
-$this->io->writeError("Analyzed ".count($pool)." packages to resolve dependencies", true, IOInterface::VERBOSE);
-$this->io->writeError("Analyzed ".$solver->getRuleSetSize()." rules to resolve dependencies", true, IOInterface::VERBOSE);
-
-
- if (!$operations) {
-$this->io->writeError('Nothing to install or update');
-}
-
-$operations = $this->movePluginsToFront($operations);
-$operations = $this->moveUninstallsToFront($operations);
-
-
- 
- if ($this->update) {
-$devPackages = $this->extractDevPackages($operations, $localRepo, $platformRepo, $aliases);
-if (!$this->devMode) {
-$operations = $this->filterDevPackageOperations($devPackages, $operations, $localRepo);
-}
-} else {
-$devPackages = null;
-}
-
-if ($operations) {
-$installs = $updates = $uninstalls = array();
-foreach ($operations as $operation) {
-if ($operation instanceof InstallOperation) {
-$installs[] = $operation->getPackage()->getPrettyName().':'.$operation->getPackage()->getFullPrettyVersion();
-} elseif ($operation instanceof UpdateOperation) {
-$updates[] = $operation->getTargetPackage()->getPrettyName().':'.$operation->getTargetPackage()->getFullPrettyVersion();
-} elseif ($operation instanceof UninstallOperation) {
-$uninstalls[] = $operation->getPackage()->getPrettyName();
-}
-}
-
-$this->io->writeError(sprintf(
-"<info>Package operations: %d install%s, %d update%s, %d removal%s</info>",
-count($installs),
-1 === count($installs) ? '' : 's',
-count($updates),
-1 === count($updates) ? '' : 's',
-count($uninstalls),
-1 === count($uninstalls) ? '' : 's'
-));
-if ($installs) {
-$this->io->writeError("Installs: ".implode(', ', $installs), true, IOInterface::VERBOSE);
-}
-if ($updates) {
-$this->io->writeError("Updates: ".implode(', ', $updates), true, IOInterface::VERBOSE);
-}
-if ($uninstalls) {
-$this->io->writeError("Removals: ".implode(', ', $uninstalls), true, IOInterface::VERBOSE);
-}
-}
-
-foreach ($operations as $operation) {
-
- $jobType = $operation->getJobType();
-if ('install' === $jobType) {
-$this->suggestedPackagesReporter->addSuggestionsFromPackage($operation->getPackage());
-}
-
-
- if ($this->update) {
-$package = null;
-if ('update' === $jobType) {
-$package = $operation->getTargetPackage();
-} elseif ('install' === $jobType) {
-$package = $operation->getPackage();
-}
-if ($package && $package->isDev()) {
-$references = $this->package->getReferences();
-if (isset($references[$package->getName()])) {
-$this->updateInstallReferences($package, $references[$package->getName()]);
-}
-}
-if ('update' === $jobType) {
-$targetPackage = $operation->getTargetPackage();
-if ($targetPackage->isDev()) {
-$initialPackage = $operation->getInitialPackage();
-if ($targetPackage->getVersion() === $initialPackage->getVersion()
-&& (!$targetPackage->getSourceReference() || $targetPackage->getSourceReference() === $initialPackage->getSourceReference())
-&& (!$targetPackage->getDistReference() || $targetPackage->getDistReference() === $initialPackage->getDistReference())
-) {
-$this->io->writeError('  - Skipping update of ' . $targetPackage->getPrettyName() . ' to the same reference-locked version', true, IOInterface::DEBUG);
-$this->io->writeError('', true, IOInterface::DEBUG);
-
-continue;
-}
-}
-}
-}
-
-$event = 'Composer\Installer\PackageEvents::PRE_PACKAGE_'.strtoupper($jobType);
-if (defined($event) && $this->runScripts) {
-$this->eventDispatcher->dispatchPackageEvent(constant($event), $this->devMode, $policy, $pool, $installedRepo, $request, $operations, $operation);
-}
-
-
- if (!$this->executeOperations && false === strpos($operation->getJobType(), 'Alias')) {
-$this->io->writeError('  - ' . $operation);
-} elseif ($this->io->isDebug() && false !== strpos($operation->getJobType(), 'Alias')) {
-$this->io->writeError('  - ' . $operation);
-}
-
-$this->installationManager->execute($localRepo, $operation);
-
-
- if ($this->verbose && $this->io->isVeryVerbose() && in_array($jobType, array('install', 'update'))) {
-$reason = $operation->getReason();
-if ($reason instanceof Rule) {
-switch ($reason->getReason()) {
-case Rule::RULE_JOB_INSTALL:
-$this->io->writeError('    REASON: Required by the root package: '.$reason->getPrettyString($pool));
-$this->io->writeError('');
-break;
-case Rule::RULE_PACKAGE_REQUIRES:
-$this->io->writeError('    REASON: '.$reason->getPrettyString($pool));
-$this->io->writeError('');
-break;
-}
-}
-}
-
-if ($this->executeOperations || $this->writeLock) {
-$localRepo->write();
-}
-
-$event = 'Composer\Installer\PackageEvents::POST_PACKAGE_'.strtoupper($jobType);
-if (defined($event) && $this->runScripts) {
-$this->eventDispatcher->dispatchPackageEvent(constant($event), $this->devMode, $policy, $pool, $installedRepo, $request, $operations, $operation);
-}
-}
-
-if ($this->executeOperations) {
-
- $this->processPackageUrls($pool, $policy, $localRepo, $repositories);
-$localRepo->write();
-}
-
-return array(0, $devPackages);
-}
-
-
-
-
-
-
-
-
-
-
-
-private function extractDevPackages(array $operations, RepositoryInterface $localRepo, PlatformRepository $platformRepo, array $aliases)
-{
-if (!$this->package->getDevRequires()) {
-return array();
-}
-
-
- $tempLocalRepo = clone $localRepo;
-foreach ($operations as $operation) {
-switch ($operation->getJobType()) {
-case 'install':
-case 'markAliasInstalled':
-if (!$tempLocalRepo->hasPackage($operation->getPackage())) {
-$tempLocalRepo->addPackage(clone $operation->getPackage());
-}
-break;
-
-case 'uninstall':
-case 'markAliasUninstalled':
-$tempLocalRepo->removePackage($operation->getPackage());
-break;
-
-case 'update':
-$tempLocalRepo->removePackage($operation->getInitialPackage());
-if (!$tempLocalRepo->hasPackage($operation->getTargetPackage())) {
-$tempLocalRepo->addPackage(clone $operation->getTargetPackage());
-}
-break;
-
-default:
-throw new \LogicException('Unknown type: '.$operation->getJobType());
-}
-}
-
-
- 
- 
- $localRepo = new InstalledArrayRepository(array());
-$loader = new ArrayLoader(null, true);
-$dumper = new ArrayDumper();
-foreach ($tempLocalRepo->getCanonicalPackages() as $pkg) {
-$localRepo->addPackage($loader->load($dumper->dump($pkg)));
-}
-unset($tempLocalRepo, $loader, $dumper);
-
-$policy = $this->createPolicy();
-$pool = $this->createPool();
-$installedRepo = $this->createInstalledRepo($localRepo, $platformRepo);
-$pool->addRepository($installedRepo, $aliases);
-
-
- $request = $this->createRequest($this->package, $platformRepo);
-$request->updateAll();
-foreach ($this->package->getRequires() as $link) {
-$request->install($link->getTarget(), $link->getConstraint());
-}
-
-
- $this->eventDispatcher->dispatchInstallerEvent(InstallerEvents::PRE_DEPENDENCIES_SOLVING, false, $policy, $pool, $installedRepo, $request);
-$solver = new Solver($policy, $pool, $installedRepo, $this->io);
-$ops = $solver->solve($request, $this->ignorePlatformReqs);
-$this->eventDispatcher->dispatchInstallerEvent(InstallerEvents::POST_DEPENDENCIES_SOLVING, false, $policy, $pool, $installedRepo, $request, $ops);
-
-$devPackages = array();
-foreach ($ops as $op) {
-if ($op->getJobType() === 'uninstall') {
-$devPackages[] = $op->getPackage();
-}
-}
-
-return $devPackages;
-}
-
-
-
-
-private function filterDevPackageOperations(array $devPackages, array $operations, RepositoryInterface $localRepo)
-{
-$finalOps = array();
-$packagesToSkip = array();
-foreach ($devPackages as $pkg) {
-$packagesToSkip[$pkg->getName()] = true;
-if ($installedDevPkg = $localRepo->findPackage($pkg->getName(), '*')) {
-if ($installedDevPkg instanceof AliasPackage) {
-$finalOps[] = new MarkAliasUninstalledOperation($installedDevPkg, 'non-dev install removing it');
-$installedDevPkg = $installedDevPkg->getAliasOf();
-}
-$finalOps[] = new UninstallOperation($installedDevPkg, 'non-dev install removing it');
-}
-}
-
-
- foreach ($operations as $op) {
-$package = $op->getJobType() === 'update' ? $op->getTargetPackage() : $op->getPackage();
-if (isset($packagesToSkip[$package->getName()])) {
-continue;
-}
-
-$finalOps[] = $op;
-}
-
-return $finalOps;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-private function movePluginsToFront(array $operations)
-{
-$pluginsNoDeps = array();
-$pluginsWithDeps = array();
-$pluginRequires = array();
-
-foreach (array_reverse($operations, true) as $idx => $op) {
-if ($op instanceof InstallOperation) {
-$package = $op->getPackage();
-} elseif ($op instanceof UpdateOperation) {
-$package = $op->getTargetPackage();
-} else {
-continue;
-}
-
-
- $isPlugin = $package->getType() === 'composer-plugin' || $package->getType() === 'composer-installer';
-
-
- if ($isPlugin || count(array_intersect($package->getNames(), $pluginRequires))) {
-
- $requires = array_filter(array_keys($package->getRequires()), function ($req) {
-return $req !== 'composer-plugin-api' && !preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $req);
-});
-
-
- if ($isPlugin && !count($requires)) {
-
- array_unshift($pluginsNoDeps, $op);
-} else {
-
- $pluginRequires = array_merge($pluginRequires, $requires);
-
- array_unshift($pluginsWithDeps, $op);
-}
-
-unset($operations[$idx]);
-}
-}
-
-return array_merge($pluginsNoDeps, $pluginsWithDeps, $operations);
-}
-
-
-
-
-
-
-
-
-private function moveUninstallsToFront(array $operations)
-{
-$uninstOps = array();
-foreach ($operations as $idx => $op) {
-if ($op instanceof UninstallOperation) {
-$uninstOps[] = $op;
-unset($operations[$idx]);
-}
-}
-
-return array_merge($uninstOps, $operations);
-}
-
-
-
-
-private function createInstalledRepo(RepositoryInterface $localRepo, PlatformRepository $platformRepo)
-{
-
- 
- 
- $installedRootPackage = clone $this->package;
-$installedRootPackage->setRequires(array());
-$installedRootPackage->setDevRequires(array());
-
-$repos = array(
-$localRepo,
-new InstalledArrayRepository(array($installedRootPackage)),
-$platformRepo,
-);
-$installedRepo = new CompositeRepository($repos);
-if ($this->additionalInstalledRepository) {
-$installedRepo->addRepository($this->additionalInstalledRepository);
-}
-
-return $installedRepo;
-}
-
-
-
-
-
-private function createPool(RepositoryInterface $lockedRepository = null)
-{
-if ($this->update) {
-$minimumStability = $this->package->getMinimumStability();
-$stabilityFlags = $this->package->getStabilityFlags();
-
-$requires = array_merge($this->package->getRequires(), $this->package->getDevRequires());
-} else {
-$minimumStability = $this->locker->getMinimumStability();
-$stabilityFlags = $this->locker->getStabilityFlags();
-
-$requires = array();
-foreach ($lockedRepository->getPackages() as $package) {
-$constraint = new Constraint('=', $package->getVersion());
-$constraint->setPrettyString($package->getPrettyVersion());
-$requires[$package->getName()] = $constraint;
-}
-}
-
-$rootConstraints = array();
-foreach ($requires as $req => $constraint) {
-
- if ($this->ignorePlatformReqs && preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $req)) {
-continue;
-}
-if ($constraint instanceof Link) {
-$rootConstraints[$req] = $constraint->getConstraint();
-} else {
-$rootConstraints[$req] = $constraint;
-}
-}
-
-return new Pool($minimumStability, $stabilityFlags, $rootConstraints);
-}
-
-
-
-
-private function createPolicy()
-{
-$preferStable = null;
-$preferLowest = null;
-if (!$this->update) {
-$preferStable = $this->locker->getPreferStable();
-$preferLowest = $this->locker->getPreferLowest();
-}
-
- 
- if (null === $preferStable) {
-$preferStable = $this->preferStable || $this->package->getPreferStable();
-}
-if (null === $preferLowest) {
-$preferLowest = $this->preferLowest;
-}
-
-return new DefaultPolicy($preferStable, $preferLowest);
-}
-
-
-
-
-
-
-private function createRequest(RootPackageInterface $rootPackage, PlatformRepository $platformRepo)
-{
-$request = new Request();
-
-$constraint = new Constraint('=', $rootPackage->getVersion());
-$constraint->setPrettyString($rootPackage->getPrettyVersion());
-$request->install($rootPackage->getName(), $constraint);
-
-$fixedPackages = $platformRepo->getPackages();
-if ($this->additionalInstalledRepository) {
-$additionalFixedPackages = $this->additionalInstalledRepository->getPackages();
-$fixedPackages = array_merge($fixedPackages, $additionalFixedPackages);
-}
-
-
- 
- $provided = $rootPackage->getProvides();
-foreach ($fixedPackages as $package) {
-$constraint = new Constraint('=', $package->getVersion());
-$constraint->setPrettyString($package->getPrettyVersion());
-
-
- if ($package->getRepository() !== $platformRepo
-|| !isset($provided[$package->getName()])
-|| !$provided[$package->getName()]->getConstraint()->matches($constraint)
-) {
-$request->fix($package->getName(), $constraint);
-}
-}
-
-return $request;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-private function processDevPackages($localRepo, $pool, $policy, $repositories, $installedRepo, $lockedRepository, $task, array $operations = null)
-{
-if ($task === 'force-updates' && null === $operations) {
-throw new \InvalidArgumentException('Missing operations argument');
-}
-if ($task === 'force-links') {
-$operations = array();
-}
-
-if ($this->update && $this->updateWhitelist) {
-$currentPackages = $this->getCurrentPackages($installedRepo);
-}
-
-foreach ($localRepo->getCanonicalPackages() as $package) {
-
- if (!$package->isDev()) {
-continue;
-}
-
-
- foreach ($operations as $operation) {
-if (('update' === $operation->getJobType() && $operation->getInitialPackage()->equals($package))
-|| ('uninstall' === $operation->getJobType() && $operation->getPackage()->equals($package))
-) {
-continue 2;
-}
-}
-
-if ($this->update) {
-
- if ($this->updateWhitelist && !$this->isUpdateable($package)) {
-
- foreach ($currentPackages as $curPackage) {
-if ($curPackage->isDev() && $curPackage->getName() === $package->getName() && $curPackage->getVersion() === $package->getVersion()) {
-if ($task === 'force-links') {
-$package->setRequires($curPackage->getRequires());
-$package->setConflicts($curPackage->getConflicts());
-$package->setProvides($curPackage->getProvides());
-$package->setReplaces($curPackage->getReplaces());
-} elseif ($task === 'force-updates') {
-if (($curPackage->getSourceReference() && $curPackage->getSourceReference() !== $package->getSourceReference())
-|| ($curPackage->getDistReference() && $curPackage->getDistReference() !== $package->getDistReference())
-) {
-$operations[] = new UpdateOperation($package, $curPackage);
-}
-}
-
-break;
-}
-}
-
-continue;
-}
-
-
- $matches = $pool->whatProvides($package->getName(), new Constraint('=', $package->getVersion()));
-foreach ($matches as $index => $match) {
-
- if (!in_array($match->getRepository(), $repositories, true)) {
-unset($matches[$index]);
-continue;
-}
-
-
- if ($match->getName() !== $package->getName()) {
-unset($matches[$index]);
-continue;
-}
-
-$matches[$index] = $match->getId();
-}
-
-
- if ($matches && $matches = $policy->selectPreferredPackages($pool, array(), $matches)) {
-$newPackage = $pool->literalToPackage($matches[0]);
-
-if ($task === 'force-links' && $newPackage) {
-$package->setRequires($newPackage->getRequires());
-$package->setConflicts($newPackage->getConflicts());
-$package->setProvides($newPackage->getProvides());
-$package->setReplaces($newPackage->getReplaces());
-}
-
-if (
-$task === 'force-updates'
-&& $newPackage
-&& (
-($newPackage->getSourceReference() && $newPackage->getSourceReference() !== $package->getSourceReference())
-|| ($newPackage->getDistReference() && $newPackage->getDistReference() !== $package->getDistReference())
-)
-) {
-$operations[] = new UpdateOperation($package, $newPackage);
-
-continue;
-}
-}
-
-if ($task === 'force-updates') {
-
- $references = $this->package->getReferences();
-
-if (isset($references[$package->getName()]) && $references[$package->getName()] !== $package->getSourceReference()) {
-
- $operations[] = new UpdateOperation($package, clone $package);
-}
-}
-} else {
-
- foreach ($lockedRepository->findPackages($package->getName()) as $lockedPackage) {
-if ($lockedPackage->isDev() && $lockedPackage->getVersion() === $package->getVersion()) {
-if ($task === 'force-links') {
-$package->setRequires($lockedPackage->getRequires());
-$package->setConflicts($lockedPackage->getConflicts());
-$package->setProvides($lockedPackage->getProvides());
-$package->setReplaces($lockedPackage->getReplaces());
-} elseif ($task === 'force-updates') {
-if (($lockedPackage->getSourceReference() && $lockedPackage->getSourceReference() !== $package->getSourceReference())
-|| ($lockedPackage->getDistReference() && $lockedPackage->getDistReference() !== $package->getDistReference())
-) {
-$operations[] = new UpdateOperation($package, $lockedPackage);
-}
-}
-
-break;
-}
-}
-}
-}
-
-return $operations;
-}
-
-
-
-
-
-
-private function getCurrentPackages($installedRepo)
-{
-if ($this->locker->isLocked()) {
-try {
-return $this->locker->getLockedRepository(true)->getPackages();
-} catch (\RuntimeException $e) {
-
- return $this->locker->getLockedRepository()->getPackages();
-}
-}
-
-return $installedRepo->getPackages();
-}
-
-
-
-
-private function getRootAliases()
-{
-if ($this->update) {
-$aliases = $this->package->getAliases();
-} else {
-$aliases = $this->locker->getAliases();
-}
-
-$normalizedAliases = array();
-
-foreach ($aliases as $alias) {
-$normalizedAliases[$alias['package']][$alias['version']] = array(
-'alias' => $alias['alias'],
-'alias_normalized' => $alias['alias_normalized'],
-);
-}
-
-return $normalizedAliases;
-}
-
-
-
-
-
-
-
-private function processPackageUrls($pool, $policy, $localRepo, $repositories)
-{
-if (!$this->update) {
-return;
-}
-
-$rootRefs = $this->package->getReferences();
-
-foreach ($localRepo->getCanonicalPackages() as $package) {
-
- $matches = $pool->whatProvides($package->getName(), new Constraint('=', $package->getVersion()));
-foreach ($matches as $index => $match) {
-
- if (!in_array($match->getRepository(), $repositories, true)) {
-unset($matches[$index]);
-continue;
-}
-
-
- if ($match->getName() !== $package->getName()) {
-unset($matches[$index]);
-continue;
-}
-
-$matches[$index] = $match->getId();
-}
-
-
- if ($matches && $matches = $policy->selectPreferredPackages($pool, array(), $matches)) {
-$newPackage = $pool->literalToPackage($matches[0]);
-
-
- $sourceUrl = $package->getSourceUrl();
-$newSourceUrl = $newPackage->getSourceUrl();
-$newReference = $newPackage->getSourceReference();
-
-if ($package->isDev() && isset($rootRefs[$package->getName()]) && $package->getSourceReference() === $rootRefs[$package->getName()]) {
-$newReference = $rootRefs[$package->getName()];
-}
-
-$this->updatePackageUrl($package, $newSourceUrl, $newPackage->getSourceType(), $newReference, $newPackage->getDistUrl());
-
-if ($package instanceof CompletePackage && $newPackage instanceof CompletePackage) {
-$package->setAbandoned($newPackage->getReplacementPackage() ?: $newPackage->isAbandoned());
-}
-
-$package->setDistMirrors($newPackage->getDistMirrors());
-$package->setSourceMirrors($newPackage->getSourceMirrors());
-}
-}
-}
-
-private function updatePackageUrl(PackageInterface $package, $sourceUrl, $sourceType, $sourceReference, $distUrl)
-{
-$oldSourceRef = $package->getSourceReference();
-
-if ($package->getSourceUrl() !== $sourceUrl) {
-$package->setSourceType($sourceType);
-$package->setSourceUrl($sourceUrl);
-$package->setSourceReference($sourceReference);
-}
-
-
- 
- if (preg_match('{^https?://(?:(?:www\.)?bitbucket\.org|(api\.)?github\.com|(?:www\.)?gitlab\.com)/}i', $distUrl)) {
-$package->setDistUrl($distUrl);
-$this->updateInstallReferences($package, $sourceReference);
-}
-
-if ($this->updateWhitelist && !$this->isUpdateable($package)) {
-$this->updateInstallReferences($package, $oldSourceRef);
-}
-}
-
-private function updateInstallReferences(PackageInterface $package, $reference)
-{
-if (!$reference) {
-return;
-}
-
-$package->setSourceReference($reference);
-
-if (preg_match('{^https?://(?:(?:www\.)?bitbucket\.org|(api\.)?github\.com|(?:www\.)?gitlab\.com)/}i', $package->getDistUrl())) {
-$package->setDistReference($reference);
-$package->setDistUrl(preg_replace('{(?<=/|sha=)[a-f0-9]{40}(?=/|$)}i', $reference, $package->getDistUrl()));
-} elseif ($package->getDistReference()) { 
- $package->setDistReference($reference);
-}
-}
-
-
-
-
-
-private function aliasPlatformPackages(PlatformRepository $platformRepo, $aliases)
-{
-foreach ($aliases as $package => $versions) {
-foreach ($versions as $version => $alias) {
-$packages = $platformRepo->findPackages($package, $version);
-foreach ($packages as $package) {
-$aliasPackage = new AliasPackage($package, $alias['alias_normalized'], $alias['alias']);
-$aliasPackage->setRootPackageAlias(true);
-$platformRepo->addPackage($aliasPackage);
-}
-}
-}
-}
-
-
-
-
-
-private function isUpdateable(PackageInterface $package)
-{
-if (!$this->updateWhitelist) {
-throw new \LogicException('isUpdateable should only be called when a whitelist is present');
-}
-
-foreach ($this->updateWhitelist as $whiteListedPattern => $void) {
-$patternRegexp = BasePackage::packageNameToRegexp($whiteListedPattern);
-if (preg_match($patternRegexp, $package->getName())) {
-return true;
-}
-}
-
-return false;
-}
-
-
-
-
-
-private function extractPlatformRequirements($links)
-{
-$platformReqs = array();
-foreach ($links as $link) {
-if (preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $link->getTarget())) {
-$platformReqs[$link->getTarget()] = $link->getPrettyConstraint();
-}
-}
-
-return $platformReqs;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-private function whitelistUpdateDependencies($localOrLockRepo, array $rootRequires, array $rootDevRequires)
-{
-if (!$this->updateWhitelist) {
-return;
-}
-
-$rootRequires = array_merge($rootRequires, $rootDevRequires);
-
-$requiredPackageNames = array();
-foreach ($rootRequires as $require) {
-$requiredPackageNames[] = $require->getTarget();
-}
-
-$skipPackages = array();
-if (!$this->whitelistAllDependencies) {
-foreach ($rootRequires as $require) {
-$skipPackages[$require->getTarget()] = true;
-}
-}
-
-$pool = new Pool('dev');
-$pool->addRepository($localOrLockRepo);
-
-$seen = array();
-
-$rootRequiredPackageNames = array_keys($rootRequires);
-
-foreach ($this->updateWhitelist as $packageName => $void) {
-$packageQueue = new \SplQueue;
-
-$depPackages = $pool->whatProvides($packageName);
-
-$nameMatchesRequiredPackage = in_array($packageName, $requiredPackageNames, true);
-
-
- if (!$nameMatchesRequiredPackage) {
-$whitelistPatternRegexp = BasePackage::packageNameToRegexp($packageName);
-foreach ($rootRequiredPackageNames as $rootRequiredPackageName) {
-if (preg_match($whitelistPatternRegexp, $rootRequiredPackageName)) {
-$nameMatchesRequiredPackage = true;
-break;
-}
-}
-}
-
-if (count($depPackages) == 0 && !$nameMatchesRequiredPackage && !in_array($packageName, array('nothing', 'lock', 'mirrors'))) {
-$this->io->writeError('<warning>Package "' . $packageName . '" listed for update is not installed. Ignoring.</warning>');
-}
-
-foreach ($depPackages as $depPackage) {
-$packageQueue->enqueue($depPackage);
-}
-
-while (!$packageQueue->isEmpty()) {
-$package = $packageQueue->dequeue();
-if (isset($seen[$package->getId()])) {
-continue;
-}
-
-$seen[$package->getId()] = true;
-$this->updateWhitelist[$package->getName()] = true;
-
-if (!$this->whitelistDependencies && !$this->whitelistAllDependencies) {
-continue;
-}
-
-$requires = $package->getRequires();
-
-foreach ($requires as $require) {
-$requirePackages = $pool->whatProvides($require->getTarget());
-
-foreach ($requirePackages as $requirePackage) {
-if (isset($this->updateWhitelist[$requirePackage->getName()])) {
-continue;
-}
-
-if (isset($skipPackages[$requirePackage->getName()])) {
-$this->io->writeError('<warning>Dependency "' . $requirePackage->getName() . '" is also a root requirement, but is not explicitly whitelisted. Ignoring.</warning>');
-continue;
-}
-
-$packageQueue->enqueue($requirePackage);
-}
-}
-}
-}
-}
-
-
-
-
-
-
-
-
-private function mockLocalRepositories(RepositoryManager $rm)
-{
-$packages = array();
-foreach ($rm->getLocalRepository()->getPackages() as $package) {
-$packages[(string) $package] = clone $package;
-}
-foreach ($packages as $key => $package) {
-if ($package instanceof AliasPackage) {
-$alias = (string) $package->getAliasOf();
-$packages[$key] = new AliasPackage($packages[$alias], $package->getVersion(), $package->getPrettyVersion());
-}
-}
-$rm->setLocalRepository(
-new InstalledArrayRepository($packages)
-);
-}
-
-
-
-
-
-
-
-
-public static function create(IOInterface $io, Composer $composer)
-{
-return new static(
-$io,
-$composer->getConfig(),
-$composer->getPackage(),
-$composer->getDownloadManager(),
-$composer->getRepositoryManager(),
-$composer->getLocker(),
-$composer->getInstallationManager(),
-$composer->getEventDispatcher(),
-$composer->getAutoloadGenerator()
-);
-}
-
-
-
-
-
-public function setAdditionalInstalledRepository(RepositoryInterface $additionalInstalledRepository)
-{
-$this->additionalInstalledRepository = $additionalInstalledRepository;
-
-return $this;
-}
-
-
-
-
-
-
-
-public function setDryRun($dryRun = true)
-{
-$this->dryRun = (bool) $dryRun;
-
-return $this;
-}
-
-
-
-
-
-
-public function isDryRun()
-{
-return $this->dryRun;
-}
-
-
-
-
-
-
-
-public function setPreferSource($preferSource = true)
-{
-$this->preferSource = (bool) $preferSource;
-
-return $this;
-}
-
-
-
-
-
-
-
-public function setPreferDist($preferDist = true)
-{
-$this->preferDist = (bool) $preferDist;
-
-return $this;
-}
-
-
-
-
-
-
-
-public function setOptimizeAutoloader($optimizeAutoloader = false)
-{
-$this->optimizeAutoloader = (bool) $optimizeAutoloader;
-if (!$this->optimizeAutoloader) {
-
- 
- $this->setClassMapAuthoritative(false);
-}
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function setClassMapAuthoritative($classMapAuthoritative = false)
-{
-$this->classMapAuthoritative = (bool) $classMapAuthoritative;
-if ($this->classMapAuthoritative) {
-
- $this->setOptimizeAutoloader(true);
-}
-
-return $this;
-}
-
-
-
-
-
-
-
-public function setApcuAutoloader($apcuAutoloader = false)
-{
-$this->apcuAutoloader = (bool) $apcuAutoloader;
-
-return $this;
-}
-
-
-
-
-
-
-
-public function setUpdate($update = true)
-{
-$this->update = (bool) $update;
-
-return $this;
-}
-
-
-
-
-
-
-
-public function setDevMode($devMode = true)
-{
-$this->devMode = (bool) $devMode;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-public function setDumpAutoloader($dumpAutoloader = true)
-{
-$this->dumpAutoloader = (bool) $dumpAutoloader;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-public function setRunScripts($runScripts = true)
-{
-$this->runScripts = (bool) $runScripts;
-
-return $this;
-}
-
-
-
-
-
-
-
-public function setConfig(Config $config)
-{
-$this->config = $config;
-
-return $this;
-}
-
-
-
-
-
-
-
-public function setVerbose($verbose = true)
-{
-$this->verbose = (bool) $verbose;
-
-return $this;
-}
-
-
-
-
-
-
-public function isVerbose()
-{
-return $this->verbose;
-}
-
-
-
-
-
-
-
-public function setIgnorePlatformRequirements($ignorePlatformReqs = false)
-{
-$this->ignorePlatformReqs = (bool) $ignorePlatformReqs;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function setUpdateWhitelist(array $packages)
-{
-$this->updateWhitelist = array_flip(array_map('strtolower', $packages));
-
-return $this;
-}
-
-
-
-
-public function setWhitelistDependencies($updateDependencies = true)
-{
-return $this->setWhitelistTransitiveDependencies($updateDependencies);
-}
-
-
-
-
-
-
-
-
-
-
-public function setWhitelistTransitiveDependencies($updateTransitiveDependencies = true)
-{
-$this->whitelistDependencies = (bool) $updateTransitiveDependencies;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-public function setWhitelistAllDependencies($updateAllDependencies = true)
-{
-$this->whitelistAllDependencies = (bool) $updateAllDependencies;
-
-return $this;
-}
-
-
-
-
-
-
-
-public function setPreferStable($preferStable = true)
-{
-$this->preferStable = (bool) $preferStable;
-
-return $this;
-}
-
-
-
-
-
-
-
-public function setPreferLowest($preferLowest = true)
-{
-$this->preferLowest = (bool) $preferLowest;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-public function setWriteLock($writeLock = true)
-{
-$this->writeLock = (bool) $writeLock;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-public function setExecuteOperations($executeOperations = true)
-{
-$this->executeOperations = (bool) $executeOperations;
-
-return $this;
-}
-
-
-
-
-
-
-
-public function setSkipSuggest($skipSuggest = true)
-{
-$this->skipSuggest = (bool) $skipSuggest;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-public function disablePlugins()
-{
-$this->installationManager->disablePlugins();
-
-return $this;
-}
-
-
-
-
-
-public function setSuggestedPackagesReporter(SuggestedPackagesReporter $suggestedPackagesReporter)
-{
-$this->suggestedPackagesReporter = $suggestedPackagesReporter;
-
-return $this;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Installer;
-
-use Composer\IO\IOInterface;
-use Composer\Package\PackageInterface;
-use Composer\Util\Filesystem;
-use Composer\Util\Platform;
-use Composer\Util\ProcessExecutor;
-use Composer\Util\Silencer;
-
-
-
-
-
-
-
-
-class BinaryInstaller
-{
-protected $binDir;
-protected $binCompat;
-protected $io;
-protected $filesystem;
-
-
-
-
-
-
-
-public function __construct(IOInterface $io, $binDir, $binCompat, Filesystem $filesystem = null)
-{
-$this->binDir = $binDir;
-$this->binCompat = $binCompat;
-$this->io = $io;
-$this->filesystem = $filesystem ?: new Filesystem();
-}
-
-public function installBinaries(PackageInterface $package, $installPath, $warnOnOverwrite = true)
-{
-$binaries = $this->getBinaries($package);
-if (!$binaries) {
-return;
-}
-foreach ($binaries as $bin) {
-$binPath = $installPath.'/'.$bin;
-if (!file_exists($binPath)) {
-$this->io->writeError('    <warning>Skipped installation of bin '.$bin.' for package '.$package->getName().': file not found in package</warning>');
-continue;
-}
-
-
- 
- 
- 
- $binPath = realpath($binPath);
-
-$this->initializeBinDir();
-$link = $this->binDir.'/'.basename($bin);
-if (file_exists($link)) {
-if (is_link($link)) {
-
- 
- 
- Silencer::call('chmod', $link, 0777 & ~umask());
-}
-if ($warnOnOverwrite) {
-$this->io->writeError('    Skipped installation of bin '.$bin.' for package '.$package->getName().': name conflicts with an existing file');
-}
-continue;
-}
-
-if ($this->binCompat === "auto") {
-if (Platform::isWindows()) {
-$this->installFullBinaries($binPath, $link, $bin, $package);
-} else {
-$this->installSymlinkBinaries($binPath, $link);
-}
-} elseif ($this->binCompat === "full") {
-$this->installFullBinaries($binPath, $link, $bin, $package);
-}
-Silencer::call('chmod', $link, 0777 & ~umask());
-}
-}
-
-public function removeBinaries(PackageInterface $package)
-{
-$this->initializeBinDir();
-
-$binaries = $this->getBinaries($package);
-if (!$binaries) {
-return;
-}
-foreach ($binaries as $bin) {
-$link = $this->binDir.'/'.basename($bin);
-if (is_link($link) || file_exists($link)) {
-$this->filesystem->unlink($link);
-}
-if (file_exists($link.'.bat')) {
-$this->filesystem->unlink($link.'.bat');
-}
-}
-
-
- if (is_dir($this->binDir) && $this->filesystem->isDirEmpty($this->binDir)) {
-Silencer::call('rmdir', $this->binDir);
-}
-}
-
-public static function determineBinaryCaller($bin)
-{
-if ('.bat' === substr($bin, -4) || '.exe' === substr($bin, -4)) {
-return 'call';
-}
-
-$handle = fopen($bin, 'r');
-$line = fgets($handle);
-fclose($handle);
-if (preg_match('{^#!/(?:usr/bin/env )?(?:[^/]+/)*(.+)$}m', $line, $match)) {
-return trim($match[1]);
-}
-
-return 'php';
-}
-
-protected function getBinaries(PackageInterface $package)
-{
-return $package->getBinaries();
-}
-
-protected function installFullBinaries($binPath, $link, $bin, PackageInterface $package)
-{
-
- if ('.bat' !== substr($binPath, -4)) {
-$this->installUnixyProxyBinaries($binPath, $link);
-@chmod($link, 0777 & ~umask());
-$link .= '.bat';
-if (file_exists($link)) {
-$this->io->writeError('    Skipped installation of bin '.$bin.'.bat proxy for package '.$package->getName().': a .bat proxy was already installed');
-}
-}
-if (!file_exists($link)) {
-file_put_contents($link, $this->generateWindowsProxyCode($binPath, $link));
-}
-}
-
-protected function installSymlinkBinaries($binPath, $link)
-{
-if (!$this->filesystem->relativeSymlink($binPath, $link)) {
-$this->installUnixyProxyBinaries($binPath, $link);
-}
-}
-
-protected function installUnixyProxyBinaries($binPath, $link)
-{
-file_put_contents($link, $this->generateUnixyProxyCode($binPath, $link));
-}
-
-protected function initializeBinDir()
-{
-$this->filesystem->ensureDirectoryExists($this->binDir);
-$this->binDir = realpath($this->binDir);
-}
-
-protected function generateWindowsProxyCode($bin, $link)
-{
-$binPath = $this->filesystem->findShortestPath($link, $bin);
-$caller = self::determineBinaryCaller($bin);
-
-return "@ECHO OFF\r\n".
-"setlocal DISABLEDELAYEDEXPANSION\r\n".
-"SET BIN_TARGET=%~dp0/".trim(ProcessExecutor::escape($binPath), '"\'')."\r\n".
-"{$caller} \"%BIN_TARGET%\" %*\r\n";
-}
-
-protected function generateUnixyProxyCode($bin, $link)
-{
-$binPath = $this->filesystem->findShortestPath($link, $bin);
-
-$binDir = ProcessExecutor::escape(dirname($binPath));
-$binFile = basename($binPath);
-
-$proxyCode = <<<PROXY
-#!/usr/bin/env sh
-
-dir=\$(cd "\${0%[/\\\\]*}" > /dev/null; cd $binDir && pwd)
-
-if [ -d /proc/cygdrive ] && [[ \$(which php) == \$(readlink -n /proc/cygdrive)/* ]]; then
-   # We are in Cgywin using Windows php, so the path must be translated
-   dir=\$(cygpath -m "\$dir");
-fi
-
-"\${dir}/$binFile" "\$@"
-
-PROXY;
-
-return $proxyCode;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Installer;
-
-use Composer\Package\PackageInterface;
-
-
-
-
-
-
-interface BinaryPresenceInterface
-{
-
-
-
-
-
-public function ensureBinariesPresence(PackageInterface $package);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Installer;
-
-use Composer\IO\IOInterface;
-use Composer\Package\PackageInterface;
-use Composer\Package\AliasPackage;
-use Composer\Repository\RepositoryInterface;
-use Composer\Repository\InstalledRepositoryInterface;
-use Composer\DependencyResolver\Operation\OperationInterface;
-use Composer\DependencyResolver\Operation\InstallOperation;
-use Composer\DependencyResolver\Operation\UpdateOperation;
-use Composer\DependencyResolver\Operation\UninstallOperation;
-use Composer\DependencyResolver\Operation\MarkAliasInstalledOperation;
-use Composer\DependencyResolver\Operation\MarkAliasUninstalledOperation;
-use Composer\Util\StreamContextFactory;
-
-
-
-
-
-
-
-
-class InstallationManager
-{
-private $installers = array();
-private $cache = array();
-private $notifiablePackages = array();
-
-public function reset()
-{
-$this->notifiablePackages = array();
-}
-
-
-
-
-
-
-public function addInstaller(InstallerInterface $installer)
-{
-array_unshift($this->installers, $installer);
-$this->cache = array();
-}
-
-
-
-
-
-
-public function removeInstaller(InstallerInterface $installer)
-{
-if (false !== ($key = array_search($installer, $this->installers, true))) {
-array_splice($this->installers, $key, 1);
-$this->cache = array();
-}
-}
-
-
-
-
-
-
-
-
-public function disablePlugins()
-{
-foreach ($this->installers as $i => $installer) {
-if (!$installer instanceof PluginInstaller) {
-continue;
-}
-
-unset($this->installers[$i]);
-}
-}
-
-
-
-
-
-
-
-
-
-public function getInstaller($type)
-{
-$type = strtolower($type);
-
-if (isset($this->cache[$type])) {
-return $this->cache[$type];
-}
-
-foreach ($this->installers as $installer) {
-if ($installer->supports($type)) {
-return $this->cache[$type] = $installer;
-}
-}
-
-throw new \InvalidArgumentException('Unknown installer type: '.$type);
-}
-
-
-
-
-
-
-
-
-
-public function isPackageInstalled(InstalledRepositoryInterface $repo, PackageInterface $package)
-{
-if ($package instanceof AliasPackage) {
-return $repo->hasPackage($package) && $this->isPackageInstalled($repo, $package->getAliasOf());
-}
-
-return $this->getInstaller($package->getType())->isInstalled($repo, $package);
-}
-
-
-
-
-
-
-
-public function ensureBinariesPresence(PackageInterface $package)
-{
-try {
-$installer = $this->getInstaller($package->getType());
-} catch (\InvalidArgumentException $e) {
-
- return;
-}
-
-
- if ($installer instanceof BinaryPresenceInterface) {
-$installer->ensureBinariesPresence($package);
-}
-}
-
-
-
-
-
-
-
-public function execute(RepositoryInterface $repo, OperationInterface $operation)
-{
-$method = $operation->getJobType();
-$this->$method($repo, $operation);
-}
-
-
-
-
-
-
-
-public function install(RepositoryInterface $repo, InstallOperation $operation)
-{
-$package = $operation->getPackage();
-$installer = $this->getInstaller($package->getType());
-$installer->install($repo, $package);
-$this->markForNotification($package);
-}
-
-
-
-
-
-
-
-public function update(RepositoryInterface $repo, UpdateOperation $operation)
-{
-$initial = $operation->getInitialPackage();
-$target = $operation->getTargetPackage();
-
-$initialType = $initial->getType();
-$targetType = $target->getType();
-
-if ($initialType === $targetType) {
-$installer = $this->getInstaller($initialType);
-$installer->update($repo, $initial, $target);
-$this->markForNotification($target);
-} else {
-$this->getInstaller($initialType)->uninstall($repo, $initial);
-$this->getInstaller($targetType)->install($repo, $target);
-}
-}
-
-
-
-
-
-
-
-public function uninstall(RepositoryInterface $repo, UninstallOperation $operation)
-{
-$package = $operation->getPackage();
-$installer = $this->getInstaller($package->getType());
-$installer->uninstall($repo, $package);
-}
-
-
-
-
-
-
-
-public function markAliasInstalled(RepositoryInterface $repo, MarkAliasInstalledOperation $operation)
-{
-$package = $operation->getPackage();
-
-if (!$repo->hasPackage($package)) {
-$repo->addPackage(clone $package);
-}
-}
-
-
-
-
-
-
-
-public function markAliasUninstalled(RepositoryInterface $repo, MarkAliasUninstalledOperation $operation)
-{
-$package = $operation->getPackage();
-
-$repo->removePackage($package);
-}
-
-
-
-
-
-
-
-public function getInstallPath(PackageInterface $package)
-{
-$installer = $this->getInstaller($package->getType());
-
-return $installer->getInstallPath($package);
-}
-
-public function notifyInstalls(IOInterface $io)
-{
-foreach ($this->notifiablePackages as $repoUrl => $packages) {
-$repositoryName = parse_url($repoUrl, PHP_URL_HOST);
-if ($io->hasAuthentication($repositoryName)) {
-$auth = $io->getAuthentication($repositoryName);
-$authStr = base64_encode($auth['username'] . ':' . $auth['password']);
-$authHeader = 'Authorization: Basic '.$authStr;
-}
-
-
- if (strpos($repoUrl, '%package%')) {
-foreach ($packages as $package) {
-$url = str_replace('%package%', $package->getPrettyName(), $repoUrl);
-
-$params = array(
-'version' => $package->getPrettyVersion(),
-'version_normalized' => $package->getVersion(),
-);
-$opts = array('http' =>
-array(
-'method' => 'POST',
-'header' => array('Content-type: application/x-www-form-urlencoded'),
-'content' => http_build_query($params, '', '&'),
-'timeout' => 3,
-),
-);
-if (isset($authHeader)) {
-$opts['http']['header'][] = $authHeader;
-}
-
-$context = StreamContextFactory::getContext($url, $opts);
-@file_get_contents($url, false, $context);
-}
-
-continue;
-}
-
-$postData = array('downloads' => array());
-foreach ($packages as $package) {
-$postData['downloads'][] = array(
-'name' => $package->getPrettyName(),
-'version' => $package->getVersion(),
-);
-}
-
-$opts = array('http' =>
-array(
-'method' => 'POST',
-'header' => array('Content-Type: application/json'),
-'content' => json_encode($postData),
-'timeout' => 6,
-),
-);
-if (isset($authHeader)) {
-$opts['http']['header'][] = $authHeader;
-}
-
-$context = StreamContextFactory::getContext($repoUrl, $opts);
-@file_get_contents($repoUrl, false, $context);
-}
-
-$this->reset();
-}
-
-private function markForNotification(PackageInterface $package)
-{
-if ($package->getNotificationUrl()) {
-$this->notifiablePackages[$package->getNotificationUrl()][$package->getName()] = $package;
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Installer;
-
-use Composer\Composer;
-use Composer\DependencyResolver\PolicyInterface;
-use Composer\DependencyResolver\Operation\OperationInterface;
-use Composer\DependencyResolver\Pool;
-use Composer\DependencyResolver\Request;
-use Composer\EventDispatcher\Event;
-use Composer\IO\IOInterface;
-use Composer\Repository\CompositeRepository;
-
-
-
-
-
-
-class InstallerEvent extends Event
-{
-
-
-
-private $composer;
-
-
-
-
-private $io;
-
-
-
-
-private $devMode;
-
-
-
-
-private $policy;
-
-
-
-
-private $pool;
-
-
-
-
-private $installedRepo;
-
-
-
-
-private $request;
-
-
-
-
-private $operations;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function __construct($eventName, Composer $composer, IOInterface $io, $devMode, PolicyInterface $policy, Pool $pool, CompositeRepository $installedRepo, Request $request, array $operations = array())
-{
-parent::__construct($eventName);
-
-$this->composer = $composer;
-$this->io = $io;
-$this->devMode = $devMode;
-$this->policy = $policy;
-$this->pool = $pool;
-$this->installedRepo = $installedRepo;
-$this->request = $request;
-$this->operations = $operations;
-}
-
-
-
-
-public function getComposer()
-{
-return $this->composer;
-}
-
-
-
-
-public function getIO()
-{
-return $this->io;
-}
-
-
-
-
-public function isDevMode()
-{
-return $this->devMode;
-}
-
-
-
-
-public function getPolicy()
-{
-return $this->policy;
-}
-
-
-
-
-public function getPool()
-{
-return $this->pool;
-}
-
-
-
-
-public function getInstalledRepo()
-{
-return $this->installedRepo;
-}
-
-
-
-
-public function getRequest()
-{
-return $this->request;
-}
-
-
-
-
-public function getOperations()
-{
-return $this->operations;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Installer;
-
-
-
-
-
-
-class InstallerEvents
-{
-
-
-
-
-
-
-
-
-
-const PRE_DEPENDENCIES_SOLVING = 'pre-dependencies-solving';
-
-
-
-
-
-
-
-
-
-
-const POST_DEPENDENCIES_SOLVING = 'post-dependencies-solving';
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Installer;
-
-use Composer\Package\PackageInterface;
-use Composer\Repository\InstalledRepositoryInterface;
-use InvalidArgumentException;
-
-
-
-
-
-
-
-interface InstallerInterface
-{
-
-
-
-
-
-
-public function supports($packageType);
-
-
-
-
-
-
-
-
-
-public function isInstalled(InstalledRepositoryInterface $repo, PackageInterface $package);
-
-
-
-
-
-
-
-public function install(InstalledRepositoryInterface $repo, PackageInterface $package);
-
-
-
-
-
-
-
-
-
-
-public function update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target);
-
-
-
-
-
-
-
-public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package);
-
-
-
-
-
-
-
-public function getInstallPath(PackageInterface $package);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Installer;
-
-use Composer\Composer;
-use Composer\IO\IOInterface;
-use Composer\Repository\InstalledRepositoryInterface;
-use Composer\Package\PackageInterface;
-use Composer\Util\Filesystem;
-use Composer\Util\Silencer;
-use Composer\Util\Platform;
-
-
-
-
-
-
-
-class LibraryInstaller implements InstallerInterface, BinaryPresenceInterface
-{
-protected $composer;
-protected $vendorDir;
-protected $binDir;
-protected $downloadManager;
-protected $io;
-protected $type;
-protected $filesystem;
-protected $binCompat;
-protected $binaryInstaller;
-
-
-
-
-
-
-
-
-
-
-public function __construct(IOInterface $io, Composer $composer, $type = 'library', Filesystem $filesystem = null, BinaryInstaller $binaryInstaller = null)
-{
-$this->composer = $composer;
-$this->downloadManager = $composer->getDownloadManager();
-$this->io = $io;
-$this->type = $type;
-
-$this->filesystem = $filesystem ?: new Filesystem();
-$this->vendorDir = rtrim($composer->getConfig()->get('vendor-dir'), '/');
-$this->binaryInstaller = $binaryInstaller ?: new BinaryInstaller($this->io, rtrim($composer->getConfig()->get('bin-dir'), '/'), $composer->getConfig()->get('bin-compat'), $this->filesystem);
-}
-
-
-
-
-public function supports($packageType)
-{
-return $packageType === $this->type || null === $this->type;
-}
-
-
-
-
-public function isInstalled(InstalledRepositoryInterface $repo, PackageInterface $package)
-{
-if (!$repo->hasPackage($package)) {
-return false;
-}
-
-$installPath = $this->getInstallPath($package);
-
-if (is_readable($installPath)) {
-return true;
-}
-
-return (Platform::isWindows() && $this->filesystem->isJunction($installPath)) || is_link($installPath);
-}
-
-
-
-
-public function install(InstalledRepositoryInterface $repo, PackageInterface $package)
-{
-$this->initializeVendorDir();
-$downloadPath = $this->getInstallPath($package);
-
-
- if (!is_readable($downloadPath) && $repo->hasPackage($package)) {
-$this->binaryInstaller->removeBinaries($package);
-}
-
-$this->installCode($package);
-$this->binaryInstaller->installBinaries($package, $this->getInstallPath($package));
-if (!$repo->hasPackage($package)) {
-$repo->addPackage(clone $package);
-}
-}
-
-
-
-
-public function update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target)
-{
-if (!$repo->hasPackage($initial)) {
-throw new \InvalidArgumentException('Package is not installed: '.$initial);
-}
-
-$this->initializeVendorDir();
-
-$this->binaryInstaller->removeBinaries($initial);
-$this->updateCode($initial, $target);
-$this->binaryInstaller->installBinaries($target, $this->getInstallPath($target));
-$repo->removePackage($initial);
-if (!$repo->hasPackage($target)) {
-$repo->addPackage(clone $target);
-}
-}
-
-
-
-
-public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package)
-{
-if (!$repo->hasPackage($package)) {
-throw new \InvalidArgumentException('Package is not installed: '.$package);
-}
-
-$this->removeCode($package);
-$this->binaryInstaller->removeBinaries($package);
-$repo->removePackage($package);
-
-$downloadPath = $this->getPackageBasePath($package);
-if (strpos($package->getName(), '/')) {
-$packageVendorDir = dirname($downloadPath);
-if (is_dir($packageVendorDir) && $this->filesystem->isDirEmpty($packageVendorDir)) {
-Silencer::call('rmdir', $packageVendorDir);
-}
-}
-}
-
-
-
-
-public function getInstallPath(PackageInterface $package)
-{
-$this->initializeVendorDir();
-
-$basePath = ($this->vendorDir ? $this->vendorDir.'/' : '') . $package->getPrettyName();
-$targetDir = $package->getTargetDir();
-
-return $basePath . ($targetDir ? '/'.$targetDir : '');
-}
-
-
-
-
-
-
-public function ensureBinariesPresence(PackageInterface $package)
-{
-$this->binaryInstaller->installBinaries($package, $this->getInstallPath($package), false);
-}
-
-
-
-
-
-
-
-
-
-
-protected function getPackageBasePath(PackageInterface $package)
-{
-$installPath = $this->getInstallPath($package);
-$targetDir = $package->getTargetDir();
-
-if ($targetDir) {
-return preg_replace('{/*'.str_replace('/', '/+', preg_quote($targetDir)).'/?$}', '', $installPath);
-}
-
-return $installPath;
-}
-
-protected function installCode(PackageInterface $package)
-{
-$downloadPath = $this->getInstallPath($package);
-$this->downloadManager->download($package, $downloadPath);
-}
-
-protected function updateCode(PackageInterface $initial, PackageInterface $target)
-{
-$initialDownloadPath = $this->getInstallPath($initial);
-$targetDownloadPath = $this->getInstallPath($target);
-if ($targetDownloadPath !== $initialDownloadPath) {
-
- 
- if (substr($initialDownloadPath, 0, strlen($targetDownloadPath)) === $targetDownloadPath
-|| substr($targetDownloadPath, 0, strlen($initialDownloadPath)) === $initialDownloadPath
-) {
-$this->removeCode($initial);
-$this->installCode($target);
-
-return;
-}
-
-$this->filesystem->rename($initialDownloadPath, $targetDownloadPath);
-}
-$this->downloadManager->update($initial, $target, $targetDownloadPath);
-}
-
-protected function removeCode(PackageInterface $package)
-{
-$downloadPath = $this->getPackageBasePath($package);
-$this->downloadManager->remove($package, $downloadPath);
-}
-
-protected function initializeVendorDir()
-{
-$this->filesystem->ensureDirectoryExists($this->vendorDir);
-$this->vendorDir = realpath($this->vendorDir);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Installer;
-
-use Composer\Repository\InstalledRepositoryInterface;
-use Composer\Package\PackageInterface;
-
-
-
-
-
-
-class MetapackageInstaller implements InstallerInterface
-{
-
-
-
-public function supports($packageType)
-{
-return $packageType === 'metapackage';
-}
-
-
-
-
-public function isInstalled(InstalledRepositoryInterface $repo, PackageInterface $package)
-{
-return $repo->hasPackage($package);
-}
-
-
-
-
-public function install(InstalledRepositoryInterface $repo, PackageInterface $package)
-{
-$repo->addPackage(clone $package);
-}
-
-
-
-
-public function update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target)
-{
-if (!$repo->hasPackage($initial)) {
-throw new \InvalidArgumentException('Package is not installed: '.$initial);
-}
-
-$repo->removePackage($initial);
-$repo->addPackage(clone $target);
-}
-
-
-
-
-public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package)
-{
-if (!$repo->hasPackage($package)) {
-throw new \InvalidArgumentException('Package is not installed: '.$package);
-}
-
-$repo->removePackage($package);
-}
-
-
-
-
-public function getInstallPath(PackageInterface $package)
-{
-return '';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Installer;
-
-use Composer\Repository\InstalledRepositoryInterface;
-use Composer\Package\PackageInterface;
-
-
-
-
-
-
-
-
-class NoopInstaller implements InstallerInterface
-{
-
-
-
-public function supports($packageType)
-{
-return true;
-}
-
-
-
-
-public function isInstalled(InstalledRepositoryInterface $repo, PackageInterface $package)
-{
-return $repo->hasPackage($package);
-}
-
-
-
-
-public function install(InstalledRepositoryInterface $repo, PackageInterface $package)
-{
-if (!$repo->hasPackage($package)) {
-$repo->addPackage(clone $package);
-}
-}
-
-
-
-
-public function update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target)
-{
-if (!$repo->hasPackage($initial)) {
-throw new \InvalidArgumentException('Package is not installed: '.$initial);
-}
-
-$repo->removePackage($initial);
-if (!$repo->hasPackage($target)) {
-$repo->addPackage(clone $target);
-}
-}
-
-
-
-
-public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package)
-{
-if (!$repo->hasPackage($package)) {
-throw new \InvalidArgumentException('Package is not installed: '.$package);
-}
-$repo->removePackage($package);
-}
-
-
-
-
-public function getInstallPath(PackageInterface $package)
-{
-$targetDir = $package->getTargetDir();
-
-return $package->getPrettyName() . ($targetDir ? '/'.$targetDir : '');
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Installer;
-
-use Composer\Composer;
-use Composer\IO\IOInterface;
-use Composer\DependencyResolver\Operation\OperationInterface;
-use Composer\DependencyResolver\PolicyInterface;
-use Composer\DependencyResolver\Pool;
-use Composer\DependencyResolver\Request;
-use Composer\Repository\CompositeRepository;
-
-
-
-
-
-
-class PackageEvent extends InstallerEvent
-{
-
-
-
-private $operation;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function __construct($eventName, Composer $composer, IOInterface $io, $devMode, PolicyInterface $policy, Pool $pool, CompositeRepository $installedRepo, Request $request, array $operations, OperationInterface $operation)
-{
-parent::__construct($eventName, $composer, $io, $devMode, $policy, $pool, $installedRepo, $request, $operations);
-
-$this->operation = $operation;
-}
-
-
-
-
-
-
-public function getOperation()
-{
-return $this->operation;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Installer;
-
-
-
-
-
-
-class PackageEvents
-{
-
-
-
-
-
-
-
-const PRE_PACKAGE_INSTALL = 'pre-package-install';
-
-
-
-
-
-
-
-
-const POST_PACKAGE_INSTALL = 'post-package-install';
-
-
-
-
-
-
-
-
-const PRE_PACKAGE_UPDATE = 'pre-package-update';
-
-
-
-
-
-
-
-
-const POST_PACKAGE_UPDATE = 'post-package-update';
-
-
-
-
-
-
-
-
-const PRE_PACKAGE_UNINSTALL = 'pre-package-uninstall';
-
-
-
-
-
-
-
-
-const POST_PACKAGE_UNINSTALL = 'post-package-uninstall';
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Installer;
-
-use Composer\IO\IOInterface;
-use Composer\Package\PackageInterface;
-use Composer\Util\Filesystem;
-use Composer\Util\ProcessExecutor;
-
-
-
-
-
-
-class PearBinaryInstaller extends BinaryInstaller
-{
-private $installer;
-private $vendorDir;
-
-
-
-
-
-
-
-
-
-public function __construct(IOInterface $io, $binDir, $vendorDir, $binCompat, Filesystem $filesystem, PearInstaller $installer)
-{
-parent::__construct($io, $binDir, $binCompat, $filesystem);
-$this->installer = $installer;
-$this->vendorDir = $vendorDir;
-}
-
-protected function getBinaries(PackageInterface $package)
-{
-$binariesPath = $this->installer->getInstallPath($package) . '/bin/';
-$binaries = array();
-if (file_exists($binariesPath)) {
-foreach (new \FilesystemIterator($binariesPath, \FilesystemIterator::KEY_AS_FILENAME | \FilesystemIterator::CURRENT_AS_FILEINFO) as $fileName => $value) {
-if (!$value->isDir()) {
-$binaries[] = 'bin/'.$fileName;
-}
-}
-}
-
-return $binaries;
-}
-
-protected function initializeBinDir()
-{
-parent::initializeBinDir();
-file_put_contents($this->binDir.'/composer-php', $this->generateUnixyPhpProxyCode());
-@chmod($this->binDir.'/composer-php', 0777 & ~umask());
-file_put_contents($this->binDir.'/composer-php.bat', $this->generateWindowsPhpProxyCode());
-@chmod($this->binDir.'/composer-php.bat', 0777 & ~umask());
-}
-
-protected function generateWindowsProxyCode($bin, $link)
-{
-$binPath = $this->filesystem->findShortestPath($link, $bin);
-if ('.bat' === substr($bin, -4)) {
-$caller = 'call';
-} else {
-$handle = fopen($bin, 'r');
-$line = fgets($handle);
-fclose($handle);
-if (preg_match('{^#!/(?:usr/bin/env )?(?:[^/]+/)*(.+)$}m', $line, $match)) {
-$caller = trim($match[1]);
-} else {
-$caller = 'php';
-}
-
-if ($caller === 'php') {
-return "@echo off\r\n".
-"pushd .\r\n".
-"cd %~dp0\r\n".
-"set PHP_PROXY=%CD%\\composer-php.bat\r\n".
-"cd ".ProcessExecutor::escape(dirname($binPath))."\r\n".
-"set BIN_TARGET=%CD%\\".basename($binPath)."\r\n".
-"popd\r\n".
-"%PHP_PROXY% \"%BIN_TARGET%\" %*\r\n";
-}
-}
-
-return "@echo off\r\n".
-"pushd .\r\n".
-"cd %~dp0\r\n".
-"cd ".ProcessExecutor::escape(dirname($binPath))."\r\n".
-"set BIN_TARGET=%CD%\\".basename($binPath)."\r\n".
-"popd\r\n".
-$caller." \"%BIN_TARGET%\" %*\r\n";
-}
-
-private function generateWindowsPhpProxyCode()
-{
-$binToVendor = $this->filesystem->findShortestPath($this->binDir, $this->vendorDir, true);
-
-return
-"@echo off\r\n" .
-"setlocal enabledelayedexpansion\r\n" .
-"set BIN_DIR=%~dp0\r\n" .
-"set VENDOR_DIR=%BIN_DIR%\\".$binToVendor."\r\n" .
-"set DIRS=.\r\n" .
-"FOR /D %%V IN (%VENDOR_DIR%\\*) DO (\r\n" .
-"    FOR /D %%P IN (%%V\\*) DO (\r\n" .
-"        set DIRS=!DIRS!;%%~fP\r\n" .
-"    )\r\n" .
-")\r\n" .
-"php.exe -d include_path=!DIRS! %*\r\n";
-}
-
-private function generateUnixyPhpProxyCode()
-{
-$binToVendor = $this->filesystem->findShortestPath($this->binDir, $this->vendorDir, true);
-
-return
-"#!/usr/bin/env sh\n".
-"SRC_DIR=`pwd`\n".
-"BIN_DIR=`dirname $0`\n".
-"VENDOR_DIR=\$BIN_DIR/".escapeshellarg($binToVendor)."\n".
-"DIRS=\"\"\n".
-"for vendor in \$VENDOR_DIR/*; do\n".
-"    if [ -d \"\$vendor\" ]; then\n".
-"        for package in \$vendor/*; do\n".
-"            if [ -d \"\$package\" ]; then\n".
-"                DIRS=\"\${DIRS}:\${package}\"\n".
-"            fi\n".
-"        done\n".
-"    fi\n".
-"done\n".
-"php -d include_path=\".\$DIRS\" $@\n";
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Installer;
-
-use Composer\IO\IOInterface;
-use Composer\Composer;
-use Composer\Downloader\PearPackageExtractor;
-use Composer\Repository\InstalledRepositoryInterface;
-use Composer\Package\PackageInterface;
-use Composer\Util\Platform;
-use Composer\Util\Filesystem;
-
-
-
-
-
-
-
-class PearInstaller extends LibraryInstaller
-{
-
-
-
-
-
-
-
-public function __construct(IOInterface $io, Composer $composer, $type = 'pear-library')
-{
-$filesystem = new Filesystem();
-$binaryInstaller = new PearBinaryInstaller($io, rtrim($composer->getConfig()->get('bin-dir'), '/'), rtrim($composer->getConfig()->get('vendor-dir'), '/'), $composer->getConfig()->get('bin-compat'), $filesystem, $this);
-
-parent::__construct($io, $composer, $type, $filesystem, $binaryInstaller);
-}
-
-
-
-
-public function update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target)
-{
-$this->uninstall($repo, $initial);
-$this->install($repo, $target);
-}
-
-protected function installCode(PackageInterface $package)
-{
-parent::installCode($package);
-
-$isWindows = Platform::isWindows();
-$php_bin = $this->binDir . ($isWindows ? '/composer-php.bat' : '/composer-php');
-
-if (!$isWindows) {
-$php_bin = '/usr/bin/env ' . $php_bin;
-}
-
-$installPath = $this->getInstallPath($package);
-$vars = array(
-'os' => $isWindows ? 'windows' : 'linux',
-'php_bin' => $php_bin,
-'pear_php' => $installPath,
-'php_dir' => $installPath,
-'bin_dir' => $installPath . '/bin',
-'data_dir' => $installPath . '/data',
-'version' => $package->getPrettyVersion(),
-);
-
-$packageArchive = $this->getInstallPath($package).'/'.pathinfo($package->getDistUrl(), PATHINFO_BASENAME);
-$pearExtractor = new PearPackageExtractor($packageArchive);
-$pearExtractor->extractTo($this->getInstallPath($package), array('php' => '/', 'script' => '/bin', 'data' => '/data'), $vars);
-
-$this->io->writeError('    Cleaning up', true, IOInterface::VERBOSE);
-$this->filesystem->unlink($packageArchive);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Installer;
-
-use Composer\Composer;
-use Composer\IO\IOInterface;
-use Composer\Repository\InstalledRepositoryInterface;
-use Composer\Package\PackageInterface;
-
-
-
-
-
-
-
-class PluginInstaller extends LibraryInstaller
-{
-private $installationManager;
-
-
-
-
-
-
-
-public function __construct(IOInterface $io, Composer $composer)
-{
-parent::__construct($io, $composer, 'composer-plugin');
-$this->installationManager = $composer->getInstallationManager();
-}
-
-
-
-
-public function supports($packageType)
-{
-return $packageType === 'composer-plugin' || $packageType === 'composer-installer';
-}
-
-
-
-
-public function install(InstalledRepositoryInterface $repo, PackageInterface $package)
-{
-$extra = $package->getExtra();
-if (empty($extra['class'])) {
-throw new \UnexpectedValueException('Error while installing '.$package->getPrettyName().', composer-plugin packages should have a class defined in their extra key to be usable.');
-}
-
-parent::install($repo, $package);
-try {
-$this->composer->getPluginManager()->registerPackage($package, true);
-} catch (\Exception $e) {
-
- $this->io->writeError('Plugin installation failed, rolling back');
-parent::uninstall($repo, $package);
-throw $e;
-}
-}
-
-
-
-
-public function update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target)
-{
-$extra = $target->getExtra();
-if (empty($extra['class'])) {
-throw new \UnexpectedValueException('Error while installing '.$target->getPrettyName().', composer-plugin packages should have a class defined in their extra key to be usable.');
-}
-
-parent::update($repo, $initial, $target);
-$this->composer->getPluginManager()->registerPackage($target, true);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Installer;
-
-use Composer\Package\PackageInterface;
-use Composer\Downloader\DownloadManager;
-use Composer\Repository\InstalledRepositoryInterface;
-use Composer\Util\Filesystem;
-
-
-
-
-
-
-
-class ProjectInstaller implements InstallerInterface
-{
-private $installPath;
-private $downloadManager;
-private $filesystem;
-
-public function __construct($installPath, DownloadManager $dm)
-{
-$this->installPath = rtrim(strtr($installPath, '\\', '/'), '/').'/';
-$this->downloadManager = $dm;
-$this->filesystem = new Filesystem;
-}
-
-
-
-
-
-
-
-public function supports($packageType)
-{
-return true;
-}
-
-
-
-
-public function isInstalled(InstalledRepositoryInterface $repo, PackageInterface $package)
-{
-return false;
-}
-
-
-
-
-public function install(InstalledRepositoryInterface $repo, PackageInterface $package)
-{
-$installPath = $this->installPath;
-if (file_exists($installPath) && !$this->filesystem->isDirEmpty($installPath)) {
-throw new \InvalidArgumentException("Project directory $installPath is not empty.");
-}
-if (!is_dir($installPath)) {
-mkdir($installPath, 0777, true);
-}
-$this->downloadManager->download($package, $installPath);
-}
-
-
-
-
-public function update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target)
-{
-throw new \InvalidArgumentException("not supported");
-}
-
-
-
-
-public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package)
-{
-throw new \InvalidArgumentException("not supported");
-}
-
-
-
-
-
-
-
-public function getInstallPath(PackageInterface $package)
-{
-return $this->installPath;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Installer;
-
-use Composer\IO\IOInterface;
-use Composer\Package\PackageInterface;
-use Composer\Repository\RepositoryInterface;
-use Symfony\Component\Console\Formatter\OutputFormatter;
-
-
-
-
-
-
-class SuggestedPackagesReporter
-{
-
-
-
-protected $suggestedPackages = array();
-
-
-
-
-private $io;
-
-public function __construct(IOInterface $io)
-{
-$this->io = $io;
-}
-
-
-
-
-public function getPackages()
-{
-return $this->suggestedPackages;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function addPackage($source, $target, $reason)
-{
-$this->suggestedPackages[] = array(
-'source' => $source,
-'target' => $target,
-'reason' => $reason,
-);
-
-return $this;
-}
-
-
-
-
-
-
-
-public function addSuggestionsFromPackage(PackageInterface $package)
-{
-$source = $package->getPrettyName();
-foreach ($package->getSuggests() as $target => $reason) {
-$this->addPackage(
-$source,
-$target,
-$reason
-);
-}
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function output(RepositoryInterface $installedRepo = null)
-{
-$suggestedPackages = $this->getPackages();
-$installedPackages = array();
-if (null !== $installedRepo && ! empty($suggestedPackages)) {
-foreach ($installedRepo->getPackages() as $package) {
-$installedPackages = array_merge(
-$installedPackages,
-$package->getNames()
-);
-}
-}
-
-foreach ($suggestedPackages as $suggestion) {
-if (in_array($suggestion['target'], $installedPackages)) {
-continue;
-}
-
-$this->io->writeError(sprintf(
-'%s suggests installing %s%s',
-$suggestion['source'],
-$this->escapeOutput($suggestion['target']),
-$this->escapeOutput('' !== $suggestion['reason'] ? ' ('.$suggestion['reason'].')' : '')
-));
-}
-
-return $this;
-}
-
-
-
-
-
-private function escapeOutput($string)
-{
-return OutputFormatter::escape(
-$this->removeControlCharacters($string)
-);
-}
-
-
-
-
-
-private function removeControlCharacters($string)
-{
-return preg_replace(
-'/[[:cntrl:]]/',
-'',
-str_replace("\n", ' ', $string)
-);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Json;
-
-use JsonSchema\Validator;
-use Seld\JsonLint\JsonParser;
-use Seld\JsonLint\ParsingException;
-use Composer\Util\RemoteFilesystem;
-use Composer\IO\IOInterface;
-use Composer\Downloader\TransportException;
-
-
-
-
-
-
-
-class JsonFile
-{
-const LAX_SCHEMA = 1;
-const STRICT_SCHEMA = 2;
-
-const JSON_UNESCAPED_SLASHES = 64;
-const JSON_PRETTY_PRINT = 128;
-const JSON_UNESCAPED_UNICODE = 256;
-
-private $path;
-private $rfs;
-private $io;
-
-
-
-
-
-
-
-
-
-public function __construct($path, RemoteFilesystem $rfs = null, IOInterface $io = null)
-{
-$this->path = $path;
-
-if (null === $rfs && preg_match('{^https?://}i', $path)) {
-throw new \InvalidArgumentException('http urls require a RemoteFilesystem instance to be passed');
-}
-$this->rfs = $rfs;
-$this->io = $io;
-}
-
-
-
-
-public function getPath()
-{
-return $this->path;
-}
-
-
-
-
-
-
-public function exists()
-{
-return is_file($this->path);
-}
-
-
-
-
-
-
-
-public function read()
-{
-try {
-if ($this->rfs) {
-$json = $this->rfs->getContents($this->path, $this->path, false);
-} else {
-if ($this->io && $this->io->isDebug()) {
-$this->io->writeError('Reading ' . $this->path);
-}
-$json = file_get_contents($this->path);
-}
-} catch (TransportException $e) {
-throw new \RuntimeException($e->getMessage(), 0, $e);
-} catch (\Exception $e) {
-throw new \RuntimeException('Could not read '.$this->path."\n\n".$e->getMessage());
-}
-
-return static::parseJson($json, $this->path);
-}
-
-
-
-
-
-
-
-
-public function write(array $hash, $options = 448)
-{
-$dir = dirname($this->path);
-if (!is_dir($dir)) {
-if (file_exists($dir)) {
-throw new \UnexpectedValueException(
-$dir.' exists and is not a directory.'
-);
-}
-if (!@mkdir($dir, 0777, true)) {
-throw new \UnexpectedValueException(
-$dir.' does not exist and could not be created.'
-);
-}
-}
-
-$retries = 3;
-while ($retries--) {
-try {
-file_put_contents($this->path, static::encode($hash, $options). ($options & self::JSON_PRETTY_PRINT ? "\n" : ''));
-break;
-} catch (\Exception $e) {
-if ($retries) {
-usleep(500000);
-continue;
-}
-
-throw $e;
-}
-}
-}
-
-
-
-
-
-
-
-
-public function validateSchema($schema = self::STRICT_SCHEMA)
-{
-$content = file_get_contents($this->path);
-$data = json_decode($content);
-
-if (null === $data && 'null' !== $content) {
-self::validateSyntax($content, $this->path);
-}
-
-$schemaFile = __DIR__ . '/../../../res/composer-schema.json';
-
-
- if (false === strpos($schemaFile, '://')) {
-$schemaFile = 'file://' . $schemaFile;
-}
-
-$schemaData = (object) array('$ref' => $schemaFile);
-
-if ($schema === self::LAX_SCHEMA) {
-$schemaData->additionalProperties = true;
-$schemaData->required = array();
-}
-
-$validator = new Validator();
-$validator->check($data, $schemaData);
-
-
-
-if (!$validator->isValid()) {
-$errors = array();
-foreach ((array) $validator->getErrors() as $error) {
-$errors[] = ($error['property'] ? $error['property'].' : ' : '').$error['message'];
-}
-throw new JsonValidationException('"'.$this->path.'" does not match the expected JSON schema', $errors);
-}
-
-return true;
-}
-
-
-
-
-
-
-
-
-public static function encode($data, $options = 448)
-{
-if (PHP_VERSION_ID >= 50400) {
-$json = json_encode($data, $options);
-if (false === $json) {
-self::throwEncodeError(json_last_error());
-}
-
-
- if (PHP_VERSION_ID < 50428 || (PHP_VERSION_ID >= 50500 && PHP_VERSION_ID < 50512) || (defined('JSON_C_VERSION') && version_compare(phpversion('json'), '1.3.6', '<'))) {
-$json = preg_replace('/\[\s+\]/', '[]', $json);
-$json = preg_replace('/\{\s+\}/', '{}', $json);
-}
-
-return $json;
-}
-
-$json = json_encode($data);
-if (false === $json) {
-self::throwEncodeError(json_last_error());
-}
-
-$prettyPrint = (bool) ($options & self::JSON_PRETTY_PRINT);
-$unescapeUnicode = (bool) ($options & self::JSON_UNESCAPED_UNICODE);
-$unescapeSlashes = (bool) ($options & self::JSON_UNESCAPED_SLASHES);
-
-if (!$prettyPrint && !$unescapeUnicode && !$unescapeSlashes) {
-return $json;
-}
-
-return JsonFormatter::format($json, $unescapeUnicode, $unescapeSlashes);
-}
-
-
-
-
-
-
-
-private static function throwEncodeError($code)
-{
-switch ($code) {
-case JSON_ERROR_DEPTH:
-$msg = 'Maximum stack depth exceeded';
-break;
-case JSON_ERROR_STATE_MISMATCH:
-$msg = 'Underflow or the modes mismatch';
-break;
-case JSON_ERROR_CTRL_CHAR:
-$msg = 'Unexpected control character found';
-break;
-case JSON_ERROR_UTF8:
-$msg = 'Malformed UTF-8 characters, possibly incorrectly encoded';
-break;
-default:
-$msg = 'Unknown error';
-}
-
-throw new \RuntimeException('JSON encoding failed: '.$msg);
-}
-
-
-
-
-
-
-
-
-
-public static function parseJson($json, $file = null)
-{
-if (null === $json) {
-return;
-}
-$data = json_decode($json, true);
-if (null === $data && JSON_ERROR_NONE !== json_last_error()) {
-self::validateSyntax($json, $file);
-}
-
-return $data;
-}
-
-
-
-
-
-
-
-
-
-
-protected static function validateSyntax($json, $file = null)
-{
-$parser = new JsonParser();
-$result = $parser->lint($json);
-if (null === $result) {
-if (defined('JSON_ERROR_UTF8') && JSON_ERROR_UTF8 === json_last_error()) {
-throw new \UnexpectedValueException('"'.$file.'" is not UTF-8, could not parse as JSON');
-}
-
-return true;
-}
-
-throw new ParsingException('"'.$file.'" does not contain valid JSON'."\n".$result->getMessage(), $result->getDetails());
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Json;
-
-
-
-
-
-
-
-
-
-class JsonFormatter
-{
-
-
-
-
-
-
-
-
-
-
-
-
-public static function format($json, $unescapeUnicode, $unescapeSlashes)
-{
-$result = '';
-$pos = 0;
-$strLen = strlen($json);
-$indentStr = '    ';
-$newLine = "\n";
-$outOfQuotes = true;
-$buffer = '';
-$noescape = true;
-
-for ($i = 0; $i < $strLen; $i++) {
-
- $char = substr($json, $i, 1);
-
-
- if ('"' === $char && $noescape) {
-$outOfQuotes = !$outOfQuotes;
-}
-
-if (!$outOfQuotes) {
-$buffer .= $char;
-$noescape = '\\' === $char ? !$noescape : true;
-continue;
-} elseif ('' !== $buffer) {
-if ($unescapeSlashes) {
-$buffer = str_replace('\\/', '/', $buffer);
-}
-
-if ($unescapeUnicode && function_exists('mb_convert_encoding')) {
-
- $buffer = preg_replace_callback('/(\\\\+)u([0-9a-f]{4})/i', function ($match) {
-$l = strlen($match[1]);
-
-if ($l % 2) {
-$code = hexdec($match[2]);
-
- 
- if (0xD800 <= $code && 0xDFFF >= $code) {
-return $match[0];
-}
-
-return str_repeat('\\', $l - 1) . mb_convert_encoding(
-pack('H*', $match[2]),
-'UTF-8',
-'UCS-2BE'
-);
-}
-
-return $match[0];
-}, $buffer);
-}
-
-$result .= $buffer.$char;
-$buffer = '';
-continue;
-}
-
-if (':' === $char) {
-
- $char .= ' ';
-} elseif ('}' === $char || ']' === $char) {
-$pos--;
-$prevChar = substr($json, $i - 1, 1);
-
-if ('{' !== $prevChar && '[' !== $prevChar) {
-
- 
- $result .= $newLine;
-for ($j = 0; $j < $pos; $j++) {
-$result .= $indentStr;
-}
-} else {
-
- $result = rtrim($result);
-}
-}
-
-$result .= $char;
-
-
- 
- if (',' === $char || '{' === $char || '[' === $char) {
-$result .= $newLine;
-
-if ('{' === $char || '[' === $char) {
-$pos++;
-}
-
-for ($j = 0; $j < $pos; $j++) {
-$result .= $indentStr;
-}
-}
-}
-
-return $result;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Json;
-
-use Composer\Repository\PlatformRepository;
-
-
-
-
-class JsonManipulator
-{
-private static $DEFINES = '(?(DEFINE)
-       (?<number>   -? (?= [1-9]|0(?!\d) ) \d+ (\.\d+)? ([eE] [+-]? \d+)? )
-       (?<boolean>   true | false | null )
-       (?<string>    " ([^"\\\\]* | \\\\ ["\\\\bfnrt\/] | \\\\ u [0-9a-f]{4} )* " )
-       (?<array>     \[  (?:  (?&json) \s* (?: , (?&json) \s* )*  )?  \s* \] )
-       (?<pair>      \s* (?&string) \s* : (?&json) \s* )
-       (?<object>    \{  (?:  (?&pair)  (?: , (?&pair)  )*  )?  \s* \} )
-       (?<json>   \s* (?: (?&number) | (?&boolean) | (?&string) | (?&array) | (?&object) ) )
-    )';
-
-private $contents;
-private $newline;
-private $indent;
-
-public function __construct($contents)
-{
-$contents = trim($contents);
-if ($contents === '') {
-$contents = '{}';
-}
-if (!$this->pregMatch('#^\{(.*)\}$#s', $contents)) {
-throw new \InvalidArgumentException('The json file must be an object ({})');
-}
-$this->newline = false !== strpos($contents, "\r\n") ? "\r\n" : "\n";
-$this->contents = $contents === '{}' ? '{' . $this->newline . '}' : $contents;
-$this->detectIndenting();
-}
-
-public function getContents()
-{
-return $this->contents . $this->newline;
-}
-
-public function addLink($type, $package, $constraint, $sortPackages = false)
-{
-$decoded = JsonFile::parseJson($this->contents);
-
-
- if (!isset($decoded[$type])) {
-return $this->addMainKey($type, array($package => $constraint));
-}
-
-$regex = '{'.self::$DEFINES.'^(?P<start>\s*\{\s*(?:(?&string)\s*:\s*(?&json)\s*,\s*)*?)'.
-'(?P<property>'.preg_quote(JsonFile::encode($type)).'\s*:\s*)(?P<value>(?&json))(?P<end>.*)}sx';
-if (!$this->pregMatch($regex, $this->contents, $matches)) {
-return false;
-}
-
-$links = $matches['value'];
-
-
- $packageRegex = str_replace('/', '\\\\?/', preg_quote($package));
-$regex = '{'.self::$DEFINES.'"(?P<package>'.$packageRegex.')"(\s*:\s*)(?&string)}ix';
-if ($this->pregMatch($regex, $links, $packageMatches)) {
-
- $existingPackage = $packageMatches['package'];
-$packageRegex = str_replace('/', '\\\\?/', preg_quote($existingPackage));
-$links = preg_replace_callback('{'.self::$DEFINES.'"'.$packageRegex.'"(?P<separator>\s*:\s*)(?&string)}ix', function ($m) use ($existingPackage, $constraint) {
-return JsonFile::encode(str_replace('\\/', '/', $existingPackage)) . $m['separator'] . '"' . $constraint . '"';
-}, $links);
-} else {
-if ($this->pregMatch('#^\s*\{\s*\S+.*?(\s*\}\s*)$#s', $links, $match)) {
-
- $links = preg_replace(
-'{'.preg_quote($match[1]).'$}',
-
- addcslashes(',' . $this->newline . $this->indent . $this->indent . JsonFile::encode($package).': '.JsonFile::encode($constraint) . $match[1], '\\$'),
-$links
-);
-} else {
-
- $links = '{' . $this->newline .
-$this->indent . $this->indent . JsonFile::encode($package).': '.JsonFile::encode($constraint) . $this->newline .
-$this->indent . '}';
-}
-}
-
-if (true === $sortPackages) {
-$requirements = json_decode($links, true);
-$this->sortPackages($requirements);
-$links = $this->format($requirements);
-}
-
-$this->contents = $matches['start'] . $matches['property'] . $links . $matches['end'];
-
-return true;
-}
-
-
-
-
-
-
-
-
-private function sortPackages(array &$packages = array())
-{
-$prefix = function ($requirement) {
-if (preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $requirement)) {
-return preg_replace(
-array(
-'/^php/',
-'/^hhvm/',
-'/^ext/',
-'/^lib/',
-'/^\D/',
-),
-array(
-'0-$0',
-'1-$0',
-'2-$0',
-'3-$0',
-'4-$0',
-),
-$requirement
-);
-}
-
-return '5-'.$requirement;
-};
-
-uksort($packages, function ($a, $b) use ($prefix) {
-return strnatcmp($prefix($a), $prefix($b));
-});
-}
-
-public function addRepository($name, $config)
-{
-return $this->addSubNode('repositories', $name, $config);
-}
-
-public function removeRepository($name)
-{
-return $this->removeSubNode('repositories', $name);
-}
-
-public function addConfigSetting($name, $value)
-{
-return $this->addSubNode('config', $name, $value);
-}
-
-public function removeConfigSetting($name)
-{
-return $this->removeSubNode('config', $name);
-}
-
-public function addProperty($name, $value)
-{
-if (substr($name, 0, 6) === 'extra.') {
-return $this->addSubNode('extra', substr($name, 6), $value);
-}
-
-if (substr($name, 0, 8) === 'scripts.') {
-return $this->addSubNode('scripts', substr($name, 8), $value);
-}
-
-return $this->addMainKey($name, $value);
-}
-
-public function removeProperty($name)
-{
-if (substr($name, 0, 6) === 'extra.') {
-return $this->removeSubNode('extra', substr($name, 6));
-}
-
-if (substr($name, 0, 8) === 'scripts.') {
-return $this->removeSubNode('scripts', substr($name, 8));
-}
-
-return $this->removeMainKey($name);
-}
-
-public function addSubNode($mainNode, $name, $value)
-{
-$decoded = JsonFile::parseJson($this->contents);
-
-$subName = null;
-if (in_array($mainNode, array('config', 'extra', 'scripts')) && false !== strpos($name, '.')) {
-list($name, $subName) = explode('.', $name, 2);
-}
-
-
- if (!isset($decoded[$mainNode])) {
-if ($subName !== null) {
-$this->addMainKey($mainNode, array($name => array($subName => $value)));
-} else {
-$this->addMainKey($mainNode, array($name => $value));
-}
-
-return true;
-}
-
-
- $nodeRegex = '{'.self::$DEFINES.'^(?P<start> \s* \{ \s* (?: (?&string) \s* : (?&json) \s* , \s* )*?'.
-preg_quote(JsonFile::encode($mainNode)).'\s*:\s*)(?P<content>(?&object))(?P<end>.*)}sx';
-
-try {
-if (!$this->pregMatch($nodeRegex, $this->contents, $match)) {
-return false;
-}
-} catch (\RuntimeException $e) {
-if ($e->getCode() === PREG_BACKTRACK_LIMIT_ERROR) {
-return false;
-}
-throw $e;
-}
-
-$children = $match['content'];
-
- if (!@json_decode($children)) {
-return false;
-}
-
-$that = $this;
-
-
- $childRegex = '{'.self::$DEFINES.'(?P<start>"'.preg_quote($name).'"\s*:\s*)(?P<content>(?&json))(?P<end>,?)}x';
-if ($this->pregMatch($childRegex, $children, $matches)) {
-$children = preg_replace_callback($childRegex, function ($matches) use ($subName, $value, $that) {
-if ($subName !== null) {
-$curVal = json_decode($matches['content'], true);
-if (!is_array($curVal)) {
-$curVal = array();
-}
-$curVal[$subName] = $value;
-$value = $curVal;
-}
-
-return $matches['start'] . $that->format($value, 1) . $matches['end'];
-}, $children);
-} else {
-$this->pregMatch('#^{ \s*? (?P<content>\S+.*?)? (?P<trailingspace>\s*) }$#sx', $children, $match);
-
-$whitespace = '';
-if (!empty($match['trailingspace'])) {
-$whitespace = $match['trailingspace'];
-}
-
-if (!empty($match['content'])) {
-if ($subName !== null) {
-$value = array($subName => $value);
-}
-
-
- $children = preg_replace(
-'#'.$whitespace.'}$#',
-addcslashes(',' . $this->newline . $this->indent . $this->indent . JsonFile::encode($name).': '.$this->format($value, 1) . $whitespace . '}', '\\$'),
-$children
-);
-} else {
-if ($subName !== null) {
-$value = array($subName => $value);
-}
-
-
- $children = '{' . $this->newline . $this->indent . $this->indent . JsonFile::encode($name).': '.$this->format($value, 1) . $whitespace . '}';
-}
-}
-
-$this->contents = preg_replace_callback($nodeRegex, function ($m) use ($children) {
-return $m['start'] . $children . $m['end'];
-}, $this->contents);
-
-return true;
-}
-
-public function removeSubNode($mainNode, $name)
-{
-$decoded = JsonFile::parseJson($this->contents);
-
-
- if (empty($decoded[$mainNode])) {
-return true;
-}
-
-
- $nodeRegex = '{'.self::$DEFINES.'^(?P<start> \s* \{ \s* (?: (?&string) \s* : (?&json) \s* , \s* )*?'.
-preg_quote(JsonFile::encode($mainNode)).'\s*:\s*)(?P<content>(?&object))(?P<end>.*)}sx';
-try {
-if (!$this->pregMatch($nodeRegex, $this->contents, $match)) {
-return false;
-}
-} catch (\RuntimeException $e) {
-if ($e->getCode() === PREG_BACKTRACK_LIMIT_ERROR) {
-return false;
-}
-throw $e;
-}
-
-$children = $match['content'];
-
-
- if (!@json_decode($children, true)) {
-return false;
-}
-
-$subName = null;
-if (in_array($mainNode, array('config', 'extra', 'scripts')) && false !== strpos($name, '.')) {
-list($name, $subName) = explode('.', $name, 2);
-}
-
-
- if (!isset($decoded[$mainNode][$name]) || ($subName && !isset($decoded[$mainNode][$name][$subName]))) {
-return true;
-}
-
-
- if ($this->pregMatch('{"'.preg_quote($name).'"\s*:}i', $children)) {
-
- if (preg_match_all('{'.self::$DEFINES.'"'.preg_quote($name).'"\s*:\s*(?:(?&json))}x', $children, $matches)) {
-$bestMatch = '';
-foreach ($matches[0] as $match) {
-if (strlen($bestMatch) < strlen($match)) {
-$bestMatch = $match;
-}
-}
-$childrenClean = preg_replace('{,\s*'.preg_quote($bestMatch).'}i', '', $children, -1, $count);
-if (1 !== $count) {
-$childrenClean = preg_replace('{'.preg_quote($bestMatch).'\s*,?\s*}i', '', $childrenClean, -1, $count);
-if (1 !== $count) {
-return false;
-}
-}
-}
-} else {
-$childrenClean = $children;
-}
-
-
- $this->pregMatch('#^{ \s*? (?P<content>\S+.*?)? (?P<trailingspace>\s*) }$#sx', $childrenClean, $match);
-if (empty($match['content'])) {
-$newline = $this->newline;
-$indent = $this->indent;
-
-$this->contents = preg_replace_callback($nodeRegex, function ($matches) use ($indent, $newline) {
-return $matches['start'] . '{' . $newline . $indent . '}' . $matches['end'];
-}, $this->contents);
-
-
- if ($subName !== null) {
-$curVal = json_decode($children, true);
-unset($curVal[$name][$subName]);
-$this->addSubNode($mainNode, $name, $curVal[$name]);
-}
-
-return true;
-}
-
-$that = $this;
-$this->contents = preg_replace_callback($nodeRegex, function ($matches) use ($that, $name, $subName, $childrenClean) {
-if ($subName !== null) {
-$curVal = json_decode($matches['content'], true);
-unset($curVal[$name][$subName]);
-$childrenClean = $that->format($curVal, 0);
-}
-
-return $matches['start'] . $childrenClean . $matches['end'];
-}, $this->contents);
-
-return true;
-}
-
-public function addMainKey($key, $content)
-{
-$decoded = JsonFile::parseJson($this->contents);
-$content = $this->format($content);
-
-
- $regex = '{'.self::$DEFINES.'^(?P<start>\s*\{\s*(?:(?&string)\s*:\s*(?&json)\s*,\s*)*?)'.
-'(?P<key>'.preg_quote(JsonFile::encode($key)).'\s*:\s*(?&json))(?P<end>.*)}sx';
-if (isset($decoded[$key]) && $this->pregMatch($regex, $this->contents, $matches)) {
-
- if (!@json_decode('{'.$matches['key'].'}')) {
-return false;
-}
-
-$this->contents = $matches['start'] . JsonFile::encode($key).': '.$content . $matches['end'];
-
-return true;
-}
-
-
- if ($this->pregMatch('#[^{\s](\s*)\}$#', $this->contents, $match)) {
-$this->contents = preg_replace(
-'#'.$match[1].'\}$#',
-addcslashes(',' . $this->newline . $this->indent . JsonFile::encode($key). ': '. $content . $this->newline . '}', '\\$'),
-$this->contents
-);
-
-return true;
-}
-
-
- $this->contents = preg_replace(
-'#\}$#',
-addcslashes($this->indent . JsonFile::encode($key). ': '.$content . $this->newline . '}', '\\$'),
-$this->contents
-);
-
-return true;
-}
-
-public function removeMainKey($key)
-{
-$decoded = JsonFile::parseJson($this->contents);
-
-if (!array_key_exists($key, $decoded)) {
-return true;
-}
-
-
- $regex = '{'.self::$DEFINES.'^(?P<start>\s*\{\s*(?:(?&string)\s*:\s*(?&json)\s*,\s*)*?)'.
-'(?P<removal>'.preg_quote(JsonFile::encode($key)).'\s*:\s*(?&json))\s*,?\s*(?P<end>.*)}sx';
-if ($this->pregMatch($regex, $this->contents, $matches)) {
-
- if (!@json_decode('{'.$matches['removal'].'}')) {
-return false;
-}
-
-
- if (preg_match('#,\s*$#', $matches['start']) && preg_match('#^\}$#', $matches['end'])) {
-$matches['start'] = rtrim(preg_replace('#,(\s*)$#', '$1', $matches['start']), $this->indent);
-}
-
-$this->contents = $matches['start'] . $matches['end'];
-if (preg_match('#^\{\s*\}\s*$#', $this->contents)) {
-$this->contents = "{\n}";
-}
-
-return true;
-}
-
-return false;
-}
-
-public function format($data, $depth = 0)
-{
-if (is_array($data)) {
-reset($data);
-
-if (is_numeric(key($data))) {
-foreach ($data as $key => $val) {
-$data[$key] = $this->format($val, $depth + 1);
-}
-
-return '['.implode(', ', $data).']';
-}
-
-$out = '{' . $this->newline;
-$elems = array();
-foreach ($data as $key => $val) {
-$elems[] = str_repeat($this->indent, $depth + 2) . JsonFile::encode($key). ': '.$this->format($val, $depth + 1);
-}
-
-return $out . implode(','.$this->newline, $elems) . $this->newline . str_repeat($this->indent, $depth + 1) . '}';
-}
-
-return JsonFile::encode($data);
-}
-
-protected function detectIndenting()
-{
-if ($this->pregMatch('{^([ \t]+)"}m', $this->contents, $match)) {
-$this->indent = $match[1];
-} else {
-$this->indent = '    ';
-}
-}
-
-protected function pregMatch($re, $str, &$matches = array())
-{
-$count = preg_match($re, $str, $matches);
-
-if ($count === false) {
-switch (preg_last_error()) {
-case PREG_NO_ERROR:
-throw new \RuntimeException('Failed to execute regex: PREG_NO_ERROR', PREG_NO_ERROR);
-case PREG_INTERNAL_ERROR:
-throw new \RuntimeException('Failed to execute regex: PREG_INTERNAL_ERROR', PREG_INTERNAL_ERROR);
-case PREG_BACKTRACK_LIMIT_ERROR:
-throw new \RuntimeException('Failed to execute regex: PREG_BACKTRACK_LIMIT_ERROR', PREG_BACKTRACK_LIMIT_ERROR);
-case PREG_RECURSION_LIMIT_ERROR:
-throw new \RuntimeException('Failed to execute regex: PREG_RECURSION_LIMIT_ERROR', PREG_RECURSION_LIMIT_ERROR);
-case PREG_BAD_UTF8_ERROR:
-throw new \RuntimeException('Failed to execute regex: PREG_BAD_UTF8_ERROR', PREG_BAD_UTF8_ERROR);
-case PREG_BAD_UTF8_OFFSET_ERROR:
-throw new \RuntimeException('Failed to execute regex: PREG_BAD_UTF8_OFFSET_ERROR', PREG_BAD_UTF8_OFFSET_ERROR);
-case 6: 
- if (PHP_VERSION_ID > 70000) {
-throw new \RuntimeException('Failed to execute regex: PREG_JIT_STACKLIMIT_ERROR', 6);
-}
-
- default:
-throw new \RuntimeException('Failed to execute regex: Unknown error');
-}
-}
-
-return $count;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Json;
-
-use Exception;
-
-
-
-
-class JsonValidationException extends Exception
-{
-protected $errors;
-
-public function __construct($message, $errors = array(), Exception $previous = null)
-{
-$this->errors = $errors;
-parent::__construct($message, 0, $previous);
-}
-
-public function getErrors()
-{
-return $this->errors;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package;
-
-use Composer\Semver\Constraint\Constraint;
-use Composer\Package\Version\VersionParser;
-
-
-
-
-class AliasPackage extends BasePackage implements CompletePackageInterface
-{
-protected $version;
-protected $prettyVersion;
-protected $dev;
-protected $rootPackageAlias = false;
-protected $stability;
-
-
-protected $aliasOf;
-
-protected $requires;
-
-protected $devRequires;
-
-protected $conflicts;
-
-protected $provides;
-
-protected $replaces;
-
-
-
-
-
-
-
-
-public function __construct(PackageInterface $aliasOf, $version, $prettyVersion)
-{
-parent::__construct($aliasOf->getName());
-
-$this->version = $version;
-$this->prettyVersion = $prettyVersion;
-$this->aliasOf = $aliasOf;
-$this->stability = VersionParser::parseStability($version);
-$this->dev = $this->stability === 'dev';
-
-foreach (array('requires', 'devRequires', 'conflicts', 'provides', 'replaces') as $type) {
-$links = $aliasOf->{'get' . ucfirst($type)}();
-$this->$type = $this->replaceSelfVersionDependencies($links, $type);
-}
-}
-
-
-
-
-public function getAliasOf()
-{
-return $this->aliasOf;
-}
-
-
-
-
-public function getVersion()
-{
-return $this->version;
-}
-
-
-
-
-public function getStability()
-{
-return $this->stability;
-}
-
-
-
-
-public function getPrettyVersion()
-{
-return $this->prettyVersion;
-}
-
-
-
-
-public function isDev()
-{
-return $this->dev;
-}
-
-
-
-
-public function getRequires()
-{
-return $this->requires;
-}
-
-
-
-
-public function getConflicts()
-{
-return $this->conflicts;
-}
-
-
-
-
-public function getProvides()
-{
-return $this->provides;
-}
-
-
-
-
-public function getReplaces()
-{
-return $this->replaces;
-}
-
-
-
-
-public function getDevRequires()
-{
-return $this->devRequires;
-}
-
-
-
-
-
-
-
-
-
-
-public function setRootPackageAlias($value)
-{
-return $this->rootPackageAlias = $value;
-}
-
-
-
-
-
-public function isRootPackageAlias()
-{
-return $this->rootPackageAlias;
-}
-
-
-
-
-
-
-
-protected function replaceSelfVersionDependencies(array $links, $linkType)
-{
-if (in_array($linkType, array('conflicts', 'provides', 'replaces'), true)) {
-$newLinks = array();
-foreach ($links as $link) {
-
- if ('self.version' === $link->getPrettyConstraint()) {
-$newLinks[] = new Link($link->getSource(), $link->getTarget(), new Constraint('=', $this->version), $linkType, $this->prettyVersion);
-}
-}
-$links = array_merge($links, $newLinks);
-} else {
-foreach ($links as $index => $link) {
-if ('self.version' === $link->getPrettyConstraint()) {
-$links[$index] = new Link($link->getSource(), $link->getTarget(), new Constraint('=', $this->version), $linkType, $this->prettyVersion);
-}
-}
-}
-
-return $links;
-}
-
-
-
-
-
-public function getType()
-{
-return $this->aliasOf->getType();
-}
-
-public function getTargetDir()
-{
-return $this->aliasOf->getTargetDir();
-}
-
-public function getExtra()
-{
-return $this->aliasOf->getExtra();
-}
-
-public function setInstallationSource($type)
-{
-$this->aliasOf->setInstallationSource($type);
-}
-
-public function getInstallationSource()
-{
-return $this->aliasOf->getInstallationSource();
-}
-
-public function getSourceType()
-{
-return $this->aliasOf->getSourceType();
-}
-
-public function getSourceUrl()
-{
-return $this->aliasOf->getSourceUrl();
-}
-
-public function getSourceUrls()
-{
-return $this->aliasOf->getSourceUrls();
-}
-
-public function getSourceReference()
-{
-return $this->aliasOf->getSourceReference();
-}
-
-public function setSourceReference($reference)
-{
-return $this->aliasOf->setSourceReference($reference);
-}
-
-public function setSourceMirrors($mirrors)
-{
-return $this->aliasOf->setSourceMirrors($mirrors);
-}
-
-public function getSourceMirrors()
-{
-return $this->aliasOf->getSourceMirrors();
-}
-
-public function getDistType()
-{
-return $this->aliasOf->getDistType();
-}
-
-public function getDistUrl()
-{
-return $this->aliasOf->getDistUrl();
-}
-
-public function getDistUrls()
-{
-return $this->aliasOf->getDistUrls();
-}
-
-public function getDistReference()
-{
-return $this->aliasOf->getDistReference();
-}
-
-public function setDistReference($reference)
-{
-return $this->aliasOf->setDistReference($reference);
-}
-
-public function getDistSha1Checksum()
-{
-return $this->aliasOf->getDistSha1Checksum();
-}
-
-public function setTransportOptions(array $options)
-{
-return $this->aliasOf->setTransportOptions($options);
-}
-
-public function getTransportOptions()
-{
-return $this->aliasOf->getTransportOptions();
-}
-
-public function setDistMirrors($mirrors)
-{
-return $this->aliasOf->setDistMirrors($mirrors);
-}
-
-public function getDistMirrors()
-{
-return $this->aliasOf->getDistMirrors();
-}
-
-public function getScripts()
-{
-return $this->aliasOf->getScripts();
-}
-
-public function getLicense()
-{
-return $this->aliasOf->getLicense();
-}
-
-public function getAutoload()
-{
-return $this->aliasOf->getAutoload();
-}
-
-public function getDevAutoload()
-{
-return $this->aliasOf->getDevAutoload();
-}
-
-public function getIncludePaths()
-{
-return $this->aliasOf->getIncludePaths();
-}
-
-public function getRepositories()
-{
-return $this->aliasOf->getRepositories();
-}
-
-public function getReleaseDate()
-{
-return $this->aliasOf->getReleaseDate();
-}
-
-public function getBinaries()
-{
-return $this->aliasOf->getBinaries();
-}
-
-public function getKeywords()
-{
-return $this->aliasOf->getKeywords();
-}
-
-public function getDescription()
-{
-return $this->aliasOf->getDescription();
-}
-
-public function getHomepage()
-{
-return $this->aliasOf->getHomepage();
-}
-
-public function getSuggests()
-{
-return $this->aliasOf->getSuggests();
-}
-
-public function getAuthors()
-{
-return $this->aliasOf->getAuthors();
-}
-
-public function getSupport()
-{
-return $this->aliasOf->getSupport();
-}
-
-public function getNotificationUrl()
-{
-return $this->aliasOf->getNotificationUrl();
-}
-
-public function getArchiveExcludes()
-{
-return $this->aliasOf->getArchiveExcludes();
-}
-
-public function isAbandoned()
-{
-return $this->aliasOf->isAbandoned();
-}
-
-public function getReplacementPackage()
-{
-return $this->aliasOf->getReplacementPackage();
-}
-
-public function __toString()
-{
-return parent::__toString().' (alias of '.$this->aliasOf->getVersion().')';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\Archiver;
-
-use FilterIterator;
-use PharData;
-
-class ArchivableFilesFilter extends FilterIterator
-{
-private $dirs = array();
-
-
-
-
-public function accept()
-{
-$file = $this->getInnerIterator()->current();
-if ($file->isDir()) {
-$this->dirs[] = (string) $file;
-
-return false;
-}
-
-return true;
-}
-
-public function addEmptyDir(PharData $phar, $sources)
-{
-foreach ($this->dirs as $filepath) {
-$localname = str_replace($sources . "/", '', $filepath);
-$phar->addEmptyDir($localname);
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\Archiver;
-
-use Composer\Util\Filesystem;
-use FilesystemIterator;
-use Symfony\Component\Finder\Finder;
-use Symfony\Component\Finder\SplFileInfo;
-
-
-
-
-
-
-
-
-
-class ArchivableFilesFinder extends \FilterIterator
-{
-
-
-
-protected $finder;
-
-
-
-
-
-
-
-
-public function __construct($sources, array $excludes, $ignoreFilters = false)
-{
-$fs = new Filesystem();
-
-$sources = $fs->normalizePath($sources);
-
-if ($ignoreFilters) {
-$filters = array();
-} else {
-$filters = array(
-new HgExcludeFilter($sources),
-new GitExcludeFilter($sources),
-new ComposerExcludeFilter($sources, $excludes),
-);
-}
-
-$this->finder = new Finder();
-
-$filter = function (\SplFileInfo $file) use ($sources, $filters, $fs) {
-if ($file->isLink() && strpos($file->getLinkTarget(), $sources) !== 0) {
-return false;
-}
-
-$relativePath = preg_replace(
-'#^'.preg_quote($sources, '#').'#',
-'',
-$fs->normalizePath($file->getRealPath())
-);
-
-$exclude = false;
-foreach ($filters as $filter) {
-$exclude = $filter->filter($relativePath, $exclude);
-}
-
-return !$exclude;
-};
-
-if (method_exists($filter, 'bindTo')) {
-$filter = $filter->bindTo(null);
-}
-
-$this->finder
-->in($sources)
-->filter($filter)
-->ignoreVCS(true)
-->ignoreDotFiles(false);
-
-parent::__construct($this->finder->getIterator());
-}
-
-public function accept()
-{
-
-$current = $this->getInnerIterator()->current();
-
-if (!$current->isDir()) {
-return true;
-}
-
-$iterator = new FilesystemIterator($current, FilesystemIterator::SKIP_DOTS);
-
-return !$iterator->valid();
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\Archiver;
-
-use Composer\Downloader\DownloadManager;
-use Composer\Package\PackageInterface;
-use Composer\Package\RootPackageInterface;
-use Composer\Util\Filesystem;
-use Composer\Json\JsonFile;
-
-
-
-
-
-class ArchiveManager
-{
-protected $downloadManager;
-
-protected $archivers = array();
-
-
-
-
-protected $overwriteFiles = true;
-
-
-
-
-public function __construct(DownloadManager $downloadManager)
-{
-$this->downloadManager = $downloadManager;
-}
-
-
-
-
-public function addArchiver(ArchiverInterface $archiver)
-{
-$this->archivers[] = $archiver;
-}
-
-
-
-
-
-
-
-
-public function setOverwriteFiles($overwriteFiles)
-{
-$this->overwriteFiles = $overwriteFiles;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function getPackageFilename(PackageInterface $package)
-{
-$nameParts = array(preg_replace('#[^a-z0-9-_]#i', '-', $package->getName()));
-
-if (preg_match('{^[a-f0-9]{40}$}', $package->getDistReference())) {
-array_push($nameParts, $package->getDistReference(), $package->getDistType());
-} else {
-array_push($nameParts, $package->getPrettyVersion(), $package->getDistReference());
-}
-
-if ($package->getSourceReference()) {
-$nameParts[] = substr(sha1($package->getSourceReference()), 0, 6);
-}
-
-$name = implode('-', array_filter($nameParts, function ($p) {
-return !empty($p);
-}));
-
-return str_replace('/', '-', $name);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function archive(PackageInterface $package, $format, $targetDir, $fileName = null, $ignoreFilters = false)
-{
-if (empty($format)) {
-throw new \InvalidArgumentException('Format must be specified');
-}
-
-
- $usableArchiver = null;
-foreach ($this->archivers as $archiver) {
-if ($archiver->supports($format, $package->getSourceType())) {
-$usableArchiver = $archiver;
-break;
-}
-}
-
-
- if (null === $usableArchiver) {
-throw new \RuntimeException(sprintf('No archiver found to support %s format', $format));
-}
-
-$filesystem = new Filesystem();
-if (null === $fileName) {
-$packageName = $this->getPackageFilename($package);
-} else {
-$packageName = $fileName;
-}
-
-
- $filesystem->ensureDirectoryExists($targetDir);
-$target = realpath($targetDir).'/'.$packageName.'.'.$format;
-$filesystem->ensureDirectoryExists(dirname($target));
-
-if (!$this->overwriteFiles && file_exists($target)) {
-return $target;
-}
-
-if ($package instanceof RootPackageInterface) {
-$sourcePath = realpath('.');
-} else {
-
- $sourcePath = sys_get_temp_dir().'/composer_archive'.uniqid();
-$filesystem->ensureDirectoryExists($sourcePath);
-
-
- $this->downloadManager->download($package, $sourcePath);
-
-
- if (file_exists($composerJsonPath = $sourcePath.'/composer.json')) {
-$jsonFile = new JsonFile($composerJsonPath);
-$jsonData = $jsonFile->read();
-if (!empty($jsonData['archive']['exclude'])) {
-$package->setArchiveExcludes($jsonData['archive']['exclude']);
-}
-}
-}
-
-
- $tempTarget = sys_get_temp_dir().'/composer_archive'.uniqid().'.'.$format;
-$filesystem->ensureDirectoryExists(dirname($tempTarget));
-
-$archivePath = $usableArchiver->archive($sourcePath, $tempTarget, $format, $package->getArchiveExcludes(), $ignoreFilters);
-$filesystem->rename($archivePath, $target);
-
-
- if (!$package instanceof RootPackageInterface) {
-$filesystem->removeDirectory($sourcePath);
-}
-$filesystem->remove($tempTarget);
-
-return $target;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\Archiver;
-
-
-
-
-
-
-interface ArchiverInterface
-{
-
-
-
-
-
-
-
-
-
-
-public function archive($sources, $target, $format, array $excludes = array(), $ignoreFilters = false);
-
-
-
-
-
-
-
-
-
-public function supports($format, $sourceType);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\Archiver;
-
-use Symfony\Component\Finder;
-
-
-
-
-abstract class BaseExcludeFilter
-{
-
-
-
-protected $sourcePath;
-
-
-
-
-protected $excludePatterns;
-
-
-
-
-public function __construct($sourcePath)
-{
-$this->sourcePath = $sourcePath;
-$this->excludePatterns = array();
-}
-
-
-
-
-
-
-
-
-
-
-
-public function filter($relativePath, $exclude)
-{
-foreach ($this->excludePatterns as $patternData) {
-list($pattern, $negate, $stripLeadingSlash) = $patternData;
-
-if ($stripLeadingSlash) {
-$path = substr($relativePath, 1);
-} else {
-$path = $relativePath;
-}
-
-if (preg_match($pattern, $path)) {
-$exclude = !$negate;
-}
-}
-
-return $exclude;
-}
-
-
-
-
-
-
-
-
-
-protected function parseLines(array $lines, $lineParser)
-{
-return array_filter(
-array_map(
-function ($line) use ($lineParser) {
-$line = trim($line);
-
-if (!$line || 0 === strpos($line, '#')) {
-return null;
-}
-
-return call_user_func($lineParser, $line);
-},
-$lines
-),
-function ($pattern) {
-return $pattern !== null;
-}
-);
-}
-
-
-
-
-
-
-
-
-protected function generatePatterns($rules)
-{
-$patterns = array();
-foreach ($rules as $rule) {
-$patterns[] = $this->generatePattern($rule);
-}
-
-return $patterns;
-}
-
-
-
-
-
-
-
-
-protected function generatePattern($rule)
-{
-$negate = false;
-$pattern = '{';
-
-if (strlen($rule) && $rule[0] === '!') {
-$negate = true;
-$rule = substr($rule, 1);
-}
-
-if (strlen($rule) && $rule[0] === '/') {
-$pattern .= '^/';
-$rule = substr($rule, 1);
-} elseif (strlen($rule) - 1 === strpos($rule, '/')) {
-$pattern .= '/';
-$rule = substr($rule, 0, -1);
-} elseif (false === strpos($rule, '/')) {
-$pattern .= '/';
-}
-
-
- $pattern .= substr(Finder\Glob::toRegex($rule), 2, -2) . '(?=$|/)';
-
-return array($pattern . '}', $negate, false);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\Archiver;
-
-
-
-
-
-
-class ComposerExcludeFilter extends BaseExcludeFilter
-{
-
-
-
-
-public function __construct($sourcePath, array $excludeRules)
-{
-parent::__construct($sourcePath);
-$this->excludePatterns = $this->generatePatterns($excludeRules);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\Archiver;
-
-
-
-
-
-
-
-
-class GitExcludeFilter extends BaseExcludeFilter
-{
-
-
-
-
-
-public function __construct($sourcePath)
-{
-parent::__construct($sourcePath);
-
-if (file_exists($sourcePath.'/.gitignore')) {
-$this->excludePatterns = $this->parseLines(
-file($sourcePath.'/.gitignore'),
-array($this, 'parseGitIgnoreLine')
-);
-}
-if (file_exists($sourcePath.'/.gitattributes')) {
-$this->excludePatterns = array_merge(
-$this->excludePatterns,
-$this->parseLines(
-file($sourcePath.'/.gitattributes'),
-array($this, 'parseGitAttributesLine')
-)
-);
-}
-}
-
-
-
-
-
-
-
-
-public function parseGitIgnoreLine($line)
-{
-return $this->generatePattern($line);
-}
-
-
-
-
-
-
-
-
-public function parseGitAttributesLine($line)
-{
-$parts = preg_split('#\s+#', $line);
-
-if (count($parts) == 2 && $parts[1] === 'export-ignore') {
-return $this->generatePattern($parts[0]);
-}
-
-return null;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\Archiver;
-
-use Symfony\Component\Finder;
-
-
-
-
-
-
-class HgExcludeFilter extends BaseExcludeFilter
-{
-const HG_IGNORE_REGEX = 1;
-const HG_IGNORE_GLOB = 2;
-
-
-
-
-
-protected $patternMode;
-
-
-
-
-
-
-public function __construct($sourcePath)
-{
-parent::__construct($sourcePath);
-
-$this->patternMode = self::HG_IGNORE_REGEX;
-
-if (file_exists($sourcePath.'/.hgignore')) {
-$this->excludePatterns = $this->parseLines(
-file($sourcePath.'/.hgignore'),
-array($this, 'parseHgIgnoreLine')
-);
-}
-}
-
-
-
-
-
-
-
-
-public function parseHgIgnoreLine($line)
-{
-if (preg_match('#^syntax\s*:\s*(glob|regexp)$#', $line, $matches)) {
-if ($matches[1] === 'glob') {
-$this->patternMode = self::HG_IGNORE_GLOB;
-} else {
-$this->patternMode = self::HG_IGNORE_REGEX;
-}
-
-return null;
-}
-
-if ($this->patternMode == self::HG_IGNORE_GLOB) {
-return $this->patternFromGlob($line);
-}
-
-return $this->patternFromRegex($line);
-}
-
-
-
-
-
-
-
-
-protected function patternFromGlob($line)
-{
-$pattern = '#'.substr(Finder\Glob::toRegex($line), 2, -1).'#';
-$pattern = str_replace('[^/]*', '.*', $pattern);
-
-return array($pattern, false, true);
-}
-
-
-
-
-
-
-
-
-public function patternFromRegex($line)
-{
-
- $pattern = '#'.preg_replace('/((?:\\\\\\\\)*)(\\\\?)#/', '\1\2\2\\#', $line).'#';
-
-return array($pattern, false, true);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\Archiver;
-
-
-
-
-
-
-class PharArchiver implements ArchiverInterface
-{
-protected static $formats = array(
-'zip' => \Phar::ZIP,
-'tar' => \Phar::TAR,
-'tar.gz' => \Phar::TAR,
-'tar.bz2' => \Phar::TAR,
-);
-
-protected static $compressFormats = array(
-'tar.gz' => \Phar::GZ,
-'tar.bz2' => \Phar::BZ2,
-);
-
-
-
-
-public function archive($sources, $target, $format, array $excludes = array(), $ignoreFilters = false)
-{
-$sources = realpath($sources);
-
-
- if (file_exists($target)) {
-unlink($target);
-}
-
-try {
-$filename = substr($target, 0, strrpos($target, $format) - 1);
-
-
- if (isset(static::$compressFormats[$format])) {
-
- $target = $filename . '.tar';
-}
-
-$phar = new \PharData($target, null, null, static::$formats[$format]);
-$files = new ArchivableFilesFinder($sources, $excludes, $ignoreFilters);
-$filesOnly = new ArchivableFilesFilter($files);
-$phar->buildFromIterator($filesOnly, $sources);
-$filesOnly->addEmptyDir($phar, $sources);
-
-if (isset(static::$compressFormats[$format])) {
-
- if (!$phar->canCompress(static::$compressFormats[$format])) {
-throw new \RuntimeException(sprintf('Can not compress to %s format', $format));
-}
-
-
- unlink($target);
-
-
- $phar->compress(static::$compressFormats[$format]);
-
-
- $target = $filename . '.' . $format;
-}
-
-return $target;
-} catch (\UnexpectedValueException $e) {
-$message = sprintf(
-"Could not create archive '%s' from '%s': %s",
-$target,
-$sources,
-$e->getMessage()
-);
-
-throw new \RuntimeException($message, $e->getCode(), $e);
-}
-}
-
-
-
-
-public function supports($format, $sourceType)
-{
-return isset(static::$formats[$format]);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\Archiver;
-
-use ZipArchive;
-use Composer\Util\Filesystem;
-
-
-
-
-class ZipArchiver implements ArchiverInterface
-{
-protected static $formats = array(
-'zip' => 1,
-);
-
-
-
-
-public function archive($sources, $target, $format, array $excludes = array(), $ignoreFilters = false)
-{
-$fs = new Filesystem();
-$sources = $fs->normalizePath($sources);
-
-$zip = new ZipArchive();
-$res = $zip->open($target, ZipArchive::CREATE);
-if ($res === true) {
-$files = new ArchivableFilesFinder($sources, $excludes, $ignoreFilters);
-foreach ($files as $file) {
-
-$filepath = strtr($file->getPath()."/".$file->getFilename(), '\\', '/');
-$localname = str_replace($sources.'/', '', $filepath);
-if ($file->isDir()) {
-$zip->addEmptyDir($localname);
-} else {
-$zip->addFile($filepath, $localname);
-}
-}
-if ($zip->close()) {
-return $target;
-}
-}
-$message = sprintf(
-"Could not create archive '%s' from '%s': %s",
-$target,
-$sources,
-$zip->getStatusString()
-);
-throw new \RuntimeException($message);
-}
-
-
-
-
-public function supports($format, $sourceType)
-{
-return isset(static::$formats[$format]) && $this->compressionAvailable();
-}
-
-private function compressionAvailable()
-{
-return class_exists('ZipArchive');
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package;
-
-use Composer\Repository\RepositoryInterface;
-use Composer\Repository\PlatformRepository;
-
-
-
-
-
-
-abstract class BasePackage implements PackageInterface
-{
-public static $supportedLinkTypes = array(
-'require' => array('description' => 'requires', 'method' => 'requires'),
-'conflict' => array('description' => 'conflicts', 'method' => 'conflicts'),
-'provide' => array('description' => 'provides', 'method' => 'provides'),
-'replace' => array('description' => 'replaces', 'method' => 'replaces'),
-'require-dev' => array('description' => 'requires (for development)', 'method' => 'devRequires'),
-);
-
-const STABILITY_STABLE = 0;
-const STABILITY_RC = 5;
-const STABILITY_BETA = 10;
-const STABILITY_ALPHA = 15;
-const STABILITY_DEV = 20;
-
-public static $stabilities = array(
-'stable' => self::STABILITY_STABLE,
-'RC' => self::STABILITY_RC,
-'beta' => self::STABILITY_BETA,
-'alpha' => self::STABILITY_ALPHA,
-'dev' => self::STABILITY_DEV,
-);
-
-
-
-
-
-public $id;
-
-protected $name;
-
-protected $prettyName;
-
-protected $repository;
-
-protected $transportOptions = array();
-
-
-
-
-
-
-public function __construct($name)
-{
-$this->prettyName = $name;
-$this->name = strtolower($name);
-$this->id = -1;
-}
-
-
-
-
-public function getName()
-{
-return $this->name;
-}
-
-
-
-
-public function getPrettyName()
-{
-return $this->prettyName;
-}
-
-
-
-
-public function getNames()
-{
-$names = array(
-$this->getName() => true,
-);
-
-foreach ($this->getProvides() as $link) {
-$names[$link->getTarget()] = true;
-}
-
-foreach ($this->getReplaces() as $link) {
-$names[$link->getTarget()] = true;
-}
-
-return array_keys($names);
-}
-
-
-
-
-public function setId($id)
-{
-$this->id = $id;
-}
-
-
-
-
-public function getId()
-{
-return $this->id;
-}
-
-
-
-
-public function setRepository(RepositoryInterface $repository)
-{
-if ($this->repository && $repository !== $this->repository) {
-throw new \LogicException('A package can only be added to one repository');
-}
-$this->repository = $repository;
-}
-
-
-
-
-public function getRepository()
-{
-return $this->repository;
-}
-
-
-
-
-public function getTransportOptions()
-{
-return $this->transportOptions;
-}
-
-
-
-
-
-
-public function setTransportOptions(array $options)
-{
-$this->transportOptions = $options;
-}
-
-
-
-
-
-
-public function isPlatform()
-{
-return $this->getRepository() instanceof PlatformRepository;
-}
-
-
-
-
-
-
-public function getUniqueName()
-{
-return $this->getName().'-'.$this->getVersion();
-}
-
-public function equals(PackageInterface $package)
-{
-$self = $this;
-if ($this instanceof AliasPackage) {
-$self = $this->getAliasOf();
-}
-if ($package instanceof AliasPackage) {
-$package = $package->getAliasOf();
-}
-
-return $package === $self;
-}
-
-
-
-
-
-
-public function __toString()
-{
-return $this->getUniqueName();
-}
-
-public function getPrettyString()
-{
-return $this->getPrettyName().' '.$this->getPrettyVersion();
-}
-
-
-
-
-public function getFullPrettyVersion($truncate = true)
-{
-if (!$this->isDev() || !in_array($this->getSourceType(), array('hg', 'git'))) {
-return $this->getPrettyVersion();
-}
-
-
- if ($truncate && strlen($this->getSourceReference()) === 40) {
-return $this->getPrettyVersion() . ' ' . substr($this->getSourceReference(), 0, 7);
-}
-
-return $this->getPrettyVersion() . ' ' . $this->getSourceReference();
-}
-
-public function getStabilityPriority()
-{
-return self::$stabilities[$this->getStability()];
-}
-
-public function __clone()
-{
-$this->repository = null;
-$this->id = -1;
-}
-
-
-
-
-
-
-
-public static function packageNameToRegexp($whiteListedPattern)
-{
-$cleanedWhiteListedPattern = str_replace('\\*', '.*', preg_quote($whiteListedPattern));
-
-return "{^" . $cleanedWhiteListedPattern . "$}i";
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\Comparer;
-
-
-
-
-
-
-class Comparer
-{
-private $source;
-private $update;
-private $changed;
-
-public function setSource($source)
-{
-$this->source = $source;
-}
-
-public function setUpdate($update)
-{
-$this->update = $update;
-}
-
-public function getChanged($toString = false, $explicated = false)
-{
-$changed = $this->changed;
-if (!count($changed)) {
-return false;
-}
-if ($explicated) {
-foreach ($changed as $sectionKey => $itemSection) {
-foreach ($itemSection as $itemKey => $item) {
-$changed[$sectionKey][$itemKey] = $item.' ('.$sectionKey.')';
-}
-}
-}
-
-if ($toString) {
-foreach ($changed as $sectionKey => $itemSection) {
-foreach ($itemSection as $itemKey => $item) {
-$changed['string'][] = $item."\r\n";
-}
-}
-$changed = implode("\r\n", $changed['string']);
-}
-
-return $changed;
-}
-
-public function doCompare()
-{
-$source = array();
-$destination = array();
-$this->changed = array();
-$currentDirectory = getcwd();
-chdir($this->source);
-$source = $this->doTree('.', $source);
-if (!is_array($source)) {
-return;
-}
-chdir($currentDirectory);
-chdir($this->update);
-$destination = $this->doTree('.', $destination);
-if (!is_array($destination)) {
-exit;
-}
-chdir($currentDirectory);
-foreach ($source as $dir => $value) {
-foreach ($value as $file => $hash) {
-if (isset($destination[$dir][$file])) {
-if ($hash !== $destination[$dir][$file]) {
-$this->changed['changed'][] = $dir.'/'.$file;
-}
-} else {
-$this->changed['removed'][] = $dir.'/'.$file;
-}
-}
-}
-foreach ($destination as $dir => $value) {
-foreach ($value as $file => $hash) {
-if (!isset($source[$dir][$file])) {
-$this->changed['added'][] = $dir.'/'.$file;
-}
-}
-}
-}
-
-private function doTree($dir, &$array)
-{
-if ($dh = opendir($dir)) {
-while ($file = readdir($dh)) {
-if ($file !== '.' && $file !== '..') {
-if (is_dir($dir.'/'.$file)) {
-if (!count($array)) {
-$array[0] = 'Temp';
-}
-if (!$this->doTree($dir.'/'.$file, $array)) {
-return false;
-}
-} else {
-if (filesize($dir.'/'.$file)) {
-set_time_limit(30);
-$array[$dir][$file] = md5_file($dir.'/'.$file);
-}
-}
-}
-}
-if (count($array) > 1 && isset($array['0'])) {
-unset($array['0']);
-}
-
-return $array;
-}
-
-return false;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package;
-
-
-
-
-
-
-class CompletePackage extends Package implements CompletePackageInterface
-{
-protected $repositories;
-protected $license = array();
-protected $keywords;
-protected $authors;
-protected $description;
-protected $homepage;
-protected $scripts = array();
-protected $support = array();
-protected $abandoned = false;
-
-
-
-
-public function setScripts(array $scripts)
-{
-$this->scripts = $scripts;
-}
-
-
-
-
-public function getScripts()
-{
-return $this->scripts;
-}
-
-
-
-
-
-
-public function setRepositories($repositories)
-{
-$this->repositories = $repositories;
-}
-
-
-
-
-public function getRepositories()
-{
-return $this->repositories;
-}
-
-
-
-
-
-
-public function setLicense(array $license)
-{
-$this->license = $license;
-}
-
-
-
-
-public function getLicense()
-{
-return $this->license;
-}
-
-
-
-
-
-
-public function setKeywords(array $keywords)
-{
-$this->keywords = $keywords;
-}
-
-
-
-
-public function getKeywords()
-{
-return $this->keywords;
-}
-
-
-
-
-
-
-public function setAuthors(array $authors)
-{
-$this->authors = $authors;
-}
-
-
-
-
-public function getAuthors()
-{
-return $this->authors;
-}
-
-
-
-
-
-
-public function setDescription($description)
-{
-$this->description = $description;
-}
-
-
-
-
-public function getDescription()
-{
-return $this->description;
-}
-
-
-
-
-
-
-public function setHomepage($homepage)
-{
-$this->homepage = $homepage;
-}
-
-
-
-
-public function getHomepage()
-{
-return $this->homepage;
-}
-
-
-
-
-
-
-public function setSupport(array $support)
-{
-$this->support = $support;
-}
-
-
-
-
-public function getSupport()
-{
-return $this->support;
-}
-
-
-
-
-public function isAbandoned()
-{
-return (bool) $this->abandoned;
-}
-
-
-
-
-public function setAbandoned($abandoned)
-{
-$this->abandoned = $abandoned;
-}
-
-
-
-
-
-
-public function getReplacementPackage()
-{
-return is_string($this->abandoned) ? $this->abandoned : null;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package;
-
-
-
-
-
-
-interface CompletePackageInterface extends PackageInterface
-{
-
-
-
-
-
-public function getScripts();
-
-
-
-
-
-
-
-
-public function getRepositories();
-
-
-
-
-
-
-public function getLicense();
-
-
-
-
-
-
-public function getKeywords();
-
-
-
-
-
-
-public function getDescription();
-
-
-
-
-
-
-public function getHomepage();
-
-
-
-
-
-
-
-
-public function getAuthors();
-
-
-
-
-
-
-public function getSupport();
-
-
-
-
-
-
-public function isAbandoned();
-
-
-
-
-
-
-public function getReplacementPackage();
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\Dumper;
-
-use Composer\Package\BasePackage;
-use Composer\Package\PackageInterface;
-use Composer\Package\CompletePackageInterface;
-use Composer\Package\RootPackageInterface;
-
-
-
-
-
-class ArrayDumper
-{
-public function dump(PackageInterface $package)
-{
-$keys = array(
-'binaries' => 'bin',
-'type',
-'extra',
-'installationSource' => 'installation-source',
-'autoload',
-'devAutoload' => 'autoload-dev',
-'notificationUrl' => 'notification-url',
-'includePaths' => 'include-path',
-);
-
-$data = array();
-$data['name'] = $package->getPrettyName();
-$data['version'] = $package->getPrettyVersion();
-$data['version_normalized'] = $package->getVersion();
-
-if ($package->getTargetDir()) {
-$data['target-dir'] = $package->getTargetDir();
-}
-
-if ($package->getSourceType()) {
-$data['source']['type'] = $package->getSourceType();
-$data['source']['url'] = $package->getSourceUrl();
-$data['source']['reference'] = $package->getSourceReference();
-if ($mirrors = $package->getSourceMirrors()) {
-$data['source']['mirrors'] = $mirrors;
-}
-}
-
-if ($package->getDistType()) {
-$data['dist']['type'] = $package->getDistType();
-$data['dist']['url'] = $package->getDistUrl();
-$data['dist']['reference'] = $package->getDistReference();
-$data['dist']['shasum'] = $package->getDistSha1Checksum();
-if ($mirrors = $package->getDistMirrors()) {
-$data['dist']['mirrors'] = $mirrors;
-}
-}
-
-if ($package->getArchiveExcludes()) {
-$data['archive']['exclude'] = $package->getArchiveExcludes();
-}
-
-foreach (BasePackage::$supportedLinkTypes as $type => $opts) {
-if ($links = $package->{'get'.ucfirst($opts['method'])}()) {
-foreach ($links as $link) {
-$data[$type][$link->getTarget()] = $link->getPrettyConstraint();
-}
-ksort($data[$type]);
-}
-}
-
-if ($packages = $package->getSuggests()) {
-ksort($packages);
-$data['suggest'] = $packages;
-}
-
-if ($package->getReleaseDate()) {
-$data['time'] = $package->getReleaseDate()->format(DATE_RFC3339);
-}
-
-$data = $this->dumpValues($package, $keys, $data);
-
-if ($package instanceof CompletePackageInterface) {
-$keys = array(
-'scripts',
-'license',
-'authors',
-'description',
-'homepage',
-'keywords',
-'repositories',
-'support',
-);
-
-$data = $this->dumpValues($package, $keys, $data);
-
-if (isset($data['keywords']) && is_array($data['keywords'])) {
-sort($data['keywords']);
-}
-
-if ($package->isAbandoned()) {
-$data['abandoned'] = $package->getReplacementPackage() ?: true;
-}
-}
-
-if ($package instanceof RootPackageInterface) {
-$minimumStability = $package->getMinimumStability();
-if ($minimumStability) {
-$data['minimum-stability'] = $minimumStability;
-}
-}
-
-if (count($package->getTransportOptions()) > 0) {
-$data['transport-options'] = $package->getTransportOptions();
-}
-
-return $data;
-}
-
-private function dumpValues(PackageInterface $package, array $keys, array $data)
-{
-foreach ($keys as $method => $key) {
-if (is_numeric($method)) {
-$method = $key;
-}
-
-$getter = 'get'.ucfirst($method);
-$value = $package->$getter();
-
-if (null !== $value && !(is_array($value) && 0 === count($value))) {
-$data[$key] = $value;
-}
-}
-
-return $data;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package;
-
-use Composer\Semver\Constraint\ConstraintInterface;
-
-
-
-
-
-
-class Link
-{
-
-
-
-protected $source;
-
-
-
-
-protected $target;
-
-
-
-
-protected $constraint;
-
-
-
-
-protected $description;
-
-
-
-
-protected $prettyConstraint;
-
-
-
-
-
-
-
-
-
-
-public function __construct($source, $target, ConstraintInterface $constraint = null, $description = 'relates to', $prettyConstraint = null)
-{
-$this->source = strtolower($source);
-$this->target = strtolower($target);
-$this->constraint = $constraint;
-$this->description = $description;
-$this->prettyConstraint = $prettyConstraint;
-}
-
-
-
-
-public function getDescription()
-{
-return $this->description;
-}
-
-
-
-
-public function getSource()
-{
-return $this->source;
-}
-
-
-
-
-public function getTarget()
-{
-return $this->target;
-}
-
-
-
-
-public function getConstraint()
-{
-return $this->constraint;
-}
-
-
-
-
-
-public function getPrettyConstraint()
-{
-if (null === $this->prettyConstraint) {
-throw new \UnexpectedValueException(sprintf('Link %s has been misconfigured and had no prettyConstraint given.', $this));
-}
-
-return $this->prettyConstraint;
-}
-
-
-
-
-public function __toString()
-{
-return $this->source.' '.$this->description.' '.$this->target.' ('.$this->constraint.')';
-}
-
-
-
-
-
-public function getPrettyString(PackageInterface $sourcePackage)
-{
-return $sourcePackage->getPrettyString().' '.$this->description.' '.$this->target.' '.$this->constraint->getPrettyString().'';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\LinkConstraint;
-
-use Composer\Semver\Constraint\EmptyConstraint as SemverEmptyConstraint;
-
-trigger_error('The ' . __NAMESPACE__ . '\EmptyConstraint class is deprecated, use Composer\Semver\Constraint\EmptyConstraint instead.', E_USER_DEPRECATED);
-
-
-
-
-class EmptyConstraint extends SemverEmptyConstraint implements LinkConstraintInterface
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\LinkConstraint;
-
-use Composer\Semver\Constraint\ConstraintInterface;
-
-trigger_error('The ' . __NAMESPACE__ . '\LinkConstraintInterface interface is deprecated, use Composer\Semver\Constraint\ConstraintInterface instead.', E_USER_DEPRECATED);
-
-
-
-
-interface LinkConstraintInterface extends ConstraintInterface
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\LinkConstraint;
-
-use Composer\Semver\Constraint\MultiConstraint as SemverMultiConstraint;
-
-trigger_error('The ' . __NAMESPACE__ . '\MultiConstraint class is deprecated, use Composer\Semver\Constraint\MultiConstraint instead.', E_USER_DEPRECATED);
-
-
-
-
-class MultiConstraint extends SemverMultiConstraint implements LinkConstraintInterface
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\LinkConstraint;
-
-use Composer\Semver\Constraint\AbstractConstraint;
-
-trigger_error('The ' . __NAMESPACE__ . '\SpecificConstraint abstract class is deprecated, there is no replacement for it.', E_USER_DEPRECATED);
-
-
-
-
-abstract class SpecificConstraint extends AbstractConstraint implements LinkConstraintInterface
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\LinkConstraint;
-
-use Composer\Semver\Constraint\Constraint;
-
-trigger_error('The ' . __NAMESPACE__ . '\VersionConstraint class is deprecated, use Composer\Semver\Constraint\Constraint instead.', E_USER_DEPRECATED);
-
-
-
-
-class VersionConstraint extends Constraint implements LinkConstraintInterface
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\Loader;
-
-use Composer\Package;
-use Composer\Package\AliasPackage;
-use Composer\Package\Link;
-use Composer\Package\RootAliasPackage;
-use Composer\Package\RootPackageInterface;
-use Composer\Package\Version\VersionParser;
-use Composer\Semver\VersionParser as SemverVersionParser;
-
-
-
-
-
-class ArrayLoader implements LoaderInterface
-{
-protected $versionParser;
-protected $loadOptions;
-
-public function __construct(SemverVersionParser $parser = null, $loadOptions = false)
-{
-if (!$parser) {
-$parser = new VersionParser;
-}
-$this->versionParser = $parser;
-$this->loadOptions = $loadOptions;
-}
-
-public function load(array $config, $class = 'Composer\Package\CompletePackage')
-{
-if (!isset($config['name'])) {
-throw new \UnexpectedValueException('Unknown package has no name defined ('.json_encode($config).').');
-}
-if (!isset($config['version'])) {
-throw new \UnexpectedValueException('Package '.$config['name'].' has no version defined.');
-}
-
-
- if (isset($config['version_normalized'])) {
-$version = $config['version_normalized'];
-} else {
-$version = $this->versionParser->normalize($config['version']);
-}
-$package = new $class($config['name'], $version, $config['version']);
-$package->setType(isset($config['type']) ? strtolower($config['type']) : 'library');
-
-if (isset($config['target-dir'])) {
-$package->setTargetDir($config['target-dir']);
-}
-
-if (isset($config['extra']) && is_array($config['extra'])) {
-$package->setExtra($config['extra']);
-}
-
-if (isset($config['bin'])) {
-foreach ((array) $config['bin'] as $key => $bin) {
-$config['bin'][$key] = ltrim($bin, '/');
-}
-$package->setBinaries((array) $config['bin']);
-}
-
-if (isset($config['installation-source'])) {
-$package->setInstallationSource($config['installation-source']);
-}
-
-if (isset($config['source'])) {
-if (!isset($config['source']['type']) || !isset($config['source']['url']) || !isset($config['source']['reference'])) {
-throw new \UnexpectedValueException(sprintf(
-"Package %s's source key should be specified as {\"type\": ..., \"url\": ..., \"reference\": ...},\n%s given.",
-$config['name'],
-json_encode($config['source'])
-));
-}
-$package->setSourceType($config['source']['type']);
-$package->setSourceUrl($config['source']['url']);
-$package->setSourceReference($config['source']['reference']);
-if (isset($config['source']['mirrors'])) {
-$package->setSourceMirrors($config['source']['mirrors']);
-}
-}
-
-if (isset($config['dist'])) {
-if (!isset($config['dist']['type'])
-|| !isset($config['dist']['url'])) {
-throw new \UnexpectedValueException(sprintf(
-"Package %s's dist key should be specified as ".
-"{\"type\": ..., \"url\": ..., \"reference\": ..., \"shasum\": ...},\n%s given.",
-$config['name'],
-json_encode($config['dist'])
-));
-}
-$package->setDistType($config['dist']['type']);
-$package->setDistUrl($config['dist']['url']);
-$package->setDistReference(isset($config['dist']['reference']) ? $config['dist']['reference'] : null);
-$package->setDistSha1Checksum(isset($config['dist']['shasum']) ? $config['dist']['shasum'] : null);
-if (isset($config['dist']['mirrors'])) {
-$package->setDistMirrors($config['dist']['mirrors']);
-}
-}
-
-foreach (Package\BasePackage::$supportedLinkTypes as $type => $opts) {
-if (isset($config[$type])) {
-$method = 'set'.ucfirst($opts['method']);
-$package->{$method}(
-$this->parseLinks(
-$package->getName(),
-$package->getPrettyVersion(),
-$opts['description'],
-$config[$type]
-)
-);
-}
-}
-
-if (isset($config['suggest']) && is_array($config['suggest'])) {
-foreach ($config['suggest'] as $target => $reason) {
-if ('self.version' === trim($reason)) {
-$config['suggest'][$target] = $package->getPrettyVersion();
-}
-}
-$package->setSuggests($config['suggest']);
-}
-
-if (isset($config['autoload'])) {
-$package->setAutoload($config['autoload']);
-}
-
-if (isset($config['autoload-dev'])) {
-$package->setDevAutoload($config['autoload-dev']);
-}
-
-if (isset($config['include-path'])) {
-$package->setIncludePaths($config['include-path']);
-}
-
-if (!empty($config['time'])) {
-$time = preg_match('/^\d++$/D', $config['time']) ? '@'.$config['time'] : $config['time'];
-
-try {
-$date = new \DateTime($time, new \DateTimeZone('UTC'));
-$package->setReleaseDate($date);
-} catch (\Exception $e) {
-}
-}
-
-if (!empty($config['notification-url'])) {
-$package->setNotificationUrl($config['notification-url']);
-}
-
-if (!empty($config['archive']['exclude'])) {
-$package->setArchiveExcludes($config['archive']['exclude']);
-}
-
-if ($package instanceof Package\CompletePackageInterface) {
-if (isset($config['scripts']) && is_array($config['scripts'])) {
-foreach ($config['scripts'] as $event => $listeners) {
-$config['scripts'][$event] = (array) $listeners;
-}
-if (isset($config['scripts']['composer'])) {
-trigger_error('The `composer` script name is reserved for internal use, please avoid defining it', E_USER_DEPRECATED);
-}
-$package->setScripts($config['scripts']);
-}
-
-if (!empty($config['description']) && is_string($config['description'])) {
-$package->setDescription($config['description']);
-}
-
-if (!empty($config['homepage']) && is_string($config['homepage'])) {
-$package->setHomepage($config['homepage']);
-}
-
-if (!empty($config['keywords']) && is_array($config['keywords'])) {
-$package->setKeywords($config['keywords']);
-}
-
-if (!empty($config['license'])) {
-$package->setLicense(is_array($config['license']) ? $config['license'] : array($config['license']));
-}
-
-if (!empty($config['authors']) && is_array($config['authors'])) {
-$package->setAuthors($config['authors']);
-}
-
-if (isset($config['support'])) {
-$package->setSupport($config['support']);
-}
-
-if (isset($config['abandoned'])) {
-$package->setAbandoned($config['abandoned']);
-}
-}
-
-if ($aliasNormalized = $this->getBranchAlias($config)) {
-if ($package instanceof RootPackageInterface) {
-$package = new RootAliasPackage($package, $aliasNormalized, preg_replace('{(\.9{7})+}', '.x', $aliasNormalized));
-} else {
-$package = new AliasPackage($package, $aliasNormalized, preg_replace('{(\.9{7})+}', '.x', $aliasNormalized));
-}
-}
-
-if ($this->loadOptions && isset($config['transport-options'])) {
-$package->setTransportOptions($config['transport-options']);
-}
-
-return $package;
-}
-
-
-
-
-
-
-
-
-public function parseLinks($source, $sourceVersion, $description, $links)
-{
-$res = array();
-foreach ($links as $target => $constraint) {
-if (!is_string($constraint)) {
-throw new \UnexpectedValueException('Link constraint in '.$source.' '.$description.' > '.$target.' should be a string, got '.gettype($constraint) . ' (' . var_export($constraint, true) . ')');
-}
-if ('self.version' === $constraint) {
-$parsedConstraint = $this->versionParser->parseConstraints($sourceVersion);
-} else {
-$parsedConstraint = $this->versionParser->parseConstraints($constraint);
-}
-
-$res[strtolower($target)] = new Link($source, $target, $parsedConstraint, $description, $constraint);
-}
-
-return $res;
-}
-
-
-
-
-
-
-
-public function getBranchAlias(array $config)
-{
-if (('dev-' !== substr($config['version'], 0, 4) && '-dev' !== substr($config['version'], -4))
-|| !isset($config['extra']['branch-alias'])
-|| !is_array($config['extra']['branch-alias'])
-) {
-return;
-}
-
-foreach ($config['extra']['branch-alias'] as $sourceBranch => $targetBranch) {
-
- if ('-dev' !== substr($targetBranch, -4)) {
-continue;
-}
-
-
- $validatedTargetBranch = $this->versionParser->normalizeBranch(substr($targetBranch, 0, -4));
-if ('-dev' !== substr($validatedTargetBranch, -4)) {
-continue;
-}
-
-
- if (strtolower($config['version']) !== strtolower($sourceBranch)) {
-continue;
-}
-
-
- if (($sourcePrefix = $this->versionParser->parseNumericAliasPrefix($sourceBranch))
-&& ($targetPrefix = $this->versionParser->parseNumericAliasPrefix($targetBranch))
-&& (stripos($targetPrefix, $sourcePrefix) !== 0)
-) {
-continue;
-}
-
-return $validatedTargetBranch;
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\Loader;
-
-
-
-
-class InvalidPackageException extends \Exception
-{
-private $errors;
-private $warnings;
-private $data;
-
-public function __construct(array $errors, array $warnings, array $data)
-{
-$this->errors = $errors;
-$this->warnings = $warnings;
-$this->data = $data;
-parent::__construct("Invalid package information: \n".implode("\n", array_merge($errors, $warnings)));
-}
-
-public function getData()
-{
-return $this->data;
-}
-
-public function getErrors()
-{
-return $this->errors;
-}
-
-public function getWarnings()
-{
-return $this->warnings;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\Loader;
-
-use Composer\Json\JsonFile;
-
-
-
-
-class JsonLoader
-{
-private $loader;
-
-public function __construct(LoaderInterface $loader)
-{
-$this->loader = $loader;
-}
-
-
-
-
-
-public function load($json)
-{
-if ($json instanceof JsonFile) {
-$config = $json->read();
-} elseif (file_exists($json)) {
-$config = JsonFile::parseJson(file_get_contents($json), $json);
-} elseif (is_string($json)) {
-$config = JsonFile::parseJson($json);
-}
-
-return $this->loader->load($config);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\Loader;
-
-
-
-
-
-
-interface LoaderInterface
-{
-
-
-
-
-
-
-
-public function load(array $package, $class = 'Composer\Package\CompletePackage');
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\Loader;
-
-use Composer\Package\BasePackage;
-use Composer\Package\AliasPackage;
-use Composer\Config;
-use Composer\Package\RootPackageInterface;
-use Composer\Repository\RepositoryFactory;
-use Composer\Package\Version\VersionGuesser;
-use Composer\Package\Version\VersionParser;
-use Composer\Repository\RepositoryManager;
-use Composer\Util\ProcessExecutor;
-
-
-
-
-
-
-
-
-class RootPackageLoader extends ArrayLoader
-{
-
-
-
-private $manager;
-
-
-
-
-private $config;
-
-
-
-
-private $versionGuesser;
-
-public function __construct(RepositoryManager $manager, Config $config, VersionParser $parser = null, VersionGuesser $versionGuesser = null)
-{
-parent::__construct($parser);
-
-$this->manager = $manager;
-$this->config = $config;
-$this->versionGuesser = $versionGuesser ?: new VersionGuesser($config, new ProcessExecutor(), $this->versionParser);
-}
-
-
-
-
-
-
-
-public function load(array $config, $class = 'Composer\Package\RootPackage', $cwd = null)
-{
-if (!isset($config['name'])) {
-$config['name'] = '__root__';
-}
-$autoVersioned = false;
-if (!isset($config['version'])) {
-$commit = null;
-
-
- if (getenv('COMPOSER_ROOT_VERSION')) {
-$config['version'] = getenv('COMPOSER_ROOT_VERSION');
-} else {
-$versionData = $this->versionGuesser->guessVersion($config, $cwd ?: getcwd());
-if ($versionData) {
-$config['version'] = $versionData['pretty_version'];
-$config['version_normalized'] = $versionData['version'];
-$commit = $versionData['commit'];
-}
-}
-
-if (!isset($config['version'])) {
-$config['version'] = '1.0.0';
-$autoVersioned = true;
-}
-
-if ($commit) {
-$config['source'] = array(
-'type' => '',
-'url' => '',
-'reference' => $commit,
-);
-$config['dist'] = array(
-'type' => '',
-'url' => '',
-'reference' => $commit,
-);
-}
-}
-
-$realPackage = $package = parent::load($config, $class);
-if ($realPackage instanceof AliasPackage) {
-$realPackage = $package->getAliasOf();
-}
-
-if ($autoVersioned) {
-$realPackage->replaceVersion($realPackage->getVersion(), 'No version set (parsed as 1.0.0)');
-}
-
-if (isset($config['minimum-stability'])) {
-$realPackage->setMinimumStability(VersionParser::normalizeStability($config['minimum-stability']));
-}
-
-$aliases = array();
-$stabilityFlags = array();
-$references = array();
-foreach (array('require', 'require-dev') as $linkType) {
-if (isset($config[$linkType])) {
-$linkInfo = BasePackage::$supportedLinkTypes[$linkType];
-$method = 'get'.ucfirst($linkInfo['method']);
-$links = array();
-foreach ($realPackage->$method() as $link) {
-$links[$link->getTarget()] = $link->getConstraint()->getPrettyString();
-}
-$aliases = $this->extractAliases($links, $aliases);
-$stabilityFlags = $this->extractStabilityFlags($links, $stabilityFlags, $realPackage->getMinimumStability());
-$references = $this->extractReferences($links, $references);
-}
-}
-
-if (isset($links[$config['name']])) {
-throw new \InvalidArgumentException(sprintf('Root package \'%s\' cannot require itself in its composer.json' . PHP_EOL .
-'Did you accidentally name your root package after an external package?', $config['name']));
-}
-
-$realPackage->setAliases($aliases);
-$realPackage->setStabilityFlags($stabilityFlags);
-$realPackage->setReferences($references);
-
-if (isset($config['prefer-stable'])) {
-$realPackage->setPreferStable((bool) $config['prefer-stable']);
-}
-
-if (isset($config['config'])) {
-$realPackage->setConfig($config['config']);
-}
-
-$repos = RepositoryFactory::defaultRepos(null, $this->config, $this->manager);
-foreach ($repos as $repo) {
-$this->manager->addRepository($repo);
-}
-$realPackage->setRepositories($this->config->getRepositories());
-
-return $package;
-}
-
-private function extractAliases(array $requires, array $aliases)
-{
-foreach ($requires as $reqName => $reqVersion) {
-if (preg_match('{^([^,\s#]+)(?:#[^ ]+)? +as +([^,\s]+)$}', $reqVersion, $match)) {
-$aliases[] = array(
-'package' => strtolower($reqName),
-'version' => $this->versionParser->normalize($match[1], $reqVersion),
-'alias' => $match[2],
-'alias_normalized' => $this->versionParser->normalize($match[2], $reqVersion),
-);
-}
-}
-
-return $aliases;
-}
-
-private function extractStabilityFlags(array $requires, array $stabilityFlags, $minimumStability)
-{
-$stabilities = BasePackage::$stabilities;
-$minimumStability = $stabilities[$minimumStability];
-foreach ($requires as $reqName => $reqVersion) {
-$constraints = array();
-
-
- $orSplit = preg_split('{\s*\|\|?\s*}', trim($reqVersion));
-foreach ($orSplit as $orConstraint) {
-$andSplit = preg_split('{(?<!^|as|[=>< ,]) *(?<!-)[, ](?!-) *(?!,|as|$)}', $orConstraint);
-foreach ($andSplit as $andConstraint) {
-$constraints[] = $andConstraint;
-}
-}
-
-
- $match = false;
-foreach ($constraints as $constraint) {
-if (preg_match('{^[^@]*?@('.implode('|', array_keys($stabilities)).')$}i', $constraint, $match)) {
-$name = strtolower($reqName);
-$stability = $stabilities[VersionParser::normalizeStability($match[1])];
-
-if (isset($stabilityFlags[$name]) && $stabilityFlags[$name] > $stability) {
-continue;
-}
-$stabilityFlags[$name] = $stability;
-$match = true;
-}
-}
-
-if ($match) {
-continue;
-}
-
-foreach ($constraints as $constraint) {
-
- 
- $reqVersion = preg_replace('{^([^,\s@]+) as .+$}', '$1', $constraint);
-if (preg_match('{^[^,\s@]+$}', $reqVersion) && 'stable' !== ($stabilityName = VersionParser::parseStability($reqVersion))) {
-$name = strtolower($reqName);
-$stability = $stabilities[$stabilityName];
-if ((isset($stabilityFlags[$name]) && $stabilityFlags[$name] > $stability) || ($minimumStability > $stability)) {
-continue;
-}
-$stabilityFlags[$name] = $stability;
-}
-}
-}
-
-return $stabilityFlags;
-}
-
-private function extractReferences(array $requires, array $references)
-{
-foreach ($requires as $reqName => $reqVersion) {
-$reqVersion = preg_replace('{^([^,\s@]+) as .+$}', '$1', $reqVersion);
-if (preg_match('{^[^,\s@]+?#([a-f0-9]+)$}', $reqVersion, $match) && 'dev' === VersionParser::parseStability($reqVersion)) {
-$name = strtolower($reqName);
-$references[$name] = $match[1];
-}
-}
-
-return $references;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\Loader;
-
-use Composer\Package\BasePackage;
-use Composer\Semver\Constraint\Constraint;
-use Composer\Package\Version\VersionParser;
-use Composer\Repository\PlatformRepository;
-use Composer\Spdx\SpdxLicenses;
-
-
-
-
-class ValidatingArrayLoader implements LoaderInterface
-{
-const CHECK_ALL = 3;
-const CHECK_UNBOUND_CONSTRAINTS = 1;
-const CHECK_STRICT_CONSTRAINTS = 2;
-
-private $loader;
-private $versionParser;
-private $errors;
-private $warnings;
-private $config;
-private $strictName;
-private $flags;
-
-public function __construct(LoaderInterface $loader, $strictName = true, VersionParser $parser = null, $flags = 0)
-{
-$this->loader = $loader;
-$this->versionParser = $parser ?: new VersionParser();
-$this->strictName = $strictName;
-$this->flags = $flags;
-}
-
-public function load(array $config, $class = 'Composer\Package\CompletePackage')
-{
-$this->errors = array();
-$this->warnings = array();
-$this->config = $config;
-
-if ($this->strictName) {
-$this->validateRegex('name', '[A-Za-z0-9][A-Za-z0-9_.-]*/[A-Za-z0-9][A-Za-z0-9_.-]*', true);
-} else {
-$this->validateString('name', true);
-}
-
-if (!empty($this->config['version'])) {
-try {
-$this->versionParser->normalize($this->config['version']);
-} catch (\Exception $e) {
-$this->errors[] = 'version : invalid value ('.$this->config['version'].'): '.$e->getMessage();
-unset($this->config['version']);
-}
-}
-
-if (!empty($this->config['config']['platform'])) {
-foreach ((array) $this->config['config']['platform'] as $key => $platform) {
-try {
-$this->versionParser->normalize($platform);
-} catch (\Exception $e) {
-$this->errors[] = 'config.platform.' . $key . ' : invalid value ('.$platform.'): '.$e->getMessage();
-}
-}
-}
-
-$this->validateRegex('type', '[A-Za-z0-9-]+');
-$this->validateString('target-dir');
-$this->validateArray('extra');
-
-if (isset($this->config['bin'])) {
-if (is_string($this->config['bin'])) {
-$this->validateString('bin');
-} else {
-$this->validateFlatArray('bin');
-}
-}
-
-$this->validateArray('scripts'); 
- $this->validateString('description');
-$this->validateUrl('homepage');
-$this->validateFlatArray('keywords', '[\p{N}\p{L} ._-]+');
-
-$releaseDate = null;
-$this->validateString('time');
-if (!empty($this->config['time'])) {
-try {
-$releaseDate = new \DateTime($this->config['time'], new \DateTimeZone('UTC'));
-} catch (\Exception $e) {
-$this->errors[] = 'time : invalid value ('.$this->config['time'].'): '.$e->getMessage();
-unset($this->config['time']);
-}
-}
-
-
- if (isset($this->config['license']) && (!$releaseDate || $releaseDate->getTimestamp() >= strtotime('-8days'))) {
-if (is_array($this->config['license']) || is_string($this->config['license'])) {
-$licenses = (array) $this->config['license'];
-
-
- foreach ($licenses as $key => $license) {
-if ('proprietary' === $license) {
-unset($licenses[$key]);
-}
-}
-
-$licenseValidator = new SpdxLicenses();
-if (count($licenses) === 1 && !$licenseValidator->validate($licenses) && $licenseValidator->validate(trim($licenses[0]))) {
-$this->warnings[] = sprintf(
-'License %s must not contain extra spaces, make sure to trim it.',
-json_encode($this->config['license'])
-);
-} elseif (array() !== $licenses && !$licenseValidator->validate($licenses)) {
-$this->warnings[] = sprintf(
-'License %s is not a valid SPDX license identifier, see https://spdx.org/licenses/ if you use an open license.' . PHP_EOL .
-'If the software is closed-source, you may use "proprietary" as license.',
-json_encode($this->config['license'])
-);
-}
-}
-}
-
-if ($this->validateArray('authors') && !empty($this->config['authors'])) {
-foreach ($this->config['authors'] as $key => $author) {
-if (!is_array($author)) {
-$this->errors[] = 'authors.'.$key.' : should be an array, '.gettype($author).' given';
-unset($this->config['authors'][$key]);
-continue;
-}
-foreach (array('homepage', 'email', 'name', 'role') as $authorData) {
-if (isset($author[$authorData]) && !is_string($author[$authorData])) {
-$this->errors[] = 'authors.'.$key.'.'.$authorData.' : invalid value, must be a string';
-unset($this->config['authors'][$key][$authorData]);
-}
-}
-if (isset($author['homepage']) && !$this->filterUrl($author['homepage'])) {
-$this->warnings[] = 'authors.'.$key.'.homepage : invalid value ('.$author['homepage'].'), must be an http/https URL';
-unset($this->config['authors'][$key]['homepage']);
-}
-if (isset($author['email']) && !filter_var($author['email'], FILTER_VALIDATE_EMAIL)) {
-$this->warnings[] = 'authors.'.$key.'.email : invalid value ('.$author['email'].'), must be a valid email address';
-unset($this->config['authors'][$key]['email']);
-}
-if (empty($this->config['authors'][$key])) {
-unset($this->config['authors'][$key]);
-}
-}
-if (empty($this->config['authors'])) {
-unset($this->config['authors']);
-}
-}
-
-if ($this->validateArray('support') && !empty($this->config['support'])) {
-foreach (array('issues', 'forum', 'wiki', 'source', 'email', 'irc', 'docs', 'rss', 'chat') as $key) {
-if (isset($this->config['support'][$key]) && !is_string($this->config['support'][$key])) {
-$this->errors[] = 'support.'.$key.' : invalid value, must be a string';
-unset($this->config['support'][$key]);
-}
-}
-
-if (isset($this->config['support']['email']) && !filter_var($this->config['support']['email'], FILTER_VALIDATE_EMAIL)) {
-$this->warnings[] = 'support.email : invalid value ('.$this->config['support']['email'].'), must be a valid email address';
-unset($this->config['support']['email']);
-}
-
-if (isset($this->config['support']['irc']) && !$this->filterUrl($this->config['support']['irc'], array('irc'))) {
-$this->warnings[] = 'support.irc : invalid value ('.$this->config['support']['irc'].'), must be a irc://<server>/<channel> URL';
-unset($this->config['support']['irc']);
-}
-
-foreach (array('issues', 'forum', 'wiki', 'source', 'docs', 'chat') as $key) {
-if (isset($this->config['support'][$key]) && !$this->filterUrl($this->config['support'][$key])) {
-$this->warnings[] = 'support.'.$key.' : invalid value ('.$this->config['support'][$key].'), must be an http/https URL';
-unset($this->config['support'][$key]);
-}
-}
-if (empty($this->config['support'])) {
-unset($this->config['support']);
-}
-}
-
-$unboundConstraint = new Constraint('=', $this->versionParser->normalize('dev-master'));
-$stableConstraint = new Constraint('=', '1.0.0');
-
-foreach (array_keys(BasePackage::$supportedLinkTypes) as $linkType) {
-if ($this->validateArray($linkType) && isset($this->config[$linkType])) {
-foreach ($this->config[$linkType] as $package => $constraint) {
-if (!preg_match('{^[A-Za-z0-9_./-]+$}', $package)) {
-$this->warnings[] = $linkType.'.'.$package.' : invalid key, package names must be strings containing only [A-Za-z0-9_./-]';
-}
-if (!is_string($constraint)) {
-$this->errors[] = $linkType.'.'.$package.' : invalid value, must be a string containing a version constraint';
-unset($this->config[$linkType][$package]);
-} elseif ('self.version' !== $constraint) {
-try {
-$linkConstraint = $this->versionParser->parseConstraints($constraint);
-} catch (\Exception $e) {
-$this->errors[] = $linkType.'.'.$package.' : invalid version constraint ('.$e->getMessage().')';
-unset($this->config[$linkType][$package]);
-continue;
-}
-
-
- if (
-($this->flags & self::CHECK_UNBOUND_CONSTRAINTS)
-&& 'require' === $linkType
-&& $linkConstraint->matches($unboundConstraint)
-&& !preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $package)
-) {
-$this->warnings[] = $linkType.'.'.$package.' : unbound version constraints ('.$constraint.') should be avoided';
-} elseif (
-
- ($this->flags & self::CHECK_STRICT_CONSTRAINTS)
-&& 'require' === $linkType
-&& substr($linkConstraint, 0, 1) === '='
-&& $stableConstraint->versionCompare($stableConstraint, $linkConstraint, '<=')
-) {
-$this->warnings[] = $linkType.'.'.$package.' : exact version constraints ('.$constraint.') should be avoided if the package follows semantic versioning';
-}
-}
-}
-}
-}
-
-if ($this->validateArray('suggest') && !empty($this->config['suggest'])) {
-foreach ($this->config['suggest'] as $package => $description) {
-if (!is_string($description)) {
-$this->errors[] = 'suggest.'.$package.' : invalid value, must be a string describing why the package is suggested';
-unset($this->config['suggest'][$package]);
-}
-}
-}
-
-if ($this->validateString('minimum-stability') && !empty($this->config['minimum-stability'])) {
-if (!isset(BasePackage::$stabilities[$this->config['minimum-stability']])) {
-$this->errors[] = 'minimum-stability : invalid value ('.$this->config['minimum-stability'].'), must be one of '.implode(', ', array_keys(BasePackage::$stabilities));
-unset($this->config['minimum-stability']);
-}
-}
-
-if ($this->validateArray('autoload') && !empty($this->config['autoload'])) {
-$types = array('psr-0', 'psr-4', 'classmap', 'files', 'exclude-from-classmap');
-foreach ($this->config['autoload'] as $type => $typeConfig) {
-if (!in_array($type, $types)) {
-$this->errors[] = 'autoload : invalid value ('.$type.'), must be one of '.implode(', ', $types);
-unset($this->config['autoload'][$type]);
-}
-if ($type === 'psr-4') {
-foreach ($typeConfig as $namespace => $dirs) {
-if ($namespace !== '' && '\\' !== substr($namespace, -1)) {
-$this->errors[] = 'autoload.psr-4 : invalid value ('.$namespace.'), namespaces must end with a namespace separator, should be '.$namespace.'\\\\';
-}
-}
-}
-}
-}
-
-if (!empty($this->config['autoload']['psr-4']) && !empty($this->config['target-dir'])) {
-$this->errors[] = 'target-dir : this can not be used together with the autoload.psr-4 setting, remove target-dir to upgrade to psr-4';
-
- 
- unset($this->config['autoload']['psr-4']);
-}
-
-
- 
-
-
- 
-
-$this->validateFlatArray('include-path');
-$this->validateArray('transport-options');
-
-
- if (isset($this->config['extra']['branch-alias'])) {
-if (!is_array($this->config['extra']['branch-alias'])) {
-$this->errors[] = 'extra.branch-alias : must be an array of versions => aliases';
-} else {
-foreach ($this->config['extra']['branch-alias'] as $sourceBranch => $targetBranch) {
-
- if ('-dev' !== substr($targetBranch, -4)) {
-$this->warnings[] = 'extra.branch-alias.'.$sourceBranch.' : the target branch ('.$targetBranch.') must end in -dev';
-unset($this->config['extra']['branch-alias'][$sourceBranch]);
-
-continue;
-}
-
-
- $validatedTargetBranch = $this->versionParser->normalizeBranch(substr($targetBranch, 0, -4));
-if ('-dev' !== substr($validatedTargetBranch, -4)) {
-$this->warnings[] = 'extra.branch-alias.'.$sourceBranch.' : the target branch ('.$targetBranch.') must be a parseable number like 2.0-dev';
-unset($this->config['extra']['branch-alias'][$sourceBranch]);
-
-continue;
-}
-
-
- if (($sourcePrefix = $this->versionParser->parseNumericAliasPrefix($sourceBranch))
-&& ($targetPrefix = $this->versionParser->parseNumericAliasPrefix($targetBranch))
-&& (stripos($targetPrefix, $sourcePrefix) !== 0)
-) {
-$this->warnings[] = 'extra.branch-alias.'.$sourceBranch.' : the target branch ('.$targetBranch.') is not a valid numeric alias for this version';
-unset($this->config['extra']['branch-alias'][$sourceBranch]);
-}
-}
-}
-}
-
-if ($this->errors) {
-throw new InvalidPackageException($this->errors, $this->warnings, $config);
-}
-
-$package = $this->loader->load($this->config, $class);
-$this->config = null;
-
-return $package;
-}
-
-public function getWarnings()
-{
-return $this->warnings;
-}
-
-public function getErrors()
-{
-return $this->errors;
-}
-
-private function validateRegex($property, $regex, $mandatory = false)
-{
-if (!$this->validateString($property, $mandatory)) {
-return false;
-}
-
-if (!preg_match('{^'.$regex.'$}u', $this->config[$property])) {
-$message = $property.' : invalid value ('.$this->config[$property].'), must match '.$regex;
-if ($mandatory) {
-$this->errors[] = $message;
-} else {
-$this->warnings[] = $message;
-}
-unset($this->config[$property]);
-
-return false;
-}
-
-return true;
-}
-
-private function validateString($property, $mandatory = false)
-{
-if (isset($this->config[$property]) && !is_string($this->config[$property])) {
-$this->errors[] = $property.' : should be a string, '.gettype($this->config[$property]).' given';
-unset($this->config[$property]);
-
-return false;
-}
-
-if (!isset($this->config[$property]) || trim($this->config[$property]) === '') {
-if ($mandatory) {
-$this->errors[] = $property.' : must be present';
-}
-unset($this->config[$property]);
-
-return false;
-}
-
-return true;
-}
-
-private function validateArray($property, $mandatory = false)
-{
-if (isset($this->config[$property]) && !is_array($this->config[$property])) {
-$this->errors[] = $property.' : should be an array, '.gettype($this->config[$property]).' given';
-unset($this->config[$property]);
-
-return false;
-}
-
-if (!isset($this->config[$property]) || !count($this->config[$property])) {
-if ($mandatory) {
-$this->errors[] = $property.' : must be present and contain at least one element';
-}
-unset($this->config[$property]);
-
-return false;
-}
-
-return true;
-}
-
-private function validateFlatArray($property, $regex = null, $mandatory = false)
-{
-if (!$this->validateArray($property, $mandatory)) {
-return false;
-}
-
-$pass = true;
-foreach ($this->config[$property] as $key => $value) {
-if (!is_string($value) && !is_numeric($value)) {
-$this->errors[] = $property.'.'.$key.' : must be a string or int, '.gettype($value).' given';
-unset($this->config[$property][$key]);
-$pass = false;
-
-continue;
-}
-
-if ($regex && !preg_match('{^'.$regex.'$}u', $value)) {
-$this->warnings[] = $property.'.'.$key.' : invalid value ('.$value.'), must match '.$regex;
-unset($this->config[$property][$key]);
-$pass = false;
-}
-}
-
-return $pass;
-}
-
-private function validateUrl($property, $mandatory = false)
-{
-if (!$this->validateString($property, $mandatory)) {
-return false;
-}
-
-if (!$this->filterUrl($this->config[$property])) {
-$this->warnings[] = $property.' : invalid value ('.$this->config[$property].'), must be an http/https URL';
-unset($this->config[$property]);
-
-return false;
-}
-
-return true;
-}
-
-private function filterUrl($value, array $schemes = array('http', 'https'))
-{
-if ($value === '') {
-return true;
-}
-
-$bits = parse_url($value);
-if (empty($bits['scheme']) || empty($bits['host'])) {
-return false;
-}
-
-if (!in_array($bits['scheme'], $schemes, true)) {
-return false;
-}
-
-return true;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package;
-
-use Composer\Json\JsonFile;
-use Composer\Installer\InstallationManager;
-use Composer\Repository\RepositoryManager;
-use Composer\Util\ProcessExecutor;
-use Composer\Repository\ArrayRepository;
-use Composer\Package\Dumper\ArrayDumper;
-use Composer\Package\Loader\ArrayLoader;
-use Composer\Util\Git as GitUtil;
-use Composer\IO\IOInterface;
-use Seld\JsonLint\ParsingException;
-
-
-
-
-
-
-
-class Locker
-{
-private $lockFile;
-private $repositoryManager;
-private $installationManager;
-private $hash;
-private $contentHash;
-private $loader;
-private $dumper;
-private $process;
-private $lockDataCache;
-
-
-
-
-
-
-
-
-
-
-public function __construct(IOInterface $io, JsonFile $lockFile, RepositoryManager $repositoryManager, InstallationManager $installationManager, $composerFileContents)
-{
-$this->lockFile = $lockFile;
-$this->repositoryManager = $repositoryManager;
-$this->installationManager = $installationManager;
-$this->hash = md5($composerFileContents);
-$this->contentHash = self::getContentHash($composerFileContents);
-$this->loader = new ArrayLoader(null, true);
-$this->dumper = new ArrayDumper();
-$this->process = new ProcessExecutor($io);
-}
-
-
-
-
-
-
-
-
-public static function getContentHash($composerFileContents)
-{
-$content = json_decode($composerFileContents, true);
-
-$relevantKeys = array(
-'name',
-'version',
-'require',
-'require-dev',
-'conflict',
-'replace',
-'provide',
-'minimum-stability',
-'prefer-stable',
-'repositories',
-'extra',
-);
-
-$relevantContent = array();
-
-foreach (array_intersect($relevantKeys, array_keys($content)) as $key) {
-$relevantContent[$key] = $content[$key];
-}
-if (isset($content['config']['platform'])) {
-$relevantContent['config']['platform'] = $content['config']['platform'];
-}
-
-ksort($relevantContent);
-
-return md5(json_encode($relevantContent));
-}
-
-
-
-
-
-
-public function isLocked()
-{
-if (!$this->lockFile->exists()) {
-return false;
-}
-
-$data = $this->getLockData();
-
-return isset($data['packages']);
-}
-
-
-
-
-
-
-public function isFresh()
-{
-$lock = $this->lockFile->read();
-
-if (!empty($lock['content-hash'])) {
-
- return $this->contentHash === $lock['content-hash'];
-}
-
-
- if (!empty($lock['hash'])) {
-return $this->hash === $lock['hash'];
-}
-
-
- return false;
-}
-
-
-
-
-
-
-
-
-public function getLockedRepository($withDevReqs = false)
-{
-$lockData = $this->getLockData();
-$packages = new ArrayRepository();
-
-$lockedPackages = $lockData['packages'];
-if ($withDevReqs) {
-if (isset($lockData['packages-dev'])) {
-$lockedPackages = array_merge($lockedPackages, $lockData['packages-dev']);
-} else {
-throw new \RuntimeException('The lock file does not contain require-dev information, run install with the --no-dev option or run update to install those packages.');
-}
-}
-
-if (empty($lockedPackages)) {
-return $packages;
-}
-
-if (isset($lockedPackages[0]['name'])) {
-foreach ($lockedPackages as $info) {
-$packages->addPackage($this->loader->load($info));
-}
-
-return $packages;
-}
-
-throw new \RuntimeException('Your composer.lock was created before 2012-09-15, and is not supported anymore. Run "composer update" to generate a new one.');
-}
-
-
-
-
-
-
-
-public function getPlatformRequirements($withDevReqs = false)
-{
-$lockData = $this->getLockData();
-$requirements = array();
-
-if (!empty($lockData['platform'])) {
-$requirements = $this->loader->parseLinks(
-'__ROOT__',
-'1.0.0',
-'requires',
-isset($lockData['platform']) ? $lockData['platform'] : array()
-);
-}
-
-if ($withDevReqs && !empty($lockData['platform-dev'])) {
-$devRequirements = $this->loader->parseLinks(
-'__ROOT__',
-'1.0.0',
-'requires',
-isset($lockData['platform-dev']) ? $lockData['platform-dev'] : array()
-);
-
-$requirements = array_merge($requirements, $devRequirements);
-}
-
-return $requirements;
-}
-
-public function getMinimumStability()
-{
-$lockData = $this->getLockData();
-
-return isset($lockData['minimum-stability']) ? $lockData['minimum-stability'] : 'stable';
-}
-
-public function getStabilityFlags()
-{
-$lockData = $this->getLockData();
-
-return isset($lockData['stability-flags']) ? $lockData['stability-flags'] : array();
-}
-
-public function getPreferStable()
-{
-$lockData = $this->getLockData();
-
-
- 
- return isset($lockData['prefer-stable']) ? $lockData['prefer-stable'] : null;
-}
-
-public function getPreferLowest()
-{
-$lockData = $this->getLockData();
-
-
- 
- return isset($lockData['prefer-lowest']) ? $lockData['prefer-lowest'] : null;
-}
-
-public function getPlatformOverrides()
-{
-$lockData = $this->getLockData();
-
-return isset($lockData['platform-overrides']) ? $lockData['platform-overrides'] : array();
-}
-
-public function getAliases()
-{
-$lockData = $this->getLockData();
-
-return isset($lockData['aliases']) ? $lockData['aliases'] : array();
-}
-
-public function getLockData()
-{
-if (null !== $this->lockDataCache) {
-return $this->lockDataCache;
-}
-
-if (!$this->lockFile->exists()) {
-throw new \LogicException('No lockfile found. Unable to read locked packages');
-}
-
-return $this->lockDataCache = $this->lockFile->read();
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function setLockData(array $packages, $devPackages, array $platformReqs, $platformDevReqs, array $aliases, $minimumStability, array $stabilityFlags, $preferStable, $preferLowest, array $platformOverrides)
-{
-$lock = array(
-'_readme' => array('This file locks the dependencies of your project to a known state',
-'Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies',
-'This file is @gener'.'ated automatically', ),
-'content-hash' => $this->contentHash,
-'packages' => null,
-'packages-dev' => null,
-'aliases' => array(),
-'minimum-stability' => $minimumStability,
-'stability-flags' => $stabilityFlags,
-'prefer-stable' => $preferStable,
-'prefer-lowest' => $preferLowest,
-);
-
-foreach ($aliases as $package => $versions) {
-foreach ($versions as $version => $alias) {
-$lock['aliases'][] = array(
-'alias' => $alias['alias'],
-'alias_normalized' => $alias['alias_normalized'],
-'version' => $version,
-'package' => $package,
-);
-}
-}
-
-$lock['packages'] = $this->lockPackages($packages);
-if (null !== $devPackages) {
-$lock['packages-dev'] = $this->lockPackages($devPackages);
-}
-
-$lock['platform'] = $platformReqs;
-$lock['platform-dev'] = $platformDevReqs;
-if ($platformOverrides) {
-$lock['platform-overrides'] = $platformOverrides;
-}
-
-if (empty($lock['packages']) && empty($lock['packages-dev']) && empty($lock['platform']) && empty($lock['platform-dev'])) {
-if ($this->lockFile->exists()) {
-unlink($this->lockFile->getPath());
-}
-
-return false;
-}
-
-try {
-$isLocked = $this->isLocked();
-} catch (ParsingException $e) {
-$isLocked = false;
-}
-if (!$isLocked || $lock !== $this->getLockData()) {
-$this->lockFile->write($lock);
-$this->lockDataCache = null;
-
-return true;
-}
-
-return false;
-}
-
-private function lockPackages(array $packages)
-{
-$locked = array();
-
-foreach ($packages as $package) {
-if ($package instanceof AliasPackage) {
-continue;
-}
-
-$name = $package->getPrettyName();
-$version = $package->getPrettyVersion();
-
-if (!$name || !$version) {
-throw new \LogicException(sprintf(
-'Package "%s" has no version or name and can not be locked',
-$package
-));
-}
-
-$spec = $this->dumper->dump($package);
-unset($spec['version_normalized']);
-
-
- $time = isset($spec['time']) ? $spec['time'] : null;
-unset($spec['time']);
-if ($package->isDev() && $package->getInstallationSource() === 'source') {
-
- $time = $this->getPackageTime($package) ?: $time;
-}
-if (null !== $time) {
-$spec['time'] = $time;
-}
-
-unset($spec['installation-source']);
-
-$locked[] = $spec;
-}
-
-usort($locked, function ($a, $b) {
-$comparison = strcmp($a['name'], $b['name']);
-
-if (0 !== $comparison) {
-return $comparison;
-}
-
-
- return strcmp($a['version'], $b['version']);
-});
-
-return $locked;
-}
-
-
-
-
-
-
-
-private function getPackageTime(PackageInterface $package)
-{
-if (!function_exists('proc_open')) {
-return null;
-}
-
-$path = realpath($this->installationManager->getInstallPath($package));
-$sourceType = $package->getSourceType();
-$datetime = null;
-
-if ($path && in_array($sourceType, array('git', 'hg'))) {
-$sourceRef = $package->getSourceReference() ?: $package->getDistReference();
-switch ($sourceType) {
-case 'git':
-GitUtil::cleanEnv();
-
-if (0 === $this->process->execute('git log -n1 --pretty=%ct '.ProcessExecutor::escape($sourceRef), $output, $path) && preg_match('{^\s*\d+\s*$}', $output)) {
-$datetime = new \DateTime('@'.trim($output), new \DateTimeZone('UTC'));
-}
-break;
-
-case 'hg':
-if (0 === $this->process->execute('hg log --template "{date|hgdate}" -r '.ProcessExecutor::escape($sourceRef), $output, $path) && preg_match('{^\s*(\d+)\s*}', $output, $match)) {
-$datetime = new \DateTime('@'.$match[1], new \DateTimeZone('UTC'));
-}
-break;
-}
-}
-
-return $datetime ? $datetime->format(DATE_RFC3339) : null;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package;
-
-use Composer\Package\Version\VersionParser;
-use Composer\Util\ComposerMirror;
-
-
-
-
-
-
-class Package extends BasePackage
-{
-protected $type;
-protected $targetDir;
-protected $installationSource;
-protected $sourceType;
-protected $sourceUrl;
-protected $sourceReference;
-protected $sourceMirrors;
-protected $distType;
-protected $distUrl;
-protected $distReference;
-protected $distSha1Checksum;
-protected $distMirrors;
-protected $version;
-protected $prettyVersion;
-protected $releaseDate;
-protected $extra = array();
-protected $binaries = array();
-protected $dev;
-protected $stability;
-protected $notificationUrl;
-
-
-protected $requires = array();
-
-protected $conflicts = array();
-
-protected $provides = array();
-
-protected $replaces = array();
-
-protected $devRequires = array();
-protected $suggests = array();
-protected $autoload = array();
-protected $devAutoload = array();
-protected $includePaths = array();
-protected $archiveExcludes = array();
-
-
-
-
-
-
-
-
-public function __construct($name, $version, $prettyVersion)
-{
-parent::__construct($name);
-
-$this->version = $version;
-$this->prettyVersion = $prettyVersion;
-
-$this->stability = VersionParser::parseStability($version);
-$this->dev = $this->stability === 'dev';
-}
-
-
-
-
-public function isDev()
-{
-return $this->dev;
-}
-
-
-
-
-public function setType($type)
-{
-$this->type = $type;
-}
-
-
-
-
-public function getType()
-{
-return $this->type ?: 'library';
-}
-
-
-
-
-public function getStability()
-{
-return $this->stability;
-}
-
-
-
-
-public function setTargetDir($targetDir)
-{
-$this->targetDir = $targetDir;
-}
-
-
-
-
-public function getTargetDir()
-{
-if (null === $this->targetDir) {
-return;
-}
-
-return ltrim(preg_replace('{ (?:^|[\\\\/]+) \.\.? (?:[\\\\/]+|$) (?:\.\.? (?:[\\\\/]+|$) )*}x', '/', $this->targetDir), '/');
-}
-
-
-
-
-public function setExtra(array $extra)
-{
-$this->extra = $extra;
-}
-
-
-
-
-public function getExtra()
-{
-return $this->extra;
-}
-
-
-
-
-public function setBinaries(array $binaries)
-{
-$this->binaries = $binaries;
-}
-
-
-
-
-public function getBinaries()
-{
-return $this->binaries;
-}
-
-
-
-
-public function setInstallationSource($type)
-{
-$this->installationSource = $type;
-}
-
-
-
-
-public function getInstallationSource()
-{
-return $this->installationSource;
-}
-
-
-
-
-public function setSourceType($type)
-{
-$this->sourceType = $type;
-}
-
-
-
-
-public function getSourceType()
-{
-return $this->sourceType;
-}
-
-
-
-
-public function setSourceUrl($url)
-{
-$this->sourceUrl = $url;
-}
-
-
-
-
-public function getSourceUrl()
-{
-return $this->sourceUrl;
-}
-
-
-
-
-public function setSourceReference($reference)
-{
-$this->sourceReference = $reference;
-}
-
-
-
-
-public function getSourceReference()
-{
-return $this->sourceReference;
-}
-
-
-
-
-public function setSourceMirrors($mirrors)
-{
-$this->sourceMirrors = $mirrors;
-}
-
-
-
-
-public function getSourceMirrors()
-{
-return $this->sourceMirrors;
-}
-
-
-
-
-public function getSourceUrls()
-{
-return $this->getUrls($this->sourceUrl, $this->sourceMirrors, $this->sourceReference, $this->sourceType, 'source');
-}
-
-
-
-
-public function setDistType($type)
-{
-$this->distType = $type;
-}
-
-
-
-
-public function getDistType()
-{
-return $this->distType;
-}
-
-
-
-
-public function setDistUrl($url)
-{
-$this->distUrl = $url;
-}
-
-
-
-
-public function getDistUrl()
-{
-return $this->distUrl;
-}
-
-
-
-
-public function setDistReference($reference)
-{
-$this->distReference = $reference;
-}
-
-
-
-
-public function getDistReference()
-{
-return $this->distReference;
-}
-
-
-
-
-public function setDistSha1Checksum($sha1checksum)
-{
-$this->distSha1Checksum = $sha1checksum;
-}
-
-
-
-
-public function getDistSha1Checksum()
-{
-return $this->distSha1Checksum;
-}
-
-
-
-
-public function setDistMirrors($mirrors)
-{
-$this->distMirrors = $mirrors;
-}
-
-
-
-
-public function getDistMirrors()
-{
-return $this->distMirrors;
-}
-
-
-
-
-public function getDistUrls()
-{
-return $this->getUrls($this->distUrl, $this->distMirrors, $this->distReference, $this->distType, 'dist');
-}
-
-
-
-
-public function getVersion()
-{
-return $this->version;
-}
-
-
-
-
-public function getPrettyVersion()
-{
-return $this->prettyVersion;
-}
-
-
-
-
-
-
-public function setReleaseDate(\DateTime $releaseDate)
-{
-$this->releaseDate = $releaseDate;
-}
-
-
-
-
-public function getReleaseDate()
-{
-return $this->releaseDate;
-}
-
-
-
-
-
-
-public function setRequires(array $requires)
-{
-$this->requires = $requires;
-}
-
-
-
-
-public function getRequires()
-{
-return $this->requires;
-}
-
-
-
-
-
-
-public function setConflicts(array $conflicts)
-{
-$this->conflicts = $conflicts;
-}
-
-
-
-
-public function getConflicts()
-{
-return $this->conflicts;
-}
-
-
-
-
-
-
-public function setProvides(array $provides)
-{
-$this->provides = $provides;
-}
-
-
-
-
-public function getProvides()
-{
-return $this->provides;
-}
-
-
-
-
-
-
-public function setReplaces(array $replaces)
-{
-$this->replaces = $replaces;
-}
-
-
-
-
-public function getReplaces()
-{
-return $this->replaces;
-}
-
-
-
-
-
-
-public function setDevRequires(array $devRequires)
-{
-$this->devRequires = $devRequires;
-}
-
-
-
-
-public function getDevRequires()
-{
-return $this->devRequires;
-}
-
-
-
-
-
-
-public function setSuggests(array $suggests)
-{
-$this->suggests = $suggests;
-}
-
-
-
-
-public function getSuggests()
-{
-return $this->suggests;
-}
-
-
-
-
-
-
-public function setAutoload(array $autoload)
-{
-$this->autoload = $autoload;
-}
-
-
-
-
-public function getAutoload()
-{
-return $this->autoload;
-}
-
-
-
-
-
-
-public function setDevAutoload(array $devAutoload)
-{
-$this->devAutoload = $devAutoload;
-}
-
-
-
-
-public function getDevAutoload()
-{
-return $this->devAutoload;
-}
-
-
-
-
-
-
-public function setIncludePaths(array $includePaths)
-{
-$this->includePaths = $includePaths;
-}
-
-
-
-
-public function getIncludePaths()
-{
-return $this->includePaths;
-}
-
-
-
-
-
-
-public function setNotificationUrl($notificationUrl)
-{
-$this->notificationUrl = $notificationUrl;
-}
-
-
-
-
-public function getNotificationUrl()
-{
-return $this->notificationUrl;
-}
-
-
-
-
-
-
-public function setArchiveExcludes(array $excludes)
-{
-$this->archiveExcludes = $excludes;
-}
-
-
-
-
-public function getArchiveExcludes()
-{
-return $this->archiveExcludes;
-}
-
-
-
-
-
-
-
-
-public function replaceVersion($version, $prettyVersion)
-{
-$this->version = $version;
-$this->prettyVersion = $prettyVersion;
-
-$this->stability = VersionParser::parseStability($version);
-$this->dev = $this->stability === 'dev';
-}
-
-protected function getUrls($url, $mirrors, $ref, $type, $urlType)
-{
-if (!$url) {
-return array();
-}
-$urls = array($url);
-if ($mirrors) {
-foreach ($mirrors as $mirror) {
-if ($urlType === 'dist') {
-$mirrorUrl = ComposerMirror::processUrl($mirror['url'], $this->name, $this->version, $ref, $type);
-} elseif ($urlType === 'source' && $type === 'git') {
-$mirrorUrl = ComposerMirror::processGitUrl($mirror['url'], $this->name, $url, $type);
-} elseif ($urlType === 'source' && $type === 'hg') {
-$mirrorUrl = ComposerMirror::processHgUrl($mirror['url'], $this->name, $url, $type);
-}
-if (!in_array($mirrorUrl, $urls)) {
-$func = $mirror['preferred'] ? 'array_unshift' : 'array_push';
-$func($urls, $mirrorUrl);
-}
-}
-}
-
-return $urls;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package;
-
-use Composer\Repository\RepositoryInterface;
-
-
-
-
-
-
-interface PackageInterface
-{
-
-
-
-
-
-public function getName();
-
-
-
-
-
-
-public function getPrettyName();
-
-
-
-
-
-
-
-
-
-public function getNames();
-
-
-
-
-
-
-public function setId($id);
-
-
-
-
-
-
-public function getId();
-
-
-
-
-
-
-public function isDev();
-
-
-
-
-
-
-public function getType();
-
-
-
-
-
-
-public function getTargetDir();
-
-
-
-
-
-
-public function getExtra();
-
-
-
-
-
-
-public function setInstallationSource($type);
-
-
-
-
-
-
-public function getInstallationSource();
-
-
-
-
-
-
-public function getSourceType();
-
-
-
-
-
-
-public function getSourceUrl();
-
-
-
-
-
-
-public function getSourceUrls();
-
-
-
-
-
-
-public function getSourceReference();
-
-
-
-
-
-
-public function getSourceMirrors();
-
-
-
-
-
-
-public function getDistType();
-
-
-
-
-
-
-public function getDistUrl();
-
-
-
-
-
-
-public function getDistUrls();
-
-
-
-
-
-
-public function getDistReference();
-
-
-
-
-
-
-public function getDistSha1Checksum();
-
-
-
-
-
-
-public function getDistMirrors();
-
-
-
-
-
-
-public function getVersion();
-
-
-
-
-
-
-public function getPrettyVersion();
-
-
-
-
-
-
-
-
-
-public function getFullPrettyVersion($truncate = true);
-
-
-
-
-
-
-public function getReleaseDate();
-
-
-
-
-
-
-public function getStability();
-
-
-
-
-
-
-
-public function getRequires();
-
-
-
-
-
-
-
-public function getConflicts();
-
-
-
-
-
-
-
-public function getProvides();
-
-
-
-
-
-
-
-public function getReplaces();
-
-
-
-
-
-
-
-public function getDevRequires();
-
-
-
-
-
-
-
-public function getSuggests();
-
-
-
-
-
-
-
-
-
-
-
-public function getAutoload();
-
-
-
-
-
-
-
-
-
-
-
-public function getDevAutoload();
-
-
-
-
-
-
-
-public function getIncludePaths();
-
-
-
-
-
-
-public function setRepository(RepositoryInterface $repository);
-
-
-
-
-
-
-public function getRepository();
-
-
-
-
-
-
-public function getBinaries();
-
-
-
-
-
-
-public function getUniqueName();
-
-
-
-
-
-
-public function getNotificationUrl();
-
-
-
-
-
-
-public function __toString();
-
-
-
-
-
-
-public function getPrettyString();
-
-
-
-
-
-
-public function getArchiveExcludes();
-
-
-
-
-
-
-public function getTransportOptions();
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package;
-
-
-
-
-class RootAliasPackage extends AliasPackage implements RootPackageInterface
-{
-public function __construct(RootPackageInterface $aliasOf, $version, $prettyVersion)
-{
-parent::__construct($aliasOf, $version, $prettyVersion);
-}
-
-
-
-
-public function getAliases()
-{
-return $this->aliasOf->getAliases();
-}
-
-
-
-
-public function getMinimumStability()
-{
-return $this->aliasOf->getMinimumStability();
-}
-
-
-
-
-public function getStabilityFlags()
-{
-return $this->aliasOf->getStabilityFlags();
-}
-
-
-
-
-public function getReferences()
-{
-return $this->aliasOf->getReferences();
-}
-
-
-
-
-public function getPreferStable()
-{
-return $this->aliasOf->getPreferStable();
-}
-
-
-
-
-public function getConfig()
-{
-return $this->aliasOf->getConfig();
-}
-
-
-
-
-public function setRequires(array $require)
-{
-$this->requires = $this->replaceSelfVersionDependencies($require, 'requires');
-
-$this->aliasOf->setRequires($require);
-}
-
-
-
-
-public function setDevRequires(array $devRequire)
-{
-$this->devRequires = $this->replaceSelfVersionDependencies($devRequire, 'devRequires');
-
-$this->aliasOf->setDevRequires($devRequire);
-}
-
-
-
-
-public function setConflicts(array $conflicts)
-{
-$this->conflicts = $this->replaceSelfVersionDependencies($conflicts, 'conflicts');
-$this->aliasOf->setConflicts($conflicts);
-}
-
-
-
-
-public function setProvides(array $provides)
-{
-$this->provides = $this->replaceSelfVersionDependencies($provides, 'provides');
-$this->aliasOf->setProvides($provides);
-}
-
-
-
-
-public function setReplaces(array $replaces)
-{
-$this->replaces = $this->replaceSelfVersionDependencies($replaces, 'replaces');
-$this->aliasOf->setReplaces($replaces);
-}
-
-
-
-
-public function setRepositories($repositories)
-{
-$this->aliasOf->setRepositories($repositories);
-}
-
-
-
-
-public function setAutoload(array $autoload)
-{
-$this->aliasOf->setAutoload($autoload);
-}
-
-
-
-
-public function setDevAutoload(array $devAutoload)
-{
-$this->aliasOf->setDevAutoload($devAutoload);
-}
-
-
-
-
-public function setStabilityFlags(array $stabilityFlags)
-{
-$this->aliasOf->setStabilityFlags($stabilityFlags);
-}
-
-
-
-
-public function setSuggests(array $suggests)
-{
-$this->aliasOf->setSuggests($suggests);
-}
-
-
-
-
-public function setExtra(array $extra)
-{
-$this->aliasOf->setExtra($extra);
-}
-
-public function __clone()
-{
-parent::__clone();
-$this->aliasOf = clone $this->aliasOf;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package;
-
-
-
-
-
-
-class RootPackage extends CompletePackage implements RootPackageInterface
-{
-protected $minimumStability = 'stable';
-protected $preferStable = false;
-protected $stabilityFlags = array();
-protected $config = array();
-protected $references = array();
-protected $aliases = array();
-
-
-
-
-
-
-public function setMinimumStability($minimumStability)
-{
-$this->minimumStability = $minimumStability;
-}
-
-
-
-
-public function getMinimumStability()
-{
-return $this->minimumStability;
-}
-
-
-
-
-
-
-public function setStabilityFlags(array $stabilityFlags)
-{
-$this->stabilityFlags = $stabilityFlags;
-}
-
-
-
-
-public function getStabilityFlags()
-{
-return $this->stabilityFlags;
-}
-
-
-
-
-
-
-public function setPreferStable($preferStable)
-{
-$this->preferStable = $preferStable;
-}
-
-
-
-
-public function getPreferStable()
-{
-return $this->preferStable;
-}
-
-
-
-
-
-
-public function setConfig(array $config)
-{
-$this->config = $config;
-}
-
-
-
-
-public function getConfig()
-{
-return $this->config;
-}
-
-
-
-
-
-
-public function setReferences(array $references)
-{
-$this->references = $references;
-}
-
-
-
-
-public function getReferences()
-{
-return $this->references;
-}
-
-
-
-
-
-
-public function setAliases(array $aliases)
-{
-$this->aliases = $aliases;
-}
-
-
-
-
-public function getAliases()
-{
-return $this->aliases;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package;
-
-
-
-
-
-
-interface RootPackageInterface extends CompletePackageInterface
-{
-
-
-
-
-
-public function getAliases();
-
-
-
-
-
-
-public function getMinimumStability();
-
-
-
-
-
-
-
-
-public function getStabilityFlags();
-
-
-
-
-
-
-
-
-public function getReferences();
-
-
-
-
-
-
-public function getPreferStable();
-
-
-
-
-
-
-public function getConfig();
-
-
-
-
-
-
-public function setRequires(array $requires);
-
-
-
-
-
-
-public function setDevRequires(array $devRequires);
-
-
-
-
-
-
-public function setConflicts(array $conflicts);
-
-
-
-
-
-
-public function setProvides(array $provides);
-
-
-
-
-
-
-public function setReplaces(array $replaces);
-
-
-
-
-
-
-public function setRepositories($repositories);
-
-
-
-
-
-
-public function setAutoload(array $autoload);
-
-
-
-
-
-
-public function setDevAutoload(array $devAutoload);
-
-
-
-
-
-
-public function setStabilityFlags(array $stabilityFlags);
-
-
-
-
-
-
-public function setSuggests(array $suggests);
-
-
-
-
-public function setExtra(array $extra);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\Version;
-
-use Composer\Config;
-use Composer\Repository\Vcs\HgDriver;
-use Composer\IO\NullIO;
-use Composer\Semver\VersionParser as SemverVersionParser;
-use Composer\Util\Git as GitUtil;
-use Composer\Util\ProcessExecutor;
-use Composer\Util\Svn as SvnUtil;
-
-
-
-
-
-
-
-class VersionGuesser
-{
-
-
-
-private $config;
-
-
-
-
-private $process;
-
-
-
-
-private $versionParser;
-
-
-
-
-
-
-public function __construct(Config $config, ProcessExecutor $process, SemverVersionParser $versionParser)
-{
-$this->config = $config;
-$this->process = $process;
-$this->versionParser = $versionParser;
-}
-
-
-
-
-
-
-
-public function guessVersion(array $packageConfig, $path)
-{
-if (function_exists('proc_open')) {
-$versionData = $this->guessGitVersion($packageConfig, $path);
-if (null !== $versionData && null !== $versionData['version']) {
-return $this->postprocess($versionData);
-}
-
-$versionData = $this->guessHgVersion($packageConfig, $path);
-if (null !== $versionData && null !== $versionData['version']) {
-return $this->postprocess($versionData);
-}
-
-$versionData = $this->guessFossilVersion($packageConfig, $path);
-if (null !== $versionData && null !== $versionData['version']) {
-return $this->postprocess($versionData);
-}
-
-$versionData = $this->guessSvnVersion($packageConfig, $path);
-if (null !== $versionData && null !== $versionData['version']) {
-return $this->postprocess($versionData);
-}
-}
-}
-
-private function postprocess(array $versionData)
-{
-if ('-dev' === substr($versionData['version'], -4) && preg_match('{\.9{7}}', $versionData['version'])) {
-$versionData['pretty_version'] = preg_replace('{(\.9{7})+}', '.x', $versionData['version']);
-}
-
-return $versionData;
-}
-
-private function guessGitVersion(array $packageConfig, $path)
-{
-GitUtil::cleanEnv();
-$commit = null;
-$version = null;
-$prettyVersion = null;
-$isDetached = false;
-
-
- if (0 === $this->process->execute('git branch --no-color --no-abbrev -v', $output, $path)) {
-$branches = array();
-$isFeatureBranch = false;
-
-
- foreach ($this->process->splitLines($output) as $branch) {
-if ($branch && preg_match('{^(?:\* ) *(\(no branch\)|\(detached from \S+\)|\(HEAD detached at \S+\)|\S+) *([a-f0-9]+) .*$}', $branch, $match)) {
-if ($match[1] === '(no branch)' || substr($match[1], 0, 10) === '(detached ' || substr($match[1], 0, 17) === '(HEAD detached at') {
-$version = 'dev-' . $match[2];
-$prettyVersion = $version;
-$isFeatureBranch = true;
-$isDetached = true;
-} else {
-$version = $this->versionParser->normalizeBranch($match[1]);
-$prettyVersion = 'dev-' . $match[1];
-$isFeatureBranch = 0 === strpos($version, 'dev-');
-}
-
-if ($match[2]) {
-$commit = $match[2];
-}
-}
-
-if ($branch && !preg_match('{^ *[^/]+/HEAD }', $branch)) {
-if (preg_match('{^(?:\* )? *(\S+) *([a-f0-9]+) .*$}', $branch, $match)) {
-$branches[] = $match[1];
-}
-}
-}
-
-if ($isFeatureBranch) {
-
- $result = $this->guessFeatureVersion($packageConfig, $version, $branches, 'git rev-list %candidate%..%branch%', $path);
-$version = $result['version'];
-$prettyVersion = $result['pretty_version'];
-}
-}
-
-if (!$version || $isDetached) {
-$result = $this->versionFromGitTags($path);
-if ($result) {
-$version = $result['version'];
-$prettyVersion = $result['pretty_version'];
-}
-}
-
-if (!$commit) {
-$command = 'git log --pretty="%H" -n1 HEAD';
-if (0 === $this->process->execute($command, $output, $path)) {
-$commit = trim($output) ?: null;
-}
-}
-
-return array('version' => $version, 'commit' => $commit, 'pretty_version' => $prettyVersion);
-}
-
-private function versionFromGitTags($path)
-{
-
- if (0 === $this->process->execute('git describe --exact-match --tags', $output, $path)) {
-try {
-$version = $this->versionParser->normalize(trim($output));
-
-return array('version' => $version, 'pretty_version' => trim($output));
-} catch (\Exception $e) {
-}
-}
-
-return null;
-}
-
-private function guessHgVersion(array $packageConfig, $path)
-{
-
- if (0 === $this->process->execute('hg branch', $output, $path)) {
-$branch = trim($output);
-$version = $this->versionParser->normalizeBranch($branch);
-$isFeatureBranch = 0 === strpos($version, 'dev-');
-
-if ('9999999-dev' === $version) {
-return array('version' => $version, 'commit' => null, 'pretty_version' => 'dev-'.$branch);
-}
-
-if (!$isFeatureBranch) {
-return array('version' => $version, 'commit' => null, 'pretty_version' => $version);
-}
-
-
- $driver = new HgDriver(array('url' => $path), new NullIO(), $this->config, $this->process);
-$branches = array_keys($driver->getBranches());
-
-
- $result = $this->guessFeatureVersion($packageConfig, $version, $branches, 'hg log -r "not ancestors(\'%candidate%\') and ancestors(\'%branch%\')" --template "{node}\\n"', $path);
-$result['commit'] = '';
-
-return $result;
-}
-}
-
-private function guessFeatureVersion(array $packageConfig, $version, array $branches, $scmCmdline, $path)
-{
-$prettyVersion = $version;
-
-
- 
- if ((isset($packageConfig['extra']['branch-alias']) && !isset($packageConfig['extra']['branch-alias'][$version]))
-|| strpos(json_encode($packageConfig), '"self.version"')
-) {
-$branch = preg_replace('{^dev-}', '', $version);
-$length = PHP_INT_MAX;
-
-$nonFeatureBranches = '';
-if (!empty($packageConfig['non-feature-branches'])) {
-$nonFeatureBranches = implode('|', $packageConfig['non-feature-branches']);
-}
-
-foreach ($branches as $candidate) {
-
- if ($candidate === $branch && preg_match('{^(' . $nonFeatureBranches . ')$}', $candidate)) {
-break;
-}
-
-
- if ($candidate === $branch || !preg_match('{^(' . $nonFeatureBranches . '|master|trunk|default|develop|\d+\..+)$}', $candidate, $match)) {
-continue;
-}
-
-$cmdLine = str_replace(array('%candidate%', '%branch%'), array($candidate, $branch), $scmCmdline);
-if (0 !== $this->process->execute($cmdLine, $output, $path)) {
-continue;
-}
-
-if (strlen($output) < $length) {
-$length = strlen($output);
-$version = $this->versionParser->normalizeBranch($candidate);
-$prettyVersion = 'dev-' . $match[1];
-}
-}
-}
-
-return array('version' => $version, 'pretty_version' => $prettyVersion);
-}
-
-private function guessFossilVersion(array $packageConfig, $path)
-{
-$version = null;
-$prettyVersion = null;
-
-
- if (0 === $this->process->execute('fossil branch list', $output, $path)) {
-$branch = trim($output);
-$version = $this->versionParser->normalizeBranch($branch);
-$prettyVersion = 'dev-' . $branch;
-}
-
-
- if (0 === $this->process->execute('fossil tag list', $output, $path)) {
-try {
-$version = $this->versionParser->normalize(trim($output));
-$prettyVersion = trim($output);
-} catch (\Exception $e) {
-}
-}
-
-return array('version' => $version, 'commit' => '', 'pretty_version' => $prettyVersion);
-}
-
-private function guessSvnVersion(array $packageConfig, $path)
-{
-SvnUtil::cleanEnv();
-
-
- if (0 === $this->process->execute('svn info --xml', $output, $path)) {
-$trunkPath = isset($packageConfig['trunk-path']) ? preg_quote($packageConfig['trunk-path'], '#') : 'trunk';
-$branchesPath = isset($packageConfig['branches-path']) ? preg_quote($packageConfig['branches-path'], '#') : 'branches';
-$tagsPath = isset($packageConfig['tags-path']) ? preg_quote($packageConfig['tags-path'], '#') : 'tags';
-
-$urlPattern = '#<url>.*/(' . $trunkPath . '|(' . $branchesPath . '|' . $tagsPath . ')/(.*))</url>#';
-
-if (preg_match($urlPattern, $output, $matches)) {
-if (isset($matches[2]) && ($branchesPath === $matches[2] || $tagsPath === $matches[2])) {
-
- $version = $this->versionParser->normalizeBranch($matches[3]);
-$prettyVersion = 'dev-' . $matches[3];
-
-return array('version' => $version, 'commit' => '', 'pretty_version' => $prettyVersion);
-}
-
-$prettyVersion = trim($matches[1]);
-$version = $this->versionParser->normalize($prettyVersion);
-
-return array('version' => $version, 'commit' => '', 'pretty_version' => $prettyVersion);
-}
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\Version;
-
-use Composer\Repository\PlatformRepository;
-use Composer\Semver\VersionParser as SemverVersionParser;
-use Composer\Semver\Semver;
-
-class VersionParser extends SemverVersionParser
-{
-private static $constraints = array();
-
-
-
-
-public function parseConstraints($constraints)
-{
-if (!isset(self::$constraints[$constraints])) {
-self::$constraints[$constraints] = parent::parseConstraints($constraints);
-}
-
-return self::$constraints[$constraints];
-}
-
-
-
-
-
-
-
-
-
-
-
-public function parseNameVersionPairs(array $pairs)
-{
-$pairs = array_values($pairs);
-$result = array();
-
-for ($i = 0, $count = count($pairs); $i < $count; $i++) {
-$pair = preg_replace('{^([^=: ]+)[=: ](.*)$}', '$1 $2', trim($pairs[$i]));
-if (false === strpos($pair, ' ') && isset($pairs[$i + 1]) && false === strpos($pairs[$i + 1], '/') && !preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $pairs[$i + 1])) {
-$pair .= ' '.$pairs[$i + 1];
-$i++;
-}
-
-if (strpos($pair, ' ')) {
-list($name, $version) = explode(' ', $pair, 2);
-$result[] = array('name' => $name, 'version' => $version);
-} else {
-$result[] = array('name' => $pair);
-}
-}
-
-return $result;
-}
-
-
-
-
-public static function isUpgrade($normalizedFrom, $normalizedTo)
-{
-if (substr($normalizedFrom, 0, 4) === 'dev-' || substr($normalizedTo, 0, 4) === 'dev-') {
-return true;
-}
-
-$sorted = Semver::sort(array($normalizedTo, $normalizedFrom));
-
-return $sorted[0] === $normalizedFrom;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Package\Version;
-
-use Composer\DependencyResolver\Pool;
-use Composer\Package\BasePackage;
-use Composer\Package\PackageInterface;
-use Composer\Package\Loader\ArrayLoader;
-use Composer\Package\Dumper\ArrayDumper;
-use Composer\Semver\Constraint\Constraint;
-
-
-
-
-
-
-
-class VersionSelector
-{
-private $pool;
-
-private $parser;
-
-public function __construct(Pool $pool)
-{
-$this->pool = $pool;
-}
-
-
-
-
-
-
-
-
-
-
-
-public function findBestCandidate($packageName, $targetPackageVersion = null, $targetPhpVersion = null, $preferredStability = 'stable')
-{
-$constraint = $targetPackageVersion ? $this->getParser()->parseConstraints($targetPackageVersion) : null;
-$candidates = $this->pool->whatProvides(strtolower($packageName), $constraint, true);
-
-if ($targetPhpVersion) {
-$phpConstraint = new Constraint('==', $this->getParser()->normalize($targetPhpVersion));
-$candidates = array_filter($candidates, function ($pkg) use ($phpConstraint) {
-$reqs = $pkg->getRequires();
-
-return !isset($reqs['php']) || $reqs['php']->getConstraint()->matches($phpConstraint);
-});
-}
-
-if (!$candidates) {
-return false;
-}
-
-
- $package = reset($candidates);
-$minPriority = BasePackage::$stabilities[$preferredStability];
-foreach ($candidates as $candidate) {
-$candidatePriority = $candidate->getStabilityPriority();
-$currentPriority = $package->getStabilityPriority();
-
-
- 
- if ($minPriority < $candidatePriority && $currentPriority < $candidatePriority) {
-continue;
-}
-
-
- 
- if ($minPriority < $candidatePriority && $candidatePriority < $currentPriority) {
-$package = $candidate;
-continue;
-}
-
-
- 
- if ($minPriority >= $candidatePriority && $minPriority < $currentPriority) {
-$package = $candidate;
-continue;
-}
-
-
- if (version_compare($package->getVersion(), $candidate->getVersion(), '<')) {
-$package = $candidate;
-}
-}
-
-return $package;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function findRecommendedRequireVersion(PackageInterface $package)
-{
-$version = $package->getVersion();
-if (!$package->isDev()) {
-return $this->transformVersion($version, $package->getPrettyVersion(), $package->getStability());
-}
-
-$loader = new ArrayLoader($this->getParser());
-$dumper = new ArrayDumper();
-$extra = $loader->getBranchAlias($dumper->dump($package));
-if ($extra) {
-$extra = preg_replace('{^(\d+\.\d+\.\d+)(\.9999999)-dev$}', '$1.0', $extra, -1, $count);
-if ($count) {
-$extra = str_replace('.9999999', '.0', $extra);
-
-return $this->transformVersion($extra, $extra, 'dev');
-}
-}
-
-return $package->getPrettyVersion();
-}
-
-private function transformVersion($version, $prettyVersion, $stability)
-{
-
- 
- $semanticVersionParts = explode('.', $version);
-
-
- if (count($semanticVersionParts) == 4 && preg_match('{^0\D?}', $semanticVersionParts[3])) {
-
- if ($semanticVersionParts[0] === '0') {
-unset($semanticVersionParts[3]);
-} else {
-unset($semanticVersionParts[2], $semanticVersionParts[3]);
-}
-$version = implode('.', $semanticVersionParts);
-} else {
-return $prettyVersion;
-}
-
-
- if ($stability != 'stable') {
-$version .= '@'.$stability;
-}
-
-
- return '^' . $version;
-}
-
-private function getParser()
-{
-if ($this->parser === null) {
-$this->parser = new VersionParser();
-}
-
-return $this->parser;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Plugin\Capability;
-
-
-
-
-
-
-
-interface Capability
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Plugin\Capability;
-
-
-
-
-
-
-
-
-
-
-
-interface CommandProvider extends Capability
-{
-
-
-
-
-
-public function getCommands();
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Plugin;
-
-
-
-
-
-
-
-
-interface Capable
-{
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function getCapabilities();
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Plugin;
-
-use Composer\EventDispatcher\Event;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-
-
-class CommandEvent extends Event
-{
-
-
-
-private $commandName;
-
-
-
-
-private $input;
-
-
-
-
-private $output;
-
-
-
-
-
-
-
-
-
-
-
-public function __construct($name, $commandName, $input, $output, array $args = array(), array $flags = array())
-{
-parent::__construct($name, $args, $flags);
-$this->commandName = $commandName;
-$this->input = $input;
-$this->output = $output;
-}
-
-
-
-
-
-
-public function getInput()
-{
-return $this->input;
-}
-
-
-
-
-
-
-public function getOutput()
-{
-return $this->output;
-}
-
-
-
-
-
-
-public function getCommandName()
-{
-return $this->commandName;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Plugin;
-
-
-
-
-
-
-class PluginEvents
-{
-
-
-
-
-
-
-
-
-const INIT = 'init';
-
-
-
-
-
-
-
-
-
-const COMMAND = 'command';
-
-
-
-
-
-
-
-
-
-const PRE_FILE_DOWNLOAD = 'pre-file-download';
-
-
-
-
-
-
-
-
-
-const PRE_COMMAND_RUN = 'pre-command-run';
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Plugin;
-
-use Composer\Composer;
-use Composer\IO\IOInterface;
-
-
-
-
-
-
-interface PluginInterface
-{
-
-
-
-
-
-const PLUGIN_API_VERSION = '1.1.0';
-
-
-
-
-
-
-
-public function activate(Composer $composer, IOInterface $io);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Plugin;
-
-use Composer\Composer;
-use Composer\EventDispatcher\EventSubscriberInterface;
-use Composer\IO\IOInterface;
-use Composer\Package\Package;
-use Composer\Package\Version\VersionParser;
-use Composer\Repository\RepositoryInterface;
-use Composer\Package\AliasPackage;
-use Composer\Package\PackageInterface;
-use Composer\Package\Link;
-use Composer\Semver\Constraint\Constraint;
-use Composer\DependencyResolver\Pool;
-use Composer\Plugin\Capability\Capability;
-
-
-
-
-
-
-
-class PluginManager
-{
-protected $composer;
-protected $io;
-protected $globalComposer;
-protected $versionParser;
-protected $disablePlugins = false;
-
-protected $plugins = array();
-protected $registeredPlugins = array();
-
-private static $classCounter = 0;
-
-
-
-
-
-
-
-
-
-public function __construct(IOInterface $io, Composer $composer, Composer $globalComposer = null, $disablePlugins = false)
-{
-$this->io = $io;
-$this->composer = $composer;
-$this->globalComposer = $globalComposer;
-$this->versionParser = new VersionParser();
-$this->disablePlugins = $disablePlugins;
-}
-
-
-
-
-public function loadInstalledPlugins()
-{
-if ($this->disablePlugins) {
-return;
-}
-
-$repo = $this->composer->getRepositoryManager()->getLocalRepository();
-$globalRepo = $this->globalComposer ? $this->globalComposer->getRepositoryManager()->getLocalRepository() : null;
-if ($repo) {
-$this->loadRepository($repo);
-}
-if ($globalRepo) {
-$this->loadRepository($globalRepo);
-}
-}
-
-
-
-
-
-
-public function getPlugins()
-{
-return $this->plugins;
-}
-
-
-
-
-
-
-public function getGlobalComposer()
-{
-return $this->globalComposer;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function registerPackage(PackageInterface $package, $failOnMissingClasses = false)
-{
-if ($this->disablePlugins) {
-return;
-}
-
-if ($package->getType() === 'composer-plugin') {
-$requiresComposer = null;
-foreach ($package->getRequires() as $link) { 
-if ('composer-plugin-api' === $link->getTarget()) {
-$requiresComposer = $link->getConstraint();
-break;
-}
-}
-
-if (!$requiresComposer) {
-throw new \RuntimeException("Plugin ".$package->getName()." is missing a require statement for a version of the composer-plugin-api package.");
-}
-
-$currentPluginApiVersion = $this->getPluginApiVersion();
-$currentPluginApiConstraint = new Constraint('==', $this->versionParser->normalize($currentPluginApiVersion));
-
-if ($requiresComposer->getPrettyString() === '1.0.0' && $this->getPluginApiVersion() === '1.0.0') {
-$this->io->writeError('<warning>The "' . $package->getName() . '" plugin requires composer-plugin-api 1.0.0, this *WILL* break in the future and it should be fixed ASAP (require ^1.0 for example).</warning>');
-} elseif (!$requiresComposer->matches($currentPluginApiConstraint)) {
-$this->io->writeError('<warning>The "' . $package->getName() . '" plugin was skipped because it requires a Plugin API version ("' . $requiresComposer->getPrettyString() . '") that does not match your Composer installation ("' . $currentPluginApiVersion . '"). You may need to run composer update with the "--no-plugins" option.</warning>');
-
-return;
-}
-}
-
-$oldInstallerPlugin = ($package->getType() === 'composer-installer');
-
-if (in_array($package->getName(), $this->registeredPlugins)) {
-return;
-}
-
-$extra = $package->getExtra();
-if (empty($extra['class'])) {
-throw new \UnexpectedValueException('Error while installing '.$package->getPrettyName().', composer-plugin packages should have a class defined in their extra key to be usable.');
-}
-$classes = is_array($extra['class']) ? $extra['class'] : array($extra['class']);
-
-$localRepo = $this->composer->getRepositoryManager()->getLocalRepository();
-$globalRepo = $this->globalComposer ? $this->globalComposer->getRepositoryManager()->getLocalRepository() : null;
-
-$pool = new Pool('dev');
-$pool->addRepository($localRepo);
-if ($globalRepo) {
-$pool->addRepository($globalRepo);
-}
-
-$autoloadPackages = array($package->getName() => $package);
-$autoloadPackages = $this->collectDependencies($pool, $autoloadPackages, $package);
-
-$generator = $this->composer->getAutoloadGenerator();
-$autoloads = array();
-foreach ($autoloadPackages as $autoloadPackage) {
-$downloadPath = $this->getInstallPath($autoloadPackage, $globalRepo && $globalRepo->hasPackage($autoloadPackage));
-$autoloads[] = array($autoloadPackage, $downloadPath);
-}
-
-$map = $generator->parseAutoloads($autoloads, new Package('dummy', '1.0.0.0', '1.0.0'));
-$classLoader = $generator->createLoader($map);
-$classLoader->register();
-
-foreach ($classes as $class) {
-if (class_exists($class, false)) {
-$class = trim($class, '\\');
-$path = $classLoader->findFile($class);
-$code = file_get_contents($path);
-$separatorPos = strrpos($class, '\\');
-$className = $class;
-if ($separatorPos) {
-$className = substr($class, $separatorPos + 1);
-}
-$code = preg_replace('{^((?:final\s+)?(?:\s*))class\s+('.preg_quote($className).')}mi', '$1class $2_composer_tmp'.self::$classCounter, $code, 1);
-$code = str_replace('__FILE__', var_export($path, true), $code);
-$code = str_replace('__DIR__', var_export(dirname($path), true), $code);
-$code = str_replace('__CLASS__', var_export($class, true), $code);
-$code = preg_replace('/^\s*<\?(php)?/i', '', $code, 1);
-eval($code);
-$class .= '_composer_tmp'.self::$classCounter;
-self::$classCounter++;
-}
-
-if ($oldInstallerPlugin) {
-$installer = new $class($this->io, $this->composer);
-$this->composer->getInstallationManager()->addInstaller($installer);
-} elseif (class_exists($class)) {
-$plugin = new $class();
-$this->addPlugin($plugin);
-$this->registeredPlugins[] = $package->getName();
-} elseif ($failOnMissingClasses) {
-throw new \UnexpectedValueException('Plugin '.$package->getName().' could not be initialized, class not found: '.$class);
-}
-}
-}
-
-
-
-
-
-
-protected function getPluginApiVersion()
-{
-return PluginInterface::PLUGIN_API_VERSION;
-}
-
-
-
-
-
-
-
-
-
-
-public function addPlugin(PluginInterface $plugin)
-{
-$this->io->writeError('Loading plugin '.get_class($plugin), true, IOInterface::DEBUG);
-$this->plugins[] = $plugin;
-$plugin->activate($this->composer, $this->io);
-
-if ($plugin instanceof EventSubscriberInterface) {
-$this->composer->getEventDispatcher()->addSubscriber($plugin);
-}
-}
-
-
-
-
-
-
-
-
-
-
-
-
-private function loadRepository(RepositoryInterface $repo)
-{
-foreach ($repo->getPackages() as $package) { 
-if ($package instanceof AliasPackage) {
-continue;
-}
-if ('composer-plugin' === $package->getType()) {
-$this->registerPackage($package);
-
- } elseif ('composer-installer' === $package->getType()) {
-$this->registerPackage($package);
-}
-}
-}
-
-
-
-
-
-
-
-
-
-
-private function collectDependencies(Pool $pool, array $collected, PackageInterface $package)
-{
-$requires = array_merge(
-$package->getRequires(),
-$package->getDevRequires()
-);
-
-foreach ($requires as $requireLink) {
-$requiredPackage = $this->lookupInstalledPackage($pool, $requireLink);
-if ($requiredPackage && !isset($collected[$requiredPackage->getName()])) {
-$collected[$requiredPackage->getName()] = $requiredPackage;
-$collected = $this->collectDependencies($pool, $collected, $requiredPackage);
-}
-}
-
-return $collected;
-}
-
-
-
-
-
-
-
-
-
-
-
-private function lookupInstalledPackage(Pool $pool, Link $link)
-{
-$packages = $pool->whatProvides($link->getTarget(), $link->getConstraint());
-
-return !empty($packages) ? $packages[0] : null;
-}
-
-
-
-
-
-
-
-
-
-private function getInstallPath(PackageInterface $package, $global = false)
-{
-if (!$global) {
-return $this->composer->getInstallationManager()->getInstallPath($package);
-}
-
-return $this->globalComposer->getInstallationManager()->getInstallPath($package);
-}
-
-
-
-
-
-
-
-protected function getCapabilityImplementationClassName(PluginInterface $plugin, $capability)
-{
-if (!($plugin instanceof Capable)) {
-return null;
-}
-
-$capabilities = (array) $plugin->getCapabilities();
-
-if (!empty($capabilities[$capability]) && is_string($capabilities[$capability]) && trim($capabilities[$capability])) {
-return trim($capabilities[$capability]);
-}
-
-if (
-array_key_exists($capability, $capabilities)
-&& (empty($capabilities[$capability]) || !is_string($capabilities[$capability]) || !trim($capabilities[$capability]))
-) {
-throw new \UnexpectedValueException('Plugin '.get_class($plugin).' provided invalid capability class name(s), got '.var_export($capabilities[$capability], 1));
-}
-}
-
-
-
-
-
-
-
-
-
-public function getPluginCapability(PluginInterface $plugin, $capabilityClassName, array $ctorArgs = array())
-{
-if ($capabilityClass = $this->getCapabilityImplementationClassName($plugin, $capabilityClassName)) {
-if (!class_exists($capabilityClass)) {
-throw new \RuntimeException("Cannot instantiate Capability, as class $capabilityClass from plugin ".get_class($plugin)." does not exist.");
-}
-
-$ctorArgs['plugin'] = $plugin;
-$capabilityObj = new $capabilityClass($ctorArgs);
-
-
- if (!$capabilityObj instanceof Capability || !$capabilityObj instanceof $capabilityClassName) {
-throw new \RuntimeException(
-'Class ' . $capabilityClass . ' must implement both Composer\Plugin\Capability\Capability and '. $capabilityClassName . '.'
-);
-}
-
-return $capabilityObj;
-}
-}
-
-
-
-
-
-
-
-
-public function getPluginCapabilities($capabilityClassName, array $ctorArgs = array())
-{
-$capabilities = array();
-foreach ($this->getPlugins() as $plugin) {
-if ($capability = $this->getPluginCapability($plugin, $capabilityClassName, $ctorArgs)) {
-$capabilities[] = $capability;
-}
-}
-
-return $capabilities;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Plugin;
-
-use Composer\EventDispatcher\Event;
-use Symfony\Component\Console\Input\InputInterface;
-
-
-
-
-
-
-class PreCommandRunEvent extends Event
-{
-
-
-
-private $input;
-
-
-
-
-private $command;
-
-
-
-
-
-
-
-
-public function __construct($name, InputInterface $input, $command)
-{
-parent::__construct($name);
-$this->input = $input;
-$this->command = $command;
-}
-
-
-
-
-
-
-public function getInput()
-{
-return $this->input;
-}
-
-
-
-
-
-
-public function getCommand()
-{
-return $this->command;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Plugin;
-
-use Composer\EventDispatcher\Event;
-use Composer\Util\RemoteFilesystem;
-
-
-
-
-
-
-class PreFileDownloadEvent extends Event
-{
-
-
-
-private $rfs;
-
-
-
-
-private $processedUrl;
-
-
-
-
-
-
-
-
-public function __construct($name, RemoteFilesystem $rfs, $processedUrl)
-{
-parent::__construct($name);
-$this->rfs = $rfs;
-$this->processedUrl = $processedUrl;
-}
-
-
-
-
-
-
-public function getRemoteFilesystem()
-{
-return $this->rfs;
-}
-
-
-
-
-
-
-public function setRemoteFilesystem(RemoteFilesystem $rfs)
-{
-$this->rfs = $rfs;
-}
-
-
-
-
-
-
-public function getProcessedUrl()
-{
-return $this->processedUrl;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Question;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Question\Question;
-
-
-
-
-
-
-
-
-class StrictConfirmationQuestion extends Question
-{
-private $trueAnswerRegex;
-private $falseAnswerRegex;
-
-
-
-
-
-
-
-
-
-public function __construct($question, $default = true, $trueAnswerRegex = '/^y(?:es)?$/i', $falseAnswerRegex = '/^no?$/i')
-{
-parent::__construct($question, (bool) $default);
-
-$this->trueAnswerRegex = $trueAnswerRegex;
-$this->falseAnswerRegex = $falseAnswerRegex;
-$this->setNormalizer($this->getDefaultNormalizer());
-$this->setValidator($this->getDefaultValidator());
-}
-
-
-
-
-
-
-private function getDefaultNormalizer()
-{
-$default = $this->getDefault();
-$trueRegex = $this->trueAnswerRegex;
-$falseRegex = $this->falseAnswerRegex;
-
-return function ($answer) use ($default, $trueRegex, $falseRegex) {
-if (is_bool($answer)) {
-return $answer;
-}
-if (empty($answer) && !empty($default)) {
-return $default;
-}
-
-if (preg_match($trueRegex, $answer)) {
-return true;
-}
-
-if (preg_match($falseRegex, $answer)) {
-return false;
-}
-
-return null;
-};
-}
-
-
-
-
-
-
-private function getDefaultValidator()
-{
-return function ($answer) {
-if (!is_bool($answer)) {
-throw new InvalidArgumentException('Please answer yes, y, no, or n.');
-}
-
-return $answer;
-};
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-use Composer\Package\AliasPackage;
-use Composer\Package\PackageInterface;
-use Composer\Package\CompletePackageInterface;
-use Composer\Package\Version\VersionParser;
-use Composer\Semver\Constraint\ConstraintInterface;
-use Composer\Semver\Constraint\Constraint;
-
-
-
-
-
-
-class ArrayRepository extends BaseRepository
-{
-
-protected $packages;
-
-public function __construct(array $packages = array())
-{
-foreach ($packages as $package) {
-$this->addPackage($package);
-}
-}
-
-
-
-
-public function findPackage($name, $constraint)
-{
-$name = strtolower($name);
-
-if (!$constraint instanceof ConstraintInterface) {
-$versionParser = new VersionParser();
-$constraint = $versionParser->parseConstraints($constraint);
-}
-
-foreach ($this->getPackages() as $package) {
-if ($name === $package->getName()) {
-$pkgConstraint = new Constraint('==', $package->getVersion());
-if ($constraint->matches($pkgConstraint)) {
-return $package;
-}
-}
-}
-
-return null;
-}
-
-
-
-
-public function findPackages($name, $constraint = null)
-{
-
- $name = strtolower($name);
-$packages = array();
-
-if (null !== $constraint && !$constraint instanceof ConstraintInterface) {
-$versionParser = new VersionParser();
-$constraint = $versionParser->parseConstraints($constraint);
-}
-
-foreach ($this->getPackages() as $package) {
-if ($name === $package->getName()) {
-$pkgConstraint = new Constraint('==', $package->getVersion());
-if (null === $constraint || $constraint->matches($pkgConstraint)) {
-$packages[] = $package;
-}
-}
-}
-
-return $packages;
-}
-
-
-
-
-public function search($query, $mode = 0, $type = null)
-{
-$regex = '{(?:'.implode('|', preg_split('{\s+}', $query)).')}i';
-
-$matches = array();
-foreach ($this->getPackages() as $package) {
-$name = $package->getName();
-if (isset($matches[$name])) {
-continue;
-}
-if (preg_match($regex, $name)
-|| ($mode === self::SEARCH_FULLTEXT && $package instanceof CompletePackageInterface && preg_match($regex, implode(' ', (array) $package->getKeywords()) . ' ' . $package->getDescription()))
-) {
-if (null !== $type && $package->getType() !== $type) {
-continue;
-}
-
-$matches[$name] = array(
-'name' => $package->getPrettyName(),
-'description' => $package instanceof CompletePackageInterface ? $package->getDescription() : null,
-);
-}
-}
-
-return array_values($matches);
-}
-
-
-
-
-public function hasPackage(PackageInterface $package)
-{
-$packageId = $package->getUniqueName();
-
-foreach ($this->getPackages() as $repoPackage) {
-if ($packageId === $repoPackage->getUniqueName()) {
-return true;
-}
-}
-
-return false;
-}
-
-
-
-
-
-
-public function addPackage(PackageInterface $package)
-{
-if (null === $this->packages) {
-$this->initialize();
-}
-$package->setRepository($this);
-$this->packages[] = $package;
-
-if ($package instanceof AliasPackage) {
-$aliasedPackage = $package->getAliasOf();
-if (null === $aliasedPackage->getRepository()) {
-$this->addPackage($aliasedPackage);
-}
-}
-}
-
-protected function createAliasPackage(PackageInterface $package, $alias, $prettyAlias)
-{
-return new AliasPackage($package instanceof AliasPackage ? $package->getAliasOf() : $package, $alias, $prettyAlias);
-}
-
-
-
-
-
-
-public function removePackage(PackageInterface $package)
-{
-$packageId = $package->getUniqueName();
-
-foreach ($this->getPackages() as $key => $repoPackage) {
-if ($packageId === $repoPackage->getUniqueName()) {
-array_splice($this->packages, $key, 1);
-
-return;
-}
-}
-}
-
-
-
-
-public function getPackages()
-{
-if (null === $this->packages) {
-$this->initialize();
-}
-
-return $this->packages;
-}
-
-
-
-
-
-
-public function count()
-{
-return count($this->packages);
-}
-
-
-
-
-protected function initialize()
-{
-$this->packages = array();
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-use Composer\IO\IOInterface;
-use Composer\Json\JsonFile;
-use Composer\Package\Loader\ArrayLoader;
-use Composer\Package\Loader\LoaderInterface;
-
-
-
-
-class ArtifactRepository extends ArrayRepository implements ConfigurableRepositoryInterface
-{
-
-protected $loader;
-
-protected $lookup;
-protected $repoConfig;
-private $io;
-
-public function __construct(array $repoConfig, IOInterface $io)
-{
-parent::__construct();
-if (!extension_loaded('zip')) {
-throw new \RuntimeException('The artifact repository requires PHP\'s zip extension');
-}
-
-$this->loader = new ArrayLoader();
-$this->lookup = $repoConfig['url'];
-$this->io = $io;
-$this->repoConfig = $repoConfig;
-}
-
-public function getRepoConfig()
-{
-return $this->repoConfig;
-}
-
-protected function initialize()
-{
-parent::initialize();
-
-$this->scanDirectory($this->lookup);
-}
-
-private function scanDirectory($path)
-{
-$io = $this->io;
-
-$directory = new \RecursiveDirectoryIterator($path, \RecursiveDirectoryIterator::FOLLOW_SYMLINKS);
-$iterator = new \RecursiveIteratorIterator($directory);
-$regex = new \RegexIterator($iterator, '/^.+\.(zip|phar)$/i');
-foreach ($regex as $file) {
-
-if (!$file->isFile()) {
-continue;
-}
-
-$package = $this->getComposerInformation($file);
-if (!$package) {
-$io->writeError("File <comment>{$file->getBasename()}</comment> doesn't seem to hold a package", true, IOInterface::VERBOSE);
-continue;
-}
-
-$template = 'Found package <info>%s</info> (<comment>%s</comment>) in file <info>%s</info>';
-$io->writeError(sprintf($template, $package->getName(), $package->getPrettyVersion(), $file->getBasename()), true, IOInterface::VERBOSE);
-
-$this->addPackage($package);
-}
-}
-
-
-
-
-
-
-
-
-private function locateFile(\ZipArchive $zip, $filename)
-{
-$indexOfShortestMatch = false;
-$lengthOfShortestMatch = -1;
-
-for ($i = 0; $i < $zip->numFiles; $i++) {
-$stat = $zip->statIndex($i);
-if (strcmp(basename($stat['name']), $filename) === 0) {
-$directoryName = dirname($stat['name']);
-if ($directoryName == '.') {
-
- 
- return $i;
-}
-
-if (strpos($directoryName, '\\') !== false ||
-strpos($directoryName, '/') !== false) {
-
- continue;
-}
-
-$length = strlen($stat['name']);
-if ($indexOfShortestMatch === false || $length < $lengthOfShortestMatch) {
-
- $contents = $zip->getFromIndex($i);
-if ($contents !== false) {
-$indexOfShortestMatch = $i;
-$lengthOfShortestMatch = $length;
-}
-}
-}
-}
-
-return $indexOfShortestMatch;
-}
-
-private function getComposerInformation(\SplFileInfo $file)
-{
-$zip = new \ZipArchive();
-if ($zip->open($file->getPathname()) !== true) {
-return false;
-}
-
-if (0 == $zip->numFiles) {
-$zip->close();
-
-return false;
-}
-
-$foundFileIndex = $this->locateFile($zip, 'composer.json');
-if (false === $foundFileIndex) {
-$zip->close();
-
-return false;
-}
-
-$configurationFileName = $zip->getNameIndex($foundFileIndex);
-$zip->close();
-
-$composerFile = "zip://{$file->getPathname()}#$configurationFileName";
-$json = file_get_contents($composerFile);
-
-$package = JsonFile::parseJson($json, $composerFile);
-$package['dist'] = array(
-'type' => 'zip',
-'url' => strtr($file->getPathname(), '\\', '/'),
-'shasum' => sha1_file($file->getRealPath()),
-);
-
-try {
-$package = $this->loader->load($package);
-} catch (\UnexpectedValueException $e) {
-throw new \UnexpectedValueException('Failed loading package in '.$file.': '.$e->getMessage(), 0, $e);
-}
-
-return $package;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-use Composer\Package\RootPackageInterface;
-use Composer\Semver\Constraint\ConstraintInterface;
-use Composer\Semver\Constraint\Constraint;
-use Composer\Package\Link;
-
-
-
-
-
-
-abstract class BaseRepository implements RepositoryInterface
-{
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function getDependents($needle, $constraint = null, $invert = false, $recurse = true, $packagesFound = null)
-{
-$needles = array_map('strtolower', (array) $needle);
-$results = array();
-
-
- if (null === $packagesFound) {
-$packagesFound = $needles;
-}
-
-
- $rootPackage = null;
-foreach ($this->getPackages() as $package) {
-if ($package instanceof RootPackageInterface) {
-$rootPackage = $package;
-break;
-}
-}
-
-
- foreach ($this->getPackages() as $package) {
-$links = $package->getRequires();
-
-
- 
- $packagesInTree = $packagesFound;
-
-
- if (!$invert) {
-$links += $package->getReplaces();
-}
-
-
- if ($package instanceof RootPackageInterface) {
-$links += $package->getDevRequires();
-}
-
-
- foreach ($links as $link) {
-foreach ($needles as $needle) {
-if ($link->getTarget() === $needle) {
-if ($constraint === null || ($link->getConstraint()->matches($constraint) === !$invert)) {
-
- if (in_array($link->getSource(), $packagesInTree)) {
-$results[$link->getSource()] = array($package, $link, false);
-continue;
-}
-$packagesInTree[] = $link->getSource();
-$dependents = $recurse ? $this->getDependents($link->getSource(), null, false, true, $packagesInTree) : array();
-$results[$link->getSource()] = array($package, $link, $dependents);
-}
-}
-}
-}
-
-
- if ($invert && in_array($package->getName(), $needles)) {
-foreach ($package->getConflicts() as $link) {
-foreach ($this->findPackages($link->getTarget()) as $pkg) {
-$version = new Constraint('=', $pkg->getVersion());
-if ($link->getConstraint()->matches($version) === $invert) {
-$results[] = array($package, $link, false);
-}
-}
-}
-}
-
-
- if ($invert && $constraint && in_array($package->getName(), $needles) && $constraint->matches(new Constraint('=', $package->getVersion()))) {
-foreach ($package->getRequires() as $link) {
-if (preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $link->getTarget())) {
-if ($this->findPackage($link->getTarget(), $link->getConstraint())) {
-continue;
-}
-
-$platformPkg = $this->findPackage($link->getTarget(), '*');
-$description = $platformPkg ? 'but '.$platformPkg->getPrettyVersion().' is installed' : 'but it is missing';
-$results[] = array($package, new Link($package->getName(), $link->getTarget(), null, 'requires', $link->getPrettyConstraint().' '.$description), false);
-
-continue;
-}
-
-foreach ($this->getPackages() as $pkg) {
-if (!in_array($link->getTarget(), $pkg->getNames())) {
-continue;
-}
-
-$version = new Constraint('=', $pkg->getVersion());
-if (!$link->getConstraint()->matches($version)) {
-
- 
- if ($rootPackage) {
-foreach (array_merge($rootPackage->getRequires(), $rootPackage->getDevRequires()) as $rootReq) {
-if (in_array($rootReq->getTarget(), $pkg->getNames()) && !$rootReq->getConstraint()->matches($link->getConstraint())) {
-$results[] = array($package, $link, false);
-$results[] = array($rootPackage, $rootReq, false);
-continue 3;
-}
-}
-$results[] = array($package, $link, false);
-$results[] = array($rootPackage, new Link($rootPackage->getName(), $link->getTarget(), null, 'does not require', 'but ' . $pkg->getPrettyVersion() . ' is installed'), false);
-} else {
-
- $results[] = array($package, $link, false);
-}
-}
-
-continue 2;
-}
-}
-}
-}
-
-ksort($results);
-
-return $results;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-use Composer\Package\Loader\ArrayLoader;
-use Composer\Package\PackageInterface;
-use Composer\Package\AliasPackage;
-use Composer\Package\Version\VersionParser;
-use Composer\DependencyResolver\Pool;
-use Composer\Json\JsonFile;
-use Composer\Cache;
-use Composer\Config;
-use Composer\Factory;
-use Composer\IO\IOInterface;
-use Composer\Util\RemoteFilesystem;
-use Composer\Plugin\PluginEvents;
-use Composer\Plugin\PreFileDownloadEvent;
-use Composer\EventDispatcher\EventDispatcher;
-use Composer\Downloader\TransportException;
-use Composer\Semver\Constraint\ConstraintInterface;
-use Composer\Semver\Constraint\Constraint;
-
-
-
-
-class ComposerRepository extends ArrayRepository implements ConfigurableRepositoryInterface
-{
-protected $config;
-protected $repoConfig;
-protected $options;
-protected $url;
-protected $baseUrl;
-protected $io;
-protected $rfs;
-protected $cache;
-protected $notifyUrl;
-protected $searchUrl;
-protected $hasProviders = false;
-protected $providersUrl;
-protected $lazyProvidersUrl;
-protected $providerListing;
-protected $providers = array();
-protected $providersByUid = array();
-protected $loader;
-protected $rootAliases;
-protected $allowSslDowngrade = false;
-protected $eventDispatcher;
-protected $sourceMirrors;
-protected $distMirrors;
-private $degradedMode = false;
-private $rootData;
-private $hasPartialPackages;
-private $partialPackagesByName;
-
-public function __construct(array $repoConfig, IOInterface $io, Config $config, EventDispatcher $eventDispatcher = null, RemoteFilesystem $rfs = null)
-{
-parent::__construct();
-if (!preg_match('{^[\w.]+\??://}', $repoConfig['url'])) {
-
- $repoConfig['url'] = 'http://'.$repoConfig['url'];
-}
-$repoConfig['url'] = rtrim($repoConfig['url'], '/');
-
-if ('https?' === substr($repoConfig['url'], 0, 6)) {
-$repoConfig['url'] = (extension_loaded('openssl') ? 'https' : 'http') . substr($repoConfig['url'], 6);
-}
-
-$urlBits = parse_url($repoConfig['url']);
-if ($urlBits === false || empty($urlBits['scheme'])) {
-throw new \UnexpectedValueException('Invalid url given for Composer repository: '.$repoConfig['url']);
-}
-
-if (!isset($repoConfig['options'])) {
-$repoConfig['options'] = array();
-}
-if (isset($repoConfig['allow_ssl_downgrade']) && true === $repoConfig['allow_ssl_downgrade']) {
-$this->allowSslDowngrade = true;
-}
-
-$this->config = $config;
-$this->options = $repoConfig['options'];
-$this->url = $repoConfig['url'];
-
-
- if (preg_match('{^(?P<proto>https?)://packagist\.org/?$}i', $this->url, $match)) {
-$this->url = $match['proto'].'://repo.packagist.org';
-}
-
-$this->baseUrl = rtrim(preg_replace('{(?:/[^/\\\\]+\.json)?(?:[?#].*)?$}', '', $this->url), '/');
-$this->io = $io;
-$this->cache = new Cache($io, $config->get('cache-repo-dir').'/'.preg_replace('{[^a-z0-9.]}i', '-', $this->url), 'a-z0-9.$');
-$this->loader = new ArrayLoader();
-if ($rfs && $this->options) {
-$rfs = clone $rfs;
-$rfs->setOptions($this->options);
-}
-$this->rfs = $rfs ?: Factory::createRemoteFilesystem($this->io, $this->config, $this->options);
-$this->eventDispatcher = $eventDispatcher;
-$this->repoConfig = $repoConfig;
-}
-
-public function getRepoConfig()
-{
-return $this->repoConfig;
-}
-
-public function setRootAliases(array $rootAliases)
-{
-$this->rootAliases = $rootAliases;
-}
-
-
-
-
-public function findPackage($name, $constraint)
-{
-if (!$this->hasProviders()) {
-return parent::findPackage($name, $constraint);
-}
-
-$name = strtolower($name);
-if (!$constraint instanceof ConstraintInterface) {
-$versionParser = new VersionParser();
-$constraint = $versionParser->parseConstraints($constraint);
-}
-
-foreach ($this->getProviderNames() as $providerName) {
-if ($name === $providerName) {
-$packages = $this->whatProvides(new Pool('dev'), $providerName);
-foreach ($packages as $package) {
-if ($name === $package->getName()) {
-$pkgConstraint = new Constraint('==', $package->getVersion());
-if ($constraint->matches($pkgConstraint)) {
-return $package;
-}
-}
-}
-break;
-}
-}
-}
-
-
-
-
-public function findPackages($name, $constraint = null)
-{
-if (!$this->hasProviders()) {
-return parent::findPackages($name, $constraint);
-}
-
- $name = strtolower($name);
-
-if (null !== $constraint && !$constraint instanceof ConstraintInterface) {
-$versionParser = new VersionParser();
-$constraint = $versionParser->parseConstraints($constraint);
-}
-
-$packages = array();
-
-foreach ($this->getProviderNames() as $providerName) {
-if ($name === $providerName) {
-$candidates = $this->whatProvides(new Pool('dev'), $providerName);
-foreach ($candidates as $package) {
-if ($name === $package->getName()) {
-$pkgConstraint = new Constraint('==', $package->getVersion());
-if (null === $constraint || $constraint->matches($pkgConstraint)) {
-$packages[] = $package;
-}
-}
-}
-break;
-}
-}
-
-return $packages;
-}
-
-public function getPackages()
-{
-if ($this->hasProviders()) {
-throw new \LogicException('Composer repositories that have providers can not load the complete list of packages, use getProviderNames instead.');
-}
-
-return parent::getPackages();
-}
-
-
-
-
-public function search($query, $mode = 0, $type = null)
-{
-$this->loadRootServerFile();
-
-if ($this->searchUrl && $mode === self::SEARCH_FULLTEXT) {
-$url = str_replace(array('%query%', '%type%'), array($query, $type), $this->searchUrl);
-
-$hostname = parse_url($url, PHP_URL_HOST) ?: $url;
-$json = $this->rfs->getContents($hostname, $url, false);
-$search = JsonFile::parseJson($json, $url);
-
-if (empty($search['results'])) {
-return array();
-}
-
-$results = array();
-foreach ($search['results'] as $result) {
-
- if (empty($result['virtual'])) {
-$results[] = $result;
-}
-}
-
-return $results;
-}
-
-if ($this->hasProviders()) {
-$results = array();
-$regex = '{(?:'.implode('|', preg_split('{\s+}', $query)).')}i';
-
-foreach ($this->getProviderNames() as $name) {
-if (preg_match($regex, $name)) {
-$results[] = array('name' => $name);
-}
-}
-
-return $results;
-}
-
-return parent::search($query, $mode);
-}
-
-public function getProviderNames()
-{
-$this->loadRootServerFile();
-
-if (null === $this->providerListing) {
-$this->loadProviderListings($this->loadRootServerFile());
-}
-
-if ($this->lazyProvidersUrl) {
-
- return array();
-}
-
-if ($this->providersUrl) {
-return array_keys($this->providerListing);
-}
-
-return array();
-}
-
-protected function configurePackageTransportOptions(PackageInterface $package)
-{
-foreach ($package->getDistUrls() as $url) {
-if (strpos($url, $this->baseUrl) === 0) {
-$package->setTransportOptions($this->options);
-
-return;
-}
-}
-}
-
-public function hasProviders()
-{
-$this->loadRootServerFile();
-
-return $this->hasProviders;
-}
-
-public function resetPackageIds()
-{
-foreach ($this->providersByUid as $package) {
-if ($package instanceof AliasPackage) {
-$package->getAliasOf()->setId(-1);
-}
-$package->setId(-1);
-}
-}
-
-
-
-
-
-
-
-public function whatProvides(Pool $pool, $name, $bypassFilters = false)
-{
-if (isset($this->providers[$name]) && !$bypassFilters) {
-return $this->providers[$name];
-}
-
-if ($this->hasPartialPackages && null === $this->partialPackagesByName) {
-$this->initializePartialPackages();
-}
-
-if (!$this->hasPartialPackages || !isset($this->partialPackagesByName[$name])) {
-
- if (preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $name) || '__root__' === $name || 'composer-plugin-api' === $name) {
-return array();
-}
-
-if (null === $this->providerListing) {
-$this->loadProviderListings($this->loadRootServerFile());
-}
-
-$useLastModifiedCheck = false;
-if ($this->lazyProvidersUrl && !isset($this->providerListing[$name])) {
-$hash = null;
-$url = str_replace('%package%', $name, $this->lazyProvidersUrl);
-$cacheKey = 'provider-'.strtr($name, '/', '$').'.json';
-$useLastModifiedCheck = true;
-} elseif ($this->providersUrl) {
-
- if (!isset($this->providerListing[$name])) {
-return array();
-}
-
-$hash = $this->providerListing[$name]['sha256'];
-$url = str_replace(array('%package%', '%hash%'), array($name, $hash), $this->providersUrl);
-$cacheKey = 'provider-'.strtr($name, '/', '$').'.json';
-} else {
-return array();
-}
-
-$packages = null;
-if ($cacheKey) {
-if (!$useLastModifiedCheck && $hash && $this->cache->sha256($cacheKey) === $hash) {
-$packages = json_decode($this->cache->read($cacheKey), true);
-} elseif ($useLastModifiedCheck) {
-if ($contents = $this->cache->read($cacheKey)) {
-$contents = json_decode($contents, true);
-if (isset($contents['last-modified'])) {
-$response = $this->fetchFileIfLastModified($url, $cacheKey, $contents['last-modified']);
-if (true === $response) {
-$packages = $contents;
-} elseif ($response) {
-$packages = $response;
-}
-}
-}
-}
-}
-
-if (!$packages) {
-try {
-$packages = $this->fetchFile($url, $cacheKey, $hash, $useLastModifiedCheck);
-} catch (TransportException $e) {
-
- if ($e->getStatusCode() === 404 && $this->lazyProvidersUrl) {
-$packages = array('packages' => array());
-} else {
-throw $e;
-}
-}
-}
-
-$loadingPartialPackage = false;
-} else {
-$packages = array('packages' => array('versions' => $this->partialPackagesByName[$name]));
-$loadingPartialPackage = true;
-}
-
-$this->providers[$name] = array();
-foreach ($packages['packages'] as $versions) {
-foreach ($versions as $version) {
-if (!$loadingPartialPackage && $this->hasPartialPackages && isset($this->partialPackagesByName[$version['name']])) {
-continue;
-}
-
-
- if (isset($this->providersByUid[$version['uid']])) {
-
- if (!isset($this->providers[$name][$version['uid']])) {
-
- if ($this->providersByUid[$version['uid']] instanceof AliasPackage) {
-$this->providers[$name][$version['uid']] = $this->providersByUid[$version['uid']]->getAliasOf();
-$this->providers[$name][$version['uid'].'-alias'] = $this->providersByUid[$version['uid']];
-} else {
-$this->providers[$name][$version['uid']] = $this->providersByUid[$version['uid']];
-}
-
- if (isset($this->providersByUid[$version['uid'].'-root'])) {
-$this->providers[$name][$version['uid'].'-root'] = $this->providersByUid[$version['uid'].'-root'];
-}
-}
-} else {
-if (!$bypassFilters && !$pool->isPackageAcceptable(strtolower($version['name']), VersionParser::parseStability($version['version']))) {
-continue;
-}
-
-
- $package = $this->createPackage($version, 'Composer\Package\CompletePackage');
-$package->setRepository($this);
-
-if ($package instanceof AliasPackage) {
-$aliased = $package->getAliasOf();
-$aliased->setRepository($this);
-
-$this->providers[$name][$version['uid']] = $aliased;
-$this->providers[$name][$version['uid'].'-alias'] = $package;
-
-
- $this->providersByUid[$version['uid']] = $package;
-} else {
-$this->providers[$name][$version['uid']] = $package;
-$this->providersByUid[$version['uid']] = $package;
-}
-
-
- unset($rootAliasData);
-
-if (isset($this->rootAliases[$package->getName()][$package->getVersion()])) {
-$rootAliasData = $this->rootAliases[$package->getName()][$package->getVersion()];
-} elseif ($package instanceof AliasPackage && isset($this->rootAliases[$package->getName()][$package->getAliasOf()->getVersion()])) {
-$rootAliasData = $this->rootAliases[$package->getName()][$package->getAliasOf()->getVersion()];
-}
-
-if (isset($rootAliasData)) {
-$alias = $this->createAliasPackage($package, $rootAliasData['alias_normalized'], $rootAliasData['alias']);
-$alias->setRepository($this);
-
-$this->providers[$name][$version['uid'].'-root'] = $alias;
-$this->providersByUid[$version['uid'].'-root'] = $alias;
-}
-}
-}
-}
-
-$result = $this->providers[$name];
-
-
- 
- if ($bypassFilters) {
-foreach ($this->providers[$name] as $uid => $provider) {
-unset($this->providersByUid[$uid]);
-}
-unset($this->providers[$name]);
-}
-
-return $result;
-}
-
-
-
-
-protected function initialize()
-{
-parent::initialize();
-
-$repoData = $this->loadDataFromServer();
-
-foreach ($repoData as $package) {
-$this->addPackage($this->createPackage($package, 'Composer\Package\CompletePackage'));
-}
-}
-
-
-
-
-
-
-public function addPackage(PackageInterface $package)
-{
-parent::addPackage($package);
-$this->configurePackageTransportOptions($package);
-}
-
-protected function loadRootServerFile()
-{
-if (null !== $this->rootData) {
-return $this->rootData;
-}
-
-if (!extension_loaded('openssl') && 'https' === substr($this->url, 0, 5)) {
-throw new \RuntimeException('You must enable the openssl extension in your php.ini to load information from '.$this->url);
-}
-
-$jsonUrlParts = parse_url($this->url);
-
-if (isset($jsonUrlParts['path']) && false !== strpos($jsonUrlParts['path'], '.json')) {
-$jsonUrl = $this->url;
-} else {
-$jsonUrl = $this->url . '/packages.json';
-}
-
-$data = $this->fetchFile($jsonUrl, 'packages.json');
-
-if (!empty($data['notify-batch'])) {
-$this->notifyUrl = $this->canonicalizeUrl($data['notify-batch']);
-} elseif (!empty($data['notify'])) {
-$this->notifyUrl = $this->canonicalizeUrl($data['notify']);
-}
-
-if (!empty($data['search'])) {
-$this->searchUrl = $this->canonicalizeUrl($data['search']);
-}
-
-if (!empty($data['mirrors'])) {
-foreach ($data['mirrors'] as $mirror) {
-if (!empty($mirror['git-url'])) {
-$this->sourceMirrors['git'][] = array('url' => $mirror['git-url'], 'preferred' => !empty($mirror['preferred']));
-}
-if (!empty($mirror['hg-url'])) {
-$this->sourceMirrors['hg'][] = array('url' => $mirror['hg-url'], 'preferred' => !empty($mirror['preferred']));
-}
-if (!empty($mirror['dist-url'])) {
-$this->distMirrors[] = array(
-'url' => $this->canonicalizeUrl($mirror['dist-url']),
-'preferred' => !empty($mirror['preferred']),
-);
-}
-}
-}
-
-if (!empty($data['providers-lazy-url'])) {
-$this->lazyProvidersUrl = $this->canonicalizeUrl($data['providers-lazy-url']);
-$this->hasProviders = true;
-
-$this->hasPartialPackages = !empty($data['packages']) && is_array($data['packages']);
-}
-
-if ($this->allowSslDowngrade) {
-$this->url = str_replace('https://', 'http://', $this->url);
-$this->baseUrl = str_replace('https://', 'http://', $this->baseUrl);
-}
-
-if (!empty($data['providers-url'])) {
-$this->providersUrl = $this->canonicalizeUrl($data['providers-url']);
-$this->hasProviders = true;
-}
-
-if (!empty($data['providers']) || !empty($data['providers-includes'])) {
-$this->hasProviders = true;
-}
-
-
- if (preg_match('{^https?://repo\.packagist\.org/?$}i', $this->url) && !empty($this->repoConfig['force-lazy-providers'])) {
-$this->url = 'https://repo.packagist.org';
-$this->baseUrl = 'https://repo.packagist.org';
-$this->lazyProvidersUrl = $this->canonicalizeUrl('https://repo.packagist.org/p/%package%.json');
-$this->providersUrl = null;
-} elseif (!empty($this->repoConfig['force-lazy-providers'])) {
-$this->lazyProvidersUrl = $this->canonicalizeUrl('/p/%package%.json');
-$this->providersUrl = null;
-}
-
-return $this->rootData = $data;
-}
-
-protected function canonicalizeUrl($url)
-{
-if ('/' === $url[0]) {
-return preg_replace('{(https?://[^/]+).*}i', '$1' . $url, $this->url);
-}
-
-return $url;
-}
-
-protected function loadDataFromServer()
-{
-$data = $this->loadRootServerFile();
-
-return $this->loadIncludes($data);
-}
-
-protected function loadProviderListings($data)
-{
-if (isset($data['providers'])) {
-if (!is_array($this->providerListing)) {
-$this->providerListing = array();
-}
-$this->providerListing = array_merge($this->providerListing, $data['providers']);
-}
-
-if ($this->providersUrl && isset($data['provider-includes'])) {
-$includes = $data['provider-includes'];
-foreach ($includes as $include => $metadata) {
-$url = $this->baseUrl . '/' . str_replace('%hash%', $metadata['sha256'], $include);
-$cacheKey = str_replace(array('%hash%','$'), '', $include);
-if ($this->cache->sha256($cacheKey) === $metadata['sha256']) {
-$includedData = json_decode($this->cache->read($cacheKey), true);
-} else {
-$includedData = $this->fetchFile($url, $cacheKey, $metadata['sha256']);
-}
-
-$this->loadProviderListings($includedData);
-}
-}
-}
-
-protected function loadIncludes($data)
-{
-$packages = array();
-
-
- if (!isset($data['packages']) && !isset($data['includes'])) {
-foreach ($data as $pkg) {
-foreach ($pkg['versions'] as $metadata) {
-$packages[] = $metadata;
-}
-}
-
-return $packages;
-}
-
-if (isset($data['packages'])) {
-foreach ($data['packages'] as $package => $versions) {
-foreach ($versions as $version => $metadata) {
-$packages[] = $metadata;
-}
-}
-}
-
-if (isset($data['includes'])) {
-foreach ($data['includes'] as $include => $metadata) {
-if ($this->cache->sha1($include) === $metadata['sha1']) {
-$includedData = json_decode($this->cache->read($include), true);
-} else {
-$includedData = $this->fetchFile($include);
-}
-$packages = array_merge($packages, $this->loadIncludes($includedData));
-}
-}
-
-return $packages;
-}
-
-protected function createPackage(array $data, $class = 'Composer\Package\CompletePackage')
-{
-try {
-if (!isset($data['notification-url'])) {
-$data['notification-url'] = $this->notifyUrl;
-}
-
-$package = $this->loader->load($data, $class);
-if (isset($this->sourceMirrors[$package->getSourceType()])) {
-$package->setSourceMirrors($this->sourceMirrors[$package->getSourceType()]);
-}
-$package->setDistMirrors($this->distMirrors);
-$this->configurePackageTransportOptions($package);
-
-return $package;
-} catch (\Exception $e) {
-throw new \RuntimeException('Could not load package '.(isset($data['name']) ? $data['name'] : json_encode($data)).' in '.$this->url.': ['.get_class($e).'] '.$e->getMessage(), 0, $e);
-}
-}
-
-protected function fetchFile($filename, $cacheKey = null, $sha256 = null, $storeLastModifiedTime = false)
-{
-if (null === $cacheKey) {
-$cacheKey = $filename;
-$filename = $this->baseUrl.'/'.$filename;
-}
-
-
- if (($pos = strpos($filename, '$')) && preg_match('{^https?://.*}i', $filename)) {
-$filename = substr($filename, 0, $pos) . '%24' . substr($filename, $pos + 1);
-}
-
-$retries = 3;
-while ($retries--) {
-try {
-$preFileDownloadEvent = new PreFileDownloadEvent(PluginEvents::PRE_FILE_DOWNLOAD, $this->rfs, $filename);
-if ($this->eventDispatcher) {
-$this->eventDispatcher->dispatch($preFileDownloadEvent->getName(), $preFileDownloadEvent);
-}
-
-$hostname = parse_url($filename, PHP_URL_HOST) ?: $filename;
-$rfs = $preFileDownloadEvent->getRemoteFilesystem();
-
-$json = $rfs->getContents($hostname, $filename, false);
-if ($sha256 && $sha256 !== hash('sha256', $json)) {
-
- if ($this->allowSslDowngrade) {
-$this->url = str_replace('http://', 'https://', $this->url);
-$this->baseUrl = str_replace('http://', 'https://', $this->baseUrl);
-$filename = str_replace('http://', 'https://', $filename);
-}
-
-if ($retries) {
-usleep(100000);
-
-continue;
-}
-
-
- throw new RepositorySecurityException('The contents of '.$filename.' do not match its signature. This could indicate a man-in-the-middle attack or e.g. antivirus software corrupting files. Try running composer again and report this if you think it is a mistake.');
-}
-
-$data = JsonFile::parseJson($json, $filename);
-if (!empty($data['warning'])) {
-$this->io->writeError('<warning>Warning from '.$this->url.': '.$data['warning'].'</warning>');
-}
-if (!empty($data['info'])) {
-$this->io->writeError('<info>Info from '.$this->url.': '.$data['info'].'</info>');
-}
-
-if ($cacheKey) {
-if ($storeLastModifiedTime) {
-$lastModifiedDate = $rfs->findHeaderValue($rfs->getLastHeaders(), 'last-modified');
-if ($lastModifiedDate) {
-$data['last-modified'] = $lastModifiedDate;
-$json = json_encode($data);
-}
-}
-$this->cache->write($cacheKey, $json);
-}
-
-break;
-} catch (\Exception $e) {
-if ($e instanceof TransportException && $e->getStatusCode() === 404) {
-throw $e;
-}
-
-if ($retries) {
-usleep(100000);
-continue;
-}
-
-if ($e instanceof RepositorySecurityException) {
-throw $e;
-}
-
-if ($cacheKey && ($contents = $this->cache->read($cacheKey))) {
-if (!$this->degradedMode) {
-$this->io->writeError('<warning>'.$e->getMessage().'</warning>');
-$this->io->writeError('<warning>'.$this->url.' could not be fully loaded, package information was loaded from the local cache and may be out of date</warning>');
-}
-$this->degradedMode = true;
-$data = JsonFile::parseJson($contents, $this->cache->getRoot().$cacheKey);
-
-break;
-}
-
-throw $e;
-}
-}
-
-return $data;
-}
-
-protected function fetchFileIfLastModified($filename, $cacheKey, $lastModifiedTime)
-{
-$retries = 3;
-while ($retries--) {
-try {
-$preFileDownloadEvent = new PreFileDownloadEvent(PluginEvents::PRE_FILE_DOWNLOAD, $this->rfs, $filename);
-if ($this->eventDispatcher) {
-$this->eventDispatcher->dispatch($preFileDownloadEvent->getName(), $preFileDownloadEvent);
-}
-
-$hostname = parse_url($filename, PHP_URL_HOST) ?: $filename;
-$rfs = $preFileDownloadEvent->getRemoteFilesystem();
-$options = array('http' => array('header' => array('If-Modified-Since: '.$lastModifiedTime)));
-$json = $rfs->getContents($hostname, $filename, false, $options);
-if ($json === '' && $rfs->findStatusCode($rfs->getLastHeaders()) === 304) {
-return true;
-}
-
-$data = JsonFile::parseJson($json, $filename);
-if (!empty($data['warning'])) {
-$this->io->writeError('<warning>Warning from '.$this->url.': '.$data['warning'].'</warning>');
-}
-if (!empty($data['info'])) {
-$this->io->writeError('<info>Info from '.$this->url.': '.$data['info'].'</info>');
-}
-
-$lastModifiedDate = $rfs->findHeaderValue($rfs->getLastHeaders(), 'last-modified');
-if ($lastModifiedDate) {
-$data['last-modified'] = $lastModifiedDate;
-$json = json_encode($data);
-}
-$this->cache->write($cacheKey, $json);
-
-return $data;
-} catch (\Exception $e) {
-if ($e instanceof TransportException && $e->getStatusCode() === 404) {
-throw $e;
-}
-
-if ($retries) {
-usleep(100000);
-continue;
-}
-
-if (!$this->degradedMode) {
-$this->io->writeError('<warning>'.$e->getMessage().'</warning>');
-$this->io->writeError('<warning>'.$this->url.' could not be fully loaded, package information was loaded from the local cache and may be out of date</warning>');
-}
-$this->degradedMode = true;
-
-return true;
-}
-}
-}
-
-
-
-
-
-
-private function initializePartialPackages()
-{
-$rootData = $this->loadRootServerFile();
-
-$this->partialPackagesByName = array();
-foreach ($rootData['packages'] as $package => $versions) {
-$package = strtolower($package);
-foreach ($versions as $version) {
-$this->partialPackagesByName[$package][] = $version;
-if (!empty($version['provide']) && is_array($version['provide'])) {
-foreach ($version['provide'] as $provided => $providedVersion) {
-$this->partialPackagesByName[strtolower($provided)][] = $version;
-}
-}
-if (!empty($version['replace']) && is_array($version['replace'])) {
-foreach ($version['replace'] as $provided => $providedVersion) {
-$this->partialPackagesByName[strtolower($provided)][] = $version;
-}
-}
-}
-}
-
-
- $this->rootData = true;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-use Composer\Package\PackageInterface;
-
-
-
-
-
-
-class CompositeRepository extends BaseRepository
-{
-
-
-
-
-private $repositories;
-
-
-
-
-
-public function __construct(array $repositories)
-{
-$this->repositories = array();
-foreach ($repositories as $repo) {
-$this->addRepository($repo);
-}
-}
-
-
-
-
-
-
-public function getRepositories()
-{
-return $this->repositories;
-}
-
-
-
-
-public function hasPackage(PackageInterface $package)
-{
-foreach ($this->repositories as $repository) {
-
-if ($repository->hasPackage($package)) {
-return true;
-}
-}
-
-return false;
-}
-
-
-
-
-public function findPackage($name, $constraint)
-{
-foreach ($this->repositories as $repository) {
-
-$package = $repository->findPackage($name, $constraint);
-if (null !== $package) {
-return $package;
-}
-}
-
-return null;
-}
-
-
-
-
-public function findPackages($name, $constraint = null)
-{
-$packages = array();
-foreach ($this->repositories as $repository) {
-
-$packages[] = $repository->findPackages($name, $constraint);
-}
-
-return $packages ? call_user_func_array('array_merge', $packages) : array();
-}
-
-
-
-
-public function search($query, $mode = 0, $type = null)
-{
-$matches = array();
-foreach ($this->repositories as $repository) {
-
-$matches[] = $repository->search($query, $mode, $type);
-}
-
-return $matches ? call_user_func_array('array_merge', $matches) : array();
-}
-
-
-
-
-public function getPackages()
-{
-$packages = array();
-foreach ($this->repositories as $repository) {
-
-$packages[] = $repository->getPackages();
-}
-
-return $packages ? call_user_func_array('array_merge', $packages) : array();
-}
-
-
-
-
-public function removePackage(PackageInterface $package)
-{
-foreach ($this->repositories as $repository) {
-
-$repository->removePackage($package);
-}
-}
-
-
-
-
-public function count()
-{
-$total = 0;
-foreach ($this->repositories as $repository) {
-
-$total += $repository->count();
-}
-
-return $total;
-}
-
-
-
-
-
-public function addRepository(RepositoryInterface $repository)
-{
-if ($repository instanceof self) {
-foreach ($repository->getRepositories() as $repo) {
-$this->addRepository($repo);
-}
-} else {
-$this->repositories[] = $repository;
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-
-
-
-
-
-interface ConfigurableRepositoryInterface
-{
-public function getRepoConfig();
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-use Composer\Json\JsonFile;
-use Composer\Package\Loader\ArrayLoader;
-use Composer\Package\Dumper\ArrayDumper;
-
-
-
-
-
-
-
-class FilesystemRepository extends WritableArrayRepository
-{
-private $file;
-
-
-
-
-
-
-public function __construct(JsonFile $repositoryFile)
-{
-parent::__construct();
-$this->file = $repositoryFile;
-}
-
-
-
-
-protected function initialize()
-{
-parent::initialize();
-
-if (!$this->file->exists()) {
-return;
-}
-
-try {
-$packages = $this->file->read();
-
-if (!is_array($packages)) {
-throw new \UnexpectedValueException('Could not parse package list from the repository');
-}
-} catch (\Exception $e) {
-throw new InvalidRepositoryException('Invalid repository data in '.$this->file->getPath().', packages could not be loaded: ['.get_class($e).'] '.$e->getMessage());
-}
-
-$loader = new ArrayLoader(null, true);
-foreach ($packages as $packageData) {
-$package = $loader->load($packageData);
-$this->addPackage($package);
-}
-}
-
-public function reload()
-{
-$this->packages = null;
-$this->initialize();
-}
-
-
-
-
-public function write()
-{
-$data = array();
-$dumper = new ArrayDumper();
-
-foreach ($this->getCanonicalPackages() as $package) {
-$data[] = $dumper->dump($package);
-}
-
-usort($data, function ($a, $b) {
-return strcmp($a['name'], $b['name']);
-});
-
-$this->file->write($data);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-
-
-
-
-
-
-
-class InstalledArrayRepository extends WritableArrayRepository implements InstalledRepositoryInterface
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-
-
-
-
-
-class InstalledFilesystemRepository extends FilesystemRepository implements InstalledRepositoryInterface
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-
-
-
-
-
-
-
-interface InstalledRepositoryInterface extends WritableRepositoryInterface
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-
-
-
-
-
-class InvalidRepositoryException extends \Exception
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-use Composer\Package\Loader\ArrayLoader;
-use Composer\Package\Loader\ValidatingArrayLoader;
-
-
-
-
-
-
-class PackageRepository extends ArrayRepository
-{
-private $config;
-
-
-
-
-
-
-public function __construct(array $config)
-{
-parent::__construct();
-$this->config = $config['package'];
-
-
- if (!is_numeric(key($this->config))) {
-$this->config = array($this->config);
-}
-}
-
-
-
-
-protected function initialize()
-{
-parent::initialize();
-
-$loader = new ValidatingArrayLoader(new ArrayLoader(null, true), false);
-foreach ($this->config as $package) {
-try {
-$package = $loader->load($package);
-} catch (\Exception $e) {
-throw new InvalidRepositoryException('A repository of type "package" contains an invalid package definition: '.$e->getMessage()."\n\nInvalid package definition:\n".json_encode($package));
-}
-
-$this->addPackage($package);
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-use Composer\Config;
-use Composer\IO\IOInterface;
-use Composer\Json\JsonFile;
-use Composer\Package\Loader\ArrayLoader;
-use Composer\Package\Version\VersionGuesser;
-use Composer\Package\Version\VersionParser;
-use Composer\Util\Platform;
-use Composer\Util\ProcessExecutor;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-class PathRepository extends ArrayRepository implements ConfigurableRepositoryInterface
-{
-
-
-
-private $loader;
-
-
-
-
-private $versionGuesser;
-
-
-
-
-private $url;
-
-
-
-
-private $repoConfig;
-
-
-
-
-private $process;
-
-
-
-
-private $options;
-
-
-
-
-
-
-
-
-public function __construct(array $repoConfig, IOInterface $io, Config $config)
-{
-if (!isset($repoConfig['url'])) {
-throw new \RuntimeException('You must specify the `url` configuration for the path repository');
-}
-
-$this->loader = new ArrayLoader(null, true);
-$this->url = Platform::expandPath($repoConfig['url']);
-$this->process = new ProcessExecutor($io);
-$this->versionGuesser = new VersionGuesser($config, $this->process, new VersionParser());
-$this->repoConfig = $repoConfig;
-$this->options = isset($repoConfig['options']) ? $repoConfig['options'] : array();
-
-parent::__construct();
-}
-
-public function getRepoConfig()
-{
-return $this->repoConfig;
-}
-
-
-
-
-
-
-protected function initialize()
-{
-parent::initialize();
-
-foreach ($this->getUrlMatches() as $url) {
-$path = realpath($url) . DIRECTORY_SEPARATOR;
-$composerFilePath = $path.'composer.json';
-
-if (!file_exists($composerFilePath)) {
-continue;
-}
-
-$json = file_get_contents($composerFilePath);
-$package = JsonFile::parseJson($json, $composerFilePath);
-$package['dist'] = array(
-'type' => 'path',
-'url' => $url,
-'reference' => sha1($json . serialize($this->options)),
-);
-$package['transport-options'] = $this->options;
-
-
- if (!isset($package['version']) && ($rootVersion = getenv('COMPOSER_ROOT_VERSION'))) {
-if (
-0 === $this->process->execute('git rev-parse HEAD', $ref1, $path)
-&& 0 === $this->process->execute('git rev-parse HEAD', $ref2)
-&& $ref1 === $ref2
-) {
-$package['version'] = $rootVersion;
-}
-}
-
-if (!isset($package['version'])) {
-$versionData = $this->versionGuesser->guessVersion($package, $path);
-$package['version'] = $versionData['pretty_version'] ?: 'dev-master';
-}
-
-$output = '';
-if (is_dir($path . DIRECTORY_SEPARATOR . '.git') && 0 === $this->process->execute('git log -n1 --pretty=%H', $output, $path)) {
-$package['dist']['reference'] = trim($output);
-}
-$package = $this->loader->load($package);
-$this->addPackage($package);
-}
-}
-
-
-
-
-
-
-private function getUrlMatches()
-{
-$flags = GLOB_MARK | GLOB_ONLYDIR;
-
-if (defined('GLOB_BRACE')) {
-$flags |= GLOB_BRACE;
-} elseif (strpos($this->url, '{') !== false || strpos($this->url, '}') !== false) {
-throw new \RuntimeException('The operating system does not support GLOB_BRACE which is required for the url '. $this->url);
-}
-
-
- return array_map(function ($val) {
-return rtrim(str_replace(DIRECTORY_SEPARATOR, '/', $val), '/');
-}, glob($this->url, $flags));
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository\Pear;
-
-use Composer\Util\RemoteFilesystem;
-
-
-
-
-
-
-
-
-abstract class BaseChannelReader
-{
-
-
-
-const CHANNEL_NS = 'http://pear.php.net/channel-1.0';
-const ALL_CATEGORIES_NS = 'http://pear.php.net/dtd/rest.allcategories';
-const CATEGORY_PACKAGES_INFO_NS = 'http://pear.php.net/dtd/rest.categorypackageinfo';
-const ALL_PACKAGES_NS = 'http://pear.php.net/dtd/rest.allpackages';
-const ALL_RELEASES_NS = 'http://pear.php.net/dtd/rest.allreleases';
-const PACKAGE_INFO_NS = 'http://pear.php.net/dtd/rest.package';
-
-
-private $rfs;
-
-protected function __construct(RemoteFilesystem $rfs)
-{
-$this->rfs = $rfs;
-}
-
-
-
-
-
-
-
-
-
-protected function requestContent($origin, $path)
-{
-$url = rtrim($origin, '/') . '/' . ltrim($path, '/');
-$content = $this->rfs->getContents($origin, $url, false);
-if (!$content) {
-throw new \UnexpectedValueException('The PEAR channel at ' . $url . ' did not respond.');
-}
-
-return str_replace('http://pear.php.net/rest/', 'https://pear.php.net/rest/', $content);
-}
-
-
-
-
-
-
-
-
-
-protected function requestXml($origin, $path)
-{
-
- $xml = simplexml_load_string($this->requestContent($origin, $path), "SimpleXMLElement", LIBXML_NOERROR);
-
-if (false === $xml) {
-throw new \UnexpectedValueException(sprintf('The PEAR channel at ' . $origin . ' is broken. (Invalid XML at file `%s`)', $path));
-}
-
-return $xml;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository\Pear;
-
-
-
-
-
-
-class ChannelInfo
-{
-private $name;
-private $alias;
-private $packages;
-
-
-
-
-
-
-public function __construct($name, $alias, array $packages)
-{
-$this->name = $name;
-$this->alias = $alias;
-$this->packages = $packages;
-}
-
-
-
-
-
-
-public function getName()
-{
-return $this->name;
-}
-
-
-
-
-
-
-public function getAlias()
-{
-return $this->alias;
-}
-
-
-
-
-
-
-public function getPackages()
-{
-return $this->packages;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository\Pear;
-
-use Composer\Util\RemoteFilesystem;
-
-
-
-
-
-
-
-
-class ChannelReader extends BaseChannelReader
-{
-
-private $readerMap;
-
-public function __construct(RemoteFilesystem $rfs)
-{
-parent::__construct($rfs);
-
-$rest10reader = new ChannelRest10Reader($rfs);
-$rest11reader = new ChannelRest11Reader($rfs);
-
-$this->readerMap = array(
-'REST1.3' => $rest11reader,
-'REST1.2' => $rest11reader,
-'REST1.1' => $rest11reader,
-'REST1.0' => $rest10reader,
-);
-}
-
-
-
-
-
-
-
-
-public function read($url)
-{
-$xml = $this->requestXml($url, "/channel.xml");
-
-$channelName = (string) $xml->name;
-$channelAlias = (string) $xml->suggestedalias;
-
-$supportedVersions = array_keys($this->readerMap);
-$selectedRestVersion = $this->selectRestVersion($xml, $supportedVersions);
-if (!$selectedRestVersion) {
-throw new \UnexpectedValueException(sprintf('PEAR repository %s does not supports any of %s protocols.', $url, implode(', ', $supportedVersions)));
-}
-
-$reader = $this->readerMap[$selectedRestVersion['version']];
-$packageDefinitions = $reader->read($selectedRestVersion['baseUrl']);
-
-return new ChannelInfo($channelName, $channelAlias, $packageDefinitions);
-}
-
-
-
-
-
-
-
-
-private function selectRestVersion($channelXml, $supportedVersions)
-{
-$channelXml->registerXPathNamespace('ns', self::CHANNEL_NS);
-
-foreach ($supportedVersions as $version) {
-$xpathTest = "ns:servers/ns:*/ns:rest/ns:baseurl[@type='{$version}']";
-$testResult = $channelXml->xpath($xpathTest);
-
-foreach ($testResult as $result) {
-
- $result = (string) $result;
-if (preg_match('{^https://}i', $result)) {
-return array('version' => $version, 'baseUrl' => $result);
-}
-}
-
-
- if (count($testResult) > 0) {
-return array('version' => $version, 'baseUrl' => (string) $testResult[0]);
-}
-}
-
-return null;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository\Pear;
-
-use Composer\Downloader\TransportException;
-
-
-
-
-
-
-
-
-
-
-
-
-class ChannelRest10Reader extends BaseChannelReader
-{
-private $dependencyReader;
-
-public function __construct($rfs)
-{
-parent::__construct($rfs);
-
-$this->dependencyReader = new PackageDependencyParser();
-}
-
-
-
-
-
-
-
-
-public function read($baseUrl)
-{
-return $this->readPackages($baseUrl);
-}
-
-
-
-
-
-
-
-
-private function readPackages($baseUrl)
-{
-$result = array();
-
-$xmlPath = '/p/packages.xml';
-$xml = $this->requestXml($baseUrl, $xmlPath);
-$xml->registerXPathNamespace('ns', self::ALL_PACKAGES_NS);
-foreach ($xml->xpath('ns:p') as $node) {
-$packageName = (string) $node;
-$packageInfo = $this->readPackage($baseUrl, $packageName);
-$result[] = $packageInfo;
-}
-
-return $result;
-}
-
-
-
-
-
-
-
-
-
-private function readPackage($baseUrl, $packageName)
-{
-$xmlPath = '/p/' . strtolower($packageName) . '/info.xml';
-$xml = $this->requestXml($baseUrl, $xmlPath);
-$xml->registerXPathNamespace('ns', self::PACKAGE_INFO_NS);
-
-$channelName = (string) $xml->c;
-$packageName = (string) $xml->n;
-$license = (string) $xml->l;
-$shortDescription = (string) $xml->s;
-$description = (string) $xml->d;
-
-return new PackageInfo(
-$channelName,
-$packageName,
-$license,
-$shortDescription,
-$description,
-$this->readPackageReleases($baseUrl, $packageName)
-);
-}
-
-
-
-
-
-
-
-
-
-
-private function readPackageReleases($baseUrl, $packageName)
-{
-$result = array();
-
-try {
-$xmlPath = '/r/' . strtolower($packageName) . '/allreleases.xml';
-$xml = $this->requestXml($baseUrl, $xmlPath);
-$xml->registerXPathNamespace('ns', self::ALL_RELEASES_NS);
-foreach ($xml->xpath('ns:r') as $node) {
-$releaseVersion = (string) $node->v;
-$releaseStability = (string) $node->s;
-
-try {
-$result[$releaseVersion] = new ReleaseInfo(
-$releaseStability,
-$this->readPackageReleaseDependencies($baseUrl, $packageName, $releaseVersion)
-);
-} catch (TransportException $exception) {
-if ($exception->getCode() != 404) {
-throw $exception;
-}
-}
-}
-} catch (TransportException $exception) {
-if ($exception->getCode() != 404) {
-throw $exception;
-}
-}
-
-return $result;
-}
-
-
-
-
-
-
-
-
-
-
-private function readPackageReleaseDependencies($baseUrl, $packageName, $version)
-{
-$dependencyReader = new PackageDependencyParser();
-
-$depthPath = '/r/' . strtolower($packageName) . '/deps.' . $version . '.txt';
-$content = $this->requestContent($baseUrl, $depthPath);
-$dependencyArray = unserialize($content);
-
-return $dependencyReader->buildDependencyInfo($dependencyArray);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository\Pear;
-
-
-
-
-
-
-
-
-
-
-class ChannelRest11Reader extends BaseChannelReader
-{
-private $dependencyReader;
-
-public function __construct($rfs)
-{
-parent::__construct($rfs);
-
-$this->dependencyReader = new PackageDependencyParser();
-}
-
-
-
-
-
-
-
-
-public function read($baseUrl)
-{
-return $this->readChannelPackages($baseUrl);
-}
-
-
-
-
-
-
-
-
-private function readChannelPackages($baseUrl)
-{
-$result = array();
-
-$xml = $this->requestXml($baseUrl, "/c/categories.xml");
-$xml->registerXPathNamespace('ns', self::ALL_CATEGORIES_NS);
-foreach ($xml->xpath('ns:c') as $node) {
-$categoryName = (string) $node;
-$categoryPackages = $this->readCategoryPackages($baseUrl, $categoryName);
-$result = array_merge($result, $categoryPackages);
-}
-
-return $result;
-}
-
-
-
-
-
-
-
-
-
-private function readCategoryPackages($baseUrl, $categoryName)
-{
-$result = array();
-
-$categoryPath = '/c/'.urlencode($categoryName).'/packagesinfo.xml';
-$xml = $this->requestXml($baseUrl, $categoryPath);
-$xml->registerXPathNamespace('ns', self::CATEGORY_PACKAGES_INFO_NS);
-foreach ($xml->xpath('ns:pi') as $node) {
-$packageInfo = $this->parsePackage($node);
-$result[] = $packageInfo;
-}
-
-return $result;
-}
-
-
-
-
-
-
-
-private function parsePackage($packageInfo)
-{
-$packageInfo->registerXPathNamespace('ns', self::CATEGORY_PACKAGES_INFO_NS);
-$channelName = (string) $packageInfo->p->c;
-$packageName = (string) $packageInfo->p->n;
-$license = (string) $packageInfo->p->l;
-$shortDescription = (string) $packageInfo->p->s;
-$description = (string) $packageInfo->p->d;
-
-$dependencies = array();
-foreach ($packageInfo->xpath('ns:deps') as $node) {
-$dependencyVersion = (string) $node->v;
-$dependencyArray = unserialize((string) $node->d);
-
-$dependencyInfo = $this->dependencyReader->buildDependencyInfo($dependencyArray);
-
-$dependencies[$dependencyVersion] = $dependencyInfo;
-}
-
-$releases = array();
-$releasesInfo = $packageInfo->xpath('ns:a/ns:r');
-if ($releasesInfo) {
-foreach ($releasesInfo as $node) {
-$releaseVersion = (string) $node->v;
-$releaseStability = (string) $node->s;
-$releases[$releaseVersion] = new ReleaseInfo(
-$releaseStability,
-isset($dependencies[$releaseVersion]) ? $dependencies[$releaseVersion] : new DependencyInfo(array(), array())
-);
-}
-}
-
-return new PackageInfo(
-$channelName,
-$packageName,
-$license,
-$shortDescription,
-$description,
-$releases
-);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository\Pear;
-
-
-
-
-
-
-class DependencyConstraint
-{
-private $type;
-private $constraint;
-private $channelName;
-private $packageName;
-
-
-
-
-
-
-
-public function __construct($type, $constraint, $channelName, $packageName)
-{
-$this->type = $type;
-$this->constraint = $constraint;
-$this->channelName = $channelName;
-$this->packageName = $packageName;
-}
-
-public function getChannelName()
-{
-return $this->channelName;
-}
-
-public function getConstraint()
-{
-return $this->constraint;
-}
-
-public function getPackageName()
-{
-return $this->packageName;
-}
-
-public function getType()
-{
-return $this->type;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository\Pear;
-
-
-
-
-
-
-class DependencyInfo
-{
-private $requires;
-private $optionals;
-
-
-
-
-
-public function __construct($requires, $optionals)
-{
-$this->requires = $requires;
-$this->optionals = $optionals;
-}
-
-
-
-
-public function getRequires()
-{
-return $this->requires;
-}
-
-
-
-
-public function getOptionals()
-{
-return $this->optionals;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository\Pear;
-
-
-
-
-
-
-class PackageDependencyParser
-{
-
-
-
-
-
-
-public function buildDependencyInfo($depArray)
-{
-if (!is_array($depArray)) {
-return new DependencyInfo(array(), array());
-}
-if (!$this->isHash($depArray)) {
-return new DependencyInfo($this->buildDependency10Info($depArray), array());
-}
-
-return $this->buildDependency20Info($depArray);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-private function buildDependency10Info($depArray)
-{
-static $dep10toOperatorMap = array('has' => '==', 'eq' => '==', 'ge' => '>=', 'gt' => '>', 'le' => '<=', 'lt' => '<', 'not' => '!=');
-
-$result = array();
-
-foreach ($depArray as $depItem) {
-if (empty($depItem['rel']) || !array_key_exists($depItem['rel'], $dep10toOperatorMap)) {
-
- continue;
-}
-
-$depType = !empty($depItem['optional']) && 'yes' == $depItem['optional']
-? 'optional'
-: 'required';
-$depType = 'not' == $depItem['rel']
-? 'conflicts'
-: $depType;
-
-$depVersion = !empty($depItem['version']) ? $this->parseVersion($depItem['version']) : '*';
-
-
- $depVersionConstraint = ('has' == $depItem['rel'] || 'not' == $depItem['rel']) && '*' == $depVersion
-? '*'
-: $dep10toOperatorMap[$depItem['rel']] . $depVersion;
-
-switch ($depItem['type']) {
-case 'php':
-$depChannelName = 'php';
-$depPackageName = '';
-break;
-case 'pkg':
-$depChannelName = !empty($depItem['channel']) ? $depItem['channel'] : 'pear.php.net';
-$depPackageName = $depItem['name'];
-break;
-case 'ext':
-$depChannelName = 'ext';
-$depPackageName = $depItem['name'];
-break;
-case 'os':
-case 'sapi':
-$depChannelName = '';
-$depPackageName = '';
-break;
-default:
-$depChannelName = '';
-$depPackageName = '';
-break;
-}
-
-if ('' != $depChannelName) {
-$result[] = new DependencyConstraint(
-$depType,
-$depVersionConstraint,
-$depChannelName,
-$depPackageName
-);
-}
-}
-
-return $result;
-}
-
-
-
-
-
-
-
-private function buildDependency20Info($depArray)
-{
-$result = array();
-$optionals = array();
-$defaultOptionals = array();
-foreach ($depArray as $depType => $depTypeGroup) {
-if (!is_array($depTypeGroup)) {
-continue;
-}
-if ('required' == $depType || 'optional' == $depType) {
-foreach ($depTypeGroup as $depItemType => $depItem) {
-switch ($depItemType) {
-case 'php':
-$result[] = new DependencyConstraint(
-$depType,
-$this->parse20VersionConstraint($depItem),
-'php',
-''
-);
-break;
-case 'package':
-$deps = $this->buildDepPackageConstraints($depItem, $depType);
-$result = array_merge($result, $deps);
-break;
-case 'extension':
-$deps = $this->buildDepExtensionConstraints($depItem, $depType);
-$result = array_merge($result, $deps);
-break;
-case 'subpackage':
-$deps = $this->buildDepPackageConstraints($depItem, 'replaces');
-$defaultOptionals += $deps;
-break;
-case 'os':
-case 'pearinstaller':
-break;
-default:
-break;
-}
-}
-} elseif ('group' == $depType) {
-if ($this->isHash($depTypeGroup)) {
-$depTypeGroup = array($depTypeGroup);
-}
-
-foreach ($depTypeGroup as $depItem) {
-$groupName = $depItem['attribs']['name'];
-if (!isset($optionals[$groupName])) {
-$optionals[$groupName] = array();
-}
-
-if (isset($depItem['subpackage'])) {
-$optionals[$groupName] += $this->buildDepPackageConstraints($depItem['subpackage'], 'replaces');
-} else {
-$result += $this->buildDepPackageConstraints($depItem['package'], 'optional');
-}
-}
-}
-}
-
-if (count($defaultOptionals) > 0) {
-$optionals['*'] = $defaultOptionals;
-}
-
-return new DependencyInfo($result, $optionals);
-}
-
-
-
-
-
-
-
-
-private function buildDepExtensionConstraints($depItem, $depType)
-{
-if ($this->isHash($depItem)) {
-$depItem = array($depItem);
-}
-
-$result = array();
-foreach ($depItem as $subDepItem) {
-$depChannelName = 'ext';
-$depPackageName = $subDepItem['name'];
-$depVersionConstraint = $this->parse20VersionConstraint($subDepItem);
-
-$result[] = new DependencyConstraint(
-$depType,
-$depVersionConstraint,
-$depChannelName,
-$depPackageName
-);
-}
-
-return $result;
-}
-
-
-
-
-
-
-
-
-private function buildDepPackageConstraints($depItem, $depType)
-{
-if ($this->isHash($depItem)) {
-$depItem = array($depItem);
-}
-
-$result = array();
-foreach ($depItem as $subDepItem) {
-if (!array_key_exists('channel', $subDepItem)) {
-$subDepItem['channel'] = $subDepItem['uri'];
-}
-$depChannelName = $subDepItem['channel'];
-$depPackageName = $subDepItem['name'];
-$depVersionConstraint = $this->parse20VersionConstraint($subDepItem);
-if (isset($subDepItem['conflicts'])) {
-$depType = 'conflicts';
-}
-
-$result[] = new DependencyConstraint(
-$depType,
-$depVersionConstraint,
-$depChannelName,
-$depPackageName
-);
-}
-
-return $result;
-}
-
-
-
-
-
-
-
-private function parse20VersionConstraint(array $data)
-{
-static $dep20toOperatorMap = array('has' => '==', 'min' => '>=', 'max' => '<=', 'exclude' => '!=');
-
-$versions = array();
-$values = array_intersect_key($data, $dep20toOperatorMap);
-if (0 == count($values)) {
-return '*';
-}
-if (isset($values['min']) && isset($values['exclude']) && $data['min'] == $data['exclude']) {
-$versions[] = '>' . $this->parseVersion($values['min']);
-} elseif (isset($values['max']) && isset($values['exclude']) && $data['max'] == $data['exclude']) {
-$versions[] = '<' . $this->parseVersion($values['max']);
-} else {
-foreach ($values as $op => $version) {
-if ('exclude' == $op && is_array($version)) {
-foreach ($version as $versionPart) {
-$versions[] = $dep20toOperatorMap[$op] . $this->parseVersion($versionPart);
-}
-} else {
-$versions[] = $dep20toOperatorMap[$op] . $this->parseVersion($version);
-}
-}
-}
-
-return implode(',', $versions);
-}
-
-
-
-
-
-
-
-private function parseVersion($version)
-{
-if (preg_match('{^v?(\d{1,3})(\.\d+)?(\.\d+)?(\.\d+)?}i', $version, $matches)) {
-$version = $matches[1]
-.(!empty($matches[2]) ? $matches[2] : '.0')
-.(!empty($matches[3]) ? $matches[3] : '.0')
-.(!empty($matches[4]) ? $matches[4] : '.0');
-
-return $version;
-}
-
-return null;
-}
-
-
-
-
-
-
-
-private function isHash(array $array)
-{
-return !array_key_exists(1, $array) && !array_key_exists(0, $array);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository\Pear;
-
-
-
-
-
-
-class PackageInfo
-{
-private $channelName;
-private $packageName;
-private $license;
-private $shortDescription;
-private $description;
-private $releases;
-
-
-
-
-
-
-
-
-
-public function __construct($channelName, $packageName, $license, $shortDescription, $description, $releases)
-{
-$this->channelName = $channelName;
-$this->packageName = $packageName;
-$this->license = $license;
-$this->shortDescription = $shortDescription;
-$this->description = $description;
-$this->releases = $releases;
-}
-
-
-
-
-public function getChannelName()
-{
-return $this->channelName;
-}
-
-
-
-
-public function getPackageName()
-{
-return $this->packageName;
-}
-
-
-
-
-public function getDescription()
-{
-return $this->description;
-}
-
-
-
-
-public function getShortDescription()
-{
-return $this->shortDescription;
-}
-
-
-
-
-public function getLicense()
-{
-return $this->license;
-}
-
-
-
-
-public function getReleases()
-{
-return $this->releases;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository\Pear;
-
-
-
-
-
-
-class ReleaseInfo
-{
-private $stability;
-private $dependencyInfo;
-
-
-
-
-
-public function __construct($stability, $dependencyInfo)
-{
-$this->stability = $stability;
-$this->dependencyInfo = $dependencyInfo;
-}
-
-
-
-
-public function getDependencyInfo()
-{
-return $this->dependencyInfo;
-}
-
-
-
-
-public function getStability()
-{
-return $this->stability;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-use Composer\IO\IOInterface;
-use Composer\Semver\VersionParser as SemverVersionParser;
-use Composer\Package\Version\VersionParser;
-use Composer\Repository\Pear\ChannelReader;
-use Composer\Package\CompletePackage;
-use Composer\Repository\Pear\ChannelInfo;
-use Composer\EventDispatcher\EventDispatcher;
-use Composer\Package\Link;
-use Composer\Semver\Constraint\Constraint;
-use Composer\Util\RemoteFilesystem;
-use Composer\Config;
-use Composer\Factory;
-
-
-
-
-
-
-
-
-
-
-class PearRepository extends ArrayRepository implements ConfigurableRepositoryInterface
-{
-private $url;
-private $io;
-private $rfs;
-private $versionParser;
-private $repoConfig;
-
-
-
-
-private $vendorAlias;
-
-public function __construct(array $repoConfig, IOInterface $io, Config $config, EventDispatcher $dispatcher = null, RemoteFilesystem $rfs = null)
-{
-parent::__construct();
-if (!preg_match('{^https?://}', $repoConfig['url'])) {
-$repoConfig['url'] = 'http://'.$repoConfig['url'];
-}
-
-$urlBits = parse_url($repoConfig['url']);
-if (empty($urlBits['scheme']) || empty($urlBits['host'])) {
-throw new \UnexpectedValueException('Invalid url given for PEAR repository: '.$repoConfig['url']);
-}
-
-$this->url = rtrim($repoConfig['url'], '/');
-$this->io = $io;
-$this->rfs = $rfs ?: Factory::createRemoteFilesystem($this->io, $config);
-$this->vendorAlias = isset($repoConfig['vendor-alias']) ? $repoConfig['vendor-alias'] : null;
-$this->versionParser = new VersionParser();
-$this->repoConfig = $repoConfig;
-}
-
-public function getRepoConfig()
-{
-return $this->repoConfig;
-}
-
-protected function initialize()
-{
-parent::initialize();
-
-$this->io->writeError('Initializing PEAR repository '.$this->url);
-
-$reader = new ChannelReader($this->rfs);
-try {
-$channelInfo = $reader->read($this->url);
-} catch (\Exception $e) {
-$this->io->writeError('<warning>PEAR repository from '.$this->url.' could not be loaded. '.$e->getMessage().'</warning>');
-
-return;
-}
-$packages = $this->buildComposerPackages($channelInfo, $this->versionParser);
-foreach ($packages as $package) {
-$this->addPackage($package);
-}
-}
-
-
-
-
-
-
-
-
-private function buildComposerPackages(ChannelInfo $channelInfo, SemverVersionParser $versionParser)
-{
-$result = array();
-foreach ($channelInfo->getPackages() as $packageDefinition) {
-foreach ($packageDefinition->getReleases() as $version => $releaseInfo) {
-try {
-$normalizedVersion = $versionParser->normalize($version);
-} catch (\UnexpectedValueException $e) {
-$this->io->writeError('Could not load '.$packageDefinition->getPackageName().' '.$version.': '.$e->getMessage(), true, IOInterface::VERBOSE);
-continue;
-}
-
-$composerPackageName = $this->buildComposerPackageName($packageDefinition->getChannelName(), $packageDefinition->getPackageName());
-
-
- 
- $urlBits = parse_url($this->url);
-$scheme = (isset($urlBits['scheme']) && 'https' === $urlBits['scheme'] && extension_loaded('openssl')) ? 'https' : 'http';
-$distUrl = "{$scheme}://{$packageDefinition->getChannelName()}/get/{$packageDefinition->getPackageName()}-{$version}.tgz";
-
-$requires = array();
-$suggests = array();
-$conflicts = array();
-$replaces = array();
-
-
- 
- if ($channelInfo->getName() == $packageDefinition->getChannelName()) {
-$composerPackageAlias = $this->buildComposerPackageName($channelInfo->getAlias(), $packageDefinition->getPackageName());
-$aliasConstraint = new Constraint('==', $normalizedVersion);
-$replaces[] = new Link($composerPackageName, $composerPackageAlias, $aliasConstraint, 'replaces', (string) $aliasConstraint);
-}
-
-
- if (!empty($this->vendorAlias)
-&& ($this->vendorAlias != 'pear-'.$channelInfo->getAlias() || $channelInfo->getName() != $packageDefinition->getChannelName())
-) {
-$composerPackageAlias = "{$this->vendorAlias}/{$packageDefinition->getPackageName()}";
-$aliasConstraint = new Constraint('==', $normalizedVersion);
-$replaces[] = new Link($composerPackageName, $composerPackageAlias, $aliasConstraint, 'replaces', (string) $aliasConstraint);
-}
-
-foreach ($releaseInfo->getDependencyInfo()->getRequires() as $dependencyConstraint) {
-$dependencyPackageName = $this->buildComposerPackageName($dependencyConstraint->getChannelName(), $dependencyConstraint->getPackageName());
-$constraint = $versionParser->parseConstraints($dependencyConstraint->getConstraint());
-$link = new Link($composerPackageName, $dependencyPackageName, $constraint, $dependencyConstraint->getType(), $dependencyConstraint->getConstraint());
-switch ($dependencyConstraint->getType()) {
-case 'required':
-$requires[] = $link;
-break;
-case 'conflicts':
-$conflicts[] = $link;
-break;
-case 'replaces':
-$replaces[] = $link;
-break;
-}
-}
-
-foreach ($releaseInfo->getDependencyInfo()->getOptionals() as $group => $dependencyConstraints) {
-foreach ($dependencyConstraints as $dependencyConstraint) {
-$dependencyPackageName = $this->buildComposerPackageName($dependencyConstraint->getChannelName(), $dependencyConstraint->getPackageName());
-$suggests[$group.'-'.$dependencyPackageName] = $dependencyConstraint->getConstraint();
-}
-}
-
-$package = new CompletePackage($composerPackageName, $normalizedVersion, $version);
-$package->setType('pear-library');
-$package->setDescription($packageDefinition->getDescription());
-$package->setLicense(array($packageDefinition->getLicense()));
-$package->setDistType('file');
-$package->setDistUrl($distUrl);
-$package->setAutoload(array('classmap' => array('')));
-$package->setIncludePaths(array('/'));
-$package->setRequires($requires);
-$package->setConflicts($conflicts);
-$package->setSuggests($suggests);
-$package->setReplaces($replaces);
-$result[] = $package;
-}
-}
-
-return $result;
-}
-
-private function buildComposerPackageName($channelName, $packageName)
-{
-if ('php' === $channelName) {
-return "php";
-}
-if ('ext' === $channelName) {
-return "ext-{$packageName}";
-}
-
-return "pear-{$channelName}/{$packageName}";
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-use Composer\Package\CompletePackage;
-use Composer\Package\PackageInterface;
-use Composer\Package\Version\VersionParser;
-use Composer\Plugin\PluginInterface;
-use Composer\Util\Silencer;
-use Composer\XdebugHandler\XdebugHandler;
-
-
-
-
-class PlatformRepository extends ArrayRepository
-{
-const PLATFORM_PACKAGE_REGEX = '{^(?:php(?:-64bit|-ipv6|-zts|-debug)?|hhvm|(?:ext|lib)-[^/ ]+)$}i';
-
-private $versionParser;
-
-
-
-
-
-
-
-
-private $overrides = array();
-
-public function __construct(array $packages = array(), array $overrides = array())
-{
-foreach ($overrides as $name => $version) {
-$this->overrides[strtolower($name)] = array('name' => $name, 'version' => $version);
-}
-parent::__construct($packages);
-}
-
-protected function initialize()
-{
-parent::initialize();
-
-$this->versionParser = new VersionParser();
-
-
- 
- foreach ($this->overrides as $override) {
-
- if (!preg_match(self::PLATFORM_PACKAGE_REGEX, $override['name'])) {
-throw new \InvalidArgumentException('Invalid platform package name in config.platform: '.$override['name']);
-}
-
-$this->addOverriddenPackage($override);
-}
-
-$prettyVersion = PluginInterface::PLUGIN_API_VERSION;
-$version = $this->versionParser->normalize($prettyVersion);
-$composerPluginApi = new CompletePackage('composer-plugin-api', $version, $prettyVersion);
-$composerPluginApi->setDescription('The Composer Plugin API');
-$this->addPackage($composerPluginApi);
-
-try {
-$prettyVersion = PHP_VERSION;
-$version = $this->versionParser->normalize($prettyVersion);
-} catch (\UnexpectedValueException $e) {
-$prettyVersion = preg_replace('#^([^~+-]+).*$#', '$1', PHP_VERSION);
-$version = $this->versionParser->normalize($prettyVersion);
-}
-
-$php = new CompletePackage('php', $version, $prettyVersion);
-$php->setDescription('The PHP interpreter');
-$this->addPackage($php);
-
-if (PHP_DEBUG) {
-$phpdebug = new CompletePackage('php-debug', $version, $prettyVersion);
-$phpdebug->setDescription('The PHP interpreter, with debugging symbols');
-$this->addPackage($phpdebug);
-}
-
-if (defined('PHP_ZTS') && PHP_ZTS) {
-$phpzts = new CompletePackage('php-zts', $version, $prettyVersion);
-$phpzts->setDescription('The PHP interpreter, with Zend Thread Safety');
-$this->addPackage($phpzts);
-}
-
-if (PHP_INT_SIZE === 8) {
-$php64 = new CompletePackage('php-64bit', $version, $prettyVersion);
-$php64->setDescription('The PHP interpreter, 64bit');
-$this->addPackage($php64);
-}
-
-
- 
- if (defined('AF_INET6') || Silencer::call('inet_pton', '::') !== false) {
-$phpIpv6 = new CompletePackage('php-ipv6', $version, $prettyVersion);
-$phpIpv6->setDescription('The PHP interpreter, with IPv6 support');
-$this->addPackage($phpIpv6);
-}
-
-$loadedExtensions = get_loaded_extensions();
-
-
- foreach ($loadedExtensions as $name) {
-if (in_array($name, array('standard', 'Core'))) {
-continue;
-}
-
-$reflExt = new \ReflectionExtension($name);
-$prettyVersion = $reflExt->getVersion();
-$this->addExtension($name, $prettyVersion);
-}
-
-
- if (!in_array('xdebug', $loadedExtensions, true) && ($prettyVersion = XdebugHandler::getSkippedVersion())) {
-$this->addExtension('xdebug', $prettyVersion);
-}
-
-
- 
- 
- foreach ($loadedExtensions as $name) {
-$prettyVersion = null;
-$description = 'The '.$name.' PHP library';
-switch ($name) {
-case 'curl':
-$curlVersion = curl_version();
-$prettyVersion = $curlVersion['version'];
-break;
-
-case 'iconv':
-$prettyVersion = ICONV_VERSION;
-break;
-
-case 'intl':
-$name = 'ICU';
-if (defined('INTL_ICU_VERSION')) {
-$prettyVersion = INTL_ICU_VERSION;
-} else {
-$reflector = new \ReflectionExtension('intl');
-
-ob_start();
-$reflector->info();
-$output = ob_get_clean();
-
-preg_match('/^ICU version => (.*)$/m', $output, $matches);
-$prettyVersion = $matches[1];
-}
-
-break;
-
-case 'imagick':
-$imagick = new \Imagick();
-$imageMagickVersion = $imagick->getVersion();
-preg_match('/^ImageMagick ([\d.]+)-(\d+)/', $imageMagickVersion['versionString'], $matches);
-$prettyVersion = "{$matches[1]}.{$matches[2]}";
-break;
-
-case 'libxml':
-$prettyVersion = LIBXML_DOTTED_VERSION;
-break;
-
-case 'openssl':
-$prettyVersion = preg_replace_callback('{^(?:OpenSSL|LibreSSL)?\s*([0-9.]+)([a-z]*).*}i', function ($match) {
-if (empty($match[2])) {
-return $match[1];
-}
-
-
- 
-
-if (!preg_match('{^z*[a-z]$}', $match[2])) {
-
- return 0;
-}
-
-$len = strlen($match[2]);
-$patchVersion = ($len - 1) * 26; 
- $patchVersion += ord($match[2][$len - 1]) - 96;
-
-return $match[1].'.'.$patchVersion;
-}, OPENSSL_VERSION_TEXT);
-
-$description = OPENSSL_VERSION_TEXT;
-break;
-
-case 'pcre':
-$prettyVersion = preg_replace('{^(\S+).*}', '$1', PCRE_VERSION);
-break;
-
-case 'uuid':
-$prettyVersion = phpversion('uuid');
-break;
-
-case 'xsl':
-$prettyVersion = LIBXSLT_DOTTED_VERSION;
-break;
-
-default:
-
- continue 2;
-}
-
-try {
-$version = $this->versionParser->normalize($prettyVersion);
-} catch (\UnexpectedValueException $e) {
-continue;
-}
-
-$lib = new CompletePackage('lib-'.$name, $version, $prettyVersion);
-$lib->setDescription($description);
-$this->addPackage($lib);
-}
-
-if (defined('HHVM_VERSION')) {
-try {
-$prettyVersion = HHVM_VERSION;
-$version = $this->versionParser->normalize($prettyVersion);
-} catch (\UnexpectedValueException $e) {
-$prettyVersion = preg_replace('#^([^~+-]+).*$#', '$1', HHVM_VERSION);
-$version = $this->versionParser->normalize($prettyVersion);
-}
-
-$hhvm = new CompletePackage('hhvm', $version, $prettyVersion);
-$hhvm->setDescription('The HHVM Runtime (64bit)');
-$this->addPackage($hhvm);
-}
-}
-
-
-
-
-public function addPackage(PackageInterface $package)
-{
-
- if (isset($this->overrides[$package->getName()])) {
-$overrider = $this->findPackage($package->getName(), '*');
-if ($package->getVersion() === $overrider->getVersion()) {
-$actualText = 'same as actual';
-} else {
-$actualText = 'actual: '.$package->getPrettyVersion();
-}
-$overrider->setDescription($overrider->getDescription().' ('.$actualText.')');
-
-return;
-}
-
-
- if (isset($this->overrides['php']) && 0 === strpos($package->getName(), 'php-')) {
-$overrider = $this->addOverriddenPackage($this->overrides['php'], $package->getPrettyName());
-if ($package->getVersion() === $overrider->getVersion()) {
-$actualText = 'same as actual';
-} else {
-$actualText = 'actual: '.$package->getPrettyVersion();
-}
-$overrider->setDescription($overrider->getDescription().' ('.$actualText.')');
-
-return;
-}
-
-parent::addPackage($package);
-}
-
-private function addOverriddenPackage(array $override, $name = null)
-{
-$version = $this->versionParser->normalize($override['version']);
-$package = new CompletePackage($name ?: $override['name'], $version, $override['version']);
-$package->setDescription('Package overridden via config.platform');
-$package->setExtra(array('config.platform' => true));
-parent::addPackage($package);
-
-return $package;
-}
-
-
-
-
-
-
-
-private function addExtension($name, $prettyVersion)
-{
-$extraDescription = null;
-
-try {
-$version = $this->versionParser->normalize($prettyVersion);
-} catch (\UnexpectedValueException $e) {
-$extraDescription = ' (actual version: '.$prettyVersion.')';
-if (preg_match('{^(\d+\.\d+\.\d+(?:\.\d+)?)}', $prettyVersion, $match)) {
-$prettyVersion = $match[1];
-} else {
-$prettyVersion = '0';
-}
-$version = $this->versionParser->normalize($prettyVersion);
-}
-
-$packageName = $this->buildPackageName($name);
-$ext = new CompletePackage($packageName, $version, $prettyVersion);
-$ext->setDescription('The '.$name.' PHP extension'.$extraDescription);
-$this->addPackage($ext);
-}
-
-private function buildPackageName($name)
-{
-return 'ext-' . str_replace(' ', '-', $name);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-use Composer\Factory;
-use Composer\IO\IOInterface;
-use Composer\Config;
-use Composer\EventDispatcher\EventDispatcher;
-use Composer\Util\RemoteFilesystem;
-use Composer\Json\JsonFile;
-
-
-
-
-class RepositoryFactory
-{
-
-
-
-
-
-
-
-public static function configFromString(IOInterface $io, Config $config, $repository, $allowFilesystem = false)
-{
-if (0 === strpos($repository, 'http')) {
-$repoConfig = array('type' => 'composer', 'url' => $repository);
-} elseif ("json" === pathinfo($repository, PATHINFO_EXTENSION)) {
-$json = new JsonFile($repository, Factory::createRemoteFilesystem($io, $config));
-$data = $json->read();
-if (!empty($data['packages']) || !empty($data['includes']) || !empty($data['provider-includes'])) {
-$repoConfig = array('type' => 'composer', 'url' => 'file://' . strtr(realpath($repository), '\\', '/'));
-} elseif ($allowFilesystem) {
-$repoConfig = array('type' => 'filesystem', 'json' => $json);
-} else {
-throw new \InvalidArgumentException("Invalid repository URL ($repository) given. This file does not contain a valid composer repository.");
-}
-} elseif ('{' === substr($repository, 0, 1)) {
-
- $repoConfig = JsonFile::parseJson($repository);
-} else {
-throw new \InvalidArgumentException("Invalid repository url ($repository) given. Has to be a .json file, an http url or a JSON object.");
-}
-
-return $repoConfig;
-}
-
-
-
-
-
-
-
-
-public static function fromString(IOInterface $io, Config $config, $repository, $allowFilesystem = false)
-{
-$repoConfig = static::configFromString($io, $config, $repository, $allowFilesystem);
-
-return static::createRepo($io, $config, $repoConfig);
-}
-
-
-
-
-
-
-
-public static function createRepo(IOInterface $io, Config $config, array $repoConfig)
-{
-$rm = static::manager($io, $config, null, Factory::createRemoteFilesystem($io, $config));
-$repos = static::createRepos($rm, array($repoConfig));
-
-return reset($repos);
-}
-
-
-
-
-
-
-
-public static function defaultRepos(IOInterface $io = null, Config $config = null, RepositoryManager $rm = null)
-{
-if (!$config) {
-$config = Factory::createConfig($io);
-}
-if (!$rm) {
-if (!$io) {
-throw new \InvalidArgumentException('This function requires either an IOInterface or a RepositoryManager');
-}
-$rm = static::manager($io, $config, null, Factory::createRemoteFilesystem($io, $config));
-}
-
-return static::createRepos($rm, $config->getRepositories());
-}
-
-
-
-
-
-
-
-
-public static function manager(IOInterface $io, Config $config, EventDispatcher $eventDispatcher = null, RemoteFilesystem $rfs = null)
-{
-$rm = new RepositoryManager($io, $config, $eventDispatcher, $rfs);
-$rm->setRepositoryClass('composer', 'Composer\Repository\ComposerRepository');
-$rm->setRepositoryClass('vcs', 'Composer\Repository\VcsRepository');
-$rm->setRepositoryClass('package', 'Composer\Repository\PackageRepository');
-$rm->setRepositoryClass('pear', 'Composer\Repository\PearRepository');
-$rm->setRepositoryClass('git', 'Composer\Repository\VcsRepository');
-$rm->setRepositoryClass('git-bitbucket', 'Composer\Repository\VcsRepository');
-$rm->setRepositoryClass('github', 'Composer\Repository\VcsRepository');
-$rm->setRepositoryClass('gitlab', 'Composer\Repository\VcsRepository');
-$rm->setRepositoryClass('svn', 'Composer\Repository\VcsRepository');
-$rm->setRepositoryClass('fossil', 'Composer\Repository\VcsRepository');
-$rm->setRepositoryClass('perforce', 'Composer\Repository\VcsRepository');
-$rm->setRepositoryClass('hg', 'Composer\Repository\VcsRepository');
-$rm->setRepositoryClass('hg-bitbucket', 'Composer\Repository\VcsRepository');
-$rm->setRepositoryClass('artifact', 'Composer\Repository\ArtifactRepository');
-$rm->setRepositoryClass('path', 'Composer\Repository\PathRepository');
-
-return $rm;
-}
-
-
-
-
-private static function createRepos(RepositoryManager $rm, array $repoConfigs)
-{
-$repos = array();
-
-foreach ($repoConfigs as $index => $repo) {
-if (is_string($repo)) {
-throw new \UnexpectedValueException('"repositories" should be an array of repository definitions, only a single repository was given');
-}
-if (!is_array($repo)) {
-throw new \UnexpectedValueException('Repository "'.$index.'" ('.json_encode($repo).') should be an array, '.gettype($repo).' given');
-}
-if (!isset($repo['type'])) {
-throw new \UnexpectedValueException('Repository "'.$index.'" ('.json_encode($repo).') must have a type defined');
-}
-$name = is_int($index) && isset($repo['url']) ? preg_replace('{^https?://}i', '', $repo['url']) : $index;
-while (isset($repos[$name])) {
-$name .= '2';
-}
-if ($repo['type'] === 'filesystem') {
-$repos[$name] = new FilesystemRepository($repo['json']);
-} else {
-$repos[$name] = $rm->createRepository($repo['type'], $repo, $index);
-}
-}
-
-return $repos;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-use Composer\Package\PackageInterface;
-
-
-
-
-
-
-
-
-interface RepositoryInterface extends \Countable
-{
-const SEARCH_FULLTEXT = 0;
-const SEARCH_NAME = 1;
-
-
-
-
-
-
-
-
-public function hasPackage(PackageInterface $package);
-
-
-
-
-
-
-
-
-
-public function findPackage($name, $constraint);
-
-
-
-
-
-
-
-
-
-public function findPackages($name, $constraint = null);
-
-
-
-
-
-
-public function getPackages();
-
-
-
-
-
-
-
-
-
-public function search($query, $mode = 0);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-use Composer\IO\IOInterface;
-use Composer\Config;
-use Composer\EventDispatcher\EventDispatcher;
-use Composer\Package\PackageInterface;
-use Composer\Util\RemoteFilesystem;
-
-
-
-
-
-
-
-
-class RepositoryManager
-{
-private $localRepository;
-private $repositories = array();
-private $repositoryClasses = array();
-private $io;
-private $config;
-private $eventDispatcher;
-private $rfs;
-
-public function __construct(IOInterface $io, Config $config, EventDispatcher $eventDispatcher = null, RemoteFilesystem $rfs = null)
-{
-$this->io = $io;
-$this->config = $config;
-$this->eventDispatcher = $eventDispatcher;
-$this->rfs = $rfs;
-}
-
-
-
-
-
-
-
-
-
-public function findPackage($name, $constraint)
-{
-foreach ($this->repositories as $repository) {
-
-if ($package = $repository->findPackage($name, $constraint)) {
-return $package;
-}
-}
-
-return null;
-}
-
-
-
-
-
-
-
-
-
-public function findPackages($name, $constraint)
-{
-$packages = array();
-
-foreach ($this->getRepositories() as $repository) {
-$packages = array_merge($packages, $repository->findPackages($name, $constraint));
-}
-
-return $packages;
-}
-
-
-
-
-
-
-public function addRepository(RepositoryInterface $repository)
-{
-$this->repositories[] = $repository;
-}
-
-
-
-
-
-
-
-
-public function prependRepository(RepositoryInterface $repository)
-{
-array_unshift($this->repositories, $repository);
-}
-
-
-
-
-
-
-
-
-
-
-public function createRepository($type, $config, $name = null)
-{
-if (!isset($this->repositoryClasses[$type])) {
-throw new \InvalidArgumentException('Repository type is not registered: '.$type);
-}
-
-if (isset($config['packagist']) && false === $config['packagist']) {
-$this->io->writeError('<warning>Repository "'.$name.'" ('.json_encode($config).') has a packagist key which should be in its own repository definition</warning>');
-}
-
-$class = $this->repositoryClasses[$type];
-
-$reflMethod = new \ReflectionMethod($class, '__construct');
-$params = $reflMethod->getParameters();
-if (isset($params[4]) && $params[4]->getClass() && $params[4]->getClass()->getName() === 'Composer\Util\RemoteFilesystem') {
-return new $class($config, $this->io, $this->config, $this->eventDispatcher, $this->rfs);
-}
-
-return new $class($config, $this->io, $this->config, $this->eventDispatcher);
-}
-
-
-
-
-
-
-
-public function setRepositoryClass($type, $class)
-{
-$this->repositoryClasses[$type] = $class;
-}
-
-
-
-
-
-
-public function getRepositories()
-{
-return $this->repositories;
-}
-
-
-
-
-
-
-public function setLocalRepository(WritableRepositoryInterface $repository)
-{
-$this->localRepository = $repository;
-}
-
-
-
-
-
-
-public function getLocalRepository()
-{
-return $this->localRepository;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-
-
-
-
-
-class RepositorySecurityException extends \Exception
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository\Vcs;
-
-use Composer\Cache;
-use Composer\Downloader\TransportException;
-use Composer\Json\JsonFile;
-use Composer\Util\Bitbucket;
-
-abstract class BitbucketDriver extends VcsDriver
-{
-
-protected $cache;
-protected $owner;
-protected $repository;
-protected $hasIssues;
-protected $rootIdentifier;
-protected $tags;
-protected $branches;
-protected $infoCache = array();
-protected $branchesUrl = '';
-protected $tagsUrl = '';
-protected $homeUrl = '';
-protected $website = '';
-protected $cloneHttpsUrl = '';
-
-
-
-
-protected $fallbackDriver;
-
-protected $vcsType;
-
-
-
-
-public function initialize()
-{
-preg_match('#^https?://bitbucket\.org/([^/]+)/([^/]+?)(\.git|/?)$#', $this->url, $match);
-$this->owner = $match[1];
-$this->repository = $match[2];
-$this->originUrl = 'bitbucket.org';
-$this->cache = new Cache(
-$this->io,
-implode('/', array(
-$this->config->get('cache-repo-dir'),
-$this->originUrl,
-$this->owner,
-$this->repository,
-))
-);
-}
-
-
-
-
-public function getUrl()
-{
-if ($this->fallbackDriver) {
-return $this->fallbackDriver->getUrl();
-}
-
-return $this->cloneHttpsUrl;
-}
-
-
-
-
-
-
-
-protected function getRepoData()
-{
-$resource = sprintf(
-'https://api.bitbucket.org/2.0/repositories/%s/%s?%s',
-$this->owner,
-$this->repository,
-http_build_query(
-array('fields' => '-project,-owner'),
-null,
-'&'
-)
-);
-
-$repoData = JsonFile::parseJson($this->getContentsWithOAuthCredentials($resource, true), $resource);
-if ($this->fallbackDriver) {
-return false;
-}
-$this->parseCloneUrls($repoData['links']['clone']);
-
-$this->hasIssues = !empty($repoData['has_issues']);
-$this->branchesUrl = $repoData['links']['branches']['href'];
-$this->tagsUrl = $repoData['links']['tags']['href'];
-$this->homeUrl = $repoData['links']['html']['href'];
-$this->website = $repoData['website'];
-$this->vcsType = $repoData['scm'];
-
-return true;
-}
-
-
-
-
-public function getComposerInformation($identifier)
-{
-if ($this->fallbackDriver) {
-return $this->fallbackDriver->getComposerInformation($identifier);
-}
-
-if (!isset($this->infoCache[$identifier])) {
-if ($this->shouldCache($identifier) && $res = $this->cache->read($identifier)) {
-return $this->infoCache[$identifier] = JsonFile::parseJson($res);
-}
-
-$composer = $this->getBaseComposerInformation($identifier);
-
-
- if (!isset($composer['support']['source'])) {
-$label = array_search(
-$identifier,
-$this->getTags()
-) ?: array_search(
-$identifier,
-$this->getBranches()
-) ?: $identifier;
-
-if (array_key_exists($label, $tags = $this->getTags())) {
-$hash = $tags[$label];
-} elseif (array_key_exists($label, $branches = $this->getBranches())) {
-$hash = $branches[$label];
-}
-
-if (! isset($hash)) {
-$composer['support']['source'] = sprintf(
-'https://%s/%s/%s/src',
-$this->originUrl,
-$this->owner,
-$this->repository
-);
-} else {
-$composer['support']['source'] = sprintf(
-'https://%s/%s/%s/src/%s/?at=%s',
-$this->originUrl,
-$this->owner,
-$this->repository,
-$hash,
-$label
-);
-}
-}
-if (!isset($composer['support']['issues']) && $this->hasIssues) {
-$composer['support']['issues'] = sprintf(
-'https://%s/%s/%s/issues',
-$this->originUrl,
-$this->owner,
-$this->repository
-);
-}
-if (!isset($composer['homepage'])) {
-$composer['homepage'] = empty($this->website) ? $this->homeUrl : $this->website;
-}
-
-$this->infoCache[$identifier] = $composer;
-
-if ($this->shouldCache($identifier)) {
-$this->cache->write($identifier, json_encode($composer));
-}
-}
-
-return $this->infoCache[$identifier];
-}
-
-
-
-
-public function getFileContent($file, $identifier)
-{
-if ($this->fallbackDriver) {
-return $this->fallbackDriver->getFileContent($file, $identifier);
-}
-
-if (strpos($identifier, '/') !== false) {
-$branches = $this->getBranches();
-if (isset($branches[$identifier])) {
-$identifier = $branches[$identifier];
-}
-}
-
-$resource = sprintf(
-'https://api.bitbucket.org/2.0/repositories/%s/%s/src/%s/%s',
-$this->owner,
-$this->repository,
-$identifier,
-$file
-);
-
-return $this->getContentsWithOAuthCredentials($resource);
-}
-
-
-
-
-public function getChangeDate($identifier)
-{
-if ($this->fallbackDriver) {
-return $this->fallbackDriver->getChangeDate($identifier);
-}
-
-$resource = sprintf(
-'https://api.bitbucket.org/2.0/repositories/%s/%s/commit/%s?fields=date',
-$this->owner,
-$this->repository,
-$identifier
-);
-$commit = JsonFile::parseJson($this->getContentsWithOAuthCredentials($resource), $resource);
-
-return new \DateTime($commit['date']);
-}
-
-
-
-
-public function getSource($identifier)
-{
-if ($this->fallbackDriver) {
-return $this->fallbackDriver->getSource($identifier);
-}
-
-return array('type' => $this->vcsType, 'url' => $this->getUrl(), 'reference' => $identifier);
-}
-
-
-
-
-public function getDist($identifier)
-{
-if ($this->fallbackDriver) {
-return $this->fallbackDriver->getDist($identifier);
-}
-
-$url = sprintf(
-'https://bitbucket.org/%s/%s/get/%s.zip',
-$this->owner,
-$this->repository,
-$identifier
-);
-
-return array('type' => 'zip', 'url' => $url, 'reference' => $identifier, 'shasum' => '');
-}
-
-
-
-
-public function getTags()
-{
-if ($this->fallbackDriver) {
-return $this->fallbackDriver->getTags();
-}
-
-if (null === $this->tags) {
-$this->tags = array();
-$resource = sprintf(
-'%s?%s',
-$this->tagsUrl,
-http_build_query(
-array(
-'pagelen' => 100,
-'fields' => 'values.name,values.target.hash,next',
-'sort' => '-target.date',
-),
-null,
-'&'
-)
-);
-$hasNext = true;
-while ($hasNext) {
-$tagsData = JsonFile::parseJson($this->getContentsWithOAuthCredentials($resource), $resource);
-foreach ($tagsData['values'] as $data) {
-$this->tags[$data['name']] = $data['target']['hash'];
-}
-if (empty($tagsData['next'])) {
-$hasNext = false;
-} else {
-$resource = $tagsData['next'];
-}
-}
-if ($this->vcsType === 'hg') {
-unset($this->tags['tip']);
-}
-}
-
-return $this->tags;
-}
-
-
-
-
-public function getBranches()
-{
-if ($this->fallbackDriver) {
-return $this->fallbackDriver->getBranches();
-}
-
-if (null === $this->branches) {
-$this->branches = array();
-$resource = sprintf(
-'%s?%s',
-$this->branchesUrl,
-http_build_query(
-array(
-'pagelen' => 100,
-'fields' => 'values.name,values.target.hash,values.heads,next',
-'sort' => '-target.date',
-),
-null,
-'&'
-)
-);
-$hasNext = true;
-while ($hasNext) {
-$branchData = JsonFile::parseJson($this->getContentsWithOAuthCredentials($resource), $resource);
-foreach ($branchData['values'] as $data) {
-
- if ($this->vcsType === 'hg' && empty($data['heads'])) {
-continue;
-}
-
-$this->branches[$data['name']] = $data['target']['hash'];
-}
-if (empty($branchData['next'])) {
-$hasNext = false;
-} else {
-$resource = $branchData['next'];
-}
-}
-}
-
-return $this->branches;
-}
-
-
-
-
-
-
-
-
-
-protected function getContentsWithOAuthCredentials($url, $fetchingRepoData = false)
-{
-try {
-return parent::getContents($url);
-} catch (TransportException $e) {
-$bitbucketUtil = new Bitbucket($this->io, $this->config, $this->process, $this->remoteFilesystem);
-
-if (403 === $e->getCode() || (401 === $e->getCode() && strpos($e->getMessage(), 'Could not authenticate against') === 0)) {
-if (!$this->io->hasAuthentication($this->originUrl)
-&& $bitbucketUtil->authorizeOAuth($this->originUrl)
-) {
-return parent::getContents($url);
-}
-
-if (!$this->io->isInteractive() && $fetchingRepoData) {
-return $this->attemptCloneFallback();
-}
-}
-
-throw $e;
-}
-}
-
-
-
-
-
-
-abstract protected function generateSshUrl();
-
-protected function attemptCloneFallback()
-{
-try {
-$this->setupFallbackDriver($this->generateSshUrl());
-} catch (\RuntimeException $e) {
-$this->fallbackDriver = null;
-
-$this->io->writeError(
-'<error>Failed to clone the ' . $this->generateSshUrl() . ' repository, try running in interactive mode'
-. ' so that you can enter your Bitbucket OAuth consumer credentials</error>'
-);
-throw $e;
-}
-}
-
-
-
-
-
-abstract protected function setupFallbackDriver($url);
-
-
-
-
-
-protected function parseCloneUrls(array $cloneLinks)
-{
-foreach ($cloneLinks as $cloneLink) {
-if ($cloneLink['name'] === 'https') {
-
- 
- $this->cloneHttpsUrl = preg_replace('/https:\/\/([^@]+@)?/', 'https://', $cloneLink['href']);
-}
-}
-}
-
-
-
-
-protected function getMainBranchData()
-{
-$resource = sprintf(
-'https://api.bitbucket.org/2.0/repositories/%s/%s?fields=mainbranch',
-$this->owner,
-$this->repository
-);
-
-$data = JsonFile::parseJson($this->getContentsWithOAuthCredentials($resource), $resource);
-if (isset($data['mainbranch'])) {
-return $data['mainbranch'];
-}
-
-return null;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository\Vcs;
-
-use Composer\Config;
-use Composer\Util\ProcessExecutor;
-use Composer\Util\Filesystem;
-use Composer\IO\IOInterface;
-
-
-
-
-class FossilDriver extends VcsDriver
-{
-protected $tags;
-protected $branches;
-protected $rootIdentifier;
-protected $repoFile;
-protected $checkoutDir;
-protected $infoCache = array();
-
-
-
-
-public function initialize()
-{
-
- $this->checkFossil();
-
-
- $this->config->prohibitUrlByConfig($this->url, $this->io);
-
-
- 
- if (Filesystem::isLocalPath($this->url) && is_dir($this->url)) {
-$this->checkoutDir = $this->url;
-} else {
-$localName = preg_replace('{[^a-z0-9]}i', '-', $this->url);
-$this->repoFile = $this->config->get('cache-repo-dir') . '/' . $localName . '.fossil';
-$this->checkoutDir = $this->config->get('cache-vcs-dir') . '/' . $localName . '/';
-
-$this->updateLocalRepo();
-}
-
-$this->getTags();
-$this->getBranches();
-}
-
-
-
-
-protected function checkFossil()
-{
-if (0 !== $this->process->execute('fossil version', $ignoredOutput)) {
-throw new \RuntimeException("fossil was not found, check that it is installed and in your PATH env.\n\n" . $this->process->getErrorOutput());
-}
-}
-
-
-
-
-protected function updateLocalRepo()
-{
-$fs = new Filesystem();
-$fs->ensureDirectoryExists($this->checkoutDir);
-
-if (!is_writable(dirname($this->checkoutDir))) {
-throw new \RuntimeException('Can not clone '.$this->url.' to access package information. The "'.$this->checkoutDir.'" directory is not writable by the current user.');
-}
-
-
- if (is_file($this->repoFile) && is_dir($this->checkoutDir) && 0 === $this->process->execute('fossil info', $output, $this->checkoutDir)) {
-if (0 !== $this->process->execute('fossil pull', $output, $this->checkoutDir)) {
-$this->io->writeError('<error>Failed to update '.$this->url.', package information from this repository may be outdated ('.$this->process->getErrorOutput().')</error>');
-}
-} else {
-
- $fs->removeDirectory($this->checkoutDir);
-$fs->remove($this->repoFile);
-
-$fs->ensureDirectoryExists($this->checkoutDir);
-
-if (0 !== $this->process->execute(sprintf('fossil clone %s %s', ProcessExecutor::escape($this->url), ProcessExecutor::escape($this->repoFile)), $output)) {
-$output = $this->process->getErrorOutput();
-
-throw new \RuntimeException('Failed to clone '.$this->url.' to repository ' . $this->repoFile . "\n\n" .$output);
-}
-
-if (0 !== $this->process->execute(sprintf('fossil open %s --nested', ProcessExecutor::escape($this->repoFile)), $output, $this->checkoutDir)) {
-$output = $this->process->getErrorOutput();
-
-throw new \RuntimeException('Failed to open repository '.$this->repoFile.' in ' . $this->checkoutDir . "\n\n" .$output);
-}
-}
-}
-
-
-
-
-public function getRootIdentifier()
-{
-if (null === $this->rootIdentifier) {
-$this->rootIdentifier = 'trunk';
-}
-
-return $this->rootIdentifier;
-}
-
-
-
-
-public function getUrl()
-{
-return $this->url;
-}
-
-
-
-
-public function getSource($identifier)
-{
-return array('type' => 'fossil', 'url' => $this->getUrl(), 'reference' => $identifier);
-}
-
-
-
-
-public function getDist($identifier)
-{
-return null;
-}
-
-
-
-
-public function getFileContent($file, $identifier)
-{
-$command = sprintf('fossil cat -r %s %s', ProcessExecutor::escape($identifier), ProcessExecutor::escape($file));
-$this->process->execute($command, $content, $this->checkoutDir);
-
-if (!trim($content)) {
-return null;
-}
-
-return $content;
-}
-
-
-
-
-public function getChangeDate($identifier)
-{
-$this->process->execute('fossil finfo -b -n 1 composer.json', $output, $this->checkoutDir);
-list($ckout, $date, $message) = explode(' ', trim($output), 3);
-
-return new \DateTime($date, new \DateTimeZone('UTC'));
-}
-
-
-
-
-public function getTags()
-{
-if (null === $this->tags) {
-$tags = array();
-
-$this->process->execute('fossil tag list', $output, $this->checkoutDir);
-foreach ($this->process->splitLines($output) as $tag) {
-$tags[$tag] = $tag;
-}
-
-$this->tags = $tags;
-}
-
-return $this->tags;
-}
-
-
-
-
-public function getBranches()
-{
-if (null === $this->branches) {
-$branches = array();
-$bookmarks = array();
-
-$this->process->execute('fossil branch list', $output, $this->checkoutDir);
-foreach ($this->process->splitLines($output) as $branch) {
-$branch = trim(preg_replace('/^\*/', '', trim($branch)));
-$branches[$branch] = $branch;
-}
-
-$this->branches = $branches;
-}
-
-return $this->branches;
-}
-
-
-
-
-public static function supports(IOInterface $io, Config $config, $url, $deep = false)
-{
-if (preg_match('#(^(?:https?|ssh)://(?:[^@]@)?(?:chiselapp\.com|fossil\.))#i', $url)) {
-return true;
-}
-
-if (preg_match('!/fossil/|\.fossil!', $url)) {
-return true;
-}
-
-
- if (Filesystem::isLocalPath($url)) {
-$url = Filesystem::getPlatformPath($url);
-if (!is_dir($url)) {
-return false;
-}
-
-$process = new ProcessExecutor($io);
-
- if ($process->execute('fossil info', $output, $url) === 0) {
-return true;
-}
-}
-
-return false;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository\Vcs;
-
-use Composer\Config;
-use Composer\IO\IOInterface;
-
-
-
-
-class GitBitbucketDriver extends BitbucketDriver
-{
-
-
-
-public function getRootIdentifier()
-{
-if ($this->fallbackDriver) {
-return $this->fallbackDriver->getRootIdentifier();
-}
-
-if (null === $this->rootIdentifier) {
-if (! $this->getRepoData()) {
-return $this->fallbackDriver->getRootIdentifier();
-}
-
-if ($this->vcsType !== 'git') {
-throw new \RuntimeException(
-$this->url.' does not appear to be a git repository, use '.
-$this->cloneHttpsUrl.' if this is a mercurial bitbucket repository'
-);
-}
-
-$mainBranchData = $this->getMainBranchData();
-$this->rootIdentifier = !empty($mainBranchData['name']) ? $mainBranchData['name'] : 'master';
-}
-
-return $this->rootIdentifier;
-}
-
-
-
-
-public static function supports(IOInterface $io, Config $config, $url, $deep = false)
-{
-if (!preg_match('#^https?://bitbucket\.org/([^/]+)/(.+?)\.git$#', $url)) {
-return false;
-}
-
-if (!extension_loaded('openssl')) {
-$io->writeError('Skipping Bitbucket git driver for '.$url.' because the OpenSSL PHP extension is missing.', true, IOInterface::VERBOSE);
-
-return false;
-}
-
-return true;
-}
-
-
-
-
-protected function setupFallbackDriver($url)
-{
-$this->fallbackDriver = new GitDriver(
-array('url' => $url),
-$this->io,
-$this->config,
-$this->process,
-$this->remoteFilesystem
-);
-$this->fallbackDriver->initialize();
-}
-
-
-
-
-protected function generateSshUrl()
-{
-return 'git@' . $this->originUrl . ':' . $this->owner.'/'.$this->repository.'.git';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository\Vcs;
-
-use Composer\Util\ProcessExecutor;
-use Composer\Util\Filesystem;
-use Composer\Util\Git as GitUtil;
-use Composer\IO\IOInterface;
-use Composer\Cache;
-use Composer\Config;
-
-
-
-
-class GitDriver extends VcsDriver
-{
-protected $cache;
-protected $tags;
-protected $branches;
-protected $rootIdentifier;
-protected $repoDir;
-protected $infoCache = array();
-
-
-
-
-public function initialize()
-{
-if (Filesystem::isLocalPath($this->url)) {
-$this->url = preg_replace('{[\\/]\.git/?$}', '', $this->url);
-$this->repoDir = $this->url;
-$cacheUrl = realpath($this->url);
-} else {
-$this->repoDir = $this->config->get('cache-vcs-dir') . '/' . preg_replace('{[^a-z0-9.]}i', '-', $this->url) . '/';
-
-GitUtil::cleanEnv();
-
-$fs = new Filesystem();
-$fs->ensureDirectoryExists(dirname($this->repoDir));
-
-if (!is_writable(dirname($this->repoDir))) {
-throw new \RuntimeException('Can not clone '.$this->url.' to access package information. The "'.dirname($this->repoDir).'" directory is not writable by the current user.');
-}
-
-if (preg_match('{^ssh://[^@]+@[^:]+:[^0-9]+}', $this->url)) {
-throw new \InvalidArgumentException('The source URL '.$this->url.' is invalid, ssh URLs should have a port number after ":".'."\n".'Use ssh://git@example.com:22/path or just git@example.com:path if you do not want to provide a password or custom port.');
-}
-
-$gitUtil = new GitUtil($this->io, $this->config, $this->process, $fs);
-if (!$gitUtil->syncMirror($this->url, $this->repoDir)) {
-$this->io->writeError('<error>Failed to update '.$this->url.', package information from this repository may be outdated</error>');
-}
-
-$cacheUrl = $this->url;
-}
-
-$this->getTags();
-$this->getBranches();
-
-$this->cache = new Cache($this->io, $this->config->get('cache-repo-dir').'/'.preg_replace('{[^a-z0-9.]}i', '-', $cacheUrl));
-}
-
-
-
-
-public function getRootIdentifier()
-{
-if (null === $this->rootIdentifier) {
-$this->rootIdentifier = 'master';
-
-
- $this->process->execute('git branch --no-color', $output, $this->repoDir);
-$branches = $this->process->splitLines($output);
-if (!in_array('* master', $branches)) {
-foreach ($branches as $branch) {
-if ($branch && preg_match('{^\* +(\S+)}', $branch, $match)) {
-$this->rootIdentifier = $match[1];
-break;
-}
-}
-}
-}
-
-return $this->rootIdentifier;
-}
-
-
-
-
-public function getUrl()
-{
-return $this->url;
-}
-
-
-
-
-public function getSource($identifier)
-{
-return array('type' => 'git', 'url' => $this->getUrl(), 'reference' => $identifier);
-}
-
-
-
-
-public function getDist($identifier)
-{
-return null;
-}
-
-
-
-
-public function getFileContent($file, $identifier)
-{
-$resource = sprintf('%s:%s', ProcessExecutor::escape($identifier), ProcessExecutor::escape($file));
-$this->process->execute(sprintf('git show %s', $resource), $content, $this->repoDir);
-
-if (!trim($content)) {
-return null;
-}
-
-return $content;
-}
-
-
-
-
-public function getChangeDate($identifier)
-{
-$this->process->execute(sprintf(
-'git log -1 --format=%%at %s',
-ProcessExecutor::escape($identifier)
-), $output, $this->repoDir);
-
-return new \DateTime('@'.trim($output), new \DateTimeZone('UTC'));
-}
-
-
-
-
-public function getTags()
-{
-if (null === $this->tags) {
-$this->tags = array();
-
-$this->process->execute('git show-ref --tags --dereference', $output, $this->repoDir);
-foreach ($output = $this->process->splitLines($output) as $tag) {
-if ($tag && preg_match('{^([a-f0-9]{40}) refs/tags/(\S+?)(\^\{\})?$}', $tag, $match)) {
-$this->tags[$match[2]] = $match[1];
-}
-}
-}
-
-return $this->tags;
-}
-
-
-
-
-public function getBranches()
-{
-if (null === $this->branches) {
-$branches = array();
-
-$this->process->execute('git branch --no-color --no-abbrev -v', $output, $this->repoDir);
-foreach ($this->process->splitLines($output) as $branch) {
-if ($branch && !preg_match('{^ *[^/]+/HEAD }', $branch)) {
-if (preg_match('{^(?:\* )? *(\S+) *([a-f0-9]+)(?: .*)?$}', $branch, $match)) {
-$branches[$match[1]] = $match[2];
-}
-}
-}
-
-$this->branches = $branches;
-}
-
-return $this->branches;
-}
-
-
-
-
-public static function supports(IOInterface $io, Config $config, $url, $deep = false)
-{
-if (preg_match('#(^git://|\.git/?$|git(?:olite)?@|//git\.|//github.com/)#i', $url)) {
-return true;
-}
-
-
- if (Filesystem::isLocalPath($url)) {
-$url = Filesystem::getPlatformPath($url);
-if (!is_dir($url)) {
-return false;
-}
-
-$process = new ProcessExecutor($io);
-
- if ($process->execute('git tag', $output, $url) === 0) {
-return true;
-}
-}
-
-if (!$deep) {
-return false;
-}
-
-$process = new ProcessExecutor($io);
-
-return $process->execute('git ls-remote --heads ' . ProcessExecutor::escape($url), $output) === 0;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository\Vcs;
-
-use Composer\Config;
-use Composer\Downloader\TransportException;
-use Composer\Json\JsonFile;
-use Composer\Cache;
-use Composer\IO\IOInterface;
-use Composer\Util\GitHub;
-
-
-
-
-class GitHubDriver extends VcsDriver
-{
-protected $cache;
-protected $owner;
-protected $repository;
-protected $tags;
-protected $branches;
-protected $rootIdentifier;
-protected $repoData;
-protected $hasIssues;
-protected $infoCache = array();
-protected $isPrivate = false;
-
-
-
-
-
-
-protected $gitDriver;
-
-
-
-
-public function initialize()
-{
-preg_match('#^(?:(?:https?|git)://([^/]+)/|git@([^:]+):)([^/]+)/(.+?)(?:\.git|/)?$#', $this->url, $match);
-$this->owner = $match[3];
-$this->repository = $match[4];
-$this->originUrl = !empty($match[1]) ? $match[1] : $match[2];
-if ($this->originUrl === 'www.github.com') {
-$this->originUrl = 'github.com';
-}
-$this->cache = new Cache($this->io, $this->config->get('cache-repo-dir').'/'.$this->originUrl.'/'.$this->owner.'/'.$this->repository);
-
-if (isset($this->repoConfig['no-api']) && $this->repoConfig['no-api']) {
-$this->setupGitDriver($this->url);
-
-return;
-}
-
-$this->fetchRootIdentifier();
-}
-
-public function getRepositoryUrl()
-{
-return 'https://'.$this->originUrl.'/'.$this->owner.'/'.$this->repository;
-}
-
-
-
-
-public function getRootIdentifier()
-{
-if ($this->gitDriver) {
-return $this->gitDriver->getRootIdentifier();
-}
-
-return $this->rootIdentifier;
-}
-
-
-
-
-public function getUrl()
-{
-if ($this->gitDriver) {
-return $this->gitDriver->getUrl();
-}
-
-return 'https://' . $this->originUrl . '/'.$this->owner.'/'.$this->repository.'.git';
-}
-
-
-
-
-protected function getApiUrl()
-{
-if ('github.com' === $this->originUrl) {
-$apiUrl = 'api.github.com';
-} else {
-$apiUrl = $this->originUrl . '/api/v3';
-}
-
-return 'https://' . $apiUrl;
-}
-
-
-
-
-public function getSource($identifier)
-{
-if ($this->gitDriver) {
-return $this->gitDriver->getSource($identifier);
-}
-if ($this->isPrivate) {
-
- 
- $url = $this->generateSshUrl();
-} else {
-$url = $this->getUrl();
-}
-
-return array('type' => 'git', 'url' => $url, 'reference' => $identifier);
-}
-
-
-
-
-public function getDist($identifier)
-{
-$url = $this->getApiUrl() . '/repos/'.$this->owner.'/'.$this->repository.'/zipball/'.$identifier;
-
-return array('type' => 'zip', 'url' => $url, 'reference' => $identifier, 'shasum' => '');
-}
-
-
-
-
-public function getComposerInformation($identifier)
-{
-if ($this->gitDriver) {
-return $this->gitDriver->getComposerInformation($identifier);
-}
-
-if (!isset($this->infoCache[$identifier])) {
-if ($this->shouldCache($identifier) && $res = $this->cache->read($identifier)) {
-return $this->infoCache[$identifier] = JsonFile::parseJson($res);
-}
-
-$composer = $this->getBaseComposerInformation($identifier);
-if ($composer) {
-
-
- if (!isset($composer['support']['source'])) {
-$label = array_search($identifier, $this->getTags()) ?: array_search($identifier, $this->getBranches()) ?: $identifier;
-$composer['support']['source'] = sprintf('https://%s/%s/%s/tree/%s', $this->originUrl, $this->owner, $this->repository, $label);
-}
-if (!isset($composer['support']['issues']) && $this->hasIssues) {
-$composer['support']['issues'] = sprintf('https://%s/%s/%s/issues', $this->originUrl, $this->owner, $this->repository);
-}
-}
-
-if ($this->shouldCache($identifier)) {
-$this->cache->write($identifier, json_encode($composer));
-}
-
-$this->infoCache[$identifier] = $composer;
-}
-
-return $this->infoCache[$identifier];
-}
-
-
-
-
-public function getFileContent($file, $identifier)
-{
-if ($this->gitDriver) {
-return $this->gitDriver->getFileContent($file, $identifier);
-}
-
-$resource = $this->getApiUrl() . '/repos/'.$this->owner.'/'.$this->repository.'/contents/' . $file . '?ref='.urlencode($identifier);
-$resource = JsonFile::parseJson($this->getContents($resource));
-if (empty($resource['content']) || $resource['encoding'] !== 'base64' || !($content = base64_decode($resource['content']))) {
-throw new \RuntimeException('Could not retrieve ' . $file . ' for '.$identifier);
-}
-
-return $content;
-}
-
-
-
-
-public function getChangeDate($identifier)
-{
-if ($this->gitDriver) {
-return $this->gitDriver->getChangeDate($identifier);
-}
-
-$resource = $this->getApiUrl() . '/repos/'.$this->owner.'/'.$this->repository.'/commits/'.urlencode($identifier);
-$commit = JsonFile::parseJson($this->getContents($resource), $resource);
-
-return new \DateTime($commit['commit']['committer']['date']);
-}
-
-
-
-
-public function getTags()
-{
-if ($this->gitDriver) {
-return $this->gitDriver->getTags();
-}
-if (null === $this->tags) {
-$this->tags = array();
-$resource = $this->getApiUrl() . '/repos/'.$this->owner.'/'.$this->repository.'/tags?per_page=100';
-
-do {
-$tagsData = JsonFile::parseJson($this->getContents($resource), $resource);
-foreach ($tagsData as $tag) {
-$this->tags[$tag['name']] = $tag['commit']['sha'];
-}
-
-$resource = $this->getNextPage();
-} while ($resource);
-}
-
-return $this->tags;
-}
-
-
-
-
-public function getBranches()
-{
-if ($this->gitDriver) {
-return $this->gitDriver->getBranches();
-}
-if (null === $this->branches) {
-$this->branches = array();
-$resource = $this->getApiUrl() . '/repos/'.$this->owner.'/'.$this->repository.'/git/refs/heads?per_page=100';
-
-$branchBlacklist = array('gh-pages');
-
-do {
-$branchData = JsonFile::parseJson($this->getContents($resource), $resource);
-foreach ($branchData as $branch) {
-$name = substr($branch['ref'], 11);
-if (!in_array($name, $branchBlacklist)) {
-$this->branches[$name] = $branch['object']['sha'];
-}
-}
-
-$resource = $this->getNextPage();
-} while ($resource);
-}
-
-return $this->branches;
-}
-
-
-
-
-public static function supports(IOInterface $io, Config $config, $url, $deep = false)
-{
-if (!preg_match('#^((?:https?|git)://([^/]+)/|git@([^:]+):)([^/]+)/(.+?)(?:\.git|/)?$#', $url, $matches)) {
-return false;
-}
-
-$originUrl = !empty($matches[2]) ? $matches[2] : $matches[3];
-if (!in_array(preg_replace('{^www\.}i', '', $originUrl), $config->get('github-domains'))) {
-return false;
-}
-
-if (!extension_loaded('openssl')) {
-$io->writeError('Skipping GitHub driver for '.$url.' because the OpenSSL PHP extension is missing.', true, IOInterface::VERBOSE);
-
-return false;
-}
-
-return true;
-}
-
-
-
-
-
-
-public function getRepoData()
-{
-$this->fetchRootIdentifier();
-
-return $this->repoData;
-}
-
-
-
-
-
-
-protected function generateSshUrl()
-{
-return 'git@' . $this->originUrl . ':'.$this->owner.'/'.$this->repository.'.git';
-}
-
-
-
-
-protected function getContents($url, $fetchingRepoData = false)
-{
-try {
-return parent::getContents($url);
-} catch (TransportException $e) {
-$gitHubUtil = new GitHub($this->io, $this->config, $this->process, $this->remoteFilesystem);
-
-switch ($e->getCode()) {
-case 401:
-case 404:
-
- if (!$fetchingRepoData) {
-throw $e;
-}
-
-if ($gitHubUtil->authorizeOAuth($this->originUrl)) {
-return parent::getContents($url);
-}
-
-if (!$this->io->isInteractive()) {
-return $this->attemptCloneFallback();
-}
-
-$scopesIssued = array();
-$scopesNeeded = array();
-if ($headers = $e->getHeaders()) {
-if ($scopes = $this->remoteFilesystem->findHeaderValue($headers, 'X-OAuth-Scopes')) {
-$scopesIssued = explode(' ', $scopes);
-}
-if ($scopes = $this->remoteFilesystem->findHeaderValue($headers, 'X-Accepted-OAuth-Scopes')) {
-$scopesNeeded = explode(' ', $scopes);
-}
-}
-$scopesFailed = array_diff($scopesNeeded, $scopesIssued);
-
- 
- if (!$headers || !count($scopesNeeded) || count($scopesFailed)) {
-$gitHubUtil->authorizeOAuthInteractively($this->originUrl, 'Your GitHub credentials are required to fetch private repository metadata (<info>'.$this->url.'</info>)');
-}
-
-return parent::getContents($url);
-
-case 403:
-if (!$this->io->hasAuthentication($this->originUrl) && $gitHubUtil->authorizeOAuth($this->originUrl)) {
-return parent::getContents($url);
-}
-
-if (!$this->io->isInteractive() && $fetchingRepoData) {
-return $this->attemptCloneFallback();
-}
-
-$rateLimited = $gitHubUtil->isRateLimited($e->getHeaders());
-
-if (!$this->io->hasAuthentication($this->originUrl)) {
-if (!$this->io->isInteractive()) {
-$this->io->writeError('<error>GitHub API limit exhausted. Failed to get metadata for the '.$this->url.' repository, try running in interactive mode so that you can enter your GitHub credentials to increase the API limit</error>');
-throw $e;
-}
-
-$gitHubUtil->authorizeOAuthInteractively($this->originUrl, 'API limit exhausted. Enter your GitHub credentials to get a larger API limit (<info>'.$this->url.'</info>)');
-
-return parent::getContents($url);
-}
-
-if ($rateLimited) {
-$rateLimit = $gitHubUtil->getRateLimit($e->getHeaders());
-$this->io->writeError(sprintf(
-'<error>GitHub API limit (%d calls/hr) is exhausted. You are already authorized so you have to wait until %s before doing more requests</error>',
-$rateLimit['limit'],
-$rateLimit['reset']
-));
-}
-
-throw $e;
-
-default:
-throw $e;
-}
-}
-}
-
-
-
-
-
-
-protected function fetchRootIdentifier()
-{
-if ($this->repoData) {
-return;
-}
-
-$repoDataUrl = $this->getApiUrl() . '/repos/'.$this->owner.'/'.$this->repository;
-
-$this->repoData = JsonFile::parseJson($this->getContents($repoDataUrl, true), $repoDataUrl);
-if (null === $this->repoData && null !== $this->gitDriver) {
-return;
-}
-
-$this->owner = $this->repoData['owner']['login'];
-$this->repository = $this->repoData['name'];
-
-$this->isPrivate = !empty($this->repoData['private']);
-if (isset($this->repoData['default_branch'])) {
-$this->rootIdentifier = $this->repoData['default_branch'];
-} elseif (isset($this->repoData['master_branch'])) {
-$this->rootIdentifier = $this->repoData['master_branch'];
-} else {
-$this->rootIdentifier = 'master';
-}
-$this->hasIssues = !empty($this->repoData['has_issues']);
-}
-
-protected function attemptCloneFallback()
-{
-$this->isPrivate = true;
-
-try {
-
- 
- 
- 
- $this->setupGitDriver($this->generateSshUrl());
-
-return;
-} catch (\RuntimeException $e) {
-$this->gitDriver = null;
-
-$this->io->writeError('<error>Failed to clone the '.$this->generateSshUrl().' repository, try running in interactive mode so that you can enter your GitHub credentials</error>');
-throw $e;
-}
-}
-
-protected function setupGitDriver($url)
-{
-$this->gitDriver = new GitDriver(
-array('url' => $url),
-$this->io,
-$this->config,
-$this->process,
-$this->remoteFilesystem
-);
-$this->gitDriver->initialize();
-}
-
-protected function getNextPage()
-{
-$headers = $this->remoteFilesystem->getLastHeaders();
-foreach ($headers as $header) {
-if (preg_match('{^link:\s*(.+?)\s*$}i', $header, $match)) {
-$links = explode(',', $match[1]);
-foreach ($links as $link) {
-if (preg_match('{<(.+?)>; *rel="next"}', $link, $match)) {
-return $match[1];
-}
-}
-}
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository\Vcs;
-
-use Composer\Config;
-use Composer\Cache;
-use Composer\IO\IOInterface;
-use Composer\Json\JsonFile;
-use Composer\Downloader\TransportException;
-use Composer\Util\RemoteFilesystem;
-use Composer\Util\GitLab;
-
-
-
-
-
-
-
-class GitLabDriver extends VcsDriver
-{
-private $scheme;
-private $namespace;
-private $repository;
-
-
-
-
-private $project;
-
-
-
-
-private $commits = array();
-
-
-
-
-private $tags;
-
-
-
-
-private $branches;
-
-
-
-
-
-
-protected $gitDriver;
-
-
-
-
-
-
-private $isPrivate = true;
-
-
-
-
-protected $portNumber;
-
-const URL_REGEX = '#^(?:(?P<scheme>https?)://(?P<domain>.+?)(?::(?P<port>[0-9]+))?/|git@(?P<domain2>[^:]+):)(?P<parts>.+)/(?P<repo>[^/]+?)(?:\.git|/)?$#';
-
-
-
-
-
-
-
-
-public function initialize()
-{
-if (!preg_match(self::URL_REGEX, $this->url, $match)) {
-throw new \InvalidArgumentException('The URL provided is invalid. It must be the HTTP URL of a GitLab project.');
-}
-
-$guessedDomain = !empty($match['domain']) ? $match['domain'] : $match['domain2'];
-$configuredDomains = $this->config->get('gitlab-domains');
-$urlParts = explode('/', $match['parts']);
-
-$this->scheme = !empty($match['scheme'])
-? $match['scheme']
-: (isset($this->repoConfig['secure-http']) && $this->repoConfig['secure-http'] === false ? 'http' : 'https')
-;
-$this->originUrl = $this->determineOrigin($configuredDomains, $guessedDomain, $urlParts);
-
-if (!empty($match['port']) && true === is_numeric($match['port'])) {
-
- $this->portNumber = (int) $match['port'];
-}
-
-$this->namespace = implode('/', $urlParts);
-$this->repository = preg_replace('#(\.git)$#', '', $match['repo']);
-
-$this->cache = new Cache($this->io, $this->config->get('cache-repo-dir').'/'.$this->originUrl.'/'.$this->namespace.'/'.$this->repository);
-
-$this->fetchProject();
-}
-
-
-
-
-
-
-
-public function setRemoteFilesystem(RemoteFilesystem $remoteFilesystem)
-{
-$this->remoteFilesystem = $remoteFilesystem;
-}
-
-
-
-
-public function getFileContent($file, $identifier)
-{
-if ($this->gitDriver) {
-return $this->gitDriver->getFileContent($file, $identifier);
-}
-
-
- if (!preg_match('{[a-f0-9]{40}}i', $identifier)) {
-$branches = $this->getBranches();
-if (isset($branches[$identifier])) {
-$identifier = $branches[$identifier];
-}
-}
-
-$resource = $this->getApiUrl().'/repository/files/'.$this->urlEncodeAll($file).'/raw?ref='.$identifier;
-
-try {
-$content = $this->getContents($resource);
-} catch (TransportException $e) {
-if ($e->getCode() !== 404) {
-throw $e;
-}
-
-return null;
-}
-
-return $content;
-}
-
-
-
-
-public function getChangeDate($identifier)
-{
-if ($this->gitDriver) {
-return $this->gitDriver->getChangeDate($identifier);
-}
-
-if (isset($this->commits[$identifier])) {
-return new \DateTime($this->commits[$identifier]['committed_date']);
-}
-
-return new \DateTime();
-}
-
-
-
-
-public function getRepositoryUrl()
-{
-return $this->isPrivate ? $this->project['ssh_url_to_repo'] : $this->project['http_url_to_repo'];
-}
-
-
-
-
-public function getUrl()
-{
-if ($this->gitDriver) {
-return $this->gitDriver->getUrl();
-}
-
-return $this->project['web_url'];
-}
-
-
-
-
-public function getDist($identifier)
-{
-$url = $this->getApiUrl().'/repository/archive.zip?sha='.$identifier;
-
-return array('type' => 'zip', 'url' => $url, 'reference' => $identifier, 'shasum' => '');
-}
-
-
-
-
-public function getSource($identifier)
-{
-if ($this->gitDriver) {
-return $this->gitDriver->getSource($identifier);
-}
-
-return array('type' => 'git', 'url' => $this->getRepositoryUrl(), 'reference' => $identifier);
-}
-
-
-
-
-public function getRootIdentifier()
-{
-if ($this->gitDriver) {
-return $this->gitDriver->getRootIdentifier();
-}
-
-return $this->project['default_branch'];
-}
-
-
-
-
-public function getBranches()
-{
-if ($this->gitDriver) {
-return $this->gitDriver->getBranches();
-}
-
-if (!$this->branches) {
-$this->branches = $this->getReferences('branches');
-}
-
-return $this->branches;
-}
-
-
-
-
-public function getTags()
-{
-if ($this->gitDriver) {
-return $this->gitDriver->getTags();
-}
-
-if (!$this->tags) {
-$this->tags = $this->getReferences('tags');
-}
-
-return $this->tags;
-}
-
-
-
-
-public function getApiUrl()
-{
-$domainName = $this->originUrl;
-$portNumber = (true === is_numeric($this->portNumber)) ? sprintf(':%s', $this->portNumber) : '';
-
-return $this->scheme.'://'.$domainName.$portNumber.'/api/v4/projects/'.$this->urlEncodeAll($this->namespace).'%2F'.$this->urlEncodeAll($this->repository);
-}
-
-
-
-
-
-
-
-private function urlEncodeAll($string)
-{
-$encoded = '';
-for ($i = 0; isset($string[$i]); $i++) {
-$character = $string[$i];
-if (!ctype_alnum($character) && !in_array($character, array('-', '_'), true)) {
-$character = '%' . sprintf('%02X', ord($character));
-}
-$encoded .= $character;
-}
-
-return $encoded;
-}
-
-
-
-
-
-
-protected function getReferences($type)
-{
-$perPage = 100;
-$resource = $this->getApiUrl().'/repository/'.$type.'?per_page='.$perPage;
-
-$references = array();
-do {
-$data = JsonFile::parseJson($this->getContents($resource), $resource);
-
-foreach ($data as $datum) {
-$references[$datum['name']] = $datum['commit']['id'];
-
-
- 
- $this->commits[$datum['commit']['id']] = $datum['commit'];
-}
-
-if (count($data) >= $perPage) {
-$resource = $this->getNextPage();
-} else {
-$resource = false;
-}
-} while ($resource);
-
-return $references;
-}
-
-protected function fetchProject()
-{
-
- $resource = $this->getApiUrl();
-$this->project = JsonFile::parseJson($this->getContents($resource, true), $resource);
-if (isset($this->project['visibility'])) {
-$this->isPrivate = $this->project['visibility'] !== 'public';
-} else {
-
- $this->isPrivate = false;
-}
-}
-
-protected function attemptCloneFallback()
-{
-try {
-if ($this->isPrivate === false) {
-$url = $this->generatePublicUrl();
-} else {
-$url = $this->generateSshUrl();
-}
-
-
- 
- 
- $this->setupGitDriver($url);
-
-return;
-} catch (\RuntimeException $e) {
-$this->gitDriver = null;
-
-$this->io->writeError('<error>Failed to clone the '.$url.' repository, try running in interactive mode so that you can enter your credentials</error>');
-throw $e;
-}
-}
-
-
-
-
-
-
-protected function generateSshUrl()
-{
-return 'git@' . $this->originUrl . ':'.$this->namespace.'/'.$this->repository.'.git';
-}
-
-protected function generatePublicUrl()
-{
-return $this->scheme . '://' . $this->originUrl . '/'.$this->namespace.'/'.$this->repository.'.git';
-}
-
-protected function setupGitDriver($url)
-{
-$this->gitDriver = new GitDriver(
-array('url' => $url),
-$this->io,
-$this->config,
-$this->process,
-$this->remoteFilesystem
-);
-$this->gitDriver->initialize();
-}
-
-
-
-
-protected function getContents($url, $fetchingRepoData = false)
-{
-try {
-$res = parent::getContents($url);
-
-if ($fetchingRepoData) {
-$json = JsonFile::parseJson($res, $url);
-
-
- if (!isset($json['default_branch'])) {
-if (!empty($json['id'])) {
-$this->isPrivate = false;
-}
-
-throw new TransportException('GitLab API seems to not be authenticated as it did not return a default_branch', 401);
-}
-}
-
-return $res;
-} catch (TransportException $e) {
-$gitLabUtil = new GitLab($this->io, $this->config, $this->process, $this->remoteFilesystem);
-
-switch ($e->getCode()) {
-case 401:
-case 404:
-
- if (!$fetchingRepoData) {
-throw $e;
-}
-
-if ($gitLabUtil->authorizeOAuth($this->originUrl)) {
-return parent::getContents($url);
-}
-
-if (!$this->io->isInteractive()) {
-return $this->attemptCloneFallback();
-}
-$this->io->writeError('<warning>Failed to download ' . $this->namespace . '/' . $this->repository . ':' . $e->getMessage() . '</warning>');
-$gitLabUtil->authorizeOAuthInteractively($this->scheme, $this->originUrl, 'Your credentials are required to fetch private repository metadata (<info>'.$this->url.'</info>)');
-
-return parent::getContents($url);
-
-case 403:
-if (!$this->io->hasAuthentication($this->originUrl) && $gitLabUtil->authorizeOAuth($this->originUrl)) {
-return parent::getContents($url);
-}
-
-if (!$this->io->isInteractive() && $fetchingRepoData) {
-return $this->attemptCloneFallback();
-}
-
-throw $e;
-
-default:
-throw $e;
-}
-}
-}
-
-
-
-
-
-
-
-public static function supports(IOInterface $io, Config $config, $url, $deep = false)
-{
-if (!preg_match(self::URL_REGEX, $url, $match)) {
-return false;
-}
-
-$scheme = !empty($match['scheme']) ? $match['scheme'] : null;
-$guessedDomain = !empty($match['domain']) ? $match['domain'] : $match['domain2'];
-$urlParts = explode('/', $match['parts']);
-
-if (false === self::determineOrigin((array) $config->get('gitlab-domains'), $guessedDomain, $urlParts)) {
-return false;
-}
-
-if ('https' === $scheme && !extension_loaded('openssl')) {
-$io->writeError('Skipping GitLab driver for '.$url.' because the OpenSSL PHP extension is missing.', true, IOInterface::VERBOSE);
-
-return false;
-}
-
-return true;
-}
-
-private function getNextPage()
-{
-$headers = $this->remoteFilesystem->getLastHeaders();
-foreach ($headers as $header) {
-if (preg_match('{^link:\s*(.+?)\s*$}i', $header, $match)) {
-$links = explode(',', $match[1]);
-foreach ($links as $link) {
-if (preg_match('{<(.+?)>; *rel="next"}', $link, $match)) {
-return $match[1];
-}
-}
-}
-}
-}
-
-
-
-
-
-
-
-private static function determineOrigin(array $configuredDomains, $guessedDomain, array &$urlParts)
-{
-if (in_array($guessedDomain, $configuredDomains)) {
-return $guessedDomain;
-}
-
-while (null !== ($part = array_shift($urlParts))) {
-$guessedDomain .= '/' . $part;
-
-if (in_array($guessedDomain, $configuredDomains)) {
-return $guessedDomain;
-}
-}
-
-return false;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository\Vcs;
-
-use Composer\Config;
-use Composer\IO\IOInterface;
-
-
-
-
-class HgBitbucketDriver extends BitbucketDriver
-{
-
-
-
-public function getRootIdentifier()
-{
-if ($this->fallbackDriver) {
-return $this->fallbackDriver->getRootIdentifier();
-}
-
-if (null === $this->rootIdentifier) {
-if (! $this->getRepoData()) {
-return $this->fallbackDriver->getRootIdentifier();
-}
-
-if ($this->vcsType !== 'hg') {
-throw new \RuntimeException(
-$this->url.' does not appear to be a mercurial repository, use '.
-$this->cloneHttpsUrl.' if this is a git bitbucket repository'
-);
-}
-
-$mainBranchData = $this->getMainBranchData();
-$this->rootIdentifier = !empty($mainBranchData['name']) ? $mainBranchData['name'] : 'default';
-}
-
-return $this->rootIdentifier;
-}
-
-
-
-
-public static function supports(IOInterface $io, Config $config, $url, $deep = false)
-{
-if (!preg_match('#^https?://bitbucket\.org/([^/]+)/([^/]+)/?$#', $url)) {
-return false;
-}
-
-if (!extension_loaded('openssl')) {
-$io->writeError('Skipping Bitbucket hg driver for '.$url.' because the OpenSSL PHP extension is missing.', true, IOInterface::VERBOSE);
-
-return false;
-}
-
-return true;
-}
-
-
-
-
-protected function setupFallbackDriver($url)
-{
-$this->fallbackDriver = new HgDriver(
-array('url' => $url),
-$this->io,
-$this->config,
-$this->process,
-$this->remoteFilesystem
-);
-$this->fallbackDriver->initialize();
-}
-
-
-
-
-protected function generateSshUrl()
-{
-return 'ssh://hg@' . $this->originUrl . '/' . $this->owner.'/'.$this->repository;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository\Vcs;
-
-use Composer\Config;
-use Composer\Util\Hg as HgUtils;
-use Composer\Util\ProcessExecutor;
-use Composer\Util\Filesystem;
-use Composer\IO\IOInterface;
-
-
-
-
-class HgDriver extends VcsDriver
-{
-protected $tags;
-protected $branches;
-protected $rootIdentifier;
-protected $repoDir;
-protected $infoCache = array();
-
-
-
-
-public function initialize()
-{
-if (Filesystem::isLocalPath($this->url)) {
-$this->repoDir = $this->url;
-} else {
-$cacheDir = $this->config->get('cache-vcs-dir');
-$this->repoDir = $cacheDir . '/' . preg_replace('{[^a-z0-9]}i', '-', $this->url) . '/';
-
-$fs = new Filesystem();
-$fs->ensureDirectoryExists($cacheDir);
-
-if (!is_writable(dirname($this->repoDir))) {
-throw new \RuntimeException('Can not clone '.$this->url.' to access package information. The "'.$cacheDir.'" directory is not writable by the current user.');
-}
-
-
- $this->config->prohibitUrlByConfig($this->url, $this->io);
-
-$hgUtils = new HgUtils($this->io, $this->config, $this->process);
-
-
- if (is_dir($this->repoDir) && 0 === $this->process->execute('hg summary', $output, $this->repoDir)) {
-if (0 !== $this->process->execute('hg pull', $output, $this->repoDir)) {
-$this->io->writeError('<error>Failed to update '.$this->url.', package information from this repository may be outdated ('.$this->process->getErrorOutput().')</error>');
-}
-} else {
-
- $fs->removeDirectory($this->repoDir);
-
-$command = function ($url) {
-return sprintf('hg clone --noupdate %s %s', ProcessExecutor::escape($url), ProcessExecutor::escape($this->repoDir));
-};
-
-$hgUtils->runCommand($command, $this->url, $this->repoDir);
-}
-}
-
-$this->getTags();
-$this->getBranches();
-}
-
-
-
-
-public function getRootIdentifier()
-{
-if (null === $this->rootIdentifier) {
-$this->process->execute(sprintf('hg tip --template "{node}"'), $output, $this->repoDir);
-$output = $this->process->splitLines($output);
-$this->rootIdentifier = $output[0];
-}
-
-return $this->rootIdentifier;
-}
-
-
-
-
-public function getUrl()
-{
-return $this->url;
-}
-
-
-
-
-public function getSource($identifier)
-{
-return array('type' => 'hg', 'url' => $this->getUrl(), 'reference' => $identifier);
-}
-
-
-
-
-public function getDist($identifier)
-{
-return null;
-}
-
-
-
-
-public function getFileContent($file, $identifier)
-{
-$resource = sprintf('hg cat -r %s %s', ProcessExecutor::escape($identifier), ProcessExecutor::escape($file));
-$this->process->execute($resource, $content, $this->repoDir);
-
-if (!trim($content)) {
-return;
-}
-
-return $content;
-}
-
-
-
-
-public function getChangeDate($identifier)
-{
-$this->process->execute(
-sprintf(
-'hg log --template "{date|rfc3339date}" -r %s',
-ProcessExecutor::escape($identifier)
-),
-$output,
-$this->repoDir
-);
-
-return new \DateTime(trim($output), new \DateTimeZone('UTC'));
-}
-
-
-
-
-public function getTags()
-{
-if (null === $this->tags) {
-$tags = array();
-
-$this->process->execute('hg tags', $output, $this->repoDir);
-foreach ($this->process->splitLines($output) as $tag) {
-if ($tag && preg_match('(^([^\s]+)\s+\d+:(.*)$)', $tag, $match)) {
-$tags[$match[1]] = $match[2];
-}
-}
-unset($tags['tip']);
-
-$this->tags = $tags;
-}
-
-return $this->tags;
-}
-
-
-
-
-public function getBranches()
-{
-if (null === $this->branches) {
-$branches = array();
-$bookmarks = array();
-
-$this->process->execute('hg branches', $output, $this->repoDir);
-foreach ($this->process->splitLines($output) as $branch) {
-if ($branch && preg_match('(^([^\s]+)\s+\d+:([a-f0-9]+))', $branch, $match)) {
-$branches[$match[1]] = $match[2];
-}
-}
-
-$this->process->execute('hg bookmarks', $output, $this->repoDir);
-foreach ($this->process->splitLines($output) as $branch) {
-if ($branch && preg_match('(^(?:[\s*]*)([^\s]+)\s+\d+:(.*)$)', $branch, $match)) {
-$bookmarks[$match[1]] = $match[2];
-}
-}
-
-
- $this->branches = array_merge($bookmarks, $branches);
-}
-
-return $this->branches;
-}
-
-
-
-
-public static function supports(IOInterface $io, Config $config, $url, $deep = false)
-{
-if (preg_match('#(^(?:https?|ssh)://(?:[^@]+@)?bitbucket.org|https://(?:.*?)\.kilnhg.com)#i', $url)) {
-return true;
-}
-
-
- if (Filesystem::isLocalPath($url)) {
-$url = Filesystem::getPlatformPath($url);
-if (!is_dir($url)) {
-return false;
-}
-
-$process = new ProcessExecutor($io);
-
- if ($process->execute('hg summary', $output, $url) === 0) {
-return true;
-}
-}
-
-if (!$deep) {
-return false;
-}
-
-$processExecutor = new ProcessExecutor($io);
-$exit = $processExecutor->execute(sprintf('hg identify %s', ProcessExecutor::escape($url)), $ignored);
-
-return $exit === 0;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository\Vcs;
-
-use Composer\Config;
-use Composer\IO\IOInterface;
-use Composer\Util\ProcessExecutor;
-use Composer\Util\Perforce;
-
-
-
-
-class PerforceDriver extends VcsDriver
-{
-protected $depot;
-protected $branch;
-
-protected $perforce;
-
-
-
-
-public function initialize()
-{
-$this->depot = $this->repoConfig['depot'];
-$this->branch = '';
-if (!empty($this->repoConfig['branch'])) {
-$this->branch = $this->repoConfig['branch'];
-}
-
-$this->initPerforce($this->repoConfig);
-$this->perforce->p4Login();
-$this->perforce->checkStream();
-
-$this->perforce->writeP4ClientSpec();
-$this->perforce->connectClient();
-
-return true;
-}
-
-private function initPerforce($repoConfig)
-{
-if (!empty($this->perforce)) {
-return;
-}
-
-$repoDir = $this->config->get('cache-vcs-dir') . '/' . $this->depot;
-$this->perforce = Perforce::create($repoConfig, $this->getUrl(), $repoDir, $this->process, $this->io);
-}
-
-
-
-
-public function getFileContent($file, $identifier)
-{
-return $this->perforce->getFileContent($file, $identifier);
-}
-
-
-
-
-public function getChangeDate($identifier)
-{
-return null;
-}
-
-
-
-
-public function getRootIdentifier()
-{
-return $this->branch;
-}
-
-
-
-
-public function getBranches()
-{
-return $this->perforce->getBranches();
-}
-
-
-
-
-public function getTags()
-{
-return $this->perforce->getTags();
-}
-
-
-
-
-public function getDist($identifier)
-{
-return null;
-}
-
-
-
-
-public function getSource($identifier)
-{
-$source = array(
-'type' => 'perforce',
-'url' => $this->repoConfig['url'],
-'reference' => $identifier,
-'p4user' => $this->perforce->getUser(),
-);
-
-return $source;
-}
-
-
-
-
-public function getUrl()
-{
-return $this->url;
-}
-
-
-
-
-public function hasComposerFile($identifier)
-{
-$composerInfo = $this->perforce->getComposerInformation('//' . $this->depot . '/' . $identifier);
-$composerInfoIdentifier = $identifier;
-
-return !empty($composerInfo);
-}
-
-
-
-
-public function getContents($url)
-{
-return false;
-}
-
-
-
-
-public static function supports(IOInterface $io, Config $config, $url, $deep = false)
-{
-if ($deep || preg_match('#\b(perforce|p4)\b#i', $url)) {
-return Perforce::checkServerExists($url, new ProcessExecutor($io));
-}
-
-return false;
-}
-
-
-
-
-public function cleanup()
-{
-$this->perforce->cleanupClientSpec();
-$this->perforce = null;
-}
-
-public function getDepot()
-{
-return $this->depot;
-}
-
-public function getBranch()
-{
-return $this->branch;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository\Vcs;
-
-use Composer\Cache;
-use Composer\Config;
-use Composer\Json\JsonFile;
-use Composer\Util\ProcessExecutor;
-use Composer\Util\Filesystem;
-use Composer\Util\Svn as SvnUtil;
-use Composer\IO\IOInterface;
-use Composer\Downloader\TransportException;
-
-
-
-
-
-class SvnDriver extends VcsDriver
-{
-
-
-
-protected $cache;
-protected $baseUrl;
-protected $tags;
-protected $branches;
-protected $rootIdentifier;
-protected $infoCache = array();
-
-protected $trunkPath = 'trunk';
-protected $branchesPath = 'branches';
-protected $tagsPath = 'tags';
-protected $packagePath = '';
-protected $cacheCredentials = true;
-
-
-
-
-private $util;
-
-
-
-
-public function initialize()
-{
-$this->url = $this->baseUrl = rtrim(self::normalizeUrl($this->url), '/');
-
-SvnUtil::cleanEnv();
-
-if (isset($this->repoConfig['trunk-path'])) {
-$this->trunkPath = $this->repoConfig['trunk-path'];
-}
-if (isset($this->repoConfig['branches-path'])) {
-$this->branchesPath = $this->repoConfig['branches-path'];
-}
-if (isset($this->repoConfig['tags-path'])) {
-$this->tagsPath = $this->repoConfig['tags-path'];
-}
-if (array_key_exists('svn-cache-credentials', $this->repoConfig)) {
-$this->cacheCredentials = (bool) $this->repoConfig['svn-cache-credentials'];
-}
-if (isset($this->repoConfig['package-path'])) {
-$this->packagePath = '/' . trim($this->repoConfig['package-path'], '/');
-}
-
-if (false !== ($pos = strrpos($this->url, '/' . $this->trunkPath))) {
-$this->baseUrl = substr($this->url, 0, $pos);
-}
-
-$this->cache = new Cache($this->io, $this->config->get('cache-repo-dir').'/'.preg_replace('{[^a-z0-9.]}i', '-', $this->baseUrl));
-
-$this->getBranches();
-$this->getTags();
-}
-
-
-
-
-public function getRootIdentifier()
-{
-return $this->rootIdentifier ?: $this->trunkPath;
-}
-
-
-
-
-public function getUrl()
-{
-return $this->url;
-}
-
-
-
-
-public function getSource($identifier)
-{
-return array('type' => 'svn', 'url' => $this->baseUrl, 'reference' => $identifier);
-}
-
-
-
-
-public function getDist($identifier)
-{
-return null;
-}
-
-
-
-
-protected function shouldCache($identifier)
-{
-return $this->cache && preg_match('{@\d+$}', $identifier);
-}
-
-
-
-
-public function getComposerInformation($identifier)
-{
-if (!isset($this->infoCache[$identifier])) {
-if ($this->shouldCache($identifier) && $res = $this->cache->read($identifier.'.json')) {
-return $this->infoCache[$identifier] = JsonFile::parseJson($res);
-}
-
-try {
-$composer = $this->getBaseComposerInformation($identifier);
-} catch (TransportException $e) {
-$message = $e->getMessage();
-if (stripos($message, 'path not found') === false && stripos($message, 'svn: warning: W160013') === false) {
-throw $e;
-}
-
- $composer = '';
-}
-
-if ($this->shouldCache($identifier)) {
-$this->cache->write($identifier.'.json', json_encode($composer));
-}
-
-$this->infoCache[$identifier] = $composer;
-}
-
-return $this->infoCache[$identifier];
-}
-
-
-
-
-
-public function getFileContent($file, $identifier)
-{
-$identifier = '/' . trim($identifier, '/') . '/';
-
-preg_match('{^(.+?)(@\d+)?/$}', $identifier, $match);
-if (!empty($match[2])) {
-$path = $match[1];
-$rev = $match[2];
-} else {
-$path = $identifier;
-$rev = '';
-}
-
-try {
-$resource = $path.$file;
-$output = $this->execute('svn cat', $this->baseUrl . $resource . $rev);
-if (!trim($output)) {
-return null;
-}
-} catch (\RuntimeException $e) {
-throw new TransportException($e->getMessage());
-}
-
-return $output;
-}
-
-
-
-
-public function getChangeDate($identifier)
-{
-$identifier = '/' . trim($identifier, '/') . '/';
-
-preg_match('{^(.+?)(@\d+)?/$}', $identifier, $match);
-if (!empty($match[2])) {
-$path = $match[1];
-$rev = $match[2];
-} else {
-$path = $identifier;
-$rev = '';
-}
-
-$output = $this->execute('svn info', $this->baseUrl . $path . $rev);
-foreach ($this->process->splitLines($output) as $line) {
-if ($line && preg_match('{^Last Changed Date: ([^(]+)}', $line, $match)) {
-return new \DateTime($match[1], new \DateTimeZone('UTC'));
-}
-}
-
-return null;
-}
-
-
-
-
-public function getTags()
-{
-if (null === $this->tags) {
-$this->tags = array();
-
-if ($this->tagsPath !== false) {
-$output = $this->execute('svn ls --verbose', $this->baseUrl . '/' . $this->tagsPath);
-if ($output) {
-foreach ($this->process->splitLines($output) as $line) {
-$line = trim($line);
-if ($line && preg_match('{^\s*(\S+).*?(\S+)\s*$}', $line, $match)) {
-if (isset($match[1]) && isset($match[2]) && $match[2] !== './') {
-$this->tags[rtrim($match[2], '/')] = $this->buildIdentifier(
-'/' . $this->tagsPath . '/' . $match[2],
-$match[1]
-);
-}
-}
-}
-}
-}
-}
-
-return $this->tags;
-}
-
-
-
-
-public function getBranches()
-{
-if (null === $this->branches) {
-$this->branches = array();
-
-if (false === $this->trunkPath) {
-$trunkParent = $this->baseUrl . '/';
-} else {
-$trunkParent = $this->baseUrl . '/' . $this->trunkPath;
-}
-
-$output = $this->execute('svn ls --verbose', $trunkParent);
-if ($output) {
-foreach ($this->process->splitLines($output) as $line) {
-$line = trim($line);
-if ($line && preg_match('{^\s*(\S+).*?(\S+)\s*$}', $line, $match)) {
-if (isset($match[1]) && isset($match[2]) && $match[2] === './') {
-$this->branches['trunk'] = $this->buildIdentifier(
-'/' . $this->trunkPath,
-$match[1]
-);
-$this->rootIdentifier = $this->branches['trunk'];
-break;
-}
-}
-}
-}
-unset($output);
-
-if ($this->branchesPath !== false) {
-$output = $this->execute('svn ls --verbose', $this->baseUrl . '/' . $this->branchesPath);
-if ($output) {
-foreach ($this->process->splitLines(trim($output)) as $line) {
-$line = trim($line);
-if ($line && preg_match('{^\s*(\S+).*?(\S+)\s*$}', $line, $match)) {
-if (isset($match[1]) && isset($match[2]) && $match[2] !== './') {
-$this->branches[rtrim($match[2], '/')] = $this->buildIdentifier(
-'/' . $this->branchesPath . '/' . $match[2],
-$match[1]
-);
-}
-}
-}
-}
-}
-}
-
-return $this->branches;
-}
-
-
-
-
-public static function supports(IOInterface $io, Config $config, $url, $deep = false)
-{
-$url = self::normalizeUrl($url);
-if (preg_match('#(^svn://|^svn\+ssh://|svn\.)#i', $url)) {
-return true;
-}
-
-
- if (!$deep && !Filesystem::isLocalPath($url)) {
-return false;
-}
-
-$processExecutor = new ProcessExecutor($io);
-
-$exit = $processExecutor->execute(
-"svn info --non-interactive ".ProcessExecutor::escape($url),
-$ignoredOutput
-);
-
-if ($exit === 0) {
-
- return true;
-}
-
-
- if (false !== stripos($processExecutor->getErrorOutput(), 'authorization failed:')) {
-
- 
- return true;
-}
-
-
- if (false !== stripos($processExecutor->getErrorOutput(), 'Authentication failed')) {
-
- 
- return true;
-}
-
-return false;
-}
-
-
-
-
-
-
-
-
-protected static function normalizeUrl($url)
-{
-$fs = new Filesystem();
-if ($fs->isAbsolutePath($url)) {
-return 'file://' . strtr($url, '\\', '/');
-}
-
-return $url;
-}
-
-
-
-
-
-
-
-
-
-
-protected function execute($command, $url)
-{
-if (null === $this->util) {
-$this->util = new SvnUtil($this->baseUrl, $this->io, $this->config, $this->process);
-$this->util->setCacheCredentials($this->cacheCredentials);
-}
-
-try {
-return $this->util->execute($command, $url);
-} catch (\RuntimeException $e) {
-if (null === $this->util->binaryVersion()) {
-throw new \RuntimeException('Failed to load '.$this->url.', svn was not found, check that it is installed and in your PATH env.' . "\n\n" . $this->process->getErrorOutput());
-}
-
-throw new \RuntimeException(
-'Repository '.$this->url.' could not be processed, '.$e->getMessage()
-);
-}
-}
-
-
-
-
-
-
-
-
-
-protected function buildIdentifier($baseDir, $revision)
-{
-return rtrim($baseDir, '/') . $this->packagePath . '/@' . $revision;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository\Vcs;
-
-use Composer\Cache;
-use Composer\Downloader\TransportException;
-use Composer\Config;
-use Composer\Factory;
-use Composer\IO\IOInterface;
-use Composer\Json\JsonFile;
-use Composer\Util\ProcessExecutor;
-use Composer\Util\RemoteFilesystem;
-use Composer\Util\Filesystem;
-
-
-
-
-
-
-abstract class VcsDriver implements VcsDriverInterface
-{
-
-protected $url;
-
-protected $originUrl;
-
-protected $repoConfig;
-
-protected $io;
-
-protected $config;
-
-protected $process;
-
-protected $remoteFilesystem;
-
-protected $infoCache = array();
-
-protected $cache;
-
-
-
-
-
-
-
-
-
-
-final public function __construct(array $repoConfig, IOInterface $io, Config $config, ProcessExecutor $process = null, RemoteFilesystem $remoteFilesystem = null)
-{
-if (Filesystem::isLocalPath($repoConfig['url'])) {
-$repoConfig['url'] = Filesystem::getPlatformPath($repoConfig['url']);
-}
-
-$this->url = $repoConfig['url'];
-$this->originUrl = $repoConfig['url'];
-$this->repoConfig = $repoConfig;
-$this->io = $io;
-$this->config = $config;
-$this->process = $process ?: new ProcessExecutor($io);
-$this->remoteFilesystem = $remoteFilesystem ?: Factory::createRemoteFilesystem($this->io, $config);
-}
-
-
-
-
-
-
-
-protected function shouldCache($identifier)
-{
-return $this->cache && preg_match('{[a-f0-9]{40}}i', $identifier);
-}
-
-
-
-
-public function getComposerInformation($identifier)
-{
-if (!isset($this->infoCache[$identifier])) {
-if ($this->shouldCache($identifier) && $res = $this->cache->read($identifier)) {
-return $this->infoCache[$identifier] = JsonFile::parseJson($res);
-}
-
-$composer = $this->getBaseComposerInformation($identifier);
-
-if ($this->shouldCache($identifier)) {
-$this->cache->write($identifier, json_encode($composer));
-}
-
-$this->infoCache[$identifier] = $composer;
-}
-
-return $this->infoCache[$identifier];
-}
-
-protected function getBaseComposerInformation($identifier)
-{
-$composerFileContent = $this->getFileContent('composer.json', $identifier);
-
-if (!$composerFileContent) {
-return null;
-}
-
-$composer = JsonFile::parseJson($composerFileContent, $identifier . ':composer.json');
-
-if (empty($composer['time']) && $changeDate = $this->getChangeDate($identifier)) {
-$composer['time'] = $changeDate->format(DATE_RFC3339);
-}
-
-return $composer;
-}
-
-
-
-
-public function hasComposerFile($identifier)
-{
-try {
-return (bool) $this->getComposerInformation($identifier);
-} catch (TransportException $e) {
-}
-
-return false;
-}
-
-
-
-
-
-
-
-
-protected function getScheme()
-{
-if (extension_loaded('openssl')) {
-return 'https';
-}
-
-return 'http';
-}
-
-
-
-
-
-
-
-
-protected function getContents($url)
-{
-$options = isset($this->repoConfig['options']) ? $this->repoConfig['options'] : array();
-
-return $this->remoteFilesystem->getContents($this->originUrl, $url, false, $options);
-}
-
-
-
-
-public function cleanup()
-{
-return;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository\Vcs;
-
-use Composer\Config;
-use Composer\IO\IOInterface;
-
-
-
-
-interface VcsDriverInterface
-{
-
-
-
-public function initialize();
-
-
-
-
-
-
-
-public function getComposerInformation($identifier);
-
-
-
-
-
-
-
-
-public function getFileContent($file, $identifier);
-
-
-
-
-
-
-
-public function getChangeDate($identifier);
-
-
-
-
-
-
-public function getRootIdentifier();
-
-
-
-
-
-
-public function getBranches();
-
-
-
-
-
-
-public function getTags();
-
-
-
-
-
-public function getDist($identifier);
-
-
-
-
-
-public function getSource($identifier);
-
-
-
-
-
-
-public function getUrl();
-
-
-
-
-
-
-
-
-public function hasComposerFile($identifier);
-
-
-
-
-public function cleanup();
-
-
-
-
-
-
-
-
-
-
-public static function supports(IOInterface $io, Config $config, $url, $deep = false);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-use Composer\Downloader\TransportException;
-use Composer\Repository\Vcs\VcsDriverInterface;
-use Composer\Package\Version\VersionParser;
-use Composer\Package\Loader\ArrayLoader;
-use Composer\Package\Loader\ValidatingArrayLoader;
-use Composer\Package\Loader\InvalidPackageException;
-use Composer\Package\Loader\LoaderInterface;
-use Composer\EventDispatcher\EventDispatcher;
-use Composer\IO\IOInterface;
-use Composer\Config;
-
-
-
-
-class VcsRepository extends ArrayRepository implements ConfigurableRepositoryInterface
-{
-protected $url;
-protected $packageName;
-protected $verbose;
-protected $io;
-protected $config;
-protected $versionParser;
-protected $type;
-protected $loader;
-protected $repoConfig;
-protected $branchErrorOccurred = false;
-private $drivers;
-
-private $driver;
-
-private $versionCache;
-
-public function __construct(array $repoConfig, IOInterface $io, Config $config, EventDispatcher $dispatcher = null, array $drivers = null, VersionCacheInterface $versionCache = null)
-{
-parent::__construct();
-$this->drivers = $drivers ?: array(
-'github' => 'Composer\Repository\Vcs\GitHubDriver',
-'gitlab' => 'Composer\Repository\Vcs\GitLabDriver',
-'git-bitbucket' => 'Composer\Repository\Vcs\GitBitbucketDriver',
-'git' => 'Composer\Repository\Vcs\GitDriver',
-'hg-bitbucket' => 'Composer\Repository\Vcs\HgBitbucketDriver',
-'hg' => 'Composer\Repository\Vcs\HgDriver',
-'perforce' => 'Composer\Repository\Vcs\PerforceDriver',
-'fossil' => 'Composer\Repository\Vcs\FossilDriver',
-
- 'svn' => 'Composer\Repository\Vcs\SvnDriver',
-);
-
-$this->url = $repoConfig['url'];
-$this->io = $io;
-$this->type = isset($repoConfig['type']) ? $repoConfig['type'] : 'vcs';
-$this->verbose = $io->isVeryVerbose();
-$this->config = $config;
-$this->repoConfig = $repoConfig;
-$this->versionCache = $versionCache;
-}
-
-public function getRepoConfig()
-{
-return $this->repoConfig;
-}
-
-public function setLoader(LoaderInterface $loader)
-{
-$this->loader = $loader;
-}
-
-public function getDriver()
-{
-if ($this->driver) {
-return $this->driver;
-}
-
-if (isset($this->drivers[$this->type])) {
-$class = $this->drivers[$this->type];
-$this->driver = new $class($this->repoConfig, $this->io, $this->config);
-$this->driver->initialize();
-
-return $this->driver;
-}
-
-foreach ($this->drivers as $driver) {
-if ($driver::supports($this->io, $this->config, $this->url)) {
-$this->driver = new $driver($this->repoConfig, $this->io, $this->config);
-$this->driver->initialize();
-
-return $this->driver;
-}
-}
-
-foreach ($this->drivers as $driver) {
-if ($driver::supports($this->io, $this->config, $this->url, true)) {
-$this->driver = new $driver($this->repoConfig, $this->io, $this->config);
-$this->driver->initialize();
-
-return $this->driver;
-}
-}
-}
-
-public function hadInvalidBranches()
-{
-return $this->branchErrorOccurred;
-}
-
-protected function initialize()
-{
-parent::initialize();
-
-$verbose = $this->verbose;
-
-$driver = $this->getDriver();
-if (!$driver) {
-throw new \InvalidArgumentException('No driver found to handle VCS repository '.$this->url);
-}
-
-$this->versionParser = new VersionParser;
-if (!$this->loader) {
-$this->loader = new ArrayLoader($this->versionParser);
-}
-
-try {
-if ($driver->hasComposerFile($driver->getRootIdentifier())) {
-$data = $driver->getComposerInformation($driver->getRootIdentifier());
-$this->packageName = !empty($data['name']) ? $data['name'] : null;
-}
-} catch (\Exception $e) {
-if ($verbose) {
-$this->io->writeError('<error>Skipped parsing '.$driver->getRootIdentifier().', '.$e->getMessage().'</error>');
-}
-}
-
-foreach ($driver->getTags() as $tag => $identifier) {
-$msg = 'Reading composer.json of <info>' . ($this->packageName ?: $this->url) . '</info> (<comment>' . $tag . '</comment>)';
-if ($verbose) {
-$this->io->writeError($msg);
-} else {
-$this->io->overwriteError($msg, false);
-}
-
-
- $tag = str_replace('release-', '', $tag);
-
-$cachedPackage = $this->getCachedPackageVersion($tag, $identifier, $verbose);
-if ($cachedPackage) {
-$this->addPackage($cachedPackage);
-
-continue;
-}
-
-if (!$parsedTag = $this->validateTag($tag)) {
-if ($verbose) {
-$this->io->writeError('<warning>Skipped tag '.$tag.', invalid tag name</warning>');
-}
-continue;
-}
-
-try {
-if (!$data = $driver->getComposerInformation($identifier)) {
-if ($verbose) {
-$this->io->writeError('<warning>Skipped tag '.$tag.', no composer file</warning>');
-}
-continue;
-}
-
-
- if (isset($data['version'])) {
-$data['version_normalized'] = $this->versionParser->normalize($data['version']);
-} else {
-
- $data['version'] = $tag;
-$data['version_normalized'] = $parsedTag;
-}
-
-
- $data['version'] = preg_replace('{[.-]?dev$}i', '', $data['version']);
-$data['version_normalized'] = preg_replace('{(^dev-|[.-]?dev$)}i', '', $data['version_normalized']);
-
-
- if ($data['version_normalized'] !== $parsedTag) {
-if ($verbose) {
-$this->io->writeError('<warning>Skipped tag '.$tag.', tag ('.$parsedTag.') does not match version ('.$data['version_normalized'].') in composer.json</warning>');
-}
-continue;
-}
-
-$tagPackageName = isset($data['name']) ? $data['name'] : $this->packageName;
-if ($existingPackage = $this->findPackage($tagPackageName, $data['version_normalized'])) {
-if ($verbose) {
-$this->io->writeError('<warning>Skipped tag '.$tag.', it conflicts with an another tag ('.$existingPackage->getPrettyVersion().') as both resolve to '.$data['version_normalized'].' internally</warning>');
-}
-continue;
-}
-
-if ($verbose) {
-$this->io->writeError('Importing tag '.$tag.' ('.$data['version_normalized'].')');
-}
-
-$this->addPackage($this->loader->load($this->preProcess($driver, $data, $identifier)));
-} catch (\Exception $e) {
-if ($verbose) {
-$this->io->writeError('<warning>Skipped tag '.$tag.', '.($e instanceof TransportException ? 'no composer file was found' : $e->getMessage()).'</warning>');
-}
-continue;
-}
-}
-
-if (!$verbose) {
-$this->io->overwriteError('', false);
-}
-
-$branches = $driver->getBranches();
-foreach ($branches as $branch => $identifier) {
-$msg = 'Reading composer.json of <info>' . ($this->packageName ?: $this->url) . '</info> (<comment>' . $branch . '</comment>)';
-if ($verbose) {
-$this->io->writeError($msg);
-} else {
-$this->io->overwriteError($msg, false);
-}
-
-if ($branch === 'trunk' && isset($branches['master'])) {
-if ($verbose) {
-$this->io->writeError('<warning>Skipped branch '.$branch.', can not parse both master and trunk branches as they both resolve to 9999999-dev internally</warning>');
-}
-continue;
-}
-
-if (!$parsedBranch = $this->validateBranch($branch)) {
-if ($verbose) {
-$this->io->writeError('<warning>Skipped branch '.$branch.', invalid name</warning>');
-}
-continue;
-}
-
-
- if ('dev-' === substr($parsedBranch, 0, 4) || '9999999-dev' === $parsedBranch) {
-$version = 'dev-' . $branch;
-} else {
-$prefix = substr($branch, 0, 1) === 'v' ? 'v' : '';
-$version = $prefix . preg_replace('{(\.9{7})+}', '.x', $parsedBranch);
-}
-
-$cachedPackage = $this->getCachedPackageVersion($version, $identifier, $verbose);
-if ($cachedPackage) {
-$this->addPackage($cachedPackage);
-
-continue;
-}
-
-try {
-if (!$data = $driver->getComposerInformation($identifier)) {
-if ($verbose) {
-$this->io->writeError('<warning>Skipped branch '.$branch.', no composer file</warning>');
-}
-continue;
-}
-
-
- $data['version'] = $version;
-$data['version_normalized'] = $parsedBranch;
-
-if ($verbose) {
-$this->io->writeError('Importing branch '.$branch.' ('.$data['version'].')');
-}
-
-$packageData = $this->preProcess($driver, $data, $identifier);
-$package = $this->loader->load($packageData);
-if ($this->loader instanceof ValidatingArrayLoader && $this->loader->getWarnings()) {
-throw new InvalidPackageException($this->loader->getErrors(), $this->loader->getWarnings(), $packageData);
-}
-$this->addPackage($package);
-} catch (TransportException $e) {
-if ($verbose) {
-$this->io->writeError('<warning>Skipped branch '.$branch.', no composer file was found</warning>');
-}
-continue;
-} catch (\Exception $e) {
-if (!$verbose) {
-$this->io->writeError('');
-}
-$this->branchErrorOccurred = true;
-$this->io->writeError('<error>Skipped branch '.$branch.', '.$e->getMessage().'</error>');
-$this->io->writeError('');
-continue;
-}
-}
-$driver->cleanup();
-
-if (!$verbose) {
-$this->io->overwriteError('', false);
-}
-
-if (!$this->getPackages()) {
-throw new InvalidRepositoryException('No valid composer.json was found in any branch or tag of '.$this->url.', could not load a package from it.');
-}
-}
-
-protected function preProcess(VcsDriverInterface $driver, array $data, $identifier)
-{
-
- $dataPackageName = isset($data['name']) ? $data['name'] : null;
-$data['name'] = $this->packageName ?: $dataPackageName;
-
-if (!isset($data['dist'])) {
-$data['dist'] = $driver->getDist($identifier);
-}
-if (!isset($data['source'])) {
-$data['source'] = $driver->getSource($identifier);
-}
-
-return $data;
-}
-
-private function validateBranch($branch)
-{
-try {
-return $this->versionParser->normalizeBranch($branch);
-} catch (\Exception $e) {
-}
-
-return false;
-}
-
-private function validateTag($version)
-{
-try {
-return $this->versionParser->normalize($version);
-} catch (\Exception $e) {
-}
-
-return false;
-}
-
-private function getCachedPackageVersion($version, $identifier, $verbose)
-{
-if (!$this->versionCache) {
-return;
-}
-
-$cachedPackage = $this->versionCache->getVersionPackage($version, $identifier);
-if ($cachedPackage) {
-$msg = 'Found cached composer.json of <info>' . ($this->packageName ?: $this->url) . '</info> (<comment>' . $version . '</comment>)';
-if ($verbose) {
-$this->io->writeError($msg);
-} else {
-$this->io->overwriteError($msg, false);
-}
-
-if ($existingPackage = $this->findPackage($cachedPackage['name'], $cachedPackage['version_normalized'])) {
-if ($verbose) {
-$this->io->writeError('<warning>Skipped cached version '.$version.', it conflicts with an another tag ('.$existingPackage->getPrettyVersion().') as both resolve to '.$cachedPackage['version_normalized'].' internally</warning>');
-}
-$cachedPackage = null;
-}
-}
-
-if ($cachedPackage) {
-return $this->loader->load($cachedPackage);
-}
-
-return null;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-interface VersionCacheInterface
-{
-
-
-
-
-
-public function getVersionPackage($version, $identifier);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-use Composer\Package\AliasPackage;
-
-
-
-
-
-
-class WritableArrayRepository extends ArrayRepository implements WritableRepositoryInterface
-{
-
-
-
-public function write()
-{
-}
-
-
-
-
-public function reload()
-{
-}
-
-
-
-
-public function getCanonicalPackages()
-{
-$packages = $this->getPackages();
-
-
- $packagesByName = array();
-foreach ($packages as $package) {
-if (!isset($packagesByName[$package->getName()]) || $packagesByName[$package->getName()] instanceof AliasPackage) {
-$packagesByName[$package->getName()] = $package;
-}
-}
-
-$canonicalPackages = array();
-
-
- foreach ($packagesByName as $package) {
-while ($package instanceof AliasPackage) {
-$package = $package->getAliasOf();
-}
-
-$canonicalPackages[] = $package;
-}
-
-return $canonicalPackages;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Repository;
-
-use Composer\Package\PackageInterface;
-
-
-
-
-
-
-interface WritableRepositoryInterface extends RepositoryInterface
-{
-
-
-
-public function write();
-
-
-
-
-
-
-public function addPackage(PackageInterface $package);
-
-
-
-
-
-
-public function removePackage(PackageInterface $package);
-
-
-
-
-
-
-public function getCanonicalPackages();
-
-
-
-
-public function reload();
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Script;
-
-
-
-
-
-
-class CommandEvent extends Event
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Script;
-
-use Composer\Composer;
-use Composer\IO\IOInterface;
-use Composer\EventDispatcher\Event as BaseEvent;
-
-
-
-
-
-
-
-class Event extends BaseEvent
-{
-
-
-
-private $composer;
-
-
-
-
-private $io;
-
-
-
-
-private $devMode;
-
-
-
-
-
-
-
-
-
-
-
-public function __construct($name, Composer $composer, IOInterface $io, $devMode = false, array $args = array(), array $flags = array())
-{
-parent::__construct($name, $args, $flags);
-$this->composer = $composer;
-$this->io = $io;
-$this->devMode = $devMode;
-}
-
-
-
-
-
-
-public function getComposer()
-{
-return $this->composer;
-}
-
-
-
-
-
-
-public function getIO()
-{
-return $this->io;
-}
-
-
-
-
-
-
-public function isDevMode()
-{
-return $this->devMode;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Script;
-
-use Composer\Installer\PackageEvent as BasePackageEvent;
-
-
-
-
-
-
-class PackageEvent extends BasePackageEvent
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Script;
-
-
-
-
-
-
-
-class ScriptEvents
-{
-
-
-
-
-
-
-
-const PRE_INSTALL_CMD = 'pre-install-cmd';
-
-
-
-
-
-
-
-
-const POST_INSTALL_CMD = 'post-install-cmd';
-
-
-
-
-
-
-
-
-const PRE_UPDATE_CMD = 'pre-update-cmd';
-
-
-
-
-
-
-
-
-const POST_UPDATE_CMD = 'post-update-cmd';
-
-
-
-
-
-
-
-
-const PRE_STATUS_CMD = 'pre-status-cmd';
-
-
-
-
-
-
-
-
-const POST_STATUS_CMD = 'post-status-cmd';
-
-
-
-
-
-
-
-
-const PRE_AUTOLOAD_DUMP = 'pre-autoload-dump';
-
-
-
-
-
-
-
-
-const POST_AUTOLOAD_DUMP = 'post-autoload-dump';
-
-
-
-
-
-
-
-
-const POST_ROOT_PACKAGE_INSTALL = 'post-root-package-install';
-
-
-
-
-
-
-
-
-
-const POST_CREATE_PROJECT_CMD = 'post-create-project-cmd';
-
-
-
-
-
-
-
-
-const PRE_ARCHIVE_CMD = 'pre-archive-cmd';
-
-
-
-
-
-
-
-
-const POST_ARCHIVE_CMD = 'post-archive-cmd';
-
-
-
-
-
-
-
-
-
-
-
-const PRE_PACKAGE_INSTALL = 'pre-package-install';
-
-
-
-
-
-
-
-
-
-const POST_PACKAGE_INSTALL = 'post-package-install';
-
-
-
-
-
-
-
-
-
-const PRE_PACKAGE_UPDATE = 'pre-package-update';
-
-
-
-
-
-
-
-
-
-const POST_PACKAGE_UPDATE = 'post-package-update';
-
-
-
-
-
-
-
-
-
-const PRE_PACKAGE_UNINSTALL = 'pre-package-uninstall';
-
-
-
-
-
-
-
-
-
-const POST_PACKAGE_UNINSTALL = 'post-package-uninstall';
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\SelfUpdate;
-
-
-
-
-class Keys
-{
-public static function fingerprint($path)
-{
-$hash = strtoupper(hash('sha256', preg_replace('{\s}', '', file_get_contents($path))));
-
-return implode(' ', array(
-substr($hash, 0, 8),
-substr($hash, 8, 8),
-substr($hash, 16, 8),
-substr($hash, 24, 8),
-'', 
- substr($hash, 32, 8),
-substr($hash, 40, 8),
-substr($hash, 48, 8),
-substr($hash, 56, 8),
-));
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\SelfUpdate;
-
-use Composer\Util\RemoteFilesystem;
-use Composer\Config;
-use Composer\Json\JsonFile;
-
-
-
-
-class Versions
-{
-private $rfs;
-private $config;
-private $channel;
-
-public function __construct(Config $config, RemoteFilesystem $rfs)
-{
-$this->rfs = $rfs;
-$this->config = $config;
-}
-
-public function getChannel()
-{
-if ($this->channel) {
-return $this->channel;
-}
-
-$channelFile = $this->config->get('home').'/update-channel';
-if (file_exists($channelFile)) {
-$channel = trim(file_get_contents($channelFile));
-if (in_array($channel, array('stable', 'preview', 'snapshot'), true)) {
-return $this->channel = $channel;
-}
-}
-
-return $this->channel = 'stable';
-}
-
-public function setChannel($channel)
-{
-if (!in_array($channel, array('stable', 'preview', 'snapshot'), true)) {
-throw new \InvalidArgumentException('Invalid channel '.$channel.', must be one of: stable, preview, snapshot');
-}
-
-$channelFile = $this->config->get('home').'/update-channel';
-$this->channel = $channel;
-file_put_contents($channelFile, $channel.PHP_EOL);
-}
-
-public function getLatest()
-{
-$protocol = extension_loaded('openssl') ? 'https' : 'http';
-$versions = JsonFile::parseJson($this->rfs->getContents('getcomposer.org', $protocol . '://getcomposer.org/versions', false));
-
-foreach ($versions[$this->getChannel()] as $version) {
-if ($version['min-php'] <= PHP_VERSION_ID) {
-return $version;
-}
-}
-
-throw new \LogicException('There is no version of Composer available for your PHP version ('.PHP_VERSION.')');
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Util;
-
-use Composer\Config;
-use Composer\IO\IOInterface;
-
-
-
-
-class AuthHelper
-{
-protected $io;
-protected $config;
-
-public function __construct(IOInterface $io, Config $config)
-{
-$this->io = $io;
-$this->config = $config;
-}
-
-public function storeAuth($originUrl, $storeAuth)
-{
-$store = false;
-$configSource = $this->config->getAuthConfigSource();
-if ($storeAuth === true) {
-$store = $configSource;
-} elseif ($storeAuth === 'prompt') {
-$answer = $this->io->askAndValidate(
-'Do you want to store credentials for '.$originUrl.' in '.$configSource->getName().' ? [Yn] ',
-function ($value) {
-$input = strtolower(substr(trim($value), 0, 1));
-if (in_array($input, array('y','n'))) {
-return $input;
-}
-throw new \RuntimeException('Please answer (y)es or (n)o');
-},
-null,
-'y'
-);
-
-if ($answer === 'y') {
-$store = $configSource;
-}
-}
-if ($store) {
-$store->addConfigSetting(
-'http-basic.'.$originUrl,
-$this->io->getAuthentication($originUrl)
-);
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Util;
-
-use Composer\Factory;
-use Composer\IO\IOInterface;
-use Composer\Config;
-use Composer\Downloader\TransportException;
-
-
-
-
-class Bitbucket
-{
-private $io;
-private $config;
-private $process;
-private $remoteFilesystem;
-private $token = array();
-private $time;
-
-const OAUTH2_ACCESS_TOKEN_URL = 'https://bitbucket.org/site/oauth2/access_token';
-
-
-
-
-
-
-
-
-
-
-public function __construct(IOInterface $io, Config $config, ProcessExecutor $process = null, RemoteFilesystem $remoteFilesystem = null, $time = null)
-{
-$this->io = $io;
-$this->config = $config;
-$this->process = $process ?: new ProcessExecutor($io);
-$this->remoteFilesystem = $remoteFilesystem ?: Factory::createRemoteFilesystem($this->io, $config);
-$this->time = $time;
-}
-
-
-
-
-public function getToken()
-{
-if (!isset($this->token['access_token'])) {
-return '';
-}
-
-return $this->token['access_token'];
-}
-
-
-
-
-
-
-
-public function authorizeOAuth($originUrl)
-{
-if ($originUrl !== 'bitbucket.org') {
-return false;
-}
-
-
- if (0 === $this->process->execute('git config bitbucket.accesstoken', $output)) {
-$this->io->setAuthentication($originUrl, 'x-token-auth', trim($output));
-
-return true;
-}
-
-return false;
-}
-
-
-
-
-
-private function requestAccessToken($originUrl)
-{
-try {
-$json = $this->remoteFilesystem->getContents($originUrl, self::OAUTH2_ACCESS_TOKEN_URL, false, array(
-'retry-auth-failure' => false,
-'http' => array(
-'method' => 'POST',
-'content' => 'grant_type=client_credentials',
-),
-));
-
-$this->token = json_decode($json, true);
-} catch (TransportException $e) {
-if ($e->getCode() === 400) {
-$this->io->writeError('<error>Invalid OAuth consumer provided.</error>');
-$this->io->writeError('This can have two reasons:');
-$this->io->writeError('1. You are authenticating with a bitbucket username/password combination');
-$this->io->writeError('2. You are using an OAuth consumer, but didn\'t configure a (dummy) callback url');
-
-return false;
-} elseif (in_array($e->getCode(), array(403, 401))) {
-$this->io->writeError('<error>Invalid OAuth consumer provided.</error>');
-$this->io->writeError('You can also add it manually later by using "composer config --global --auth bitbucket-oauth.bitbucket.org <consumer-key> <consumer-secret>"');
-
-return false;
-}
-
-throw $e;
-}
-
-return true;
-}
-
-
-
-
-
-
-
-
-
-
-public function authorizeOAuthInteractively($originUrl, $message = null)
-{
-if ($message) {
-$this->io->writeError($message);
-}
-
-$url = 'https://confluence.atlassian.com/bitbucket/oauth-on-bitbucket-cloud-238027431.html';
-$this->io->writeError(sprintf('Follow the instructions on %s', $url));
-$this->io->writeError(sprintf('to create a consumer. It will be stored in "%s" for future use by Composer.', $this->config->getAuthConfigSource()->getName()));
-$this->io->writeError('Ensure you enter a "Callback URL" (http://example.com is fine) or it will not be possible to create an Access Token (this callback url will not be used by composer)');
-
-$consumerKey = trim($this->io->askAndHideAnswer('Consumer Key (hidden): '));
-
-if (!$consumerKey) {
-$this->io->writeError('<warning>No consumer key given, aborting.</warning>');
-$this->io->writeError('You can also add it manually later by using "composer config --global --auth bitbucket-oauth.bitbucket.org <consumer-key> <consumer-secret>"');
-
-return false;
-}
-
-$consumerSecret = trim($this->io->askAndHideAnswer('Consumer Secret (hidden): '));
-
-if (!$consumerSecret) {
-$this->io->writeError('<warning>No consumer secret given, aborting.</warning>');
-$this->io->writeError('You can also add it manually later by using "composer config --global --auth bitbucket-oauth.bitbucket.org <consumer-key> <consumer-secret>"');
-
-return false;
-}
-
-$this->io->setAuthentication($originUrl, $consumerKey, $consumerSecret);
-
-if (!$this->requestAccessToken($originUrl)) {
-return false;
-}
-
-
- $this->storeInAuthConfig($originUrl, $consumerKey, $consumerSecret);
-
-
- $this->config->getAuthConfigSource()->removeConfigSetting('http-basic.' . $originUrl);
-
-$this->io->writeError('<info>Consumer stored successfully.</info>');
-
-return true;
-}
-
-
-
-
-
-
-
-
-
-public function requestToken($originUrl, $consumerKey, $consumerSecret)
-{
-if (!empty($this->token) || $this->getTokenFromConfig($originUrl)) {
-return $this->token['access_token'];
-}
-
-$this->io->setAuthentication($originUrl, $consumerKey, $consumerSecret);
-if (!$this->requestAccessToken($originUrl)) {
-return '';
-}
-
-$this->storeInAuthConfig($originUrl, $consumerKey, $consumerSecret);
-
-return $this->token['access_token'];
-}
-
-
-
-
-
-
-
-private function storeInAuthConfig($originUrl, $consumerKey, $consumerSecret)
-{
-$this->config->getConfigSource()->removeConfigSetting('bitbucket-oauth.'.$originUrl);
-
-$time = null === $this->time ? time() : $this->time;
-$consumer = array(
-"consumer-key" => $consumerKey,
-"consumer-secret" => $consumerSecret,
-"access-token" => $this->token['access_token'],
-"access-token-expiration" => $time + $this->token['expires_in'],
-);
-
-$this->config->getAuthConfigSource()->addConfigSetting('bitbucket-oauth.'.$originUrl, $consumer);
-}
-
-
-
-
-
-private function getTokenFromConfig($originUrl)
-{
-$authConfig = $this->config->get('bitbucket-oauth');
-
-if (
-!isset($authConfig[$originUrl]['access-token'])
-|| !isset($authConfig[$originUrl]['access-token-expiration'])
-|| time() > $authConfig[$originUrl]['access-token-expiration']
-) {
-return false;
-}
-
-$this->token = array(
-'access_token' => $authConfig[$originUrl]['access-token'],
-);
-
-return true;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Util;
-
-
-
-
-
-
-class ComposerMirror
-{
-public static function processUrl($mirrorUrl, $packageName, $version, $reference, $type)
-{
-if ($reference) {
-$reference = preg_match('{^([a-f0-9]*|%reference%)$}', $reference) ? $reference : md5($reference);
-}
-$version = strpos($version, '/') === false ? $version : md5($version);
-
-return str_replace(
-array('%package%', '%version%', '%reference%', '%type%'),
-array($packageName, $version, $reference, $type),
-$mirrorUrl
-);
-}
-
-public static function processGitUrl($mirrorUrl, $packageName, $url, $type)
-{
-if (preg_match('#^(?:(?:https?|git)://github\.com/|git@github\.com:)([^/]+)/(.+?)(?:\.git)?$#', $url, $match)) {
-$url = 'gh-'.$match[1].'/'.$match[2];
-} elseif (preg_match('#^https://bitbucket\.org/([^/]+)/(.+?)(?:\.git)?/?$#', $url, $match)) {
-$url = 'bb-'.$match[1].'/'.$match[2];
-} else {
-$url = preg_replace('{[^a-z0-9_.-]}i', '-', trim($url, '/'));
-}
-
-return str_replace(
-array('%package%', '%normalizedUrl%', '%type%'),
-array($packageName, $url, $type),
-$mirrorUrl
-);
-}
-
-public static function processHgUrl($mirrorUrl, $packageName, $url, $type)
-{
-return self::processGitUrl($mirrorUrl, $packageName, $url, $type);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Util;
-
-use Composer\Package\Loader\ArrayLoader;
-use Composer\Package\Loader\ValidatingArrayLoader;
-use Composer\Package\Loader\InvalidPackageException;
-use Composer\Json\JsonValidationException;
-use Composer\IO\IOInterface;
-use Composer\Json\JsonFile;
-use Composer\Spdx\SpdxLicenses;
-
-
-
-
-
-
-
-class ConfigValidator
-{
-private $io;
-
-public function __construct(IOInterface $io)
-{
-$this->io = $io;
-}
-
-
-
-
-
-
-
-
-
-public function validate($file, $arrayLoaderValidationFlags = ValidatingArrayLoader::CHECK_ALL)
-{
-$errors = array();
-$publishErrors = array();
-$warnings = array();
-
-
- $laxValid = false;
-try {
-$json = new JsonFile($file, null, $this->io);
-$manifest = $json->read();
-
-$json->validateSchema(JsonFile::LAX_SCHEMA);
-$laxValid = true;
-$json->validateSchema();
-} catch (JsonValidationException $e) {
-foreach ($e->getErrors() as $message) {
-if ($laxValid) {
-$publishErrors[] = $message;
-} else {
-$errors[] = $message;
-}
-}
-} catch (\Exception $e) {
-$errors[] = $e->getMessage();
-
-return array($errors, $publishErrors, $warnings);
-}
-
-
- if (empty($manifest['license'])) {
-$warnings[] = 'No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.';
-} else {
-$licenses = (array) $manifest['license'];
-
-
- foreach ($licenses as $key => $license) {
-if ('proprietary' === $license) {
-unset($licenses[$key]);
-}
-}
-
-$licenseValidator = new SpdxLicenses();
-foreach ($licenses as $license) {
-$spdxLicense = $licenseValidator->getLicenseByIdentifier($license);
-if ($spdxLicense && $spdxLicense[3]) {
-if (preg_match('{^[AL]?GPL-[123](\.[01])?\+$}i', $license)) {
-$warnings[] = sprintf(
-'License "%s" is a deprecated SPDX license identifier, use "'.str_replace('+', '', $license).'-or-later" instead',
-$license
-);
-} elseif (preg_match('{^[AL]?GPL-[123](\.[01])?$}i', $license)) {
-$warnings[] = sprintf(
-'License "%s" is a deprecated SPDX license identifier, use "'.$license.'-only" or "'.$license.'-or-later" instead',
-$license
-);
-} else {
-$warnings[] = sprintf(
-'License "%s" is a deprecated SPDX license identifier, see https://spdx.org/licenses/',
-$license
-);
-}
-}
-}
-}
-
-if (isset($manifest['version'])) {
-$warnings[] = 'The version field is present, it is recommended to leave it out if the package is published on Packagist.';
-}
-
-if (!empty($manifest['name']) && preg_match('{[A-Z]}', $manifest['name'])) {
-$suggestName = preg_replace('{(?:([a-z])([A-Z])|([A-Z])([A-Z][a-z]))}', '\\1\\3-\\2\\4', $manifest['name']);
-$suggestName = strtolower($suggestName);
-
-$publishErrors[] = sprintf(
-'Name "%s" does not match the best practice (e.g. lower-cased/with-dashes). We suggest using "%s" instead. As such you will not be able to submit it to Packagist.',
-$manifest['name'],
-$suggestName
-);
-}
-
-if (!empty($manifest['type']) && $manifest['type'] == 'composer-installer') {
-$warnings[] = "The package type 'composer-installer' is deprecated. Please distribute your custom installers as plugins from now on. See https://getcomposer.org/doc/articles/plugins.md for plugin documentation.";
-}
-
-
- if (isset($manifest['require']) && isset($manifest['require-dev'])) {
-$requireOverrides = array_intersect_key($manifest['require'], $manifest['require-dev']);
-
-if (!empty($requireOverrides)) {
-$plural = (count($requireOverrides) > 1) ? 'are' : 'is';
-$warnings[] = implode(', ', array_keys($requireOverrides)). " {$plural} required both in require and require-dev, this can lead to unexpected behavior";
-}
-}
-
-
- $require = isset($manifest['require']) ? $manifest['require'] : array();
-$requireDev = isset($manifest['require-dev']) ? $manifest['require-dev'] : array();
-$packages = array_merge($require, $requireDev);
-foreach ($packages as $package => $version) {
-if (preg_match('/#/', $version) === 1) {
-$warnings[] = sprintf(
-'The package "%s" is pointing to a commit-ref, this is bad practice and can cause unforeseen issues.',
-$package
-);
-}
-}
-
-
- $scriptsDescriptions = isset($manifest['scripts-descriptions']) ? $manifest['scripts-descriptions'] : array();
-$scripts = isset($manifest['scripts']) ? $manifest['scripts'] : array();
-foreach ($scriptsDescriptions as $scriptName => $scriptDescription) {
-if (!array_key_exists($scriptName, $scripts)) {
-$warnings[] = sprintf(
-'Description for non-existent script "%s" found in "scripts-descriptions"',
-$scriptName
-);
-}
-}
-
-
- if (isset($manifest['autoload']['psr-0'][''])) {
-$warnings[] = "Defining autoload.psr-0 with an empty namespace prefix is a bad idea for performance";
-}
-if (isset($manifest['autoload']['psr-4'][''])) {
-$warnings[] = "Defining autoload.psr-4 with an empty namespace prefix is a bad idea for performance";
-}
-
-try {
-$loader = new ValidatingArrayLoader(new ArrayLoader(), true, null, $arrayLoaderValidationFlags);
-if (!isset($manifest['version'])) {
-$manifest['version'] = '1.0.0';
-}
-if (!isset($manifest['name'])) {
-$manifest['name'] = 'dummy/dummy';
-}
-$loader->load($manifest);
-} catch (InvalidPackageException $e) {
-$errors = array_merge($errors, $e->getErrors());
-}
-
-$warnings = array_merge($warnings, $loader->getWarnings());
-
-return array($errors, $publishErrors, $warnings);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Util;
-
-use Composer\IO\IOInterface;
-
-
-
-
-
-
-class ErrorHandler
-{
-private static $io;
-
-
-
-
-
-
-
-
-
-
-
-
-public static function handle($level, $message, $file, $line)
-{
-
- if (!(error_reporting() & $level)) {
-return;
-}
-
-if (filter_var(ini_get('xdebug.scream'), FILTER_VALIDATE_BOOLEAN)) {
-$message .= "\n\nWarning: You have xdebug.scream enabled, the warning above may be".
-"\na legitimately suppressed error that you were not supposed to see.";
-}
-
-if ($level !== E_DEPRECATED && $level !== E_USER_DEPRECATED) {
-throw new \ErrorException($message, 0, $level, $file, $line);
-}
-
-if (self::$io) {
-self::$io->writeError('<warning>Deprecation Notice: '.$message.' in '.$file.':'.$line.'</warning>');
-if (self::$io->isVerbose()) {
-self::$io->writeError('<warning>Stack trace:</warning>');
-self::$io->writeError(array_filter(array_map(function ($a) {
-if (isset($a['line'], $a['file'])) {
-return '<warning> '.$a['file'].':'.$a['line'].'</warning>';
-}
-
-return null;
-}, array_slice(debug_backtrace(), 2))));
-}
-}
-}
-
-
-
-
-
-
-public static function register(IOInterface $io = null)
-{
-set_error_handler(array(__CLASS__, 'handle'));
-error_reporting(E_ALL | E_STRICT);
-self::$io = $io;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Util;
-
-use RecursiveDirectoryIterator;
-use RecursiveIteratorIterator;
-use Symfony\Component\Filesystem\Exception\IOException;
-use Symfony\Component\Finder\Finder;
-
-
-
-
-
-class Filesystem
-{
-private $processExecutor;
-
-public function __construct(ProcessExecutor $executor = null)
-{
-$this->processExecutor = $executor ?: new ProcessExecutor();
-}
-
-public function remove($file)
-{
-if (is_dir($file)) {
-return $this->removeDirectory($file);
-}
-
-if (file_exists($file)) {
-return $this->unlink($file);
-}
-
-return false;
-}
-
-
-
-
-
-
-
-public function isDirEmpty($dir)
-{
-$finder = Finder::create()
-->ignoreVCS(false)
-->ignoreDotFiles(false)
-->depth(0)
-->in($dir);
-
-return count($finder) === 0;
-}
-
-public function emptyDirectory($dir, $ensureDirectoryExists = true)
-{
-if (file_exists($dir) && is_link($dir)) {
-$this->unlink($dir);
-}
-
-if ($ensureDirectoryExists) {
-$this->ensureDirectoryExists($dir);
-}
-
-if (is_dir($dir)) {
-$finder = Finder::create()
-->ignoreVCS(false)
-->ignoreDotFiles(false)
-->depth(0)
-->in($dir);
-
-foreach ($finder as $path) {
-$this->remove((string) $path);
-}
-}
-}
-
-
-
-
-
-
-
-
-
-
-
-public function removeDirectory($directory)
-{
-if ($this->isSymlinkedDirectory($directory)) {
-return $this->unlinkSymlinkedDirectory($directory);
-}
-
-if ($this->isJunction($directory)) {
-return $this->removeJunction($directory);
-}
-
-if (is_link($directory)) {
-return unlink($directory);
-}
-
-if (!file_exists($directory) || !is_dir($directory)) {
-return true;
-}
-
-if (preg_match('{^(?:[a-z]:)?[/\\\\]+$}i', $directory)) {
-throw new \RuntimeException('Aborting an attempted deletion of '.$directory.', this was probably not intended, if it is a real use case please report it.');
-}
-
-if (!function_exists('proc_open')) {
-return $this->removeDirectoryPhp($directory);
-}
-
-if (Platform::isWindows()) {
-$cmd = sprintf('rmdir /S /Q %s', ProcessExecutor::escape(realpath($directory)));
-} else {
-$cmd = sprintf('rm -rf %s', ProcessExecutor::escape($directory));
-}
-
-$result = $this->getProcess()->execute($cmd, $output) === 0;
-
-
- clearstatcache();
-
-if ($result && !file_exists($directory)) {
-return true;
-}
-
-return $this->removeDirectoryPhp($directory);
-}
-
-
-
-
-
-
-
-
-
-
-
-public function removeDirectoryPhp($directory)
-{
-try {
-$it = new RecursiveDirectoryIterator($directory, RecursiveDirectoryIterator::SKIP_DOTS);
-} catch (\UnexpectedValueException $e) {
-
- 
- clearstatcache();
-usleep(100000);
-if (!is_dir($directory)) {
-return true;
-}
-$it = new RecursiveDirectoryIterator($directory, RecursiveDirectoryIterator::SKIP_DOTS);
-}
-$ri = new RecursiveIteratorIterator($it, RecursiveIteratorIterator::CHILD_FIRST);
-
-foreach ($ri as $file) {
-if ($file->isDir()) {
-$this->rmdir($file->getPathname());
-} else {
-$this->unlink($file->getPathname());
-}
-}
-
-return $this->rmdir($directory);
-}
-
-public function ensureDirectoryExists($directory)
-{
-if (!is_dir($directory)) {
-if (file_exists($directory)) {
-throw new \RuntimeException(
-$directory.' exists and is not a directory.'
-);
-}
-if (!@mkdir($directory, 0777, true)) {
-throw new \RuntimeException(
-$directory.' does not exist and could not be created.'
-);
-}
-}
-}
-
-
-
-
-
-
-
-
-public function unlink($path)
-{
-if (!@$this->unlinkImplementation($path)) {
-
- if (!Platform::isWindows() || (usleep(350000) && !@$this->unlinkImplementation($path))) {
-$error = error_get_last();
-$message = 'Could not delete '.$path.': ' . @$error['message'];
-if (Platform::isWindows()) {
-$message .= "\nThis can be due to an antivirus or the Windows Search Indexer locking the file while they are analyzed";
-}
-
-throw new \RuntimeException($message);
-}
-}
-
-return true;
-}
-
-
-
-
-
-
-
-
-public function rmdir($path)
-{
-if (!@rmdir($path)) {
-
- if (!Platform::isWindows() || (usleep(350000) && !@rmdir($path))) {
-$error = error_get_last();
-$message = 'Could not delete '.$path.': ' . @$error['message'];
-if (Platform::isWindows()) {
-$message .= "\nThis can be due to an antivirus or the Windows Search Indexer locking the file while they are analyzed";
-}
-
-throw new \RuntimeException($message);
-}
-}
-
-return true;
-}
-
-
-
-
-
-
-
-
-
-
-public function copyThenRemove($source, $target)
-{
-$this->copy($source, $target);
-if (!is_dir($source)) {
-$this->unlink($source);
-
-return;
-}
-
-$this->removeDirectoryPhp($source);
-}
-
-
-
-
-
-
-
-
-public function copy($source, $target)
-{
-if (!is_dir($source)) {
-return copy($source, $target);
-}
-
-$it = new RecursiveDirectoryIterator($source, RecursiveDirectoryIterator::SKIP_DOTS);
-$ri = new RecursiveIteratorIterator($it, RecursiveIteratorIterator::SELF_FIRST);
-$this->ensureDirectoryExists($target);
-
-$result = true;
-foreach ($ri as $file) {
-$targetPath = $target . DIRECTORY_SEPARATOR . $ri->getSubPathName();
-if ($file->isDir()) {
-$this->ensureDirectoryExists($targetPath);
-} else {
-$result = $result && copy($file->getPathname(), $targetPath);
-}
-}
-
-return $result;
-}
-
-public function rename($source, $target)
-{
-if (true === @rename($source, $target)) {
-return;
-}
-
-if (!function_exists('proc_open')) {
-return $this->copyThenRemove($source, $target);
-}
-
-if (Platform::isWindows()) {
-
- $command = sprintf('xcopy %s %s /E /I /Q /Y', ProcessExecutor::escape($source), ProcessExecutor::escape($target));
-$result = $this->processExecutor->execute($command, $output);
-
-
- clearstatcache();
-
-if (0 === $result) {
-$this->remove($source);
-
-return;
-}
-} else {
-
- 
- $command = sprintf('mv %s %s', ProcessExecutor::escape($source), ProcessExecutor::escape($target));
-$result = $this->processExecutor->execute($command, $output);
-
-
- clearstatcache();
-
-if (0 === $result) {
-return;
-}
-}
-
-return $this->copyThenRemove($source, $target);
-}
-
-
-
-
-
-
-
-
-
-
-public function findShortestPath($from, $to, $directories = false)
-{
-if (!$this->isAbsolutePath($from) || !$this->isAbsolutePath($to)) {
-throw new \InvalidArgumentException(sprintf('$from (%s) and $to (%s) must be absolute paths.', $from, $to));
-}
-
-$from = lcfirst($this->normalizePath($from));
-$to = lcfirst($this->normalizePath($to));
-
-if ($directories) {
-$from = rtrim($from, '/') . '/dummy_file';
-}
-
-if (dirname($from) === dirname($to)) {
-return './'.basename($to);
-}
-
-$commonPath = $to;
-while (strpos($from.'/', $commonPath.'/') !== 0 && '/' !== $commonPath && !preg_match('{^[a-z]:/?$}i', $commonPath)) {
-$commonPath = strtr(dirname($commonPath), '\\', '/');
-}
-
-if (0 !== strpos($from, $commonPath) || '/' === $commonPath) {
-return $to;
-}
-
-$commonPath = rtrim($commonPath, '/') . '/';
-$sourcePathDepth = substr_count(substr($from, strlen($commonPath)), '/');
-$commonPathCode = str_repeat('../', $sourcePathDepth);
-
-return ($commonPathCode . substr($to, strlen($commonPath))) ?: './';
-}
-
-
-
-
-
-
-
-
-
-
-
-public function findShortestPathCode($from, $to, $directories = false, $staticCode = false)
-{
-if (!$this->isAbsolutePath($from) || !$this->isAbsolutePath($to)) {
-throw new \InvalidArgumentException(sprintf('$from (%s) and $to (%s) must be absolute paths.', $from, $to));
-}
-
-$from = lcfirst($this->normalizePath($from));
-$to = lcfirst($this->normalizePath($to));
-
-if ($from === $to) {
-return $directories ? '__DIR__' : '__FILE__';
-}
-
-$commonPath = $to;
-while (strpos($from.'/', $commonPath.'/') !== 0 && '/' !== $commonPath && !preg_match('{^[a-z]:/?$}i', $commonPath) && '.' !== $commonPath) {
-$commonPath = strtr(dirname($commonPath), '\\', '/');
-}
-
-if (0 !== strpos($from, $commonPath) || '/' === $commonPath || '.' === $commonPath) {
-return var_export($to, true);
-}
-
-$commonPath = rtrim($commonPath, '/') . '/';
-if (strpos($to, $from.'/') === 0) {
-return '__DIR__ . '.var_export(substr($to, strlen($from)), true);
-}
-$sourcePathDepth = substr_count(substr($from, strlen($commonPath)), '/') + $directories;
-if ($staticCode) {
-$commonPathCode = "__DIR__ . '".str_repeat('/..', $sourcePathDepth)."'";
-} else {
-$commonPathCode = str_repeat('dirname(', $sourcePathDepth).'__DIR__'.str_repeat(')', $sourcePathDepth);
-}
-$relTarget = substr($to, strlen($commonPath));
-
-return $commonPathCode . (strlen($relTarget) ? '.' . var_export('/' . $relTarget, true) : '');
-}
-
-
-
-
-
-
-
-public function isAbsolutePath($path)
-{
-return substr($path, 0, 1) === '/' || substr($path, 1, 1) === ':';
-}
-
-
-
-
-
-
-
-
-
-public function size($path)
-{
-if (!file_exists($path)) {
-throw new \RuntimeException("$path does not exist.");
-}
-if (is_dir($path)) {
-return $this->directorySize($path);
-}
-
-return filesize($path);
-}
-
-
-
-
-
-
-
-
-public function normalizePath($path)
-{
-$parts = array();
-$path = strtr($path, '\\', '/');
-$prefix = '';
-$absolute = false;
-
-
- if (preg_match('{^( [0-9a-z]{2,}+: (?: // (?: [a-z]: )? )? | [a-z]: )}ix', $path, $match)) {
-$prefix = $match[1];
-$path = substr($path, strlen($prefix));
-}
-
-if (substr($path, 0, 1) === '/') {
-$absolute = true;
-$path = substr($path, 1);
-}
-
-$up = false;
-foreach (explode('/', $path) as $chunk) {
-if ('..' === $chunk && ($absolute || $up)) {
-array_pop($parts);
-$up = !(empty($parts) || '..' === end($parts));
-} elseif ('.' !== $chunk && '' !== $chunk) {
-$parts[] = $chunk;
-$up = '..' !== $chunk;
-}
-}
-
-return $prefix.($absolute ? '/' : '').implode('/', $parts);
-}
-
-
-
-
-
-
-
-public static function isLocalPath($path)
-{
-return (bool) preg_match('{^(file://(?!//)|/(?!/)|/?[a-z]:[\\\\/]|\.\.[\\\\/]|[a-z0-9_.-]+[\\\\/])}i', $path);
-}
-
-public static function getPlatformPath($path)
-{
-if (Platform::isWindows()) {
-$path = preg_replace('{^(?:file:///([a-z]):?/)}i', 'file://$1:/', $path);
-}
-
-return preg_replace('{^file://}i', '', $path);
-}
-
-protected function directorySize($directory)
-{
-$it = new RecursiveDirectoryIterator($directory, RecursiveDirectoryIterator::SKIP_DOTS);
-$ri = new RecursiveIteratorIterator($it, RecursiveIteratorIterator::CHILD_FIRST);
-
-$size = 0;
-foreach ($ri as $file) {
-if ($file->isFile()) {
-$size += $file->getSize();
-}
-}
-
-return $size;
-}
-
-protected function getProcess()
-{
-return $this->processExecutor;
-}
-
-
-
-
-
-
-
-
-
-
-private function unlinkImplementation($path)
-{
-if (Platform::isWindows() && is_dir($path) && is_link($path)) {
-return rmdir($path);
-}
-
-return unlink($path);
-}
-
-
-
-
-
-
-
-
-public function relativeSymlink($target, $link)
-{
-$cwd = getcwd();
-
-$relativePath = $this->findShortestPath($link, $target);
-chdir(dirname($link));
-$result = @symlink($relativePath, $link);
-
-chdir($cwd);
-
-return $result;
-}
-
-
-
-
-
-
-
-
-public function isSymlinkedDirectory($directory)
-{
-if (!is_dir($directory)) {
-return false;
-}
-
-$resolved = $this->resolveSymlinkedDirectorySymlink($directory);
-
-return is_link($resolved);
-}
-
-
-
-
-
-
-private function unlinkSymlinkedDirectory($directory)
-{
-$resolved = $this->resolveSymlinkedDirectorySymlink($directory);
-
-return $this->unlink($resolved);
-}
-
-
-
-
-
-
-
-
-private function resolveSymlinkedDirectorySymlink($pathname)
-{
-if (!is_dir($pathname)) {
-return $pathname;
-}
-
-$resolved = rtrim($pathname, '/');
-
-if (!strlen($resolved)) {
-return $pathname;
-}
-
-return $resolved;
-}
-
-
-
-
-
-
-
-public function junction($target, $junction)
-{
-if (!Platform::isWindows()) {
-throw new \LogicException(sprintf('Function %s is not available on non-Windows platform', __CLASS__));
-}
-if (!is_dir($target)) {
-throw new IOException(sprintf('Cannot junction to "%s" as it is not a directory.', $target), 0, null, $target);
-}
-$cmd = sprintf(
-'mklink /J %s %s',
-ProcessExecutor::escape(str_replace('/', DIRECTORY_SEPARATOR, $junction)),
-ProcessExecutor::escape(realpath($target))
-);
-if ($this->getProcess()->execute($cmd, $output) !== 0) {
-throw new IOException(sprintf('Failed to create junction to "%s" at "%s".', $target, $junction), 0, null, $target);
-}
-clearstatcache(true, $junction);
-}
-
-
-
-
-
-
-
-public function isJunction($junction)
-{
-if (!Platform::isWindows()) {
-return false;
-}
-if (!is_dir($junction) || is_link($junction)) {
-return false;
-}
-
-
-
-
-
-
-
-
-
-
-
-clearstatcache(true, $junction);
-clearstatcache(false);
-$stat = lstat($junction);
-
-return !($stat['mode'] & 0xC000);
-}
-
-
-
-
-
-
-
-public function removeJunction($junction)
-{
-if (!Platform::isWindows()) {
-return false;
-}
-$junction = rtrim(str_replace('/', DIRECTORY_SEPARATOR, $junction), DIRECTORY_SEPARATOR);
-if (!$this->isJunction($junction)) {
-throw new IOException(sprintf('%s is not a junction and thus cannot be removed as one', $junction));
-}
-$cmd = sprintf('rmdir /S /Q %s', ProcessExecutor::escape($junction));
-clearstatcache(true, $junction);
-
-return ($this->getProcess()->execute($cmd, $output) === 0);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Util;
-
-use Composer\Config;
-use Composer\IO\IOInterface;
-
-
-
-
-class Git
-{
-private static $version;
-
-
-protected $io;
-
-protected $config;
-
-protected $process;
-
-protected $filesystem;
-
-public function __construct(IOInterface $io, Config $config, ProcessExecutor $process, Filesystem $fs)
-{
-$this->io = $io;
-$this->config = $config;
-$this->process = $process;
-$this->filesystem = $fs;
-}
-
-public function runCommand($commandCallable, $url, $cwd, $initialClone = false)
-{
-
- $this->config->prohibitUrlByConfig($url, $this->io);
-
-if ($initialClone) {
-$origCwd = $cwd;
-$cwd = null;
-}
-
-if (preg_match('{^ssh://[^@]+@[^:]+:[^0-9]+}', $url)) {
-throw new \InvalidArgumentException('The source URL ' . $url . ' is invalid, ssh URLs should have a port number after ":".' . "\n" . 'Use ssh://git@example.com:22/path or just git@example.com:path if you do not want to provide a password or custom port.');
-}
-
-if (!$initialClone) {
-
- $this->process->execute('git remote -v', $output, $cwd);
-if (preg_match('{^(?:composer|origin)\s+https?://(.+):(.+)@([^/]+)}im', $output, $match)) {
-$this->io->setAuthentication($match[3], rawurldecode($match[1]), rawurldecode($match[2]));
-}
-}
-
-$protocols = $this->config->get('github-protocols');
-if (!is_array($protocols)) {
-throw new \RuntimeException('Config value "github-protocols" must be an array, got ' . gettype($protocols));
-}
-
- if (preg_match('{^(?:https?|git)://' . self::getGitHubDomainsRegex($this->config) . '/(.*)}', $url, $match)) {
-$messages = array();
-foreach ($protocols as $protocol) {
-if ('ssh' === $protocol) {
-$protoUrl = "git@" . $match[1] . ":" . $match[2];
-} else {
-$protoUrl = $protocol . "://" . $match[1] . "/" . $match[2];
-}
-
-if (0 === $this->process->execute(call_user_func($commandCallable, $protoUrl), $ignoredOutput, $cwd)) {
-return;
-}
-$messages[] = '- ' . $protoUrl . "\n" . preg_replace('#^#m', '  ', $this->process->getErrorOutput());
-if ($initialClone) {
-$this->filesystem->removeDirectory($origCwd);
-}
-}
-
-
- $this->throwException('Failed to clone ' . $url . ' via ' . implode(', ', $protocols) . ' protocols, aborting.' . "\n\n" . implode("\n", $messages), $url);
-}
-
-
- $bypassSshForGitHub = preg_match('{^git@' . self::getGitHubDomainsRegex($this->config) . ':(.+?)\.git$}i', $url) && !in_array('ssh', $protocols, true);
-
-$command = call_user_func($commandCallable, $url);
-
-$auth = null;
-if ($bypassSshForGitHub || 0 !== $this->process->execute($command, $ignoredOutput, $cwd)) {
-
- if (preg_match('{^git@' . self::getGitHubDomainsRegex($this->config) . ':(.+?)\.git$}i', $url, $match)) {
-if (!$this->io->hasAuthentication($match[1])) {
-$gitHubUtil = new GitHub($this->io, $this->config, $this->process);
-$message = 'Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos';
-
-if (!$gitHubUtil->authorizeOAuth($match[1]) && $this->io->isInteractive()) {
-$gitHubUtil->authorizeOAuthInteractively($match[1], $message);
-}
-}
-
-if ($this->io->hasAuthentication($match[1])) {
-$auth = $this->io->getAuthentication($match[1]);
-$authUrl = 'https://' . rawurlencode($auth['username']) . ':' . rawurlencode($auth['password']) . '@' . $match[1] . '/' . $match[2] . '.git';
-$command = call_user_func($commandCallable, $authUrl);
-if (0 === $this->process->execute($command, $ignoredOutput, $cwd)) {
-return;
-}
-}
-} elseif (preg_match('{^https://(bitbucket\.org)/(.*)(\.git)?$}U', $url, $match)) { 
- $bitbucketUtil = new Bitbucket($this->io, $this->config, $this->process);
-
-if (!$this->io->hasAuthentication($match[1])) {
-$message = 'Enter your Bitbucket credentials to access private repos';
-
-if (!$bitbucketUtil->authorizeOAuth($match[1]) && $this->io->isInteractive()) {
-$bitbucketUtil->authorizeOAuthInteractively($match[1], $message);
-$accessToken = $bitbucketUtil->getToken();
-$this->io->setAuthentication($match[1], 'x-token-auth', $accessToken);
-}
-} else { 
- $auth = $this->io->getAuthentication($match[1]);
-
-
- if ($auth['username'] !== 'x-token-auth') {
-$accessToken = $bitbucketUtil->requestToken($match[1], $auth['username'], $auth['password']);
-if (! empty($accessToken)) {
-$this->io->setAuthentication($match[1], 'x-token-auth', $accessToken);
-}
-}
-}
-
-if ($this->io->hasAuthentication($match[1])) {
-$auth = $this->io->getAuthentication($match[1]);
-$authUrl = 'https://' . rawurlencode($auth['username']) . ':' . rawurlencode($auth['password']) . '@' . $match[1] . '/' . $match[2] . '.git';
-
-$command = call_user_func($commandCallable, $authUrl);
-if (0 === $this->process->execute($command, $ignoredOutput, $cwd)) {
-return;
-}
-} else { 
- $sshUrl = 'git@bitbucket.org:' . $match[2] . '.git';
-$this->io->writeError('    No bitbucket authentication configured. Falling back to ssh.');
-$command = call_user_func($commandCallable, $sshUrl);
-if (0 === $this->process->execute($command, $ignoredOutput, $cwd)) {
-return;
-}
-}
-} elseif ($this->isAuthenticationFailure($url, $match)) { 
- if (strpos($match[2], '@')) {
-list($authParts, $match[2]) = explode('@', $match[2], 2);
-}
-
-$storeAuth = false;
-if ($this->io->hasAuthentication($match[2])) {
-$auth = $this->io->getAuthentication($match[2]);
-} elseif ($this->io->isInteractive()) {
-$defaultUsername = null;
-if (isset($authParts) && $authParts) {
-if (false !== strpos($authParts, ':')) {
-list($defaultUsername, ) = explode(':', $authParts, 2);
-} else {
-$defaultUsername = $authParts;
-}
-}
-
-$this->io->writeError('    Authentication required (<info>' . parse_url($url, PHP_URL_HOST) . '</info>):');
-$auth = array(
-'username' => $this->io->ask('      Username: ', $defaultUsername),
-'password' => $this->io->askAndHideAnswer('      Password: '),
-);
-$storeAuth = $this->config->get('store-auths');
-}
-
-if ($auth) {
-$authUrl = $match[1] . rawurlencode($auth['username']) . ':' . rawurlencode($auth['password']) . '@' . $match[2] . $match[3];
-
-$command = call_user_func($commandCallable, $authUrl);
-if (0 === $this->process->execute($command, $ignoredOutput, $cwd)) {
-$this->io->setAuthentication($match[2], $auth['username'], $auth['password']);
-$authHelper = new AuthHelper($this->io, $this->config);
-$authHelper->storeAuth($match[2], $storeAuth);
-
-return;
-}
-}
-}
-
-if ($initialClone) {
-$this->filesystem->removeDirectory($origCwd);
-}
-$this->throwException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput(), $url);
-}
-}
-
-public function syncMirror($url, $dir)
-{
-
- if (is_dir($dir) && 0 === $this->process->execute('git rev-parse --git-dir', $output, $dir) && trim($output) === '.') {
-try {
-$commandCallable = function ($url) {
-return sprintf('git remote set-url origin %s && git remote update --prune origin', ProcessExecutor::escape($url));
-};
-$this->runCommand($commandCallable, $url, $dir);
-} catch (\Exception $e) {
-return false;
-}
-
-return true;
-}
-
-
- $this->filesystem->removeDirectory($dir);
-
-$commandCallable = function ($url) use ($dir) {
-return sprintf('git clone --mirror %s %s', ProcessExecutor::escape($url), ProcessExecutor::escape($dir));
-};
-
-$this->runCommand($commandCallable, $url, $dir, true);
-
-return true;
-}
-
-public function fetchRefOrSyncMirror($url, $dir, $ref)
-{
-if (is_dir($dir) && 0 === $this->process->execute('git rev-parse --git-dir', $output, $dir) && trim($output) === '.') {
-$escapedRef = ProcessExecutor::escape($ref.'^{commit}');
-$exitCode = $this->process->execute(sprintf('git rev-parse --quiet --verify %s', $escapedRef), $output, $dir);
-if ($exitCode === 0) {
-return true;
-}
-}
-
-$this->syncMirror($url, $dir);
-
-return false;
-}
-
-private function isAuthenticationFailure($url, &$match)
-{
-if (!preg_match('{^(https?://)([^/]+)(.*)$}i', $url, $match)) {
-return false;
-}
-
-$authFailures = array(
-'fatal: Authentication failed',
-'remote error: Invalid username or password.',
-'error: 401 Unauthorized',
-'fatal: unable to access',
-'fatal: could not read Username',
-);
-
-$errorOutput = $this->process->getErrorOutput();
-foreach ($authFailures as $authFailure) {
-if (strpos($errorOutput, $authFailure) !== false) {
-return true;
-}
-}
-
-return false;
-}
-
-public static function cleanEnv()
-{
-if (PHP_VERSION_ID < 50400 && ini_get('safe_mode') && false === strpos(ini_get('safe_mode_allowed_env_vars'), 'GIT_ASKPASS')) {
-throw new \RuntimeException('safe_mode is enabled and safe_mode_allowed_env_vars does not contain GIT_ASKPASS, can not set env var. You can disable safe_mode with "-dsafe_mode=0" when running composer');
-}
-
-
- if (getenv('GIT_ASKPASS') !== 'echo') {
-putenv('GIT_ASKPASS=echo');
-unset($_SERVER['GIT_ASKPASS']);
-}
-
-
- if (getenv('GIT_DIR')) {
-putenv('GIT_DIR');
-unset($_SERVER['GIT_DIR']);
-}
-if (getenv('GIT_WORK_TREE')) {
-putenv('GIT_WORK_TREE');
-unset($_SERVER['GIT_WORK_TREE']);
-}
-
-
- if (getenv('LANGUAGE') !== 'C') {
-putenv('LANGUAGE=C');
-}
-
-
- putenv("DYLD_LIBRARY_PATH");
-unset($_SERVER['DYLD_LIBRARY_PATH']);
-}
-
-public static function getGitHubDomainsRegex(Config $config)
-{
-return '(' . implode('|', array_map('preg_quote', $config->get('github-domains'))) . ')';
-}
-
-public static function sanitizeUrl($message)
-{
-return preg_replace_callback('{://(?P<user>[^@]+?):(?P<password>.+?)@}', function ($m) {
-if (preg_match('{^[a-f0-9]{12,}$}', $m[1])) {
-return '://***:***@';
-}
-
-return '://' . $m[1] . ':***@';
-}, $message);
-}
-
-private function throwException($message, $url)
-{
-
- clearstatcache();
-
-if (0 !== $this->process->execute('git --version', $ignoredOutput)) {
-throw new \RuntimeException(self::sanitizeUrl('Failed to clone ' . $url . ', git was not found, check that it is installed and in your PATH env.' . "\n\n" . $this->process->getErrorOutput()));
-}
-
-throw new \RuntimeException(self::sanitizeUrl($message));
-}
-
-
-
-
-
-
-public function getVersion()
-{
-if (isset(self::$version)) {
-return self::$version;
-}
-if (0 !== $this->process->execute('git --version', $output)) {
-return;
-}
-if (preg_match('/^git version (\d+(?:\.\d+)+)/m', $output, $matches)) {
-return self::$version = $matches[1];
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Util;
-
-use Composer\Factory;
-use Composer\IO\IOInterface;
-use Composer\Config;
-use Composer\Downloader\TransportException;
-
-
-
-
-class GitHub
-{
-protected $io;
-protected $config;
-protected $process;
-protected $remoteFilesystem;
-
-
-
-
-
-
-
-
-
-public function __construct(IOInterface $io, Config $config, ProcessExecutor $process = null, RemoteFilesystem $remoteFilesystem = null)
-{
-$this->io = $io;
-$this->config = $config;
-$this->process = $process ?: new ProcessExecutor($io);
-$this->remoteFilesystem = $remoteFilesystem ?: Factory::createRemoteFilesystem($this->io, $config);
-}
-
-
-
-
-
-
-
-public function authorizeOAuth($originUrl)
-{
-if (!in_array($originUrl, $this->config->get('github-domains'))) {
-return false;
-}
-
-
- if (0 === $this->process->execute('git config github.accesstoken', $output)) {
-$this->io->setAuthentication($originUrl, trim($output), 'x-oauth-basic');
-
-return true;
-}
-
-return false;
-}
-
-
-
-
-
-
-
-
-
-
-public function authorizeOAuthInteractively($originUrl, $message = null)
-{
-if ($message) {
-$this->io->writeError($message);
-}
-
-$note = 'Composer';
-if ($this->config->get('github-expose-hostname') === true && 0 === $this->process->execute('hostname', $output)) {
-$note .= ' on ' . trim($output);
-}
-$note .= ' ' . date('Y-m-d Hi');
-
-$url = 'https://'.$originUrl.'/settings/tokens/new?scopes=repo&description=' . str_replace('%20', '+', rawurlencode($note));
-$this->io->writeError(sprintf('Head to %s', $url));
-$this->io->writeError(sprintf('to retrieve a token. It will be stored in "%s" for future use by Composer.', $this->config->getAuthConfigSource()->getName()));
-
-$token = trim($this->io->askAndHideAnswer('Token (hidden): '));
-
-if (!$token) {
-$this->io->writeError('<warning>No token given, aborting.</warning>');
-$this->io->writeError('You can also add it manually later by using "composer config --global --auth github-oauth.github.com <token>"');
-
-return false;
-}
-
-$this->io->setAuthentication($originUrl, $token, 'x-oauth-basic');
-
-try {
-$apiUrl = ('github.com' === $originUrl) ? 'api.github.com/' : $originUrl . '/api/v3/';
-
-$this->remoteFilesystem->getContents($originUrl, 'https://'. $apiUrl, false, array(
-'retry-auth-failure' => false,
-));
-} catch (TransportException $e) {
-if (in_array($e->getCode(), array(403, 401))) {
-$this->io->writeError('<error>Invalid token provided.</error>');
-$this->io->writeError('You can also add it manually later by using "composer config --global --auth github-oauth.github.com <token>"');
-
-return false;
-}
-
-throw $e;
-}
-
-
- $this->config->getConfigSource()->removeConfigSetting('github-oauth.'.$originUrl);
-$this->config->getAuthConfigSource()->addConfigSetting('github-oauth.'.$originUrl, $token);
-
-$this->io->writeError('<info>Token stored successfully.</info>');
-
-return true;
-}
-
-
-
-
-
-
-
-
-public function getRateLimit(array $headers)
-{
-$rateLimit = array(
-'limit' => '?',
-'reset' => '?',
-);
-
-foreach ($headers as $header) {
-$header = trim($header);
-if (false === strpos($header, 'X-RateLimit-')) {
-continue;
-}
-list($type, $value) = explode(':', $header, 2);
-switch ($type) {
-case 'X-RateLimit-Limit':
-$rateLimit['limit'] = (int) trim($value);
-break;
-case 'X-RateLimit-Reset':
-$rateLimit['reset'] = date('Y-m-d H:i:s', (int) trim($value));
-break;
-}
-}
-
-return $rateLimit;
-}
-
-
-
-
-
-
-
-
-public function isRateLimited(array $headers)
-{
-foreach ($headers as $header) {
-if (preg_match('{^X-RateLimit-Remaining: *0$}i', trim($header))) {
-return true;
-}
-}
-
-return false;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Util;
-
-use Composer\IO\IOInterface;
-use Composer\Config;
-use Composer\Factory;
-use Composer\Downloader\TransportException;
-use Composer\Json\JsonFile;
-
-
-
-
-class GitLab
-{
-protected $io;
-protected $config;
-protected $process;
-protected $remoteFilesystem;
-
-
-
-
-
-
-
-
-
-public function __construct(IOInterface $io, Config $config, ProcessExecutor $process = null, RemoteFilesystem $remoteFilesystem = null)
-{
-$this->io = $io;
-$this->config = $config;
-$this->process = $process ?: new ProcessExecutor($io);
-$this->remoteFilesystem = $remoteFilesystem ?: Factory::createRemoteFilesystem($this->io, $config);
-}
-
-
-
-
-
-
-
-
-public function authorizeOAuth($originUrl)
-{
-if (!in_array($originUrl, $this->config->get('gitlab-domains'), true)) {
-return false;
-}
-
-
- if (0 === $this->process->execute('git config gitlab.accesstoken', $output)) {
-$this->io->setAuthentication($originUrl, trim($output), 'oauth2');
-
-return true;
-}
-
-
- $authTokens = $this->config->get('gitlab-token');
-
-if (isset($authTokens[$originUrl])) {
-$this->io->setAuthentication($originUrl, $authTokens[$originUrl], 'private-token');
-
-return true;
-}
-
-return false;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function authorizeOAuthInteractively($scheme, $originUrl, $message = null)
-{
-if ($message) {
-$this->io->writeError($message);
-}
-
-$this->io->writeError(sprintf('A token will be created and stored in "%s", your password will never be stored', $this->config->getAuthConfigSource()->getName()));
-$this->io->writeError('To revoke access to this token you can visit '.$originUrl.'/profile/applications');
-
-$attemptCounter = 0;
-
-while ($attemptCounter++ < 5) {
-try {
-$response = $this->createToken($scheme, $originUrl);
-} catch (TransportException $e) {
-
- 
- if (in_array($e->getCode(), array(403, 401))) {
-if (401 === $e->getCode()) {
-$this->io->writeError('Bad credentials.');
-} else {
-$this->io->writeError('Maximum number of login attempts exceeded. Please try again later.');
-}
-
-$this->io->writeError('You can also manually create a personal token at '.$scheme.'://'.$originUrl.'/profile/personal_access_tokens');
-$this->io->writeError('Add it using "composer config --global --auth gitlab-token.'.$originUrl.' <token>"');
-
-continue;
-}
-
-throw $e;
-}
-
-$this->io->setAuthentication($originUrl, $response['access_token'], 'oauth2');
-
-
- $this->config->getAuthConfigSource()->addConfigSetting('gitlab-oauth.'.$originUrl, $response['access_token']);
-
-return true;
-}
-
-throw new \RuntimeException('Invalid GitLab credentials 5 times in a row, aborting.');
-}
-
-private function createToken($scheme, $originUrl)
-{
-$username = $this->io->ask('Username: ');
-$password = $this->io->askAndHideAnswer('Password: ');
-
-$headers = array('Content-Type: application/x-www-form-urlencoded');
-
-$apiUrl = $originUrl;
-$data = http_build_query(array(
-'username' => $username,
-'password' => $password,
-'grant_type' => 'password',
-), null, '&');
-$options = array(
-'retry-auth-failure' => false,
-'http' => array(
-'method' => 'POST',
-'header' => $headers,
-'content' => $data,
-),
-);
-
-$json = $this->remoteFilesystem->getContents($originUrl, $scheme.'://'.$apiUrl.'/oauth/token', false, $options);
-
-$this->io->writeError('Token successfully created');
-
-return JsonFile::parseJson($json);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Util;
-
-use Composer\Config;
-use Composer\IO\IOInterface;
-
-
-
-
-class Hg
-{
-
-
-
-private $io;
-
-
-
-
-private $config;
-
-
-
-
-private $process;
-
-public function __construct(IOInterface $io, Config $config, ProcessExecutor $process)
-{
-$this->io = $io;
-$this->config = $config;
-$this->process = $process;
-}
-
-public function runCommand($commandCallable, $url, $cwd)
-{
-$this->config->prohibitUrlByConfig($url, $this->io);
-
-
- $command = call_user_func($commandCallable, $url);
-
-if (0 === $this->process->execute($command, $ignoredOutput, $cwd)) {
-return;
-}
-
-
- if (preg_match('{^(https?)://((.+)(?:\:(.+))?@)?([^/]+)(/.*)?}mi', $url, $match) && $this->io->hasAuthentication($match[5])) {
-$auth = $this->io->getAuthentication($match[5]);
-$authenticatedUrl = $match[1] . '://' . rawurlencode($auth['username']) . ':' . rawurlencode($auth['password']) . '@' . $match[5] . (!empty($match[6]) ? $match[6] : null);
-
-$command = call_user_func($commandCallable, $authenticatedUrl);
-
-if (0 === $this->process->execute($command, $ignoredOutput, $cwd)) {
-return;
-}
-
-$error = $this->process->getErrorOutput();
-} else {
-$error = 'The given URL (' . $url . ') does not match the required format (http(s)://(username:password@)example.com/path-to-repository)';
-}
-
-$this->throwException('Failed to clone ' . $url . ', ' . "\n\n" . $error, $url);
-}
-
-public static function sanitizeUrl($message)
-{
-return preg_replace_callback('{://(?P<user>[^@]+?):(?P<password>.+?)@}', function ($m) {
-if (preg_match('{^[a-f0-9]{12,}$}', $m[1])) {
-return '://***:***@';
-}
-
-return '://' . $m[1] . ':***@';
-}, $message);
-}
-
-private function throwException($message, $url)
-{
-if (0 !== $this->process->execute('hg --version', $ignoredOutput)) {
-throw new \RuntimeException(self::sanitizeUrl('Failed to clone ' . $url . ', hg was not found, check that it is installed and in your PATH env.' . "\n\n" . $this->process->getErrorOutput()));
-}
-
-throw new \RuntimeException(self::sanitizeUrl($message));
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Util;
-
-use Composer\XdebugHandler\XdebugHandler;
-
-
-
-
-
-
-
-
-class IniHelper
-{
-
-
-
-
-
-
-
-
-public static function getAll()
-{
-return XdebugHandler::getAllIniFiles();
-}
-
-
-
-
-
-
-public static function getMessage()
-{
-$paths = self::getAll();
-
-if (empty($paths[0])) {
-array_shift($paths);
-}
-
-$ini = array_shift($paths);
-
-if (empty($ini)) {
-return 'A php.ini file does not exist. You will have to create one.';
-}
-
-if (!empty($paths)) {
-return 'Your command-line PHP is using multiple ini files. Run `php --ini` to show them.';
-}
-
-return 'The php.ini used by your command-line PHP is: '.$ini;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Util;
-
-
-
-
-class NoProxyPattern
-{
-
-
-
-protected $rules = array();
-
-
-
-
-public function __construct($pattern)
-{
-$this->rules = preg_split("/[\s,]+/", $pattern);
-}
-
-
-
-
-
-
-
-
-public function test($url)
-{
-$host = parse_url($url, PHP_URL_HOST);
-$port = parse_url($url, PHP_URL_PORT);
-
-if (empty($port)) {
-switch (parse_url($url, PHP_URL_SCHEME)) {
-case 'http':
-$port = 80;
-break;
-case 'https':
-$port = 443;
-break;
-}
-}
-
-foreach ($this->rules as $rule) {
-if ($rule == '*') {
-return true;
-}
-
-$match = false;
-
-list($ruleHost) = explode(':', $rule);
-list($base) = explode('/', $ruleHost);
-
-if (filter_var($base, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) {
-
-
-if (!isset($ip)) {
-$ip = gethostbyname($host);
-}
-
-if (strpos($ruleHost, '/') === false) {
-$match = $ip === $ruleHost;
-} else {
-
- 
- if ($ip === $host) {
-$match = false;
-} else {
-
- $match = self::inCIDRBlock($ruleHost, $ip);
-}
-}
-} else {
-
-
-$haystack = '.' . trim($host, '.') . '.';
-$needle = '.'. trim($ruleHost, '.') .'.';
-$match = stripos(strrev($haystack), strrev($needle)) === 0;
-}
-
-
- if ($match && strpos($rule, ':') !== false) {
-list(, $rulePort) = explode(':', $rule);
-if (!empty($rulePort) && $port != $rulePort) {
-$match = false;
-}
-}
-
-if ($match) {
-return true;
-}
-}
-
-return false;
-}
-
-
-
-
-
-
-
-
-
-
-
-private static function inCIDRBlock($cidr, $ip)
-{
-
- list($base, $bits) = explode('/', $cidr);
-
-
- list($a, $b, $c, $d) = explode('.', $base);
-
-
- $i = ($a << 24) + ($b << 16) + ($c << 8) + $d;
-$mask = $bits == 0 ? 0 : (~0 << (32 - $bits));
-
-
- $low = $i & $mask;
-
-
- $high = $i | (~$mask & 0xFFFFFFFF);
-
-
- list($a, $b, $c, $d) = explode('.', $ip);
-
-
- $check = ($a << 24) + ($b << 16) + ($c << 8) + $d;
-
-
- 
- return $check >= $low && $check <= $high;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Util;
-
-use Composer\IO\IOInterface;
-use Symfony\Component\Process\Process;
-
-
-
-
-class Perforce
-{
-protected $path;
-protected $p4Depot;
-protected $p4Client;
-protected $p4User;
-protected $p4Password;
-protected $p4Port;
-protected $p4Stream;
-protected $p4ClientSpec;
-protected $p4DepotType;
-protected $p4Branch;
-protected $process;
-protected $uniquePerforceClientName;
-protected $windowsFlag;
-protected $commandResult;
-
-protected $io;
-
-protected $filesystem;
-
-public function __construct($repoConfig, $port, $path, ProcessExecutor $process, $isWindows, IOInterface $io)
-{
-$this->windowsFlag = $isWindows;
-$this->p4Port = $port;
-$this->initializePath($path);
-$this->process = $process;
-$this->initialize($repoConfig);
-$this->io = $io;
-}
-
-public static function create($repoConfig, $port, $path, ProcessExecutor $process, IOInterface $io)
-{
-return new Perforce($repoConfig, $port, $path, $process, Platform::isWindows(), $io);
-}
-
-public static function checkServerExists($url, ProcessExecutor $processExecutor)
-{
-$output = null;
-
-return 0 === $processExecutor->execute('p4 -p ' . ProcessExecutor::escape($url) . ' info -s', $output);
-}
-
-public function initialize($repoConfig)
-{
-$this->uniquePerforceClientName = $this->generateUniquePerforceClientName();
-if (!$repoConfig) {
-return;
-}
-if (isset($repoConfig['unique_perforce_client_name'])) {
-$this->uniquePerforceClientName = $repoConfig['unique_perforce_client_name'];
-}
-
-if (isset($repoConfig['depot'])) {
-$this->p4Depot = $repoConfig['depot'];
-}
-if (isset($repoConfig['branch'])) {
-$this->p4Branch = $repoConfig['branch'];
-}
-if (isset($repoConfig['p4user'])) {
-$this->p4User = $repoConfig['p4user'];
-} else {
-$this->p4User = $this->getP4variable('P4USER');
-}
-if (isset($repoConfig['p4password'])) {
-$this->p4Password = $repoConfig['p4password'];
-}
-}
-
-public function initializeDepotAndBranch($depot, $branch)
-{
-if (isset($depot)) {
-$this->p4Depot = $depot;
-}
-if (isset($branch)) {
-$this->p4Branch = $branch;
-}
-}
-
-public function generateUniquePerforceClientName()
-{
-return gethostname() . "_" . time();
-}
-
-public function cleanupClientSpec()
-{
-$client = $this->getClient();
-$task = 'client -d ' . ProcessExecutor::escape($client);
-$useP4Client = false;
-$command = $this->generateP4Command($task, $useP4Client);
-$this->executeCommand($command);
-$clientSpec = $this->getP4ClientSpec();
-$fileSystem = $this->getFilesystem();
-$fileSystem->remove($clientSpec);
-}
-
-protected function executeCommand($command)
-{
-$this->commandResult = '';
-
-return $this->process->execute($command, $this->commandResult);
-}
-
-public function getClient()
-{
-if (!isset($this->p4Client)) {
-$cleanStreamName = str_replace(array('//', '/', '@'), array('', '_', ''), $this->getStream());
-$this->p4Client = 'composer_perforce_' . $this->uniquePerforceClientName . '_' . $cleanStreamName;
-}
-
-return $this->p4Client;
-}
-
-protected function getPath()
-{
-return $this->path;
-}
-
-public function initializePath($path)
-{
-$this->path = $path;
-$fs = $this->getFilesystem();
-$fs->ensureDirectoryExists($path);
-}
-
-protected function getPort()
-{
-return $this->p4Port;
-}
-
-public function setStream($stream)
-{
-$this->p4Stream = $stream;
-$index = strrpos($stream, '/');
-
- if ($index > 2) {
-$this->p4DepotType = 'stream';
-}
-}
-
-public function isStream()
-{
-return (strcmp($this->p4DepotType, 'stream') === 0);
-}
-
-public function getStream()
-{
-if (!isset($this->p4Stream)) {
-if ($this->isStream()) {
-$this->p4Stream = '//' . $this->p4Depot . '/' . $this->p4Branch;
-} else {
-$this->p4Stream = '//' . $this->p4Depot;
-}
-}
-
-return $this->p4Stream;
-}
-
-public function getStreamWithoutLabel($stream)
-{
-$index = strpos($stream, '@');
-if ($index === false) {
-return $stream;
-}
-
-return substr($stream, 0, $index);
-}
-
-public function getP4ClientSpec()
-{
-return $this->path . '/' . $this->getClient() . '.p4.spec';
-}
-
-public function getUser()
-{
-return $this->p4User;
-}
-
-public function setUser($user)
-{
-$this->p4User = $user;
-}
-
-public function queryP4User()
-{
-$this->getUser();
-if (strlen($this->p4User) > 0) {
-return;
-}
-$this->p4User = $this->getP4variable('P4USER');
-if (strlen($this->p4User) > 0) {
-return;
-}
-$this->p4User = $this->io->ask('Enter P4 User:');
-if ($this->windowsFlag) {
-$command = 'p4 set P4USER=' . $this->p4User;
-} else {
-$command = 'export P4USER=' . $this->p4User;
-}
-$this->executeCommand($command);
-}
-
-protected function getP4variable($name)
-{
-if ($this->windowsFlag) {
-$command = 'p4 set';
-$this->executeCommand($command);
-$result = trim($this->commandResult);
-$resArray = explode(PHP_EOL, $result);
-foreach ($resArray as $line) {
-$fields = explode('=', $line);
-if (strcmp($name, $fields[0]) == 0) {
-$index = strpos($fields[1], ' ');
-if ($index === false) {
-$value = $fields[1];
-} else {
-$value = substr($fields[1], 0, $index);
-}
-$value = trim($value);
-
-return $value;
-}
-}
-
-return null;
-}
-
-$command = 'echo $' . $name;
-$this->executeCommand($command);
-$result = trim($this->commandResult);
-
-return $result;
-}
-
-public function queryP4Password()
-{
-if (isset($this->p4Password)) {
-return $this->p4Password;
-}
-$password = $this->getP4variable('P4PASSWD');
-if (strlen($password) <= 0) {
-$password = $this->io->askAndHideAnswer('Enter password for Perforce user ' . $this->getUser() . ': ');
-}
-$this->p4Password = $password;
-
-return $password;
-}
-
-public function generateP4Command($command, $useClient = true)
-{
-$p4Command = 'p4 ';
-$p4Command .= '-u ' . $this->getUser() . ' ';
-if ($useClient) {
-$p4Command .= '-c ' . $this->getClient() . ' ';
-}
-$p4Command = $p4Command . '-p ' . $this->getPort() . ' ' . $command;
-
-return $p4Command;
-}
-
-public function isLoggedIn()
-{
-$command = $this->generateP4Command('login -s', false);
-$exitCode = $this->executeCommand($command);
-if ($exitCode) {
-$errorOutput = $this->process->getErrorOutput();
-$index = strpos($errorOutput, $this->getUser());
-if ($index === false) {
-$index = strpos($errorOutput, 'p4');
-if ($index === false) {
-return false;
-}
-throw new \Exception('p4 command not found in path: ' . $errorOutput);
-}
-throw new \Exception('Invalid user name: ' . $this->getUser());
-}
-
-return true;
-}
-
-public function connectClient()
-{
-$p4CreateClientCommand = $this->generateP4Command(
-'client -i < ' . str_replace(" ", "\\ ", $this->getP4ClientSpec())
-);
-$this->executeCommand($p4CreateClientCommand);
-}
-
-public function syncCodeBase($sourceReference)
-{
-$prevDir = getcwd();
-chdir($this->path);
-$p4SyncCommand = $this->generateP4Command('sync -f ');
-if (null !== $sourceReference) {
-$p4SyncCommand .= '@' . $sourceReference;
-}
-$this->executeCommand($p4SyncCommand);
-chdir($prevDir);
-}
-
-public function writeClientSpecToFile($spec)
-{
-fwrite($spec, 'Client: ' . $this->getClient() . PHP_EOL . PHP_EOL);
-fwrite($spec, 'Update: ' . date('Y/m/d H:i:s') . PHP_EOL . PHP_EOL);
-fwrite($spec, 'Access: ' . date('Y/m/d H:i:s') . PHP_EOL);
-fwrite($spec, 'Owner:  ' . $this->getUser() . PHP_EOL . PHP_EOL);
-fwrite($spec, 'Description:' . PHP_EOL);
-fwrite($spec, '  Created by ' . $this->getUser() . ' from composer.' . PHP_EOL . PHP_EOL);
-fwrite($spec, 'Root: ' . $this->getPath() . PHP_EOL . PHP_EOL);
-fwrite($spec, 'Options:  noallwrite noclobber nocompress unlocked modtime rmdir' . PHP_EOL . PHP_EOL);
-fwrite($spec, 'SubmitOptions:  revertunchanged' . PHP_EOL . PHP_EOL);
-fwrite($spec, 'LineEnd:  local' . PHP_EOL . PHP_EOL);
-if ($this->isStream()) {
-fwrite($spec, 'Stream:' . PHP_EOL);
-fwrite($spec, '  ' . $this->getStreamWithoutLabel($this->p4Stream) . PHP_EOL);
-} else {
-fwrite(
-$spec,
-'View:  ' . $this->getStream() . '/...  //' . $this->getClient() . '/... ' . PHP_EOL
-);
-}
-}
-
-public function writeP4ClientSpec()
-{
-$clientSpec = $this->getP4ClientSpec();
-$spec = fopen($clientSpec, 'w');
-try {
-$this->writeClientSpecToFile($spec);
-} catch (\Exception $e) {
-fclose($spec);
-throw $e;
-}
-fclose($spec);
-}
-
-protected function read($pipe, $name)
-{
-if (feof($pipe)) {
-return;
-}
-$line = fgets($pipe);
-while ($line !== false) {
-$line = fgets($pipe);
-}
-
-return;
-}
-
-public function windowsLogin($password)
-{
-$command = $this->generateP4Command(' login -a');
-$process = new Process($command, null, null, $password);
-
-return $process->run();
-}
-
-public function p4Login()
-{
-$this->queryP4User();
-if (!$this->isLoggedIn()) {
-$password = $this->queryP4Password();
-if ($this->windowsFlag) {
-$this->windowsLogin($password);
-} else {
-$command = 'echo ' . ProcessExecutor::escape($password) . ' | ' . $this->generateP4Command(' login -a', false);
-$exitCode = $this->executeCommand($command);
-$result = trim($this->commandResult);
-if ($exitCode) {
-throw new \Exception("Error logging in:" . $this->process->getErrorOutput());
-}
-}
-}
-}
-
-public function getComposerInformation($identifier)
-{
-$composerFileContent = $this->getFileContent('composer.json', $identifier);
-
-if (!$composerFileContent) {
-return;
-}
-
-return json_decode($composerFileContent, true);
-}
-
-public function getFileContent($file, $identifier)
-{
-$path = $this->getFilePath($file, $identifier);
-
-$command = $this->generateP4Command(' print ' . ProcessExecutor::escape($path));
-$this->executeCommand($command);
-$result = $this->commandResult;
-
-if (!trim($result)) {
-return null;
-}
-
-return $result;
-}
-
-public function getFilePath($file, $identifier)
-{
-$index = strpos($identifier, '@');
-if ($index === false) {
-$path = $identifier. '/' . $file;
-
-return $path;
-}
-
-$path = substr($identifier, 0, $index) . '/' . $file . substr($identifier, $index);
-$command = $this->generateP4Command(' files ' . ProcessExecutor::escape($path), false);
-$this->executeCommand($command);
-$result = $this->commandResult;
-$index2 = strpos($result, 'no such file(s).');
-if ($index2 === false) {
-$index3 = strpos($result, 'change');
-if ($index3 !== false) {
-$phrase = trim(substr($result, $index3));
-$fields = explode(' ', $phrase);
-
-return substr($identifier, 0, $index) . '/' . $file . '@' . $fields[1];
-}
-}
-
-return null;
-}
-
-public function getBranches()
-{
-$possibleBranches = array();
-if (!$this->isStream()) {
-$possibleBranches[$this->p4Branch] = $this->getStream();
-} else {
-$command = $this->generateP4Command('streams '.ProcessExecutor::escape('//' . $this->p4Depot . '/...'));
-$this->executeCommand($command);
-$result = $this->commandResult;
-$resArray = explode(PHP_EOL, $result);
-foreach ($resArray as $line) {
-$resBits = explode(' ', $line);
-if (count($resBits) > 4) {
-$branch = preg_replace('/[^A-Za-z0-9 ]/', '', $resBits[4]);
-$possibleBranches[$branch] = $resBits[1];
-}
-}
-}
-$command = $this->generateP4Command('changes '. ProcessExecutor::escape($this->getStream() . '/...'), false);
-$this->executeCommand($command);
-$result = $this->commandResult;
-$resArray = explode(PHP_EOL, $result);
-$lastCommit = $resArray[0];
-$lastCommitArr = explode(' ', $lastCommit);
-$lastCommitNum = $lastCommitArr[1];
-
-$branches = array('master' => $possibleBranches[$this->p4Branch] . '@'. $lastCommitNum);
-
-return $branches;
-}
-
-public function getTags()
-{
-$command = $this->generateP4Command('labels');
-$this->executeCommand($command);
-$result = $this->commandResult;
-$resArray = explode(PHP_EOL, $result);
-$tags = array();
-foreach ($resArray as $line) {
-if (strpos($line, 'Label') !== false) {
-$fields = explode(' ', $line);
-$tags[$fields[1]] = $this->getStream() . '@' . $fields[1];
-}
-}
-
-return $tags;
-}
-
-public function checkStream()
-{
-$command = $this->generateP4Command('depots', false);
-$this->executeCommand($command);
-$result = $this->commandResult;
-$resArray = explode(PHP_EOL, $result);
-foreach ($resArray as $line) {
-if (strpos($line, 'Depot') !== false) {
-$fields = explode(' ', $line);
-if (strcmp($this->p4Depot, $fields[1]) === 0) {
-$this->p4DepotType = $fields[3];
-
-return $this->isStream();
-}
-}
-}
-
-return false;
-}
-
-
-
-
-
-protected function getChangeList($reference)
-{
-$index = strpos($reference, '@');
-if ($index === false) {
-return null;
-}
-$label = substr($reference, $index);
-$command = $this->generateP4Command(' changes -m1 ' . ProcessExecutor::escape($label));
-$this->executeCommand($command);
-$changes = $this->commandResult;
-if (strpos($changes, 'Change') !== 0) {
-return null;
-}
-$fields = explode(' ', $changes);
-
-return $fields[1];
-}
-
-
-
-
-
-
-public function getCommitLogs($fromReference, $toReference)
-{
-$fromChangeList = $this->getChangeList($fromReference);
-if ($fromChangeList === null) {
-return null;
-}
-$toChangeList = $this->getChangeList($toReference);
-if ($toChangeList === null) {
-return null;
-}
-$index = strpos($fromReference, '@');
-$main = substr($fromReference, 0, $index) . '/...';
-$command = $this->generateP4Command('filelog ' . ProcessExecutor::escape($main . '@' . $fromChangeList. ',' . $toChangeList));
-$this->executeCommand($command);
-
-return $this->commandResult;
-}
-
-public function getFilesystem()
-{
-if (empty($this->filesystem)) {
-$this->filesystem = new Filesystem($this->process);
-}
-
-return $this->filesystem;
-}
-
-public function setFilesystem(Filesystem $fs)
-{
-$this->filesystem = $fs;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Util;
-
-
-
-
-
-
-class Platform
-{
-
-
-
-
-
-
-public static function expandPath($path)
-{
-if (preg_match('#^~[\\/]#', $path)) {
-return self::getUserDirectory() . substr($path, 1);
-}
-
-return preg_replace_callback('#^(\$|(?P<percent>%))(?P<var>\w++)(?(percent)%)(?P<path>.*)#', function ($matches) {
-
- if (Platform::isWindows() && $matches['var'] == 'HOME') {
-return (getenv('HOME') ?: getenv('USERPROFILE')) . $matches['path'];
-}
-
-return getenv($matches['var']) . $matches['path'];
-}, $path);
-}
-
-
-
-
-
-public static function getUserDirectory()
-{
-if (false !== ($home = getenv('HOME'))) {
-return $home;
-}
-
-if (self::isWindows() && false !== ($home = getenv('USERPROFILE'))) {
-return $home;
-}
-
-if (function_exists('posix_getuid') && function_exists('posix_getpwuid')) {
-$info = posix_getpwuid(posix_getuid());
-
-return $info['dir'];
-}
-
-throw new \RuntimeException('Could not determine user directory');
-}
-
-
-
-
-public static function isWindows()
-{
-return defined('PHP_WINDOWS_VERSION_BUILD');
-}
-
-
-
-
-
-public static function strlen($str)
-{
-static $useMbString = null;
-if (null === $useMbString) {
-$useMbString = function_exists('mb_strlen') && ini_get('mbstring.func_overload');
-}
-
-if ($useMbString) {
-return mb_strlen($str, '8bit');
-}
-
-return strlen($str);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Util;
-
-use Composer\IO\IOInterface;
-use Symfony\Component\Process\Process;
-use Symfony\Component\Process\ProcessUtils;
-
-
-
-
-class ProcessExecutor
-{
-protected static $timeout = 300;
-
-protected $captureOutput;
-protected $errorOutput;
-protected $io;
-
-public function __construct(IOInterface $io = null)
-{
-$this->io = $io;
-}
-
-
-
-
-
-
-
-
-
-
-public function execute($command, &$output = null, $cwd = null)
-{
-if ($this->io && $this->io->isDebug()) {
-$safeCommand = preg_replace_callback('{://(?P<user>[^:/\s]+):(?P<password>[^@\s/]+)@}i', function ($m) {
-if (preg_match('{^[a-f0-9]{12,}$}', $m['user'])) {
-return '://***:***@';
-}
-
-return '://'.$m['user'].':***@';
-}, $command);
-$this->io->writeError('Executing command ('.($cwd ?: 'CWD').'): '.$safeCommand);
-}
-
-
- 
- if (null === $cwd && Platform::isWindows() && false !== strpos($command, 'git') && getcwd()) {
-$cwd = realpath(getcwd());
-}
-
-$this->captureOutput = func_num_args() > 1;
-$this->errorOutput = null;
-$process = new Process($command, $cwd, null, null, static::getTimeout());
-
-$callback = is_callable($output) ? $output : array($this, 'outputHandler');
-$process->run($callback);
-
-if ($this->captureOutput && !is_callable($output)) {
-$output = $process->getOutput();
-}
-
-$this->errorOutput = $process->getErrorOutput();
-
-return $process->getExitCode();
-}
-
-public function splitLines($output)
-{
-$output = trim($output);
-
-return ((string) $output === '') ? array() : preg_split('{\r?\n}', $output);
-}
-
-
-
-
-
-
-public function getErrorOutput()
-{
-return $this->errorOutput;
-}
-
-public function outputHandler($type, $buffer)
-{
-if ($this->captureOutput) {
-return;
-}
-
-if (null === $this->io) {
-echo $buffer;
-
-return;
-}
-
-if (Process::ERR === $type) {
-$this->io->writeError($buffer, false);
-} else {
-$this->io->write($buffer, false);
-}
-}
-
-public static function getTimeout()
-{
-return static::$timeout;
-}
-
-public static function setTimeout($timeout)
-{
-static::$timeout = $timeout;
-}
-
-
-
-
-
-
-
-
-public static function escape($argument)
-{
-return self::escapeArgument($argument);
-}
-
-
-
-
-
-
-
-
-private static function escapeArgument($argument)
-{
-
- 
- 
- 
- if ('\\' === DIRECTORY_SEPARATOR) {
-if ('' === $argument) {
-return escapeshellarg($argument);
-}
-
-$escapedArgument = '';
-$quote = false;
-foreach (preg_split('/(")/', $argument, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE) as $part) {
-if ('"' === $part) {
-$escapedArgument .= '\\"';
-} elseif (self::isSurroundedBy($part, '%')) {
-
- $escapedArgument .= '^%"'.substr($part, 1, -1).'"^%';
-} else {
-
- if ('\\' === substr($part, -1)) {
-$part .= '\\';
-}
-$quote = true;
-$escapedArgument .= $part;
-}
-}
-if ($quote) {
-$escapedArgument = '"'.$escapedArgument.'"';
-}
-
-return $escapedArgument;
-}
-
-return "'".str_replace("'", "'\\''", $argument)."'";
-}
-
-private static function isSurroundedBy($arg, $char)
-{
-return 2 < strlen($arg) && $char === $arg[0] && $char === $arg[strlen($arg) - 1];
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Util;
-
-use Composer\Config;
-use Composer\IO\IOInterface;
-use Composer\Downloader\TransportException;
-use Composer\CaBundle\CaBundle;
-use Psr\Log\LoggerInterface;
-
-
-
-
-
-
-class RemoteFilesystem
-{
-private $io;
-private $config;
-private $scheme;
-private $bytesMax;
-private $originUrl;
-private $fileUrl;
-private $fileName;
-private $retry;
-private $progress;
-private $lastProgress;
-private $options = array();
-private $peerCertificateMap = array();
-private $disableTls = false;
-private $retryAuthFailure;
-private $lastHeaders;
-private $storeAuth;
-private $degradedMode = false;
-private $redirects;
-private $maxRedirects = 20;
-
-
-
-
-
-
-
-
-
-public function __construct(IOInterface $io, Config $config = null, array $options = array(), $disableTls = false)
-{
-$this->io = $io;
-
-
- 
- if ($disableTls === false) {
-$this->options = $this->getTlsDefaults($options);
-} else {
-$this->disableTls = true;
-}
-
-
- $this->options = array_replace_recursive($this->options, $options);
-$this->config = $config;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function copy($originUrl, $fileUrl, $fileName, $progress = true, $options = array())
-{
-return $this->get($originUrl, $fileUrl, $options, $fileName, $progress);
-}
-
-
-
-
-
-
-
-
-
-
-
-public function getContents($originUrl, $fileUrl, $progress = true, $options = array())
-{
-return $this->get($originUrl, $fileUrl, $options, null, $progress);
-}
-
-
-
-
-
-
-public function getOptions()
-{
-return $this->options;
-}
-
-
-
-
-
-
-public function setOptions(array $options)
-{
-$this->options = array_replace_recursive($this->options, $options);
-}
-
-
-
-
-
-
-public function isTlsDisabled()
-{
-return $this->disableTls === true;
-}
-
-
-
-
-
-
-public function getLastHeaders()
-{
-return $this->lastHeaders;
-}
-
-
-
-
-
-
-public function findHeaderValue(array $headers, $name)
-{
-$value = null;
-foreach ($headers as $header) {
-if (preg_match('{^'.$name.':\s*(.+?)\s*$}i', $header, $match)) {
-$value = $match[1];
-} elseif (preg_match('{^HTTP/}i', $header)) {
-
- 
- $value = null;
-}
-}
-
-return $value;
-}
-
-
-
-
-
-public function findStatusCode(array $headers)
-{
-$value = null;
-foreach ($headers as $header) {
-if (preg_match('{^HTTP/\S+ (\d+)}i', $header, $match)) {
-
- 
- $value = (int) $match[1];
-}
-}
-
-return $value;
-}
-
-
-
-
-
-public function findStatusMessage(array $headers)
-{
-$value = null;
-foreach ($headers as $header) {
-if (preg_match('{^HTTP/\S+ \d+}i', $header)) {
-
- 
- $value = $header;
-}
-}
-
-return $value;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-protected function get($originUrl, $fileUrl, $additionalOptions = array(), $fileName = null, $progress = true)
-{
-if (strpos($originUrl, '.github.com') === (strlen($originUrl) - 11)) {
-$originUrl = 'github.com';
-}
-
-
- 
- if (
-$this->config
-&& is_array($this->config->get('gitlab-domains'))
-&& false === strpos($originUrl, '/')
-&& !in_array($originUrl, $this->config->get('gitlab-domains'))
-) {
-foreach ($this->config->get('gitlab-domains') as $gitlabDomain) {
-if (0 === strpos($gitlabDomain, $originUrl)) {
-$originUrl = $gitlabDomain;
-break;
-}
-}
-unset($gitlabDomain);
-}
-
-$this->scheme = parse_url($fileUrl, PHP_URL_SCHEME);
-$this->bytesMax = 0;
-$this->originUrl = $originUrl;
-$this->fileUrl = $fileUrl;
-$this->fileName = $fileName;
-$this->progress = $progress;
-$this->lastProgress = null;
-$this->retryAuthFailure = true;
-$this->lastHeaders = array();
-$this->redirects = 1; 
-
-
- if (preg_match('{^https?://([^:/]+):([^@/]+)@([^/]+)}i', $fileUrl, $match)) {
-$this->io->setAuthentication($originUrl, rawurldecode($match[1]), rawurldecode($match[2]));
-}
-
-$tempAdditionalOptions = $additionalOptions;
-if (isset($tempAdditionalOptions['retry-auth-failure'])) {
-$this->retryAuthFailure = (bool) $tempAdditionalOptions['retry-auth-failure'];
-
-unset($tempAdditionalOptions['retry-auth-failure']);
-}
-
-$isRedirect = false;
-if (isset($tempAdditionalOptions['redirects'])) {
-$this->redirects = $tempAdditionalOptions['redirects'];
-$isRedirect = true;
-
-unset($tempAdditionalOptions['redirects']);
-}
-
-$options = $this->getOptionsForUrl($originUrl, $tempAdditionalOptions);
-unset($tempAdditionalOptions);
-
-$origFileUrl = $fileUrl;
-
-if (isset($options['github-token'])) {
-
- if (preg_match('{^https?://([a-z0-9-]+\.)*github\.com/}', $fileUrl)) {
-$fileUrl .= (false === strpos($fileUrl, '?') ? '?' : '&') . 'access_token='.$options['github-token'];
-}
-unset($options['github-token']);
-}
-
-if (isset($options['gitlab-token'])) {
-$fileUrl .= (false === strpos($fileUrl, '?') ? '?' : '&') . 'access_token='.$options['gitlab-token'];
-unset($options['gitlab-token']);
-}
-
-if (isset($options['http'])) {
-$options['http']['ignore_errors'] = true;
-}
-
-if ($this->degradedMode && substr($fileUrl, 0, 26) === 'http://repo.packagist.org/') {
-
- $fileUrl = 'http://' . gethostbyname('repo.packagist.org') . substr($fileUrl, 20);
-$degradedPackagist = true;
-}
-
-$ctx = StreamContextFactory::getContext($fileUrl, $options, array('notification' => array($this, 'callbackGet')));
-
-$actualContextOptions = stream_context_get_options($ctx);
-$usingProxy = !empty($actualContextOptions['http']['proxy']) ? ' using proxy ' . $actualContextOptions['http']['proxy'] : '';
-$this->io->writeError((substr($origFileUrl, 0, 4) === 'http' ? 'Downloading ' : 'Reading ') . $origFileUrl . $usingProxy, true, IOInterface::DEBUG);
-unset($origFileUrl, $actualContextOptions);
-
-
- if ((!preg_match('{^http://(repo\.)?packagist\.org/p/}', $fileUrl) || (false === strpos($fileUrl, '$') && false === strpos($fileUrl, '%24'))) && empty($degradedPackagist) && $this->config) {
-$this->config->prohibitUrlByConfig($fileUrl, $this->io);
-}
-
-if ($this->progress && !$isRedirect) {
-$this->io->writeError("Downloading (<comment>connecting...</comment>)", false);
-}
-
-$errorMessage = '';
-$errorCode = 0;
-$result = false;
-set_error_handler(function ($code, $msg) use (&$errorMessage) {
-if ($errorMessage) {
-$errorMessage .= "\n";
-}
-$errorMessage .= preg_replace('{^file_get_contents\(.*?\): }', '', $msg);
-});
-try {
-$result = $this->getRemoteContents($originUrl, $fileUrl, $ctx, $http_response_header);
-
-if (!empty($http_response_header[0])) {
-$statusCode = $this->findStatusCode($http_response_header);
-if (in_array($statusCode, array(401, 403)) && $this->retryAuthFailure) {
-$warning = null;
-if ($this->findHeaderValue($http_response_header, 'content-type') === 'application/json') {
-$data = json_decode($result, true);
-if (!empty($data['warning'])) {
-$warning = $data['warning'];
-}
-}
-$this->promptAuthAndRetry($statusCode, $this->findStatusMessage($http_response_header), $warning, $http_response_header);
-}
-}
-
-$contentLength = !empty($http_response_header[0]) ? $this->findHeaderValue($http_response_header, 'content-length') : null;
-if ($contentLength && Platform::strlen($result) < $contentLength) {
-
- $e = new TransportException('Content-Length mismatch, received '.Platform::strlen($result).' bytes out of the expected '.$contentLength);
-$e->setHeaders($http_response_header);
-$e->setStatusCode($this->findStatusCode($http_response_header));
-$e->setResponse($result);
-$this->io->writeError('Content-Length mismatch, received '.Platform::strlen($result).' out of '.$contentLength.' bytes: (' . base64_encode($result).')', true, IOInterface::DEBUG);
-
-throw $e;
-}
-
-if (PHP_VERSION_ID < 50600 && !empty($options['ssl']['peer_fingerprint'])) {
-
- $params = stream_context_get_params($ctx);
-$expectedPeerFingerprint = $options['ssl']['peer_fingerprint'];
-$peerFingerprint = TlsHelper::getCertificateFingerprint($params['options']['ssl']['peer_certificate']);
-
-
- if ($expectedPeerFingerprint !== $peerFingerprint) {
-throw new TransportException('Peer fingerprint did not match');
-}
-}
-} catch (\Exception $e) {
-if ($e instanceof TransportException && !empty($http_response_header[0])) {
-$e->setHeaders($http_response_header);
-$e->setStatusCode($this->findStatusCode($http_response_header));
-}
-if ($e instanceof TransportException && $result !== false) {
-$e->setResponse($result);
-}
-$result = false;
-}
-if ($errorMessage && !filter_var(ini_get('allow_url_fopen'), FILTER_VALIDATE_BOOLEAN)) {
-$errorMessage = 'allow_url_fopen must be enabled in php.ini ('.$errorMessage.')';
-}
-restore_error_handler();
-if (isset($e) && !$this->retry) {
-if (!$this->degradedMode && false !== strpos($e->getMessage(), 'Operation timed out')) {
-$this->degradedMode = true;
-$this->io->writeError('');
-$this->io->writeError(array(
-'<error>'.$e->getMessage().'</error>',
-'<error>Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info</error>',
-));
-
-return $this->get($this->originUrl, $this->fileUrl, $additionalOptions, $this->fileName, $this->progress);
-}
-
-throw $e;
-}
-
-$statusCode = null;
-$contentType = null;
-$locationHeader = null;
-if (!empty($http_response_header[0])) {
-$statusCode = $this->findStatusCode($http_response_header);
-$contentType = $this->findHeaderValue($http_response_header, 'content-type');
-$locationHeader = $this->findHeaderValue($http_response_header, 'location');
-}
-
-
- if ($originUrl === 'bitbucket.org'
-&& !$this->isPublicBitBucketDownload($fileUrl)
-&& substr($fileUrl, -4) === '.zip'
-&& (!$locationHeader || substr($locationHeader, -4) !== '.zip')
-&& $contentType && preg_match('{^text/html\b}i', $contentType)
-) {
-$result = false;
-if ($this->retryAuthFailure) {
-$this->promptAuthAndRetry(401);
-}
-}
-
-
- if ($statusCode === 404
-&& $this->config && in_array($originUrl, $this->config->get('gitlab-domains'), true)
-&& false !== strpos($fileUrl, 'archive.zip')
-) {
-$result = false;
-if ($this->retryAuthFailure) {
-$this->promptAuthAndRetry(401);
-}
-}
-
-
- $hasFollowedRedirect = false;
-if ($statusCode >= 300 && $statusCode <= 399 && $statusCode !== 304 && $this->redirects < $this->maxRedirects) {
-$hasFollowedRedirect = true;
-$result = $this->handleRedirect($http_response_header, $additionalOptions, $result);
-}
-
-
- if ($statusCode && $statusCode >= 400 && $statusCode <= 599) {
-if (!$this->retry) {
-if ($this->progress && !$this->retry && !$isRedirect) {
-$this->io->overwriteError("Downloading (<error>failed</error>)", false);
-}
-
-$e = new TransportException('The "'.$this->fileUrl.'" file could not be downloaded ('.$http_response_header[0].')', $statusCode);
-$e->setHeaders($http_response_header);
-$e->setResponse($result);
-$e->setStatusCode($statusCode);
-throw $e;
-}
-$result = false;
-}
-
-if ($this->progress && !$this->retry && !$isRedirect) {
-$this->io->overwriteError("Downloading (".($result === false ? '<error>failed</error>' : '<comment>100%</comment>').")", false);
-}
-
-
- if ($result && extension_loaded('zlib') && substr($fileUrl, 0, 4) === 'http' && !$hasFollowedRedirect) {
-$contentEncoding = $this->findHeaderValue($http_response_header, 'content-encoding');
-$decode = $contentEncoding && 'gzip' === strtolower($contentEncoding);
-
-if ($decode) {
-try {
-if (PHP_VERSION_ID >= 50400) {
-$result = zlib_decode($result);
-} else {
-
- $result = file_get_contents('compress.zlib://data:application/octet-stream;base64,'.base64_encode($result));
-}
-
-if (!$result) {
-throw new TransportException('Failed to decode zlib stream');
-}
-} catch (\Exception $e) {
-if ($this->degradedMode) {
-throw $e;
-}
-
-$this->degradedMode = true;
-$this->io->writeError(array(
-'',
-'<error>Failed to decode response: '.$e->getMessage().'</error>',
-'<error>Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info</error>',
-));
-
-return $this->get($this->originUrl, $this->fileUrl, $additionalOptions, $this->fileName, $this->progress);
-}
-}
-}
-
-
- if (false !== $result && null !== $fileName && !$isRedirect) {
-if ('' === $result) {
-throw new TransportException('"'.$this->fileUrl.'" appears broken, and returned an empty 200 response');
-}
-
-$errorMessage = '';
-set_error_handler(function ($code, $msg) use (&$errorMessage) {
-if ($errorMessage) {
-$errorMessage .= "\n";
-}
-$errorMessage .= preg_replace('{^file_put_contents\(.*?\): }', '', $msg);
-});
-$result = (bool) file_put_contents($fileName, $result);
-restore_error_handler();
-if (false === $result) {
-throw new TransportException('The "'.$this->fileUrl.'" file could not be written to '.$fileName.': '.$errorMessage);
-}
-}
-
-
- if (false === $result && false !== strpos($errorMessage, 'Peer certificate') && PHP_VERSION_ID < 50600) {
-
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- if (CaBundle::isOpensslParseSafe()) {
-$certDetails = $this->getCertificateCnAndFp($this->fileUrl, $options);
-
-if ($certDetails) {
-$this->peerCertificateMap[$this->getUrlAuthority($this->fileUrl)] = $certDetails;
-
-$this->retry = true;
-}
-} else {
-$this->io->writeError('');
-$this->io->writeError(sprintf(
-'<error>Your version of PHP, %s, is affected by CVE-2013-6420 and cannot safely perform certificate validation, we strongly suggest you upgrade.</error>',
-PHP_VERSION
-));
-}
-}
-
-if ($this->retry) {
-$this->retry = false;
-
-$result = $this->get($this->originUrl, $this->fileUrl, $additionalOptions, $this->fileName, $this->progress);
-
-if ($this->storeAuth && $this->config) {
-$authHelper = new AuthHelper($this->io, $this->config);
-$authHelper->storeAuth($this->originUrl, $this->storeAuth);
-$this->storeAuth = false;
-}
-
-return $result;
-}
-
-if (false === $result) {
-$e = new TransportException('The "'.$this->fileUrl.'" file could not be downloaded: '.$errorMessage, $errorCode);
-if (!empty($http_response_header[0])) {
-$e->setHeaders($http_response_header);
-}
-
-if (!$this->degradedMode && false !== strpos($e->getMessage(), 'Operation timed out')) {
-$this->degradedMode = true;
-$this->io->writeError('');
-$this->io->writeError(array(
-'<error>'.$e->getMessage().'</error>',
-'<error>Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info</error>',
-));
-
-return $this->get($this->originUrl, $this->fileUrl, $additionalOptions, $this->fileName, $this->progress);
-}
-
-throw $e;
-}
-
-if (!empty($http_response_header[0])) {
-$this->lastHeaders = $http_response_header;
-}
-
-return $result;
-}
-
-
-
-
-
-
-
-
-
-
-protected function getRemoteContents($originUrl, $fileUrl, $context, array &$responseHeaders = null)
-{
-try {
-$e = null;
-$result = file_get_contents($fileUrl, false, $context);
-} catch (\Throwable $e) {
-} catch (\Exception $e) {
-}
-
-$responseHeaders = isset($http_response_header) ? $http_response_header : array();
-
-if (null !== $e) {
-throw $e;
-}
-
-return $result;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-protected function callbackGet($notificationCode, $severity, $message, $messageCode, $bytesTransferred, $bytesMax)
-{
-switch ($notificationCode) {
-case STREAM_NOTIFY_FAILURE:
-if (400 === $messageCode) {
-
- 
- throw new TransportException("The '" . $this->fileUrl . "' URL could not be accessed: " . $message, $messageCode);
-}
-break;
-
-case STREAM_NOTIFY_FILE_SIZE_IS:
-$this->bytesMax = $bytesMax;
-break;
-
-case STREAM_NOTIFY_PROGRESS:
-if ($this->bytesMax > 0 && $this->progress) {
-$progression = min(100, round($bytesTransferred / $this->bytesMax * 100));
-
-if ((0 === $progression % 5) && 100 !== $progression && $progression !== $this->lastProgress) {
-$this->lastProgress = $progression;
-$this->io->overwriteError("Downloading (<comment>$progression%</comment>)", false);
-}
-}
-break;
-
-default:
-break;
-}
-}
-
-protected function promptAuthAndRetry($httpStatus, $reason = null, $warning = null, $headers = array())
-{
-if ($this->config && in_array($this->originUrl, $this->config->get('github-domains'), true)) {
-$gitHubUtil = new GitHub($this->io, $this->config, null);
-$message = "\n";
-
-$rateLimited = $gitHubUtil->isRateLimited($headers);
-if ($rateLimited) {
-$rateLimit = $gitHubUtil->getRateLimit($headers);
-if ($this->io->hasAuthentication($this->originUrl)) {
-$message = 'Review your configured GitHub OAuth token or enter a new one to go over the API rate limit.';
-} else {
-$message = 'Create a GitHub OAuth token to go over the API rate limit.';
-}
-
-$message = sprintf(
-'GitHub API limit (%d calls/hr) is exhausted, could not fetch '.$this->fileUrl.'. '.$message.' You can also wait until %s for the rate limit to reset.',
-$rateLimit['limit'],
-$rateLimit['reset']
-)."\n";
-} else {
-$message .= 'Could not fetch '.$this->fileUrl.', please ';
-if ($this->io->hasAuthentication($this->originUrl)) {
-$message .= 'review your configured GitHub OAuth token or enter a new one to access private repos';
-} else {
-$message .= 'create a GitHub OAuth token to access private repos';
-}
-}
-
-if (!$gitHubUtil->authorizeOAuth($this->originUrl)
-&& (!$this->io->isInteractive() || !$gitHubUtil->authorizeOAuthInteractively($this->originUrl, $message))
-) {
-throw new TransportException('Could not authenticate against '.$this->originUrl, 401);
-}
-} elseif ($this->config && in_array($this->originUrl, $this->config->get('gitlab-domains'), true)) {
-$message = "\n".'Could not fetch '.$this->fileUrl.', enter your ' . $this->originUrl . ' credentials ' .($httpStatus === 401 ? 'to access private repos' : 'to go over the API rate limit');
-$gitLabUtil = new GitLab($this->io, $this->config, null);
-
-if ($this->io->hasAuthentication($this->originUrl) && ($auth = $this->io->getAuthentication($this->originUrl)) && $auth['password'] === 'private-token') {
-throw new TransportException("Invalid credentials for '" . $this->fileUrl . "', aborting.", $httpStatus);
-}
-
-if (!$gitLabUtil->authorizeOAuth($this->originUrl)
-&& (!$this->io->isInteractive() || !$gitLabUtil->authorizeOAuthInteractively($this->scheme, $this->originUrl, $message))
-) {
-throw new TransportException('Could not authenticate against '.$this->originUrl, 401);
-}
-} elseif ($this->config && $this->originUrl === 'bitbucket.org') {
-$askForOAuthToken = true;
-if ($this->io->hasAuthentication($this->originUrl)) {
-$auth = $this->io->getAuthentication($this->originUrl);
-if ($auth['username'] !== 'x-token-auth') {
-$bitbucketUtil = new Bitbucket($this->io, $this->config);
-$accessToken = $bitbucketUtil->requestToken($this->originUrl, $auth['username'], $auth['password']);
-if (!empty($accessToken)) {
-$this->io->setAuthentication($this->originUrl, 'x-token-auth', $accessToken);
-$askForOAuthToken = false;
-}
-} else {
-throw new TransportException('Could not authenticate against ' . $this->originUrl, 401);
-}
-}
-
-if ($askForOAuthToken) {
-$message = "\n".'Could not fetch ' . $this->fileUrl . ', please create a bitbucket OAuth token to ' . (($httpStatus === 401 || $httpStatus === 403) ? 'access private repos' : 'go over the API rate limit');
-$bitBucketUtil = new Bitbucket($this->io, $this->config);
-if (! $bitBucketUtil->authorizeOAuth($this->originUrl)
-&& (! $this->io->isInteractive() || !$bitBucketUtil->authorizeOAuthInteractively($this->originUrl, $message))
-) {
-throw new TransportException('Could not authenticate against ' . $this->originUrl, 401);
-}
-}
-} else {
-
- if ($httpStatus === 404) {
-return;
-}
-
-
- if (!$this->io->isInteractive()) {
-if ($httpStatus === 401) {
-$message = "The '" . $this->fileUrl . "' URL required authentication.\nYou must be using the interactive console to authenticate";
-}
-if ($httpStatus === 403) {
-$message = "The '" . $this->fileUrl . "' URL could not be accessed: " . $reason;
-}
-
-throw new TransportException($message, $httpStatus);
-}
-
- if ($this->io->hasAuthentication($this->originUrl)) {
-throw new TransportException("Invalid credentials for '" . $this->fileUrl . "', aborting.", $httpStatus);
-}
-
-$this->io->overwriteError('');
-if ($warning) {
-$this->io->writeError('    <warning>'.$warning.'</warning>');
-}
-$this->io->writeError('    Authentication required (<info>'.parse_url($this->fileUrl, PHP_URL_HOST).'</info>):');
-$username = $this->io->ask('      Username: ');
-$password = $this->io->askAndHideAnswer('      Password: ');
-$this->io->setAuthentication($this->originUrl, $username, $password);
-$this->storeAuth = $this->config->get('store-auths');
-}
-
-$this->retry = true;
-throw new TransportException('RETRY');
-}
-
-protected function getOptionsForUrl($originUrl, $additionalOptions)
-{
-$tlsOptions = array();
-
-
- if ($this->disableTls === false && PHP_VERSION_ID < 50600 && !stream_is_local($this->fileUrl)) {
-$host = parse_url($this->fileUrl, PHP_URL_HOST);
-
-if (PHP_VERSION_ID < 50304) {
-
- 
- 
- 
-
-if ($host === 'github.com' || $host === 'api.github.com') {
-$host = '*.github.com';
-}
-}
-
-$tlsOptions['ssl']['CN_match'] = $host;
-$tlsOptions['ssl']['SNI_server_name'] = $host;
-
-$urlAuthority = $this->getUrlAuthority($this->fileUrl);
-
-if (isset($this->peerCertificateMap[$urlAuthority])) {
-
- $certMap = $this->peerCertificateMap[$urlAuthority];
-
-$this->io->writeError('', true, IOInterface::DEBUG);
-$this->io->writeError(sprintf(
-'Using <info>%s</info> as CN for subjectAltName enabled host <info>%s</info>',
-$certMap['cn'],
-$urlAuthority
-), true, IOInterface::DEBUG);
-
-$tlsOptions['ssl']['CN_match'] = $certMap['cn'];
-$tlsOptions['ssl']['peer_fingerprint'] = $certMap['fp'];
-} elseif (!CaBundle::isOpensslParseSafe() && $host === 'repo.packagist.org') {
-
- $tlsOptions['ssl']['CN_match'] = 'packagist.org';
-}
-}
-
-$headers = array();
-
-if (extension_loaded('zlib')) {
-$headers[] = 'Accept-Encoding: gzip';
-}
-
-$options = array_replace_recursive($this->options, $tlsOptions, $additionalOptions);
-if (!$this->degradedMode) {
-
- 
- $options['http']['protocol_version'] = 1.1;
-$headers[] = 'Connection: close';
-}
-
-if ($this->io->hasAuthentication($originUrl)) {
-$auth = $this->io->getAuthentication($originUrl);
-if ('github.com' === $originUrl && 'x-oauth-basic' === $auth['password']) {
-$options['github-token'] = $auth['username'];
-} elseif ($this->config && in_array($originUrl, $this->config->get('gitlab-domains'), true)) {
-if ($auth['password'] === 'oauth2') {
-$headers[] = 'Authorization: Bearer '.$auth['username'];
-} elseif ($auth['password'] === 'private-token') {
-$headers[] = 'PRIVATE-TOKEN: '.$auth['username'];
-}
-} elseif ('bitbucket.org' === $originUrl
-&& $this->fileUrl !== Bitbucket::OAUTH2_ACCESS_TOKEN_URL && 'x-token-auth' === $auth['username']
-) {
-if (!$this->isPublicBitBucketDownload($this->fileUrl)) {
-$headers[] = 'Authorization: Bearer ' . $auth['password'];
-}
-} else {
-$authStr = base64_encode($auth['username'] . ':' . $auth['password']);
-$headers[] = 'Authorization: Basic '.$authStr;
-}
-}
-
-$options['http']['follow_location'] = 0;
-
-if (isset($options['http']['header']) && !is_array($options['http']['header'])) {
-$options['http']['header'] = explode("\r\n", trim($options['http']['header'], "\r\n"));
-}
-foreach ($headers as $header) {
-$options['http']['header'][] = $header;
-}
-
-return $options;
-}
-
-private function handleRedirect(array $http_response_header, array $additionalOptions, $result)
-{
-if ($locationHeader = $this->findHeaderValue($http_response_header, 'location')) {
-if (parse_url($locationHeader, PHP_URL_SCHEME)) {
-
- $targetUrl = $locationHeader;
-} elseif (parse_url($locationHeader, PHP_URL_HOST)) {
-
- $targetUrl = $this->scheme.':'.$locationHeader;
-} elseif ('/' === $locationHeader[0]) {
-
- $urlHost = parse_url($this->fileUrl, PHP_URL_HOST);
-
-
- $targetUrl = preg_replace('{^(.+(?://|@)'.preg_quote($urlHost).'(?::\d+)?)(?:[/\?].*)?$}', '\1'.$locationHeader, $this->fileUrl);
-} else {
-
- 
- $targetUrl = preg_replace('{^(.+/)[^/?]*(?:\?.*)?$}', '\1'.$locationHeader, $this->fileUrl);
-}
-}
-
-if (!empty($targetUrl)) {
-$this->redirects++;
-
-$this->io->writeError('', true, IOInterface::DEBUG);
-$this->io->writeError(sprintf('Following redirect (%u) %s', $this->redirects, $targetUrl), true, IOInterface::DEBUG);
-
-$additionalOptions['redirects'] = $this->redirects;
-
-return $this->get(parse_url($targetUrl, PHP_URL_HOST), $targetUrl, $additionalOptions, $this->fileName, $this->progress);
-}
-
-if (!$this->retry) {
-$e = new TransportException('The "'.$this->fileUrl.'" file could not be downloaded, got redirect without Location ('.$http_response_header[0].')');
-$e->setHeaders($http_response_header);
-$e->setResponse($result);
-
-throw $e;
-}
-
-return false;
-}
-
-
-
-
-
-
-private function getTlsDefaults(array $options)
-{
-$ciphers = implode(':', array(
-'ECDHE-RSA-AES128-GCM-SHA256',
-'ECDHE-ECDSA-AES128-GCM-SHA256',
-'ECDHE-RSA-AES256-GCM-SHA384',
-'ECDHE-ECDSA-AES256-GCM-SHA384',
-'DHE-RSA-AES128-GCM-SHA256',
-'DHE-DSS-AES128-GCM-SHA256',
-'kEDH+AESGCM',
-'ECDHE-RSA-AES128-SHA256',
-'ECDHE-ECDSA-AES128-SHA256',
-'ECDHE-RSA-AES128-SHA',
-'ECDHE-ECDSA-AES128-SHA',
-'ECDHE-RSA-AES256-SHA384',
-'ECDHE-ECDSA-AES256-SHA384',
-'ECDHE-RSA-AES256-SHA',
-'ECDHE-ECDSA-AES256-SHA',
-'DHE-RSA-AES128-SHA256',
-'DHE-RSA-AES128-SHA',
-'DHE-DSS-AES128-SHA256',
-'DHE-RSA-AES256-SHA256',
-'DHE-DSS-AES256-SHA',
-'DHE-RSA-AES256-SHA',
-'AES128-GCM-SHA256',
-'AES256-GCM-SHA384',
-'AES128-SHA256',
-'AES256-SHA256',
-'AES128-SHA',
-'AES256-SHA',
-'AES',
-'CAMELLIA',
-'DES-CBC3-SHA',
-'!aNULL',
-'!eNULL',
-'!EXPORT',
-'!DES',
-'!RC4',
-'!MD5',
-'!PSK',
-'!aECDH',
-'!EDH-DSS-DES-CBC3-SHA',
-'!EDH-RSA-DES-CBC3-SHA',
-'!KRB5-DES-CBC3-SHA',
-));
-
-
-
-
-
-
-
-$defaults = array(
-'ssl' => array(
-'ciphers' => $ciphers,
-'verify_peer' => true,
-'verify_depth' => 7,
-'SNI_enabled' => true,
-'capture_peer_cert' => true,
-),
-);
-
-if (isset($options['ssl'])) {
-$defaults['ssl'] = array_replace_recursive($defaults['ssl'], $options['ssl']);
-}
-
-$caBundleLogger = $this->io instanceof LoggerInterface ? $this->io : null;
-
-
-
-
-
-if (!isset($defaults['ssl']['cafile']) && !isset($defaults['ssl']['capath'])) {
-$result = CaBundle::getSystemCaRootBundlePath($caBundleLogger);
-
-if (is_dir($result)) {
-$defaults['ssl']['capath'] = $result;
-} else {
-$defaults['ssl']['cafile'] = $result;
-}
-}
-
-if (isset($defaults['ssl']['cafile']) && (!is_readable($defaults['ssl']['cafile']) || !CaBundle::validateCaFile($defaults['ssl']['cafile'], $caBundleLogger))) {
-throw new TransportException('The configured cafile was not valid or could not be read.');
-}
-
-if (isset($defaults['ssl']['capath']) && (!is_dir($defaults['ssl']['capath']) || !is_readable($defaults['ssl']['capath']))) {
-throw new TransportException('The configured capath was not valid or could not be read.');
-}
-
-
-
-
-if (PHP_VERSION_ID >= 50413) {
-$defaults['ssl']['disable_compression'] = true;
-}
-
-return $defaults;
-}
-
-
-
-
-
-
-private function getCertificateCnAndFp($url, $options)
-{
-if (PHP_VERSION_ID >= 50600) {
-throw new \BadMethodCallException(sprintf(
-'%s must not be used on PHP >= 5.6',
-__METHOD__
-));
-}
-
-$context = StreamContextFactory::getContext($url, $options, array('options' => array(
-'ssl' => array(
-'capture_peer_cert' => true,
-'verify_peer' => false, 
- ), ),
-));
-
-
- 
- if (false === $handle = @fopen($url, 'rb', false, $context)) {
-return;
-}
-
-
- fclose($handle);
-$handle = null;
-
-$params = stream_context_get_params($context);
-
-if (!empty($params['options']['ssl']['peer_certificate'])) {
-$peerCertificate = $params['options']['ssl']['peer_certificate'];
-
-if (TlsHelper::checkCertificateHost($peerCertificate, parse_url($url, PHP_URL_HOST), $commonName)) {
-return array(
-'cn' => $commonName,
-'fp' => TlsHelper::getCertificateFingerprint($peerCertificate),
-);
-}
-}
-}
-
-private function getUrlAuthority($url)
-{
-$defaultPorts = array(
-'ftp' => 21,
-'http' => 80,
-'https' => 443,
-'ssh2.sftp' => 22,
-'ssh2.scp' => 22,
-);
-
-$scheme = parse_url($url, PHP_URL_SCHEME);
-
-if (!isset($defaultPorts[$scheme])) {
-throw new \InvalidArgumentException(sprintf(
-'Could not get default port for unknown scheme: %s',
-$scheme
-));
-}
-
-$defaultPort = $defaultPorts[$scheme];
-$port = parse_url($url, PHP_URL_PORT) ?: $defaultPort;
-
-return parse_url($url, PHP_URL_HOST).':'.$port;
-}
-
-
-
-
-
-
-
-
-private function isPublicBitBucketDownload($urlToBitBucketFile)
-{
-$domain = parse_url($urlToBitBucketFile, PHP_URL_HOST);
-if (strpos($domain, 'bitbucket.org') === false) {
-
- 
- return true;
-}
-
-$path = parse_url($urlToBitBucketFile, PHP_URL_PATH);
-
-
- 
- $pathParts = explode('/', $path);
-
-return count($pathParts) >= 4 && $pathParts[3] == 'downloads';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Util;
-
-
-
-
-
-
-class Silencer
-{
-
-
-
-private static $stack = array();
-
-
-
-
-
-
-
-public static function suppress($mask = null)
-{
-if (!isset($mask)) {
-$mask = E_WARNING | E_NOTICE | E_USER_WARNING | E_USER_NOTICE | E_DEPRECATED | E_USER_DEPRECATED | E_STRICT;
-}
-$old = error_reporting();
-self::$stack[] = $old;
-error_reporting($old & ~$mask);
-
-return $old;
-}
-
-
-
-
-public static function restore()
-{
-if (!empty(self::$stack)) {
-error_reporting(array_pop(self::$stack));
-}
-}
-
-
-
-
-
-
-
-
-
-
-public static function call($callable )
-{
-try {
-self::suppress();
-$result = call_user_func_array($callable, array_slice(func_get_args(), 1));
-self::restore();
-
-return $result;
-} catch (\Exception $e) {
-
- self::restore();
-throw $e;
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Util;
-
-use Composer\Spdx\SpdxLicenses;
-
-trigger_error('The ' . __NAMESPACE__ . '\SpdxLicense class is deprecated, use Composer\Spdx\SpdxLicenses instead.', E_USER_DEPRECATED);
-
-
-
-
-class SpdxLicense extends SpdxLicenses
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Util;
-
-use Composer\Composer;
-
-
-
-
-
-
-
-final class StreamContextFactory
-{
-
-
-
-
-
-
-
-
-
-public static function getContext($url, array $defaultOptions = array(), array $defaultParams = array())
-{
-$options = array('http' => array(
-
- 'follow_location' => 1,
-'max_redirects' => 20,
-));
-
-
- if ((PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') && (!empty($_SERVER['HTTP_PROXY']) || !empty($_SERVER['http_proxy']))) {
-$proxy = parse_url(!empty($_SERVER['http_proxy']) ? $_SERVER['http_proxy'] : $_SERVER['HTTP_PROXY']);
-}
-
-
- if (!empty($_SERVER['CGI_HTTP_PROXY'])) {
-$proxy = parse_url($_SERVER['CGI_HTTP_PROXY']);
-}
-
-
- if (preg_match('{^https://}i', $url) && (!empty($_SERVER['HTTPS_PROXY']) || !empty($_SERVER['https_proxy']))) {
-$proxy = parse_url(!empty($_SERVER['https_proxy']) ? $_SERVER['https_proxy'] : $_SERVER['HTTPS_PROXY']);
-}
-
-
- if (!empty($_SERVER['NO_PROXY']) || !empty($_SERVER['no_proxy']) && parse_url($url, PHP_URL_HOST)) {
-$pattern = new NoProxyPattern(!empty($_SERVER['no_proxy']) ? $_SERVER['no_proxy'] : $_SERVER['NO_PROXY']);
-if ($pattern->test($url)) {
-unset($proxy);
-}
-}
-
-if (!empty($proxy)) {
-$proxyURL = isset($proxy['scheme']) ? $proxy['scheme'] . '://' : '';
-$proxyURL .= isset($proxy['host']) ? $proxy['host'] : '';
-
-if (isset($proxy['port'])) {
-$proxyURL .= ":" . $proxy['port'];
-} elseif ('http://' == substr($proxyURL, 0, 7)) {
-$proxyURL .= ":80";
-} elseif ('https://' == substr($proxyURL, 0, 8)) {
-$proxyURL .= ":443";
-}
-
-
- $proxyURL = str_replace(array('http://', 'https://'), array('tcp://', 'ssl://'), $proxyURL);
-
-if (0 === strpos($proxyURL, 'ssl:') && !extension_loaded('openssl')) {
-throw new \RuntimeException('You must enable the openssl extension to use a proxy over https');
-}
-
-$options['http']['proxy'] = $proxyURL;
-
-
- switch (parse_url($url, PHP_URL_SCHEME)) {
-case 'http': 
- $reqFullUriEnv = getenv('HTTP_PROXY_REQUEST_FULLURI');
-if ($reqFullUriEnv === false || $reqFullUriEnv === '' || (strtolower($reqFullUriEnv) !== 'false' && (bool) $reqFullUriEnv)) {
-$options['http']['request_fulluri'] = true;
-}
-break;
-case 'https': 
- $reqFullUriEnv = getenv('HTTPS_PROXY_REQUEST_FULLURI');
-if ($reqFullUriEnv === false || $reqFullUriEnv === '' || (strtolower($reqFullUriEnv) !== 'false' && (bool) $reqFullUriEnv)) {
-$options['http']['request_fulluri'] = true;
-}
-break;
-}
-
-
- if ('https' === parse_url($url, PHP_URL_SCHEME)) {
-$options['ssl']['SNI_enabled'] = true;
-if (PHP_VERSION_ID < 50600) {
-$options['ssl']['SNI_server_name'] = parse_url($url, PHP_URL_HOST);
-}
-}
-
-
- if (isset($proxy['user'])) {
-$auth = rawurldecode($proxy['user']);
-if (isset($proxy['pass'])) {
-$auth .= ':' . rawurldecode($proxy['pass']);
-}
-$auth = base64_encode($auth);
-
-
- if (isset($defaultOptions['http']['header'])) {
-if (is_string($defaultOptions['http']['header'])) {
-$defaultOptions['http']['header'] = array($defaultOptions['http']['header']);
-}
-$defaultOptions['http']['header'][] = "Proxy-Authorization: Basic {$auth}";
-} else {
-$options['http']['header'] = array("Proxy-Authorization: Basic {$auth}");
-}
-}
-}
-
-$options = array_replace_recursive($options, $defaultOptions);
-
-if (isset($options['http']['header'])) {
-$options['http']['header'] = self::fixHttpHeaderField($options['http']['header']);
-}
-
-if (defined('HHVM_VERSION')) {
-$phpVersion = 'HHVM ' . HHVM_VERSION;
-} else {
-$phpVersion = 'PHP ' . PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION . '.' . PHP_RELEASE_VERSION;
-}
-
-if (!isset($options['http']['header']) || false === stripos(implode('', $options['http']['header']), 'user-agent')) {
-$options['http']['header'][] = sprintf(
-'User-Agent: Composer/%s (%s; %s; %s%s)',
-Composer::VERSION === '@package_version@' ? 'source' : Composer::VERSION,
-function_exists('php_uname') ? php_uname('s') : 'Unknown',
-function_exists('php_uname') ? php_uname('r') : 'Unknown',
-$phpVersion,
-getenv('CI') ? '; CI' : ''
-);
-}
-
-return stream_context_create($options, $defaultParams);
-}
-
-
-
-
-
-
-
-
-
-
-
-private static function fixHttpHeaderField($header)
-{
-if (!is_array($header)) {
-$header = explode("\r\n", $header);
-}
-uasort($header, function ($el) {
-return stripos($el, 'content-type') === 0 ? 1 : -1;
-});
-
-return $header;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Util;
-
-use Composer\Config;
-use Composer\IO\IOInterface;
-
-
-
-
-
-class Svn
-{
-const MAX_QTY_AUTH_TRIES = 5;
-
-
-
-
-protected $credentials;
-
-
-
-
-protected $hasAuth;
-
-
-
-
-protected $io;
-
-
-
-
-protected $url;
-
-
-
-
-protected $cacheCredentials = true;
-
-
-
-
-protected $process;
-
-
-
-
-protected $qtyAuthTries = 0;
-
-
-
-
-protected $config;
-
-
-
-
-private static $version;
-
-
-
-
-
-
-
-public function __construct($url, IOInterface $io, Config $config, ProcessExecutor $process = null)
-{
-$this->url = $url;
-$this->io = $io;
-$this->config = $config;
-$this->process = $process ?: new ProcessExecutor($io);
-}
-
-public static function cleanEnv()
-{
-
- putenv("DYLD_LIBRARY_PATH");
-unset($_SERVER['DYLD_LIBRARY_PATH']);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function execute($command, $url, $cwd = null, $path = null, $verbose = false)
-{
-
- $this->config->prohibitUrlByConfig($url, $this->io);
-
-return $this->executeWithAuthRetry($command, $cwd, $url, $path, $verbose);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function executeLocal($command, $path, $cwd = null, $verbose = false)
-{
-
- return $this->executeWithAuthRetry($command, $cwd, '', $path, $verbose);
-}
-
-private function executeWithAuthRetry($svnCommand, $cwd, $url, $path, $verbose)
-{
-
- $command = $this->getCommand($svnCommand, $url, $path);
-
-$output = null;
-$io = $this->io;
-$handler = function ($type, $buffer) use (&$output, $io, $verbose) {
-if ($type !== 'out') {
-return;
-}
-if ('Redirecting to URL ' === substr($buffer, 0, 19)) {
-return;
-}
-$output .= $buffer;
-if ($verbose) {
-$io->writeError($buffer, false);
-}
-};
-$status = $this->process->execute($command, $handler, $cwd);
-if (0 === $status) {
-return $output;
-}
-
-$errorOutput = $this->process->getErrorOutput();
-$fullOutput = implode("\n", array($output, $errorOutput));
-
-
- if (false === stripos($fullOutput, 'Could not authenticate to server:')
-&& false === stripos($fullOutput, 'authorization failed')
-&& false === stripos($fullOutput, 'svn: E170001:')
-&& false === stripos($fullOutput, 'svn: E215004:')) {
-throw new \RuntimeException($fullOutput);
-}
-
-if (!$this->hasAuth()) {
-$this->doAuthDance();
-}
-
-
- if ($this->qtyAuthTries++ < self::MAX_QTY_AUTH_TRIES) {
-
- return $this->executeWithAuthRetry($svnCommand, $cwd, $url, $path, $verbose);
-}
-
-throw new \RuntimeException(
-'wrong credentials provided ('.$fullOutput.')'
-);
-}
-
-
-
-
-public function setCacheCredentials($cacheCredentials)
-{
-$this->cacheCredentials = $cacheCredentials;
-}
-
-
-
-
-
-
-
-protected function doAuthDance()
-{
-
- if (!$this->io->isInteractive()) {
-throw new \RuntimeException(
-'can not ask for authentication in non interactive mode'
-);
-}
-
-$this->io->writeError("The Subversion server ({$this->url}) requested credentials:");
-
-$this->hasAuth = true;
-$this->credentials['username'] = $this->io->ask("Username: ");
-$this->credentials['password'] = $this->io->askAndHideAnswer("Password: ");
-
-$this->cacheCredentials = $this->io->askConfirmation("Should Subversion cache these credentials? (yes/no) ", true);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-protected function getCommand($cmd, $url, $path = null)
-{
-$cmd = sprintf(
-'%s %s%s %s',
-$cmd,
-'--non-interactive ',
-$this->getCredentialString(),
-ProcessExecutor::escape($url)
-);
-
-if ($path) {
-$cmd .= ' ' . ProcessExecutor::escape($path);
-}
-
-return $cmd;
-}
-
-
-
-
-
-
-
-
-protected function getCredentialString()
-{
-if (!$this->hasAuth()) {
-return '';
-}
-
-return sprintf(
-' %s--username %s --password %s ',
-$this->getAuthCache(),
-ProcessExecutor::escape($this->getUsername()),
-ProcessExecutor::escape($this->getPassword())
-);
-}
-
-
-
-
-
-
-
-protected function getPassword()
-{
-if ($this->credentials === null) {
-throw new \LogicException("No svn auth detected.");
-}
-
-return isset($this->credentials['password']) ? $this->credentials['password'] : '';
-}
-
-
-
-
-
-
-
-protected function getUsername()
-{
-if ($this->credentials === null) {
-throw new \LogicException("No svn auth detected.");
-}
-
-return $this->credentials['username'];
-}
-
-
-
-
-
-
-protected function hasAuth()
-{
-if (null !== $this->hasAuth) {
-return $this->hasAuth;
-}
-
-if (false === $this->createAuthFromConfig()) {
-$this->createAuthFromUrl();
-}
-
-return $this->hasAuth;
-}
-
-
-
-
-
-
-protected function getAuthCache()
-{
-return $this->cacheCredentials ? '' : '--no-auth-cache ';
-}
-
-
-
-
-
-
-private function createAuthFromConfig()
-{
-if (!$this->config->has('http-basic')) {
-return $this->hasAuth = false;
-}
-
-$authConfig = $this->config->get('http-basic');
-
-$host = parse_url($this->url, PHP_URL_HOST);
-if (isset($authConfig[$host])) {
-$this->credentials['username'] = $authConfig[$host]['username'];
-$this->credentials['password'] = $authConfig[$host]['password'];
-
-return $this->hasAuth = true;
-}
-
-return $this->hasAuth = false;
-}
-
-
-
-
-
-
-private function createAuthFromUrl()
-{
-$uri = parse_url($this->url);
-if (empty($uri['user'])) {
-return $this->hasAuth = false;
-}
-
-$this->credentials['username'] = $uri['user'];
-if (!empty($uri['pass'])) {
-$this->credentials['password'] = $uri['pass'];
-}
-
-return $this->hasAuth = true;
-}
-
-
-
-
-
-
-public function binaryVersion()
-{
-if (!self::$version) {
-if (0 === $this->process->execute('svn --version', $output)) {
-if (preg_match('{(\d+(?:\.\d+)+)}', $output, $match)) {
-self::$version = $match[1];
-}
-}
-}
-
-return self::$version;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Util;
-
-use Composer\CaBundle\CaBundle;
-
-
-
-
-final class TlsHelper
-{
-private static $useOpensslParse;
-
-
-
-
-
-
-
-
-
-
-public static function checkCertificateHost($certificate, $hostname, &$cn = null)
-{
-$names = self::getCertificateNames($certificate);
-
-if (empty($names)) {
-return false;
-}
-
-$combinedNames = array_merge($names['san'], array($names['cn']));
-$hostname = strtolower($hostname);
-
-foreach ($combinedNames as $certName) {
-$matcher = self::certNameMatcher($certName);
-
-if ($matcher && $matcher($hostname)) {
-$cn = $names['cn'];
-
-return true;
-}
-}
-
-return false;
-}
-
-
-
-
-
-
-
-
-public static function getCertificateNames($certificate)
-{
-if (is_array($certificate)) {
-$info = $certificate;
-} elseif (CaBundle::isOpensslParseSafe()) {
-$info = openssl_x509_parse($certificate, false);
-}
-
-if (!isset($info['subject']['commonName'])) {
-return null;
-}
-
-$commonName = strtolower($info['subject']['commonName']);
-$subjectAltNames = array();
-
-if (isset($info['extensions']['subjectAltName'])) {
-$subjectAltNames = preg_split('{\s*,\s*}', $info['extensions']['subjectAltName']);
-$subjectAltNames = array_filter(array_map(function ($name) {
-if (0 === strpos($name, 'DNS:')) {
-return strtolower(ltrim(substr($name, 4)));
-}
-
-return null;
-}, $subjectAltNames));
-$subjectAltNames = array_values($subjectAltNames);
-}
-
-return array(
-'cn' => $commonName,
-'san' => $subjectAltNames,
-);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public static function getCertificateFingerprint($certificate)
-{
-$pubkeydetails = openssl_pkey_get_details(openssl_get_publickey($certificate));
-$pubkeypem = $pubkeydetails['key'];
-
- $start = '-----BEGIN PUBLIC KEY-----';
-$end = '-----END PUBLIC KEY-----';
-$pemtrim = substr($pubkeypem, strpos($pubkeypem, $start) + strlen($start), (strlen($pubkeypem) - strpos($pubkeypem, $end)) * (-1));
-$der = base64_decode($pemtrim);
-
-return sha1($der);
-}
-
-
-
-
-
-
-
-
-
-public static function isOpensslParseSafe()
-{
-return CaBundle::isOpensslParseSafe();
-}
-
-
-
-
-
-
-
-
-private static function certNameMatcher($certName)
-{
-$wildcards = substr_count($certName, '*');
-
-if (0 === $wildcards) {
-
- return function ($hostname) use ($certName) {
-return $hostname === $certName;
-};
-}
-
-if (1 === $wildcards) {
-$components = explode('.', $certName);
-
-if (3 > count($components)) {
-
- return;
-}
-
-$firstComponent = $components[0];
-
-
- if ('*' !== $firstComponent[strlen($firstComponent) - 1]) {
-return;
-}
-
-$wildcardRegex = preg_quote($certName);
-$wildcardRegex = str_replace('\\*', '[a-z0-9-]+', $wildcardRegex);
-$wildcardRegex = "{^{$wildcardRegex}$}";
-
-return function ($hostname) use ($wildcardRegex) {
-return 1 === preg_match($wildcardRegex, $hostname);
-};
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Util;
-
-use Composer\Config;
-
-
-
-
-class Url
-{
-public static function updateDistReference(Config $config, $url, $ref)
-{
-$host = parse_url($url, PHP_URL_HOST);
-
-if ($host === 'api.github.com' || $host === 'github.com' || $host === 'www.github.com') {
-if (preg_match('{^https?://(?:www\.)?github\.com/([^/]+)/([^/]+)/(zip|tar)ball/(.+)$}i', $url, $match)) {
-
- $url = 'https://api.github.com/repos/' . $match[1] . '/'. $match[2] . '/' . $match[3] . 'ball/' . $ref;
-} elseif (preg_match('{^https?://(?:www\.)?github\.com/([^/]+)/([^/]+)/archive/.+\.(zip|tar)(?:\.gz)?$}i', $url, $match)) {
-
- $url = 'https://api.github.com/repos/' . $match[1] . '/'. $match[2] . '/' . $match[3] . 'ball/' . $ref;
-} elseif (preg_match('{^https?://api\.github\.com/repos/([^/]+)/([^/]+)/(zip|tar)ball(?:/.+)?$}i', $url, $match)) {
-
- $url = 'https://api.github.com/repos/' . $match[1] . '/'. $match[2] . '/' . $match[3] . 'ball/' . $ref;
-}
-} elseif ($host === 'bitbucket.org' || $host === 'www.bitbucket.org') {
-if (preg_match('{^https?://(?:www\.)?bitbucket\.org/([^/]+)/([^/]+)/get/(.+)\.(zip|tar\.gz|tar\.bz2)$}i', $url, $match)) {
-
- $url = 'https://bitbucket.org/' . $match[1] . '/'. $match[2] . '/get/' . $ref . '.' . $match[4];
-}
-} elseif ($host === 'gitlab.com' || $host === 'www.gitlab.com') {
-if (preg_match('{^https?://(?:www\.)?gitlab\.com/api/v[34]/projects/([^/]+)/repository/archive\.(zip|tar\.gz|tar\.bz2|tar)\?sha=.+$}i', $url, $match)) {
-
- $url = 'https://gitlab.com/api/v4/projects/' . $match[1] . '/repository/archive.' . $match[2] . '?sha=' . $ref;
-}
-} elseif (in_array($host, $config->get('github-domains'), true)) {
-$url = preg_replace('{(/repos/[^/]+/[^/]+/(zip|tar)ball)(?:/.+)?$}i', '$1/'.$ref, $url);
-} elseif (in_array($host, $config->get('gitlab-domains'), true)) {
-$url = preg_replace('{(/api/v[34]/projects/[^/]+/repository/archive\.(?:zip|tar\.gz|tar\.bz2|tar)\?sha=).+$}i', '${1}'.$ref, $url);
-}
-
-return $url;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer;
-
-use Symfony\Component\Console\Output\OutputInterface;
-
-trigger_error('The ' . __NAMESPACE__ . '\XdebugHandler class is deprecated, use Composer\XdebugHandler\XdebugHandler instead,', E_USER_DEPRECATED);
-
-
-
-
-class XdebugHandler extends XdebugHandler\XdebugHandler
-{
-const ENV_ALLOW = 'COMPOSER_ALLOW_XDEBUG';
-const ENV_VERSION = 'COMPOSER_XDEBUG_VERSION';
-
-public function __construct(OutputInterface $output)
-{
-parent::__construct('composer', '--ansi');
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-function includeIfExists($file)
-{
-return file_exists($file) ? include $file : false;
-}
-
-if ((!$loader = includeIfExists(__DIR__.'/../vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__.'/../../../autoload.php'))) {
-echo 'You must set up the project dependencies using `composer install`'.PHP_EOL.
-'See https://getcomposer.org/download/ for instructions on installing Composer'.PHP_EOL;
-exit(1);
-}
-
-return $loader;
-<?php
-
-/*
- * This file is part of Composer.
- *
- * (c) Nils Adermann <naderman@naderman.de>
- *     Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Composer\Autoload;
-
-/**
- * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
- *
- *     $loader = new \Composer\Autoload\ClassLoader();
- *
- *     // register classes with namespaces
- *     $loader->add('Symfony\Component', __DIR__.'/component');
- *     $loader->add('Symfony',           __DIR__.'/framework');
- *
- *     // activate the autoloader
- *     $loader->register();
- *
- *     // to enable searching the include path (eg. for PEAR packages)
- *     $loader->setUseIncludePath(true);
- *
- * In this example, if you try to use a class in the Symfony\Component
- * namespace or one of its children (Symfony\Component\Console for instance),
- * the autoloader will first look for the class under the component/
- * directory, and it will then fallback to the framework/ directory if not
- * found before giving up.
- *
- * This class is loosely based on the Symfony UniversalClassLoader.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- * @author Jordi Boggiano <j.boggiano@seld.be>
- * @see    http://www.php-fig.org/psr/psr-0/
- * @see    http://www.php-fig.org/psr/psr-4/
- */
-class ClassLoader
-{
-    // PSR-4
-    private $prefixLengthsPsr4 = array();
-    private $prefixDirsPsr4 = array();
-    private $fallbackDirsPsr4 = array();
-
-    // PSR-0
-    private $prefixesPsr0 = array();
-    private $fallbackDirsPsr0 = array();
-
-    private $useIncludePath = false;
-    private $classMap = array();
-    private $classMapAuthoritative = false;
-    private $missingClasses = array();
-    private $apcuPrefix;
-
-    public function getPrefixes()
-    {
-        if (!empty($this->prefixesPsr0)) {
-            return call_user_func_array('array_merge', $this->prefixesPsr0);
-        }
-
-        return array();
-    }
-
-    public function getPrefixesPsr4()
-    {
-        return $this->prefixDirsPsr4;
-    }
-
-    public function getFallbackDirs()
-    {
-        return $this->fallbackDirsPsr0;
-    }
-
-    public function getFallbackDirsPsr4()
-    {
-        return $this->fallbackDirsPsr4;
-    }
-
-    public function getClassMap()
-    {
-        return $this->classMap;
-    }
-
-    /**
-     * @param array $classMap Class to filename map
-     */
-    public function addClassMap(array $classMap)
-    {
-        if ($this->classMap) {
-            $this->classMap = array_merge($this->classMap, $classMap);
-        } else {
-            $this->classMap = $classMap;
-        }
-    }
-
-    /**
-     * Registers a set of PSR-0 directories for a given prefix, either
-     * appending or prepending to the ones previously set for this prefix.
-     *
-     * @param string       $prefix  The prefix
-     * @param array|string $paths   The PSR-0 root directories
-     * @param bool         $prepend Whether to prepend the directories
-     */
-    public function add($prefix, $paths, $prepend = false)
-    {
-        if (!$prefix) {
-            if ($prepend) {
-                $this->fallbackDirsPsr0 = array_merge(
-                    (array) $paths,
-                    $this->fallbackDirsPsr0
-                );
-            } else {
-                $this->fallbackDirsPsr0 = array_merge(
-                    $this->fallbackDirsPsr0,
-                    (array) $paths
-                );
-            }
-
-            return;
-        }
-
-        $first = $prefix[0];
-        if (!isset($this->prefixesPsr0[$first][$prefix])) {
-            $this->prefixesPsr0[$first][$prefix] = (array) $paths;
-
-            return;
-        }
-        if ($prepend) {
-            $this->prefixesPsr0[$first][$prefix] = array_merge(
-                (array) $paths,
-                $this->prefixesPsr0[$first][$prefix]
-            );
-        } else {
-            $this->prefixesPsr0[$first][$prefix] = array_merge(
-                $this->prefixesPsr0[$first][$prefix],
-                (array) $paths
-            );
-        }
-    }
-
-    /**
-     * Registers a set of PSR-4 directories for a given namespace, either
-     * appending or prepending to the ones previously set for this namespace.
-     *
-     * @param string       $prefix  The prefix/namespace, with trailing '\\'
-     * @param array|string $paths   The PSR-4 base directories
-     * @param bool         $prepend Whether to prepend the directories
-     *
-     * @throws \InvalidArgumentException
-     */
-    public function addPsr4($prefix, $paths, $prepend = false)
-    {
-        if (!$prefix) {
-            // Register directories for the root namespace.
-            if ($prepend) {
-                $this->fallbackDirsPsr4 = array_merge(
-                    (array) $paths,
-                    $this->fallbackDirsPsr4
-                );
-            } else {
-                $this->fallbackDirsPsr4 = array_merge(
-                    $this->fallbackDirsPsr4,
-                    (array) $paths
-                );
-            }
-        } elseif (!isset($this->prefixDirsPsr4[$prefix])) {
-            // Register directories for a new namespace.
-            $length = strlen($prefix);
-            if ('\\' !== $prefix[$length - 1]) {
-                throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
-            }
-            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
-            $this->prefixDirsPsr4[$prefix] = (array) $paths;
-        } elseif ($prepend) {
-            // Prepend directories for an already registered namespace.
-            $this->prefixDirsPsr4[$prefix] = array_merge(
-                (array) $paths,
-                $this->prefixDirsPsr4[$prefix]
-            );
-        } else {
-            // Append directories for an already registered namespace.
-            $this->prefixDirsPsr4[$prefix] = array_merge(
-                $this->prefixDirsPsr4[$prefix],
-                (array) $paths
-            );
-        }
-    }
-
-    /**
-     * Registers a set of PSR-0 directories for a given prefix,
-     * replacing any others previously set for this prefix.
-     *
-     * @param string       $prefix The prefix
-     * @param array|string $paths  The PSR-0 base directories
-     */
-    public function set($prefix, $paths)
-    {
-        if (!$prefix) {
-            $this->fallbackDirsPsr0 = (array) $paths;
-        } else {
-            $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
-        }
-    }
-
-    /**
-     * Registers a set of PSR-4 directories for a given namespace,
-     * replacing any others previously set for this namespace.
-     *
-     * @param string       $prefix The prefix/namespace, with trailing '\\'
-     * @param array|string $paths  The PSR-4 base directories
-     *
-     * @throws \InvalidArgumentException
-     */
-    public function setPsr4($prefix, $paths)
-    {
-        if (!$prefix) {
-            $this->fallbackDirsPsr4 = (array) $paths;
-        } else {
-            $length = strlen($prefix);
-            if ('\\' !== $prefix[$length - 1]) {
-                throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
-            }
-            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
-            $this->prefixDirsPsr4[$prefix] = (array) $paths;
-        }
-    }
-
-    /**
-     * Turns on searching the include path for class files.
-     *
-     * @param bool $useIncludePath
-     */
-    public function setUseIncludePath($useIncludePath)
-    {
-        $this->useIncludePath = $useIncludePath;
-    }
-
-    /**
-     * Can be used to check if the autoloader uses the include path to check
-     * for classes.
-     *
-     * @return bool
-     */
-    public function getUseIncludePath()
-    {
-        return $this->useIncludePath;
-    }
-
-    /**
-     * Turns off searching the prefix and fallback directories for classes
-     * that have not been registered with the class map.
-     *
-     * @param bool $classMapAuthoritative
-     */
-    public function setClassMapAuthoritative($classMapAuthoritative)
-    {
-        $this->classMapAuthoritative = $classMapAuthoritative;
-    }
-
-    /**
-     * Should class lookup fail if not found in the current class map?
-     *
-     * @return bool
-     */
-    public function isClassMapAuthoritative()
-    {
-        return $this->classMapAuthoritative;
-    }
-
-    /**
-     * APCu prefix to use to cache found/not-found classes, if the extension is enabled.
-     *
-     * @param string|null $apcuPrefix
-     */
-    public function setApcuPrefix($apcuPrefix)
-    {
-        $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
-    }
-
-    /**
-     * The APCu prefix in use, or null if APCu caching is not enabled.
-     *
-     * @return string|null
-     */
-    public function getApcuPrefix()
-    {
-        return $this->apcuPrefix;
-    }
-
-    /**
-     * Registers this instance as an autoloader.
-     *
-     * @param bool $prepend Whether to prepend the autoloader or not
-     */
-    public function register($prepend = false)
-    {
-        spl_autoload_register(array($this, 'loadClass'), true, $prepend);
-    }
-
-    /**
-     * Unregisters this instance as an autoloader.
-     */
-    public function unregister()
-    {
-        spl_autoload_unregister(array($this, 'loadClass'));
-    }
-
-    /**
-     * Loads the given class or interface.
-     *
-     * @param  string    $class The name of the class
-     * @return bool|null True if loaded, null otherwise
-     */
-    public function loadClass($class)
-    {
-        if ($file = $this->findFile($class)) {
-            includeFile($file);
-
-            return true;
-        }
-    }
-
-    /**
-     * Finds the path to the file where the class is defined.
-     *
-     * @param string $class The name of the class
-     *
-     * @return string|false The path if found, false otherwise
-     */
-    public function findFile($class)
-    {
-        // class map lookup
-        if (isset($this->classMap[$class])) {
-            return $this->classMap[$class];
-        }
-        if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
-            return false;
-        }
-        if (null !== $this->apcuPrefix) {
-            $file = apcu_fetch($this->apcuPrefix.$class, $hit);
-            if ($hit) {
-                return $file;
-            }
-        }
-
-        $file = $this->findFileWithExtension($class, '.php');
-
-        // Search for Hack files if we are running on HHVM
-        if (false === $file && defined('HHVM_VERSION')) {
-            $file = $this->findFileWithExtension($class, '.hh');
-        }
-
-        if (null !== $this->apcuPrefix) {
-            apcu_add($this->apcuPrefix.$class, $file);
-        }
-
-        if (false === $file) {
-            // Remember that this class does not exist.
-            $this->missingClasses[$class] = true;
-        }
-
-        return $file;
-    }
-
-    private function findFileWithExtension($class, $ext)
-    {
-        // PSR-4 lookup
-        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
-
-        $first = $class[0];
-        if (isset($this->prefixLengthsPsr4[$first])) {
-            $subPath = $class;
-            while (false !== $lastPos = strrpos($subPath, '\\')) {
-                $subPath = substr($subPath, 0, $lastPos);
-                $search = $subPath . '\\';
-                if (isset($this->prefixDirsPsr4[$search])) {
-                    $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
-                    foreach ($this->prefixDirsPsr4[$search] as $dir) {
-                        if (file_exists($file = $dir . $pathEnd)) {
-                            return $file;
-                        }
-                    }
-                }
-            }
-        }
-
-        // PSR-4 fallback dirs
-        foreach ($this->fallbackDirsPsr4 as $dir) {
-            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
-                return $file;
-            }
-        }
-
-        // PSR-0 lookup
-        if (false !== $pos = strrpos($class, '\\')) {
-            // namespaced class name
-            $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
-                . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
-        } else {
-            // PEAR-like class name
-            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
-        }
-
-        if (isset($this->prefixesPsr0[$first])) {
-            foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
-                if (0 === strpos($class, $prefix)) {
-                    foreach ($dirs as $dir) {
-                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
-                            return $file;
-                        }
-                    }
-                }
-            }
-        }
-
-        // PSR-0 fallback dirs
-        foreach ($this->fallbackDirsPsr0 as $dir) {
-            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
-                return $file;
-            }
-        }
-
-        // PSR-0 include paths.
-        if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
-            return $file;
-        }
-
-        return false;
-    }
-}
-
-/**
- * Scope isolated include.
- *
- * Prevents access to $this/self from included files.
- */
-function includeFile($file)
-{
-    include $file;
-}
-{
-    "$schema": "http://json-schema.org/draft-04/schema#",
-    "description": "A representation of packages metadata.",
-    "type": "object",
-    "oneOf": [
-        { "required": [ "packages" ] },
-        { "required": [ "providers" ] },
-        { "required": [ "provider-includes", "providers-url" ] }
-    ],
-    "properties": {
-        "packages": {
-            "type": ["object", "array"],
-            "description": "A hashmap of package names in the form of <vendor>/<name>.",
-            "additionalProperties": { "$ref": "#/definitions/versions" }
-        },
-        "providers-url": {
-            "type": "string",
-            "description": "Endpoint to retrieve provider data from, e.g. '/p/%package%$%hash%.json'."
-        },
-        "provider-includes": {
-            "type": "object",
-            "description": "A hashmap of provider listings.",
-            "additionalProperties": { "$ref": "#/definitions/provider" }
-        },
-        "providers": {
-            "type": "object",
-            "description": "A hashmap of package names in the form of <vendor>/<name>.",
-            "additionalProperties": { "$ref": "#/definitions/provider" }
-        },
-        "notify-batch": {
-            "type": "string",
-            "description": "Endpoint to call after multiple packages have been installed, e.g. '/downloads/'."
-        },
-        "search": {
-            "type": "string",
-            "description": "Endpoint that provides search capabilities, e.g. '/search.json?q=%query%&type=%type%'."
-        },
-        "warning": {
-            "type": "string",
-            "description": "A message that will be output by Composer as a warning when this source is consulted."
-        }
-    },
-    "definitions": {
-        "versions": {
-            "type": "object",
-            "description": "A hashmap of versions and their metadata.",
-            "additionalProperties": { "$ref": "#/definitions/version" }
-        },
-        "version": {
-            "type": "object",
-            "oneOf": [
-                { "$ref": "#/definitions/package" },
-                { "$ref": "#/definitions/metapackage" }
-            ]
-        },
-        "package-base": {
-            "properties": {
-                "name": { "type": "string" },
-                "type": { "type": "string" },
-                "version": { "type": "string" },
-                "version_normalized": {
-                    "type": "string",
-                    "description": "Normalized version, optional but can save computational time on client side."
-                },
-                "autoload": { "type": "object" },
-                "require": { "type": "object" },
-                "replace": { "type": "object" },
-                "conflict": { "type": "object" },
-                "provide": { "type": "object" },
-                "time": { "type": "string" }
-            },
-            "additionalProperties": true
-        },
-        "package": {
-            "allOf": [
-                { "$ref": "#/definitions/package-base" },
-                {
-                    "properties": {
-                        "dist": { "type": "object" },
-                        "source": { "type": "object" }
-                    }
-                },
-                { "oneOf": [
-                    { "required": [ "name", "version", "source" ] },
-                    { "required": [ "name", "version", "dist" ] }
-                ] }
-            ]
-        },
-        "metapackage": {
-            "allOf": [
-                { "$ref": "#/definitions/package-base" },
-                {
-                    "properties": {
-                        "type": { "type": "string", "enum": [ "metapackage" ] }
-                    },
-                    "required": [ "name", "version", "type" ]
-                }
-            ]
-        },
-        "provider": {
-            "type": "object",
-            "properties": {
-                "sha256": {
-                    "type": "string",
-                    "description": "Hash value that can be used to validate the resource."
-                }
-            }
-        }
-    }
-}
-{
-    "$schema": "http://json-schema.org/draft-04/schema#",
-    "name": "Package",
-    "type": "object",
-    "additionalProperties": false,
-    "required": [ "name", "description" ],
-    "properties": {
-        "name": {
-            "type": "string",
-            "description": "Package name, including 'vendor-name/' prefix."
-        },
-        "type": {
-            "description": "Package type, either 'library' for common packages, 'composer-plugin' for plugins, 'metapackage' for empty packages, or a custom type ([a-z0-9-]+) defined by whatever project this package applies to.",
-            "type": "string"
-        },
-        "target-dir": {
-            "description": "DEPRECATED: Forces the package to be installed into the given subdirectory path. This is used for autoloading PSR-0 packages that do not contain their full path. Use forward slashes for cross-platform compatibility.",
-            "type": "string"
-        },
-        "description": {
-            "type": "string",
-            "description": "Short package description."
-        },
-        "keywords": {
-            "type": "array",
-            "items": {
-                "type": "string",
-                "description": "A tag/keyword that this package relates to."
-            }
-        },
-        "homepage": {
-            "type": "string",
-            "description": "Homepage URL for the project.",
-            "format": "uri"
-        },
-        "readme": {
-            "type": "string",
-            "description": "Relative path to the readme document."
-        },
-        "version": {
-            "type": "string",
-            "description": "Package version, see https://getcomposer.org/doc/04-schema.md#version for more info on valid schemes."
-        },
-        "time": {
-            "type": "string",
-            "description": "Package release date, in 'YYYY-MM-DD', 'YYYY-MM-DD HH:MM:SS' or 'YYYY-MM-DDTHH:MM:SSZ' format."
-        },
-        "license": {
-            "type": ["string", "array"],
-            "description": "License name. Or an array of license names."
-        },
-        "authors": {
-            "$ref": "#/definitions/authors"
-        },
-        "require": {
-            "type": "object",
-            "description": "This is a hash of package name (keys) and version constraints (values) that are required to run this package.",
-            "additionalProperties": {
-                "type": "string"
-            }
-        },
-        "replace": {
-            "type": "object",
-            "description": "This is a hash of package name (keys) and version constraints (values) that can be replaced by this package.",
-            "additionalProperties": {
-                "type": "string"
-            }
-        },
-        "conflict": {
-            "type": "object",
-            "description": "This is a hash of package name (keys) and version constraints (values) that conflict with this package.",
-            "additionalProperties": {
-                "type": "string"
-            }
-        },
-        "provide": {
-            "type": "object",
-            "description": "This is a hash of package name (keys) and version constraints (values) that this package provides in addition to this package's name.",
-            "additionalProperties": {
-                "type": "string"
-            }
-        },
-        "require-dev": {
-            "type": "object",
-            "description": "This is a hash of package name (keys) and version constraints (values) that this package requires for developing it (testing tools and such).",
-            "additionalProperties": {
-                "type": "string"
-            }
-        },
-        "suggest": {
-            "type": "object",
-            "description": "This is a hash of package name (keys) and descriptions (values) that this package suggests work well with it (this will be suggested to the user during installation).",
-            "additionalProperties": {
-                "type": "string"
-            }
-        },
-        "config": {
-            "type": "object",
-            "description": "Composer options.",
-            "properties": {
-                "process-timeout": {
-                    "type": "integer",
-                    "description": "The timeout in seconds for process executions, defaults to 300 (5mins)."
-                },
-                "use-include-path": {
-                    "type": "boolean",
-                    "description": "If true, the Composer autoloader will also look for classes in the PHP include path."
-                },
-                "preferred-install": {
-                    "type": ["string", "object"],
-                    "description": "The install method Composer will prefer to use, defaults to auto and can be any of source, dist, auto, or a hash of {\"pattern\": \"preference\"}."
-                },
-                "notify-on-install": {
-                    "type": "boolean",
-                    "description": "Composer allows repositories to define a notification URL, so that they get notified whenever a package from that repository is installed. This option allows you to disable that behaviour, defaults to true."
-                },
-                "github-protocols": {
-                    "type": "array",
-                    "description": "A list of protocols to use for github.com clones, in priority order, defaults to [\"git\", \"https\", \"http\"].",
-                    "items": {
-                        "type": "string"
-                    }
-                },
-                "github-oauth": {
-                    "type": "object",
-                    "description": "A hash of domain name => github API oauth tokens, typically {\"github.com\":\"<token>\"}.",
-                    "additionalProperties": {
-                        "type": "string"
-                    }
-                },
-                "gitlab-oauth": {
-                    "type": "object",
-                    "description": "A hash of domain name => gitlab API oauth tokens, typically {\"gitlab.com\":\"<token>\"}.",
-                    "additionalProperties": {
-                        "type": "string"
-                    }
-                },
-                "gitlab-token": {
-                    "type": "object",
-                    "description": "A hash of domain name => gitlab private tokens, typically {\"gitlab.com\":\"<token>\"}.",
-                    "additionalProperties": true
-                },
-                "disable-tls": {
-                    "type": "boolean",
-                    "description": "Defaults to `false`. If set to true all HTTPS URLs will be tried with HTTP instead and no network level encryption is performed. Enabling this is a security risk and is NOT recommended. The better way is to enable the php_openssl extension in php.ini."
-                },
-                "secure-http": {
-                    "type": "boolean",
-                    "description": "Defaults to `true`. If set to true only HTTPS URLs are allowed to be downloaded via Composer. If you really absolutely need HTTP access to something then you can disable it, but using \"Let's Encrypt\" to get a free SSL certificate is generally a better alternative."
-                },
-                "cafile": {
-                    "type": "string",
-                    "description": "A way to set the path to the openssl CA file. In PHP 5.6+ you should rather set this via openssl.cafile in php.ini, although PHP 5.6+ should be able to detect your system CA file automatically."
-                },
-                "capath": {
-                    "type": "string",
-                    "description": "If cafile is not specified or if the certificate is not found there, the directory pointed to by capath is searched for a suitable certificate. capath must be a correctly hashed certificate directory."
-                },
-                "http-basic": {
-                    "type": "object",
-                    "description": "A hash of domain name => {\"username\": \"...\", \"password\": \"...\"}.",
-                    "additionalProperties": {
-                        "type": "object",
-                        "required": ["username", "password"],
-                        "properties": {
-                            "username": {
-                                "type": "string",
-                                "description": "The username used for HTTP Basic authentication"
-                            },
-                            "password": {
-                                "type": "string",
-                                "description": "The password used for HTTP Basic authentication"
-                            }
-                        }
-                    }
-                },
-                "store-auths": {
-                    "type": ["string", "boolean"],
-                    "description": "What to do after prompting for authentication, one of: true (store), false (do not store) or \"prompt\" (ask every time), defaults to prompt."
-                },
-                "platform": {
-                    "type": "object",
-                    "description": "This is a hash of package name (keys) and version (values) that will be used to mock the platform packages on this machine.",
-                    "additionalProperties": {
-                        "type": "string"
-                    }
-                },
-                "vendor-dir": {
-                    "type": "string",
-                    "description": "The location where all packages are installed, defaults to \"vendor\"."
-                },
-                "bin-dir": {
-                    "type": "string",
-                    "description": "The location where all binaries are linked, defaults to \"vendor/bin\"."
-                },
-                "data-dir": {
-                    "type": "string",
-                    "description": "The location where old phar files are stored, defaults to \"$home\" except on XDG Base Directory compliant unixes."
-                },
-                "cache-dir": {
-                    "type": "string",
-                    "description": "The location where all caches are located, defaults to \"~/.composer/cache\" on *nix and \"%LOCALAPPDATA%\\Composer\" on windows."
-                },
-                "cache-files-dir": {
-                    "type": "string",
-                    "description": "The location where files (zip downloads) are cached, defaults to \"{$cache-dir}/files\"."
-                },
-                "cache-repo-dir": {
-                    "type": "string",
-                    "description": "The location where repo (git/hg repo clones) are cached, defaults to \"{$cache-dir}/repo\"."
-                },
-                "cache-vcs-dir": {
-                    "type": "string",
-                    "description": "The location where vcs infos (git clones, github api calls, etc. when reading vcs repos) are cached, defaults to \"{$cache-dir}/vcs\"."
-                },
-                "cache-ttl": {
-                    "type": "integer",
-                    "description": "The default cache time-to-live, defaults to 15552000 (6 months)."
-                },
-                "cache-files-ttl": {
-                    "type": "integer",
-                    "description": "The cache time-to-live for files, defaults to the value of cache-ttl."
-                },
-                "cache-files-maxsize": {
-                    "type": ["string", "integer"],
-                    "description": "The cache max size for the files cache, defaults to \"300MiB\"."
-                },
-                "bin-compat": {
-                    "enum": ["auto", "full"],
-                    "description": "The compatibility of the binaries, defaults to \"auto\" (automatically guessed) and can be \"full\" (compatible with both Windows and Unix-based systems)."
-                },
-                "discard-changes": {
-                    "type": ["string", "boolean"],
-                    "description": "The default style of handling dirty updates, defaults to false and can be any of true, false or \"stash\"."
-                },
-                "autoloader-suffix": {
-                    "type": "string",
-                    "description": "Optional string to be used as a suffix for the generated Composer autoloader. When null a random one will be generated."
-                },
-                "optimize-autoloader": {
-                    "type": "boolean",
-                    "description": "Always optimize when dumping the autoloader."
-                },
-                "prepend-autoloader": {
-                    "type": "boolean",
-                    "description": "If false, the composer autoloader will not be prepended to existing autoloaders, defaults to true."
-                },
-                "classmap-authoritative": {
-                    "type": "boolean",
-                    "description": "If true, the composer autoloader will not scan the filesystem for classes that are not found in the class map, defaults to false."
-                },
-                "apcu-autoloader": {
-                    "type": "boolean",
-                    "description": "If true, the Composer autoloader will check for APCu and use it to cache found/not-found classes when the extension is enabled, defaults to false."
-                },
-                "github-domains": {
-                    "type": "array",
-                    "description": "A list of domains to use in github mode. This is used for GitHub Enterprise setups, defaults to [\"github.com\"].",
-                    "items": {
-                        "type": "string"
-                    }
-                },
-                "github-expose-hostname": {
-                    "type": "boolean",
-                    "description": "Defaults to true. If set to false, the OAuth tokens created to access the github API will have a date instead of the machine hostname."
-                },
-                "gitlab-domains": {
-                    "type": "array",
-                    "description": "A list of domains to use in gitlab mode. This is used for custom GitLab setups, defaults to [\"gitlab.com\"].",
-                    "items": {
-                        "type": "string"
-                    }
-                },
-                "archive-format": {
-                    "type": "string",
-                    "description": "The default archiving format when not provided on cli, defaults to \"tar\"."
-                },
-                "archive-dir": {
-                    "type": "string",
-                    "description": "The default archive path when not provided on cli, defaults to \".\"."
-                },
-                "htaccess-protect": {
-                    "type": "boolean",
-                    "description": "Defaults to true. If set to false, Composer will not create .htaccess files in the composer home, cache, and data directories."
-                },
-                "sort-packages": {
-                    "type": "boolean",
-                    "description": "Defaults to false. If set to true, Composer will sort packages when adding/updating a new dependency."
-                }
-            }
-        },
-        "extra": {
-            "type": ["object", "array"],
-            "description": "Arbitrary extra data that can be used by plugins, for example, package of type composer-plugin may have a 'class' key defining an installer class name.",
-            "additionalProperties": true
-        },
-        "autoload": {
-            "$ref": "#/definitions/autoload"
-        },
-        "autoload-dev": {
-            "type": "object",
-            "description": "Description of additional autoload rules for development purpose (eg. a test suite).",
-            "properties": {
-                "psr-0": {
-                    "type": "object",
-                    "description": "This is a hash of namespaces (keys) and the directories they can be found into (values, can be arrays of paths) by the autoloader.",
-                    "additionalProperties": {
-                        "type": ["string", "array"],
-                        "items": {
-                            "type": "string"
-                        }
-                    }
-                },
-                "psr-4": {
-                    "type": "object",
-                    "description": "This is a hash of namespaces (keys) and the PSR-4 directories they can map to (values, can be arrays of paths) by the autoloader.",
-                    "additionalProperties": {
-                        "type": ["string", "array"],
-                        "items": {
-                            "type": "string"
-                        }
-                    }
-                },
-                "classmap": {
-                    "type": "array",
-                    "description": "This is an array of directories that contain classes to be included in the class-map generation process."
-                },
-                "files": {
-                    "type": "array",
-                    "description": "This is an array of files that are always required on every request."
-                }
-            }
-        },
-        "archive": {
-            "type": ["object"],
-            "description": "Options for creating package archives for distribution.",
-            "properties": {
-                "exclude": {
-                    "type": "array",
-                    "description": "A list of patterns for paths to exclude or include if prefixed with an exclamation mark."
-                }
-            }
-        },
-        "repositories": {
-            "type": ["object", "array"],
-            "description": "A set of additional repositories where packages can be found.",
-            "additionalProperties": {
-                "oneOf": [
-                    { "$ref": "#/definitions/repository" },
-                    { "type": "boolean", "enum": [false] }
-                ]
-            },
-            "items": {
-                "oneOf": [
-                    { "$ref": "#/definitions/repository" },
-                    {
-                        "type": "object",
-                        "additionalProperties": { "type": "boolean", "enum": [false] },
-                        "minProperties": 1,
-                        "maxProperties": 1
-                    }
-                ]
-            }
-        },
-        "minimum-stability": {
-            "type": ["string"],
-            "description": "The minimum stability the packages must have to be install-able. Possible values are: dev, alpha, beta, RC, stable.",
-            "pattern": "^dev|alpha|beta|rc|RC|stable$"
-        },
-        "prefer-stable": {
-            "type": ["boolean"],
-            "description": "If set to true, stable packages will be preferred to dev packages when possible, even if the minimum-stability allows unstable packages."
-        },
-        "bin": {
-            "type": ["string", "array"],
-            "description": "A set of files, or a single file, that should be treated as binaries and symlinked into bin-dir (from config).",
-            "items": {
-                "type": "string"
-            }
-        },
-        "include-path": {
-            "type": ["array"],
-            "description": "DEPRECATED: A list of directories which should get added to PHP's include path. This is only present to support legacy projects, and all new code should preferably use autoloading.",
-            "items": {
-                "type": "string"
-            }
-        },
-        "scripts": {
-            "type": ["object"],
-            "description": "Script listeners that will be executed before/after some events.",
-            "properties": {
-                "pre-install-cmd": {
-                    "type": ["array", "string"],
-                    "description": "Occurs before the install command is executed, contains one or more Class::method callables or shell commands."
-                },
-                "post-install-cmd": {
-                    "type": ["array", "string"],
-                    "description": "Occurs after the install command is executed, contains one or more Class::method callables or shell commands."
-                },
-                "pre-update-cmd": {
-                    "type": ["array", "string"],
-                    "description": "Occurs before the update command is executed, contains one or more Class::method callables or shell commands."
-                },
-                "post-update-cmd": {
-                    "type": ["array", "string"],
-                    "description": "Occurs after the update command is executed, contains one or more Class::method callables or shell commands."
-                },
-                "pre-status-cmd": {
-                    "type": ["array", "string"],
-                    "description": "Occurs before the status command is executed, contains one or more Class::method callables or shell commands."
-                },
-                "post-status-cmd": {
-                    "type": ["array", "string"],
-                    "description": "Occurs after the status command is executed, contains one or more Class::method callables or shell commands."
-                },
-                "pre-package-install": {
-                    "type": ["array", "string"],
-                    "description": "Occurs before a package is installed, contains one or more Class::method callables or shell commands."
-                },
-                "post-package-install": {
-                    "type": ["array", "string"],
-                    "description": "Occurs after a package is installed, contains one or more Class::method callables or shell commands."
-                },
-                "pre-package-update": {
-                    "type": ["array", "string"],
-                    "description": "Occurs before a package is updated, contains one or more Class::method callables or shell commands."
-                },
-                "post-package-update": {
-                    "type": ["array", "string"],
-                    "description": "Occurs after a package is updated, contains one or more Class::method callables or shell commands."
-                },
-                "pre-package-uninstall": {
-                    "type": ["array", "string"],
-                    "description": "Occurs before a package has been uninstalled, contains one or more Class::method callables or shell commands."
-                },
-                "post-package-uninstall": {
-                    "type": ["array", "string"],
-                    "description": "Occurs after a package has been uninstalled, contains one or more Class::method callables or shell commands."
-                },
-                "pre-autoload-dump": {
-                    "type": ["array", "string"],
-                    "description": "Occurs before the autoloader is dumped, contains one or more Class::method callables or shell commands."
-                },
-                "post-autoload-dump": {
-                    "type": ["array", "string"],
-                    "description": "Occurs after the autoloader is dumped, contains one or more Class::method callables or shell commands."
-                },
-                "post-root-package-install": {
-                    "type": ["array", "string"],
-                    "description": "Occurs after the root-package is installed, contains one or more Class::method callables or shell commands."
-                },
-                "post-create-project-cmd": {
-                    "type": ["array", "string"],
-                    "description": "Occurs after the create-project command is executed, contains one or more Class::method callables or shell commands."
-                }
-            }
-        },
-        "scripts-descriptions": {
-            "type": ["object"],
-            "description": "Descriptions for custom commands, shown in console help.",
-            "additionalProperties": {
-                "type": "string"
-            }
-        },
-        "support": {
-            "type": "object",
-            "properties": {
-                "email": {
-                    "type": "string",
-                    "description": "Email address for support.",
-                    "format": "email"
-                },
-                "issues": {
-                    "type": "string",
-                    "description": "URL to the issue tracker.",
-                    "format": "uri"
-                },
-                "forum": {
-                    "type": "string",
-                    "description": "URL to the forum.",
-                    "format": "uri"
-                },
-                "wiki": {
-                    "type": "string",
-                    "description": "URL to the wiki.",
-                    "format": "uri"
-                },
-                "irc": {
-                    "type": "string",
-                    "description": "IRC channel for support, as irc://server/channel.",
-                    "format": "uri"
-                },
-                "chat": {
-                    "type": "string",
-                    "description": "URL to the support chat.",
-                    "format": "uri"
-                },
-                "source": {
-                    "type": "string",
-                    "description": "URL to browse or download the sources.",
-                    "format": "uri"
-                },
-                "docs": {
-                    "type": "string",
-                    "description": "URL to the documentation.",
-                    "format": "uri"
-                },
-                "rss": {
-                    "type": "string",
-                    "description": "URL to the RSS feed.",
-                    "format": "uri"
-                }
-            }
-        },
-        "non-feature-branches": {
-            "type": ["array"],
-            "description": "A set of string or regex patterns for non-numeric branch names that will not be handled as feature branches.",
-            "items": {
-                "type": "string"
-            }
-        },
-        "abandoned": {
-            "type": ["boolean", "string"],
-            "description": "Indicates whether this package has been abandoned, it can be boolean or a package name/URL pointing to a recommended alternative. Defaults to false."
-        },
-        "_comment": {
-            "type": ["array", "string"],
-            "description": "A key to store comments in"
-        }
-    },
-    "definitions": {
-        "authors": {
-            "type": "array",
-            "description": "List of authors that contributed to the package. This is typically the main maintainers, not the full list.",
-            "items": {
-                "type": "object",
-                "additionalProperties": false,
-                "required": [ "name"],
-                "properties": {
-                    "name": {
-                        "type": "string",
-                        "description": "Full name of the author."
-                    },
-                    "email": {
-                        "type": "string",
-                        "description": "Email address of the author.",
-                        "format": "email"
-                    },
-                    "homepage": {
-                        "type": "string",
-                        "description": "Homepage URL for the author.",
-                        "format": "uri"
-                    },
-                    "role": {
-                        "type": "string",
-                        "description": "Author's role in the project."
-                    }
-                }
-            }
-        },
-        "autoload": {
-            "type": "object",
-            "description": "Description of how the package can be autoloaded.",
-            "properties": {
-                "psr-0": {
-                    "type": "object",
-                    "description": "This is a hash of namespaces (keys) and the directories they can be found in (values, can be arrays of paths) by the autoloader.",
-                    "additionalProperties": {
-                        "type": ["string", "array"],
-                        "items": {
-                            "type": "string"
-                        }
-                    }
-                },
-                "psr-4": {
-                    "type": "object",
-                    "description": "This is a hash of namespaces (keys) and the PSR-4 directories they can map to (values, can be arrays of paths) by the autoloader.",
-                    "additionalProperties": {
-                        "type": ["string", "array"],
-                        "items": {
-                            "type": "string"
-                        }
-                    }
-                },
-                "classmap": {
-                    "type": "array",
-                    "description": "This is an array of directories that contain classes to be included in the class-map generation process."
-                },
-                "files": {
-                    "type": "array",
-                    "description": "This is an array of files that are always required on every request."
-                },
-                "exclude-from-classmap": {
-                    "type": "array",
-                    "description": "This is an array of patterns to exclude from autoload classmap generation. (e.g. \"exclude-from-classmap\": [\"/test/\", \"/tests/\", \"/Tests/\"]"
-                }
-            }
-        },
-        "repository": {
-            "type": "object",
-            "oneOf": [
-                { "$ref": "#/definitions/composer-repository" },
-                { "$ref": "#/definitions/vcs-repository" },
-                { "$ref": "#/definitions/path-repository" },
-                { "$ref": "#/definitions/artifact-repository" },
-                { "$ref": "#/definitions/pear-repository" },
-                { "$ref": "#/definitions/package-repository" }
-            ]
-        },
-        "composer-repository": {
-            "type": "object",
-            "required": ["type", "url"],
-            "properties": {
-                "type": { "type": "string", "enum": ["composer"] },
-                "url": { "type": "string" },
-                "options": {
-                    "type": "object",
-                    "additionalProperties": true
-                },
-                "allow_ssl_downgrade": { "type": "boolean" },
-                "force-lazy-providers": { "type": "boolean" }
-            }
-        },
-        "vcs-repository": {
-            "type": "object",
-            "required": ["type", "url"],
-            "properties": {
-                "type": { "type": "string", "enum": ["vcs", "github", "git", "gitlab", "git-bitbucket", "hg", "hg-bitbucket", "fossil", "perforce", "svn"] },
-                "url": { "type": "string" },
-                "no-api": { "type": "boolean" },
-                "secure-http": { "type": "boolean" },
-                "svn-cache-credentials": { "type": "boolean" },
-                "trunk-path": { "type": ["string", "boolean"] },
-                "branches-path": { "type": ["string", "boolean"] },
-                "tags-path": { "type": ["string", "boolean"] },
-                "package-path": { "type": "string" },
-                "depot": { "type": "string" },
-                "branch": { "type": "string" },
-                "unique_perforce_client_name": { "type": "string" },
-                "p4user": { "type": "string" },
-                "p4password": { "type": "string" }
-            }
-        },
-        "path-repository": {
-            "type": "object",
-            "required": ["type", "url"],
-            "properties": {
-                "type": { "type": "string", "enum": ["path"] },
-                "url": { "type": "string" },
-                "options": {
-                    "type": "object",
-                    "properties": {
-                        "symlink": { "type": ["boolean", "null"] }
-                    },
-                    "additionalProperties": true
-                }
-            }
-        },
-        "artifact-repository": {
-            "type": "object",
-            "required": ["type", "url"],
-            "properties": {
-                "type": { "type": "string", "enum": ["artifact"] },
-                "url": { "type": "string" }
-            }
-        },
-        "pear-repository": {
-            "type": "object",
-            "required": ["type", "url"],
-            "properties": {
-                "type": { "type": "string", "enum": ["pear"] },
-                "url": { "type": "string" },
-                "vendor-alias": { "type": "string" }
-            }
-        },
-        "package-repository": {
-            "type": "object",
-            "required": ["type", "package"],
-            "properties": {
-                "type": { "type": "string", "enum": ["package"] },
-                "package": {
-                    "oneOf": [
-                        { "$ref": "#/definitions/inline-package" },
-                        {
-                            "type": "array",
-                            "items": { "$ref": "#/definitions/inline-package" }
-                        }
-                    ]
-                }
-            }
-        },
-        "inline-package": {
-            "type": "object",
-            "required": ["name", "version"],
-            "properties": {
-                "name": {
-                    "type": "string",
-                    "description": "Package name, including 'vendor-name/' prefix."
-                },
-                "type": {
-                    "type": "string"
-                },
-                "target-dir": {
-                    "description": "DEPRECATED: Forces the package to be installed into the given subdirectory path. This is used for autoloading PSR-0 packages that do not contain their full path. Use forward slashes for cross-platform compatibility.",
-                    "type": "string"
-                },
-                "description": {
-                    "type": "string"
-                },
-                "keywords": {
-                    "type": "array",
-                    "items": {
-                        "type": "string"
-                    }
-                },
-                "homepage": {
-                    "type": "string",
-                    "format": "uri"
-                },
-                "version": {
-                    "type": "string"
-                },
-                "time": {
-                    "type": "string"
-                },
-                "license": {
-                    "type": [
-                        "string",
-                        "array"
-                    ]
-                },
-                "authors": {
-                    "$ref": "#/definitions/authors"
-                },
-                "require": {
-                    "type": "object",
-                    "additionalProperties": {
-                        "type": "string"
-                    }
-                },
-                "replace": {
-                    "type": "object",
-                    "additionalProperties": {
-                        "type": "string"
-                    }
-                },
-                "conflict": {
-                    "type": "object",
-                    "additionalProperties": {
-                        "type": "string"
-                    }
-                },
-                "provide": {
-                    "type": "object",
-                    "additionalProperties": {
-                        "type": "string"
-                    }
-                },
-                "require-dev": {
-                    "type": "object",
-                    "additionalProperties": {
-                        "type": "string"
-                    }
-                },
-                "suggest": {
-                    "type": "object",
-                    "additionalProperties": {
-                        "type": "string"
-                    }
-                },
-                "extra": {
-                    "type": ["object", "array"],
-                    "additionalProperties": true
-                },
-                "autoload": {
-                    "$ref": "#/definitions/autoload"
-                },
-                "archive": {
-                    "type": ["object"],
-                    "properties": {
-                        "exclude": {
-                            "type": "array"
-                        }
-                    }
-                },
-                "bin": {
-                    "type": ["string", "array"],
-                    "description": "A set of files, or a single file, that should be treated as binaries and symlinked into bin-dir (from config).",
-                    "items": {
-                        "type": "string"
-                    }
-                },
-                "include-path": {
-                    "type": ["array"],
-                    "description": "DEPRECATED: A list of directories which should get added to PHP's include path. This is only present to support legacy projects, and all new code should preferably use autoloading.",
-                    "items": {
-                        "type": "string"
-                    }
-                },
-                "source": {
-                    "type": "object",
-                    "required": ["type", "url", "reference"],
-                    "properties": {
-                        "type": {
-                            "type": "string"
-                        },
-                        "url": {
-                            "type": "string"
-                        },
-                        "reference": {
-                            "type": "string"
-                        },
-                        "mirrors": {
-                            "type": "array"
-                        }
-                    }
-                },
-                "dist": {
-                    "type": "object",
-                    "required": ["type", "url"],
-                    "properties": {
-                        "type": {
-                            "type": "string"
-                        },
-                        "url": {
-                            "type": "string"
-                        },
-                        "reference": {
-                            "type": "string"
-                        },
-                        "shasum": {
-                            "type": "string"
-                        },
-                        "mirrors": {
-                            "type": "array"
-                        }
-                    }
-                }
-            },
-            "additionalProperties": true
-        }
-    }
-}
-{
-    "389-exception": [
-        "389 Directory Server Exception"
-    ],
-    "Autoconf-exception-2.0": [
-        "Autoconf exception 2.0"
-    ],
-    "Autoconf-exception-3.0": [
-        "Autoconf exception 3.0"
-    ],
-    "Bison-exception-2.2": [
-        "Bison exception 2.2"
-    ],
-    "Bootloader-exception": [
-        "Bootloader Distribution Exception"
-    ],
-    "Classpath-exception-2.0": [
-        "Classpath exception 2.0"
-    ],
-    "CLISP-exception-2.0": [
-        "CLISP exception 2.0"
-    ],
-    "DigiRule-FOSS-exception": [
-        "DigiRule FOSS License Exception"
-    ],
-    "eCos-exception-2.0": [
-        "eCos exception 2.0"
-    ],
-    "Fawkes-Runtime-exception": [
-        "Fawkes Runtime Exception"
-    ],
-    "FLTK-exception": [
-        "FLTK exception"
-    ],
-    "Font-exception-2.0": [
-        "Font exception 2.0"
-    ],
-    "freertos-exception-2.0": [
-        "FreeRTOS Exception 2.0"
-    ],
-    "GCC-exception-2.0": [
-        "GCC Runtime Library exception 2.0"
-    ],
-    "GCC-exception-3.1": [
-        "GCC Runtime Library exception 3.1"
-    ],
-    "gnu-javamail-exception": [
-        "GNU JavaMail exception"
-    ],
-    "i2p-gpl-java-exception": [
-        "i2p GPL+Java Exception"
-    ],
-    "Libtool-exception": [
-        "Libtool Exception"
-    ],
-    "Linux-syscall-note": [
-        "Linux Syscall Note"
-    ],
-    "LLVM-exception": [
-        "LLVM Exception"
-    ],
-    "LZMA-exception": [
-        "LZMA exception"
-    ],
-    "mif-exception": [
-        "Macros and Inline Functions Exception"
-    ],
-    "Nokia-Qt-exception-1.1": [
-        "Nokia Qt LGPL exception 1.1"
-    ],
-    "OCaml-LGPL-linking-exception": [
-        "OCaml LGPL Linking Exception"
-    ],
-    "OCCT-exception-1.0": [
-        "Open CASCADE Exception 1.0"
-    ],
-    "OpenJDK-assembly-exception-1.0": [
-        "OpenJDK Assembly exception 1.0"
-    ],
-    "openvpn-openssl-exception": [
-        "OpenVPN OpenSSL Exception"
-    ],
-    "PS-or-PDF-font-exception-20170817": [
-        "PS/PDF font exception (2017-08-17)"
-    ],
-    "Qt-GPL-exception-1.0": [
-        "Qt GPL exception 1.0"
-    ],
-    "Qt-LGPL-exception-1.1": [
-        "Qt LGPL exception 1.1"
-    ],
-    "Qwt-exception-1.0": [
-        "Qwt exception 1.0"
-    ],
-    "u-boot-exception-2.0": [
-        "U-Boot exception 2.0"
-    ],
-    "WxWindows-exception-3.1": [
-        "WxWindows Library Exception 3.1"
-    ]
-}{
-    "0BSD": [
-        "BSD Zero Clause License",
-        false,
-        false
-    ],
-    "AAL": [
-        "Attribution Assurance License",
-        true,
-        false
-    ],
-    "Abstyles": [
-        "Abstyles License",
-        false,
-        false
-    ],
-    "Adobe-2006": [
-        "Adobe Systems Incorporated Source Code License Agreement",
-        false,
-        false
-    ],
-    "Adobe-Glyph": [
-        "Adobe Glyph List License",
-        false,
-        false
-    ],
-    "ADSL": [
-        "Amazon Digital Services License",
-        false,
-        false
-    ],
-    "AFL-1.1": [
-        "Academic Free License v1.1",
-        true,
-        false
-    ],
-    "AFL-1.2": [
-        "Academic Free License v1.2",
-        true,
-        false
-    ],
-    "AFL-2.0": [
-        "Academic Free License v2.0",
-        true,
-        false
-    ],
-    "AFL-2.1": [
-        "Academic Free License v2.1",
-        true,
-        false
-    ],
-    "AFL-3.0": [
-        "Academic Free License v3.0",
-        true,
-        false
-    ],
-    "Afmparse": [
-        "Afmparse License",
-        false,
-        false
-    ],
-    "AGPL-1.0": [
-        "Affero General Public License v1.0",
-        false,
-        true
-    ],
-    "AGPL-1.0-only": [
-        "Affero General Public License v1.0 only",
-        false,
-        false
-    ],
-    "AGPL-1.0-or-later": [
-        "Affero General Public License v1.0 or later",
-        false,
-        false
-    ],
-    "AGPL-3.0": [
-        "GNU Affero General Public License v3.0",
-        true,
-        true
-    ],
-    "AGPL-3.0-only": [
-        "GNU Affero General Public License v3.0 only",
-        true,
-        false
-    ],
-    "AGPL-3.0-or-later": [
-        "GNU Affero General Public License v3.0 or later",
-        true,
-        false
-    ],
-    "Aladdin": [
-        "Aladdin Free Public License",
-        false,
-        false
-    ],
-    "AMDPLPA": [
-        "AMD's plpa_map.c License",
-        false,
-        false
-    ],
-    "AML": [
-        "Apple MIT License",
-        false,
-        false
-    ],
-    "AMPAS": [
-        "Academy of Motion Picture Arts and Sciences BSD",
-        false,
-        false
-    ],
-    "ANTLR-PD": [
-        "ANTLR Software Rights Notice",
-        false,
-        false
-    ],
-    "Apache-1.0": [
-        "Apache License 1.0",
-        false,
-        false
-    ],
-    "Apache-1.1": [
-        "Apache License 1.1",
-        true,
-        false
-    ],
-    "Apache-2.0": [
-        "Apache License 2.0",
-        true,
-        false
-    ],
-    "APAFML": [
-        "Adobe Postscript AFM License",
-        false,
-        false
-    ],
-    "APL-1.0": [
-        "Adaptive Public License 1.0",
-        true,
-        false
-    ],
-    "APSL-1.0": [
-        "Apple Public Source License 1.0",
-        true,
-        false
-    ],
-    "APSL-1.1": [
-        "Apple Public Source License 1.1",
-        true,
-        false
-    ],
-    "APSL-1.2": [
-        "Apple Public Source License 1.2",
-        true,
-        false
-    ],
-    "APSL-2.0": [
-        "Apple Public Source License 2.0",
-        true,
-        false
-    ],
-    "Artistic-1.0": [
-        "Artistic License 1.0",
-        true,
-        false
-    ],
-    "Artistic-1.0-cl8": [
-        "Artistic License 1.0 w/clause 8",
-        true,
-        false
-    ],
-    "Artistic-1.0-Perl": [
-        "Artistic License 1.0 (Perl)",
-        true,
-        false
-    ],
-    "Artistic-2.0": [
-        "Artistic License 2.0",
-        true,
-        false
-    ],
-    "Bahyph": [
-        "Bahyph License",
-        false,
-        false
-    ],
-    "Barr": [
-        "Barr License",
-        false,
-        false
-    ],
-    "Beerware": [
-        "Beerware License",
-        false,
-        false
-    ],
-    "BitTorrent-1.0": [
-        "BitTorrent Open Source License v1.0",
-        false,
-        false
-    ],
-    "BitTorrent-1.1": [
-        "BitTorrent Open Source License v1.1",
-        false,
-        false
-    ],
-    "Borceux": [
-        "Borceux license",
-        false,
-        false
-    ],
-    "BSD-1-Clause": [
-        "BSD 1-Clause License",
-        false,
-        false
-    ],
-    "BSD-2-Clause": [
-        "BSD 2-Clause \"Simplified\" License",
-        true,
-        false
-    ],
-    "BSD-2-Clause-FreeBSD": [
-        "BSD 2-Clause FreeBSD License",
-        false,
-        false
-    ],
-    "BSD-2-Clause-NetBSD": [
-        "BSD 2-Clause NetBSD License",
-        false,
-        false
-    ],
-    "BSD-2-Clause-Patent": [
-        "BSD-2-Clause Plus Patent License",
-        true,
-        false
-    ],
-    "BSD-3-Clause": [
-        "BSD 3-Clause \"New\" or \"Revised\" License",
-        true,
-        false
-    ],
-    "BSD-3-Clause-Attribution": [
-        "BSD with attribution",
-        false,
-        false
-    ],
-    "BSD-3-Clause-Clear": [
-        "BSD 3-Clause Clear License",
-        false,
-        false
-    ],
-    "BSD-3-Clause-LBNL": [
-        "Lawrence Berkeley National Labs BSD variant license",
-        false,
-        false
-    ],
-    "BSD-3-Clause-No-Nuclear-License": [
-        "BSD 3-Clause No Nuclear License",
-        false,
-        false
-    ],
-    "BSD-3-Clause-No-Nuclear-License-2014": [
-        "BSD 3-Clause No Nuclear License 2014",
-        false,
-        false
-    ],
-    "BSD-3-Clause-No-Nuclear-Warranty": [
-        "BSD 3-Clause No Nuclear Warranty",
-        false,
-        false
-    ],
-    "BSD-4-Clause": [
-        "BSD 4-Clause \"Original\" or \"Old\" License",
-        false,
-        false
-    ],
-    "BSD-4-Clause-UC": [
-        "BSD-4-Clause (University of California-Specific)",
-        false,
-        false
-    ],
-    "BSD-Protection": [
-        "BSD Protection License",
-        false,
-        false
-    ],
-    "BSD-Source-Code": [
-        "BSD Source Code Attribution",
-        false,
-        false
-    ],
-    "BSL-1.0": [
-        "Boost Software License 1.0",
-        true,
-        false
-    ],
-    "bzip2-1.0.5": [
-        "bzip2 and libbzip2 License v1.0.5",
-        false,
-        false
-    ],
-    "bzip2-1.0.6": [
-        "bzip2 and libbzip2 License v1.0.6",
-        false,
-        false
-    ],
-    "Caldera": [
-        "Caldera License",
-        false,
-        false
-    ],
-    "CATOSL-1.1": [
-        "Computer Associates Trusted Open Source License 1.1",
-        true,
-        false
-    ],
-    "CC-BY-1.0": [
-        "Creative Commons Attribution 1.0 Generic",
-        false,
-        false
-    ],
-    "CC-BY-2.0": [
-        "Creative Commons Attribution 2.0 Generic",
-        false,
-        false
-    ],
-    "CC-BY-2.5": [
-        "Creative Commons Attribution 2.5 Generic",
-        false,
-        false
-    ],
-    "CC-BY-3.0": [
-        "Creative Commons Attribution 3.0 Unported",
-        false,
-        false
-    ],
-    "CC-BY-4.0": [
-        "Creative Commons Attribution 4.0 International",
-        false,
-        false
-    ],
-    "CC-BY-NC-1.0": [
-        "Creative Commons Attribution Non Commercial 1.0 Generic",
-        false,
-        false
-    ],
-    "CC-BY-NC-2.0": [
-        "Creative Commons Attribution Non Commercial 2.0 Generic",
-        false,
-        false
-    ],
-    "CC-BY-NC-2.5": [
-        "Creative Commons Attribution Non Commercial 2.5 Generic",
-        false,
-        false
-    ],
-    "CC-BY-NC-3.0": [
-        "Creative Commons Attribution Non Commercial 3.0 Unported",
-        false,
-        false
-    ],
-    "CC-BY-NC-4.0": [
-        "Creative Commons Attribution Non Commercial 4.0 International",
-        false,
-        false
-    ],
-    "CC-BY-NC-ND-1.0": [
-        "Creative Commons Attribution Non Commercial No Derivatives 1.0 Generic",
-        false,
-        false
-    ],
-    "CC-BY-NC-ND-2.0": [
-        "Creative Commons Attribution Non Commercial No Derivatives 2.0 Generic",
-        false,
-        false
-    ],
-    "CC-BY-NC-ND-2.5": [
-        "Creative Commons Attribution Non Commercial No Derivatives 2.5 Generic",
-        false,
-        false
-    ],
-    "CC-BY-NC-ND-3.0": [
-        "Creative Commons Attribution Non Commercial No Derivatives 3.0 Unported",
-        false,
-        false
-    ],
-    "CC-BY-NC-ND-4.0": [
-        "Creative Commons Attribution Non Commercial No Derivatives 4.0 International",
-        false,
-        false
-    ],
-    "CC-BY-NC-SA-1.0": [
-        "Creative Commons Attribution Non Commercial Share Alike 1.0 Generic",
-        false,
-        false
-    ],
-    "CC-BY-NC-SA-2.0": [
-        "Creative Commons Attribution Non Commercial Share Alike 2.0 Generic",
-        false,
-        false
-    ],
-    "CC-BY-NC-SA-2.5": [
-        "Creative Commons Attribution Non Commercial Share Alike 2.5 Generic",
-        false,
-        false
-    ],
-    "CC-BY-NC-SA-3.0": [
-        "Creative Commons Attribution Non Commercial Share Alike 3.0 Unported",
-        false,
-        false
-    ],
-    "CC-BY-NC-SA-4.0": [
-        "Creative Commons Attribution Non Commercial Share Alike 4.0 International",
-        false,
-        false
-    ],
-    "CC-BY-ND-1.0": [
-        "Creative Commons Attribution No Derivatives 1.0 Generic",
-        false,
-        false
-    ],
-    "CC-BY-ND-2.0": [
-        "Creative Commons Attribution No Derivatives 2.0 Generic",
-        false,
-        false
-    ],
-    "CC-BY-ND-2.5": [
-        "Creative Commons Attribution No Derivatives 2.5 Generic",
-        false,
-        false
-    ],
-    "CC-BY-ND-3.0": [
-        "Creative Commons Attribution No Derivatives 3.0 Unported",
-        false,
-        false
-    ],
-    "CC-BY-ND-4.0": [
-        "Creative Commons Attribution No Derivatives 4.0 International",
-        false,
-        false
-    ],
-    "CC-BY-SA-1.0": [
-        "Creative Commons Attribution Share Alike 1.0 Generic",
-        false,
-        false
-    ],
-    "CC-BY-SA-2.0": [
-        "Creative Commons Attribution Share Alike 2.0 Generic",
-        false,
-        false
-    ],
-    "CC-BY-SA-2.5": [
-        "Creative Commons Attribution Share Alike 2.5 Generic",
-        false,
-        false
-    ],
-    "CC-BY-SA-3.0": [
-        "Creative Commons Attribution Share Alike 3.0 Unported",
-        false,
-        false
-    ],
-    "CC-BY-SA-4.0": [
-        "Creative Commons Attribution Share Alike 4.0 International",
-        false,
-        false
-    ],
-    "CC0-1.0": [
-        "Creative Commons Zero v1.0 Universal",
-        false,
-        false
-    ],
-    "CDDL-1.0": [
-        "Common Development and Distribution License 1.0",
-        true,
-        false
-    ],
-    "CDDL-1.1": [
-        "Common Development and Distribution License 1.1",
-        false,
-        false
-    ],
-    "CDLA-Permissive-1.0": [
-        "Community Data License Agreement Permissive 1.0",
-        false,
-        false
-    ],
-    "CDLA-Sharing-1.0": [
-        "Community Data License Agreement Sharing 1.0",
-        false,
-        false
-    ],
-    "CECILL-1.0": [
-        "CeCILL Free Software License Agreement v1.0",
-        false,
-        false
-    ],
-    "CECILL-1.1": [
-        "CeCILL Free Software License Agreement v1.1",
-        false,
-        false
-    ],
-    "CECILL-2.0": [
-        "CeCILL Free Software License Agreement v2.0",
-        false,
-        false
-    ],
-    "CECILL-2.1": [
-        "CeCILL Free Software License Agreement v2.1",
-        true,
-        false
-    ],
-    "CECILL-B": [
-        "CeCILL-B Free Software License Agreement",
-        false,
-        false
-    ],
-    "CECILL-C": [
-        "CeCILL-C Free Software License Agreement",
-        false,
-        false
-    ],
-    "ClArtistic": [
-        "Clarified Artistic License",
-        false,
-        false
-    ],
-    "CNRI-Jython": [
-        "CNRI Jython License",
-        false,
-        false
-    ],
-    "CNRI-Python": [
-        "CNRI Python License",
-        true,
-        false
-    ],
-    "CNRI-Python-GPL-Compatible": [
-        "CNRI Python Open Source GPL Compatible License Agreement",
-        false,
-        false
-    ],
-    "Condor-1.1": [
-        "Condor Public License v1.1",
-        false,
-        false
-    ],
-    "copyleft-next-0.3.1": [
-        "copyleft-next 0.3.1",
-        false,
-        false
-    ],
-    "CPAL-1.0": [
-        "Common Public Attribution License 1.0",
-        true,
-        false
-    ],
-    "CPL-1.0": [
-        "Common Public License 1.0",
-        true,
-        false
-    ],
-    "CPOL-1.02": [
-        "Code Project Open License 1.02",
-        false,
-        false
-    ],
-    "Crossword": [
-        "Crossword License",
-        false,
-        false
-    ],
-    "CrystalStacker": [
-        "CrystalStacker License",
-        false,
-        false
-    ],
-    "CUA-OPL-1.0": [
-        "CUA Office Public License v1.0",
-        true,
-        false
-    ],
-    "Cube": [
-        "Cube License",
-        false,
-        false
-    ],
-    "curl": [
-        "curl License",
-        false,
-        false
-    ],
-    "D-FSL-1.0": [
-        "Deutsche Freie Software Lizenz",
-        false,
-        false
-    ],
-    "diffmark": [
-        "diffmark license",
-        false,
-        false
-    ],
-    "DOC": [
-        "DOC License",
-        false,
-        false
-    ],
-    "Dotseqn": [
-        "Dotseqn License",
-        false,
-        false
-    ],
-    "DSDP": [
-        "DSDP License",
-        false,
-        false
-    ],
-    "dvipdfm": [
-        "dvipdfm License",
-        false,
-        false
-    ],
-    "ECL-1.0": [
-        "Educational Community License v1.0",
-        true,
-        false
-    ],
-    "ECL-2.0": [
-        "Educational Community License v2.0",
-        true,
-        false
-    ],
-    "eCos-2.0": [
-        "eCos license version 2.0",
-        false,
-        true
-    ],
-    "EFL-1.0": [
-        "Eiffel Forum License v1.0",
-        true,
-        false
-    ],
-    "EFL-2.0": [
-        "Eiffel Forum License v2.0",
-        true,
-        false
-    ],
-    "eGenix": [
-        "eGenix.com Public License 1.1.0",
-        false,
-        false
-    ],
-    "Entessa": [
-        "Entessa Public License v1.0",
-        true,
-        false
-    ],
-    "EPL-1.0": [
-        "Eclipse Public License 1.0",
-        true,
-        false
-    ],
-    "EPL-2.0": [
-        "Eclipse Public License 2.0",
-        true,
-        false
-    ],
-    "ErlPL-1.1": [
-        "Erlang Public License v1.1",
-        false,
-        false
-    ],
-    "EUDatagrid": [
-        "EU DataGrid Software License",
-        true,
-        false
-    ],
-    "EUPL-1.0": [
-        "European Union Public License 1.0",
-        false,
-        false
-    ],
-    "EUPL-1.1": [
-        "European Union Public License 1.1",
-        true,
-        false
-    ],
-    "EUPL-1.2": [
-        "European Union Public License 1.2",
-        true,
-        false
-    ],
-    "Eurosym": [
-        "Eurosym License",
-        false,
-        false
-    ],
-    "Fair": [
-        "Fair License",
-        true,
-        false
-    ],
-    "Frameworx-1.0": [
-        "Frameworx Open License 1.0",
-        true,
-        false
-    ],
-    "FreeImage": [
-        "FreeImage Public License v1.0",
-        false,
-        false
-    ],
-    "FSFAP": [
-        "FSF All Permissive License",
-        false,
-        false
-    ],
-    "FSFUL": [
-        "FSF Unlimited License",
-        false,
-        false
-    ],
-    "FSFULLR": [
-        "FSF Unlimited License (with License Retention)",
-        false,
-        false
-    ],
-    "FTL": [
-        "Freetype Project License",
-        false,
-        false
-    ],
-    "GFDL-1.1": [
-        "GNU Free Documentation License v1.1",
-        false,
-        true
-    ],
-    "GFDL-1.1-only": [
-        "GNU Free Documentation License v1.1 only",
-        false,
-        false
-    ],
-    "GFDL-1.1-or-later": [
-        "GNU Free Documentation License v1.1 or later",
-        false,
-        false
-    ],
-    "GFDL-1.2": [
-        "GNU Free Documentation License v1.2",
-        false,
-        true
-    ],
-    "GFDL-1.2-only": [
-        "GNU Free Documentation License v1.2 only",
-        false,
-        false
-    ],
-    "GFDL-1.2-or-later": [
-        "GNU Free Documentation License v1.2 or later",
-        false,
-        false
-    ],
-    "GFDL-1.3": [
-        "GNU Free Documentation License v1.3",
-        false,
-        true
-    ],
-    "GFDL-1.3-only": [
-        "GNU Free Documentation License v1.3 only",
-        false,
-        false
-    ],
-    "GFDL-1.3-or-later": [
-        "GNU Free Documentation License v1.3 or later",
-        false,
-        false
-    ],
-    "Giftware": [
-        "Giftware License",
-        false,
-        false
-    ],
-    "GL2PS": [
-        "GL2PS License",
-        false,
-        false
-    ],
-    "Glide": [
-        "3dfx Glide License",
-        false,
-        false
-    ],
-    "Glulxe": [
-        "Glulxe License",
-        false,
-        false
-    ],
-    "gnuplot": [
-        "gnuplot License",
-        false,
-        false
-    ],
-    "GPL-1.0": [
-        "GNU General Public License v1.0 only",
-        false,
-        true
-    ],
-    "GPL-1.0+": [
-        "GNU General Public License v1.0 or later",
-        false,
-        true
-    ],
-    "GPL-1.0-only": [
-        "GNU General Public License v1.0 only",
-        false,
-        false
-    ],
-    "GPL-1.0-or-later": [
-        "GNU General Public License v1.0 or later",
-        false,
-        false
-    ],
-    "GPL-2.0": [
-        "GNU General Public License v2.0 only",
-        true,
-        true
-    ],
-    "GPL-2.0+": [
-        "GNU General Public License v2.0 or later",
-        true,
-        true
-    ],
-    "GPL-2.0-only": [
-        "GNU General Public License v2.0 only",
-        true,
-        false
-    ],
-    "GPL-2.0-or-later": [
-        "GNU General Public License v2.0 or later",
-        true,
-        false
-    ],
-    "GPL-2.0-with-autoconf-exception": [
-        "GNU General Public License v2.0 w/Autoconf exception",
-        false,
-        true
-    ],
-    "GPL-2.0-with-bison-exception": [
-        "GNU General Public License v2.0 w/Bison exception",
-        false,
-        true
-    ],
-    "GPL-2.0-with-classpath-exception": [
-        "GNU General Public License v2.0 w/Classpath exception",
-        false,
-        true
-    ],
-    "GPL-2.0-with-font-exception": [
-        "GNU General Public License v2.0 w/Font exception",
-        false,
-        true
-    ],
-    "GPL-2.0-with-GCC-exception": [
-        "GNU General Public License v2.0 w/GCC Runtime Library exception",
-        false,
-        true
-    ],
-    "GPL-3.0": [
-        "GNU General Public License v3.0 only",
-        true,
-        true
-    ],
-    "GPL-3.0+": [
-        "GNU General Public License v3.0 or later",
-        true,
-        true
-    ],
-    "GPL-3.0-only": [
-        "GNU General Public License v3.0 only",
-        true,
-        false
-    ],
-    "GPL-3.0-or-later": [
-        "GNU General Public License v3.0 or later",
-        true,
-        false
-    ],
-    "GPL-3.0-with-autoconf-exception": [
-        "GNU General Public License v3.0 w/Autoconf exception",
-        false,
-        true
-    ],
-    "GPL-3.0-with-GCC-exception": [
-        "GNU General Public License v3.0 w/GCC Runtime Library exception",
-        true,
-        true
-    ],
-    "gSOAP-1.3b": [
-        "gSOAP Public License v1.3b",
-        false,
-        false
-    ],
-    "HaskellReport": [
-        "Haskell Language Report License",
-        false,
-        false
-    ],
-    "HPND": [
-        "Historical Permission Notice and Disclaimer",
-        true,
-        false
-    ],
-    "IBM-pibs": [
-        "IBM PowerPC Initialization and Boot Software",
-        false,
-        false
-    ],
-    "ICU": [
-        "ICU License",
-        false,
-        false
-    ],
-    "IJG": [
-        "Independent JPEG Group License",
-        false,
-        false
-    ],
-    "ImageMagick": [
-        "ImageMagick License",
-        false,
-        false
-    ],
-    "iMatix": [
-        "iMatix Standard Function Library Agreement",
-        false,
-        false
-    ],
-    "Imlib2": [
-        "Imlib2 License",
-        false,
-        false
-    ],
-    "Info-ZIP": [
-        "Info-ZIP License",
-        false,
-        false
-    ],
-    "Intel": [
-        "Intel Open Source License",
-        true,
-        false
-    ],
-    "Intel-ACPI": [
-        "Intel ACPI Software License Agreement",
-        false,
-        false
-    ],
-    "Interbase-1.0": [
-        "Interbase Public License v1.0",
-        false,
-        false
-    ],
-    "IPA": [
-        "IPA Font License",
-        true,
-        false
-    ],
-    "IPL-1.0": [
-        "IBM Public License v1.0",
-        true,
-        false
-    ],
-    "ISC": [
-        "ISC License",
-        true,
-        false
-    ],
-    "JasPer-2.0": [
-        "JasPer License",
-        false,
-        false
-    ],
-    "JSON": [
-        "JSON License",
-        false,
-        false
-    ],
-    "LAL-1.2": [
-        "Licence Art Libre 1.2",
-        false,
-        false
-    ],
-    "LAL-1.3": [
-        "Licence Art Libre 1.3",
-        false,
-        false
-    ],
-    "Latex2e": [
-        "Latex2e License",
-        false,
-        false
-    ],
-    "Leptonica": [
-        "Leptonica License",
-        false,
-        false
-    ],
-    "LGPL-2.0": [
-        "GNU Library General Public License v2 only",
-        true,
-        true
-    ],
-    "LGPL-2.0+": [
-        "GNU Library General Public License v2 or later",
-        true,
-        true
-    ],
-    "LGPL-2.0-only": [
-        "GNU Library General Public License v2 only",
-        true,
-        false
-    ],
-    "LGPL-2.0-or-later": [
-        "GNU Library General Public License v2 or later",
-        true,
-        false
-    ],
-    "LGPL-2.1": [
-        "GNU Lesser General Public License v2.1 only",
-        true,
-        true
-    ],
-    "LGPL-2.1+": [
-        "GNU Library General Public License v2.1 or later",
-        true,
-        true
-    ],
-    "LGPL-2.1-only": [
-        "GNU Lesser General Public License v2.1 only",
-        true,
-        false
-    ],
-    "LGPL-2.1-or-later": [
-        "GNU Lesser General Public License v2.1 or later",
-        true,
-        false
-    ],
-    "LGPL-3.0": [
-        "GNU Lesser General Public License v3.0 only",
-        true,
-        true
-    ],
-    "LGPL-3.0+": [
-        "GNU Lesser General Public License v3.0 or later",
-        true,
-        true
-    ],
-    "LGPL-3.0-only": [
-        "GNU Lesser General Public License v3.0 only",
-        true,
-        false
-    ],
-    "LGPL-3.0-or-later": [
-        "GNU Lesser General Public License v3.0 or later",
-        true,
-        false
-    ],
-    "LGPLLR": [
-        "Lesser General Public License For Linguistic Resources",
-        false,
-        false
-    ],
-    "Libpng": [
-        "libpng License",
-        false,
-        false
-    ],
-    "libtiff": [
-        "libtiff License",
-        false,
-        false
-    ],
-    "LiLiQ-P-1.1": [
-        "Licence Libre du Qu\u00e9bec \u2013 Permissive version 1.1",
-        true,
-        false
-    ],
-    "LiLiQ-R-1.1": [
-        "Licence Libre du Qu\u00e9bec \u2013 R\u00e9ciprocit\u00e9 version 1.1",
-        true,
-        false
-    ],
-    "LiLiQ-Rplus-1.1": [
-        "Licence Libre du Qu\u00e9bec \u2013 R\u00e9ciprocit\u00e9 forte version 1.1",
-        true,
-        false
-    ],
-    "Linux-OpenIB": [
-        "Linux Kernel Variant of OpenIB.org license",
-        false,
-        false
-    ],
-    "LPL-1.0": [
-        "Lucent Public License Version 1.0",
-        true,
-        false
-    ],
-    "LPL-1.02": [
-        "Lucent Public License v1.02",
-        true,
-        false
-    ],
-    "LPPL-1.0": [
-        "LaTeX Project Public License v1.0",
-        false,
-        false
-    ],
-    "LPPL-1.1": [
-        "LaTeX Project Public License v1.1",
-        false,
-        false
-    ],
-    "LPPL-1.2": [
-        "LaTeX Project Public License v1.2",
-        false,
-        false
-    ],
-    "LPPL-1.3a": [
-        "LaTeX Project Public License v1.3a",
-        false,
-        false
-    ],
-    "LPPL-1.3c": [
-        "LaTeX Project Public License v1.3c",
-        true,
-        false
-    ],
-    "MakeIndex": [
-        "MakeIndex License",
-        false,
-        false
-    ],
-    "MirOS": [
-        "MirOS License",
-        true,
-        false
-    ],
-    "MIT": [
-        "MIT License",
-        true,
-        false
-    ],
-    "MIT-0": [
-        "MIT No Attribution",
-        true,
-        false
-    ],
-    "MIT-advertising": [
-        "Enlightenment License (e16)",
-        false,
-        false
-    ],
-    "MIT-CMU": [
-        "CMU License",
-        false,
-        false
-    ],
-    "MIT-enna": [
-        "enna License",
-        false,
-        false
-    ],
-    "MIT-feh": [
-        "feh License",
-        false,
-        false
-    ],
-    "MITNFA": [
-        "MIT +no-false-attribs license",
-        false,
-        false
-    ],
-    "Motosoto": [
-        "Motosoto License",
-        true,
-        false
-    ],
-    "mpich2": [
-        "mpich2 License",
-        false,
-        false
-    ],
-    "MPL-1.0": [
-        "Mozilla Public License 1.0",
-        true,
-        false
-    ],
-    "MPL-1.1": [
-        "Mozilla Public License 1.1",
-        true,
-        false
-    ],
-    "MPL-2.0": [
-        "Mozilla Public License 2.0",
-        true,
-        false
-    ],
-    "MPL-2.0-no-copyleft-exception": [
-        "Mozilla Public License 2.0 (no copyleft exception)",
-        true,
-        false
-    ],
-    "MS-PL": [
-        "Microsoft Public License",
-        true,
-        false
-    ],
-    "MS-RL": [
-        "Microsoft Reciprocal License",
-        true,
-        false
-    ],
-    "MTLL": [
-        "Matrix Template Library License",
-        false,
-        false
-    ],
-    "Multics": [
-        "Multics License",
-        true,
-        false
-    ],
-    "Mup": [
-        "Mup License",
-        false,
-        false
-    ],
-    "NASA-1.3": [
-        "NASA Open Source Agreement 1.3",
-        true,
-        false
-    ],
-    "Naumen": [
-        "Naumen Public License",
-        true,
-        false
-    ],
-    "NBPL-1.0": [
-        "Net Boolean Public License v1",
-        false,
-        false
-    ],
-    "NCSA": [
-        "University of Illinois/NCSA Open Source License",
-        true,
-        false
-    ],
-    "Net-SNMP": [
-        "Net-SNMP License",
-        false,
-        false
-    ],
-    "NetCDF": [
-        "NetCDF license",
-        false,
-        false
-    ],
-    "Newsletr": [
-        "Newsletr License",
-        false,
-        false
-    ],
-    "NGPL": [
-        "Nethack General Public License",
-        true,
-        false
-    ],
-    "NLOD-1.0": [
-        "Norwegian Licence for Open Government Data",
-        false,
-        false
-    ],
-    "NLPL": [
-        "No Limit Public License",
-        false,
-        false
-    ],
-    "Nokia": [
-        "Nokia Open Source License",
-        true,
-        false
-    ],
-    "NOSL": [
-        "Netizen Open Source License",
-        false,
-        false
-    ],
-    "Noweb": [
-        "Noweb License",
-        false,
-        false
-    ],
-    "NPL-1.0": [
-        "Netscape Public License v1.0",
-        false,
-        false
-    ],
-    "NPL-1.1": [
-        "Netscape Public License v1.1",
-        false,
-        false
-    ],
-    "NPOSL-3.0": [
-        "Non-Profit Open Software License 3.0",
-        true,
-        false
-    ],
-    "NRL": [
-        "NRL License",
-        false,
-        false
-    ],
-    "NTP": [
-        "NTP License",
-        true,
-        false
-    ],
-    "Nunit": [
-        "Nunit License",
-        false,
-        true
-    ],
-    "OCCT-PL": [
-        "Open CASCADE Technology Public License",
-        false,
-        false
-    ],
-    "OCLC-2.0": [
-        "OCLC Research Public License 2.0",
-        true,
-        false
-    ],
-    "ODbL-1.0": [
-        "ODC Open Database License v1.0",
-        false,
-        false
-    ],
-    "ODC-By-1.0": [
-        "Open Data Commons Attribution License v1.0",
-        false,
-        false
-    ],
-    "OFL-1.0": [
-        "SIL Open Font License 1.0",
-        false,
-        false
-    ],
-    "OFL-1.1": [
-        "SIL Open Font License 1.1",
-        true,
-        false
-    ],
-    "OGL-UK-1.0": [
-        "Open Government Licence v1.0",
-        false,
-        false
-    ],
-    "OGL-UK-2.0": [
-        "Open Government Licence v2.0",
-        false,
-        false
-    ],
-    "OGL-UK-3.0": [
-        "Open Government Licence v3.0",
-        false,
-        false
-    ],
-    "OGTSL": [
-        "Open Group Test Suite License",
-        true,
-        false
-    ],
-    "OLDAP-1.1": [
-        "Open LDAP Public License v1.1",
-        false,
-        false
-    ],
-    "OLDAP-1.2": [
-        "Open LDAP Public License v1.2",
-        false,
-        false
-    ],
-    "OLDAP-1.3": [
-        "Open LDAP Public License v1.3",
-        false,
-        false
-    ],
-    "OLDAP-1.4": [
-        "Open LDAP Public License v1.4",
-        false,
-        false
-    ],
-    "OLDAP-2.0": [
-        "Open LDAP Public License v2.0 (or possibly 2.0A and 2.0B)",
-        false,
-        false
-    ],
-    "OLDAP-2.0.1": [
-        "Open LDAP Public License v2.0.1",
-        false,
-        false
-    ],
-    "OLDAP-2.1": [
-        "Open LDAP Public License v2.1",
-        false,
-        false
-    ],
-    "OLDAP-2.2": [
-        "Open LDAP Public License v2.2",
-        false,
-        false
-    ],
-    "OLDAP-2.2.1": [
-        "Open LDAP Public License v2.2.1",
-        false,
-        false
-    ],
-    "OLDAP-2.2.2": [
-        "Open LDAP Public License 2.2.2",
-        false,
-        false
-    ],
-    "OLDAP-2.3": [
-        "Open LDAP Public License v2.3",
-        false,
-        false
-    ],
-    "OLDAP-2.4": [
-        "Open LDAP Public License v2.4",
-        false,
-        false
-    ],
-    "OLDAP-2.5": [
-        "Open LDAP Public License v2.5",
-        false,
-        false
-    ],
-    "OLDAP-2.6": [
-        "Open LDAP Public License v2.6",
-        false,
-        false
-    ],
-    "OLDAP-2.7": [
-        "Open LDAP Public License v2.7",
-        false,
-        false
-    ],
-    "OLDAP-2.8": [
-        "Open LDAP Public License v2.8",
-        false,
-        false
-    ],
-    "OML": [
-        "Open Market License",
-        false,
-        false
-    ],
-    "OpenSSL": [
-        "OpenSSL License",
-        false,
-        false
-    ],
-    "OPL-1.0": [
-        "Open Public License v1.0",
-        false,
-        false
-    ],
-    "OSET-PL-2.1": [
-        "OSET Public License version 2.1",
-        true,
-        false
-    ],
-    "OSL-1.0": [
-        "Open Software License 1.0",
-        true,
-        false
-    ],
-    "OSL-1.1": [
-        "Open Software License 1.1",
-        false,
-        false
-    ],
-    "OSL-2.0": [
-        "Open Software License 2.0",
-        true,
-        false
-    ],
-    "OSL-2.1": [
-        "Open Software License 2.1",
-        true,
-        false
-    ],
-    "OSL-3.0": [
-        "Open Software License 3.0",
-        true,
-        false
-    ],
-    "PDDL-1.0": [
-        "ODC Public Domain Dedication & License 1.0",
-        false,
-        false
-    ],
-    "PHP-3.0": [
-        "PHP License v3.0",
-        true,
-        false
-    ],
-    "PHP-3.01": [
-        "PHP License v3.01",
-        false,
-        false
-    ],
-    "Plexus": [
-        "Plexus Classworlds License",
-        false,
-        false
-    ],
-    "PostgreSQL": [
-        "PostgreSQL License",
-        true,
-        false
-    ],
-    "psfrag": [
-        "psfrag License",
-        false,
-        false
-    ],
-    "psutils": [
-        "psutils License",
-        false,
-        false
-    ],
-    "Python-2.0": [
-        "Python License 2.0",
-        true,
-        false
-    ],
-    "Qhull": [
-        "Qhull License",
-        false,
-        false
-    ],
-    "QPL-1.0": [
-        "Q Public License 1.0",
-        true,
-        false
-    ],
-    "Rdisc": [
-        "Rdisc License",
-        false,
-        false
-    ],
-    "RHeCos-1.1": [
-        "Red Hat eCos Public License v1.1",
-        false,
-        false
-    ],
-    "RPL-1.1": [
-        "Reciprocal Public License 1.1",
-        true,
-        false
-    ],
-    "RPL-1.5": [
-        "Reciprocal Public License 1.5",
-        true,
-        false
-    ],
-    "RPSL-1.0": [
-        "RealNetworks Public Source License v1.0",
-        true,
-        false
-    ],
-    "RSA-MD": [
-        "RSA Message-Digest License",
-        false,
-        false
-    ],
-    "RSCPL": [
-        "Ricoh Source Code Public License",
-        true,
-        false
-    ],
-    "Ruby": [
-        "Ruby License",
-        false,
-        false
-    ],
-    "SAX-PD": [
-        "Sax Public Domain Notice",
-        false,
-        false
-    ],
-    "Saxpath": [
-        "Saxpath License",
-        false,
-        false
-    ],
-    "SCEA": [
-        "SCEA Shared Source License",
-        false,
-        false
-    ],
-    "Sendmail": [
-        "Sendmail License",
-        false,
-        false
-    ],
-    "Sendmail-8.23": [
-        "Sendmail License 8.23",
-        false,
-        false
-    ],
-    "SGI-B-1.0": [
-        "SGI Free Software License B v1.0",
-        false,
-        false
-    ],
-    "SGI-B-1.1": [
-        "SGI Free Software License B v1.1",
-        false,
-        false
-    ],
-    "SGI-B-2.0": [
-        "SGI Free Software License B v2.0",
-        false,
-        false
-    ],
-    "SimPL-2.0": [
-        "Simple Public License 2.0",
-        true,
-        false
-    ],
-    "SISSL": [
-        "Sun Industry Standards Source License v1.1",
-        true,
-        false
-    ],
-    "SISSL-1.2": [
-        "Sun Industry Standards Source License v1.2",
-        false,
-        false
-    ],
-    "Sleepycat": [
-        "Sleepycat License",
-        true,
-        false
-    ],
-    "SMLNJ": [
-        "Standard ML of New Jersey License",
-        false,
-        false
-    ],
-    "SMPPL": [
-        "Secure Messaging Protocol Public License",
-        false,
-        false
-    ],
-    "SNIA": [
-        "SNIA Public License 1.1",
-        false,
-        false
-    ],
-    "Spencer-86": [
-        "Spencer License 86",
-        false,
-        false
-    ],
-    "Spencer-94": [
-        "Spencer License 94",
-        false,
-        false
-    ],
-    "Spencer-99": [
-        "Spencer License 99",
-        false,
-        false
-    ],
-    "SPL-1.0": [
-        "Sun Public License v1.0",
-        true,
-        false
-    ],
-    "StandardML-NJ": [
-        "Standard ML of New Jersey License",
-        false,
-        true
-    ],
-    "SugarCRM-1.1.3": [
-        "SugarCRM Public License v1.1.3",
-        false,
-        false
-    ],
-    "SWL": [
-        "Scheme Widget Library (SWL) Software License Agreement",
-        false,
-        false
-    ],
-    "TCL": [
-        "TCL/TK License",
-        false,
-        false
-    ],
-    "TCP-wrappers": [
-        "TCP Wrappers License",
-        false,
-        false
-    ],
-    "TMate": [
-        "TMate Open Source License",
-        false,
-        false
-    ],
-    "TORQUE-1.1": [
-        "TORQUE v2.5+ Software License v1.1",
-        false,
-        false
-    ],
-    "TOSL": [
-        "Trusster Open Source License",
-        false,
-        false
-    ],
-    "TU-Berlin-1.0": [
-        "Technische Universitaet Berlin License 1.0",
-        false,
-        false
-    ],
-    "TU-Berlin-2.0": [
-        "Technische Universitaet Berlin License 2.0",
-        false,
-        false
-    ],
-    "Unicode-DFS-2015": [
-        "Unicode License Agreement - Data Files and Software (2015)",
-        false,
-        false
-    ],
-    "Unicode-DFS-2016": [
-        "Unicode License Agreement - Data Files and Software (2016)",
-        false,
-        false
-    ],
-    "Unicode-TOU": [
-        "Unicode Terms of Use",
-        false,
-        false
-    ],
-    "Unlicense": [
-        "The Unlicense",
-        false,
-        false
-    ],
-    "UPL-1.0": [
-        "Universal Permissive License v1.0",
-        true,
-        false
-    ],
-    "Vim": [
-        "Vim License",
-        false,
-        false
-    ],
-    "VOSTROM": [
-        "VOSTROM Public License for Open Source",
-        false,
-        false
-    ],
-    "VSL-1.0": [
-        "Vovida Software License v1.0",
-        true,
-        false
-    ],
-    "W3C": [
-        "W3C Software Notice and License (2002-12-31)",
-        true,
-        false
-    ],
-    "W3C-19980720": [
-        "W3C Software Notice and License (1998-07-20)",
-        false,
-        false
-    ],
-    "W3C-20150513": [
-        "W3C Software Notice and Document License (2015-05-13)",
-        false,
-        false
-    ],
-    "Watcom-1.0": [
-        "Sybase Open Watcom Public License 1.0",
-        true,
-        false
-    ],
-    "Wsuipa": [
-        "Wsuipa License",
-        false,
-        false
-    ],
-    "WTFPL": [
-        "Do What The F*ck You Want To Public License",
-        false,
-        false
-    ],
-    "wxWindows": [
-        "wxWindows Library License",
-        false,
-        true
-    ],
-    "X11": [
-        "X11 License",
-        false,
-        false
-    ],
-    "Xerox": [
-        "Xerox License",
-        false,
-        false
-    ],
-    "XFree86-1.1": [
-        "XFree86 License 1.1",
-        false,
-        false
-    ],
-    "xinetd": [
-        "xinetd License",
-        false,
-        false
-    ],
-    "Xnet": [
-        "X.Net License",
-        true,
-        false
-    ],
-    "xpp": [
-        "XPP License",
-        false,
-        false
-    ],
-    "XSkat": [
-        "XSkat License",
-        false,
-        false
-    ],
-    "YPL-1.0": [
-        "Yahoo! Public License v1.0",
-        false,
-        false
-    ],
-    "YPL-1.1": [
-        "Yahoo! Public License v1.1",
-        false,
-        false
-    ],
-    "Zed": [
-        "Zed License",
-        false,
-        false
-    ],
-    "Zend-2.0": [
-        "Zend License v2.0",
-        false,
-        false
-    ],
-    "Zimbra-1.3": [
-        "Zimbra Public License v1.3",
-        false,
-        false
-    ],
-    "Zimbra-1.4": [
-        "Zimbra Public License v1.4",
-        false,
-        false
-    ],
-    "Zlib": [
-        "zlib License",
-        true,
-        false
-    ],
-    "zlib-acknowledgement": [
-        "zlib/libpng License with Acknowledgement",
-        false,
-        false
-    ],
-    "ZPL-1.1": [
-        "Zope Public License 1.1",
-        false,
-        false
-    ],
-    "ZPL-2.0": [
-        "Zope Public License 2.0",
-        true,
-        false
-    ],
-    "ZPL-2.1": [
-        "Zope Public License 2.1",
-        false,
-        false
-    ]
-}MZ       ÿÿ  ¸       @                                   è   º ´	Í!¸LÍ!This program cannot be run in DOS mode.
-
-$       Æ,Í;§B;§B;§B2ß×:§B2ßÁ-§B2ßÆ9§B2ßÑ?§B
-a98§B;§C§B2ßÈ:§B2ßÖ:§B2ßÓ:§BRich;§B        PE  L ¬MoO        à 
-	  
-         8           @                      `     ?   @                           "  P    @                      P  p   !  
-                           8!  @               Ø                           .text   
-	      
-                    `.rdata  Î	       
-                 @  @.data      0                    @  À.rsrc       @                    @  @.reloc  Ì   P      "              @  B                                                                                                                                                                                                                                                                                                                                                        j$¸æ@ èx  jöÿ @ eÐ ðEÐPVÿ  @ EÐàûPVÿ @ MÔÿX @ eü EÔPÿ5H @ ÿL @ YYÿ5\ @ EÔPÿ5` @ ÿD @ YYÈÿP @ MüÿMÔÿT @ 3ÀèH  Ã;
- 0@ uóÃé¬  h@ è£  ¡l3@ Ç$40@ ÿ5h3@ £40@ h$0@ h(0@ h 0@ ÿ  @ Ä£00@ 
-À}jè¹  YÃjh"@ è  3Û]üd¡   p]ä¿3@ SVWÿ0 @ ;Ãt;Æu3öFuäëhè  ÿ4 @ ëÚ3öF¡|3@ ;Æu
-jè\  Yë;¡|3@ 
-Àu,5|3@ hð @ hä @ è§  YY
-ÀtÇEüþÿÿÿ¸ÿ   éÝ   5<0@ ¡|3@ ;Æuhà @ hØ @ èl  YYÇ|3@    9]äuSWÿ8 @ 9
-3@ th3@ è  Y
-Àt
-SjSÿ3@ ¡$0@ 
-¼ @ ÿ5$0@ ÿ5(0@ ÿ5 0@ èþÿÿÄ
-£80@ 9
-,0@ u7PÿÀ @ Eì	MàPQè  YYÃeèEà£80@ 3Û9
-,0@ uPÿh @ 9
-<0@ uÿ @ ÇEüþÿÿÿ¡80@ èû  Ã¸MZ  f9  @ t3ÀëM¡< @   @ 8PE  ué·Hù
-  tù
-  uÕ¸   vÌ3É9ø   ëxtv¼3É9è   ÁÁj£,0@ ÿp @ jÿÿl @ YY£3@ £3@ ÿÌ @ 
-t3@ ÿ @ 
-p3@ ¡¨ @  £x3@ èV  è¬  =0@  u
-hµ@ ÿ¬ @ Yèg  =0@ ÿu	jÿÿ° @ Y3ÀÃè{  éýÿÿÿUìì(  £H1@ 
-D1@ @1@ 
-<1@ 581@ =41@ f`1@ f
-T1@ f
-01@ f,1@ f%(1@ f-$1@ X1@ E £L1@ E£P1@ E£\1@ 
-àüÿÿÇ0@   ¡P1@ £L0@ Ç@0@ 	 ÀÇD0@    ¡ 0@ 
-Øüÿÿ¡0@ 
-Üüÿÿÿ
- @ £0@ jè?  Yj ÿ  @ h
-!@ ÿ$ @ =0@  ujè  Yh	 Àÿ( @ Pÿ, @ ÉÃÿUìE 8csmàu*xu$@= t=!t="t= @uèÐ  3À]Â hH@ ÿ  @ 3ÀÃÿ%¤ @ jh("@ èb  ÿ53@ 5 @ ÿÖYEäøÿu
-ÿuÿÄ @ Yëgjè  Yeü ÿ53@ ÿÖEäÿ53@ ÿÖYYEàEàPEäPÿu5l @ ÿÖYPèU  EÜÿuäÿÖ£3@ ÿuàÿÖÄ£3@ ÇEüþÿÿÿè	   EÜè  Ãjè  YÃÿUìÿuèNÿÿÿ÷ØÀ÷ØYH]ÃÿV¸ü!@ ¾ü!@ Wø;Æs
-ÀtÿÐÇ;þrñ_^ÃÿV¸"@ ¾"@ Wø;Æs
-ÀtÿÐÇ;þrñ_^Ãÿ%È @ ÌÌÌÌÿUìM¸MZ  f9t3À]ÃA<Á8PE  uï3Ò¹
-  f9HÂÂ]ÃÌÌÌÌÌÌÌÌÌÌÌÿUìEH<È·ASV·q3ÒWD
-öv}
-H
-;ùr	XÙ;ûr
-BÀ(;Örè3À_^[]ÃÌÌÌÌÌÌÌÌÌÌÌÌÿUìjþhH"@ he@ d¡    PìSVW¡ 0@ 1Eø3ÅPEðd£    eèÇEü    h  @ è*ÿÿÿÄ
-ÀtUE-  @ Ph  @ èPÿÿÿÄ
-Àt;@$Áè÷ÐàÇEüþÿÿÿMðd
-    Y_^[å]ÃEì3Ò=  ÀÂÂÃeèÇEüþÿÿÿ3ÀMðd
-    Y_^[å]ÃÌÿ%¸ @ ÿ%´ @ ÌÌhe@ dÿ5    D$l$l$+àSVW¡ 0@ 1Eü3ÅPeèÿuøEüÇEüþÿÿÿEøEðd£    ÃMðd
-    Y__^[å]QÃÿUìÿuÿuÿu
-ÿuh@ h 0@ èç   Ä]ÃÿVh   h   3öVèÙ   Ä
-
-Àt
-VVVVVèÂ   Ä^Ã3ÀÃÿUìì¡ 0@ eø eü SW¿Næ@»»  ÿÿ;Çt
-
-Ãt	÷Ð£0@ ë`VEøPÿ< @ uü3uøÿ
- @ 3ðÿ @ 3ðÿ @ 3ðEðPÿ @ Eô3Eð3ð;÷u¾Oæ@»ë
-
-óuÆÁà
-ð5 0@ ÷Ö50@ ^_[ÉÃÿ%t @ ÿ%x @ ÿ%| @ ÿ% @ ÿ% @ ÿ% @ ÿ% @ ÿ% @ ÿ%Ð @ Pdÿ5    D$
-+d$
-SVW(è¡ 0@ 3ÅPEðÿuüÇEüÿÿÿÿEôd£    ÃMôd
-    Y__^[å]QÃMð3Íè¯÷ÿÿéÝÿÿÿMÔÿ%T @ T$B
-JÌ3Èè÷ÿÿJü3Èè÷ÿÿ¸l"@ ésÿÿÿ                                                                                                                                                                                                                                                     ¸#  Ê#  Ü#  )  r)  b)  H)  4)  )  ú(  æ(  Ò(  ´(  ¬(  (  )      ú#  à$  %  Ê%  &  d&  ®&  ¤$      ('  Ä'  Ö'  è'  þ'  
-(  ((  6(  ¦'  H(  Z(  t(  (  
-'  '   '  '  '  l'  ^'  R'  F'  >'  >(  0'  ¶'  ¸)          @         W@ @                     ¬MoO       l   !    @0@ 0@ bad allocation      H                                                            0@ ð!@    RSDSÑ³´J¨!öÌëLZ    c:\users\seld\documents\visual studio 2010\Projects\hiddeninp\Release\hiddeninp.pdb     e  æ                  þÿÿÿ    Ðÿÿÿ    þÿÿÿ@ @     þÿÿÿ    Ìÿÿÿ    þÿÿÿ    :@     þÿÿÿ    Øÿÿÿ    þÿÿÿË@ ß@ ÿÿÿÿÝ@ "   d"@                        à"          ì#      $#          ô&  D   H#          (  h                       ¸#  Ê#  Ü#  )  r)  b)  H)  4)  )  ú(  æ(  Ò(  ´(  ¬(  (  )      ú#  à$  %  Ê%  &  d&  ®&  ¤$      ('  Ä'  Ö'  è'  þ'  
-(  ((  6(  ¦'  H(  Z(  t(  (  
-'  '   '  '  '  l'  ^'  R'  F'  >'  >(  0'  ¶'  ¸)      GetConsoleMode  ·SetConsoleMode  ;GetStdHandle  KERNEL32.dll   ??$?6DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z ?cout@std@@3V?$basic_ostream@DU?$char_traits@D@std@@@1@A  J?cin@std@@3V?$basic_istream@DU?$char_traits@D@std@@@1@A Â ??$getline@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@AAV10@AAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z 
-??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@P6AAAV01@AAV01@@Z@Z  _??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ  {??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ  ³?endl@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@Z  MSVCP90.dll _amsg_exit   __getmainargs ,_cexit  |_exit f _XcptFilter Ìexit    __initenv _initterm _initterm_e <_configthreadlocale ã __setusermatherr  
-_adjust_fdiv  Ë __p__commode  Ï __p__fmode  j_encode_pointer à __set_app_type  K_crt_debugger_hook  C ?terminate@@YAXXZ MSVCR90.dll æ_unlock  __dllonexit v_lock 
-_onexit `_decode_pointer s_except_handler4_common 
-_invoke_watson  ?_controlfp_s  ½InterlockedExchange !Sleep ºInterlockedCompareExchange  -TerminateProcess  ©GetCurrentProcess >UnhandledExceptionFilter  SetUnhandledExceptionFilter ÑIsDebuggerPresent TQueryPerformanceCounter fGetTickCount  ­GetCurrentThreadId  ªGetCurrentProcessId OGetSystemTimeAsFileTime s __CxxFrameHandler3                                                    Næ@»±¿Dÿÿÿÿÿÿÿÿþÿÿÿ   $!@                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            8                   P                   h                	                   	      @  (  ä      ÈC  V  ä      (4   V S _ V E R S I O N _ I N F O     ½ïþ                                             S t r i n g F i l e I n f o   b   0 4 0 9 0 4 b 0   Ê Q  F i l e D e s c r i p t i o n     R e a d s   f r o m   s t d i n   w i t h o u t   l e a k i n g   i n f o   t o   t h e   t e r m i n a l   a n d   o u t p u t s   b a c k   t o   s t d o u t     6 
-  F i l e V e r s i o n     1 ,   0 ,   0 ,   0     8 
-  I n t e r n a l N a m e   h i d d e n i n p u t   P   L e g a l C o p y r i g h t   J o r d i   B o g g i a n o   -   2 0 1 2   H   O r i g i n a l F i l e n a m e   h i d d e n i n p u t . e x e   : 
-  P r o d u c t N a m e     H i d d e n   I n p u t     : 
-  P r o d u c t V e r s i o n   1 ,   0 ,   0 ,   0     D    V a r F i l e I n f o     $    T r a n s l a t i o n     	°<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
-  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
-    <security>
-      <requestedPrivileges>
-        <requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
-      </requestedPrivileges>
-    </security>
-  </trustInfo>
-  <dependency>
-    <dependentAssembly>
-      <assemblyIdentity type="win32" name="Microsoft.VC90.CRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
-    </dependentAssembly>
-  </dependency>
-</assembly>PAPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDINGPADDINGXXPADDING   @  00!0/080F0L0T0^0d0n0{000¡0¨0®0³0¸0½0Â0È0Ð0ä0ÿ01#1-1@1J1O1T1v1{1111§1­1´1È1Í1Ó1Û1á1ç1ô1ú12"2*23292A2M2_2j2p2¹2¿2Ç2Î2Ó2Ù2ß2ç2í2ô2û2
-333%303N3T3Z3`3f3l3s3z333333¥3­3µ3Á3Ê3Ï3Õ3ß3è3ó3ÿ34444%4;4B4444¡4¬4²4Æ4Û4æ4þ45!5^5c555¨5H6M6_6}666 77
-7*7w7|7Á7ä7ñ7ý78
-88=8E8P8V8\8b8h8n8t8z888â89      $   Ü0è0ì0
-1 1t1x1
-2 2@2\2`2h2t2 0  
-   0                                                                                                                                                  <?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console;
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Command\HelpCommand;
-use Symfony\Component\Console\Command\ListCommand;
-use Symfony\Component\Console\Descriptor\TextDescriptor;
-use Symfony\Component\Console\Descriptor\XmlDescriptor;
-use Symfony\Component\Console\Event\ConsoleCommandEvent;
-use Symfony\Component\Console\Event\ConsoleExceptionEvent;
-use Symfony\Component\Console\Event\ConsoleTerminateEvent;
-use Symfony\Component\Console\Exception\CommandNotFoundException;
-use Symfony\Component\Console\Exception\ExceptionInterface;
-use Symfony\Component\Console\Exception\LogicException;
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Helper\DebugFormatterHelper;
-use Symfony\Component\Console\Helper\DialogHelper;
-use Symfony\Component\Console\Helper\FormatterHelper;
-use Symfony\Component\Console\Helper\Helper;
-use Symfony\Component\Console\Helper\HelperSet;
-use Symfony\Component\Console\Helper\ProcessHelper;
-use Symfony\Component\Console\Helper\ProgressHelper;
-use Symfony\Component\Console\Helper\QuestionHelper;
-use Symfony\Component\Console\Helper\TableHelper;
-use Symfony\Component\Console\Input\ArgvInput;
-use Symfony\Component\Console\Input\ArrayInput;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputAwareInterface;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\BufferedOutput;
-use Symfony\Component\Console\Output\ConsoleOutput;
-use Symfony\Component\Console\Output\ConsoleOutputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Debug\Exception\FatalThrowableError;
-use Symfony\Component\EventDispatcher\EventDispatcherInterface;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-class Application
-{
-private $commands = array();
-private $wantHelps = false;
-private $runningCommand;
-private $name;
-private $version;
-private $catchExceptions = true;
-private $autoExit = true;
-private $definition;
-private $helperSet;
-private $dispatcher;
-private $terminalDimensions;
-private $defaultCommand;
-private $initialized;
-
-
-
-
-
-public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN')
-{
-$this->name = $name;
-$this->version = $version;
-$this->defaultCommand = 'list';
-}
-
-public function setDispatcher(EventDispatcherInterface $dispatcher)
-{
-$this->dispatcher = $dispatcher;
-}
-
-
-
-
-
-
-
-
-public function run(InputInterface $input = null, OutputInterface $output = null)
-{
-if (null === $input) {
-$input = new ArgvInput();
-}
-
-if (null === $output) {
-$output = new ConsoleOutput();
-}
-
-$this->configureIO($input, $output);
-
-try {
-$e = null;
-$exitCode = $this->doRun($input, $output);
-} catch (\Exception $e) {
-}
-
-if (null !== $e) {
-if (!$this->catchExceptions) {
-throw $e;
-}
-
-if ($output instanceof ConsoleOutputInterface) {
-$this->renderException($e, $output->getErrorOutput());
-} else {
-$this->renderException($e, $output);
-}
-
-$exitCode = $this->getExitCodeForThrowable($e);
-}
-
-if ($this->autoExit) {
-if ($exitCode > 255) {
-$exitCode = 255;
-}
-
-exit($exitCode);
-}
-
-return $exitCode;
-}
-
-
-
-
-
-
-public function doRun(InputInterface $input, OutputInterface $output)
-{
-if (true === $input->hasParameterOption(array('--version', '-V'))) {
-$output->writeln($this->getLongVersion());
-
-return 0;
-}
-
-$name = $this->getCommandName($input);
-if (true === $input->hasParameterOption(array('--help', '-h'))) {
-if (!$name) {
-$name = 'help';
-$input = new ArrayInput(array('command' => 'help'));
-} else {
-$this->wantHelps = true;
-}
-}
-
-if (!$name) {
-$name = $this->defaultCommand;
-$definition = $this->getDefinition();
-$definition->setArguments(array_merge(
-$definition->getArguments(),
-array(
-'command' => new InputArgument('command', InputArgument::OPTIONAL, $definition->getArgument('command')->getDescription(), $name),
-)
-));
-}
-
-$this->runningCommand = null;
-
- $command = $this->find($name);
-
-$this->runningCommand = $command;
-$exitCode = $this->doRunCommand($command, $input, $output);
-$this->runningCommand = null;
-
-return $exitCode;
-}
-
-public function setHelperSet(HelperSet $helperSet)
-{
-$this->helperSet = $helperSet;
-}
-
-
-
-
-
-
-public function getHelperSet()
-{
-if (!$this->helperSet) {
-$this->helperSet = $this->getDefaultHelperSet();
-}
-
-return $this->helperSet;
-}
-
-public function setDefinition(InputDefinition $definition)
-{
-$this->definition = $definition;
-}
-
-
-
-
-
-
-public function getDefinition()
-{
-if (!$this->definition) {
-$this->definition = $this->getDefaultInputDefinition();
-}
-
-return $this->definition;
-}
-
-
-
-
-
-
-public function getHelp()
-{
-return $this->getLongVersion();
-}
-
-
-
-
-
-
-public function setCatchExceptions($boolean)
-{
-$this->catchExceptions = (bool) $boolean;
-}
-
-
-
-
-
-
-public function setAutoExit($boolean)
-{
-$this->autoExit = (bool) $boolean;
-}
-
-
-
-
-
-
-public function getName()
-{
-return $this->name;
-}
-
-
-
-
-
-
-public function setName($name)
-{
-$this->name = $name;
-}
-
-
-
-
-
-
-public function getVersion()
-{
-return $this->version;
-}
-
-
-
-
-
-
-public function setVersion($version)
-{
-$this->version = $version;
-}
-
-
-
-
-
-
-public function getLongVersion()
-{
-if ('UNKNOWN' !== $this->getName()) {
-if ('UNKNOWN' !== $this->getVersion()) {
-return sprintf('<info>%s</info> version <comment>%s</comment>', $this->getName(), $this->getVersion());
-}
-
-return sprintf('<info>%s</info>', $this->getName());
-}
-
-return '<info>Console Tool</info>';
-}
-
-
-
-
-
-
-
-
-public function register($name)
-{
-return $this->add(new Command($name));
-}
-
-
-
-
-
-
-
-
-public function addCommands(array $commands)
-{
-foreach ($commands as $command) {
-$this->add($command);
-}
-}
-
-
-
-
-
-
-
-
-
-public function add(Command $command)
-{
-$this->init();
-
-$command->setApplication($this);
-
-if (!$command->isEnabled()) {
-$command->setApplication(null);
-
-return;
-}
-
-if (null === $command->getDefinition()) {
-throw new LogicException(sprintf('Command class "%s" is not correctly initialized. You probably forgot to call the parent constructor.', \get_class($command)));
-}
-
-$this->commands[$command->getName()] = $command;
-
-foreach ($command->getAliases() as $alias) {
-$this->commands[$alias] = $command;
-}
-
-return $command;
-}
-
-
-
-
-
-
-
-
-
-
-public function get($name)
-{
-$this->init();
-
-if (!isset($this->commands[$name])) {
-throw new CommandNotFoundException(sprintf('The command "%s" does not exist.', $name));
-}
-
-$command = $this->commands[$name];
-
-if ($this->wantHelps) {
-$this->wantHelps = false;
-
-$helpCommand = $this->get('help');
-$helpCommand->setCommand($command);
-
-return $helpCommand;
-}
-
-return $command;
-}
-
-
-
-
-
-
-
-
-public function has($name)
-{
-$this->init();
-
-return isset($this->commands[$name]);
-}
-
-
-
-
-
-
-
-
-public function getNamespaces()
-{
-$namespaces = array();
-foreach ($this->all() as $command) {
-$namespaces = array_merge($namespaces, $this->extractAllNamespaces($command->getName()));
-
-foreach ($command->getAliases() as $alias) {
-$namespaces = array_merge($namespaces, $this->extractAllNamespaces($alias));
-}
-}
-
-return array_values(array_unique(array_filter($namespaces)));
-}
-
-
-
-
-
-
-
-
-
-
-public function findNamespace($namespace)
-{
-$allNamespaces = $this->getNamespaces();
-$expr = preg_replace_callback('{([^:]+|)}', function ($matches) { return preg_quote($matches[1]).'[^:]*'; }, $namespace);
-$namespaces = preg_grep('{^'.$expr.'}', $allNamespaces);
-
-if (empty($namespaces)) {
-$message = sprintf('There are no commands defined in the "%s" namespace.', $namespace);
-
-if ($alternatives = $this->findAlternatives($namespace, $allNamespaces)) {
-if (1 == \count($alternatives)) {
-$message .= "\n\nDid you mean this?\n    ";
-} else {
-$message .= "\n\nDid you mean one of these?\n    ";
-}
-
-$message .= implode("\n    ", $alternatives);
-}
-
-throw new CommandNotFoundException($message, $alternatives);
-}
-
-$exact = \in_array($namespace, $namespaces, true);
-if (\count($namespaces) > 1 && !$exact) {
-throw new CommandNotFoundException(sprintf('The namespace "%s" is ambiguous (%s).', $namespace, $this->getAbbreviationSuggestions(array_values($namespaces))), array_values($namespaces));
-}
-
-return $exact ? $namespace : reset($namespaces);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function find($name)
-{
-$this->init();
-$aliases = array();
-$allCommands = array_keys($this->commands);
-$expr = preg_replace_callback('{([^:]+|)}', function ($matches) { return preg_quote($matches[1]).'[^:]*'; }, $name);
-$commands = preg_grep('{^'.$expr.'}', $allCommands);
-
-if (empty($commands) || \count(preg_grep('{^'.$expr.'$}', $commands)) < 1) {
-if (false !== $pos = strrpos($name, ':')) {
-
- $this->findNamespace(substr($name, 0, $pos));
-}
-
-$message = sprintf('Command "%s" is not defined.', $name);
-
-if ($alternatives = $this->findAlternatives($name, $allCommands)) {
-if (1 == \count($alternatives)) {
-$message .= "\n\nDid you mean this?\n    ";
-} else {
-$message .= "\n\nDid you mean one of these?\n    ";
-}
-$message .= implode("\n    ", $alternatives);
-}
-
-throw new CommandNotFoundException($message, $alternatives);
-}
-
-
- if (\count($commands) > 1) {
-$commandList = $this->commands;
-$commands = array_filter($commands, function ($nameOrAlias) use ($commandList, $commands, &$aliases) {
-$commandName = $commandList[$nameOrAlias]->getName();
-$aliases[$nameOrAlias] = $commandName;
-
-return $commandName === $nameOrAlias || !\in_array($commandName, $commands);
-});
-}
-
-$exact = \in_array($name, $commands, true) || isset($aliases[$name]);
-if (!$exact && \count($commands) > 1) {
-$suggestions = $this->getAbbreviationSuggestions(array_values($commands));
-
-throw new CommandNotFoundException(sprintf('Command "%s" is ambiguous (%s).', $name, $suggestions), array_values($commands));
-}
-
-return $this->get($exact ? $name : reset($commands));
-}
-
-
-
-
-
-
-
-
-
-
-public function all($namespace = null)
-{
-$this->init();
-
-if (null === $namespace) {
-return $this->commands;
-}
-
-$commands = array();
-foreach ($this->commands as $name => $command) {
-if ($namespace === $this->extractNamespace($name, substr_count($namespace, ':') + 1)) {
-$commands[$name] = $command;
-}
-}
-
-return $commands;
-}
-
-
-
-
-
-
-
-
-public static function getAbbreviations($names)
-{
-$abbrevs = array();
-foreach ($names as $name) {
-for ($len = \strlen($name); $len > 0; --$len) {
-$abbrev = substr($name, 0, $len);
-$abbrevs[$abbrev][] = $name;
-}
-}
-
-return $abbrevs;
-}
-
-
-
-
-
-
-
-
-
-
-
-public function asText($namespace = null, $raw = false)
-{
-@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-$descriptor = new TextDescriptor();
-$output = new BufferedOutput(BufferedOutput::VERBOSITY_NORMAL, !$raw);
-$descriptor->describe($output, $this, array('namespace' => $namespace, 'raw_output' => true));
-
-return $output->fetch();
-}
-
-
-
-
-
-
-
-
-
-
-
-public function asXml($namespace = null, $asDom = false)
-{
-@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-$descriptor = new XmlDescriptor();
-
-if ($asDom) {
-return $descriptor->getApplicationDocument($this, $namespace);
-}
-
-$output = new BufferedOutput();
-$descriptor->describe($output, $this, array('namespace' => $namespace));
-
-return $output->fetch();
-}
-
-
-
-
-public function renderException($e, $output)
-{
-$output->writeln('', OutputInterface::VERBOSITY_QUIET);
-
-do {
-$title = sprintf('  [%s]  ', \get_class($e));
-
-$len = Helper::strlen($title);
-
-$width = $this->getTerminalWidth() ? $this->getTerminalWidth() - 1 : PHP_INT_MAX;
-
- if (\defined('HHVM_VERSION') && $width > 1 << 31) {
-$width = 1 << 31;
-}
-$lines = array();
-foreach (preg_split('/\r?\n/', trim($e->getMessage())) as $line) {
-foreach ($this->splitStringByWidth($line, $width - 4) as $line) {
-
- $lineLength = Helper::strlen($line) + 4;
-$lines[] = array($line, $lineLength);
-
-$len = max($lineLength, $len);
-}
-}
-
-$messages = array();
-$messages[] = $emptyLine = sprintf('<error>%s</error>', str_repeat(' ', $len));
-$messages[] = sprintf('<error>%s%s</error>', $title, str_repeat(' ', max(0, $len - Helper::strlen($title))));
-foreach ($lines as $line) {
-$messages[] = sprintf('<error>  %s  %s</error>', OutputFormatter::escape($line[0]), str_repeat(' ', $len - $line[1]));
-}
-$messages[] = $emptyLine;
-$messages[] = '';
-
-$output->writeln($messages, OutputInterface::VERBOSITY_QUIET);
-
-if (OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) {
-$output->writeln('<comment>Exception trace:</comment>', OutputInterface::VERBOSITY_QUIET);
-
-
- $trace = $e->getTrace();
-array_unshift($trace, array(
-'function' => '',
-'file' => null !== $e->getFile() ? $e->getFile() : 'n/a',
-'line' => null !== $e->getLine() ? $e->getLine() : 'n/a',
-'args' => array(),
-));
-
-for ($i = 0, $count = \count($trace); $i < $count; ++$i) {
-$class = isset($trace[$i]['class']) ? $trace[$i]['class'] : '';
-$type = isset($trace[$i]['type']) ? $trace[$i]['type'] : '';
-$function = $trace[$i]['function'];
-$file = isset($trace[$i]['file']) ? $trace[$i]['file'] : 'n/a';
-$line = isset($trace[$i]['line']) ? $trace[$i]['line'] : 'n/a';
-
-$output->writeln(sprintf(' %s%s%s() at <info>%s:%s</info>', $class, $type, $function, $file, $line), OutputInterface::VERBOSITY_QUIET);
-}
-
-$output->writeln('', OutputInterface::VERBOSITY_QUIET);
-}
-} while ($e = $e->getPrevious());
-
-if (null !== $this->runningCommand) {
-$output->writeln(sprintf('<info>%s</info>', sprintf($this->runningCommand->getSynopsis(), $this->getName())), OutputInterface::VERBOSITY_QUIET);
-$output->writeln('', OutputInterface::VERBOSITY_QUIET);
-}
-}
-
-
-
-
-
-
-protected function getTerminalWidth()
-{
-$dimensions = $this->getTerminalDimensions();
-
-return $dimensions[0];
-}
-
-
-
-
-
-
-protected function getTerminalHeight()
-{
-$dimensions = $this->getTerminalDimensions();
-
-return $dimensions[1];
-}
-
-
-
-
-
-
-public function getTerminalDimensions()
-{
-if ($this->terminalDimensions) {
-return $this->terminalDimensions;
-}
-
-if ('\\' === \DIRECTORY_SEPARATOR) {
-
- if (preg_match('/^(\d+)x\d+ \(\d+x(\d+)\)$/', trim(getenv('ANSICON')), $matches)) {
-return array((int) $matches[1], (int) $matches[2]);
-}
-
- if (preg_match('/^(\d+)x(\d+)$/', $this->getConsoleMode(), $matches)) {
-return array((int) $matches[1], (int) $matches[2]);
-}
-}
-
-if ($sttyString = $this->getSttyColumns()) {
-
- if (preg_match('/rows.(\d+);.columns.(\d+);/i', $sttyString, $matches)) {
-return array((int) $matches[2], (int) $matches[1]);
-}
-
- if (preg_match('/;.(\d+).rows;.(\d+).columns/i', $sttyString, $matches)) {
-return array((int) $matches[2], (int) $matches[1]);
-}
-}
-
-return array(null, null);
-}
-
-
-
-
-
-
-
-
-
-
-
-public function setTerminalDimensions($width, $height)
-{
-$this->terminalDimensions = array($width, $height);
-
-return $this;
-}
-
-
-
-
-protected function configureIO(InputInterface $input, OutputInterface $output)
-{
-if (true === $input->hasParameterOption(array('--ansi'))) {
-$output->setDecorated(true);
-} elseif (true === $input->hasParameterOption(array('--no-ansi'))) {
-$output->setDecorated(false);
-}
-
-if (true === $input->hasParameterOption(array('--no-interaction', '-n'))) {
-$input->setInteractive(false);
-} elseif (\function_exists('posix_isatty') && $this->getHelperSet()->has('question')) {
-$inputStream = $this->getHelperSet()->get('question')->getInputStream();
-if (!@posix_isatty($inputStream) && false === getenv('SHELL_INTERACTIVE')) {
-$input->setInteractive(false);
-}
-}
-
-if (true === $input->hasParameterOption(array('--quiet', '-q'))) {
-$output->setVerbosity(OutputInterface::VERBOSITY_QUIET);
-$input->setInteractive(false);
-} else {
-if ($input->hasParameterOption('-vvv') || $input->hasParameterOption('--verbose=3') || 3 === $input->getParameterOption('--verbose')) {
-$output->setVerbosity(OutputInterface::VERBOSITY_DEBUG);
-} elseif ($input->hasParameterOption('-vv') || $input->hasParameterOption('--verbose=2') || 2 === $input->getParameterOption('--verbose')) {
-$output->setVerbosity(OutputInterface::VERBOSITY_VERY_VERBOSE);
-} elseif ($input->hasParameterOption('-v') || $input->hasParameterOption('--verbose=1') || $input->hasParameterOption('--verbose') || $input->getParameterOption('--verbose')) {
-$output->setVerbosity(OutputInterface::VERBOSITY_VERBOSE);
-}
-}
-}
-
-
-
-
-
-
-
-
-
-protected function doRunCommand(Command $command, InputInterface $input, OutputInterface $output)
-{
-foreach ($command->getHelperSet() as $helper) {
-if ($helper instanceof InputAwareInterface) {
-$helper->setInput($input);
-}
-}
-
-if (null === $this->dispatcher) {
-return $command->run($input, $output);
-}
-
-
- try {
-$command->mergeApplicationDefinition();
-$input->bind($command->getDefinition());
-} catch (ExceptionInterface $e) {
-
- }
-
-$event = new ConsoleCommandEvent($command, $input, $output);
-$e = null;
-
-try {
-$this->dispatcher->dispatch(ConsoleEvents::COMMAND, $event);
-
-if ($event->commandShouldRun()) {
-$exitCode = $command->run($input, $output);
-} else {
-$exitCode = ConsoleCommandEvent::RETURN_CODE_DISABLED;
-}
-} catch (\Exception $e) {
-} catch (\Throwable $e) {
-}
-if (null !== $e) {
-$x = $e instanceof \Exception ? $e : new FatalThrowableError($e);
-$event = new ConsoleExceptionEvent($command, $input, $output, $x, $x->getCode());
-$this->dispatcher->dispatch(ConsoleEvents::EXCEPTION, $event);
-
-if ($x !== $event->getException()) {
-$e = $event->getException();
-}
-
-$exitCode = $this->getExitCodeForThrowable($e);
-}
-
-$event = new ConsoleTerminateEvent($command, $input, $output, $exitCode);
-$this->dispatcher->dispatch(ConsoleEvents::TERMINATE, $event);
-
-if (null !== $e) {
-throw $e;
-}
-
-return $event->getExitCode();
-}
-
-
-
-
-
-
-protected function getCommandName(InputInterface $input)
-{
-return $input->getFirstArgument();
-}
-
-
-
-
-
-
-protected function getDefaultInputDefinition()
-{
-return new InputDefinition(array(
-new InputArgument('command', InputArgument::REQUIRED, 'The command to execute'),
-
-new InputOption('--help', '-h', InputOption::VALUE_NONE, 'Display this help message'),
-new InputOption('--quiet', '-q', InputOption::VALUE_NONE, 'Do not output any message'),
-new InputOption('--verbose', '-v|vv|vvv', InputOption::VALUE_NONE, 'Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug'),
-new InputOption('--version', '-V', InputOption::VALUE_NONE, 'Display this application version'),
-new InputOption('--ansi', '', InputOption::VALUE_NONE, 'Force ANSI output'),
-new InputOption('--no-ansi', '', InputOption::VALUE_NONE, 'Disable ANSI output'),
-new InputOption('--no-interaction', '-n', InputOption::VALUE_NONE, 'Do not ask any interactive question'),
-));
-}
-
-
-
-
-
-
-protected function getDefaultCommands()
-{
-return array(new HelpCommand(), new ListCommand());
-}
-
-
-
-
-
-
-protected function getDefaultHelperSet()
-{
-return new HelperSet(array(
-new FormatterHelper(),
-new DialogHelper(false),
-new ProgressHelper(false),
-new TableHelper(false),
-new DebugFormatterHelper(),
-new ProcessHelper(),
-new QuestionHelper(),
-));
-}
-
-
-
-
-
-
-private function getSttyColumns()
-{
-if (!\function_exists('proc_open')) {
-return;
-}
-
-$descriptorspec = array(1 => array('pipe', 'w'), 2 => array('pipe', 'w'));
-$process = proc_open('stty -a | grep columns', $descriptorspec, $pipes, null, null, array('suppress_errors' => true));
-if (\is_resource($process)) {
-$info = stream_get_contents($pipes[1]);
-fclose($pipes[1]);
-fclose($pipes[2]);
-proc_close($process);
-
-return $info;
-}
-}
-
-
-
-
-
-
-private function getConsoleMode()
-{
-if (!\function_exists('proc_open')) {
-return;
-}
-
-$descriptorspec = array(1 => array('pipe', 'w'), 2 => array('pipe', 'w'));
-$process = proc_open('mode CON', $descriptorspec, $pipes, null, null, array('suppress_errors' => true));
-if (\is_resource($process)) {
-$info = stream_get_contents($pipes[1]);
-fclose($pipes[1]);
-fclose($pipes[2]);
-proc_close($process);
-
-if (preg_match('/--------+\r?\n.+?(\d+)\r?\n.+?(\d+)\r?\n/', $info, $matches)) {
-return $matches[2].'x'.$matches[1];
-}
-}
-}
-
-
-
-
-
-
-
-
-private function getAbbreviationSuggestions($abbrevs)
-{
-return sprintf('%s, %s%s', $abbrevs[0], $abbrevs[1], \count($abbrevs) > 2 ? sprintf(' and %d more', \count($abbrevs) - 2) : '');
-}
-
-
-
-
-
-
-
-
-
-
-
-public function extractNamespace($name, $limit = null)
-{
-$parts = explode(':', $name);
-array_pop($parts);
-
-return implode(':', null === $limit ? $parts : \array_slice($parts, 0, $limit));
-}
-
-
-
-
-
-
-
-
-
-
-private function findAlternatives($name, $collection)
-{
-$threshold = 1e3;
-$alternatives = array();
-
-$collectionParts = array();
-foreach ($collection as $item) {
-$collectionParts[$item] = explode(':', $item);
-}
-
-foreach (explode(':', $name) as $i => $subname) {
-foreach ($collectionParts as $collectionName => $parts) {
-$exists = isset($alternatives[$collectionName]);
-if (!isset($parts[$i]) && $exists) {
-$alternatives[$collectionName] += $threshold;
-continue;
-} elseif (!isset($parts[$i])) {
-continue;
-}
-
-$lev = levenshtein($subname, $parts[$i]);
-if ($lev <= \strlen($subname) / 3 || '' !== $subname && false !== strpos($parts[$i], $subname)) {
-$alternatives[$collectionName] = $exists ? $alternatives[$collectionName] + $lev : $lev;
-} elseif ($exists) {
-$alternatives[$collectionName] += $threshold;
-}
-}
-}
-
-foreach ($collection as $item) {
-$lev = levenshtein($name, $item);
-if ($lev <= \strlen($name) / 3 || false !== strpos($item, $name)) {
-$alternatives[$item] = isset($alternatives[$item]) ? $alternatives[$item] - $lev : $lev;
-}
-}
-
-$alternatives = array_filter($alternatives, function ($lev) use ($threshold) { return $lev < 2 * $threshold; });
-asort($alternatives);
-
-return array_keys($alternatives);
-}
-
-
-
-
-
-
-public function setDefaultCommand($commandName)
-{
-$this->defaultCommand = $commandName;
-}
-
-private function splitStringByWidth($string, $width)
-{
-
- 
- 
- if (false === $encoding = mb_detect_encoding($string, null, true)) {
-return str_split($string, $width);
-}
-
-$utf8String = mb_convert_encoding($string, 'utf8', $encoding);
-$lines = array();
-$line = '';
-foreach (preg_split('//u', $utf8String) as $char) {
-
- if (mb_strwidth($line.$char, 'utf8') <= $width) {
-$line .= $char;
-continue;
-}
-
- $lines[] = str_pad($line, $width);
-$line = $char;
-}
-
-$lines[] = \count($lines) ? str_pad($line, $width) : $line;
-
-mb_convert_variables($encoding, 'utf8', $lines);
-
-return $lines;
-}
-
-
-
-
-
-
-
-
-private function extractAllNamespaces($name)
-{
-
- $parts = explode(':', $name, -1);
-$namespaces = array();
-
-foreach ($parts as $part) {
-if (\count($namespaces)) {
-$namespaces[] = end($namespaces).':'.$part;
-} else {
-$namespaces[] = $part;
-}
-}
-
-return $namespaces;
-}
-
-private function init()
-{
-if ($this->initialized) {
-return;
-}
-$this->initialized = true;
-
-foreach ($this->getDefaultCommands() as $command) {
-$this->add($command);
-}
-}
-
-
-
-
-
-
-private function getExitCodeForThrowable($throwable)
-{
-$exitCode = $throwable->getCode();
-if (is_numeric($exitCode)) {
-$exitCode = (int) $exitCode;
-if (0 === $exitCode) {
-$exitCode = 1;
-}
-} else {
-$exitCode = 1;
-}
-
-return $exitCode;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Command;
-
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Descriptor\TextDescriptor;
-use Symfony\Component\Console\Descriptor\XmlDescriptor;
-use Symfony\Component\Console\Exception\ExceptionInterface;
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\LogicException;
-use Symfony\Component\Console\Helper\HelperSet;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\BufferedOutput;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-
-
-class Command
-{
-private $application;
-private $name;
-private $processTitle;
-private $aliases = array();
-private $definition;
-private $help;
-private $description;
-private $ignoreValidationErrors = false;
-private $applicationDefinitionMerged = false;
-private $applicationDefinitionMergedWithArgs = false;
-private $code;
-private $synopsis = array();
-private $usages = array();
-private $helperSet;
-
-
-
-
-
-
-public function __construct($name = null)
-{
-$this->definition = new InputDefinition();
-
-if (null !== $name) {
-$this->setName($name);
-}
-
-$this->configure();
-
-if (!$this->name) {
-throw new LogicException(sprintf('The command defined in "%s" cannot have an empty name.', \get_class($this)));
-}
-}
-
-
-
-
-
-
-public function ignoreValidationErrors()
-{
-$this->ignoreValidationErrors = true;
-}
-
-public function setApplication(Application $application = null)
-{
-$this->application = $application;
-if ($application) {
-$this->setHelperSet($application->getHelperSet());
-} else {
-$this->helperSet = null;
-}
-}
-
-public function setHelperSet(HelperSet $helperSet)
-{
-$this->helperSet = $helperSet;
-}
-
-
-
-
-
-
-public function getHelperSet()
-{
-return $this->helperSet;
-}
-
-
-
-
-
-
-public function getApplication()
-{
-return $this->application;
-}
-
-
-
-
-
-
-
-
-
-public function isEnabled()
-{
-return true;
-}
-
-
-
-
-protected function configure()
-{
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-throw new LogicException('You must override the execute() method in the concrete command class.');
-}
-
-
-
-
-
-
-
-
-protected function interact(InputInterface $input, OutputInterface $output)
-{
-}
-
-
-
-
-
-
-
-
-
-
-
-protected function initialize(InputInterface $input, OutputInterface $output)
-{
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function run(InputInterface $input, OutputInterface $output)
-{
-
- $this->getSynopsis(true);
-$this->getSynopsis(false);
-
-
- $this->mergeApplicationDefinition();
-
-
- try {
-$input->bind($this->definition);
-} catch (ExceptionInterface $e) {
-if (!$this->ignoreValidationErrors) {
-throw $e;
-}
-}
-
-$this->initialize($input, $output);
-
-if (null !== $this->processTitle) {
-if (\function_exists('cli_set_process_title')) {
-if (!@cli_set_process_title($this->processTitle)) {
-if ('Darwin' === PHP_OS) {
-$output->writeln('<comment>Running "cli_set_process_title" as an unprivileged user is not supported on MacOS.</comment>', OutputInterface::VERBOSITY_VERY_VERBOSE);
-} else {
-cli_set_process_title($this->processTitle);
-}
-}
-} elseif (\function_exists('setproctitle')) {
-setproctitle($this->processTitle);
-} elseif (OutputInterface::VERBOSITY_VERY_VERBOSE === $output->getVerbosity()) {
-$output->writeln('<comment>Install the proctitle PECL to be able to change the process title.</comment>');
-}
-}
-
-if ($input->isInteractive()) {
-$this->interact($input, $output);
-}
-
-
- 
- 
- if ($input->hasArgument('command') && null === $input->getArgument('command')) {
-$input->setArgument('command', $this->getName());
-}
-
-$input->validate();
-
-if ($this->code) {
-$statusCode = \call_user_func($this->code, $input, $output);
-} else {
-$statusCode = $this->execute($input, $output);
-}
-
-return is_numeric($statusCode) ? (int) $statusCode : 0;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function setCode($code)
-{
-if (!\is_callable($code)) {
-throw new InvalidArgumentException('Invalid callable provided to Command::setCode.');
-}
-
-if (\PHP_VERSION_ID >= 50400 && $code instanceof \Closure) {
-$r = new \ReflectionFunction($code);
-if (null === $r->getClosureThis()) {
-if (\PHP_VERSION_ID < 70000) {
-
- 
- 
- 
- $code = @\Closure::bind($code, $this);
-} else {
-$code = \Closure::bind($code, $this);
-}
-}
-}
-
-$this->code = $code;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function mergeApplicationDefinition($mergeArgs = true)
-{
-if (null === $this->application || (true === $this->applicationDefinitionMerged && ($this->applicationDefinitionMergedWithArgs || !$mergeArgs))) {
-return;
-}
-
-$this->definition->addOptions($this->application->getDefinition()->getOptions());
-
-$this->applicationDefinitionMerged = true;
-
-if ($mergeArgs) {
-$currentArguments = $this->definition->getArguments();
-$this->definition->setArguments($this->application->getDefinition()->getArguments());
-$this->definition->addArguments($currentArguments);
-
-$this->applicationDefinitionMergedWithArgs = true;
-}
-}
-
-
-
-
-
-
-
-
-public function setDefinition($definition)
-{
-if ($definition instanceof InputDefinition) {
-$this->definition = $definition;
-} else {
-$this->definition->setDefinition($definition);
-}
-
-$this->applicationDefinitionMerged = false;
-
-return $this;
-}
-
-
-
-
-
-
-public function getDefinition()
-{
-return $this->definition;
-}
-
-
-
-
-
-
-
-
-
-
-
-public function getNativeDefinition()
-{
-return $this->getDefinition();
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function addArgument($name, $mode = null, $description = '', $default = null)
-{
-$this->definition->addArgument(new InputArgument($name, $mode, $description, $default));
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function addOption($name, $shortcut = null, $mode = null, $description = '', $default = null)
-{
-$this->definition->addOption(new InputOption($name, $shortcut, $mode, $description, $default));
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function setName($name)
-{
-$this->validateName($name);
-
-$this->name = $name;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function setProcessTitle($title)
-{
-$this->processTitle = $title;
-
-return $this;
-}
-
-
-
-
-
-
-public function getName()
-{
-return $this->name;
-}
-
-
-
-
-
-
-
-
-public function setDescription($description)
-{
-$this->description = $description;
-
-return $this;
-}
-
-
-
-
-
-
-public function getDescription()
-{
-return $this->description;
-}
-
-
-
-
-
-
-
-
-public function setHelp($help)
-{
-$this->help = $help;
-
-return $this;
-}
-
-
-
-
-
-
-public function getHelp()
-{
-return $this->help;
-}
-
-
-
-
-
-
-
-public function getProcessedHelp()
-{
-$name = $this->name;
-
-$placeholders = array(
-'%command.name%',
-'%command.full_name%',
-);
-$replacements = array(
-$name,
-$_SERVER['PHP_SELF'].' '.$name,
-);
-
-return str_replace($placeholders, $replacements, $this->getHelp() ?: $this->getDescription());
-}
-
-
-
-
-
-
-
-
-
-
-public function setAliases($aliases)
-{
-if (!\is_array($aliases) && !$aliases instanceof \Traversable) {
-throw new InvalidArgumentException('$aliases must be an array or an instance of \Traversable');
-}
-
-foreach ($aliases as $alias) {
-$this->validateName($alias);
-}
-
-$this->aliases = $aliases;
-
-return $this;
-}
-
-
-
-
-
-
-public function getAliases()
-{
-return $this->aliases;
-}
-
-
-
-
-
-
-
-
-public function getSynopsis($short = false)
-{
-$key = $short ? 'short' : 'long';
-
-if (!isset($this->synopsis[$key])) {
-$this->synopsis[$key] = trim(sprintf('%s %s', $this->name, $this->definition->getSynopsis($short)));
-}
-
-return $this->synopsis[$key];
-}
-
-
-
-
-
-
-
-
-public function addUsage($usage)
-{
-if (0 !== strpos($usage, $this->name)) {
-$usage = sprintf('%s %s', $this->name, $usage);
-}
-
-$this->usages[] = $usage;
-
-return $this;
-}
-
-
-
-
-
-
-public function getUsages()
-{
-return $this->usages;
-}
-
-
-
-
-
-
-
-
-
-
-
-public function getHelper($name)
-{
-if (null === $this->helperSet) {
-throw new LogicException(sprintf('Cannot retrieve helper "%s" because there is no HelperSet defined. Did you forget to add your command to the application or to set the application on the command using the setApplication() method? You can also set the HelperSet directly using the setHelperSet() method.', $name));
-}
-
-return $this->helperSet->get($name);
-}
-
-
-
-
-
-
-
-
-public function asText()
-{
-@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-$descriptor = new TextDescriptor();
-$output = new BufferedOutput(BufferedOutput::VERBOSITY_NORMAL, true);
-$descriptor->describe($output, $this, array('raw_output' => true));
-
-return $output->fetch();
-}
-
-
-
-
-
-
-
-
-
-
-public function asXml($asDom = false)
-{
-@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-$descriptor = new XmlDescriptor();
-
-if ($asDom) {
-return $descriptor->getCommandDocument($this);
-}
-
-$output = new BufferedOutput();
-$descriptor->describe($output, $this);
-
-return $output->fetch();
-}
-
-
-
-
-
-
-
-
-
-
-private function validateName($name)
-{
-if (!preg_match('/^[^\:]++(\:[^\:]++)*$/', $name)) {
-throw new InvalidArgumentException(sprintf('Command name "%s" is invalid.', $name));
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Command;
-
-use Symfony\Component\Console\Helper\DescriptorHelper;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-
-
-class HelpCommand extends Command
-{
-private $command;
-
-
-
-
-protected function configure()
-{
-$this->ignoreValidationErrors();
-
-$this
-->setName('help')
-->setDefinition(array(
-new InputArgument('command_name', InputArgument::OPTIONAL, 'The command name', 'help'),
-new InputOption('xml', null, InputOption::VALUE_NONE, 'To output help as XML'),
-new InputOption('format', null, InputOption::VALUE_REQUIRED, 'The output format (txt, xml, json, or md)', 'txt'),
-new InputOption('raw', null, InputOption::VALUE_NONE, 'To output raw command help'),
-))
-->setDescription('Displays help for a command')
-->setHelp(<<<'EOF'
-The <info>%command.name%</info> command displays help for a given command:
-
-  <info>php %command.full_name% list</info>
-
-You can also output the help in other formats by using the <comment>--format</comment> option:
-
-  <info>php %command.full_name% --format=xml list</info>
-
-To display the list of available commands, please use the <info>list</info> command.
-EOF
-)
-;
-}
-
-public function setCommand(Command $command)
-{
-$this->command = $command;
-}
-
-
-
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-if (null === $this->command) {
-$this->command = $this->getApplication()->find($input->getArgument('command_name'));
-}
-
-if ($input->getOption('xml')) {
-@trigger_error('The --xml option was deprecated in version 2.7 and will be removed in version 3.0. Use the --format option instead.', E_USER_DEPRECATED);
-
-$input->setOption('format', 'xml');
-}
-
-$helper = new DescriptorHelper();
-$helper->describe($output, $this->command, array(
-'format' => $input->getOption('format'),
-'raw_text' => $input->getOption('raw'),
-));
-
-$this->command = null;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Command;
-
-use Symfony\Component\Console\Helper\DescriptorHelper;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-
-
-class ListCommand extends Command
-{
-
-
-
-protected function configure()
-{
-$this
-->setName('list')
-->setDefinition($this->createDefinition())
-->setDescription('Lists commands')
-->setHelp(<<<'EOF'
-The <info>%command.name%</info> command lists all commands:
-
-  <info>php %command.full_name%</info>
-
-You can also display the commands for a specific namespace:
-
-  <info>php %command.full_name% test</info>
-
-You can also output the information in other formats by using the <comment>--format</comment> option:
-
-  <info>php %command.full_name% --format=xml</info>
-
-It's also possible to get raw list of commands (useful for embedding command runner):
-
-  <info>php %command.full_name% --raw</info>
-EOF
-)
-;
-}
-
-
-
-
-public function getNativeDefinition()
-{
-return $this->createDefinition();
-}
-
-
-
-
-protected function execute(InputInterface $input, OutputInterface $output)
-{
-if ($input->getOption('xml')) {
-@trigger_error('The --xml option was deprecated in version 2.7 and will be removed in version 3.0. Use the --format option instead.', E_USER_DEPRECATED);
-
-$input->setOption('format', 'xml');
-}
-
-$helper = new DescriptorHelper();
-$helper->describe($output, $this->getApplication(), array(
-'format' => $input->getOption('format'),
-'raw_text' => $input->getOption('raw'),
-'namespace' => $input->getArgument('namespace'),
-));
-}
-
-
-
-
-private function createDefinition()
-{
-return new InputDefinition(array(
-new InputArgument('namespace', InputArgument::OPTIONAL, 'The namespace name'),
-new InputOption('xml', null, InputOption::VALUE_NONE, 'To output list as XML'),
-new InputOption('raw', null, InputOption::VALUE_NONE, 'To output raw command list'),
-new InputOption('format', null, InputOption::VALUE_REQUIRED, 'The output format (txt, xml, json, or md)', 'txt'),
-));
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console;
-
-
-
-
-
-
-final class ConsoleEvents
-{
-
-
-
-
-
-
-
-
-
-
-const COMMAND = 'console.command';
-
-
-
-
-
-
-
-
-
-
-const TERMINATE = 'console.terminate';
-
-
-
-
-
-
-
-
-
-
-
-const EXCEPTION = 'console.exception';
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Descriptor;
-
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Exception\CommandNotFoundException;
-
-
-
-
-
-
-class ApplicationDescription
-{
-const GLOBAL_NAMESPACE = '_global';
-
-private $application;
-private $namespace;
-
-
-
-
-private $namespaces;
-
-
-
-
-private $commands;
-
-
-
-
-private $aliases;
-
-public function __construct(Application $application, $namespace = null)
-{
-$this->application = $application;
-$this->namespace = $namespace;
-}
-
-
-
-
-public function getNamespaces()
-{
-if (null === $this->namespaces) {
-$this->inspectApplication();
-}
-
-return $this->namespaces;
-}
-
-
-
-
-public function getCommands()
-{
-if (null === $this->commands) {
-$this->inspectApplication();
-}
-
-return $this->commands;
-}
-
-
-
-
-
-
-
-
-public function getCommand($name)
-{
-if (!isset($this->commands[$name]) && !isset($this->aliases[$name])) {
-throw new CommandNotFoundException(sprintf('Command %s does not exist.', $name));
-}
-
-return isset($this->commands[$name]) ? $this->commands[$name] : $this->aliases[$name];
-}
-
-private function inspectApplication()
-{
-$this->commands = array();
-$this->namespaces = array();
-
-$all = $this->application->all($this->namespace ? $this->application->findNamespace($this->namespace) : null);
-foreach ($this->sortCommands($all) as $namespace => $commands) {
-$names = array();
-
-
-foreach ($commands as $name => $command) {
-if (!$command->getName()) {
-continue;
-}
-
-if ($command->getName() === $name) {
-$this->commands[$name] = $command;
-} else {
-$this->aliases[$name] = $command;
-}
-
-$names[] = $name;
-}
-
-$this->namespaces[$namespace] = array('id' => $namespace, 'commands' => $names);
-}
-}
-
-
-
-
-private function sortCommands(array $commands)
-{
-$namespacedCommands = array();
-$globalCommands = array();
-foreach ($commands as $name => $command) {
-$key = $this->application->extractNamespace($name, 1);
-if (!$key) {
-$globalCommands['_global'][$name] = $command;
-} else {
-$namespacedCommands[$key][$name] = $command;
-}
-}
-ksort($namespacedCommands);
-$namespacedCommands = array_merge($globalCommands, $namespacedCommands);
-
-foreach ($namespacedCommands as &$commandsSet) {
-ksort($commandsSet);
-}
-
- unset($commandsSet);
-
-return $namespacedCommands;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Descriptor;
-
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-
-
-abstract class Descriptor implements DescriptorInterface
-{
-
-
-
-private $output;
-
-
-
-
-public function describe(OutputInterface $output, $object, array $options = array())
-{
-$this->output = $output;
-
-switch (true) {
-case $object instanceof InputArgument:
-$this->describeInputArgument($object, $options);
-break;
-case $object instanceof InputOption:
-$this->describeInputOption($object, $options);
-break;
-case $object instanceof InputDefinition:
-$this->describeInputDefinition($object, $options);
-break;
-case $object instanceof Command:
-$this->describeCommand($object, $options);
-break;
-case $object instanceof Application:
-$this->describeApplication($object, $options);
-break;
-default:
-throw new InvalidArgumentException(sprintf('Object of type "%s" is not describable.', \get_class($object)));
-}
-}
-
-
-
-
-
-
-
-protected function write($content, $decorated = false)
-{
-$this->output->write($content, false, $decorated ? OutputInterface::OUTPUT_NORMAL : OutputInterface::OUTPUT_RAW);
-}
-
-
-
-
-
-
-abstract protected function describeInputArgument(InputArgument $argument, array $options = array());
-
-
-
-
-
-
-abstract protected function describeInputOption(InputOption $option, array $options = array());
-
-
-
-
-
-
-abstract protected function describeInputDefinition(InputDefinition $definition, array $options = array());
-
-
-
-
-
-
-abstract protected function describeCommand(Command $command, array $options = array());
-
-
-
-
-
-
-abstract protected function describeApplication(Application $application, array $options = array());
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Descriptor;
-
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-
-
-interface DescriptorInterface
-{
-
-
-
-
-
-
-
-public function describe(OutputInterface $output, $object, array $options = array());
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Descriptor;
-
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputOption;
-
-
-
-
-
-
-
-
-class JsonDescriptor extends Descriptor
-{
-
-
-
-protected function describeInputArgument(InputArgument $argument, array $options = array())
-{
-$this->writeData($this->getInputArgumentData($argument), $options);
-}
-
-
-
-
-protected function describeInputOption(InputOption $option, array $options = array())
-{
-$this->writeData($this->getInputOptionData($option), $options);
-}
-
-
-
-
-protected function describeInputDefinition(InputDefinition $definition, array $options = array())
-{
-$this->writeData($this->getInputDefinitionData($definition), $options);
-}
-
-
-
-
-protected function describeCommand(Command $command, array $options = array())
-{
-$this->writeData($this->getCommandData($command), $options);
-}
-
-
-
-
-protected function describeApplication(Application $application, array $options = array())
-{
-$describedNamespace = isset($options['namespace']) ? $options['namespace'] : null;
-$description = new ApplicationDescription($application, $describedNamespace);
-$commands = array();
-
-foreach ($description->getCommands() as $command) {
-$commands[] = $this->getCommandData($command);
-}
-
-$data = $describedNamespace
-? array('commands' => $commands, 'namespace' => $describedNamespace)
-: array('commands' => $commands, 'namespaces' => array_values($description->getNamespaces()));
-
-$this->writeData($data, $options);
-}
-
-
-
-
-
-
-private function writeData(array $data, array $options)
-{
-$this->write(json_encode($data, isset($options['json_encoding']) ? $options['json_encoding'] : 0));
-}
-
-
-
-
-private function getInputArgumentData(InputArgument $argument)
-{
-return array(
-'name' => $argument->getName(),
-'is_required' => $argument->isRequired(),
-'is_array' => $argument->isArray(),
-'description' => preg_replace('/\s*[\r\n]\s*/', ' ', $argument->getDescription()),
-'default' => INF === $argument->getDefault() ? 'INF' : $argument->getDefault(),
-);
-}
-
-
-
-
-private function getInputOptionData(InputOption $option)
-{
-return array(
-'name' => '--'.$option->getName(),
-'shortcut' => $option->getShortcut() ? '-'.str_replace('|', '|-', $option->getShortcut()) : '',
-'accept_value' => $option->acceptValue(),
-'is_value_required' => $option->isValueRequired(),
-'is_multiple' => $option->isArray(),
-'description' => preg_replace('/\s*[\r\n]\s*/', ' ', $option->getDescription()),
-'default' => INF === $option->getDefault() ? 'INF' : $option->getDefault(),
-);
-}
-
-
-
-
-private function getInputDefinitionData(InputDefinition $definition)
-{
-$inputArguments = array();
-foreach ($definition->getArguments() as $name => $argument) {
-$inputArguments[$name] = $this->getInputArgumentData($argument);
-}
-
-$inputOptions = array();
-foreach ($definition->getOptions() as $name => $option) {
-$inputOptions[$name] = $this->getInputOptionData($option);
-}
-
-return array('arguments' => $inputArguments, 'options' => $inputOptions);
-}
-
-
-
-
-private function getCommandData(Command $command)
-{
-$command->getSynopsis();
-$command->mergeApplicationDefinition(false);
-
-return array(
-'name' => $command->getName(),
-'usage' => array_merge(array($command->getSynopsis()), $command->getUsages(), $command->getAliases()),
-'description' => $command->getDescription(),
-'help' => $command->getProcessedHelp(),
-'definition' => $this->getInputDefinitionData($command->getNativeDefinition()),
-);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Descriptor;
-
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Helper\Helper;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputOption;
-
-
-
-
-
-
-
-
-class MarkdownDescriptor extends Descriptor
-{
-
-
-
-protected function describeInputArgument(InputArgument $argument, array $options = array())
-{
-$this->write(
-'**'.$argument->getName().':**'."\n\n"
-.'* Name: '.($argument->getName() ?: '<none>')."\n"
-.'* Is required: '.($argument->isRequired() ? 'yes' : 'no')."\n"
-.'* Is array: '.($argument->isArray() ? 'yes' : 'no')."\n"
-.'* Description: '.preg_replace('/\s*[\r\n]\s*/', "\n  ", $argument->getDescription() ?: '<none>')."\n"
-.'* Default: `'.str_replace("\n", '', var_export($argument->getDefault(), true)).'`'
-);
-}
-
-
-
-
-protected function describeInputOption(InputOption $option, array $options = array())
-{
-$this->write(
-'**'.$option->getName().':**'."\n\n"
-.'* Name: `--'.$option->getName().'`'."\n"
-.'* Shortcut: '.($option->getShortcut() ? '`-'.str_replace('|', '|-', $option->getShortcut()).'`' : '<none>')."\n"
-.'* Accept value: '.($option->acceptValue() ? 'yes' : 'no')."\n"
-.'* Is value required: '.($option->isValueRequired() ? 'yes' : 'no')."\n"
-.'* Is multiple: '.($option->isArray() ? 'yes' : 'no')."\n"
-.'* Description: '.preg_replace('/\s*[\r\n]\s*/', "\n  ", $option->getDescription() ?: '<none>')."\n"
-.'* Default: `'.str_replace("\n", '', var_export($option->getDefault(), true)).'`'
-);
-}
-
-
-
-
-protected function describeInputDefinition(InputDefinition $definition, array $options = array())
-{
-if ($showArguments = \count($definition->getArguments()) > 0) {
-$this->write('### Arguments:');
-foreach ($definition->getArguments() as $argument) {
-$this->write("\n\n");
-$this->write($this->describeInputArgument($argument));
-}
-}
-
-if (\count($definition->getOptions()) > 0) {
-if ($showArguments) {
-$this->write("\n\n");
-}
-
-$this->write('### Options:');
-foreach ($definition->getOptions() as $option) {
-$this->write("\n\n");
-$this->write($this->describeInputOption($option));
-}
-}
-}
-
-
-
-
-protected function describeCommand(Command $command, array $options = array())
-{
-$command->getSynopsis();
-$command->mergeApplicationDefinition(false);
-
-$this->write(
-$command->getName()."\n"
-.str_repeat('-', Helper::strlen($command->getName()))."\n\n"
-.'* Description: '.($command->getDescription() ?: '<none>')."\n"
-.'* Usage:'."\n\n"
-.array_reduce(array_merge(array($command->getSynopsis()), $command->getAliases(), $command->getUsages()), function ($carry, $usage) {
-return $carry.'  * `'.$usage.'`'."\n";
-})
-);
-
-if ($help = $command->getProcessedHelp()) {
-$this->write("\n");
-$this->write($help);
-}
-
-if ($command->getNativeDefinition()) {
-$this->write("\n\n");
-$this->describeInputDefinition($command->getNativeDefinition());
-}
-}
-
-
-
-
-protected function describeApplication(Application $application, array $options = array())
-{
-$describedNamespace = isset($options['namespace']) ? $options['namespace'] : null;
-$description = new ApplicationDescription($application, $describedNamespace);
-
-$this->write($application->getName()."\n".str_repeat('=', Helper::strlen($application->getName())));
-
-foreach ($description->getNamespaces() as $namespace) {
-if (ApplicationDescription::GLOBAL_NAMESPACE !== $namespace['id']) {
-$this->write("\n\n");
-$this->write('**'.$namespace['id'].':**');
-}
-
-$this->write("\n\n");
-$this->write(implode("\n", array_map(function ($commandName) {
-return '* '.$commandName;
-}, $namespace['commands'])));
-}
-
-foreach ($description->getCommands() as $command) {
-$this->write("\n\n");
-$this->write($this->describeCommand($command));
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Descriptor;
-
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Helper\Helper;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputOption;
-
-
-
-
-
-
-
-
-class TextDescriptor extends Descriptor
-{
-
-
-
-protected function describeInputArgument(InputArgument $argument, array $options = array())
-{
-if (null !== $argument->getDefault() && (!\is_array($argument->getDefault()) || \count($argument->getDefault()))) {
-$default = sprintf('<comment> [default: %s]</comment>', $this->formatDefaultValue($argument->getDefault()));
-} else {
-$default = '';
-}
-
-$totalWidth = isset($options['total_width']) ? $options['total_width'] : Helper::strlen($argument->getName());
-$spacingWidth = $totalWidth - \strlen($argument->getName());
-
-$this->writeText(sprintf('  <info>%s</info>  %s%s%s',
-$argument->getName(),
-str_repeat(' ', $spacingWidth),
-
- preg_replace('/\s*[\r\n]\s*/', "\n".str_repeat(' ', $totalWidth + 4), $argument->getDescription()),
-$default
-), $options);
-}
-
-
-
-
-protected function describeInputOption(InputOption $option, array $options = array())
-{
-if ($option->acceptValue() && null !== $option->getDefault() && (!\is_array($option->getDefault()) || \count($option->getDefault()))) {
-$default = sprintf('<comment> [default: %s]</comment>', $this->formatDefaultValue($option->getDefault()));
-} else {
-$default = '';
-}
-
-$value = '';
-if ($option->acceptValue()) {
-$value = '='.strtoupper($option->getName());
-
-if ($option->isValueOptional()) {
-$value = '['.$value.']';
-}
-}
-
-$totalWidth = isset($options['total_width']) ? $options['total_width'] : $this->calculateTotalWidthForOptions(array($option));
-$synopsis = sprintf('%s%s',
-$option->getShortcut() ? sprintf('-%s, ', $option->getShortcut()) : '    ',
-sprintf('--%s%s', $option->getName(), $value)
-);
-
-$spacingWidth = $totalWidth - Helper::strlen($synopsis);
-
-$this->writeText(sprintf('  <info>%s</info>  %s%s%s%s',
-$synopsis,
-str_repeat(' ', $spacingWidth),
-
- preg_replace('/\s*[\r\n]\s*/', "\n".str_repeat(' ', $totalWidth + 4), $option->getDescription()),
-$default,
-$option->isArray() ? '<comment> (multiple values allowed)</comment>' : ''
-), $options);
-}
-
-
-
-
-protected function describeInputDefinition(InputDefinition $definition, array $options = array())
-{
-$totalWidth = $this->calculateTotalWidthForOptions($definition->getOptions());
-foreach ($definition->getArguments() as $argument) {
-$totalWidth = max($totalWidth, Helper::strlen($argument->getName()));
-}
-
-if ($definition->getArguments()) {
-$this->writeText('<comment>Arguments:</comment>', $options);
-$this->writeText("\n");
-foreach ($definition->getArguments() as $argument) {
-$this->describeInputArgument($argument, array_merge($options, array('total_width' => $totalWidth)));
-$this->writeText("\n");
-}
-}
-
-if ($definition->getArguments() && $definition->getOptions()) {
-$this->writeText("\n");
-}
-
-if ($definition->getOptions()) {
-$laterOptions = array();
-
-$this->writeText('<comment>Options:</comment>', $options);
-foreach ($definition->getOptions() as $option) {
-if (\strlen($option->getShortcut()) > 1) {
-$laterOptions[] = $option;
-continue;
-}
-$this->writeText("\n");
-$this->describeInputOption($option, array_merge($options, array('total_width' => $totalWidth)));
-}
-foreach ($laterOptions as $option) {
-$this->writeText("\n");
-$this->describeInputOption($option, array_merge($options, array('total_width' => $totalWidth)));
-}
-}
-}
-
-
-
-
-protected function describeCommand(Command $command, array $options = array())
-{
-$command->getSynopsis(true);
-$command->getSynopsis(false);
-$command->mergeApplicationDefinition(false);
-
-$this->writeText('<comment>Usage:</comment>', $options);
-foreach (array_merge(array($command->getSynopsis(true)), $command->getAliases(), $command->getUsages()) as $usage) {
-$this->writeText("\n");
-$this->writeText('  '.OutputFormatter::escape($usage), $options);
-}
-$this->writeText("\n");
-
-$definition = $command->getNativeDefinition();
-if ($definition->getOptions() || $definition->getArguments()) {
-$this->writeText("\n");
-$this->describeInputDefinition($definition, $options);
-$this->writeText("\n");
-}
-
-if ($help = $command->getProcessedHelp()) {
-$this->writeText("\n");
-$this->writeText('<comment>Help:</comment>', $options);
-$this->writeText("\n");
-$this->writeText('  '.str_replace("\n", "\n  ", $help), $options);
-$this->writeText("\n");
-}
-}
-
-
-
-
-protected function describeApplication(Application $application, array $options = array())
-{
-$describedNamespace = isset($options['namespace']) ? $options['namespace'] : null;
-$description = new ApplicationDescription($application, $describedNamespace);
-
-if (isset($options['raw_text']) && $options['raw_text']) {
-$width = $this->getColumnWidth($description->getCommands());
-
-foreach ($description->getCommands() as $command) {
-$this->writeText(sprintf("%-{$width}s %s", $command->getName(), $command->getDescription()), $options);
-$this->writeText("\n");
-}
-} else {
-if ('' != $help = $application->getHelp()) {
-$this->writeText("$help\n\n", $options);
-}
-
-$this->writeText("<comment>Usage:</comment>\n", $options);
-$this->writeText("  command [options] [arguments]\n\n", $options);
-
-$this->describeInputDefinition(new InputDefinition($application->getDefinition()->getOptions()), $options);
-
-$this->writeText("\n");
-$this->writeText("\n");
-
-$width = $this->getColumnWidth($description->getCommands());
-
-if ($describedNamespace) {
-$this->writeText(sprintf('<comment>Available commands for the "%s" namespace:</comment>', $describedNamespace), $options);
-} else {
-$this->writeText('<comment>Available commands:</comment>', $options);
-}
-
-
- foreach ($description->getNamespaces() as $namespace) {
-if (!$describedNamespace && ApplicationDescription::GLOBAL_NAMESPACE !== $namespace['id']) {
-$this->writeText("\n");
-$this->writeText(' <comment>'.$namespace['id'].'</comment>', $options);
-}
-
-foreach ($namespace['commands'] as $name) {
-$this->writeText("\n");
-$spacingWidth = $width - Helper::strlen($name);
-$this->writeText(sprintf('  <info>%s</info>%s%s', $name, str_repeat(' ', $spacingWidth), $description->getCommand($name)->getDescription()), $options);
-}
-}
-
-$this->writeText("\n");
-}
-}
-
-
-
-
-private function writeText($content, array $options = array())
-{
-$this->write(
-isset($options['raw_text']) && $options['raw_text'] ? strip_tags($content) : $content,
-isset($options['raw_output']) ? !$options['raw_output'] : true
-);
-}
-
-
-
-
-
-
-
-
-private function formatDefaultValue($default)
-{
-if (INF === $default) {
-return 'INF';
-}
-
-if (\is_string($default)) {
-$default = OutputFormatter::escape($default);
-} elseif (\is_array($default)) {
-foreach ($default as $key => $value) {
-if (\is_string($value)) {
-$default[$key] = OutputFormatter::escape($value);
-}
-}
-}
-
-if (\PHP_VERSION_ID < 50400) {
-return str_replace(array('\/', '\\\\'), array('/', '\\'), json_encode($default));
-}
-
-return str_replace('\\\\', '\\', json_encode($default, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE));
-}
-
-
-
-
-
-
-private function getColumnWidth(array $commands)
-{
-$widths = array();
-
-foreach ($commands as $command) {
-$widths[] = Helper::strlen($command->getName());
-foreach ($command->getAliases() as $alias) {
-$widths[] = Helper::strlen($alias);
-}
-}
-
-return max($widths) + 2;
-}
-
-
-
-
-
-
-private function calculateTotalWidthForOptions(array $options)
-{
-$totalWidth = 0;
-foreach ($options as $option) {
-
- $nameLength = 1 + max(\strlen($option->getShortcut()), 1) + 4 + Helper::strlen($option->getName());
-
-if ($option->acceptValue()) {
-$valueLength = 1 + Helper::strlen($option->getName()); 
- $valueLength += $option->isValueOptional() ? 2 : 0; 
-
-$nameLength += $valueLength;
-}
-$totalWidth = max($totalWidth, $nameLength);
-}
-
-return $totalWidth;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Descriptor;
-
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputDefinition;
-use Symfony\Component\Console\Input\InputOption;
-
-
-
-
-
-
-
-
-class XmlDescriptor extends Descriptor
-{
-
-
-
-public function getInputDefinitionDocument(InputDefinition $definition)
-{
-$dom = new \DOMDocument('1.0', 'UTF-8');
-$dom->appendChild($definitionXML = $dom->createElement('definition'));
-
-$definitionXML->appendChild($argumentsXML = $dom->createElement('arguments'));
-foreach ($definition->getArguments() as $argument) {
-$this->appendDocument($argumentsXML, $this->getInputArgumentDocument($argument));
-}
-
-$definitionXML->appendChild($optionsXML = $dom->createElement('options'));
-foreach ($definition->getOptions() as $option) {
-$this->appendDocument($optionsXML, $this->getInputOptionDocument($option));
-}
-
-return $dom;
-}
-
-
-
-
-public function getCommandDocument(Command $command)
-{
-$dom = new \DOMDocument('1.0', 'UTF-8');
-$dom->appendChild($commandXML = $dom->createElement('command'));
-
-$command->getSynopsis();
-$command->mergeApplicationDefinition(false);
-
-$commandXML->setAttribute('id', $command->getName());
-$commandXML->setAttribute('name', $command->getName());
-
-$commandXML->appendChild($usagesXML = $dom->createElement('usages'));
-
-foreach (array_merge(array($command->getSynopsis()), $command->getAliases(), $command->getUsages()) as $usage) {
-$usagesXML->appendChild($dom->createElement('usage', $usage));
-}
-
-$commandXML->appendChild($descriptionXML = $dom->createElement('description'));
-$descriptionXML->appendChild($dom->createTextNode(str_replace("\n", "\n ", $command->getDescription())));
-
-$commandXML->appendChild($helpXML = $dom->createElement('help'));
-$helpXML->appendChild($dom->createTextNode(str_replace("\n", "\n ", $command->getProcessedHelp())));
-
-$definitionXML = $this->getInputDefinitionDocument($command->getNativeDefinition());
-$this->appendDocument($commandXML, $definitionXML->getElementsByTagName('definition')->item(0));
-
-return $dom;
-}
-
-
-
-
-
-
-
-public function getApplicationDocument(Application $application, $namespace = null)
-{
-$dom = new \DOMDocument('1.0', 'UTF-8');
-$dom->appendChild($rootXml = $dom->createElement('symfony'));
-
-if ('UNKNOWN' !== $application->getName()) {
-$rootXml->setAttribute('name', $application->getName());
-if ('UNKNOWN' !== $application->getVersion()) {
-$rootXml->setAttribute('version', $application->getVersion());
-}
-}
-
-$rootXml->appendChild($commandsXML = $dom->createElement('commands'));
-
-$description = new ApplicationDescription($application, $namespace);
-
-if ($namespace) {
-$commandsXML->setAttribute('namespace', $namespace);
-}
-
-foreach ($description->getCommands() as $command) {
-$this->appendDocument($commandsXML, $this->getCommandDocument($command));
-}
-
-if (!$namespace) {
-$rootXml->appendChild($namespacesXML = $dom->createElement('namespaces'));
-
-foreach ($description->getNamespaces() as $namespaceDescription) {
-$namespacesXML->appendChild($namespaceArrayXML = $dom->createElement('namespace'));
-$namespaceArrayXML->setAttribute('id', $namespaceDescription['id']);
-
-foreach ($namespaceDescription['commands'] as $name) {
-$namespaceArrayXML->appendChild($commandXML = $dom->createElement('command'));
-$commandXML->appendChild($dom->createTextNode($name));
-}
-}
-}
-
-return $dom;
-}
-
-
-
-
-protected function describeInputArgument(InputArgument $argument, array $options = array())
-{
-$this->writeDocument($this->getInputArgumentDocument($argument));
-}
-
-
-
-
-protected function describeInputOption(InputOption $option, array $options = array())
-{
-$this->writeDocument($this->getInputOptionDocument($option));
-}
-
-
-
-
-protected function describeInputDefinition(InputDefinition $definition, array $options = array())
-{
-$this->writeDocument($this->getInputDefinitionDocument($definition));
-}
-
-
-
-
-protected function describeCommand(Command $command, array $options = array())
-{
-$this->writeDocument($this->getCommandDocument($command));
-}
-
-
-
-
-protected function describeApplication(Application $application, array $options = array())
-{
-$this->writeDocument($this->getApplicationDocument($application, isset($options['namespace']) ? $options['namespace'] : null));
-}
-
-
-
-
-private function appendDocument(\DOMNode $parentNode, \DOMNode $importedParent)
-{
-foreach ($importedParent->childNodes as $childNode) {
-$parentNode->appendChild($parentNode->ownerDocument->importNode($childNode, true));
-}
-}
-
-
-
-
-
-
-private function writeDocument(\DOMDocument $dom)
-{
-$dom->formatOutput = true;
-$this->write($dom->saveXML());
-}
-
-
-
-
-private function getInputArgumentDocument(InputArgument $argument)
-{
-$dom = new \DOMDocument('1.0', 'UTF-8');
-
-$dom->appendChild($objectXML = $dom->createElement('argument'));
-$objectXML->setAttribute('name', $argument->getName());
-$objectXML->setAttribute('is_required', $argument->isRequired() ? 1 : 0);
-$objectXML->setAttribute('is_array', $argument->isArray() ? 1 : 0);
-$objectXML->appendChild($descriptionXML = $dom->createElement('description'));
-$descriptionXML->appendChild($dom->createTextNode($argument->getDescription()));
-
-$objectXML->appendChild($defaultsXML = $dom->createElement('defaults'));
-$defaults = \is_array($argument->getDefault()) ? $argument->getDefault() : (\is_bool($argument->getDefault()) ? array(var_export($argument->getDefault(), true)) : ($argument->getDefault() ? array($argument->getDefault()) : array()));
-foreach ($defaults as $default) {
-$defaultsXML->appendChild($defaultXML = $dom->createElement('default'));
-$defaultXML->appendChild($dom->createTextNode($default));
-}
-
-return $dom;
-}
-
-
-
-
-private function getInputOptionDocument(InputOption $option)
-{
-$dom = new \DOMDocument('1.0', 'UTF-8');
-
-$dom->appendChild($objectXML = $dom->createElement('option'));
-$objectXML->setAttribute('name', '--'.$option->getName());
-$pos = strpos($option->getShortcut(), '|');
-if (false !== $pos) {
-$objectXML->setAttribute('shortcut', '-'.substr($option->getShortcut(), 0, $pos));
-$objectXML->setAttribute('shortcuts', '-'.str_replace('|', '|-', $option->getShortcut()));
-} else {
-$objectXML->setAttribute('shortcut', $option->getShortcut() ? '-'.$option->getShortcut() : '');
-}
-$objectXML->setAttribute('accept_value', $option->acceptValue() ? 1 : 0);
-$objectXML->setAttribute('is_value_required', $option->isValueRequired() ? 1 : 0);
-$objectXML->setAttribute('is_multiple', $option->isArray() ? 1 : 0);
-$objectXML->appendChild($descriptionXML = $dom->createElement('description'));
-$descriptionXML->appendChild($dom->createTextNode($option->getDescription()));
-
-if ($option->acceptValue()) {
-$defaults = \is_array($option->getDefault()) ? $option->getDefault() : (\is_bool($option->getDefault()) ? array(var_export($option->getDefault(), true)) : ($option->getDefault() ? array($option->getDefault()) : array()));
-$objectXML->appendChild($defaultsXML = $dom->createElement('defaults'));
-
-if (!empty($defaults)) {
-foreach ($defaults as $default) {
-$defaultsXML->appendChild($defaultXML = $dom->createElement('default'));
-$defaultXML->appendChild($dom->createTextNode($default));
-}
-}
-}
-
-return $dom;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Event;
-
-
-
-
-
-
-class ConsoleCommandEvent extends ConsoleEvent
-{
-
-
-
-const RETURN_CODE_DISABLED = 113;
-
-
-
-
-private $commandShouldRun = true;
-
-
-
-
-
-
-public function disableCommand()
-{
-return $this->commandShouldRun = false;
-}
-
-
-
-
-
-
-public function enableCommand()
-{
-return $this->commandShouldRun = true;
-}
-
-
-
-
-
-
-public function commandShouldRun()
-{
-return $this->commandShouldRun;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Event;
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\EventDispatcher\Event;
-
-
-
-
-
-
-class ConsoleEvent extends Event
-{
-protected $command;
-
-private $input;
-private $output;
-
-public function __construct(Command $command, InputInterface $input, OutputInterface $output)
-{
-$this->command = $command;
-$this->input = $input;
-$this->output = $output;
-}
-
-
-
-
-
-
-public function getCommand()
-{
-return $this->command;
-}
-
-
-
-
-
-
-public function getInput()
-{
-return $this->input;
-}
-
-
-
-
-
-
-public function getOutput()
-{
-return $this->output;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Event;
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-
-
-class ConsoleExceptionEvent extends ConsoleEvent
-{
-private $exception;
-private $exitCode;
-
-public function __construct(Command $command, InputInterface $input, OutputInterface $output, \Exception $exception, $exitCode)
-{
-parent::__construct($command, $input, $output);
-
-$this->setException($exception);
-$this->exitCode = (int) $exitCode;
-}
-
-
-
-
-
-
-public function getException()
-{
-return $this->exception;
-}
-
-
-
-
-
-
-
-
-public function setException(\Exception $exception)
-{
-$this->exception = $exception;
-}
-
-
-
-
-
-
-public function getExitCode()
-{
-return $this->exitCode;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Event;
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-
-
-class ConsoleTerminateEvent extends ConsoleEvent
-{
-
-
-
-
-
-private $exitCode;
-
-public function __construct(Command $command, InputInterface $input, OutputInterface $output, $exitCode)
-{
-parent::__construct($command, $input, $output);
-
-$this->setExitCode($exitCode);
-}
-
-
-
-
-
-
-public function setExitCode($exitCode)
-{
-$this->exitCode = (int) $exitCode;
-}
-
-
-
-
-
-
-public function getExitCode()
-{
-return $this->exitCode;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Exception;
-
-
-
-
-
-
-class CommandNotFoundException extends \InvalidArgumentException implements ExceptionInterface
-{
-private $alternatives;
-
-
-
-
-
-
-
-public function __construct($message, array $alternatives = array(), $code = 0, \Exception $previous = null)
-{
-parent::__construct($message, $code, $previous);
-
-$this->alternatives = $alternatives;
-}
-
-
-
-
-public function getAlternatives()
-{
-return $this->alternatives;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Exception;
-
-
-
-
-
-
-interface ExceptionInterface
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Exception;
-
-
-
-
-class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Exception;
-
-
-
-
-
-
-class InvalidOptionException extends \InvalidArgumentException implements ExceptionInterface
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Exception;
-
-
-
-
-class LogicException extends \LogicException implements ExceptionInterface
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Exception;
-
-
-
-
-class RuntimeException extends \RuntimeException implements ExceptionInterface
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Formatter;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-
-
-
-
-
-
-class OutputFormatter implements OutputFormatterInterface
-{
-private $decorated;
-private $styles = array();
-private $styleStack;
-
-
-
-
-
-
-
-
-public static function escape($text)
-{
-$text = preg_replace('/([^\\\\]?)</', '$1\\<', $text);
-
-return self::escapeTrailingBackslash($text);
-}
-
-
-
-
-
-
-
-
-
-
-public static function escapeTrailingBackslash($text)
-{
-if ('\\' === substr($text, -1)) {
-$len = \strlen($text);
-$text = rtrim($text, '\\');
-$text = str_replace("\0", '', $text);
-$text .= str_repeat("\0", $len - \strlen($text));
-}
-
-return $text;
-}
-
-
-
-
-
-
-
-public function __construct($decorated = false, array $styles = array())
-{
-$this->decorated = (bool) $decorated;
-
-$this->setStyle('error', new OutputFormatterStyle('white', 'red'));
-$this->setStyle('info', new OutputFormatterStyle('green'));
-$this->setStyle('comment', new OutputFormatterStyle('yellow'));
-$this->setStyle('question', new OutputFormatterStyle('black', 'cyan'));
-
-foreach ($styles as $name => $style) {
-$this->setStyle($name, $style);
-}
-
-$this->styleStack = new OutputFormatterStyleStack();
-}
-
-
-
-
-public function setDecorated($decorated)
-{
-$this->decorated = (bool) $decorated;
-}
-
-
-
-
-public function isDecorated()
-{
-return $this->decorated;
-}
-
-
-
-
-public function setStyle($name, OutputFormatterStyleInterface $style)
-{
-$this->styles[strtolower($name)] = $style;
-}
-
-
-
-
-public function hasStyle($name)
-{
-return isset($this->styles[strtolower($name)]);
-}
-
-
-
-
-public function getStyle($name)
-{
-if (!$this->hasStyle($name)) {
-throw new InvalidArgumentException(sprintf('Undefined style: %s', $name));
-}
-
-return $this->styles[strtolower($name)];
-}
-
-
-
-
-public function format($message)
-{
-$message = (string) $message;
-$offset = 0;
-$output = '';
-$tagRegex = '[a-z][a-z0-9_=;-]*+';
-preg_match_all("#<(($tagRegex) | /($tagRegex)?)>#ix", $message, $matches, PREG_OFFSET_CAPTURE);
-foreach ($matches[0] as $i => $match) {
-$pos = $match[1];
-$text = $match[0];
-
-if (0 != $pos && '\\' == $message[$pos - 1]) {
-continue;
-}
-
-
- $output .= $this->applyCurrentStyle(substr($message, $offset, $pos - $offset));
-$offset = $pos + \strlen($text);
-
-
- if ($open = '/' != $text[1]) {
-$tag = $matches[1][$i][0];
-} else {
-$tag = isset($matches[3][$i][0]) ? $matches[3][$i][0] : '';
-}
-
-if (!$open && !$tag) {
-
- $this->styleStack->pop();
-} elseif (false === $style = $this->createStyleFromString(strtolower($tag))) {
-$output .= $this->applyCurrentStyle($text);
-} elseif ($open) {
-$this->styleStack->push($style);
-} else {
-$this->styleStack->pop($style);
-}
-}
-
-$output .= $this->applyCurrentStyle(substr($message, $offset));
-
-if (false !== strpos($output, "\0")) {
-return strtr($output, array("\0" => '\\', '\\<' => '<'));
-}
-
-return str_replace('\\<', '<', $output);
-}
-
-
-
-
-public function getStyleStack()
-{
-return $this->styleStack;
-}
-
-
-
-
-
-
-
-
-private function createStyleFromString($string)
-{
-if (isset($this->styles[$string])) {
-return $this->styles[$string];
-}
-
-if (!preg_match_all('/([^=]+)=([^;]+)(;|$)/', strtolower($string), $matches, PREG_SET_ORDER)) {
-return false;
-}
-
-$style = new OutputFormatterStyle();
-foreach ($matches as $match) {
-array_shift($match);
-
-if ('fg' == $match[0]) {
-$style->setForeground($match[1]);
-} elseif ('bg' == $match[0]) {
-$style->setBackground($match[1]);
-} else {
-try {
-$style->setOption($match[1]);
-} catch (\InvalidArgumentException $e) {
-return false;
-}
-}
-}
-
-return $style;
-}
-
-
-
-
-
-
-
-
-private function applyCurrentStyle($text)
-{
-return $this->isDecorated() && \strlen($text) > 0 ? $this->styleStack->getCurrent()->apply($text) : $text;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Formatter;
-
-
-
-
-
-
-interface OutputFormatterInterface
-{
-
-
-
-
-
-public function setDecorated($decorated);
-
-
-
-
-
-
-public function isDecorated();
-
-
-
-
-
-
-
-public function setStyle($name, OutputFormatterStyleInterface $style);
-
-
-
-
-
-
-
-
-public function hasStyle($name);
-
-
-
-
-
-
-
-
-
-
-public function getStyle($name);
-
-
-
-
-
-
-
-
-public function format($message);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Formatter;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-
-
-
-
-
-
-class OutputFormatterStyle implements OutputFormatterStyleInterface
-{
-private static $availableForegroundColors = array(
-'black' => array('set' => 30, 'unset' => 39),
-'red' => array('set' => 31, 'unset' => 39),
-'green' => array('set' => 32, 'unset' => 39),
-'yellow' => array('set' => 33, 'unset' => 39),
-'blue' => array('set' => 34, 'unset' => 39),
-'magenta' => array('set' => 35, 'unset' => 39),
-'cyan' => array('set' => 36, 'unset' => 39),
-'white' => array('set' => 37, 'unset' => 39),
-'default' => array('set' => 39, 'unset' => 39),
-);
-private static $availableBackgroundColors = array(
-'black' => array('set' => 40, 'unset' => 49),
-'red' => array('set' => 41, 'unset' => 49),
-'green' => array('set' => 42, 'unset' => 49),
-'yellow' => array('set' => 43, 'unset' => 49),
-'blue' => array('set' => 44, 'unset' => 49),
-'magenta' => array('set' => 45, 'unset' => 49),
-'cyan' => array('set' => 46, 'unset' => 49),
-'white' => array('set' => 47, 'unset' => 49),
-'default' => array('set' => 49, 'unset' => 49),
-);
-private static $availableOptions = array(
-'bold' => array('set' => 1, 'unset' => 22),
-'underscore' => array('set' => 4, 'unset' => 24),
-'blink' => array('set' => 5, 'unset' => 25),
-'reverse' => array('set' => 7, 'unset' => 27),
-'conceal' => array('set' => 8, 'unset' => 28),
-);
-
-private $foreground;
-private $background;
-private $options = array();
-
-
-
-
-
-
-
-
-public function __construct($foreground = null, $background = null, array $options = array())
-{
-if (null !== $foreground) {
-$this->setForeground($foreground);
-}
-if (null !== $background) {
-$this->setBackground($background);
-}
-if (\count($options)) {
-$this->setOptions($options);
-}
-}
-
-
-
-
-
-
-
-
-public function setForeground($color = null)
-{
-if (null === $color) {
-$this->foreground = null;
-
-return;
-}
-
-if (!isset(static::$availableForegroundColors[$color])) {
-throw new InvalidArgumentException(sprintf('Invalid foreground color specified: "%s". Expected one of (%s)', $color, implode(', ', array_keys(static::$availableForegroundColors))));
-}
-
-$this->foreground = static::$availableForegroundColors[$color];
-}
-
-
-
-
-
-
-
-
-public function setBackground($color = null)
-{
-if (null === $color) {
-$this->background = null;
-
-return;
-}
-
-if (!isset(static::$availableBackgroundColors[$color])) {
-throw new InvalidArgumentException(sprintf('Invalid background color specified: "%s". Expected one of (%s)', $color, implode(', ', array_keys(static::$availableBackgroundColors))));
-}
-
-$this->background = static::$availableBackgroundColors[$color];
-}
-
-
-
-
-
-
-
-
-public function setOption($option)
-{
-if (!isset(static::$availableOptions[$option])) {
-throw new InvalidArgumentException(sprintf('Invalid option specified: "%s". Expected one of (%s)', $option, implode(', ', array_keys(static::$availableOptions))));
-}
-
-if (!\in_array(static::$availableOptions[$option], $this->options)) {
-$this->options[] = static::$availableOptions[$option];
-}
-}
-
-
-
-
-
-
-
-
-public function unsetOption($option)
-{
-if (!isset(static::$availableOptions[$option])) {
-throw new InvalidArgumentException(sprintf('Invalid option specified: "%s". Expected one of (%s)', $option, implode(', ', array_keys(static::$availableOptions))));
-}
-
-$pos = array_search(static::$availableOptions[$option], $this->options);
-if (false !== $pos) {
-unset($this->options[$pos]);
-}
-}
-
-
-
-
-public function setOptions(array $options)
-{
-$this->options = array();
-
-foreach ($options as $option) {
-$this->setOption($option);
-}
-}
-
-
-
-
-
-
-
-
-public function apply($text)
-{
-$setCodes = array();
-$unsetCodes = array();
-
-if (null !== $this->foreground) {
-$setCodes[] = $this->foreground['set'];
-$unsetCodes[] = $this->foreground['unset'];
-}
-if (null !== $this->background) {
-$setCodes[] = $this->background['set'];
-$unsetCodes[] = $this->background['unset'];
-}
-if (\count($this->options)) {
-foreach ($this->options as $option) {
-$setCodes[] = $option['set'];
-$unsetCodes[] = $option['unset'];
-}
-}
-
-if (0 === \count($setCodes)) {
-return $text;
-}
-
-return sprintf("\033[%sm%s\033[%sm", implode(';', $setCodes), $text, implode(';', $unsetCodes));
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Formatter;
-
-
-
-
-
-
-interface OutputFormatterStyleInterface
-{
-
-
-
-
-
-public function setForeground($color = null);
-
-
-
-
-
-
-public function setBackground($color = null);
-
-
-
-
-
-
-public function setOption($option);
-
-
-
-
-
-
-public function unsetOption($option);
-
-
-
-
-public function setOptions(array $options);
-
-
-
-
-
-
-
-
-public function apply($text);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Formatter;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-
-
-
-
-class OutputFormatterStyleStack
-{
-
-
-
-private $styles;
-
-private $emptyStyle;
-
-public function __construct(OutputFormatterStyleInterface $emptyStyle = null)
-{
-$this->emptyStyle = $emptyStyle ?: new OutputFormatterStyle();
-$this->reset();
-}
-
-
-
-
-public function reset()
-{
-$this->styles = array();
-}
-
-
-
-
-public function push(OutputFormatterStyleInterface $style)
-{
-$this->styles[] = $style;
-}
-
-
-
-
-
-
-
-
-public function pop(OutputFormatterStyleInterface $style = null)
-{
-if (empty($this->styles)) {
-return $this->emptyStyle;
-}
-
-if (null === $style) {
-return array_pop($this->styles);
-}
-
-foreach (array_reverse($this->styles, true) as $index => $stackedStyle) {
-if ($style->apply('') === $stackedStyle->apply('')) {
-$this->styles = \array_slice($this->styles, 0, $index);
-
-return $stackedStyle;
-}
-}
-
-throw new InvalidArgumentException('Incorrectly nested style tag found.');
-}
-
-
-
-
-
-
-public function getCurrent()
-{
-if (empty($this->styles)) {
-return $this->emptyStyle;
-}
-
-return $this->styles[\count($this->styles) - 1];
-}
-
-
-
-
-public function setEmptyStyle(OutputFormatterStyleInterface $emptyStyle)
-{
-$this->emptyStyle = $emptyStyle;
-
-return $this;
-}
-
-
-
-
-public function getEmptyStyle()
-{
-return $this->emptyStyle;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Helper;
-
-
-
-
-
-
-
-
-class DebugFormatterHelper extends Helper
-{
-private $colors = array('black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white', 'default');
-private $started = array();
-private $count = -1;
-
-
-
-
-
-
-
-
-
-
-public function start($id, $message, $prefix = 'RUN')
-{
-$this->started[$id] = array('border' => ++$this->count % \count($this->colors));
-
-return sprintf("%s<bg=blue;fg=white> %s </> <fg=blue>%s</>\n", $this->getBorder($id), $prefix, $message);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function progress($id, $buffer, $error = false, $prefix = 'OUT', $errorPrefix = 'ERR')
-{
-$message = '';
-
-if ($error) {
-if (isset($this->started[$id]['out'])) {
-$message .= "\n";
-unset($this->started[$id]['out']);
-}
-if (!isset($this->started[$id]['err'])) {
-$message .= sprintf('%s<bg=red;fg=white> %s </> ', $this->getBorder($id), $errorPrefix);
-$this->started[$id]['err'] = true;
-}
-
-$message .= str_replace("\n", sprintf("\n%s<bg=red;fg=white> %s </> ", $this->getBorder($id), $errorPrefix), $buffer);
-} else {
-if (isset($this->started[$id]['err'])) {
-$message .= "\n";
-unset($this->started[$id]['err']);
-}
-if (!isset($this->started[$id]['out'])) {
-$message .= sprintf('%s<bg=green;fg=white> %s </> ', $this->getBorder($id), $prefix);
-$this->started[$id]['out'] = true;
-}
-
-$message .= str_replace("\n", sprintf("\n%s<bg=green;fg=white> %s </> ", $this->getBorder($id), $prefix), $buffer);
-}
-
-return $message;
-}
-
-
-
-
-
-
-
-
-
-
-
-public function stop($id, $message, $successful, $prefix = 'RES')
-{
-$trailingEOL = isset($this->started[$id]['out']) || isset($this->started[$id]['err']) ? "\n" : '';
-
-if ($successful) {
-return sprintf("%s%s<bg=green;fg=white> %s </> <fg=green>%s</>\n", $trailingEOL, $this->getBorder($id), $prefix, $message);
-}
-
-$message = sprintf("%s%s<bg=red;fg=white> %s </> <fg=red>%s</>\n", $trailingEOL, $this->getBorder($id), $prefix, $message);
-
-unset($this->started[$id]['out'], $this->started[$id]['err']);
-
-return $message;
-}
-
-
-
-
-
-
-private function getBorder($id)
-{
-return sprintf('<bg=%s> </>', $this->colors[$this->started[$id]['border']]);
-}
-
-
-
-
-public function getName()
-{
-return 'debug_formatter';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Descriptor\DescriptorInterface;
-use Symfony\Component\Console\Descriptor\JsonDescriptor;
-use Symfony\Component\Console\Descriptor\MarkdownDescriptor;
-use Symfony\Component\Console\Descriptor\TextDescriptor;
-use Symfony\Component\Console\Descriptor\XmlDescriptor;
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-
-
-class DescriptorHelper extends Helper
-{
-
-
-
-private $descriptors = array();
-
-public function __construct()
-{
-$this
-->register('txt', new TextDescriptor())
-->register('xml', new XmlDescriptor())
-->register('json', new JsonDescriptor())
-->register('md', new MarkdownDescriptor())
-;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function describe(OutputInterface $output, $object, array $options = array())
-{
-$options = array_merge(array(
-'raw_text' => false,
-'format' => 'txt',
-), $options);
-
-if (!isset($this->descriptors[$options['format']])) {
-throw new InvalidArgumentException(sprintf('Unsupported format "%s".', $options['format']));
-}
-
-$descriptor = $this->descriptors[$options['format']];
-$descriptor->describe($output, $object, $options);
-}
-
-
-
-
-
-
-
-
-
-public function register($format, DescriptorInterface $descriptor)
-{
-$this->descriptors[$format] = $descriptor;
-
-return $this;
-}
-
-
-
-
-public function getName()
-{
-return 'descriptor';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\RuntimeException;
-use Symfony\Component\Console\Formatter\OutputFormatterStyle;
-use Symfony\Component\Console\Output\ConsoleOutputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-
-
-
-
-
-class DialogHelper extends InputAwareHelper
-{
-private $inputStream;
-private static $shell;
-private static $stty;
-
-public function __construct($triggerDeprecationError = true)
-{
-if ($triggerDeprecationError) {
-@trigger_error('"Symfony\Component\Console\Helper\DialogHelper" is deprecated since Symfony 2.5 and will be removed in 3.0. Use "Symfony\Component\Console\Helper\QuestionHelper" instead.', E_USER_DEPRECATED);
-}
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function select(OutputInterface $output, $question, $choices, $default = null, $attempts = false, $errorMessage = 'Value "%s" is invalid', $multiselect = false)
-{
-if ($output instanceof ConsoleOutputInterface) {
-$output = $output->getErrorOutput();
-}
-
-$width = max(array_map('strlen', array_keys($choices)));
-
-$messages = (array) $question;
-foreach ($choices as $key => $value) {
-$messages[] = sprintf("  [<info>%-{$width}s</info>] %s", $key, $value);
-}
-
-$output->writeln($messages);
-
-$result = $this->askAndValidate($output, '> ', function ($picked) use ($choices, $errorMessage, $multiselect) {
-
- $selectedChoices = str_replace(' ', '', $picked);
-
-if ($multiselect) {
-
- if (!preg_match('/^[a-zA-Z0-9_-]+(?:,[a-zA-Z0-9_-]+)*$/', $selectedChoices, $matches)) {
-throw new InvalidArgumentException(sprintf($errorMessage, $picked));
-}
-$selectedChoices = explode(',', $selectedChoices);
-} else {
-$selectedChoices = array($picked);
-}
-
-$multiselectChoices = array();
-
-foreach ($selectedChoices as $value) {
-if (empty($choices[$value])) {
-throw new InvalidArgumentException(sprintf($errorMessage, $value));
-}
-$multiselectChoices[] = $value;
-}
-
-if ($multiselect) {
-return $multiselectChoices;
-}
-
-return $picked;
-}, $attempts, $default);
-
-return $result;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function ask(OutputInterface $output, $question, $default = null, array $autocomplete = null)
-{
-if ($this->input && !$this->input->isInteractive()) {
-return $default;
-}
-
-if ($output instanceof ConsoleOutputInterface) {
-$output = $output->getErrorOutput();
-}
-
-$output->write($question);
-
-$inputStream = $this->inputStream ?: STDIN;
-
-if (null === $autocomplete || !$this->hasSttyAvailable()) {
-$ret = fgets($inputStream, 4096);
-if (false === $ret) {
-throw new RuntimeException('Aborted');
-}
-$ret = trim($ret);
-} else {
-$ret = '';
-
-$i = 0;
-$ofs = -1;
-$matches = $autocomplete;
-$numMatches = \count($matches);
-
-$sttyMode = shell_exec('stty -g');
-
-
- shell_exec('stty -icanon -echo');
-
-
- $output->getFormatter()->setStyle('hl', new OutputFormatterStyle('black', 'white'));
-
-
- while (!feof($inputStream)) {
-$c = fread($inputStream, 1);
-
-
- if ("\177" === $c) {
-if (0 === $numMatches && 0 !== $i) {
---$i;
-
- $output->write("\033[1D");
-}
-
-if (0 === $i) {
-$ofs = -1;
-$matches = $autocomplete;
-$numMatches = \count($matches);
-} else {
-$numMatches = 0;
-}
-
-
- $ret = substr($ret, 0, $i);
-} elseif ("\033" === $c) {
-
- $c .= fread($inputStream, 2);
-
-
- if (isset($c[2]) && ('A' === $c[2] || 'B' === $c[2])) {
-if ('A' === $c[2] && -1 === $ofs) {
-$ofs = 0;
-}
-
-if (0 === $numMatches) {
-continue;
-}
-
-$ofs += ('A' === $c[2]) ? -1 : 1;
-$ofs = ($numMatches + $ofs) % $numMatches;
-}
-} elseif (\ord($c) < 32) {
-if ("\t" === $c || "\n" === $c) {
-if ($numMatches > 0 && -1 !== $ofs) {
-$ret = $matches[$ofs];
-
- $output->write(substr($ret, $i));
-$i = \strlen($ret);
-}
-
-if ("\n" === $c) {
-$output->write($c);
-break;
-}
-
-$numMatches = 0;
-}
-
-continue;
-} else {
-$output->write($c);
-$ret .= $c;
-++$i;
-
-$numMatches = 0;
-$ofs = 0;
-
-foreach ($autocomplete as $value) {
-
- if (0 === strpos($value, $ret) && $i !== \strlen($value)) {
-$matches[$numMatches++] = $value;
-}
-}
-}
-
-
- $output->write("\033[K");
-
-if ($numMatches > 0 && -1 !== $ofs) {
-
- $output->write("\0337");
-
- $output->write('<hl>'.substr($matches[$ofs], $i).'</hl>');
-
- $output->write("\0338");
-}
-}
-
-
- shell_exec(sprintf('stty %s', $sttyMode));
-}
-
-return \strlen($ret) > 0 ? $ret : $default;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function askConfirmation(OutputInterface $output, $question, $default = true)
-{
-$answer = 'z';
-while ($answer && !\in_array(strtolower($answer[0]), array('y', 'n'))) {
-$answer = $this->ask($output, $question);
-}
-
-if (false === $default) {
-return $answer && 'y' == strtolower($answer[0]);
-}
-
-return !$answer || 'y' == strtolower($answer[0]);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function askHiddenResponse(OutputInterface $output, $question, $fallback = true)
-{
-if ($output instanceof ConsoleOutputInterface) {
-$output = $output->getErrorOutput();
-}
-
-if ('\\' === \DIRECTORY_SEPARATOR) {
-$exe = __DIR__.'/../Resources/bin/hiddeninput.exe';
-
-
- if ('phar:' === substr(__FILE__, 0, 5)) {
-$tmpExe = sys_get_temp_dir().'/hiddeninput.exe';
-copy($exe, $tmpExe);
-$exe = $tmpExe;
-}
-
-$output->write($question);
-$value = rtrim(shell_exec($exe));
-$output->writeln('');
-
-if (isset($tmpExe)) {
-unlink($tmpExe);
-}
-
-return $value;
-}
-
-if ($this->hasSttyAvailable()) {
-$output->write($question);
-
-$sttyMode = shell_exec('stty -g');
-
-shell_exec('stty -echo');
-$value = fgets($this->inputStream ?: STDIN, 4096);
-shell_exec(sprintf('stty %s', $sttyMode));
-
-if (false === $value) {
-throw new RuntimeException('Aborted');
-}
-
-$value = trim($value);
-$output->writeln('');
-
-return $value;
-}
-
-if (false !== $shell = $this->getShell()) {
-$output->write($question);
-$readCmd = 'csh' === $shell ? 'set mypassword = $<' : 'read -r mypassword';
-$command = sprintf("/usr/bin/env %s -c 'stty -echo; %s; stty echo; echo \$mypassword'", $shell, $readCmd);
-$value = rtrim(shell_exec($command));
-$output->writeln('');
-
-return $value;
-}
-
-if ($fallback) {
-return $this->ask($output, $question);
-}
-
-throw new RuntimeException('Unable to hide the response');
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function askAndValidate(OutputInterface $output, $question, $validator, $attempts = false, $default = null, array $autocomplete = null)
-{
-$that = $this;
-
-$interviewer = function () use ($output, $question, $default, $autocomplete, $that) {
-return $that->ask($output, $question, $default, $autocomplete);
-};
-
-return $this->validateAttempts($interviewer, $output, $validator, $attempts);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function askHiddenResponseAndValidate(OutputInterface $output, $question, $validator, $attempts = false, $fallback = true)
-{
-$that = $this;
-
-$interviewer = function () use ($output, $question, $fallback, $that) {
-return $that->askHiddenResponse($output, $question, $fallback);
-};
-
-return $this->validateAttempts($interviewer, $output, $validator, $attempts);
-}
-
-
-
-
-
-
-
-
-public function setInputStream($stream)
-{
-$this->inputStream = $stream;
-}
-
-
-
-
-
-
-public function getInputStream()
-{
-return $this->inputStream;
-}
-
-
-
-
-public function getName()
-{
-return 'dialog';
-}
-
-
-
-
-
-
-private function getShell()
-{
-if (null !== self::$shell) {
-return self::$shell;
-}
-
-self::$shell = false;
-
-if (file_exists('/usr/bin/env')) {
-
- $test = "/usr/bin/env %s -c 'echo OK' 2> /dev/null";
-foreach (array('bash', 'zsh', 'ksh', 'csh') as $sh) {
-if ('OK' === rtrim(shell_exec(sprintf($test, $sh)))) {
-self::$shell = $sh;
-break;
-}
-}
-}
-
-return self::$shell;
-}
-
-private function hasSttyAvailable()
-{
-if (null !== self::$stty) {
-return self::$stty;
-}
-
-exec('stty 2>&1', $output, $exitcode);
-
-return self::$stty = 0 === $exitcode;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-private function validateAttempts($interviewer, OutputInterface $output, $validator, $attempts)
-{
-if ($output instanceof ConsoleOutputInterface) {
-$output = $output->getErrorOutput();
-}
-
-$e = null;
-while (false === $attempts || $attempts--) {
-if (null !== $e) {
-$output->writeln($this->getHelperSet()->get('formatter')->formatBlock($e->getMessage(), 'error'));
-}
-
-try {
-return \call_user_func($validator, $interviewer());
-} catch (\Exception $e) {
-}
-}
-
-throw $e;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Formatter\OutputFormatter;
-
-
-
-
-
-
-class FormatterHelper extends Helper
-{
-
-
-
-
-
-
-
-
-
-public function formatSection($section, $message, $style = 'info')
-{
-return sprintf('<%s>[%s]</%s> %s', $style, $section, $style, $message);
-}
-
-
-
-
-
-
-
-
-
-
-public function formatBlock($messages, $style, $large = false)
-{
-if (!\is_array($messages)) {
-$messages = array($messages);
-}
-
-$len = 0;
-$lines = array();
-foreach ($messages as $message) {
-$message = OutputFormatter::escape($message);
-$lines[] = sprintf($large ? '  %s  ' : ' %s ', $message);
-$len = max($this->strlen($message) + ($large ? 4 : 2), $len);
-}
-
-$messages = $large ? array(str_repeat(' ', $len)) : array();
-for ($i = 0; isset($lines[$i]); ++$i) {
-$messages[] = $lines[$i].str_repeat(' ', $len - $this->strlen($lines[$i]));
-}
-if ($large) {
-$messages[] = str_repeat(' ', $len);
-}
-
-for ($i = 0; isset($messages[$i]); ++$i) {
-$messages[$i] = sprintf('<%s>%s</%s>', $style, $messages[$i], $style);
-}
-
-return implode("\n", $messages);
-}
-
-
-
-
-public function getName()
-{
-return 'formatter';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Formatter\OutputFormatterInterface;
-
-
-
-
-
-
-abstract class Helper implements HelperInterface
-{
-protected $helperSet = null;
-
-
-
-
-public function setHelperSet(HelperSet $helperSet = null)
-{
-$this->helperSet = $helperSet;
-}
-
-
-
-
-public function getHelperSet()
-{
-return $this->helperSet;
-}
-
-
-
-
-
-
-
-
-public static function strlen($string)
-{
-if (false === $encoding = mb_detect_encoding($string, null, true)) {
-return \strlen($string);
-}
-
-return mb_strwidth($string, $encoding);
-}
-
-public static function formatTime($secs)
-{
-static $timeFormats = array(
-array(0, '< 1 sec'),
-array(1, '1 sec'),
-array(2, 'secs', 1),
-array(60, '1 min'),
-array(120, 'mins', 60),
-array(3600, '1 hr'),
-array(7200, 'hrs', 3600),
-array(86400, '1 day'),
-array(172800, 'days', 86400),
-);
-
-foreach ($timeFormats as $index => $format) {
-if ($secs >= $format[0]) {
-if ((isset($timeFormats[$index + 1]) && $secs < $timeFormats[$index + 1][0])
-|| $index == \count($timeFormats) - 1
-) {
-if (2 == \count($format)) {
-return $format[1];
-}
-
-return floor($secs / $format[2]).' '.$format[1];
-}
-}
-}
-}
-
-public static function formatMemory($memory)
-{
-if ($memory >= 1024 * 1024 * 1024) {
-return sprintf('%.1f GiB', $memory / 1024 / 1024 / 1024);
-}
-
-if ($memory >= 1024 * 1024) {
-return sprintf('%.1f MiB', $memory / 1024 / 1024);
-}
-
-if ($memory >= 1024) {
-return sprintf('%d KiB', $memory / 1024);
-}
-
-return sprintf('%d B', $memory);
-}
-
-public static function strlenWithoutDecoration(OutputFormatterInterface $formatter, $string)
-{
-return self::strlen(self::removeDecoration($formatter, $string));
-}
-
-public static function removeDecoration(OutputFormatterInterface $formatter, $string)
-{
-$isDecorated = $formatter->isDecorated();
-$formatter->setDecorated(false);
-
- $string = $formatter->format($string);
-
- $string = preg_replace("/\033\[[^m]*m/", '', $string);
-$formatter->setDecorated($isDecorated);
-
-return $string;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Helper;
-
-
-
-
-
-
-interface HelperInterface
-{
-
-
-
-public function setHelperSet(HelperSet $helperSet = null);
-
-
-
-
-
-
-public function getHelperSet();
-
-
-
-
-
-
-public function getName();
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-
-
-
-
-
-
-class HelperSet implements \IteratorAggregate
-{
-
-
-
-private $helpers = array();
-private $command;
-
-
-
-
-public function __construct(array $helpers = array())
-{
-foreach ($helpers as $alias => $helper) {
-$this->set($helper, \is_int($alias) ? null : $alias);
-}
-}
-
-
-
-
-
-
-
-public function set(HelperInterface $helper, $alias = null)
-{
-$this->helpers[$helper->getName()] = $helper;
-if (null !== $alias) {
-$this->helpers[$alias] = $helper;
-}
-
-$helper->setHelperSet($this);
-}
-
-
-
-
-
-
-
-
-public function has($name)
-{
-return isset($this->helpers[$name]);
-}
-
-
-
-
-
-
-
-
-
-
-public function get($name)
-{
-if (!$this->has($name)) {
-throw new InvalidArgumentException(sprintf('The helper "%s" is not defined.', $name));
-}
-
-if ('dialog' === $name && $this->helpers[$name] instanceof DialogHelper) {
-@trigger_error('"Symfony\Component\Console\Helper\DialogHelper" is deprecated since Symfony 2.5 and will be removed in 3.0. Use "Symfony\Component\Console\Helper\QuestionHelper" instead.', E_USER_DEPRECATED);
-} elseif ('progress' === $name && $this->helpers[$name] instanceof ProgressHelper) {
-@trigger_error('"Symfony\Component\Console\Helper\ProgressHelper" is deprecated since Symfony 2.5 and will be removed in 3.0. Use "Symfony\Component\Console\Helper\ProgressBar" instead.', E_USER_DEPRECATED);
-} elseif ('table' === $name && $this->helpers[$name] instanceof TableHelper) {
-@trigger_error('"Symfony\Component\Console\Helper\TableHelper" is deprecated since Symfony 2.5 and will be removed in 3.0. Use "Symfony\Component\Console\Helper\Table" instead.', E_USER_DEPRECATED);
-}
-
-return $this->helpers[$name];
-}
-
-public function setCommand(Command $command = null)
-{
-$this->command = $command;
-}
-
-
-
-
-
-
-public function getCommand()
-{
-return $this->command;
-}
-
-
-
-
-public function getIterator()
-{
-return new \ArrayIterator($this->helpers);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Input\InputAwareInterface;
-use Symfony\Component\Console\Input\InputInterface;
-
-
-
-
-
-
-abstract class InputAwareHelper extends Helper implements InputAwareInterface
-{
-protected $input;
-
-
-
-
-public function setInput(InputInterface $input)
-{
-$this->input = $input;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Output\ConsoleOutputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Process\Exception\ProcessFailedException;
-use Symfony\Component\Process\Process;
-use Symfony\Component\Process\ProcessBuilder;
-
-
-
-
-
-
-class ProcessHelper extends Helper
-{
-
-
-
-
-
-
-
-
-
-
-
-
-public function run(OutputInterface $output, $cmd, $error = null, $callback = null, $verbosity = OutputInterface::VERBOSITY_VERY_VERBOSE)
-{
-if ($output instanceof ConsoleOutputInterface) {
-$output = $output->getErrorOutput();
-}
-
-$formatter = $this->getHelperSet()->get('debug_formatter');
-
-if (\is_array($cmd)) {
-$process = ProcessBuilder::create($cmd)->getProcess();
-} elseif ($cmd instanceof Process) {
-$process = $cmd;
-} else {
-$process = new Process($cmd);
-}
-
-if ($verbosity <= $output->getVerbosity()) {
-$output->write($formatter->start(spl_object_hash($process), $this->escapeString($process->getCommandLine())));
-}
-
-if ($output->isDebug()) {
-$callback = $this->wrapCallback($output, $process, $callback);
-}
-
-$process->run($callback);
-
-if ($verbosity <= $output->getVerbosity()) {
-$message = $process->isSuccessful() ? 'Command ran successfully' : sprintf('%s Command did not run successfully', $process->getExitCode());
-$output->write($formatter->stop(spl_object_hash($process), $message, $process->isSuccessful()));
-}
-
-if (!$process->isSuccessful() && null !== $error) {
-$output->writeln(sprintf('<error>%s</error>', $this->escapeString($error)));
-}
-
-return $process;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function mustRun(OutputInterface $output, $cmd, $error = null, $callback = null)
-{
-$process = $this->run($output, $cmd, $error, $callback);
-
-if (!$process->isSuccessful()) {
-throw new ProcessFailedException($process);
-}
-
-return $process;
-}
-
-
-
-
-
-
-
-
-
-
-public function wrapCallback(OutputInterface $output, Process $process, $callback = null)
-{
-if ($output instanceof ConsoleOutputInterface) {
-$output = $output->getErrorOutput();
-}
-
-$formatter = $this->getHelperSet()->get('debug_formatter');
-
-$that = $this;
-
-return function ($type, $buffer) use ($output, $process, $callback, $formatter, $that) {
-$output->write($formatter->progress(spl_object_hash($process), $that->escapeString($buffer), Process::ERR === $type));
-
-if (null !== $callback) {
-\call_user_func($callback, $type, $buffer);
-}
-};
-}
-
-
-
-
-
-
-public function escapeString($str)
-{
-return str_replace('<', '\\<', $str);
-}
-
-
-
-
-public function getName()
-{
-return 'process';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Exception\LogicException;
-use Symfony\Component\Console\Output\ConsoleOutputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-
-
-
-class ProgressBar
-{
-private $barWidth = 28;
-private $barChar;
-private $emptyBarChar = '-';
-private $progressChar = '>';
-private $format;
-private $internalFormat;
-private $redrawFreq = 1;
-private $output;
-private $step = 0;
-private $max;
-private $startTime;
-private $stepWidth;
-private $percent = 0.0;
-private $formatLineCount;
-private $messages = array();
-private $overwrite = true;
-private $firstRun = true;
-
-private static $formatters;
-private static $formats;
-
-
-
-
-
-public function __construct(OutputInterface $output, $max = 0)
-{
-if ($output instanceof ConsoleOutputInterface) {
-$output = $output->getErrorOutput();
-}
-
-$this->output = $output;
-$this->setMaxSteps($max);
-
-if (!$this->output->isDecorated()) {
-
- $this->overwrite = false;
-
-
- $this->setRedrawFrequency($max / 10);
-}
-
-$this->startTime = time();
-}
-
-
-
-
-
-
-
-
-
-public static function setPlaceholderFormatterDefinition($name, $callable)
-{
-if (!self::$formatters) {
-self::$formatters = self::initPlaceholderFormatters();
-}
-
-self::$formatters[$name] = $callable;
-}
-
-
-
-
-
-
-
-
-public static function getPlaceholderFormatterDefinition($name)
-{
-if (!self::$formatters) {
-self::$formatters = self::initPlaceholderFormatters();
-}
-
-return isset(self::$formatters[$name]) ? self::$formatters[$name] : null;
-}
-
-
-
-
-
-
-
-
-
-public static function setFormatDefinition($name, $format)
-{
-if (!self::$formats) {
-self::$formats = self::initFormats();
-}
-
-self::$formats[$name] = $format;
-}
-
-
-
-
-
-
-
-
-public static function getFormatDefinition($name)
-{
-if (!self::$formats) {
-self::$formats = self::initFormats();
-}
-
-return isset(self::$formats[$name]) ? self::$formats[$name] : null;
-}
-
-
-
-
-
-
-
-
-
-
-
-public function setMessage($message, $name = 'message')
-{
-$this->messages[$name] = $message;
-}
-
-public function getMessage($name = 'message')
-{
-return $this->messages[$name];
-}
-
-
-
-
-
-
-public function getStartTime()
-{
-return $this->startTime;
-}
-
-
-
-
-
-
-public function getMaxSteps()
-{
-return $this->max;
-}
-
-
-
-
-
-
-
-
-public function getStep()
-{
-@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the getProgress() method instead.', E_USER_DEPRECATED);
-
-return $this->getProgress();
-}
-
-
-
-
-
-
-public function getProgress()
-{
-return $this->step;
-}
-
-
-
-
-
-
-
-
-public function getStepWidth()
-{
-return $this->stepWidth;
-}
-
-
-
-
-
-
-public function getProgressPercent()
-{
-return $this->percent;
-}
-
-
-
-
-
-
-public function setBarWidth($size)
-{
-$this->barWidth = (int) $size;
-}
-
-
-
-
-
-
-public function getBarWidth()
-{
-return $this->barWidth;
-}
-
-
-
-
-
-
-public function setBarCharacter($char)
-{
-$this->barChar = $char;
-}
-
-
-
-
-
-
-public function getBarCharacter()
-{
-if (null === $this->barChar) {
-return $this->max ? '=' : $this->emptyBarChar;
-}
-
-return $this->barChar;
-}
-
-
-
-
-
-
-public function setEmptyBarCharacter($char)
-{
-$this->emptyBarChar = $char;
-}
-
-
-
-
-
-
-public function getEmptyBarCharacter()
-{
-return $this->emptyBarChar;
-}
-
-
-
-
-
-
-public function setProgressCharacter($char)
-{
-$this->progressChar = $char;
-}
-
-
-
-
-
-
-public function getProgressCharacter()
-{
-return $this->progressChar;
-}
-
-
-
-
-
-
-public function setFormat($format)
-{
-$this->format = null;
-$this->internalFormat = $format;
-}
-
-
-
-
-
-
-public function setRedrawFrequency($freq)
-{
-$this->redrawFreq = max((int) $freq, 1);
-}
-
-
-
-
-
-
-public function start($max = null)
-{
-$this->startTime = time();
-$this->step = 0;
-$this->percent = 0.0;
-
-if (null !== $max) {
-$this->setMaxSteps($max);
-}
-
-$this->display();
-}
-
-
-
-
-
-
-
-
-public function advance($step = 1)
-{
-$this->setProgress($this->step + $step);
-}
-
-
-
-
-
-
-
-
-
-
-public function setCurrent($step)
-{
-@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the setProgress() method instead.', E_USER_DEPRECATED);
-
-$this->setProgress($step);
-}
-
-
-
-
-
-
-public function setOverwrite($overwrite)
-{
-$this->overwrite = (bool) $overwrite;
-}
-
-
-
-
-
-
-
-
-public function setProgress($step)
-{
-$step = (int) $step;
-if ($step < $this->step) {
-throw new LogicException('You can\'t regress the progress bar.');
-}
-
-if ($this->max && $step > $this->max) {
-$this->max = $step;
-}
-
-$prevPeriod = (int) ($this->step / $this->redrawFreq);
-$currPeriod = (int) ($step / $this->redrawFreq);
-$this->step = $step;
-$this->percent = $this->max ? (float) $this->step / $this->max : 0;
-if ($prevPeriod !== $currPeriod || $this->max === $step) {
-$this->display();
-}
-}
-
-
-
-
-public function finish()
-{
-if (!$this->max) {
-$this->max = $this->step;
-}
-
-if ($this->step === $this->max && !$this->overwrite) {
-
- return;
-}
-
-$this->setProgress($this->max);
-}
-
-
-
-
-public function display()
-{
-if (OutputInterface::VERBOSITY_QUIET === $this->output->getVerbosity()) {
-return;
-}
-
-if (null === $this->format) {
-$this->setRealFormat($this->internalFormat ?: $this->determineBestFormat());
-}
-
-
- $self = $this;
-$output = $this->output;
-$messages = $this->messages;
-$this->overwrite(preg_replace_callback("{%([a-z\-_]+)(?:\:([^%]+))?%}i", function ($matches) use ($self, $output, $messages) {
-if ($formatter = $self::getPlaceholderFormatterDefinition($matches[1])) {
-$text = \call_user_func($formatter, $self, $output);
-} elseif (isset($messages[$matches[1]])) {
-$text = $messages[$matches[1]];
-} else {
-return $matches[0];
-}
-
-if (isset($matches[2])) {
-$text = sprintf('%'.$matches[2], $text);
-}
-
-return $text;
-}, $this->format));
-}
-
-
-
-
-
-
-
-
-public function clear()
-{
-if (!$this->overwrite) {
-return;
-}
-
-if (null === $this->format) {
-$this->setRealFormat($this->internalFormat ?: $this->determineBestFormat());
-}
-
-$this->overwrite('');
-}
-
-
-
-
-
-
-private function setRealFormat($format)
-{
-
- if (!$this->max && null !== self::getFormatDefinition($format.'_nomax')) {
-$this->format = self::getFormatDefinition($format.'_nomax');
-} elseif (null !== self::getFormatDefinition($format)) {
-$this->format = self::getFormatDefinition($format);
-} else {
-$this->format = $format;
-}
-
-$this->formatLineCount = substr_count($this->format, "\n");
-}
-
-
-
-
-
-
-private function setMaxSteps($max)
-{
-$this->max = max(0, (int) $max);
-$this->stepWidth = $this->max ? Helper::strlen($this->max) : 4;
-}
-
-
-
-
-
-
-private function overwrite($message)
-{
-if ($this->overwrite) {
-if (!$this->firstRun) {
-
- $this->output->write("\x0D");
-
-
- $this->output->write("\x1B[2K");
-
-
- if ($this->formatLineCount > 0) {
-$this->output->write(str_repeat("\x1B[1A\x1B[2K", $this->formatLineCount));
-}
-}
-} elseif ($this->step > 0) {
-$this->output->writeln('');
-}
-
-$this->firstRun = false;
-
-$this->output->write($message);
-}
-
-private function determineBestFormat()
-{
-switch ($this->output->getVerbosity()) {
-
- case OutputInterface::VERBOSITY_VERBOSE:
-return $this->max ? 'verbose' : 'verbose_nomax';
-case OutputInterface::VERBOSITY_VERY_VERBOSE:
-return $this->max ? 'very_verbose' : 'very_verbose_nomax';
-case OutputInterface::VERBOSITY_DEBUG:
-return $this->max ? 'debug' : 'debug_nomax';
-default:
-return $this->max ? 'normal' : 'normal_nomax';
-}
-}
-
-private static function initPlaceholderFormatters()
-{
-return array(
-'bar' => function (ProgressBar $bar, OutputInterface $output) {
-$completeBars = floor($bar->getMaxSteps() > 0 ? $bar->getProgressPercent() * $bar->getBarWidth() : $bar->getProgress() % $bar->getBarWidth());
-$display = str_repeat($bar->getBarCharacter(), $completeBars);
-if ($completeBars < $bar->getBarWidth()) {
-$emptyBars = $bar->getBarWidth() - $completeBars - Helper::strlenWithoutDecoration($output->getFormatter(), $bar->getProgressCharacter());
-$display .= $bar->getProgressCharacter().str_repeat($bar->getEmptyBarCharacter(), $emptyBars);
-}
-
-return $display;
-},
-'elapsed' => function (ProgressBar $bar) {
-return Helper::formatTime(time() - $bar->getStartTime());
-},
-'remaining' => function (ProgressBar $bar) {
-if (!$bar->getMaxSteps()) {
-throw new LogicException('Unable to display the remaining time if the maximum number of steps is not set.');
-}
-
-if (!$bar->getProgress()) {
-$remaining = 0;
-} else {
-$remaining = round((time() - $bar->getStartTime()) / $bar->getProgress() * ($bar->getMaxSteps() - $bar->getProgress()));
-}
-
-return Helper::formatTime($remaining);
-},
-'estimated' => function (ProgressBar $bar) {
-if (!$bar->getMaxSteps()) {
-throw new LogicException('Unable to display the estimated time if the maximum number of steps is not set.');
-}
-
-if (!$bar->getProgress()) {
-$estimated = 0;
-} else {
-$estimated = round((time() - $bar->getStartTime()) / $bar->getProgress() * $bar->getMaxSteps());
-}
-
-return Helper::formatTime($estimated);
-},
-'memory' => function (ProgressBar $bar) {
-return Helper::formatMemory(memory_get_usage(true));
-},
-'current' => function (ProgressBar $bar) {
-return str_pad($bar->getProgress(), $bar->getStepWidth(), ' ', STR_PAD_LEFT);
-},
-'max' => function (ProgressBar $bar) {
-return $bar->getMaxSteps();
-},
-'percent' => function (ProgressBar $bar) {
-return floor($bar->getProgressPercent() * 100);
-},
-);
-}
-
-private static function initFormats()
-{
-return array(
-'normal' => ' %current%/%max% [%bar%] %percent:3s%%',
-'normal_nomax' => ' %current% [%bar%]',
-
-'verbose' => ' %current%/%max% [%bar%] %percent:3s%% %elapsed:6s%',
-'verbose_nomax' => ' %current% [%bar%] %elapsed:6s%',
-
-'very_verbose' => ' %current%/%max% [%bar%] %percent:3s%% %elapsed:6s%/%estimated:-6s%',
-'very_verbose_nomax' => ' %current% [%bar%] %elapsed:6s%',
-
-'debug' => ' %current%/%max% [%bar%] %percent:3s%% %elapsed:6s%/%estimated:-6s% %memory:6s%',
-'debug_nomax' => ' %current% [%bar%] %elapsed:6s% %memory:6s%',
-);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Exception\LogicException;
-use Symfony\Component\Console\Output\ConsoleOutputInterface;
-use Symfony\Component\Console\Output\NullOutput;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-
-
-
-
-
-
-class ProgressHelper extends Helper
-{
-const FORMAT_QUIET = ' %percent%%';
-const FORMAT_NORMAL = ' %current%/%max% [%bar%] %percent%%';
-const FORMAT_VERBOSE = ' %current%/%max% [%bar%] %percent%% Elapsed: %elapsed%';
-const FORMAT_QUIET_NOMAX = ' %current%';
-const FORMAT_NORMAL_NOMAX = ' %current% [%bar%]';
-const FORMAT_VERBOSE_NOMAX = ' %current% [%bar%] Elapsed: %elapsed%';
-
-
- private $barWidth = 28;
-private $barChar = '=';
-private $emptyBarChar = '-';
-private $progressChar = '>';
-private $format = null;
-private $redrawFreq = 1;
-
-private $lastMessagesLength;
-private $barCharOriginal;
-
-
-
-
-private $output;
-
-
-
-
-
-
-private $current;
-
-
-
-
-
-
-private $max;
-
-
-
-
-
-
-private $startTime;
-
-
-
-
-
-
-private $defaultFormatVars = array(
-'current',
-'max',
-'bar',
-'percent',
-'elapsed',
-);
-
-
-
-
-
-
-private $formatVars;
-
-
-
-
-
-
-private $widths = array(
-'current' => 4,
-'max' => 4,
-'percent' => 3,
-'elapsed' => 6,
-);
-
-
-
-
-
-
-private $timeFormats = array(
-array(0, '???'),
-array(2, '1 sec'),
-array(59, 'secs', 1),
-array(60, '1 min'),
-array(3600, 'mins', 60),
-array(5400, '1 hr'),
-array(86400, 'hrs', 3600),
-array(129600, '1 day'),
-array(604800, 'days', 86400),
-);
-
-public function __construct($triggerDeprecationError = true)
-{
-if ($triggerDeprecationError) {
-@trigger_error('The '.__CLASS__.' class is deprecated since Symfony 2.5 and will be removed in 3.0. Use the Symfony\Component\Console\Helper\ProgressBar class instead.', E_USER_DEPRECATED);
-}
-}
-
-
-
-
-
-
-public function setBarWidth($size)
-{
-$this->barWidth = (int) $size;
-}
-
-
-
-
-
-
-public function setBarCharacter($char)
-{
-$this->barChar = $char;
-}
-
-
-
-
-
-
-public function setEmptyBarCharacter($char)
-{
-$this->emptyBarChar = $char;
-}
-
-
-
-
-
-
-public function setProgressCharacter($char)
-{
-$this->progressChar = $char;
-}
-
-
-
-
-
-
-public function setFormat($format)
-{
-$this->format = $format;
-}
-
-
-
-
-
-
-public function setRedrawFrequency($freq)
-{
-$this->redrawFreq = (int) $freq;
-}
-
-
-
-
-
-
-
-public function start(OutputInterface $output, $max = null)
-{
-if ($output instanceof ConsoleOutputInterface) {
-$output = $output->getErrorOutput();
-}
-
-$this->startTime = time();
-$this->current = 0;
-$this->max = (int) $max;
-
-
- $this->output = $output->isDecorated() ? $output : new NullOutput();
-$this->lastMessagesLength = 0;
-$this->barCharOriginal = '';
-
-if (null === $this->format) {
-switch ($output->getVerbosity()) {
-case OutputInterface::VERBOSITY_QUIET:
-$this->format = self::FORMAT_QUIET_NOMAX;
-if ($this->max > 0) {
-$this->format = self::FORMAT_QUIET;
-}
-break;
-case OutputInterface::VERBOSITY_VERBOSE:
-case OutputInterface::VERBOSITY_VERY_VERBOSE:
-case OutputInterface::VERBOSITY_DEBUG:
-$this->format = self::FORMAT_VERBOSE_NOMAX;
-if ($this->max > 0) {
-$this->format = self::FORMAT_VERBOSE;
-}
-break;
-default:
-$this->format = self::FORMAT_NORMAL_NOMAX;
-if ($this->max > 0) {
-$this->format = self::FORMAT_NORMAL;
-}
-break;
-}
-}
-
-$this->initialize();
-}
-
-
-
-
-
-
-
-
-
-public function advance($step = 1, $redraw = false)
-{
-$this->setCurrent($this->current + $step, $redraw);
-}
-
-
-
-
-
-
-
-
-
-public function setCurrent($current, $redraw = false)
-{
-if (null === $this->startTime) {
-throw new LogicException('You must start the progress bar before calling setCurrent().');
-}
-
-$current = (int) $current;
-
-if ($current < $this->current) {
-throw new LogicException('You can\'t regress the progress bar');
-}
-
-if (0 === $this->current) {
-$redraw = true;
-}
-
-$prevPeriod = (int) ($this->current / $this->redrawFreq);
-
-$this->current = $current;
-
-$currPeriod = (int) ($this->current / $this->redrawFreq);
-if ($redraw || $prevPeriod !== $currPeriod || $this->max === $this->current) {
-$this->display();
-}
-}
-
-
-
-
-
-
-
-
-public function display($finish = false)
-{
-if (null === $this->startTime) {
-throw new LogicException('You must start the progress bar before calling display().');
-}
-
-$message = $this->format;
-foreach ($this->generate($finish) as $name => $value) {
-$message = str_replace("%{$name}%", $value, $message);
-}
-$this->overwrite($this->output, $message);
-}
-
-
-
-
-
-
-
-
-public function clear()
-{
-$this->overwrite($this->output, '');
-}
-
-
-
-
-public function finish()
-{
-if (null === $this->startTime) {
-throw new LogicException('You must start the progress bar before calling finish().');
-}
-
-if (null !== $this->startTime) {
-if (!$this->max) {
-$this->barChar = $this->barCharOriginal;
-$this->display(true);
-}
-$this->startTime = null;
-$this->output->writeln('');
-$this->output = null;
-}
-}
-
-
-
-
-private function initialize()
-{
-$this->formatVars = array();
-foreach ($this->defaultFormatVars as $var) {
-if (false !== strpos($this->format, "%{$var}%")) {
-$this->formatVars[$var] = true;
-}
-}
-
-if ($this->max > 0) {
-$this->widths['max'] = $this->strlen($this->max);
-$this->widths['current'] = $this->widths['max'];
-} else {
-$this->barCharOriginal = $this->barChar;
-$this->barChar = $this->emptyBarChar;
-}
-}
-
-
-
-
-
-
-
-
-private function generate($finish = false)
-{
-$vars = array();
-$percent = 0;
-if ($this->max > 0) {
-$percent = (float) $this->current / $this->max;
-}
-
-if (isset($this->formatVars['bar'])) {
-if ($this->max > 0) {
-$completeBars = floor($percent * $this->barWidth);
-} else {
-if (!$finish) {
-$completeBars = floor($this->current % $this->barWidth);
-} else {
-$completeBars = $this->barWidth;
-}
-}
-
-$emptyBars = $this->barWidth - $completeBars - $this->strlen($this->progressChar);
-$bar = str_repeat($this->barChar, $completeBars);
-if ($completeBars < $this->barWidth) {
-$bar .= $this->progressChar;
-$bar .= str_repeat($this->emptyBarChar, $emptyBars);
-}
-
-$vars['bar'] = $bar;
-}
-
-if (isset($this->formatVars['elapsed'])) {
-$elapsed = time() - $this->startTime;
-$vars['elapsed'] = str_pad($this->humaneTime($elapsed), $this->widths['elapsed'], ' ', STR_PAD_LEFT);
-}
-
-if (isset($this->formatVars['current'])) {
-$vars['current'] = str_pad($this->current, $this->widths['current'], ' ', STR_PAD_LEFT);
-}
-
-if (isset($this->formatVars['max'])) {
-$vars['max'] = $this->max;
-}
-
-if (isset($this->formatVars['percent'])) {
-$vars['percent'] = str_pad(floor($percent * 100), $this->widths['percent'], ' ', STR_PAD_LEFT);
-}
-
-return $vars;
-}
-
-
-
-
-
-
-
-
-private function humaneTime($secs)
-{
-$text = '';
-foreach ($this->timeFormats as $format) {
-if ($secs < $format[0]) {
-if (2 == \count($format)) {
-$text = $format[1];
-break;
-} else {
-$text = ceil($secs / $format[2]).' '.$format[1];
-break;
-}
-}
-}
-
-return $text;
-}
-
-
-
-
-
-
-
-private function overwrite(OutputInterface $output, $message)
-{
-$length = $this->strlen($message);
-
-
- if (null !== $this->lastMessagesLength && $this->lastMessagesLength > $length) {
-$message = str_pad($message, $this->lastMessagesLength, "\x20", STR_PAD_RIGHT);
-}
-
-
- $output->write("\x0D");
-$output->write($message);
-
-$this->lastMessagesLength = $this->strlen($message);
-}
-
-
-
-
-public function getName()
-{
-return 'progress';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\LogicException;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-class ProgressIndicator
-{
-private $output;
-private $startTime;
-private $format;
-private $message;
-private $indicatorValues;
-private $indicatorCurrent;
-private $indicatorChangeInterval;
-private $indicatorUpdateTime;
-private $started = false;
-
-private static $formatters;
-private static $formats;
-
-
-
-
-
-
-
-public function __construct(OutputInterface $output, $format = null, $indicatorChangeInterval = 100, $indicatorValues = null)
-{
-$this->output = $output;
-
-if (null === $format) {
-$format = $this->determineBestFormat();
-}
-
-if (null === $indicatorValues) {
-$indicatorValues = array('-', '\\', '|', '/');
-}
-
-$indicatorValues = array_values($indicatorValues);
-
-if (2 > \count($indicatorValues)) {
-throw new InvalidArgumentException('Must have at least 2 indicator value characters.');
-}
-
-$this->format = self::getFormatDefinition($format);
-$this->indicatorChangeInterval = $indicatorChangeInterval;
-$this->indicatorValues = $indicatorValues;
-$this->startTime = time();
-}
-
-
-
-
-
-
-public function setMessage($message)
-{
-$this->message = $message;
-
-$this->display();
-}
-
-
-
-
-
-
-
-
-public function getMessage()
-{
-return $this->message;
-}
-
-
-
-
-
-
-
-
-public function getStartTime()
-{
-return $this->startTime;
-}
-
-
-
-
-
-
-
-
-public function getCurrentValue()
-{
-return $this->indicatorValues[$this->indicatorCurrent % \count($this->indicatorValues)];
-}
-
-
-
-
-
-
-public function start($message)
-{
-if ($this->started) {
-throw new LogicException('Progress indicator already started.');
-}
-
-$this->message = $message;
-$this->started = true;
-$this->startTime = time();
-$this->indicatorUpdateTime = $this->getCurrentTimeInMilliseconds() + $this->indicatorChangeInterval;
-$this->indicatorCurrent = 0;
-
-$this->display();
-}
-
-
-
-
-public function advance()
-{
-if (!$this->started) {
-throw new LogicException('Progress indicator has not yet been started.');
-}
-
-if (!$this->output->isDecorated()) {
-return;
-}
-
-$currentTime = $this->getCurrentTimeInMilliseconds();
-
-if ($currentTime < $this->indicatorUpdateTime) {
-return;
-}
-
-$this->indicatorUpdateTime = $currentTime + $this->indicatorChangeInterval;
-++$this->indicatorCurrent;
-
-$this->display();
-}
-
-
-
-
-
-
-public function finish($message)
-{
-if (!$this->started) {
-throw new LogicException('Progress indicator has not yet been started.');
-}
-
-$this->message = $message;
-$this->display();
-$this->output->writeln('');
-$this->started = false;
-}
-
-
-
-
-
-
-
-
-public static function getFormatDefinition($name)
-{
-if (!self::$formats) {
-self::$formats = self::initFormats();
-}
-
-return isset(self::$formats[$name]) ? self::$formats[$name] : null;
-}
-
-
-
-
-
-
-
-
-
-public static function setPlaceholderFormatterDefinition($name, $callable)
-{
-if (!self::$formatters) {
-self::$formatters = self::initPlaceholderFormatters();
-}
-
-self::$formatters[$name] = $callable;
-}
-
-
-
-
-
-
-
-
-public static function getPlaceholderFormatterDefinition($name)
-{
-if (!self::$formatters) {
-self::$formatters = self::initPlaceholderFormatters();
-}
-
-return isset(self::$formatters[$name]) ? self::$formatters[$name] : null;
-}
-
-private function display()
-{
-if (OutputInterface::VERBOSITY_QUIET === $this->output->getVerbosity()) {
-return;
-}
-
-$self = $this;
-
-$this->overwrite(preg_replace_callback("{%([a-z\-_]+)(?:\:([^%]+))?%}i", function ($matches) use ($self) {
-if ($formatter = $self::getPlaceholderFormatterDefinition($matches[1])) {
-return \call_user_func($formatter, $self);
-}
-
-return $matches[0];
-}, $this->format));
-}
-
-private function determineBestFormat()
-{
-switch ($this->output->getVerbosity()) {
-
- case OutputInterface::VERBOSITY_VERBOSE:
-return $this->output->isDecorated() ? 'verbose' : 'verbose_no_ansi';
-case OutputInterface::VERBOSITY_VERY_VERBOSE:
-case OutputInterface::VERBOSITY_DEBUG:
-return $this->output->isDecorated() ? 'very_verbose' : 'very_verbose_no_ansi';
-default:
-return $this->output->isDecorated() ? 'normal' : 'normal_no_ansi';
-}
-}
-
-
-
-
-
-
-private function overwrite($message)
-{
-if ($this->output->isDecorated()) {
-$this->output->write("\x0D\x1B[2K");
-$this->output->write($message);
-} else {
-$this->output->writeln($message);
-}
-}
-
-private function getCurrentTimeInMilliseconds()
-{
-return round(microtime(true) * 1000);
-}
-
-private static function initPlaceholderFormatters()
-{
-return array(
-'indicator' => function (ProgressIndicator $indicator) {
-return $indicator->getCurrentValue();
-},
-'message' => function (ProgressIndicator $indicator) {
-return $indicator->getMessage();
-},
-'elapsed' => function (ProgressIndicator $indicator) {
-return Helper::formatTime(time() - $indicator->getStartTime());
-},
-'memory' => function () {
-return Helper::formatMemory(memory_get_usage(true));
-},
-);
-}
-
-private static function initFormats()
-{
-return array(
-'normal' => ' %indicator% %message%',
-'normal_no_ansi' => ' %message%',
-
-'verbose' => ' %indicator% %message% (%elapsed:6s%)',
-'verbose_no_ansi' => ' %message% (%elapsed:6s%)',
-
-'very_verbose' => ' %indicator% %message% (%elapsed:6s%, %memory:6s%)',
-'very_verbose_no_ansi' => ' %message% (%elapsed:6s%, %memory:6s%)',
-);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\RuntimeException;
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Formatter\OutputFormatterStyle;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\ConsoleOutputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Question\ChoiceQuestion;
-use Symfony\Component\Console\Question\Question;
-
-
-
-
-
-
-class QuestionHelper extends Helper
-{
-private $inputStream;
-private static $shell;
-private static $stty;
-
-
-
-
-
-
-
-
-public function ask(InputInterface $input, OutputInterface $output, Question $question)
-{
-if ($output instanceof ConsoleOutputInterface) {
-$output = $output->getErrorOutput();
-}
-
-if (!$input->isInteractive()) {
-$default = $question->getDefault();
-
-if (null !== $default && $question instanceof ChoiceQuestion) {
-$choices = $question->getChoices();
-
-if (!$question->isMultiselect()) {
-return isset($choices[$default]) ? $choices[$default] : $default;
-}
-
-$default = explode(',', $default);
-foreach ($default as $k => $v) {
-$v = trim($v);
-$default[$k] = isset($choices[$v]) ? $choices[$v] : $v;
-}
-}
-
-return $default;
-}
-
-if (!$question->getValidator()) {
-return $this->doAsk($output, $question);
-}
-
-$that = $this;
-
-$interviewer = function () use ($output, $question, $that) {
-return $that->doAsk($output, $question);
-};
-
-return $this->validateAttempts($interviewer, $output, $question);
-}
-
-
-
-
-
-
-
-
-
-
-public function setInputStream($stream)
-{
-if (!\is_resource($stream)) {
-throw new InvalidArgumentException('Input stream must be a valid resource.');
-}
-
-$this->inputStream = $stream;
-}
-
-
-
-
-
-
-public function getInputStream()
-{
-return $this->inputStream;
-}
-
-
-
-
-public function getName()
-{
-return 'question';
-}
-
-
-
-
-
-
-
-
-
-
-public function doAsk(OutputInterface $output, Question $question)
-{
-$this->writePrompt($output, $question);
-
-$inputStream = $this->inputStream ?: STDIN;
-$autocomplete = $question->getAutocompleterValues();
-
-if (null === $autocomplete || !$this->hasSttyAvailable()) {
-$ret = false;
-if ($question->isHidden()) {
-try {
-$ret = trim($this->getHiddenResponse($output, $inputStream));
-} catch (RuntimeException $e) {
-if (!$question->isHiddenFallback()) {
-throw $e;
-}
-}
-}
-
-if (false === $ret) {
-$ret = fgets($inputStream, 4096);
-if (false === $ret) {
-throw new RuntimeException('Aborted');
-}
-$ret = trim($ret);
-}
-} else {
-$ret = trim($this->autocomplete($output, $question, $inputStream, \is_array($autocomplete) ? $autocomplete : iterator_to_array($autocomplete, false)));
-}
-
-$ret = \strlen($ret) > 0 ? $ret : $question->getDefault();
-
-if ($normalizer = $question->getNormalizer()) {
-return $normalizer($ret);
-}
-
-return $ret;
-}
-
-
-
-
-protected function writePrompt(OutputInterface $output, Question $question)
-{
-$message = $question->getQuestion();
-
-if ($question instanceof ChoiceQuestion) {
-$maxWidth = max(array_map(array($this, 'strlen'), array_keys($question->getChoices())));
-
-$messages = (array) $question->getQuestion();
-foreach ($question->getChoices() as $key => $value) {
-$width = $maxWidth - $this->strlen($key);
-$messages[] = '  [<info>'.$key.str_repeat(' ', $width).'</info>] '.$value;
-}
-
-$output->writeln($messages);
-
-$message = $question->getPrompt();
-}
-
-$output->write($message);
-}
-
-
-
-
-protected function writeError(OutputInterface $output, \Exception $error)
-{
-if (null !== $this->getHelperSet() && $this->getHelperSet()->has('formatter')) {
-$message = $this->getHelperSet()->get('formatter')->formatBlock($error->getMessage(), 'error');
-} else {
-$message = '<error>'.$error->getMessage().'</error>';
-}
-
-$output->writeln($message);
-}
-
-
-
-
-
-
-
-
-
-
-
-private function autocomplete(OutputInterface $output, Question $question, $inputStream, array $autocomplete)
-{
-$ret = '';
-
-$i = 0;
-$ofs = -1;
-$matches = $autocomplete;
-$numMatches = \count($matches);
-
-$sttyMode = shell_exec('stty -g');
-
-
- shell_exec('stty -icanon -echo');
-
-
- $output->getFormatter()->setStyle('hl', new OutputFormatterStyle('black', 'white'));
-
-
- while (!feof($inputStream)) {
-$c = fread($inputStream, 1);
-
-
- if ("\177" === $c) {
-if (0 === $numMatches && 0 !== $i) {
---$i;
-
- $output->write("\033[1D");
-}
-
-if (0 === $i) {
-$ofs = -1;
-$matches = $autocomplete;
-$numMatches = \count($matches);
-} else {
-$numMatches = 0;
-}
-
-
- $ret = substr($ret, 0, $i);
-} elseif ("\033" === $c) {
-
- $c .= fread($inputStream, 2);
-
-
- if (isset($c[2]) && ('A' === $c[2] || 'B' === $c[2])) {
-if ('A' === $c[2] && -1 === $ofs) {
-$ofs = 0;
-}
-
-if (0 === $numMatches) {
-continue;
-}
-
-$ofs += ('A' === $c[2]) ? -1 : 1;
-$ofs = ($numMatches + $ofs) % $numMatches;
-}
-} elseif (\ord($c) < 32) {
-if ("\t" === $c || "\n" === $c) {
-if ($numMatches > 0 && -1 !== $ofs) {
-$ret = $matches[$ofs];
-
- $output->write(substr($ret, $i));
-$i = \strlen($ret);
-}
-
-if ("\n" === $c) {
-$output->write($c);
-break;
-}
-
-$numMatches = 0;
-}
-
-continue;
-} else {
-$output->write($c);
-$ret .= $c;
-++$i;
-
-$numMatches = 0;
-$ofs = 0;
-
-foreach ($autocomplete as $value) {
-
- if (0 === strpos($value, $ret)) {
-$matches[$numMatches++] = $value;
-}
-}
-}
-
-
- $output->write("\033[K");
-
-if ($numMatches > 0 && -1 !== $ofs) {
-
- $output->write("\0337");
-
- $output->write('<hl>'.OutputFormatter::escapeTrailingBackslash(substr($matches[$ofs], $i)).'</hl>');
-
- $output->write("\0338");
-}
-}
-
-
- shell_exec(sprintf('stty %s', $sttyMode));
-
-return $ret;
-}
-
-
-
-
-
-
-
-
-
-
-
-private function getHiddenResponse(OutputInterface $output, $inputStream)
-{
-if ('\\' === \DIRECTORY_SEPARATOR) {
-$exe = __DIR__.'/../Resources/bin/hiddeninput.exe';
-
-
- if ('phar:' === substr(__FILE__, 0, 5)) {
-$tmpExe = sys_get_temp_dir().'/hiddeninput.exe';
-copy($exe, $tmpExe);
-$exe = $tmpExe;
-}
-
-$value = rtrim(shell_exec($exe));
-$output->writeln('');
-
-if (isset($tmpExe)) {
-unlink($tmpExe);
-}
-
-return $value;
-}
-
-if ($this->hasSttyAvailable()) {
-$sttyMode = shell_exec('stty -g');
-
-shell_exec('stty -echo');
-$value = fgets($inputStream, 4096);
-shell_exec(sprintf('stty %s', $sttyMode));
-
-if (false === $value) {
-throw new RuntimeException('Aborted');
-}
-
-$value = trim($value);
-$output->writeln('');
-
-return $value;
-}
-
-if (false !== $shell = $this->getShell()) {
-$readCmd = 'csh' === $shell ? 'set mypassword = $<' : 'read -r mypassword';
-$command = sprintf("/usr/bin/env %s -c 'stty -echo; %s; stty echo; echo \$mypassword'", $shell, $readCmd);
-$value = rtrim(shell_exec($command));
-$output->writeln('');
-
-return $value;
-}
-
-throw new RuntimeException('Unable to hide the response.');
-}
-
-
-
-
-
-
-
-
-
-
-
-
-private function validateAttempts($interviewer, OutputInterface $output, Question $question)
-{
-$error = null;
-$attempts = $question->getMaxAttempts();
-while (null === $attempts || $attempts--) {
-if (null !== $error) {
-$this->writeError($output, $error);
-}
-
-try {
-return \call_user_func($question->getValidator(), $interviewer());
-} catch (RuntimeException $e) {
-throw $e;
-} catch (\Exception $error) {
-}
-}
-
-throw $error;
-}
-
-
-
-
-
-
-private function getShell()
-{
-if (null !== self::$shell) {
-return self::$shell;
-}
-
-self::$shell = false;
-
-if (file_exists('/usr/bin/env')) {
-
- $test = "/usr/bin/env %s -c 'echo OK' 2> /dev/null";
-foreach (array('bash', 'zsh', 'ksh', 'csh') as $sh) {
-if ('OK' === rtrim(shell_exec(sprintf($test, $sh)))) {
-self::$shell = $sh;
-break;
-}
-}
-}
-
-return self::$shell;
-}
-
-
-
-
-
-
-private function hasSttyAvailable()
-{
-if (null !== self::$stty) {
-return self::$stty;
-}
-
-exec('stty 2>&1', $output, $exitcode);
-
-return self::$stty = 0 === $exitcode;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Exception\LogicException;
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Question\ChoiceQuestion;
-use Symfony\Component\Console\Question\ConfirmationQuestion;
-use Symfony\Component\Console\Question\Question;
-use Symfony\Component\Console\Style\SymfonyStyle;
-
-
-
-
-
-
-class SymfonyQuestionHelper extends QuestionHelper
-{
-
-
-
-public function ask(InputInterface $input, OutputInterface $output, Question $question)
-{
-$validator = $question->getValidator();
-$question->setValidator(function ($value) use ($validator) {
-if (null !== $validator) {
-$value = $validator($value);
-} else {
-
- if (!\is_array($value) && !\is_bool($value) && 0 === \strlen($value)) {
-throw new LogicException('A value is required.');
-}
-}
-
-return $value;
-});
-
-return parent::ask($input, $output, $question);
-}
-
-
-
-
-protected function writePrompt(OutputInterface $output, Question $question)
-{
-$text = OutputFormatter::escapeTrailingBackslash($question->getQuestion());
-$default = $question->getDefault();
-
-switch (true) {
-case null === $default:
-$text = sprintf(' <info>%s</info>:', $text);
-
-break;
-
-case $question instanceof ConfirmationQuestion:
-$text = sprintf(' <info>%s (yes/no)</info> [<comment>%s</comment>]:', $text, $default ? 'yes' : 'no');
-
-break;
-
-case $question instanceof ChoiceQuestion && $question->isMultiselect():
-$choices = $question->getChoices();
-$default = explode(',', $default);
-
-foreach ($default as $key => $value) {
-$default[$key] = $choices[trim($value)];
-}
-
-$text = sprintf(' <info>%s</info> [<comment>%s</comment>]:', $text, OutputFormatter::escape(implode(', ', $default)));
-
-break;
-
-case $question instanceof ChoiceQuestion:
-$choices = $question->getChoices();
-$text = sprintf(' <info>%s</info> [<comment>%s</comment>]:', $text, OutputFormatter::escape(isset($choices[$default]) ? $choices[$default] : $default));
-
-break;
-
-default:
-$text = sprintf(' <info>%s</info> [<comment>%s</comment>]:', $text, OutputFormatter::escape($default));
-}
-
-$output->writeln($text);
-
-if ($question instanceof ChoiceQuestion) {
-$width = max(array_map('strlen', array_keys($question->getChoices())));
-
-foreach ($question->getChoices() as $key => $value) {
-$output->writeln(sprintf("  [<comment>%-${width}s</comment>] %s", $key, $value));
-}
-}
-
-$output->write(' > ');
-}
-
-
-
-
-protected function writeError(OutputInterface $output, \Exception $error)
-{
-if ($output instanceof SymfonyStyle) {
-$output->newLine();
-$output->error($error->getMessage());
-
-return;
-}
-
-parent::writeError($output, $error);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-
-
-
-
-
-class Table
-{
-
-
-
-private $headers = array();
-
-
-
-
-private $rows = array();
-
-
-
-
-private $columnWidths = array();
-
-
-
-
-
-
-private $numberOfColumns;
-
-
-
-
-private $output;
-
-
-
-
-private $style;
-
-
-
-
-private $columnStyles = array();
-
-private static $styles;
-
-public function __construct(OutputInterface $output)
-{
-$this->output = $output;
-
-if (!self::$styles) {
-self::$styles = self::initStyles();
-}
-
-$this->setStyle('default');
-}
-
-
-
-
-
-
-
-public static function setStyleDefinition($name, TableStyle $style)
-{
-if (!self::$styles) {
-self::$styles = self::initStyles();
-}
-
-self::$styles[$name] = $style;
-}
-
-
-
-
-
-
-
-
-public static function getStyleDefinition($name)
-{
-if (!self::$styles) {
-self::$styles = self::initStyles();
-}
-
-if (isset(self::$styles[$name])) {
-return self::$styles[$name];
-}
-
-throw new InvalidArgumentException(sprintf('Style "%s" is not defined.', $name));
-}
-
-
-
-
-
-
-
-
-public function setStyle($name)
-{
-$this->style = $this->resolveStyle($name);
-
-return $this;
-}
-
-
-
-
-
-
-public function getStyle()
-{
-return $this->style;
-}
-
-
-
-
-
-
-
-
-
-public function setColumnStyle($columnIndex, $name)
-{
-$columnIndex = (int) $columnIndex;
-
-$this->columnStyles[$columnIndex] = $this->resolveStyle($name);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-public function getColumnStyle($columnIndex)
-{
-if (isset($this->columnStyles[$columnIndex])) {
-return $this->columnStyles[$columnIndex];
-}
-
-return $this->getStyle();
-}
-
-public function setHeaders(array $headers)
-{
-$headers = array_values($headers);
-if (!empty($headers) && !\is_array($headers[0])) {
-$headers = array($headers);
-}
-
-$this->headers = $headers;
-
-return $this;
-}
-
-public function setRows(array $rows)
-{
-$this->rows = array();
-
-return $this->addRows($rows);
-}
-
-public function addRows(array $rows)
-{
-foreach ($rows as $row) {
-$this->addRow($row);
-}
-
-return $this;
-}
-
-public function addRow($row)
-{
-if ($row instanceof TableSeparator) {
-$this->rows[] = $row;
-
-return $this;
-}
-
-if (!\is_array($row)) {
-throw new InvalidArgumentException('A row must be an array or a TableSeparator instance.');
-}
-
-$this->rows[] = array_values($row);
-
-return $this;
-}
-
-public function setRow($column, array $row)
-{
-$this->rows[$column] = $row;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function render()
-{
-$this->calculateNumberOfColumns();
-$rows = $this->buildTableRows($this->rows);
-$headers = $this->buildTableRows($this->headers);
-
-$this->calculateColumnsWidth(array_merge($headers, $rows));
-
-$this->renderRowSeparator();
-if (!empty($headers)) {
-foreach ($headers as $header) {
-$this->renderRow($header, $this->style->getCellHeaderFormat());
-$this->renderRowSeparator();
-}
-}
-foreach ($rows as $row) {
-if ($row instanceof TableSeparator) {
-$this->renderRowSeparator();
-} else {
-$this->renderRow($row, $this->style->getCellRowFormat());
-}
-}
-if (!empty($rows)) {
-$this->renderRowSeparator();
-}
-
-$this->cleanup();
-}
-
-
-
-
-
-
-
-
-private function renderRowSeparator()
-{
-if (0 === $count = $this->numberOfColumns) {
-return;
-}
-
-if (!$this->style->getHorizontalBorderChar() && !$this->style->getCrossingChar()) {
-return;
-}
-
-$markup = $this->style->getCrossingChar();
-for ($column = 0; $column < $count; ++$column) {
-$markup .= str_repeat($this->style->getHorizontalBorderChar(), $this->columnWidths[$column]).$this->style->getCrossingChar();
-}
-
-$this->output->writeln(sprintf($this->style->getBorderFormat(), $markup));
-}
-
-
-
-
-private function renderColumnSeparator()
-{
-return sprintf($this->style->getBorderFormat(), $this->style->getVerticalBorderChar());
-}
-
-
-
-
-
-
-
-
-
-
-
-private function renderRow(array $row, $cellFormat)
-{
-if (empty($row)) {
-return;
-}
-
-$rowContent = $this->renderColumnSeparator();
-foreach ($this->getRowColumns($row) as $column) {
-$rowContent .= $this->renderCell($row, $column, $cellFormat);
-$rowContent .= $this->renderColumnSeparator();
-}
-$this->output->writeln($rowContent);
-}
-
-
-
-
-
-
-
-
-private function renderCell(array $row, $column, $cellFormat)
-{
-$cell = isset($row[$column]) ? $row[$column] : '';
-$width = $this->columnWidths[$column];
-if ($cell instanceof TableCell && $cell->getColspan() > 1) {
-
- foreach (range($column + 1, $column + $cell->getColspan() - 1) as $nextColumn) {
-$width += $this->getColumnSeparatorWidth() + $this->columnWidths[$nextColumn];
-}
-}
-
-
- if (false !== $encoding = mb_detect_encoding($cell, null, true)) {
-$width += \strlen($cell) - mb_strwidth($cell, $encoding);
-}
-
-$style = $this->getColumnStyle($column);
-
-if ($cell instanceof TableSeparator) {
-return sprintf($style->getBorderFormat(), str_repeat($style->getHorizontalBorderChar(), $width));
-}
-
-$width += Helper::strlen($cell) - Helper::strlenWithoutDecoration($this->output->getFormatter(), $cell);
-$content = sprintf($style->getCellRowContentFormat(), $cell);
-
-return sprintf($cellFormat, str_pad($content, $width, $style->getPaddingChar(), $style->getPadType()));
-}
-
-
-
-
-private function calculateNumberOfColumns()
-{
-if (null !== $this->numberOfColumns) {
-return;
-}
-
-$columns = array(0);
-foreach (array_merge($this->headers, $this->rows) as $row) {
-if ($row instanceof TableSeparator) {
-continue;
-}
-
-$columns[] = $this->getNumberOfColumns($row);
-}
-
-$this->numberOfColumns = max($columns);
-}
-
-private function buildTableRows($rows)
-{
-$unmergedRows = array();
-for ($rowKey = 0; $rowKey < \count($rows); ++$rowKey) {
-$rows = $this->fillNextRows($rows, $rowKey);
-
-
- foreach ($rows[$rowKey] as $column => $cell) {
-if (!strstr($cell, "\n")) {
-continue;
-}
-$lines = explode("\n", str_replace("\n", "<fg=default;bg=default>\n</>", $cell));
-foreach ($lines as $lineKey => $line) {
-if ($cell instanceof TableCell) {
-$line = new TableCell($line, array('colspan' => $cell->getColspan()));
-}
-if (0 === $lineKey) {
-$rows[$rowKey][$column] = $line;
-} else {
-$unmergedRows[$rowKey][$lineKey][$column] = $line;
-}
-}
-}
-}
-
-$tableRows = array();
-foreach ($rows as $rowKey => $row) {
-$tableRows[] = $this->fillCells($row);
-if (isset($unmergedRows[$rowKey])) {
-$tableRows = array_merge($tableRows, $unmergedRows[$rowKey]);
-}
-}
-
-return $tableRows;
-}
-
-
-
-
-
-
-
-
-
-private function fillNextRows(array $rows, $line)
-{
-$unmergedRows = array();
-foreach ($rows[$line] as $column => $cell) {
-if ($cell instanceof TableCell && $cell->getRowspan() > 1) {
-$nbLines = $cell->getRowspan() - 1;
-$lines = array($cell);
-if (strstr($cell, "\n")) {
-$lines = explode("\n", str_replace("\n", "<fg=default;bg=default>\n</>", $cell));
-$nbLines = \count($lines) > $nbLines ? substr_count($cell, "\n") : $nbLines;
-
-$rows[$line][$column] = new TableCell($lines[0], array('colspan' => $cell->getColspan()));
-unset($lines[0]);
-}
-
-
- $unmergedRows = array_replace_recursive(array_fill($line + 1, $nbLines, array()), $unmergedRows);
-foreach ($unmergedRows as $unmergedRowKey => $unmergedRow) {
-$value = isset($lines[$unmergedRowKey - $line]) ? $lines[$unmergedRowKey - $line] : '';
-$unmergedRows[$unmergedRowKey][$column] = new TableCell($value, array('colspan' => $cell->getColspan()));
-if ($nbLines === $unmergedRowKey - $line) {
-break;
-}
-}
-}
-}
-
-foreach ($unmergedRows as $unmergedRowKey => $unmergedRow) {
-
- if (isset($rows[$unmergedRowKey]) && \is_array($rows[$unmergedRowKey]) && ($this->getNumberOfColumns($rows[$unmergedRowKey]) + $this->getNumberOfColumns($unmergedRows[$unmergedRowKey]) <= $this->numberOfColumns)) {
-foreach ($unmergedRow as $cellKey => $cell) {
-
- array_splice($rows[$unmergedRowKey], $cellKey, 0, array($cell));
-}
-} else {
-$row = $this->copyRow($rows, $unmergedRowKey - 1);
-foreach ($unmergedRow as $column => $cell) {
-if (!empty($cell)) {
-$row[$column] = $unmergedRow[$column];
-}
-}
-array_splice($rows, $unmergedRowKey, 0, array($row));
-}
-}
-
-return $rows;
-}
-
-
-
-
-
-
-private function fillCells($row)
-{
-$newRow = array();
-foreach ($row as $column => $cell) {
-$newRow[] = $cell;
-if ($cell instanceof TableCell && $cell->getColspan() > 1) {
-foreach (range($column + 1, $column + $cell->getColspan() - 1) as $position) {
-
- $newRow[] = '';
-}
-}
-}
-
-return $newRow ?: $row;
-}
-
-
-
-
-
-
-
-private function copyRow(array $rows, $line)
-{
-$row = $rows[$line];
-foreach ($row as $cellKey => $cellValue) {
-$row[$cellKey] = '';
-if ($cellValue instanceof TableCell) {
-$row[$cellKey] = new TableCell('', array('colspan' => $cellValue->getColspan()));
-}
-}
-
-return $row;
-}
-
-
-
-
-
-
-private function getNumberOfColumns(array $row)
-{
-$columns = \count($row);
-foreach ($row as $column) {
-$columns += $column instanceof TableCell ? ($column->getColspan() - 1) : 0;
-}
-
-return $columns;
-}
-
-
-
-
-
-
-private function getRowColumns(array $row)
-{
-$columns = range(0, $this->numberOfColumns - 1);
-foreach ($row as $cellKey => $cell) {
-if ($cell instanceof TableCell && $cell->getColspan() > 1) {
-
- $columns = array_diff($columns, range($cellKey + 1, $cellKey + $cell->getColspan() - 1));
-}
-}
-
-return $columns;
-}
-
-
-
-
-
-
-private function calculateColumnsWidth($rows)
-{
-for ($column = 0; $column < $this->numberOfColumns; ++$column) {
-$lengths = array();
-foreach ($rows as $row) {
-if ($row instanceof TableSeparator) {
-continue;
-}
-
-foreach ($row as $i => $cell) {
-if ($cell instanceof TableCell) {
-$textContent = Helper::removeDecoration($this->output->getFormatter(), $cell);
-$textLength = Helper::strlen($textContent);
-if ($textLength > 0) {
-$contentColumns = str_split($textContent, ceil($textLength / $cell->getColspan()));
-foreach ($contentColumns as $position => $content) {
-$row[$i + $position] = $content;
-}
-}
-}
-}
-
-$lengths[] = $this->getCellWidth($row, $column);
-}
-
-$this->columnWidths[$column] = max($lengths) + Helper::strlen($this->style->getCellRowContentFormat()) - 2;
-}
-}
-
-
-
-
-
-
-private function getColumnSeparatorWidth()
-{
-return Helper::strlen(sprintf($this->style->getBorderFormat(), $this->style->getVerticalBorderChar()));
-}
-
-
-
-
-
-
-
-
-
-private function getCellWidth(array $row, $column)
-{
-if (isset($row[$column])) {
-$cell = $row[$column];
-$cellWidth = Helper::strlenWithoutDecoration($this->output->getFormatter(), $cell);
-
-return $cellWidth;
-}
-
-return 0;
-}
-
-
-
-
-private function cleanup()
-{
-$this->columnWidths = array();
-$this->numberOfColumns = null;
-}
-
-private static function initStyles()
-{
-$borderless = new TableStyle();
-$borderless
-->setHorizontalBorderChar('=')
-->setVerticalBorderChar(' ')
-->setCrossingChar(' ')
-;
-
-$compact = new TableStyle();
-$compact
-->setHorizontalBorderChar('')
-->setVerticalBorderChar(' ')
-->setCrossingChar('')
-->setCellRowContentFormat('%s')
-;
-
-$styleGuide = new TableStyle();
-$styleGuide
-->setHorizontalBorderChar('-')
-->setVerticalBorderChar(' ')
-->setCrossingChar(' ')
-->setCellHeaderFormat('%s')
-;
-
-return array(
-'default' => new TableStyle(),
-'borderless' => $borderless,
-'compact' => $compact,
-'symfony-style-guide' => $styleGuide,
-);
-}
-
-private function resolveStyle($name)
-{
-if ($name instanceof TableStyle) {
-return $name;
-}
-
-if (isset(self::$styles[$name])) {
-return self::$styles[$name];
-}
-
-throw new InvalidArgumentException(sprintf('Style "%s" is not defined.', $name));
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-
-
-
-
-class TableCell
-{
-private $value;
-private $options = array(
-'rowspan' => 1,
-'colspan' => 1,
-);
-
-
-
-
-
-public function __construct($value = '', array $options = array())
-{
-if (is_numeric($value) && !\is_string($value)) {
-$value = (string) $value;
-}
-
-$this->value = $value;
-
-
- if ($diff = array_diff(array_keys($options), array_keys($this->options))) {
-throw new InvalidArgumentException(sprintf('The TableCell does not support the following options: \'%s\'.', implode('\', \'', $diff)));
-}
-
-$this->options = array_merge($this->options, $options);
-}
-
-
-
-
-
-
-public function __toString()
-{
-return $this->value;
-}
-
-
-
-
-
-
-public function getColspan()
-{
-return (int) $this->options['colspan'];
-}
-
-
-
-
-
-
-public function getRowspan()
-{
-return (int) $this->options['rowspan'];
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Output\NullOutput;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-
-
-
-
-
-
-class TableHelper extends Helper
-{
-const LAYOUT_DEFAULT = 0;
-const LAYOUT_BORDERLESS = 1;
-const LAYOUT_COMPACT = 2;
-
-private $table;
-
-public function __construct($triggerDeprecationError = true)
-{
-if ($triggerDeprecationError) {
-@trigger_error('The '.__CLASS__.' class is deprecated since Symfony 2.5 and will be removed in 3.0. Use the Symfony\Component\Console\Helper\Table class instead.', E_USER_DEPRECATED);
-}
-
-$this->table = new Table(new NullOutput());
-}
-
-
-
-
-
-
-
-
-
-
-public function setLayout($layout)
-{
-switch ($layout) {
-case self::LAYOUT_BORDERLESS:
-$this->table->setStyle('borderless');
-break;
-
-case self::LAYOUT_COMPACT:
-$this->table->setStyle('compact');
-break;
-
-case self::LAYOUT_DEFAULT:
-$this->table->setStyle('default');
-break;
-
-default:
-throw new InvalidArgumentException(sprintf('Invalid table layout "%s".', $layout));
-}
-
-return $this;
-}
-
-public function setHeaders(array $headers)
-{
-$this->table->setHeaders($headers);
-
-return $this;
-}
-
-public function setRows(array $rows)
-{
-$this->table->setRows($rows);
-
-return $this;
-}
-
-public function addRows(array $rows)
-{
-$this->table->addRows($rows);
-
-return $this;
-}
-
-public function addRow(array $row)
-{
-$this->table->addRow($row);
-
-return $this;
-}
-
-public function setRow($column, array $row)
-{
-$this->table->setRow($column, $row);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function setPaddingChar($paddingChar)
-{
-$this->table->getStyle()->setPaddingChar($paddingChar);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function setHorizontalBorderChar($horizontalBorderChar)
-{
-$this->table->getStyle()->setHorizontalBorderChar($horizontalBorderChar);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function setVerticalBorderChar($verticalBorderChar)
-{
-$this->table->getStyle()->setVerticalBorderChar($verticalBorderChar);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function setCrossingChar($crossingChar)
-{
-$this->table->getStyle()->setCrossingChar($crossingChar);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function setCellHeaderFormat($cellHeaderFormat)
-{
-$this->table->getStyle()->setCellHeaderFormat($cellHeaderFormat);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function setCellRowFormat($cellRowFormat)
-{
-$this->table->getStyle()->setCellHeaderFormat($cellRowFormat);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function setCellRowContentFormat($cellRowContentFormat)
-{
-$this->table->getStyle()->setCellRowContentFormat($cellRowContentFormat);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function setBorderFormat($borderFormat)
-{
-$this->table->getStyle()->setBorderFormat($borderFormat);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function setPadType($padType)
-{
-$this->table->getStyle()->setPadType($padType);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function render(OutputInterface $output)
-{
-$p = new \ReflectionProperty($this->table, 'output');
-$p->setAccessible(true);
-$p->setValue($this->table, $output);
-
-$this->table->render();
-}
-
-
-
-
-public function getName()
-{
-return 'table';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Helper;
-
-
-
-
-
-
-class TableSeparator extends TableCell
-{
-public function __construct(array $options = array())
-{
-parent::__construct('', $options);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Helper;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\LogicException;
-
-
-
-
-
-
-
-class TableStyle
-{
-private $paddingChar = ' ';
-private $horizontalBorderChar = '-';
-private $verticalBorderChar = '|';
-private $crossingChar = '+';
-private $cellHeaderFormat = '<info>%s</info>';
-private $cellRowFormat = '%s';
-private $cellRowContentFormat = ' %s ';
-private $borderFormat = '%s';
-private $padType = STR_PAD_RIGHT;
-
-
-
-
-
-
-
-
-public function setPaddingChar($paddingChar)
-{
-if (!$paddingChar) {
-throw new LogicException('The padding char must not be empty');
-}
-
-$this->paddingChar = $paddingChar;
-
-return $this;
-}
-
-
-
-
-
-
-public function getPaddingChar()
-{
-return $this->paddingChar;
-}
-
-
-
-
-
-
-
-
-public function setHorizontalBorderChar($horizontalBorderChar)
-{
-$this->horizontalBorderChar = $horizontalBorderChar;
-
-return $this;
-}
-
-
-
-
-
-
-public function getHorizontalBorderChar()
-{
-return $this->horizontalBorderChar;
-}
-
-
-
-
-
-
-
-
-public function setVerticalBorderChar($verticalBorderChar)
-{
-$this->verticalBorderChar = $verticalBorderChar;
-
-return $this;
-}
-
-
-
-
-
-
-public function getVerticalBorderChar()
-{
-return $this->verticalBorderChar;
-}
-
-
-
-
-
-
-
-
-public function setCrossingChar($crossingChar)
-{
-$this->crossingChar = $crossingChar;
-
-return $this;
-}
-
-
-
-
-
-
-public function getCrossingChar()
-{
-return $this->crossingChar;
-}
-
-
-
-
-
-
-
-
-public function setCellHeaderFormat($cellHeaderFormat)
-{
-$this->cellHeaderFormat = $cellHeaderFormat;
-
-return $this;
-}
-
-
-
-
-
-
-public function getCellHeaderFormat()
-{
-return $this->cellHeaderFormat;
-}
-
-
-
-
-
-
-
-
-public function setCellRowFormat($cellRowFormat)
-{
-$this->cellRowFormat = $cellRowFormat;
-
-return $this;
-}
-
-
-
-
-
-
-public function getCellRowFormat()
-{
-return $this->cellRowFormat;
-}
-
-
-
-
-
-
-
-
-public function setCellRowContentFormat($cellRowContentFormat)
-{
-$this->cellRowContentFormat = $cellRowContentFormat;
-
-return $this;
-}
-
-
-
-
-
-
-public function getCellRowContentFormat()
-{
-return $this->cellRowContentFormat;
-}
-
-
-
-
-
-
-
-
-public function setBorderFormat($borderFormat)
-{
-$this->borderFormat = $borderFormat;
-
-return $this;
-}
-
-
-
-
-
-
-public function getBorderFormat()
-{
-return $this->borderFormat;
-}
-
-
-
-
-
-
-
-
-public function setPadType($padType)
-{
-if (!\in_array($padType, array(STR_PAD_LEFT, STR_PAD_RIGHT, STR_PAD_BOTH), true)) {
-throw new InvalidArgumentException('Invalid padding type. Expected one of (STR_PAD_LEFT, STR_PAD_RIGHT, STR_PAD_BOTH).');
-}
-
-$this->padType = $padType;
-
-return $this;
-}
-
-
-
-
-
-
-public function getPadType()
-{
-return $this->padType;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Input;
-
-use Symfony\Component\Console\Exception\RuntimeException;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-class ArgvInput extends Input
-{
-private $tokens;
-private $parsed;
-
-
-
-
-
-public function __construct(array $argv = null, InputDefinition $definition = null)
-{
-if (null === $argv) {
-$argv = $_SERVER['argv'];
-}
-
-
- array_shift($argv);
-
-$this->tokens = $argv;
-
-parent::__construct($definition);
-}
-
-protected function setTokens(array $tokens)
-{
-$this->tokens = $tokens;
-}
-
-
-
-
-protected function parse()
-{
-$parseOptions = true;
-$this->parsed = $this->tokens;
-while (null !== $token = array_shift($this->parsed)) {
-if ($parseOptions && '' == $token) {
-$this->parseArgument($token);
-} elseif ($parseOptions && '--' == $token) {
-$parseOptions = false;
-} elseif ($parseOptions && 0 === strpos($token, '--')) {
-$this->parseLongOption($token);
-} elseif ($parseOptions && '-' === $token[0] && '-' !== $token) {
-$this->parseShortOption($token);
-} else {
-$this->parseArgument($token);
-}
-}
-}
-
-
-
-
-
-
-private function parseShortOption($token)
-{
-$name = substr($token, 1);
-
-if (\strlen($name) > 1) {
-if ($this->definition->hasShortcut($name[0]) && $this->definition->getOptionForShortcut($name[0])->acceptValue()) {
-
- $this->addShortOption($name[0], substr($name, 1));
-} else {
-$this->parseShortOptionSet($name);
-}
-} else {
-$this->addShortOption($name, null);
-}
-}
-
-
-
-
-
-
-
-
-private function parseShortOptionSet($name)
-{
-$len = \strlen($name);
-for ($i = 0; $i < $len; ++$i) {
-if (!$this->definition->hasShortcut($name[$i])) {
-$encoding = mb_detect_encoding($name, null, true);
-throw new RuntimeException(sprintf('The "-%s" option does not exist.', false === $encoding ? $name[$i] : mb_substr($name, $i, 1, $encoding)));
-}
-
-$option = $this->definition->getOptionForShortcut($name[$i]);
-if ($option->acceptValue()) {
-$this->addLongOption($option->getName(), $i === $len - 1 ? null : substr($name, $i + 1));
-
-break;
-} else {
-$this->addLongOption($option->getName(), null);
-}
-}
-}
-
-
-
-
-
-
-private function parseLongOption($token)
-{
-$name = substr($token, 2);
-
-if (false !== $pos = strpos($name, '=')) {
-if (0 === \strlen($value = substr($name, $pos + 1))) {
-array_unshift($this->parsed, null);
-}
-$this->addLongOption(substr($name, 0, $pos), $value);
-} else {
-$this->addLongOption($name, null);
-}
-}
-
-
-
-
-
-
-
-
-private function parseArgument($token)
-{
-$c = \count($this->arguments);
-
-
- if ($this->definition->hasArgument($c)) {
-$arg = $this->definition->getArgument($c);
-$this->arguments[$arg->getName()] = $arg->isArray() ? array($token) : $token;
-
-
- } elseif ($this->definition->hasArgument($c - 1) && $this->definition->getArgument($c - 1)->isArray()) {
-$arg = $this->definition->getArgument($c - 1);
-$this->arguments[$arg->getName()][] = $token;
-
-
- } else {
-$all = $this->definition->getArguments();
-if (\count($all)) {
-throw new RuntimeException(sprintf('Too many arguments, expected arguments "%s".', implode('" "', array_keys($all))));
-}
-
-throw new RuntimeException(sprintf('No arguments expected, got "%s".', $token));
-}
-}
-
-
-
-
-
-
-
-
-
-private function addShortOption($shortcut, $value)
-{
-if (!$this->definition->hasShortcut($shortcut)) {
-throw new RuntimeException(sprintf('The "-%s" option does not exist.', $shortcut));
-}
-
-$this->addLongOption($this->definition->getOptionForShortcut($shortcut)->getName(), $value);
-}
-
-
-
-
-
-
-
-
-
-private function addLongOption($name, $value)
-{
-if (!$this->definition->hasOption($name)) {
-throw new RuntimeException(sprintf('The "--%s" option does not exist.', $name));
-}
-
-$option = $this->definition->getOption($name);
-
-
- if (!isset($value[0])) {
-$value = null;
-}
-
-if (null !== $value && !$option->acceptValue()) {
-throw new RuntimeException(sprintf('The "--%s" option does not accept a value.', $name));
-}
-
-if (null === $value && $option->acceptValue() && \count($this->parsed)) {
-
- 
- $next = array_shift($this->parsed);
-if (isset($next[0]) && '-' !== $next[0]) {
-$value = $next;
-} elseif (empty($next)) {
-$value = null;
-} else {
-array_unshift($this->parsed, $next);
-}
-}
-
-if (null === $value) {
-if ($option->isValueRequired()) {
-throw new RuntimeException(sprintf('The "--%s" option requires a value.', $name));
-}
-
-if (!$option->isArray()) {
-$value = $option->isValueOptional() ? $option->getDefault() : true;
-}
-}
-
-if ($option->isArray()) {
-$this->options[$name][] = $value;
-} else {
-$this->options[$name] = $value;
-}
-}
-
-
-
-
-public function getFirstArgument()
-{
-foreach ($this->tokens as $token) {
-if ($token && '-' === $token[0]) {
-continue;
-}
-
-return $token;
-}
-}
-
-
-
-
-public function hasParameterOption($values)
-{
-$values = (array) $values;
-
-foreach ($this->tokens as $token) {
-foreach ($values as $value) {
-
- 
- 
- $leading = 0 === strpos($value, '--') ? $value.'=' : $value;
-if ($token === $value || '' !== $leading && 0 === strpos($token, $leading)) {
-return true;
-}
-}
-}
-
-return false;
-}
-
-
-
-
-public function getParameterOption($values, $default = false)
-{
-$values = (array) $values;
-$tokens = $this->tokens;
-
-while (0 < \count($tokens)) {
-$token = array_shift($tokens);
-
-foreach ($values as $value) {
-if ($token === $value) {
-return array_shift($tokens);
-}
-
- 
- 
- $leading = 0 === strpos($value, '--') ? $value.'=' : $value;
-if ('' !== $leading && 0 === strpos($token, $leading)) {
-return substr($token, \strlen($leading));
-}
-}
-}
-
-return $default;
-}
-
-
-
-
-
-
-public function __toString()
-{
-$self = $this;
-$tokens = array_map(function ($token) use ($self) {
-if (preg_match('{^(-[^=]+=)(.+)}', $token, $match)) {
-return $match[1].$self->escapeToken($match[2]);
-}
-
-if ($token && '-' !== $token[0]) {
-return $self->escapeToken($token);
-}
-
-return $token;
-}, $this->tokens);
-
-return implode(' ', $tokens);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Input;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\InvalidOptionException;
-
-
-
-
-
-
-
-
-
-
-class ArrayInput extends Input
-{
-private $parameters;
-
-public function __construct(array $parameters, InputDefinition $definition = null)
-{
-$this->parameters = $parameters;
-
-parent::__construct($definition);
-}
-
-
-
-
-public function getFirstArgument()
-{
-foreach ($this->parameters as $key => $value) {
-if ($key && '-' === $key[0]) {
-continue;
-}
-
-return $value;
-}
-}
-
-
-
-
-public function hasParameterOption($values)
-{
-$values = (array) $values;
-
-foreach ($this->parameters as $k => $v) {
-if (!\is_int($k)) {
-$v = $k;
-}
-
-if (\in_array($v, $values)) {
-return true;
-}
-}
-
-return false;
-}
-
-
-
-
-public function getParameterOption($values, $default = false)
-{
-$values = (array) $values;
-
-foreach ($this->parameters as $k => $v) {
-if (\is_int($k)) {
-if (\in_array($v, $values)) {
-return true;
-}
-} elseif (\in_array($k, $values)) {
-return $v;
-}
-}
-
-return $default;
-}
-
-
-
-
-
-
-public function __toString()
-{
-$params = array();
-foreach ($this->parameters as $param => $val) {
-if ($param && '-' === $param[0]) {
-if (\is_array($val)) {
-foreach ($val as $v) {
-$params[] = $param.('' != $v ? '='.$this->escapeToken($v) : '');
-}
-} else {
-$params[] = $param.('' != $val ? '='.$this->escapeToken($val) : '');
-}
-} else {
-$params[] = \is_array($val) ? implode(' ', array_map(array($this, 'escapeToken'), $val)) : $this->escapeToken($val);
-}
-}
-
-return implode(' ', $params);
-}
-
-
-
-
-protected function parse()
-{
-foreach ($this->parameters as $key => $value) {
-if (0 === strpos($key, '--')) {
-$this->addLongOption(substr($key, 2), $value);
-} elseif ('-' === $key[0]) {
-$this->addShortOption(substr($key, 1), $value);
-} else {
-$this->addArgument($key, $value);
-}
-}
-}
-
-
-
-
-
-
-
-
-
-private function addShortOption($shortcut, $value)
-{
-if (!$this->definition->hasShortcut($shortcut)) {
-throw new InvalidOptionException(sprintf('The "-%s" option does not exist.', $shortcut));
-}
-
-$this->addLongOption($this->definition->getOptionForShortcut($shortcut)->getName(), $value);
-}
-
-
-
-
-
-
-
-
-
-
-private function addLongOption($name, $value)
-{
-if (!$this->definition->hasOption($name)) {
-throw new InvalidOptionException(sprintf('The "--%s" option does not exist.', $name));
-}
-
-$option = $this->definition->getOption($name);
-
-if (null === $value) {
-if ($option->isValueRequired()) {
-throw new InvalidOptionException(sprintf('The "--%s" option requires a value.', $name));
-}
-
-$value = $option->isValueOptional() ? $option->getDefault() : true;
-}
-
-$this->options[$name] = $value;
-}
-
-
-
-
-
-
-
-
-
-private function addArgument($name, $value)
-{
-if (!$this->definition->hasArgument($name)) {
-throw new InvalidArgumentException(sprintf('The "%s" argument does not exist.', $name));
-}
-
-$this->arguments[$name] = $value;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Input;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\RuntimeException;
-
-
-
-
-
-
-
-
-
-
-
-
-abstract class Input implements InputInterface
-{
-protected $definition;
-protected $options = array();
-protected $arguments = array();
-protected $interactive = true;
-
-public function __construct(InputDefinition $definition = null)
-{
-if (null === $definition) {
-$this->definition = new InputDefinition();
-} else {
-$this->bind($definition);
-$this->validate();
-}
-}
-
-
-
-
-public function bind(InputDefinition $definition)
-{
-$this->arguments = array();
-$this->options = array();
-$this->definition = $definition;
-
-$this->parse();
-}
-
-
-
-
-abstract protected function parse();
-
-
-
-
-public function validate()
-{
-$definition = $this->definition;
-$givenArguments = $this->arguments;
-
-$missingArguments = array_filter(array_keys($definition->getArguments()), function ($argument) use ($definition, $givenArguments) {
-return !array_key_exists($argument, $givenArguments) && $definition->getArgument($argument)->isRequired();
-});
-
-if (\count($missingArguments) > 0) {
-throw new RuntimeException(sprintf('Not enough arguments (missing: "%s").', implode(', ', $missingArguments)));
-}
-}
-
-
-
-
-public function isInteractive()
-{
-return $this->interactive;
-}
-
-
-
-
-public function setInteractive($interactive)
-{
-$this->interactive = (bool) $interactive;
-}
-
-
-
-
-public function getArguments()
-{
-return array_merge($this->definition->getArgumentDefaults(), $this->arguments);
-}
-
-
-
-
-public function getArgument($name)
-{
-if (!$this->definition->hasArgument($name)) {
-throw new InvalidArgumentException(sprintf('The "%s" argument does not exist.', $name));
-}
-
-return isset($this->arguments[$name]) ? $this->arguments[$name] : $this->definition->getArgument($name)->getDefault();
-}
-
-
-
-
-public function setArgument($name, $value)
-{
-if (!$this->definition->hasArgument($name)) {
-throw new InvalidArgumentException(sprintf('The "%s" argument does not exist.', $name));
-}
-
-$this->arguments[$name] = $value;
-}
-
-
-
-
-public function hasArgument($name)
-{
-return $this->definition->hasArgument($name);
-}
-
-
-
-
-public function getOptions()
-{
-return array_merge($this->definition->getOptionDefaults(), $this->options);
-}
-
-
-
-
-public function getOption($name)
-{
-if (!$this->definition->hasOption($name)) {
-throw new InvalidArgumentException(sprintf('The "%s" option does not exist.', $name));
-}
-
-return isset($this->options[$name]) ? $this->options[$name] : $this->definition->getOption($name)->getDefault();
-}
-
-
-
-
-public function setOption($name, $value)
-{
-if (!$this->definition->hasOption($name)) {
-throw new InvalidArgumentException(sprintf('The "%s" option does not exist.', $name));
-}
-
-$this->options[$name] = $value;
-}
-
-
-
-
-public function hasOption($name)
-{
-return $this->definition->hasOption($name);
-}
-
-
-
-
-
-
-
-
-public function escapeToken($token)
-{
-return preg_match('{^[\w-]+$}', $token) ? $token : escapeshellarg($token);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Input;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\LogicException;
-
-
-
-
-
-
-class InputArgument
-{
-const REQUIRED = 1;
-const OPTIONAL = 2;
-const IS_ARRAY = 4;
-
-private $name;
-private $mode;
-private $default;
-private $description;
-
-
-
-
-
-
-
-
-
-public function __construct($name, $mode = null, $description = '', $default = null)
-{
-if (null === $mode) {
-$mode = self::OPTIONAL;
-} elseif (!\is_int($mode) || $mode > 7 || $mode < 1) {
-throw new InvalidArgumentException(sprintf('Argument mode "%s" is not valid.', $mode));
-}
-
-$this->name = $name;
-$this->mode = $mode;
-$this->description = $description;
-
-$this->setDefault($default);
-}
-
-
-
-
-
-
-public function getName()
-{
-return $this->name;
-}
-
-
-
-
-
-
-public function isRequired()
-{
-return self::REQUIRED === (self::REQUIRED & $this->mode);
-}
-
-
-
-
-
-
-public function isArray()
-{
-return self::IS_ARRAY === (self::IS_ARRAY & $this->mode);
-}
-
-
-
-
-
-
-
-
-public function setDefault($default = null)
-{
-if (self::REQUIRED === $this->mode && null !== $default) {
-throw new LogicException('Cannot set a default value except for InputArgument::OPTIONAL mode.');
-}
-
-if ($this->isArray()) {
-if (null === $default) {
-$default = array();
-} elseif (!\is_array($default)) {
-throw new LogicException('A default value for an array argument must be an array.');
-}
-}
-
-$this->default = $default;
-}
-
-
-
-
-
-
-public function getDefault()
-{
-return $this->default;
-}
-
-
-
-
-
-
-public function getDescription()
-{
-return $this->description;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Input;
-
-
-
-
-
-
-
-interface InputAwareInterface
-{
-
-
-
-public function setInput(InputInterface $input);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Input;
-
-use Symfony\Component\Console\Descriptor\TextDescriptor;
-use Symfony\Component\Console\Descriptor\XmlDescriptor;
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\LogicException;
-use Symfony\Component\Console\Output\BufferedOutput;
-
-
-
-
-
-
-
-
-
-
-
-
-
-class InputDefinition
-{
-private $arguments;
-private $requiredCount;
-private $hasAnArrayArgument = false;
-private $hasOptional;
-private $options;
-private $shortcuts;
-
-
-
-
-public function __construct(array $definition = array())
-{
-$this->setDefinition($definition);
-}
-
-
-
-
-public function setDefinition(array $definition)
-{
-$arguments = array();
-$options = array();
-foreach ($definition as $item) {
-if ($item instanceof InputOption) {
-$options[] = $item;
-} else {
-$arguments[] = $item;
-}
-}
-
-$this->setArguments($arguments);
-$this->setOptions($options);
-}
-
-
-
-
-
-
-public function setArguments($arguments = array())
-{
-$this->arguments = array();
-$this->requiredCount = 0;
-$this->hasOptional = false;
-$this->hasAnArrayArgument = false;
-$this->addArguments($arguments);
-}
-
-
-
-
-
-
-public function addArguments($arguments = array())
-{
-if (null !== $arguments) {
-foreach ($arguments as $argument) {
-$this->addArgument($argument);
-}
-}
-}
-
-
-
-
-public function addArgument(InputArgument $argument)
-{
-if (isset($this->arguments[$argument->getName()])) {
-throw new LogicException(sprintf('An argument with name "%s" already exists.', $argument->getName()));
-}
-
-if ($this->hasAnArrayArgument) {
-throw new LogicException('Cannot add an argument after an array argument.');
-}
-
-if ($argument->isRequired() && $this->hasOptional) {
-throw new LogicException('Cannot add a required argument after an optional one.');
-}
-
-if ($argument->isArray()) {
-$this->hasAnArrayArgument = true;
-}
-
-if ($argument->isRequired()) {
-++$this->requiredCount;
-} else {
-$this->hasOptional = true;
-}
-
-$this->arguments[$argument->getName()] = $argument;
-}
-
-
-
-
-
-
-
-
-
-
-public function getArgument($name)
-{
-if (!$this->hasArgument($name)) {
-throw new InvalidArgumentException(sprintf('The "%s" argument does not exist.', $name));
-}
-
-$arguments = \is_int($name) ? array_values($this->arguments) : $this->arguments;
-
-return $arguments[$name];
-}
-
-
-
-
-
-
-
-
-public function hasArgument($name)
-{
-$arguments = \is_int($name) ? array_values($this->arguments) : $this->arguments;
-
-return isset($arguments[$name]);
-}
-
-
-
-
-
-
-public function getArguments()
-{
-return $this->arguments;
-}
-
-
-
-
-
-
-public function getArgumentCount()
-{
-return $this->hasAnArrayArgument ? PHP_INT_MAX : \count($this->arguments);
-}
-
-
-
-
-
-
-public function getArgumentRequiredCount()
-{
-return $this->requiredCount;
-}
-
-
-
-
-
-
-public function getArgumentDefaults()
-{
-$values = array();
-foreach ($this->arguments as $argument) {
-$values[$argument->getName()] = $argument->getDefault();
-}
-
-return $values;
-}
-
-
-
-
-
-
-public function setOptions($options = array())
-{
-$this->options = array();
-$this->shortcuts = array();
-$this->addOptions($options);
-}
-
-
-
-
-
-
-public function addOptions($options = array())
-{
-foreach ($options as $option) {
-$this->addOption($option);
-}
-}
-
-
-
-
-public function addOption(InputOption $option)
-{
-if (isset($this->options[$option->getName()]) && !$option->equals($this->options[$option->getName()])) {
-throw new LogicException(sprintf('An option named "%s" already exists.', $option->getName()));
-}
-
-if ($option->getShortcut()) {
-foreach (explode('|', $option->getShortcut()) as $shortcut) {
-if (isset($this->shortcuts[$shortcut]) && !$option->equals($this->options[$this->shortcuts[$shortcut]])) {
-throw new LogicException(sprintf('An option with shortcut "%s" already exists.', $shortcut));
-}
-}
-}
-
-$this->options[$option->getName()] = $option;
-if ($option->getShortcut()) {
-foreach (explode('|', $option->getShortcut()) as $shortcut) {
-$this->shortcuts[$shortcut] = $option->getName();
-}
-}
-}
-
-
-
-
-
-
-
-
-
-
-public function getOption($name)
-{
-if (!$this->hasOption($name)) {
-throw new InvalidArgumentException(sprintf('The "--%s" option does not exist.', $name));
-}
-
-return $this->options[$name];
-}
-
-
-
-
-
-
-
-
-
-
-
-public function hasOption($name)
-{
-return isset($this->options[$name]);
-}
-
-
-
-
-
-
-public function getOptions()
-{
-return $this->options;
-}
-
-
-
-
-
-
-
-
-public function hasShortcut($name)
-{
-return isset($this->shortcuts[$name]);
-}
-
-
-
-
-
-
-
-
-public function getOptionForShortcut($shortcut)
-{
-return $this->getOption($this->shortcutToName($shortcut));
-}
-
-
-
-
-
-
-public function getOptionDefaults()
-{
-$values = array();
-foreach ($this->options as $option) {
-$values[$option->getName()] = $option->getDefault();
-}
-
-return $values;
-}
-
-
-
-
-
-
-
-
-
-
-private function shortcutToName($shortcut)
-{
-if (!isset($this->shortcuts[$shortcut])) {
-throw new InvalidArgumentException(sprintf('The "-%s" option does not exist.', $shortcut));
-}
-
-return $this->shortcuts[$shortcut];
-}
-
-
-
-
-
-
-
-
-public function getSynopsis($short = false)
-{
-$elements = array();
-
-if ($short && $this->getOptions()) {
-$elements[] = '[options]';
-} elseif (!$short) {
-foreach ($this->getOptions() as $option) {
-$value = '';
-if ($option->acceptValue()) {
-$value = sprintf(
-' %s%s%s',
-$option->isValueOptional() ? '[' : '',
-strtoupper($option->getName()),
-$option->isValueOptional() ? ']' : ''
-);
-}
-
-$shortcut = $option->getShortcut() ? sprintf('-%s|', $option->getShortcut()) : '';
-$elements[] = sprintf('[%s--%s%s]', $shortcut, $option->getName(), $value);
-}
-}
-
-if (\count($elements) && $this->getArguments()) {
-$elements[] = '[--]';
-}
-
-foreach ($this->getArguments() as $argument) {
-$element = '<'.$argument->getName().'>';
-if (!$argument->isRequired()) {
-$element = '['.$element.']';
-} elseif ($argument->isArray()) {
-$element .= ' ('.$element.')';
-}
-
-if ($argument->isArray()) {
-$element .= '...';
-}
-
-$elements[] = $element;
-}
-
-return implode(' ', $elements);
-}
-
-
-
-
-
-
-
-
-public function asText()
-{
-@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-$descriptor = new TextDescriptor();
-$output = new BufferedOutput(BufferedOutput::VERBOSITY_NORMAL, true);
-$descriptor->describe($output, $this, array('raw_output' => true));
-
-return $output->fetch();
-}
-
-
-
-
-
-
-
-
-
-
-public function asXml($asDom = false)
-{
-@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-$descriptor = new XmlDescriptor();
-
-if ($asDom) {
-return $descriptor->getInputDefinitionDocument($this);
-}
-
-$output = new BufferedOutput();
-$descriptor->describe($output, $this);
-
-return $output->fetch();
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Input;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\RuntimeException;
-
-
-
-
-
-
-interface InputInterface
-{
-
-
-
-
-
-public function getFirstArgument();
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function hasParameterOption($values);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function getParameterOption($values, $default = false);
-
-
-
-
-
-
-public function bind(InputDefinition $definition);
-
-
-
-
-
-
-public function validate();
-
-
-
-
-
-
-public function getArguments();
-
-
-
-
-
-
-
-
-
-
-public function getArgument($name);
-
-
-
-
-
-
-
-
-
-public function setArgument($name, $value);
-
-
-
-
-
-
-
-
-public function hasArgument($name);
-
-
-
-
-
-
-public function getOptions();
-
-
-
-
-
-
-
-
-
-
-public function getOption($name);
-
-
-
-
-
-
-
-
-
-public function setOption($name, $value);
-
-
-
-
-
-
-
-
-public function hasOption($name);
-
-
-
-
-
-
-public function isInteractive();
-
-
-
-
-
-
-public function setInteractive($interactive);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Input;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\LogicException;
-
-
-
-
-
-
-class InputOption
-{
-const VALUE_NONE = 1;
-const VALUE_REQUIRED = 2;
-const VALUE_OPTIONAL = 4;
-const VALUE_IS_ARRAY = 8;
-
-private $name;
-private $shortcut;
-private $mode;
-private $default;
-private $description;
-
-
-
-
-
-
-
-
-
-
-public function __construct($name, $shortcut = null, $mode = null, $description = '', $default = null)
-{
-if (0 === strpos($name, '--')) {
-$name = substr($name, 2);
-}
-
-if (empty($name)) {
-throw new InvalidArgumentException('An option name cannot be empty.');
-}
-
-if (empty($shortcut)) {
-$shortcut = null;
-}
-
-if (null !== $shortcut) {
-if (\is_array($shortcut)) {
-$shortcut = implode('|', $shortcut);
-}
-$shortcuts = preg_split('{(\|)-?}', ltrim($shortcut, '-'));
-$shortcuts = array_filter($shortcuts);
-$shortcut = implode('|', $shortcuts);
-
-if (empty($shortcut)) {
-throw new InvalidArgumentException('An option shortcut cannot be empty.');
-}
-}
-
-if (null === $mode) {
-$mode = self::VALUE_NONE;
-} elseif (!\is_int($mode) || $mode > 15 || $mode < 1) {
-throw new InvalidArgumentException(sprintf('Option mode "%s" is not valid.', $mode));
-}
-
-$this->name = $name;
-$this->shortcut = $shortcut;
-$this->mode = $mode;
-$this->description = $description;
-
-if ($this->isArray() && !$this->acceptValue()) {
-throw new InvalidArgumentException('Impossible to have an option mode VALUE_IS_ARRAY if the option does not accept a value.');
-}
-
-$this->setDefault($default);
-}
-
-
-
-
-
-
-public function getShortcut()
-{
-return $this->shortcut;
-}
-
-
-
-
-
-
-public function getName()
-{
-return $this->name;
-}
-
-
-
-
-
-
-public function acceptValue()
-{
-return $this->isValueRequired() || $this->isValueOptional();
-}
-
-
-
-
-
-
-public function isValueRequired()
-{
-return self::VALUE_REQUIRED === (self::VALUE_REQUIRED & $this->mode);
-}
-
-
-
-
-
-
-public function isValueOptional()
-{
-return self::VALUE_OPTIONAL === (self::VALUE_OPTIONAL & $this->mode);
-}
-
-
-
-
-
-
-public function isArray()
-{
-return self::VALUE_IS_ARRAY === (self::VALUE_IS_ARRAY & $this->mode);
-}
-
-
-
-
-
-
-
-
-public function setDefault($default = null)
-{
-if (self::VALUE_NONE === (self::VALUE_NONE & $this->mode) && null !== $default) {
-throw new LogicException('Cannot set a default value when using InputOption::VALUE_NONE mode.');
-}
-
-if ($this->isArray()) {
-if (null === $default) {
-$default = array();
-} elseif (!\is_array($default)) {
-throw new LogicException('A default value for an array option must be an array.');
-}
-}
-
-$this->default = $this->acceptValue() ? $default : false;
-}
-
-
-
-
-
-
-public function getDefault()
-{
-return $this->default;
-}
-
-
-
-
-
-
-public function getDescription()
-{
-return $this->description;
-}
-
-
-
-
-
-
-public function equals(self $option)
-{
-return $option->getName() === $this->getName()
-&& $option->getShortcut() === $this->getShortcut()
-&& $option->getDefault() === $this->getDefault()
-&& $option->isArray() === $this->isArray()
-&& $option->isValueRequired() === $this->isValueRequired()
-&& $option->isValueOptional() === $this->isValueOptional()
-;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Input;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-
-
-
-
-
-
-
-
-
-
-class StringInput extends ArgvInput
-{
-const REGEX_STRING = '([^\s]+?)(?:\s|(?<!\\\\)"|(?<!\\\\)\'|$)';
-const REGEX_QUOTED_STRING = '(?:"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"|\'([^\'\\\\]*(?:\\\\.[^\'\\\\]*)*)\')';
-
-
-
-
-
-
-
-public function __construct($input, InputDefinition $definition = null)
-{
-if ($definition) {
-@trigger_error('The $definition argument of the '.__METHOD__.' method is deprecated and will be removed in 3.0. Set this parameter with the bind() method instead.', E_USER_DEPRECATED);
-}
-
-parent::__construct(array(), null);
-
-$this->setTokens($this->tokenize($input));
-
-if (null !== $definition) {
-$this->bind($definition);
-}
-}
-
-
-
-
-
-
-
-
-
-
-private function tokenize($input)
-{
-$tokens = array();
-$length = \strlen($input);
-$cursor = 0;
-while ($cursor < $length) {
-if (preg_match('/\s+/A', $input, $match, null, $cursor)) {
-} elseif (preg_match('/([^="\'\s]+?)(=?)('.self::REGEX_QUOTED_STRING.'+)/A', $input, $match, null, $cursor)) {
-$tokens[] = $match[1].$match[2].stripcslashes(str_replace(array('"\'', '\'"', '\'\'', '""'), '', substr($match[3], 1, \strlen($match[3]) - 2)));
-} elseif (preg_match('/'.self::REGEX_QUOTED_STRING.'/A', $input, $match, null, $cursor)) {
-$tokens[] = stripcslashes(substr($match[0], 1, \strlen($match[0]) - 2));
-} elseif (preg_match('/'.self::REGEX_STRING.'/A', $input, $match, null, $cursor)) {
-$tokens[] = stripcslashes($match[1]);
-} else {
-
- throw new InvalidArgumentException(sprintf('Unable to parse input near "... %s ..."', substr($input, $cursor, 10)));
-}
-
-$cursor += \strlen($match[0]);
-}
-
-return $tokens;
-}
-}
-Copyright (c) 2004-2018 Fabien Potencier
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Logger;
-
-use Psr\Log\AbstractLogger;
-use Psr\Log\InvalidArgumentException;
-use Psr\Log\LogLevel;
-use Symfony\Component\Console\Output\ConsoleOutputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-
-
-
-
-class ConsoleLogger extends AbstractLogger
-{
-const INFO = 'info';
-const ERROR = 'error';
-
-private $output;
-private $verbosityLevelMap = array(
-LogLevel::EMERGENCY => OutputInterface::VERBOSITY_NORMAL,
-LogLevel::ALERT => OutputInterface::VERBOSITY_NORMAL,
-LogLevel::CRITICAL => OutputInterface::VERBOSITY_NORMAL,
-LogLevel::ERROR => OutputInterface::VERBOSITY_NORMAL,
-LogLevel::WARNING => OutputInterface::VERBOSITY_NORMAL,
-LogLevel::NOTICE => OutputInterface::VERBOSITY_VERBOSE,
-LogLevel::INFO => OutputInterface::VERBOSITY_VERY_VERBOSE,
-LogLevel::DEBUG => OutputInterface::VERBOSITY_DEBUG,
-);
-private $formatLevelMap = array(
-LogLevel::EMERGENCY => self::ERROR,
-LogLevel::ALERT => self::ERROR,
-LogLevel::CRITICAL => self::ERROR,
-LogLevel::ERROR => self::ERROR,
-LogLevel::WARNING => self::INFO,
-LogLevel::NOTICE => self::INFO,
-LogLevel::INFO => self::INFO,
-LogLevel::DEBUG => self::INFO,
-);
-
-public function __construct(OutputInterface $output, array $verbosityLevelMap = array(), array $formatLevelMap = array())
-{
-$this->output = $output;
-$this->verbosityLevelMap = $verbosityLevelMap + $this->verbosityLevelMap;
-$this->formatLevelMap = $formatLevelMap + $this->formatLevelMap;
-}
-
-
-
-
-public function log($level, $message, array $context = array())
-{
-if (!isset($this->verbosityLevelMap[$level])) {
-throw new InvalidArgumentException(sprintf('The log level "%s" does not exist.', $level));
-}
-
-
- if (self::ERROR === $this->formatLevelMap[$level] && $this->output instanceof ConsoleOutputInterface) {
-$output = $this->output->getErrorOutput();
-} else {
-$output = $this->output;
-}
-
-if ($output->getVerbosity() >= $this->verbosityLevelMap[$level]) {
-$output->writeln(sprintf('<%1$s>[%2$s] %3$s</%1$s>', $this->formatLevelMap[$level], $level, $this->interpolate($message, $context)));
-}
-}
-
-
-
-
-
-
-
-
-
-
-
-private function interpolate($message, array $context)
-{
-
- $replace = array();
-foreach ($context as $key => $val) {
-if (!\is_array($val) && (!\is_object($val) || method_exists($val, '__toString'))) {
-$replace[sprintf('{%s}', $key)] = $val;
-}
-}
-
-
- return strtr($message, $replace);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Output;
-
-
-
-
-class BufferedOutput extends Output
-{
-private $buffer = '';
-
-
-
-
-
-
-public function fetch()
-{
-$content = $this->buffer;
-$this->buffer = '';
-
-return $content;
-}
-
-
-
-
-protected function doWrite($message, $newline)
-{
-$this->buffer .= $message;
-
-if ($newline) {
-$this->buffer .= PHP_EOL;
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Output;
-
-use Symfony\Component\Console\Formatter\OutputFormatterInterface;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-class ConsoleOutput extends StreamOutput implements ConsoleOutputInterface
-{
-private $stderr;
-
-
-
-
-
-
-public function __construct($verbosity = self::VERBOSITY_NORMAL, $decorated = null, OutputFormatterInterface $formatter = null)
-{
-parent::__construct($this->openOutputStream(), $verbosity, $decorated, $formatter);
-
-$actualDecorated = $this->isDecorated();
-$this->stderr = new StreamOutput($this->openErrorStream(), $verbosity, $decorated, $this->getFormatter());
-
-if (null === $decorated) {
-$this->setDecorated($actualDecorated && $this->stderr->isDecorated());
-}
-}
-
-
-
-
-public function setDecorated($decorated)
-{
-parent::setDecorated($decorated);
-$this->stderr->setDecorated($decorated);
-}
-
-
-
-
-public function setFormatter(OutputFormatterInterface $formatter)
-{
-parent::setFormatter($formatter);
-$this->stderr->setFormatter($formatter);
-}
-
-
-
-
-public function setVerbosity($level)
-{
-parent::setVerbosity($level);
-$this->stderr->setVerbosity($level);
-}
-
-
-
-
-public function getErrorOutput()
-{
-return $this->stderr;
-}
-
-
-
-
-public function setErrorOutput(OutputInterface $error)
-{
-$this->stderr = $error;
-}
-
-
-
-
-
-
-
-protected function hasStdoutSupport()
-{
-return false === $this->isRunningOS400();
-}
-
-
-
-
-
-
-
-protected function hasStderrSupport()
-{
-return false === $this->isRunningOS400();
-}
-
-
-
-
-
-
-
-private function isRunningOS400()
-{
-$checks = array(
-\function_exists('php_uname') ? php_uname('s') : '',
-getenv('OSTYPE'),
-PHP_OS,
-);
-
-return false !== stripos(implode(';', $checks), 'OS400');
-}
-
-
-
-
-private function openOutputStream()
-{
-$outputStream = $this->hasStdoutSupport() ? 'php://stdout' : 'php://output';
-
-return @fopen($outputStream, 'w') ?: fopen('php://output', 'w');
-}
-
-
-
-
-private function openErrorStream()
-{
-$errorStream = $this->hasStderrSupport() ? 'php://stderr' : 'php://output';
-
-return fopen($errorStream, 'w');
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Output;
-
-
-
-
-
-
-
-interface ConsoleOutputInterface extends OutputInterface
-{
-
-
-
-
-
-public function getErrorOutput();
-
-public function setErrorOutput(OutputInterface $error);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Output;
-
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Formatter\OutputFormatterInterface;
-
-
-
-
-
-
-
-
-
-class NullOutput implements OutputInterface
-{
-
-
-
-public function setFormatter(OutputFormatterInterface $formatter)
-{
-
- }
-
-
-
-
-public function getFormatter()
-{
-
- return new OutputFormatter();
-}
-
-
-
-
-public function setDecorated($decorated)
-{
-
- }
-
-
-
-
-public function isDecorated()
-{
-return false;
-}
-
-
-
-
-public function setVerbosity($level)
-{
-
- }
-
-
-
-
-public function getVerbosity()
-{
-return self::VERBOSITY_QUIET;
-}
-
-
-
-
-public function isQuiet()
-{
-return true;
-}
-
-
-
-
-public function isVerbose()
-{
-return false;
-}
-
-
-
-
-public function isVeryVerbose()
-{
-return false;
-}
-
-
-
-
-public function isDebug()
-{
-return false;
-}
-
-
-
-
-public function writeln($messages, $options = self::OUTPUT_NORMAL)
-{
-
- }
-
-
-
-
-public function write($messages, $newline = false, $options = self::OUTPUT_NORMAL)
-{
-
- }
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Output;
-
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Formatter\OutputFormatterInterface;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-abstract class Output implements OutputInterface
-{
-private $verbosity;
-private $formatter;
-
-
-
-
-
-
-public function __construct($verbosity = self::VERBOSITY_NORMAL, $decorated = false, OutputFormatterInterface $formatter = null)
-{
-$this->verbosity = null === $verbosity ? self::VERBOSITY_NORMAL : $verbosity;
-$this->formatter = $formatter ?: new OutputFormatter();
-$this->formatter->setDecorated($decorated);
-}
-
-
-
-
-public function setFormatter(OutputFormatterInterface $formatter)
-{
-$this->formatter = $formatter;
-}
-
-
-
-
-public function getFormatter()
-{
-return $this->formatter;
-}
-
-
-
-
-public function setDecorated($decorated)
-{
-$this->formatter->setDecorated($decorated);
-}
-
-
-
-
-public function isDecorated()
-{
-return $this->formatter->isDecorated();
-}
-
-
-
-
-public function setVerbosity($level)
-{
-$this->verbosity = (int) $level;
-}
-
-
-
-
-public function getVerbosity()
-{
-return $this->verbosity;
-}
-
-
-
-
-public function isQuiet()
-{
-return self::VERBOSITY_QUIET === $this->verbosity;
-}
-
-
-
-
-public function isVerbose()
-{
-return self::VERBOSITY_VERBOSE <= $this->verbosity;
-}
-
-
-
-
-public function isVeryVerbose()
-{
-return self::VERBOSITY_VERY_VERBOSE <= $this->verbosity;
-}
-
-
-
-
-public function isDebug()
-{
-return self::VERBOSITY_DEBUG <= $this->verbosity;
-}
-
-
-
-
-public function writeln($messages, $options = self::OUTPUT_NORMAL)
-{
-$this->write($messages, true, $options);
-}
-
-
-
-
-public function write($messages, $newline = false, $options = self::OUTPUT_NORMAL)
-{
-$messages = (array) $messages;
-
-$types = self::OUTPUT_NORMAL | self::OUTPUT_RAW | self::OUTPUT_PLAIN;
-$type = $types & $options ?: self::OUTPUT_NORMAL;
-
-$verbosities = self::VERBOSITY_QUIET | self::VERBOSITY_NORMAL | self::VERBOSITY_VERBOSE | self::VERBOSITY_VERY_VERBOSE | self::VERBOSITY_DEBUG;
-$verbosity = $verbosities & $options ?: self::VERBOSITY_NORMAL;
-
-if ($verbosity > $this->getVerbosity()) {
-return;
-}
-
-foreach ($messages as $message) {
-switch ($type) {
-case OutputInterface::OUTPUT_NORMAL:
-$message = $this->formatter->format($message);
-break;
-case OutputInterface::OUTPUT_RAW:
-break;
-case OutputInterface::OUTPUT_PLAIN:
-$message = strip_tags($this->formatter->format($message));
-break;
-}
-
-$this->doWrite($message, $newline);
-}
-}
-
-
-
-
-
-
-
-abstract protected function doWrite($message, $newline);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Output;
-
-use Symfony\Component\Console\Formatter\OutputFormatterInterface;
-
-
-
-
-
-
-interface OutputInterface
-{
-const VERBOSITY_QUIET = 16;
-const VERBOSITY_NORMAL = 32;
-const VERBOSITY_VERBOSE = 64;
-const VERBOSITY_VERY_VERBOSE = 128;
-const VERBOSITY_DEBUG = 256;
-
-const OUTPUT_NORMAL = 1;
-const OUTPUT_RAW = 2;
-const OUTPUT_PLAIN = 4;
-
-
-
-
-
-
-
-
-public function write($messages, $newline = false, $options = 0);
-
-
-
-
-
-
-
-public function writeln($messages, $options = 0);
-
-
-
-
-
-
-public function setVerbosity($level);
-
-
-
-
-
-
-public function getVerbosity();
-
-
-
-
-
-
-public function setDecorated($decorated);
-
-
-
-
-
-
-public function isDecorated();
-
-public function setFormatter(OutputFormatterInterface $formatter);
-
-
-
-
-
-
-public function getFormatter();
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Output;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\RuntimeException;
-use Symfony\Component\Console\Formatter\OutputFormatterInterface;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-class StreamOutput extends Output
-{
-private $stream;
-
-
-
-
-
-
-
-
-
-public function __construct($stream, $verbosity = self::VERBOSITY_NORMAL, $decorated = null, OutputFormatterInterface $formatter = null)
-{
-if (!\is_resource($stream) || 'stream' !== get_resource_type($stream)) {
-throw new InvalidArgumentException('The StreamOutput class needs a stream as its first argument.');
-}
-
-$this->stream = $stream;
-
-if (null === $decorated) {
-$decorated = $this->hasColorSupport();
-}
-
-parent::__construct($verbosity, $decorated, $formatter);
-}
-
-
-
-
-
-
-public function getStream()
-{
-return $this->stream;
-}
-
-
-
-
-protected function doWrite($message, $newline)
-{
-if ($newline) {
-$message .= PHP_EOL;
-}
-
-if (false === @fwrite($this->stream, $message)) {
-
- throw new RuntimeException('Unable to write output.');
-}
-
-fflush($this->stream);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-protected function hasColorSupport()
-{
-if ('Hyper' === getenv('TERM_PROGRAM')) {
-return true;
-}
-
-if (\DIRECTORY_SEPARATOR === '\\') {
-return (\function_exists('sapi_windows_vt100_support')
-&& @sapi_windows_vt100_support($this->stream))
-|| false !== getenv('ANSICON')
-|| 'ON' === getenv('ConEmuANSI')
-|| 'xterm' === getenv('TERM');
-}
-
-if (\function_exists('stream_isatty')) {
-return @stream_isatty($this->stream);
-}
-
-if (\function_exists('posix_isatty')) {
-return @posix_isatty($this->stream);
-}
-
-$stat = @fstat($this->stream);
-
- return $stat ? 0020000 === ($stat['mode'] & 0170000) : false;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Question;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-
-
-
-
-
-
-class ChoiceQuestion extends Question
-{
-private $choices;
-private $multiselect = false;
-private $prompt = ' > ';
-private $errorMessage = 'Value "%s" is invalid';
-
-
-
-
-
-
-public function __construct($question, array $choices, $default = null)
-{
-if (!$choices) {
-throw new \LogicException('Choice question must have at least 1 choice available.');
-}
-
-parent::__construct($question, $default);
-
-$this->choices = $choices;
-$this->setValidator($this->getDefaultValidator());
-$this->setAutocompleterValues($choices);
-}
-
-
-
-
-
-
-public function getChoices()
-{
-return $this->choices;
-}
-
-
-
-
-
-
-
-
-
-
-public function setMultiselect($multiselect)
-{
-$this->multiselect = $multiselect;
-$this->setValidator($this->getDefaultValidator());
-
-return $this;
-}
-
-
-
-
-
-
-public function isMultiselect()
-{
-return $this->multiselect;
-}
-
-
-
-
-
-
-public function getPrompt()
-{
-return $this->prompt;
-}
-
-
-
-
-
-
-
-
-public function setPrompt($prompt)
-{
-$this->prompt = $prompt;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-public function setErrorMessage($errorMessage)
-{
-$this->errorMessage = $errorMessage;
-$this->setValidator($this->getDefaultValidator());
-
-return $this;
-}
-
-
-
-
-
-
-private function getDefaultValidator()
-{
-$choices = $this->choices;
-$errorMessage = $this->errorMessage;
-$multiselect = $this->multiselect;
-$isAssoc = $this->isAssoc($choices);
-
-return function ($selected) use ($choices, $errorMessage, $multiselect, $isAssoc) {
-
- $selectedChoices = str_replace(' ', '', $selected);
-
-if ($multiselect) {
-
- if (!preg_match('/^[^,]+(?:,[^,]+)*$/', $selectedChoices, $matches)) {
-throw new InvalidArgumentException(sprintf($errorMessage, $selected));
-}
-$selectedChoices = explode(',', $selectedChoices);
-} else {
-$selectedChoices = array($selected);
-}
-
-$multiselectChoices = array();
-foreach ($selectedChoices as $value) {
-$results = array();
-foreach ($choices as $key => $choice) {
-if ($choice === $value) {
-$results[] = $key;
-}
-}
-
-if (\count($results) > 1) {
-throw new InvalidArgumentException(sprintf('The provided answer is ambiguous. Value should be one of %s.', implode(' or ', $results)));
-}
-
-$result = array_search($value, $choices);
-
-if (!$isAssoc) {
-if (false !== $result) {
-$result = $choices[$result];
-} elseif (isset($choices[$value])) {
-$result = $choices[$value];
-}
-} elseif (false === $result && isset($choices[$value])) {
-$result = $value;
-}
-
-if (false === $result) {
-throw new InvalidArgumentException(sprintf($errorMessage, $value));
-}
-
-$multiselectChoices[] = (string) $result;
-}
-
-if ($multiselect) {
-return $multiselectChoices;
-}
-
-return current($multiselectChoices);
-};
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Question;
-
-
-
-
-
-
-class ConfirmationQuestion extends Question
-{
-private $trueAnswerRegex;
-
-
-
-
-
-
-public function __construct($question, $default = true, $trueAnswerRegex = '/^y/i')
-{
-parent::__construct($question, (bool) $default);
-
-$this->trueAnswerRegex = $trueAnswerRegex;
-$this->setNormalizer($this->getDefaultNormalizer());
-}
-
-
-
-
-
-
-private function getDefaultNormalizer()
-{
-$default = $this->getDefault();
-$regex = $this->trueAnswerRegex;
-
-return function ($answer) use ($default, $regex) {
-if (\is_bool($answer)) {
-return $answer;
-}
-
-$answerIsTrue = (bool) preg_match($regex, $answer);
-if (false === $default) {
-return $answer && $answerIsTrue;
-}
-
-return !$answer || $answerIsTrue;
-};
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Question;
-
-use Symfony\Component\Console\Exception\InvalidArgumentException;
-use Symfony\Component\Console\Exception\LogicException;
-
-
-
-
-
-
-class Question
-{
-private $question;
-private $attempts;
-private $hidden = false;
-private $hiddenFallback = true;
-private $autocompleterValues;
-private $validator;
-private $default;
-private $normalizer;
-
-
-
-
-
-public function __construct($question, $default = null)
-{
-$this->question = $question;
-$this->default = $default;
-}
-
-
-
-
-
-
-public function getQuestion()
-{
-return $this->question;
-}
-
-
-
-
-
-
-public function getDefault()
-{
-return $this->default;
-}
-
-
-
-
-
-
-public function isHidden()
-{
-return $this->hidden;
-}
-
-
-
-
-
-
-
-
-
-
-public function setHidden($hidden)
-{
-if ($this->autocompleterValues) {
-throw new LogicException('A hidden question cannot use the autocompleter.');
-}
-
-$this->hidden = (bool) $hidden;
-
-return $this;
-}
-
-
-
-
-
-
-public function isHiddenFallback()
-{
-return $this->hiddenFallback;
-}
-
-
-
-
-
-
-
-
-public function setHiddenFallback($fallback)
-{
-$this->hiddenFallback = (bool) $fallback;
-
-return $this;
-}
-
-
-
-
-
-
-public function getAutocompleterValues()
-{
-return $this->autocompleterValues;
-}
-
-
-
-
-
-
-
-
-
-
-
-public function setAutocompleterValues($values)
-{
-if (\is_array($values)) {
-$values = $this->isAssoc($values) ? array_merge(array_keys($values), array_values($values)) : array_values($values);
-}
-
-if (null !== $values && !\is_array($values) && !$values instanceof \Traversable) {
-throw new InvalidArgumentException('Autocompleter values can be either an array, `null` or a `Traversable` object.');
-}
-
-if ($this->hidden) {
-throw new LogicException('A hidden question cannot use the autocompleter.');
-}
-
-$this->autocompleterValues = $values;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function setValidator($validator)
-{
-$this->validator = $validator;
-
-return $this;
-}
-
-
-
-
-
-
-public function getValidator()
-{
-return $this->validator;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function setMaxAttempts($attempts)
-{
-if (null !== $attempts && $attempts < 1) {
-throw new InvalidArgumentException('Maximum number of attempts must be a positive value.');
-}
-
-$this->attempts = $attempts;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function getMaxAttempts()
-{
-return $this->attempts;
-}
-
-
-
-
-
-
-
-
-
-
-public function setNormalizer($normalizer)
-{
-$this->normalizer = $normalizer;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function getNormalizer()
-{
-return $this->normalizer;
-}
-
-protected function isAssoc($array)
-{
-return (bool) \count(array_filter(array_keys($array), 'is_string'));
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console;
-
-use Symfony\Component\Console\Exception\RuntimeException;
-use Symfony\Component\Console\Input\StringInput;
-use Symfony\Component\Console\Output\ConsoleOutput;
-use Symfony\Component\Process\PhpExecutableFinder;
-use Symfony\Component\Process\ProcessBuilder;
-
-
-
-
-
-
-
-
-
-
-
-
-class Shell
-{
-private $application;
-private $history;
-private $output;
-private $hasReadline;
-private $processIsolation = false;
-
-
-
-
-
-public function __construct(Application $application)
-{
-@trigger_error('The '.__CLASS__.' class is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-$this->hasReadline = \function_exists('readline');
-$this->application = $application;
-$this->history = getenv('HOME').'/.history_'.$application->getName();
-$this->output = new ConsoleOutput();
-}
-
-
-
-
-public function run()
-{
-$this->application->setAutoExit(false);
-$this->application->setCatchExceptions(true);
-
-if ($this->hasReadline) {
-readline_read_history($this->history);
-readline_completion_function(array($this, 'autocompleter'));
-}
-
-$this->output->writeln($this->getHeader());
-$php = null;
-if ($this->processIsolation) {
-$finder = new PhpExecutableFinder();
-$php = $finder->find();
-$this->output->writeln(<<<'EOF'
-<info>Running with process isolation, you should consider this:</info>
-  * each command is executed as separate process,
-  * commands don't support interactivity, all params must be passed explicitly,
-  * commands output is not colorized.
-
-EOF
-);
-}
-
-while (true) {
-$command = $this->readline();
-
-if (false === $command) {
-$this->output->writeln("\n");
-
-break;
-}
-
-if ($this->hasReadline) {
-readline_add_history($command);
-readline_write_history($this->history);
-}
-
-if ($this->processIsolation) {
-$pb = new ProcessBuilder();
-
-$process = $pb
-->add($php)
-->add($_SERVER['argv'][0])
-->add($command)
-->inheritEnvironmentVariables(true)
-->getProcess()
-;
-
-$output = $this->output;
-$process->run(function ($type, $data) use ($output) {
-$output->writeln($data);
-});
-
-$ret = $process->getExitCode();
-} else {
-$ret = $this->application->run(new StringInput($command), $this->output);
-}
-
-if (0 !== $ret) {
-$this->output->writeln(sprintf('<error>The command terminated with an error status (%s)</error>', $ret));
-}
-}
-}
-
-
-
-
-
-
-protected function getHeader()
-{
-return <<<EOF
-
-Welcome to the <info>{$this->application->getName()}</info> shell (<comment>{$this->application->getVersion()}</comment>).
-
-At the prompt, type <comment>help</comment> for some help,
-or <comment>list</comment> to get a list of available commands.
-
-To exit the shell, type <comment>^D</comment>.
-
-EOF;
-}
-
-
-
-
-
-
-protected function getPrompt()
-{
-
- return $this->output->getFormatter()->format($this->application->getName().' > ');
-}
-
-protected function getOutput()
-{
-return $this->output;
-}
-
-protected function getApplication()
-{
-return $this->application;
-}
-
-
-
-
-
-
-
-
-private function autocompleter($text)
-{
-$info = readline_info();
-$text = substr($info['line_buffer'], 0, $info['end']);
-
-if ($info['point'] !== $info['end']) {
-return true;
-}
-
-
- if (false === strpos($text, ' ') || !$text) {
-return array_keys($this->application->all());
-}
-
-
- try {
-$command = $this->application->find(substr($text, 0, strpos($text, ' ')));
-} catch (\Exception $e) {
-return true;
-}
-
-$list = array('--help');
-foreach ($command->getDefinition()->getOptions() as $option) {
-$list[] = '--'.$option->getName();
-}
-
-return $list;
-}
-
-
-
-
-
-
-private function readline()
-{
-if ($this->hasReadline) {
-$line = readline($this->getPrompt());
-} else {
-$this->output->write($this->getPrompt());
-$line = fgets(STDIN, 1024);
-$line = (false === $line || '' === $line) ? false : rtrim($line);
-}
-
-return $line;
-}
-
-public function getProcessIsolation()
-{
-return $this->processIsolation;
-}
-
-public function setProcessIsolation($processIsolation)
-{
-$this->processIsolation = (bool) $processIsolation;
-
-if ($this->processIsolation && !class_exists('Symfony\\Component\\Process\\Process')) {
-throw new RuntimeException('Unable to isolate processes as the Symfony Process Component is not installed.');
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Style;
-
-use Symfony\Component\Console\Formatter\OutputFormatterInterface;
-use Symfony\Component\Console\Helper\ProgressBar;
-use Symfony\Component\Console\Output\OutputInterface;
-
-
-
-
-
-
-abstract class OutputStyle implements OutputInterface, StyleInterface
-{
-private $output;
-
-public function __construct(OutputInterface $output)
-{
-$this->output = $output;
-}
-
-
-
-
-public function newLine($count = 1)
-{
-$this->output->write(str_repeat(PHP_EOL, $count));
-}
-
-
-
-
-
-
-public function createProgressBar($max = 0)
-{
-return new ProgressBar($this->output, $max);
-}
-
-
-
-
-public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL)
-{
-$this->output->write($messages, $newline, $type);
-}
-
-
-
-
-public function writeln($messages, $type = self::OUTPUT_NORMAL)
-{
-$this->output->writeln($messages, $type);
-}
-
-
-
-
-public function setVerbosity($level)
-{
-$this->output->setVerbosity($level);
-}
-
-
-
-
-public function getVerbosity()
-{
-return $this->output->getVerbosity();
-}
-
-
-
-
-public function setDecorated($decorated)
-{
-$this->output->setDecorated($decorated);
-}
-
-
-
-
-public function isDecorated()
-{
-return $this->output->isDecorated();
-}
-
-
-
-
-public function setFormatter(OutputFormatterInterface $formatter)
-{
-$this->output->setFormatter($formatter);
-}
-
-
-
-
-public function getFormatter()
-{
-return $this->output->getFormatter();
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Style;
-
-
-
-
-
-
-interface StyleInterface
-{
-
-
-
-
-
-public function title($message);
-
-
-
-
-
-
-public function section($message);
-
-
-
-
-public function listing(array $elements);
-
-
-
-
-
-
-public function text($message);
-
-
-
-
-
-
-public function success($message);
-
-
-
-
-
-
-public function error($message);
-
-
-
-
-
-
-public function warning($message);
-
-
-
-
-
-
-public function note($message);
-
-
-
-
-
-
-public function caution($message);
-
-
-
-
-public function table(array $headers, array $rows);
-
-
-
-
-
-
-
-
-
-
-public function ask($question, $default = null, $validator = null);
-
-
-
-
-
-
-
-
-
-public function askHidden($question, $validator = null);
-
-
-
-
-
-
-
-
-
-public function confirm($question, $default = true);
-
-
-
-
-
-
-
-
-
-
-public function choice($question, array $choices, $default = null);
-
-
-
-
-
-
-public function newLine($count = 1);
-
-
-
-
-
-
-public function progressStart($max = 0);
-
-
-
-
-
-
-public function progressAdvance($step = 1);
-
-
-
-
-public function progressFinish();
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Style;
-
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Exception\RuntimeException;
-use Symfony\Component\Console\Formatter\OutputFormatter;
-use Symfony\Component\Console\Helper\Helper;
-use Symfony\Component\Console\Helper\ProgressBar;
-use Symfony\Component\Console\Helper\SymfonyQuestionHelper;
-use Symfony\Component\Console\Helper\Table;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\BufferedOutput;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Question\ChoiceQuestion;
-use Symfony\Component\Console\Question\ConfirmationQuestion;
-use Symfony\Component\Console\Question\Question;
-
-
-
-
-
-
-class SymfonyStyle extends OutputStyle
-{
-const MAX_LINE_LENGTH = 120;
-
-private $input;
-private $questionHelper;
-private $progressBar;
-private $lineLength;
-private $bufferedOutput;
-
-public function __construct(InputInterface $input, OutputInterface $output)
-{
-$this->input = $input;
-$this->bufferedOutput = new BufferedOutput($output->getVerbosity(), false, clone $output->getFormatter());
-
- $this->lineLength = min($this->getTerminalWidth() - (int) (\DIRECTORY_SEPARATOR === '\\'), self::MAX_LINE_LENGTH);
-
-parent::__construct($output);
-}
-
-
-
-
-
-
-
-
-
-
-public function block($messages, $type = null, $style = null, $prefix = ' ', $padding = false)
-{
-$messages = \is_array($messages) ? array_values($messages) : array($messages);
-
-$this->autoPrependBlock();
-$this->writeln($this->createBlock($messages, $type, $style, $prefix, $padding, true));
-$this->newLine();
-}
-
-
-
-
-public function title($message)
-{
-$this->autoPrependBlock();
-$this->writeln(array(
-sprintf('<comment>%s</>', OutputFormatter::escapeTrailingBackslash($message)),
-sprintf('<comment>%s</>', str_repeat('=', Helper::strlenWithoutDecoration($this->getFormatter(), $message))),
-));
-$this->newLine();
-}
-
-
-
-
-public function section($message)
-{
-$this->autoPrependBlock();
-$this->writeln(array(
-sprintf('<comment>%s</>', OutputFormatter::escapeTrailingBackslash($message)),
-sprintf('<comment>%s</>', str_repeat('-', Helper::strlenWithoutDecoration($this->getFormatter(), $message))),
-));
-$this->newLine();
-}
-
-
-
-
-public function listing(array $elements)
-{
-$this->autoPrependText();
-$elements = array_map(function ($element) {
-return sprintf(' * %s', $element);
-}, $elements);
-
-$this->writeln($elements);
-$this->newLine();
-}
-
-
-
-
-public function text($message)
-{
-$this->autoPrependText();
-
-$messages = \is_array($message) ? array_values($message) : array($message);
-foreach ($messages as $message) {
-$this->writeln(sprintf(' %s', $message));
-}
-}
-
-
-
-
-
-
-public function comment($message)
-{
-$messages = \is_array($message) ? array_values($message) : array($message);
-
-$this->autoPrependBlock();
-$this->writeln($this->createBlock($messages, null, null, '<fg=default;bg=default> // </>'));
-$this->newLine();
-}
-
-
-
-
-public function success($message)
-{
-$this->block($message, 'OK', 'fg=black;bg=green', ' ', true);
-}
-
-
-
-
-public function error($message)
-{
-$this->block($message, 'ERROR', 'fg=white;bg=red', ' ', true);
-}
-
-
-
-
-public function warning($message)
-{
-$this->block($message, 'WARNING', 'fg=white;bg=red', ' ', true);
-}
-
-
-
-
-public function note($message)
-{
-$this->block($message, 'NOTE', 'fg=yellow', ' ! ');
-}
-
-
-
-
-public function caution($message)
-{
-$this->block($message, 'CAUTION', 'fg=white;bg=red', ' ! ', true);
-}
-
-
-
-
-public function table(array $headers, array $rows)
-{
-$style = clone Table::getStyleDefinition('symfony-style-guide');
-$style->setCellHeaderFormat('<info>%s</info>');
-
-$table = new Table($this);
-$table->setHeaders($headers);
-$table->setRows($rows);
-$table->setStyle($style);
-
-$table->render();
-$this->newLine();
-}
-
-
-
-
-public function ask($question, $default = null, $validator = null)
-{
-$question = new Question($question, $default);
-$question->setValidator($validator);
-
-return $this->askQuestion($question);
-}
-
-
-
-
-public function askHidden($question, $validator = null)
-{
-$question = new Question($question);
-
-$question->setHidden(true);
-$question->setValidator($validator);
-
-return $this->askQuestion($question);
-}
-
-
-
-
-public function confirm($question, $default = true)
-{
-return $this->askQuestion(new ConfirmationQuestion($question, $default));
-}
-
-
-
-
-public function choice($question, array $choices, $default = null)
-{
-if (null !== $default) {
-$values = array_flip($choices);
-$default = $values[$default];
-}
-
-return $this->askQuestion(new ChoiceQuestion($question, $choices, $default));
-}
-
-
-
-
-public function progressStart($max = 0)
-{
-$this->progressBar = $this->createProgressBar($max);
-$this->progressBar->start();
-}
-
-
-
-
-public function progressAdvance($step = 1)
-{
-$this->getProgressBar()->advance($step);
-}
-
-
-
-
-public function progressFinish()
-{
-$this->getProgressBar()->finish();
-$this->newLine(2);
-$this->progressBar = null;
-}
-
-
-
-
-public function createProgressBar($max = 0)
-{
-$progressBar = parent::createProgressBar($max);
-
-if ('\\' !== \DIRECTORY_SEPARATOR || 'Hyper' === getenv('TERM_PROGRAM')) {
-$progressBar->setEmptyBarCharacter('â'); 
- $progressBar->setProgressCharacter('');
-$progressBar->setBarCharacter('â'); 
- }
-
-return $progressBar;
-}
-
-
-
-
-public function askQuestion(Question $question)
-{
-if ($this->input->isInteractive()) {
-$this->autoPrependBlock();
-}
-
-if (!$this->questionHelper) {
-$this->questionHelper = new SymfonyQuestionHelper();
-}
-
-$answer = $this->questionHelper->ask($this->input, $this, $question);
-
-if ($this->input->isInteractive()) {
-$this->newLine();
-$this->bufferedOutput->write("\n");
-}
-
-return $answer;
-}
-
-
-
-
-public function writeln($messages, $type = self::OUTPUT_NORMAL)
-{
-parent::writeln($messages, $type);
-$this->bufferedOutput->writeln($this->reduceBuffer($messages), $type);
-}
-
-
-
-
-public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL)
-{
-parent::write($messages, $newline, $type);
-$this->bufferedOutput->write($this->reduceBuffer($messages), $newline, $type);
-}
-
-
-
-
-public function newLine($count = 1)
-{
-parent::newLine($count);
-$this->bufferedOutput->write(str_repeat("\n", $count));
-}
-
-
-
-
-private function getProgressBar()
-{
-if (!$this->progressBar) {
-throw new RuntimeException('The ProgressBar is not started.');
-}
-
-return $this->progressBar;
-}
-
-private function getTerminalWidth()
-{
-$application = new Application();
-$dimensions = $application->getTerminalDimensions();
-
-return $dimensions[0] ?: self::MAX_LINE_LENGTH;
-}
-
-private function autoPrependBlock()
-{
-$chars = substr(str_replace(PHP_EOL, "\n", $this->bufferedOutput->fetch()), -2);
-
-if (!isset($chars[0])) {
-return $this->newLine(); 
- }
-
- $this->newLine(2 - substr_count($chars, "\n"));
-}
-
-private function autoPrependText()
-{
-$fetched = $this->bufferedOutput->fetch();
-
- if ("\n" !== substr($fetched, -1)) {
-$this->newLine();
-}
-}
-
-private function reduceBuffer($messages)
-{
-
- 
- return array_map(function ($value) {
-return substr($value, -4);
-}, array_merge(array($this->bufferedOutput->fetch()), (array) $messages));
-}
-
-private function createBlock($messages, $type = null, $style = null, $prefix = ' ', $padding = false, $escape = false)
-{
-$indentLength = 0;
-$prefixLength = Helper::strlenWithoutDecoration($this->getFormatter(), $prefix);
-$lines = array();
-
-if (null !== $type) {
-$type = sprintf('[%s] ', $type);
-$indentLength = \strlen($type);
-$lineIndentation = str_repeat(' ', $indentLength);
-}
-
-
- foreach ($messages as $key => $message) {
-if ($escape) {
-$message = OutputFormatter::escape($message);
-}
-
-$lines = array_merge($lines, explode(PHP_EOL, wordwrap($message, $this->lineLength - $prefixLength - $indentLength, PHP_EOL, true)));
-
-if (\count($messages) > 1 && $key < \count($messages) - 1) {
-$lines[] = '';
-}
-}
-
-$firstLineIndex = 0;
-if ($padding && $this->isDecorated()) {
-$firstLineIndex = 1;
-array_unshift($lines, '');
-$lines[] = '';
-}
-
-foreach ($lines as $i => &$line) {
-if (null !== $type) {
-$line = $firstLineIndex === $i ? $type.$line : $lineIndentation.$line;
-}
-
-$line = $prefix.$line;
-$line .= str_repeat(' ', $this->lineLength - Helper::strlenWithoutDecoration($this->getFormatter(), $line));
-
-if ($style) {
-$line = sprintf('<%s>%s</>', $style, $line);
-}
-}
-
-return $lines;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Tester;
-
-use Symfony\Component\Console\Application;
-use Symfony\Component\Console\Input\ArrayInput;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Output\StreamOutput;
-
-
-
-
-
-
-
-
-
-
-
-class ApplicationTester
-{
-private $application;
-private $input;
-private $output;
-private $statusCode;
-
-public function __construct(Application $application)
-{
-$this->application = $application;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function run(array $input, $options = array())
-{
-$this->input = new ArrayInput($input);
-if (isset($options['interactive'])) {
-$this->input->setInteractive($options['interactive']);
-}
-
-$this->output = new StreamOutput(fopen('php://memory', 'w', false));
-if (isset($options['decorated'])) {
-$this->output->setDecorated($options['decorated']);
-}
-if (isset($options['verbosity'])) {
-$this->output->setVerbosity($options['verbosity']);
-}
-
-return $this->statusCode = $this->application->run($this->input, $this->output);
-}
-
-
-
-
-
-
-
-
-public function getDisplay($normalize = false)
-{
-rewind($this->output->getStream());
-
-$display = stream_get_contents($this->output->getStream());
-
-if ($normalize) {
-$display = str_replace(PHP_EOL, "\n", $display);
-}
-
-return $display;
-}
-
-
-
-
-
-
-public function getInput()
-{
-return $this->input;
-}
-
-
-
-
-
-
-public function getOutput()
-{
-return $this->output;
-}
-
-
-
-
-
-
-public function getStatusCode()
-{
-return $this->statusCode;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Console\Tester;
-
-use Symfony\Component\Console\Command\Command;
-use Symfony\Component\Console\Input\ArrayInput;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Output\OutputInterface;
-use Symfony\Component\Console\Output\StreamOutput;
-
-
-
-
-
-
-class CommandTester
-{
-private $command;
-private $input;
-private $output;
-private $statusCode;
-
-public function __construct(Command $command)
-{
-$this->command = $command;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function execute(array $input, array $options = array())
-{
-
- 
- if (!isset($input['command'])
-&& (null !== $application = $this->command->getApplication())
-&& $application->getDefinition()->hasArgument('command')
-) {
-$input = array_merge(array('command' => $this->command->getName()), $input);
-}
-
-$this->input = new ArrayInput($input);
-if (isset($options['interactive'])) {
-$this->input->setInteractive($options['interactive']);
-}
-
-$this->output = new StreamOutput(fopen('php://memory', 'w', false));
-$this->output->setDecorated(isset($options['decorated']) ? $options['decorated'] : false);
-if (isset($options['verbosity'])) {
-$this->output->setVerbosity($options['verbosity']);
-}
-
-return $this->statusCode = $this->command->run($this->input, $this->output);
-}
-
-
-
-
-
-
-
-
-public function getDisplay($normalize = false)
-{
-rewind($this->output->getStream());
-
-$display = stream_get_contents($this->output->getStream());
-
-if ($normalize) {
-$display = str_replace(PHP_EOL, "\n", $display);
-}
-
-return $display;
-}
-
-
-
-
-
-
-public function getInput()
-{
-return $this->input;
-}
-
-
-
-
-
-
-public function getOutput()
-{
-return $this->output;
-}
-
-
-
-
-
-
-public function getStatusCode()
-{
-return $this->statusCode;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Debug;
-
-use Psr\Log\AbstractLogger;
-
-
-
-
-
-
-class BufferingLogger extends AbstractLogger
-{
-private $logs = array();
-
-public function log($level, $message, array $context = array())
-{
-$this->logs[] = array($level, $message, $context);
-}
-
-public function cleanLogs()
-{
-$logs = $this->logs;
-$this->logs = array();
-
-return $logs;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Debug;
-
-
-
-
-
-
-class Debug
-{
-private static $enabled = false;
-
-
-
-
-
-
-
-
-
-public static function enable($errorReportingLevel = null, $displayErrors = true)
-{
-if (static::$enabled) {
-return;
-}
-
-static::$enabled = true;
-
-if (null !== $errorReportingLevel) {
-error_reporting($errorReportingLevel);
-} else {
-error_reporting(-1);
-}
-
-if (!\in_array(\PHP_SAPI, array('cli', 'phpdbg'), true)) {
-ini_set('display_errors', 0);
-ExceptionHandler::register();
-} elseif ($displayErrors && (!filter_var(ini_get('log_errors'), FILTER_VALIDATE_BOOLEAN) || ini_get('error_log'))) {
-
- ini_set('display_errors', 1);
-}
-if ($displayErrors) {
-ErrorHandler::register(new ErrorHandler(new BufferingLogger()));
-} else {
-ErrorHandler::register()->throwAt(0, true);
-}
-
-DebugClassLoader::enable();
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Debug;
-
-
-
-
-
-
-
-
-
-
-
-
-class DebugClassLoader
-{
-private $classLoader;
-private $isFinder;
-private $loaded = array();
-private $wasFinder;
-private static $caseCheck;
-private static $deprecated = array();
-private static $php7Reserved = array('int', 'float', 'bool', 'string', 'true', 'false', 'null');
-private static $darwinCache = array('/' => array('/', array()));
-
-
-
-
-public function __construct($classLoader)
-{
-$this->wasFinder = \is_object($classLoader) && method_exists($classLoader, 'findFile');
-
-if ($this->wasFinder) {
-@trigger_error('The '.__METHOD__.' method will no longer support receiving an object into its $classLoader argument in 3.0.', E_USER_DEPRECATED);
-$this->classLoader = array($classLoader, 'loadClass');
-$this->isFinder = true;
-} else {
-$this->classLoader = $classLoader;
-$this->isFinder = \is_array($classLoader) && method_exists($classLoader[0], 'findFile');
-}
-
-if (!isset(self::$caseCheck)) {
-$file = file_exists(__FILE__) ? __FILE__ : rtrim(realpath('.'), \DIRECTORY_SEPARATOR);
-$i = strrpos($file, \DIRECTORY_SEPARATOR);
-$dir = substr($file, 0, 1 + $i);
-$file = substr($file, 1 + $i);
-$test = strtoupper($file) === $file ? strtolower($file) : strtoupper($file);
-$test = realpath($dir.$test);
-
-if (false === $test || false === $i) {
-
- self::$caseCheck = 0;
-} elseif (substr($test, -\strlen($file)) === $file) {
-
- self::$caseCheck = 1;
-} elseif (false !== stripos(PHP_OS, 'darwin')) {
-
- self::$caseCheck = 2;
-} else {
-
- self::$caseCheck = 0;
-}
-}
-}
-
-
-
-
-
-
-public function getClassLoader()
-{
-return $this->wasFinder ? $this->classLoader[0] : $this->classLoader;
-}
-
-
-
-
-public static function enable()
-{
-
- class_exists('Symfony\Component\Debug\ErrorHandler');
-class_exists('Psr\Log\LogLevel');
-
-if (!\is_array($functions = spl_autoload_functions())) {
-return;
-}
-
-foreach ($functions as $function) {
-spl_autoload_unregister($function);
-}
-
-foreach ($functions as $function) {
-if (!\is_array($function) || !$function[0] instanceof self) {
-$function = array(new static($function), 'loadClass');
-}
-
-spl_autoload_register($function);
-}
-}
-
-
-
-
-public static function disable()
-{
-if (!\is_array($functions = spl_autoload_functions())) {
-return;
-}
-
-foreach ($functions as $function) {
-spl_autoload_unregister($function);
-}
-
-foreach ($functions as $function) {
-if (\is_array($function) && $function[0] instanceof self) {
-$function = $function[0]->getClassLoader();
-}
-
-spl_autoload_register($function);
-}
-}
-
-
-
-
-
-
-
-
-
-
-public function findFile($class)
-{
-@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-if ($this->wasFinder) {
-return $this->classLoader[0]->findFile($class);
-}
-}
-
-
-
-
-
-
-
-
-
-
-public function loadClass($class)
-{
-ErrorHandler::stackErrors();
-
-try {
-if ($this->isFinder && !isset($this->loaded[$class])) {
-$this->loaded[$class] = true;
-if ($file = $this->classLoader[0]->findFile($class)) {
-require $file;
-}
-} else {
-\call_user_func($this->classLoader, $class);
-$file = false;
-}
-} catch (\Exception $e) {
-ErrorHandler::unstackErrors();
-
-throw $e;
-} catch (\Throwable $e) {
-ErrorHandler::unstackErrors();
-
-throw $e;
-}
-
-ErrorHandler::unstackErrors();
-
-$exists = class_exists($class, false) || interface_exists($class, false) || (\function_exists('trait_exists') && trait_exists($class, false));
-
-if ($class && '\\' === $class[0]) {
-$class = substr($class, 1);
-}
-
-if ($exists) {
-$refl = new \ReflectionClass($class);
-$name = $refl->getName();
-
-if ($name !== $class && 0 === strcasecmp($name, $class)) {
-throw new \RuntimeException(sprintf('Case mismatch between loaded and declared class names: %s vs %s', $class, $name));
-}
-
-if (\in_array(strtolower($refl->getShortName()), self::$php7Reserved)) {
-@trigger_error(sprintf('%s uses a reserved class name (%s) that will break on PHP 7 and higher', $name, $refl->getShortName()), E_USER_DEPRECATED);
-} elseif (preg_match('#\n \* @deprecated (.*?)\r?\n \*(?: @|/$)#s', $refl->getDocComment(), $notice)) {
-self::$deprecated[$name] = preg_replace('#\s*\r?\n \* +#', ' ', $notice[1]);
-} else {
-if (2 > $len = 1 + (strpos($name, '\\') ?: strpos($name, '_'))) {
-$len = 0;
-$ns = '';
-} else {
-$ns = substr($name, 0, $len);
-}
-$parent = get_parent_class($class);
-
-if (!$parent || strncmp($ns, $parent, $len)) {
-if ($parent && isset(self::$deprecated[$parent]) && strncmp($ns, $parent, $len)) {
-@trigger_error(sprintf('The %s class extends %s that is deprecated %s', $name, $parent, self::$deprecated[$parent]), E_USER_DEPRECATED);
-}
-
-$parentInterfaces = array();
-$deprecatedInterfaces = array();
-if ($parent) {
-foreach (class_implements($parent) as $interface) {
-$parentInterfaces[$interface] = 1;
-}
-}
-
-foreach ($refl->getInterfaceNames() as $interface) {
-if (isset(self::$deprecated[$interface]) && strncmp($ns, $interface, $len)) {
-$deprecatedInterfaces[] = $interface;
-}
-foreach (class_implements($interface) as $interface) {
-$parentInterfaces[$interface] = 1;
-}
-}
-
-foreach ($deprecatedInterfaces as $interface) {
-if (!isset($parentInterfaces[$interface])) {
-@trigger_error(sprintf('The %s %s %s that is deprecated %s', $name, $refl->isInterface() ? 'interface extends' : 'class implements', $interface, self::$deprecated[$interface]), E_USER_DEPRECATED);
-}
-}
-}
-}
-}
-
-if ($file) {
-if (!$exists) {
-if (false !== strpos($class, '/')) {
-throw new \RuntimeException(sprintf('Trying to autoload a class with an invalid name "%s". Be careful that the namespace separator is "\" in PHP, not "/".', $class));
-}
-
-throw new \RuntimeException(sprintf('The autoloader expected class "%s" to be defined in file "%s". The file was found but the class was not in it, the class name or namespace probably has a typo.', $class, $file));
-}
-if (self::$caseCheck) {
-$real = explode('\\', $class.strrchr($file, '.'));
-$tail = explode(\DIRECTORY_SEPARATOR, str_replace('/', \DIRECTORY_SEPARATOR, $file));
-
-$i = \count($tail) - 1;
-$j = \count($real) - 1;
-
-while (isset($tail[$i], $real[$j]) && $tail[$i] === $real[$j]) {
---$i;
---$j;
-}
-
-array_splice($tail, 0, $i + 1);
-}
-if (self::$caseCheck && $tail) {
-$tail = \DIRECTORY_SEPARATOR.implode(\DIRECTORY_SEPARATOR, $tail);
-$tailLen = \strlen($tail);
-$real = $refl->getFileName();
-
-if (2 === self::$caseCheck) {
-
-
-$i = 1 + strrpos($real, '/');
-$file = substr($real, $i);
-$real = substr($real, 0, $i);
-
-if (isset(self::$darwinCache[$real])) {
-$kDir = $real;
-} else {
-$kDir = strtolower($real);
-
-if (isset(self::$darwinCache[$kDir])) {
-$real = self::$darwinCache[$kDir][0];
-} else {
-$dir = getcwd();
-chdir($real);
-$real = getcwd().'/';
-chdir($dir);
-
-$dir = $real;
-$k = $kDir;
-$i = \strlen($dir) - 1;
-while (!isset(self::$darwinCache[$k])) {
-self::$darwinCache[$k] = array($dir, array());
-self::$darwinCache[$dir] = &self::$darwinCache[$k];
-
-while ('/' !== $dir[--$i]) {
-}
-$k = substr($k, 0, ++$i);
-$dir = substr($dir, 0, $i--);
-}
-}
-}
-
-$dirFiles = self::$darwinCache[$kDir][1];
-
-if (isset($dirFiles[$file])) {
-$kFile = $file;
-} else {
-$kFile = strtolower($file);
-
-if (!isset($dirFiles[$kFile])) {
-foreach (scandir($real, 2) as $f) {
-if ('.' !== $f[0]) {
-$dirFiles[$f] = $f;
-if ($f === $file) {
-$kFile = $k = $file;
-} elseif ($f !== $k = strtolower($f)) {
-$dirFiles[$k] = $f;
-}
-}
-}
-self::$darwinCache[$kDir][1] = $dirFiles;
-}
-}
-
-$real .= $dirFiles[$kFile];
-}
-
-if (0 === substr_compare($real, $tail, -$tailLen, $tailLen, true)
-&& 0 !== substr_compare($real, $tail, -$tailLen, $tailLen, false)
-) {
-throw new \RuntimeException(sprintf('Case mismatch between class and real file names: %s vs %s in %s', substr($tail, -$tailLen + 1), substr($real, -$tailLen + 1), substr($real, 0, -$tailLen + 1)));
-}
-}
-
-return true;
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Debug;
-
-use Psr\Log\LoggerInterface;
-use Psr\Log\LogLevel;
-use Symfony\Component\Debug\Exception\ContextErrorException;
-use Symfony\Component\Debug\Exception\FatalErrorException;
-use Symfony\Component\Debug\Exception\FatalThrowableError;
-use Symfony\Component\Debug\Exception\OutOfMemoryException;
-use Symfony\Component\Debug\FatalErrorHandler\ClassNotFoundFatalErrorHandler;
-use Symfony\Component\Debug\FatalErrorHandler\FatalErrorHandlerInterface;
-use Symfony\Component\Debug\FatalErrorHandler\UndefinedFunctionFatalErrorHandler;
-use Symfony\Component\Debug\FatalErrorHandler\UndefinedMethodFatalErrorHandler;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-class ErrorHandler
-{
-
-
-
-const TYPE_DEPRECATION = -100;
-
-private $levels = array(
-E_DEPRECATED => 'Deprecated',
-E_USER_DEPRECATED => 'User Deprecated',
-E_NOTICE => 'Notice',
-E_USER_NOTICE => 'User Notice',
-E_STRICT => 'Runtime Notice',
-E_WARNING => 'Warning',
-E_USER_WARNING => 'User Warning',
-E_COMPILE_WARNING => 'Compile Warning',
-E_CORE_WARNING => 'Core Warning',
-E_USER_ERROR => 'User Error',
-E_RECOVERABLE_ERROR => 'Catchable Fatal Error',
-E_COMPILE_ERROR => 'Compile Error',
-E_PARSE => 'Parse Error',
-E_ERROR => 'Error',
-E_CORE_ERROR => 'Core Error',
-);
-
-private $loggers = array(
-E_DEPRECATED => array(null, LogLevel::INFO),
-E_USER_DEPRECATED => array(null, LogLevel::INFO),
-E_NOTICE => array(null, LogLevel::WARNING),
-E_USER_NOTICE => array(null, LogLevel::WARNING),
-E_STRICT => array(null, LogLevel::WARNING),
-E_WARNING => array(null, LogLevel::WARNING),
-E_USER_WARNING => array(null, LogLevel::WARNING),
-E_COMPILE_WARNING => array(null, LogLevel::WARNING),
-E_CORE_WARNING => array(null, LogLevel::WARNING),
-E_USER_ERROR => array(null, LogLevel::CRITICAL),
-E_RECOVERABLE_ERROR => array(null, LogLevel::CRITICAL),
-E_COMPILE_ERROR => array(null, LogLevel::CRITICAL),
-E_PARSE => array(null, LogLevel::CRITICAL),
-E_ERROR => array(null, LogLevel::CRITICAL),
-E_CORE_ERROR => array(null, LogLevel::CRITICAL),
-);
-
-private $thrownErrors = 0x1FFF; 
- private $scopedErrors = 0x1FFF; 
- private $tracedErrors = 0x77FB; 
- private $screamedErrors = 0x55; 
- private $loggedErrors = 0;
-
-private $loggedTraces = array();
-private $isRecursive = 0;
-private $isRoot = false;
-private $exceptionHandler;
-private $bootstrappingLogger;
-
-private static $reservedMemory;
-private static $stackedErrors = array();
-private static $stackedErrorLevels = array();
-private static $toStringException = null;
-private static $exitCode = 0;
-
-
-
-
-
-
-private $displayErrors = 0x1FFF;
-
-
-
-
-
-
-
-
-
-public static function register($handler = null, $replace = true)
-{
-if (null === self::$reservedMemory) {
-self::$reservedMemory = str_repeat('x', 10240);
-register_shutdown_function(__CLASS__.'::handleFatalError');
-}
-
-$levels = -1;
-
-if ($handlerIsNew = !$handler instanceof self) {
-
- if (null !== $handler) {
-$levels = $replace ? $handler : 0;
-$replace = true;
-}
-$handler = new static();
-}
-
-if (null === $prev = set_error_handler(array($handler, 'handleError'))) {
-restore_error_handler();
-
- set_error_handler(array($handler, 'handleError'), $handler->thrownErrors | $handler->loggedErrors);
-$handler->isRoot = true;
-}
-
-if ($handlerIsNew && \is_array($prev) && $prev[0] instanceof self) {
-$handler = $prev[0];
-$replace = false;
-}
-if (!$replace && $prev) {
-restore_error_handler();
-$handlerIsRegistered = \is_array($prev) && $handler === $prev[0];
-} else {
-$handlerIsRegistered = true;
-}
-if (\is_array($prev = set_exception_handler(array($handler, 'handleException'))) && $prev[0] instanceof self) {
-restore_exception_handler();
-if (!$handlerIsRegistered) {
-$handler = $prev[0];
-} elseif ($handler !== $prev[0] && $replace) {
-set_exception_handler(array($handler, 'handleException'));
-$p = $prev[0]->setExceptionHandler(null);
-$handler->setExceptionHandler($p);
-$prev[0]->setExceptionHandler($p);
-}
-} else {
-$handler->setExceptionHandler($prev);
-}
-
-$handler->throwAt($levels & $handler->thrownErrors, true);
-
-return $handler;
-}
-
-public function __construct(BufferingLogger $bootstrappingLogger = null)
-{
-if ($bootstrappingLogger) {
-$this->bootstrappingLogger = $bootstrappingLogger;
-$this->setDefaultLogger($bootstrappingLogger);
-}
-}
-
-
-
-
-
-
-
-
-public function setDefaultLogger(LoggerInterface $logger, $levels = null, $replace = false)
-{
-$loggers = array();
-
-if (\is_array($levels)) {
-foreach ($levels as $type => $logLevel) {
-if (empty($this->loggers[$type][0]) || $replace || $this->loggers[$type][0] === $this->bootstrappingLogger) {
-$loggers[$type] = array($logger, $logLevel);
-}
-}
-} else {
-if (null === $levels) {
-$levels = E_ALL | E_STRICT;
-}
-foreach ($this->loggers as $type => $log) {
-if (($type & $levels) && (empty($log[0]) || $replace || $log[0] === $this->bootstrappingLogger)) {
-$log[0] = $logger;
-$loggers[$type] = $log;
-}
-}
-}
-
-$this->setLoggers($loggers);
-}
-
-
-
-
-
-
-
-
-
-
-public function setLoggers(array $loggers)
-{
-$prevLogged = $this->loggedErrors;
-$prev = $this->loggers;
-$flush = array();
-
-foreach ($loggers as $type => $log) {
-if (!isset($prev[$type])) {
-throw new \InvalidArgumentException('Unknown error type: '.$type);
-}
-if (!\is_array($log)) {
-$log = array($log);
-} elseif (!array_key_exists(0, $log)) {
-throw new \InvalidArgumentException('No logger provided');
-}
-if (null === $log[0]) {
-$this->loggedErrors &= ~$type;
-} elseif ($log[0] instanceof LoggerInterface) {
-$this->loggedErrors |= $type;
-} else {
-throw new \InvalidArgumentException('Invalid logger provided');
-}
-$this->loggers[$type] = $log + $prev[$type];
-
-if ($this->bootstrappingLogger && $prev[$type][0] === $this->bootstrappingLogger) {
-$flush[$type] = $type;
-}
-}
-$this->reRegister($prevLogged | $this->thrownErrors);
-
-if ($flush) {
-foreach ($this->bootstrappingLogger->cleanLogs() as $log) {
-$type = $log[2]['type'];
-if (!isset($flush[$type])) {
-$this->bootstrappingLogger->log($log[0], $log[1], $log[2]);
-} elseif ($this->loggers[$type][0]) {
-$this->loggers[$type][0]->log($this->loggers[$type][1], $log[1], $log[2]);
-}
-}
-}
-
-return $prev;
-}
-
-
-
-
-
-
-
-
-
-
-public function setExceptionHandler($handler)
-{
-if (null !== $handler && !\is_callable($handler)) {
-throw new \LogicException('The exception handler must be a valid PHP callable.');
-}
-$prev = $this->exceptionHandler;
-$this->exceptionHandler = $handler;
-
-return $prev;
-}
-
-
-
-
-
-
-
-
-
-public function throwAt($levels, $replace = false)
-{
-$prev = $this->thrownErrors;
-$this->thrownErrors = ($levels | E_RECOVERABLE_ERROR | E_USER_ERROR) & ~E_USER_DEPRECATED & ~E_DEPRECATED;
-if (!$replace) {
-$this->thrownErrors |= $prev;
-}
-$this->reRegister($prev | $this->loggedErrors);
-
-
- $this->displayErrors = $this->thrownErrors;
-
-return $prev;
-}
-
-
-
-
-
-
-
-
-
-public function scopeAt($levels, $replace = false)
-{
-$prev = $this->scopedErrors;
-$this->scopedErrors = (int) $levels;
-if (!$replace) {
-$this->scopedErrors |= $prev;
-}
-
-return $prev;
-}
-
-
-
-
-
-
-
-
-
-public function traceAt($levels, $replace = false)
-{
-$prev = $this->tracedErrors;
-$this->tracedErrors = (int) $levels;
-if (!$replace) {
-$this->tracedErrors |= $prev;
-}
-
-return $prev;
-}
-
-
-
-
-
-
-
-
-
-public function screamAt($levels, $replace = false)
-{
-$prev = $this->screamedErrors;
-$this->screamedErrors = (int) $levels;
-if (!$replace) {
-$this->screamedErrors |= $prev;
-}
-
-return $prev;
-}
-
-
-
-
-private function reRegister($prev)
-{
-if ($prev !== $this->thrownErrors | $this->loggedErrors) {
-$handler = set_error_handler('var_dump');
-$handler = \is_array($handler) ? $handler[0] : null;
-restore_error_handler();
-if ($handler === $this) {
-restore_error_handler();
-if ($this->isRoot) {
-set_error_handler(array($this, 'handleError'), $this->thrownErrors | $this->loggedErrors);
-} else {
-set_error_handler(array($this, 'handleError'));
-}
-}
-}
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function handleError($type, $message, $file, $line)
-{
-$level = error_reporting();
-$silenced = 0 === ($level & $type);
-$level |= E_RECOVERABLE_ERROR | E_USER_ERROR | E_DEPRECATED | E_USER_DEPRECATED;
-$log = $this->loggedErrors & $type;
-$throw = $this->thrownErrors & $type & $level;
-$type &= $level | $this->screamedErrors;
-
-if (!$type || (!$log && !$throw)) {
-return !$silenced && $type && $log;
-}
-$scope = $this->scopedErrors & $type;
-
-if (4 < $numArgs = \func_num_args()) {
-$context = $scope ? (func_get_arg(4) ?: array()) : array();
-$backtrace = 5 < $numArgs ? func_get_arg(5) : null; 
- } else {
-$context = array();
-$backtrace = null;
-}
-
-if (isset($context['GLOBALS']) && $scope) {
-$e = $context; 
- unset($e['GLOBALS'], $context); 
- $context = $e;
-}
-
-if (null !== $backtrace && $type & E_ERROR) {
-
- 
- 
- $this->handleFatalError(compact('type', 'message', 'file', 'line', 'backtrace'));
-
-return true;
-}
-
-if ($throw) {
-if (null !== self::$toStringException) {
-$throw = self::$toStringException;
-self::$toStringException = null;
-} elseif ($scope && class_exists('Symfony\Component\Debug\Exception\ContextErrorException')) {
-
- $throw = new ContextErrorException($this->levels[$type].': '.$message, 0, $type, $file, $line, $context);
-} else {
-$throw = new \ErrorException($this->levels[$type].': '.$message, 0, $type, $file, $line);
-}
-
-if (\PHP_VERSION_ID <= 50407 && (\PHP_VERSION_ID >= 50400 || \PHP_VERSION_ID <= 50317)) {
-
- 
- 
-
-$throw->errorHandlerCanary = new ErrorHandlerCanary();
-}
-
-if (E_USER_ERROR & $type) {
-$backtrace = $backtrace ?: $throw->getTrace();
-
-for ($i = 1; isset($backtrace[$i]); ++$i) {
-if (isset($backtrace[$i]['function'], $backtrace[$i]['type'], $backtrace[$i - 1]['function'])
-&& '__toString' === $backtrace[$i]['function']
-&& '->' === $backtrace[$i]['type']
-&& !isset($backtrace[$i - 1]['class'])
-&& ('trigger_error' === $backtrace[$i - 1]['function'] || 'user_error' === $backtrace[$i - 1]['function'])
-) {
-
- 
- 
- 
- 
- 
-
-foreach ($context as $e) {
-if (($e instanceof \Exception || $e instanceof \Throwable) && $e->__toString() === $message) {
-if (1 === $i) {
-
- $throw = $e;
-break;
-}
-self::$toStringException = $e;
-
-return true;
-}
-}
-
-if (1 < $i) {
-
- $this->handleException($throw);
-
-
- return false;
-}
-}
-}
-}
-
-throw $throw;
-}
-
-
- $e = md5("{$type}/{$line}/{$file}\x00{$message}", true);
-$trace = true;
-
-if (!($this->tracedErrors & $type) || isset($this->loggedTraces[$e])) {
-$trace = false;
-} else {
-$this->loggedTraces[$e] = 1;
-}
-
-$e = compact('type', 'file', 'line', 'level');
-
-if ($type & $level) {
-if ($scope) {
-$e['scope_vars'] = $context;
-if ($trace) {
-$e['stack'] = $backtrace ?: debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT);
-}
-} elseif ($trace) {
-if (null === $backtrace) {
-$e['stack'] = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
-} else {
-foreach ($backtrace as &$frame) {
-unset($frame['args'], $frame);
-}
-$e['stack'] = $backtrace;
-}
-}
-}
-
-if ($this->isRecursive) {
-$log = 0;
-} elseif (self::$stackedErrorLevels) {
-self::$stackedErrors[] = array($this->loggers[$type][0], ($type & $level) ? $this->loggers[$type][1] : LogLevel::DEBUG, $message, $e);
-} else {
-try {
-$this->isRecursive = true;
-$this->loggers[$type][0]->log(($type & $level) ? $this->loggers[$type][1] : LogLevel::DEBUG, $message, $e);
-$this->isRecursive = false;
-} catch (\Exception $e) {
-$this->isRecursive = false;
-
-throw $e;
-} catch (\Throwable $e) {
-$this->isRecursive = false;
-
-throw $e;
-}
-}
-
-return !$silenced && $type && $log;
-}
-
-
-
-
-
-
-
-
-
-public function handleException($exception, array $error = null)
-{
-if (null === $error) {
-self::$exitCode = 255;
-}
-if (!$exception instanceof \Exception) {
-$exception = new FatalThrowableError($exception);
-}
-$type = $exception instanceof FatalErrorException ? $exception->getSeverity() : E_ERROR;
-$handlerException = null;
-
-if (($this->loggedErrors & $type) || $exception instanceof FatalThrowableError) {
-$e = array(
-'type' => $type,
-'file' => $exception->getFile(),
-'line' => $exception->getLine(),
-'level' => error_reporting(),
-'stack' => $exception->getTrace(),
-);
-if ($exception instanceof FatalErrorException) {
-if ($exception instanceof FatalThrowableError) {
-$error = array(
-'type' => $type,
-'message' => $message = $exception->getMessage(),
-'file' => $e['file'],
-'line' => $e['line'],
-);
-} else {
-$message = 'Fatal '.$exception->getMessage();
-}
-} elseif ($exception instanceof \ErrorException) {
-$message = 'Uncaught '.$exception->getMessage();
-if ($exception instanceof ContextErrorException) {
-$e['context'] = $exception->getContext();
-}
-} else {
-$message = 'Uncaught Exception: '.$exception->getMessage();
-}
-}
-if ($this->loggedErrors & $type) {
-try {
-$this->loggers[$type][0]->log($this->loggers[$type][1], $message, $e);
-} catch (\Exception $handlerException) {
-} catch (\Throwable $handlerException) {
-}
-}
-if ($exception instanceof FatalErrorException && !$exception instanceof OutOfMemoryException && $error) {
-foreach ($this->getFatalErrorHandlers() as $handler) {
-if ($e = $handler->handleError($error, $exception)) {
-$exception = $e;
-break;
-}
-}
-}
-$exceptionHandler = $this->exceptionHandler;
-$this->exceptionHandler = null;
-try {
-if (null !== $exceptionHandler) {
-return \call_user_func($exceptionHandler, $exception);
-}
-$handlerException = $handlerException ?: $exception;
-} catch (\Exception $handlerException) {
-} catch (\Throwable $handlerException) {
-}
-if ($exception === $handlerException) {
-self::$reservedMemory = null; 
- throw $exception; 
- }
-$this->handleException($handlerException);
-}
-
-
-
-
-
-
-
-
-public static function handleFatalError(array $error = null)
-{
-if (null === self::$reservedMemory) {
-return;
-}
-
-$handler = self::$reservedMemory = null;
-$handlers = array();
-$previousHandler = null;
-$sameHandlerLimit = 10;
-
-while (!\is_array($handler) || !$handler[0] instanceof self) {
-$handler = set_exception_handler('var_dump');
-restore_exception_handler();
-
-if (!$handler) {
-break;
-}
-restore_exception_handler();
-
-if ($handler !== $previousHandler) {
-array_unshift($handlers, $handler);
-$previousHandler = $handler;
-} elseif (0 === --$sameHandlerLimit) {
-$handler = null;
-break;
-}
-}
-foreach ($handlers as $h) {
-set_exception_handler($h);
-}
-if (!$handler) {
-return;
-}
-if ($handler !== $h) {
-$handler[0]->setExceptionHandler($h);
-}
-$handler = $handler[0];
-$handlers = array();
-
-if ($exit = null === $error) {
-$error = error_get_last();
-}
-
-try {
-while (self::$stackedErrorLevels) {
-static::unstackErrors();
-}
-} catch (\Exception $exception) {
-
- } catch (\Throwable $exception) {
-
- }
-
-if ($error && $error['type'] &= E_PARSE | E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR) {
-
- $handler->throwAt(0, true);
-$trace = isset($error['backtrace']) ? $error['backtrace'] : null;
-
-if (0 === strpos($error['message'], 'Allowed memory') || 0 === strpos($error['message'], 'Out of memory')) {
-$exception = new OutOfMemoryException($handler->levels[$error['type']].': '.$error['message'], 0, $error['type'], $error['file'], $error['line'], 2, false, $trace);
-} else {
-$exception = new FatalErrorException($handler->levels[$error['type']].': '.$error['message'], 0, $error['type'], $error['file'], $error['line'], 2, true, $trace);
-}
-}
-
-try {
-if (isset($exception)) {
-self::$exitCode = 255;
-$handler->handleException($exception, $error);
-}
-} catch (FatalErrorException $e) {
-
- }
-
-if ($exit && self::$exitCode) {
-$exitCode = self::$exitCode;
-register_shutdown_function('register_shutdown_function', function () use ($exitCode) { exit($exitCode); });
-}
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public static function stackErrors()
-{
-self::$stackedErrorLevels[] = error_reporting(error_reporting() | E_PARSE | E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR);
-}
-
-
-
-
-public static function unstackErrors()
-{
-$level = array_pop(self::$stackedErrorLevels);
-
-if (null !== $level) {
-$e = error_reporting($level);
-if ($e !== ($level | E_PARSE | E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR)) {
-
- error_reporting($e);
-}
-}
-
-if (empty(self::$stackedErrorLevels)) {
-$errors = self::$stackedErrors;
-self::$stackedErrors = array();
-
-foreach ($errors as $e) {
-$e[0]->log($e[1], $e[2], $e[3]);
-}
-}
-}
-
-
-
-
-
-
-
-
-protected function getFatalErrorHandlers()
-{
-return array(
-new UndefinedFunctionFatalErrorHandler(),
-new UndefinedMethodFatalErrorHandler(),
-new ClassNotFoundFatalErrorHandler(),
-);
-}
-
-
-
-
-
-
-
-
-public function setLevel($level)
-{
-@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the throwAt() method instead.', E_USER_DEPRECATED);
-
-$level = null === $level ? error_reporting() : $level;
-$this->throwAt($level, true);
-}
-
-
-
-
-
-
-
-
-public function setDisplayErrors($displayErrors)
-{
-@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the throwAt() method instead.', E_USER_DEPRECATED);
-
-if ($displayErrors) {
-$this->throwAt($this->displayErrors, true);
-} else {
-$displayErrors = $this->displayErrors;
-$this->throwAt(0, true);
-$this->displayErrors = $displayErrors;
-}
-}
-
-
-
-
-
-
-
-
-
-public static function setLogger(LoggerInterface $logger, $channel = 'deprecation')
-{
-@trigger_error('The '.__METHOD__.' static method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the setLoggers() or setDefaultLogger() methods instead.', E_USER_DEPRECATED);
-
-$handler = set_error_handler('var_dump');
-$handler = \is_array($handler) ? $handler[0] : null;
-restore_error_handler();
-if (!$handler instanceof self) {
-return;
-}
-if ('deprecation' === $channel) {
-$handler->setDefaultLogger($logger, E_DEPRECATED | E_USER_DEPRECATED, true);
-$handler->screamAt(E_DEPRECATED | E_USER_DEPRECATED);
-} elseif ('scream' === $channel) {
-$handler->setDefaultLogger($logger, E_ALL | E_STRICT, false);
-$handler->screamAt(E_ALL | E_STRICT);
-} elseif ('emergency' === $channel) {
-$handler->setDefaultLogger($logger, E_PARSE | E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR, true);
-$handler->screamAt(E_PARSE | E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR);
-}
-}
-
-
-
-
-public function handle($level, $message, $file = 'unknown', $line = 0, $context = array())
-{
-$this->handleError(E_USER_DEPRECATED, 'The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the handleError() method instead.', __FILE__, __LINE__, array());
-
-return $this->handleError($level, $message, $file, $line, (array) $context);
-}
-
-
-
-
-
-
-public function handleFatal()
-{
-@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the handleFatalError() method instead.', E_USER_DEPRECATED);
-
-static::handleFatalError();
-}
-}
-
-
-
-
-
-
-
-
-class ErrorHandlerCanary
-{
-private static $displayErrors = null;
-
-public function __construct()
-{
-if (null === self::$displayErrors) {
-self::$displayErrors = ini_set('display_errors', 1);
-}
-}
-
-public function __destruct()
-{
-if (null !== self::$displayErrors) {
-ini_set('display_errors', self::$displayErrors);
-self::$displayErrors = null;
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Debug\Exception;
-
-
-
-
-
-
-class ClassNotFoundException extends FatalErrorException
-{
-public function __construct($message, \ErrorException $previous)
-{
-parent::__construct(
-$message,
-$previous->getCode(),
-$previous->getSeverity(),
-$previous->getFile(),
-$previous->getLine(),
-null,
-true,
-null,
-$previous->getPrevious()
-);
-$this->setTrace($previous->getTrace());
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Debug\Exception;
-
-
-
-
-
-
-class ContextErrorException extends \ErrorException
-{
-private $context = array();
-
-public function __construct($message, $code, $severity, $filename, $lineno, $context = array())
-{
-parent::__construct($message, $code, $severity, $filename, $lineno);
-$this->context = $context;
-}
-
-
-
-
-public function getContext()
-{
-return $this->context;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Debug\Exception;
-
-@trigger_error('The '.__NAMESPACE__.'\DummyException class is deprecated since Symfony 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-
-
-
-
-
-class DummyException extends \ErrorException
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\HttpKernel\Exception;
-
-
-
-
-
-
-
-
-
-
-class FatalErrorException extends \ErrorException
-{
-}
-
-namespace Symfony\Component\Debug\Exception;
-
-use Symfony\Component\HttpKernel\Exception\FatalErrorException as LegacyFatalErrorException;
-
-
-
-
-
-
-class FatalErrorException extends LegacyFatalErrorException
-{
-public function __construct($message, $code, $severity, $filename, $lineno, $traceOffset = null, $traceArgs = true, array $trace = null, $previous = null)
-{
-parent::__construct($message, $code, $severity, $filename, $lineno, $previous);
-
-if (null !== $trace) {
-if (!$traceArgs) {
-foreach ($trace as &$frame) {
-unset($frame['args'], $frame['this'], $frame);
-}
-}
-
-$this->setTrace($trace);
-} elseif (null !== $traceOffset) {
-if (\function_exists('xdebug_get_function_stack')) {
-$trace = xdebug_get_function_stack();
-if (0 < $traceOffset) {
-array_splice($trace, -$traceOffset);
-}
-
-foreach ($trace as &$frame) {
-if (!isset($frame['type'])) {
-
- if (isset($frame['class'])) {
-$frame['type'] = '::';
-}
-} elseif ('dynamic' === $frame['type']) {
-$frame['type'] = '->';
-} elseif ('static' === $frame['type']) {
-$frame['type'] = '::';
-}
-
-
- if (!$traceArgs) {
-unset($frame['params'], $frame['args']);
-} elseif (isset($frame['params']) && !isset($frame['args'])) {
-$frame['args'] = $frame['params'];
-unset($frame['params']);
-}
-}
-
-unset($frame);
-$trace = array_reverse($trace);
-} elseif (\function_exists('symfony_debug_backtrace')) {
-$trace = symfony_debug_backtrace();
-if (0 < $traceOffset) {
-array_splice($trace, 0, $traceOffset);
-}
-} else {
-$trace = array();
-}
-
-$this->setTrace($trace);
-}
-}
-
-protected function setTrace($trace)
-{
-$traceReflector = new \ReflectionProperty('Exception', 'trace');
-$traceReflector->setAccessible(true);
-$traceReflector->setValue($this, $trace);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Debug\Exception;
-
-
-
-
-
-
-class FatalThrowableError extends FatalErrorException
-{
-public function __construct(\Throwable $e)
-{
-if ($e instanceof \ParseError) {
-$message = 'Parse error: '.$e->getMessage();
-$severity = E_PARSE;
-} elseif ($e instanceof \TypeError) {
-$message = 'Type error: '.$e->getMessage();
-$severity = E_RECOVERABLE_ERROR;
-} else {
-$message = $e->getMessage();
-$severity = E_ERROR;
-}
-
-\ErrorException::__construct(
-$message,
-$e->getCode(),
-$severity,
-$e->getFile(),
-$e->getLine(),
-$e->getPrevious()
-);
-
-$this->setTrace($e->getTrace());
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\HttpKernel\Exception;
-
-use Symfony\Component\Debug\Exception\FlattenException as DebugFlattenException;
-
-
-
-
-
-
-
-
-
-
-class FlattenException
-{
-private $handler;
-
-public static function __callStatic($method, $args)
-{
-if (!method_exists('Symfony\Component\Debug\Exception\FlattenException', $method)) {
-throw new \BadMethodCallException(sprintf('Call to undefined method %s::%s()', \get_called_class(), $method));
-}
-
-return \call_user_func_array(array('Symfony\Component\Debug\Exception\FlattenException', $method), $args);
-}
-
-public function __call($method, $args)
-{
-if (!isset($this->handler)) {
-$this->handler = new DebugFlattenException();
-}
-
-if (!method_exists($this->handler, $method)) {
-throw new \BadMethodCallException(sprintf('Call to undefined method %s::%s()', \get_class($this), $method));
-}
-
-return \call_user_func_array(array($this->handler, $method), $args);
-}
-}
-
-namespace Symfony\Component\Debug\Exception;
-
-use Symfony\Component\HttpKernel\Exception\FlattenException as LegacyFlattenException;
-use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
-
-
-
-
-
-
-
-
-class FlattenException extends LegacyFlattenException
-{
-private $message;
-private $code;
-private $previous;
-private $trace;
-private $class;
-private $statusCode;
-private $headers;
-private $file;
-private $line;
-
-public static function create(\Exception $exception, $statusCode = null, array $headers = array())
-{
-$e = new static();
-$e->setMessage($exception->getMessage());
-$e->setCode($exception->getCode());
-
-if ($exception instanceof HttpExceptionInterface) {
-$statusCode = $exception->getStatusCode();
-$headers = array_merge($headers, $exception->getHeaders());
-}
-
-if (null === $statusCode) {
-$statusCode = 500;
-}
-
-$e->setStatusCode($statusCode);
-$e->setHeaders($headers);
-$e->setTraceFromException($exception);
-$e->setClass(\get_class($exception));
-$e->setFile($exception->getFile());
-$e->setLine($exception->getLine());
-
-$previous = $exception->getPrevious();
-
-if ($previous instanceof \Exception) {
-$e->setPrevious(static::create($previous));
-} elseif ($previous instanceof \Throwable) {
-$e->setPrevious(static::create(new FatalThrowableError($previous)));
-}
-
-return $e;
-}
-
-public function toArray()
-{
-$exceptions = array();
-foreach (array_merge(array($this), $this->getAllPrevious()) as $exception) {
-$exceptions[] = array(
-'message' => $exception->getMessage(),
-'class' => $exception->getClass(),
-'trace' => $exception->getTrace(),
-);
-}
-
-return $exceptions;
-}
-
-public function getStatusCode()
-{
-return $this->statusCode;
-}
-
-public function setStatusCode($code)
-{
-$this->statusCode = $code;
-}
-
-public function getHeaders()
-{
-return $this->headers;
-}
-
-public function setHeaders(array $headers)
-{
-$this->headers = $headers;
-}
-
-public function getClass()
-{
-return $this->class;
-}
-
-public function setClass($class)
-{
-$this->class = $class;
-}
-
-public function getFile()
-{
-return $this->file;
-}
-
-public function setFile($file)
-{
-$this->file = $file;
-}
-
-public function getLine()
-{
-return $this->line;
-}
-
-public function setLine($line)
-{
-$this->line = $line;
-}
-
-public function getMessage()
-{
-return $this->message;
-}
-
-public function setMessage($message)
-{
-$this->message = $message;
-}
-
-public function getCode()
-{
-return $this->code;
-}
-
-public function setCode($code)
-{
-$this->code = $code;
-}
-
-public function getPrevious()
-{
-return $this->previous;
-}
-
-public function setPrevious(FlattenException $previous)
-{
-$this->previous = $previous;
-}
-
-public function getAllPrevious()
-{
-$exceptions = array();
-$e = $this;
-while ($e = $e->getPrevious()) {
-$exceptions[] = $e;
-}
-
-return $exceptions;
-}
-
-public function getTrace()
-{
-return $this->trace;
-}
-
-public function setTraceFromException(\Exception $exception)
-{
-$this->setTrace($exception->getTrace(), $exception->getFile(), $exception->getLine());
-}
-
-public function setTrace($trace, $file, $line)
-{
-$this->trace = array();
-$this->trace[] = array(
-'namespace' => '',
-'short_class' => '',
-'class' => '',
-'type' => '',
-'function' => '',
-'file' => $file,
-'line' => $line,
-'args' => array(),
-);
-foreach ($trace as $entry) {
-$class = '';
-$namespace = '';
-if (isset($entry['class'])) {
-$parts = explode('\\', $entry['class']);
-$class = array_pop($parts);
-$namespace = implode('\\', $parts);
-}
-
-$this->trace[] = array(
-'namespace' => $namespace,
-'short_class' => $class,
-'class' => isset($entry['class']) ? $entry['class'] : '',
-'type' => isset($entry['type']) ? $entry['type'] : '',
-'function' => isset($entry['function']) ? $entry['function'] : null,
-'file' => isset($entry['file']) ? $entry['file'] : null,
-'line' => isset($entry['line']) ? $entry['line'] : null,
-'args' => isset($entry['args']) ? $this->flattenArgs($entry['args']) : array(),
-);
-}
-}
-
-private function flattenArgs($args, $level = 0, &$count = 0)
-{
-$result = array();
-foreach ($args as $key => $value) {
-if (++$count > 1e4) {
-return array('array', '*SKIPPED over 10000 entries*');
-}
-if ($value instanceof \__PHP_Incomplete_Class) {
-
- $result[$key] = array('incomplete-object', $this->getClassNameFromIncomplete($value));
-} elseif (\is_object($value)) {
-$result[$key] = array('object', \get_class($value));
-} elseif (\is_array($value)) {
-if ($level > 10) {
-$result[$key] = array('array', '*DEEP NESTED ARRAY*');
-} else {
-$result[$key] = array('array', $this->flattenArgs($value, $level + 1, $count));
-}
-} elseif (null === $value) {
-$result[$key] = array('null', null);
-} elseif (\is_bool($value)) {
-$result[$key] = array('boolean', $value);
-} elseif (\is_resource($value)) {
-$result[$key] = array('resource', get_resource_type($value));
-} else {
-$result[$key] = array('string', (string) $value);
-}
-}
-
-return $result;
-}
-
-private function getClassNameFromIncomplete(\__PHP_Incomplete_Class $value)
-{
-$array = new \ArrayObject($value);
-
-return $array['__PHP_Incomplete_Class_Name'];
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Debug\Exception;
-
-
-
-
-
-
-class OutOfMemoryException extends FatalErrorException
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Debug\Exception;
-
-
-
-
-
-
-class UndefinedFunctionException extends FatalErrorException
-{
-public function __construct($message, \ErrorException $previous)
-{
-parent::__construct(
-$message,
-$previous->getCode(),
-$previous->getSeverity(),
-$previous->getFile(),
-$previous->getLine(),
-null,
-true,
-null,
-$previous->getPrevious()
-);
-$this->setTrace($previous->getTrace());
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Debug\Exception;
-
-
-
-
-
-
-class UndefinedMethodException extends FatalErrorException
-{
-public function __construct($message, \ErrorException $previous)
-{
-parent::__construct(
-$message,
-$previous->getCode(),
-$previous->getSeverity(),
-$previous->getFile(),
-$previous->getLine(),
-null,
-true,
-null,
-$previous->getPrevious()
-);
-$this->setTrace($previous->getTrace());
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Debug;
-
-use Symfony\Component\Debug\Exception\FlattenException;
-use Symfony\Component\Debug\Exception\OutOfMemoryException;
-use Symfony\Component\HttpFoundation\Response;
-
-
-
-
-
-
-
-
-
-
-
-
-
-class ExceptionHandler
-{
-private $debug;
-private $charset;
-private $handler;
-private $caughtBuffer;
-private $caughtLength;
-private $fileLinkFormat;
-
-public function __construct($debug = true, $charset = null, $fileLinkFormat = null)
-{
-if (false !== strpos($charset, '%')) {
-@trigger_error('Providing $fileLinkFormat as second argument to '.__METHOD__.' is deprecated since Symfony 2.8 and will be unsupported in 3.0. Please provide it as third argument, after $charset.', E_USER_DEPRECATED);
-
-
- $pivot = $fileLinkFormat;
-$fileLinkFormat = $charset;
-$charset = $pivot;
-}
-$this->debug = $debug;
-$this->charset = $charset ?: ini_get('default_charset') ?: 'UTF-8';
-$this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
-}
-
-
-
-
-
-
-
-
-
-
-public static function register($debug = true, $charset = null, $fileLinkFormat = null)
-{
-$handler = new static($debug, $charset, $fileLinkFormat);
-
-$prev = set_exception_handler(array($handler, 'handle'));
-if (\is_array($prev) && $prev[0] instanceof ErrorHandler) {
-restore_exception_handler();
-$prev[0]->setExceptionHandler(array($handler, 'handle'));
-}
-
-return $handler;
-}
-
-
-
-
-
-
-
-
-public function setHandler($handler)
-{
-if (null !== $handler && !\is_callable($handler)) {
-throw new \LogicException('The exception handler must be a valid PHP callable.');
-}
-$old = $this->handler;
-$this->handler = $handler;
-
-return $old;
-}
-
-
-
-
-
-
-
-
-public function setFileLinkFormat($format)
-{
-$old = $this->fileLinkFormat;
-$this->fileLinkFormat = $format;
-
-return $old;
-}
-
-
-
-
-
-
-
-
-
-public function handle(\Exception $exception)
-{
-if (null === $this->handler || $exception instanceof OutOfMemoryException) {
-$this->failSafeHandle($exception);
-
-return;
-}
-
-$caughtLength = $this->caughtLength = 0;
-
-ob_start(array($this, 'catchOutput'));
-$this->failSafeHandle($exception);
-while (null === $this->caughtBuffer && ob_end_flush()) {
-
- }
-if (isset($this->caughtBuffer[0])) {
-ob_start(array($this, 'cleanOutput'));
-echo $this->caughtBuffer;
-$caughtLength = ob_get_length();
-}
-$this->caughtBuffer = null;
-
-try {
-\call_user_func($this->handler, $exception);
-$this->caughtLength = $caughtLength;
-} catch (\Exception $e) {
-if (!$caughtLength) {
-
- throw $exception;
-}
-}
-}
-
-
-
-
-
-
-
-
-private function failSafeHandle(\Exception $exception)
-{
-if (class_exists('Symfony\Component\HttpFoundation\Response', false)
-&& __CLASS__ !== \get_class($this)
-&& ($reflector = new \ReflectionMethod($this, 'createResponse'))
-&& __CLASS__ !== $reflector->class
-) {
-$response = $this->createResponse($exception);
-$response->sendHeaders();
-$response->sendContent();
-@trigger_error(sprintf("The %s::createResponse method is deprecated since Symfony 2.8 and won't be called anymore when handling an exception in 3.0.", $reflector->class), E_USER_DEPRECATED);
-
-return;
-}
-
-$this->sendPhpResponse($exception);
-}
-
-
-
-
-
-
-
-
-
-public function sendPhpResponse($exception)
-{
-if (!$exception instanceof FlattenException) {
-$exception = FlattenException::create($exception);
-}
-
-if (!headers_sent()) {
-header(sprintf('HTTP/1.0 %s', $exception->getStatusCode()));
-foreach ($exception->getHeaders() as $name => $value) {
-header($name.': '.$value, false);
-}
-header('Content-Type: text/html; charset='.$this->charset);
-}
-
-echo $this->decorate($this->getContent($exception), $this->getStylesheet($exception));
-}
-
-
-
-
-
-
-
-
-
-
-public function createResponse($exception)
-{
-@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-if (!$exception instanceof FlattenException) {
-$exception = FlattenException::create($exception);
-}
-
-return Response::create($this->getHtml($exception), $exception->getStatusCode(), $exception->getHeaders())->setCharset($this->charset);
-}
-
-
-
-
-
-
-
-
-public function getHtml($exception)
-{
-if (!$exception instanceof FlattenException) {
-$exception = FlattenException::create($exception);
-}
-
-return $this->decorate($this->getContent($exception), $this->getStylesheet($exception));
-}
-
-
-
-
-
-
-public function getContent(FlattenException $exception)
-{
-switch ($exception->getStatusCode()) {
-case 404:
-$title = 'Sorry, the page you are looking for could not be found.';
-break;
-default:
-$title = 'Whoops, looks like something went wrong.';
-}
-
-$content = '';
-if ($this->debug) {
-try {
-$count = \count($exception->getAllPrevious());
-$total = $count + 1;
-foreach ($exception->toArray() as $position => $e) {
-$ind = $count - $position + 1;
-$class = $this->formatClass($e['class']);
-$message = nl2br($this->escapeHtml($e['message']));
-$content .= sprintf(<<<'EOF'
-                        <h2 class="block_exception clear_fix">
-                            <span class="exception_counter">%d/%d</span>
-                            <span class="exception_title">%s%s:</span>
-                            <span class="exception_message">%s</span>
-                        </h2>
-                        <div class="block">
-                            <ol class="traces list_exception">
-
-EOF
-, $ind, $total, $class, $this->formatPath($e['trace'][0]['file'], $e['trace'][0]['line']), $message);
-foreach ($e['trace'] as $trace) {
-$content .= '       <li>';
-if ($trace['function']) {
-$content .= sprintf('at %s%s%s(%s)', $this->formatClass($trace['class']), $trace['type'], $trace['function'], $this->formatArgs($trace['args']));
-}
-if (isset($trace['file']) && isset($trace['line'])) {
-$content .= $this->formatPath($trace['file'], $trace['line']);
-}
-$content .= "</li>\n";
-}
-
-$content .= "    </ol>\n</div>\n";
-}
-} catch (\Exception $e) {
-
- if ($this->debug) {
-$title = sprintf('Exception thrown when handling an exception (%s: %s)', \get_class($e), $this->escapeHtml($e->getMessage()));
-} else {
-$title = 'Whoops, looks like something went wrong.';
-}
-}
-}
-
-return <<<EOF
-            <div id="sf-resetcontent" class="sf-reset">
-                <h1>$title</h1>
-                $content
-            </div>
-EOF;
-}
-
-
-
-
-
-
-public function getStylesheet(FlattenException $exception)
-{
-return <<<'EOF'
-            .sf-reset { font: 11px Verdana, Arial, sans-serif; color: #333 }
-            .sf-reset .clear { clear:both; height:0; font-size:0; line-height:0; }
-            .sf-reset .clear_fix:after { display:block; height:0; clear:both; visibility:hidden; }
-            .sf-reset .clear_fix { display:inline-block; }
-            .sf-reset * html .clear_fix { height:1%; }
-            .sf-reset .clear_fix { display:block; }
-            .sf-reset, .sf-reset .block { margin: auto }
-            .sf-reset abbr { border-bottom: 1px dotted #000; cursor: help; }
-            .sf-reset p { font-size:14px; line-height:20px; color:#868686; padding-bottom:20px }
-            .sf-reset strong { font-weight:bold; }
-            .sf-reset a { color:#6c6159; cursor: default; }
-            .sf-reset a img { border:none; }
-            .sf-reset a:hover { text-decoration:underline; }
-            .sf-reset em { font-style:italic; }
-            .sf-reset h1, .sf-reset h2 { font: 20px Georgia, "Times New Roman", Times, serif }
-            .sf-reset .exception_counter { background-color: #fff; color: #333; padding: 6px; float: left; margin-right: 10px; float: left; display: block; }
-            .sf-reset .exception_title { margin-left: 3em; margin-bottom: 0.7em; display: block; }
-            .sf-reset .exception_message { margin-left: 3em; display: block; }
-            .sf-reset .traces li { font-size:12px; padding: 2px 4px; list-style-type:decimal; margin-left:20px; }
-            .sf-reset .block { background-color:#FFFFFF; padding:10px 28px; margin-bottom:20px;
-                -webkit-border-bottom-right-radius: 16px;
-                -webkit-border-bottom-left-radius: 16px;
-                -moz-border-radius-bottomright: 16px;
-                -moz-border-radius-bottomleft: 16px;
-                border-bottom-right-radius: 16px;
-                border-bottom-left-radius: 16px;
-                border-bottom:1px solid #ccc;
-                border-right:1px solid #ccc;
-                border-left:1px solid #ccc;
-                word-wrap: break-word;
-            }
-            .sf-reset .block_exception { background-color:#ddd; color: #333; padding:20px;
-                -webkit-border-top-left-radius: 16px;
-                -webkit-border-top-right-radius: 16px;
-                -moz-border-radius-topleft: 16px;
-                -moz-border-radius-topright: 16px;
-                border-top-left-radius: 16px;
-                border-top-right-radius: 16px;
-                border-top:1px solid #ccc;
-                border-right:1px solid #ccc;
-                border-left:1px solid #ccc;
-                overflow: hidden;
-                word-wrap: break-word;
-            }
-            .sf-reset a { background:none; color:#868686; text-decoration:none; }
-            .sf-reset a:hover { background:none; color:#313131; text-decoration:underline; }
-            .sf-reset ol { padding: 10px 0; }
-            .sf-reset h1 { background-color:#FFFFFF; padding: 15px 28px; margin-bottom: 20px;
-                -webkit-border-radius: 10px;
-                -moz-border-radius: 10px;
-                border-radius: 10px;
-                border: 1px solid #ccc;
-            }
-EOF;
-}
-
-private function decorate($content, $css)
-{
-return <<<EOF
-<!DOCTYPE html>
-<html>
-    <head>
-        <meta charset="{$this->charset}" />
-        <meta name="robots" content="noindex,nofollow" />
-        <style>
-            /* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html */
-            html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:text-top;}sub{vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;}
-
-            html { background: #eee; padding: 10px }
-            img { border: 0; }
-            #sf-resetcontent { width:970px; margin:0 auto; }
-            $css
-        </style>
-    </head>
-    <body>
-        $content
-    </body>
-</html>
-EOF;
-}
-
-private function formatClass($class)
-{
-$parts = explode('\\', $class);
-
-return sprintf('<abbr title="%s">%s</abbr>', $class, array_pop($parts));
-}
-
-private function formatPath($path, $line)
-{
-$path = $this->escapeHtml($path);
-$file = preg_match('#[^/\\\\]*$#', $path, $file) ? $file[0] : $path;
-
-if ($linkFormat = $this->fileLinkFormat) {
-$link = strtr($this->escapeHtml($linkFormat), array('%f' => $path, '%l' => (int) $line));
-
-return sprintf(' in <a href="%s" title="Go to source">%s line %d</a>', $link, $file, $line);
-}
-
-return sprintf(' in <a title="%s line %3$d" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">%s line %d</a>', $path, $file, $line);
-}
-
-
-
-
-
-
-
-
-private function formatArgs(array $args)
-{
-$result = array();
-foreach ($args as $key => $item) {
-if ('object' === $item[0]) {
-$formattedValue = sprintf('<em>object</em>(%s)', $this->formatClass($item[1]));
-} elseif ('array' === $item[0]) {
-$formattedValue = sprintf('<em>array</em>(%s)', \is_array($item[1]) ? $this->formatArgs($item[1]) : $item[1]);
-} elseif ('string' === $item[0]) {
-$formattedValue = sprintf("'%s'", $this->escapeHtml($item[1]));
-} elseif ('null' === $item[0]) {
-$formattedValue = '<em>null</em>';
-} elseif ('boolean' === $item[0]) {
-$formattedValue = '<em>'.strtolower(var_export($item[1], true)).'</em>';
-} elseif ('resource' === $item[0]) {
-$formattedValue = '<em>resource</em>';
-} else {
-$formattedValue = str_replace("\n", '', var_export($this->escapeHtml((string) $item[1]), true));
-}
-
-$result[] = \is_int($key) ? $formattedValue : sprintf("'%s' => %s", $this->escapeHtml($key), $formattedValue);
-}
-
-return implode(', ', $result);
-}
-
-
-
-
-
-
-protected static function utf8Htmlize($str)
-{
-@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-return htmlspecialchars($str, ENT_QUOTES | (\PHP_VERSION_ID >= 50400 ? ENT_SUBSTITUTE : 0), 'UTF-8');
-}
-
-
-
-
-private function escapeHtml($str)
-{
-return htmlspecialchars($str, ENT_QUOTES | (\PHP_VERSION_ID >= 50400 ? ENT_SUBSTITUTE : 0), $this->charset);
-}
-
-
-
-
-public function catchOutput($buffer)
-{
-$this->caughtBuffer = $buffer;
-
-return '';
-}
-
-
-
-
-public function cleanOutput($buffer)
-{
-if ($this->caughtLength) {
-
- $cleanBuffer = substr_replace($buffer, '', 0, $this->caughtLength);
-if (isset($cleanBuffer[0])) {
-$buffer = $cleanBuffer;
-}
-}
-
-return $buffer;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Debug\FatalErrorHandler;
-
-use Composer\Autoload\ClassLoader as ComposerClassLoader;
-use Symfony\Component\ClassLoader\ClassLoader as SymfonyClassLoader;
-use Symfony\Component\ClassLoader\UniversalClassLoader as SymfonyUniversalClassLoader;
-use Symfony\Component\Debug\DebugClassLoader;
-use Symfony\Component\Debug\Exception\ClassNotFoundException;
-use Symfony\Component\Debug\Exception\FatalErrorException;
-
-
-
-
-
-
-class ClassNotFoundFatalErrorHandler implements FatalErrorHandlerInterface
-{
-
-
-
-public function handleError(array $error, FatalErrorException $exception)
-{
-$messageLen = \strlen($error['message']);
-$notFoundSuffix = '\' not found';
-$notFoundSuffixLen = \strlen($notFoundSuffix);
-if ($notFoundSuffixLen > $messageLen) {
-return;
-}
-
-if (0 !== substr_compare($error['message'], $notFoundSuffix, -$notFoundSuffixLen)) {
-return;
-}
-
-foreach (array('class', 'interface', 'trait') as $typeName) {
-$prefix = ucfirst($typeName).' \'';
-$prefixLen = \strlen($prefix);
-if (0 !== strpos($error['message'], $prefix)) {
-continue;
-}
-
-$fullyQualifiedClassName = substr($error['message'], $prefixLen, -$notFoundSuffixLen);
-if (false !== $namespaceSeparatorIndex = strrpos($fullyQualifiedClassName, '\\')) {
-$className = substr($fullyQualifiedClassName, $namespaceSeparatorIndex + 1);
-$namespacePrefix = substr($fullyQualifiedClassName, 0, $namespaceSeparatorIndex);
-$message = sprintf('Attempted to load %s "%s" from namespace "%s".', $typeName, $className, $namespacePrefix);
-$tail = ' for another namespace?';
-} else {
-$className = $fullyQualifiedClassName;
-$message = sprintf('Attempted to load %s "%s" from the global namespace.', $typeName, $className);
-$tail = '?';
-}
-
-if ($candidates = $this->getClassCandidates($className)) {
-$tail = array_pop($candidates).'"?';
-if ($candidates) {
-$tail = ' for e.g. "'.implode('", "', $candidates).'" or "'.$tail;
-} else {
-$tail = ' for "'.$tail;
-}
-}
-$message .= "\nDid you forget a \"use\" statement".$tail;
-
-return new ClassNotFoundException($message, $exception);
-}
-}
-
-
-
-
-
-
-
-
-
-
-
-private function getClassCandidates($class)
-{
-if (!\is_array($functions = spl_autoload_functions())) {
-return array();
-}
-
-
- $classes = array();
-
-foreach ($functions as $function) {
-if (!\is_array($function)) {
-continue;
-}
-
- if ($function[0] instanceof DebugClassLoader) {
-$function = $function[0]->getClassLoader();
-
-
- if (\is_object($function)) {
-$function = array($function);
-}
-
-if (!\is_array($function)) {
-continue;
-}
-}
-
-if ($function[0] instanceof ComposerClassLoader || $function[0] instanceof SymfonyClassLoader || $function[0] instanceof SymfonyUniversalClassLoader) {
-foreach ($function[0]->getPrefixes() as $prefix => $paths) {
-foreach ($paths as $path) {
-$classes = array_merge($classes, $this->findClassInPath($path, $class, $prefix));
-}
-}
-}
-if ($function[0] instanceof ComposerClassLoader) {
-foreach ($function[0]->getPrefixesPsr4() as $prefix => $paths) {
-foreach ($paths as $path) {
-$classes = array_merge($classes, $this->findClassInPath($path, $class, $prefix));
-}
-}
-}
-}
-
-return array_unique($classes);
-}
-
-
-
-
-
-
-
-
-private function findClassInPath($path, $class, $prefix)
-{
-if (!$path = realpath($path.'/'.strtr($prefix, '\\_', '//')) ?: realpath($path.'/'.\dirname(strtr($prefix, '\\_', '//'))) ?: realpath($path)) {
-return array();
-}
-
-$classes = array();
-$filename = $class.'.php';
-foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path, \RecursiveDirectoryIterator::SKIP_DOTS), \RecursiveIteratorIterator::LEAVES_ONLY) as $file) {
-if ($filename == $file->getFileName() && $class = $this->convertFileToClass($path, $file->getPathName(), $prefix)) {
-$classes[] = $class;
-}
-}
-
-return $classes;
-}
-
-
-
-
-
-
-
-
-private function convertFileToClass($path, $file, $prefix)
-{
-$candidates = array(
-
- $namespacedClass = str_replace(array($path.\DIRECTORY_SEPARATOR, '.php', '/'), array('', '', '\\'), $file),
-
- $prefix.$namespacedClass,
-
- $prefix.'\\'.$namespacedClass,
-
- str_replace('\\', '_', $namespacedClass),
-
- str_replace('\\', '_', $prefix.$namespacedClass),
-
- str_replace('\\', '_', $prefix.'\\'.$namespacedClass),
-);
-
-if ($prefix) {
-$candidates = array_filter($candidates, function ($candidate) use ($prefix) { return 0 === strpos($candidate, $prefix); });
-}
-
-
- 
- 
- foreach ($candidates as $candidate) {
-if ($this->classExists($candidate)) {
-return $candidate;
-}
-}
-
-require_once $file;
-
-foreach ($candidates as $candidate) {
-if ($this->classExists($candidate)) {
-return $candidate;
-}
-}
-}
-
-
-
-
-
-
-private function classExists($class)
-{
-return class_exists($class, false) || interface_exists($class, false) || (\function_exists('trait_exists') && trait_exists($class, false));
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Debug\FatalErrorHandler;
-
-use Symfony\Component\Debug\Exception\FatalErrorException;
-
-
-
-
-
-
-interface FatalErrorHandlerInterface
-{
-
-
-
-
-
-
-
-
-public function handleError(array $error, FatalErrorException $exception);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Debug\FatalErrorHandler;
-
-use Symfony\Component\Debug\Exception\FatalErrorException;
-use Symfony\Component\Debug\Exception\UndefinedFunctionException;
-
-
-
-
-
-
-class UndefinedFunctionFatalErrorHandler implements FatalErrorHandlerInterface
-{
-
-
-
-public function handleError(array $error, FatalErrorException $exception)
-{
-$messageLen = \strlen($error['message']);
-$notFoundSuffix = '()';
-$notFoundSuffixLen = \strlen($notFoundSuffix);
-if ($notFoundSuffixLen > $messageLen) {
-return;
-}
-
-if (0 !== substr_compare($error['message'], $notFoundSuffix, -$notFoundSuffixLen)) {
-return;
-}
-
-$prefix = 'Call to undefined function ';
-$prefixLen = \strlen($prefix);
-if (0 !== strpos($error['message'], $prefix)) {
-return;
-}
-
-$fullyQualifiedFunctionName = substr($error['message'], $prefixLen, -$notFoundSuffixLen);
-if (false !== $namespaceSeparatorIndex = strrpos($fullyQualifiedFunctionName, '\\')) {
-$functionName = substr($fullyQualifiedFunctionName, $namespaceSeparatorIndex + 1);
-$namespacePrefix = substr($fullyQualifiedFunctionName, 0, $namespaceSeparatorIndex);
-$message = sprintf('Attempted to call function "%s" from namespace "%s".', $functionName, $namespacePrefix);
-} else {
-$functionName = $fullyQualifiedFunctionName;
-$message = sprintf('Attempted to call function "%s" from the global namespace.', $functionName);
-}
-
-$candidates = array();
-foreach (get_defined_functions() as $type => $definedFunctionNames) {
-foreach ($definedFunctionNames as $definedFunctionName) {
-if (false !== $namespaceSeparatorIndex = strrpos($definedFunctionName, '\\')) {
-$definedFunctionNameBasename = substr($definedFunctionName, $namespaceSeparatorIndex + 1);
-} else {
-$definedFunctionNameBasename = $definedFunctionName;
-}
-
-if ($definedFunctionNameBasename === $functionName) {
-$candidates[] = '\\'.$definedFunctionName;
-}
-}
-}
-
-if ($candidates) {
-sort($candidates);
-$last = array_pop($candidates).'"?';
-if ($candidates) {
-$candidates = 'e.g. "'.implode('", "', $candidates).'" or "'.$last;
-} else {
-$candidates = '"'.$last;
-}
-$message .= "\nDid you mean to call ".$candidates;
-}
-
-return new UndefinedFunctionException($message, $exception);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Debug\FatalErrorHandler;
-
-use Symfony\Component\Debug\Exception\FatalErrorException;
-use Symfony\Component\Debug\Exception\UndefinedMethodException;
-
-
-
-
-
-
-class UndefinedMethodFatalErrorHandler implements FatalErrorHandlerInterface
-{
-
-
-
-public function handleError(array $error, FatalErrorException $exception)
-{
-preg_match('/^Call to undefined method (.*)::(.*)\(\)$/', $error['message'], $matches);
-if (!$matches) {
-return;
-}
-
-$className = $matches[1];
-$methodName = $matches[2];
-
-$message = sprintf('Attempted to call an undefined method named "%s" of class "%s".', $methodName, $className);
-
-if (!class_exists($className) || null === $methods = get_class_methods($className)) {
-
- return new UndefinedMethodException($message, $exception);
-}
-
-$candidates = array();
-foreach ($methods as $definedMethodName) {
-$lev = levenshtein($methodName, $definedMethodName);
-if ($lev <= \strlen($methodName) / 3 || false !== strpos($definedMethodName, $methodName)) {
-$candidates[] = $definedMethodName;
-}
-}
-
-if ($candidates) {
-sort($candidates);
-$last = array_pop($candidates).'"?';
-if ($candidates) {
-$candidates = 'e.g. "'.implode('", "', $candidates).'" or "'.$last;
-} else {
-$candidates = '"'.$last;
-}
-
-$message .= "\nDid you mean to call ".$candidates;
-}
-
-return new UndefinedMethodException($message, $exception);
-}
-}
-Copyright (c) 2004-2018 Fabien Potencier
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Filesystem\Exception;
-
-
-
-
-
-
-interface ExceptionInterface
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Filesystem\Exception;
-
-
-
-
-
-
-
-class FileNotFoundException extends IOException
-{
-public function __construct($message = null, $code = 0, \Exception $previous = null, $path = null)
-{
-if (null === $message) {
-if (null === $path) {
-$message = 'File could not be found.';
-} else {
-$message = sprintf('File "%s" could not be found.', $path);
-}
-}
-
-parent::__construct($message, $code, $previous, $path);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Filesystem\Exception;
-
-
-
-
-
-
-
-
-class IOException extends \RuntimeException implements IOExceptionInterface
-{
-private $path;
-
-public function __construct($message, $code = 0, \Exception $previous = null, $path = null)
-{
-$this->path = $path;
-
-parent::__construct($message, $code, $previous);
-}
-
-
-
-
-public function getPath()
-{
-return $this->path;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Filesystem\Exception;
-
-
-
-
-
-
-interface IOExceptionInterface extends ExceptionInterface
-{
-
-
-
-
-
-public function getPath();
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Filesystem;
-
-use Symfony\Component\Filesystem\Exception\FileNotFoundException;
-use Symfony\Component\Filesystem\Exception\IOException;
-
-
-
-
-
-
-class Filesystem
-{
-private static $lastError;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function copy($originFile, $targetFile, $overwriteNewerFiles = false)
-{
-$originIsLocal = stream_is_local($originFile) || 0 === stripos($originFile, 'file://');
-if ($originIsLocal && !is_file($originFile)) {
-throw new FileNotFoundException(sprintf('Failed to copy "%s" because file does not exist.', $originFile), 0, null, $originFile);
-}
-
-$this->mkdir(\dirname($targetFile));
-
-$doCopy = true;
-if (!$overwriteNewerFiles && null === parse_url($originFile, PHP_URL_HOST) && is_file($targetFile)) {
-$doCopy = filemtime($originFile) > filemtime($targetFile);
-}
-
-if ($doCopy) {
-
- if (false === $source = @fopen($originFile, 'r')) {
-throw new IOException(sprintf('Failed to copy "%s" to "%s" because source file could not be opened for reading.', $originFile, $targetFile), 0, null, $originFile);
-}
-
-
- if (false === $target = @fopen($targetFile, 'w', null, stream_context_create(array('ftp' => array('overwrite' => true))))) {
-throw new IOException(sprintf('Failed to copy "%s" to "%s" because target file could not be opened for writing.', $originFile, $targetFile), 0, null, $originFile);
-}
-
-$bytesCopied = stream_copy_to_stream($source, $target);
-fclose($source);
-fclose($target);
-unset($source, $target);
-
-if (!is_file($targetFile)) {
-throw new IOException(sprintf('Failed to copy "%s" to "%s".', $originFile, $targetFile), 0, null, $originFile);
-}
-
-if ($originIsLocal) {
-
- @chmod($targetFile, fileperms($targetFile) | (fileperms($originFile) & 0111));
-
-if ($bytesCopied !== $bytesOrigin = filesize($originFile)) {
-throw new IOException(sprintf('Failed to copy the whole content of "%s" to "%s" (%g of %g bytes copied).', $originFile, $targetFile, $bytesCopied, $bytesOrigin), 0, null, $originFile);
-}
-}
-}
-}
-
-
-
-
-
-
-
-
-
-public function mkdir($dirs, $mode = 0777)
-{
-foreach ($this->toIterator($dirs) as $dir) {
-if (is_dir($dir)) {
-continue;
-}
-
-if (!self::box('mkdir', $dir, $mode, true)) {
-if (!is_dir($dir)) {
-
- if (self::$lastError) {
-throw new IOException(sprintf('Failed to create "%s": %s.', $dir, self::$lastError), 0, null, $dir);
-}
-throw new IOException(sprintf('Failed to create "%s"', $dir), 0, null, $dir);
-}
-}
-}
-}
-
-
-
-
-
-
-
-
-public function exists($files)
-{
-$maxPathLength = PHP_MAXPATHLEN - 2;
-
-foreach ($this->toIterator($files) as $file) {
-if (\strlen($file) > $maxPathLength) {
-throw new IOException(sprintf('Could not check if file exist because path length exceeds %d characters.', $maxPathLength), 0, null, $file);
-}
-
-if (!file_exists($file)) {
-return false;
-}
-}
-
-return true;
-}
-
-
-
-
-
-
-
-
-
-
-public function touch($files, $time = null, $atime = null)
-{
-foreach ($this->toIterator($files) as $file) {
-$touch = $time ? @touch($file, $time, $atime) : @touch($file);
-if (true !== $touch) {
-throw new IOException(sprintf('Failed to touch "%s".', $file), 0, null, $file);
-}
-}
-}
-
-
-
-
-
-
-
-
-public function remove($files)
-{
-if ($files instanceof \Traversable) {
-$files = iterator_to_array($files, false);
-} elseif (!\is_array($files)) {
-$files = array($files);
-}
-$files = array_reverse($files);
-foreach ($files as $file) {
-if (is_link($file)) {
-
- if (!(self::box('unlink', $file) || '\\' !== \DIRECTORY_SEPARATOR || self::box('rmdir', $file)) && file_exists($file)) {
-throw new IOException(sprintf('Failed to remove symlink "%s": %s.', $file, self::$lastError));
-}
-} elseif (is_dir($file)) {
-$this->remove(new \FilesystemIterator($file, \FilesystemIterator::CURRENT_AS_PATHNAME | \FilesystemIterator::SKIP_DOTS));
-
-if (!self::box('rmdir', $file) && file_exists($file)) {
-throw new IOException(sprintf('Failed to remove directory "%s": %s.', $file, self::$lastError));
-}
-} elseif (!self::box('unlink', $file) && file_exists($file)) {
-throw new IOException(sprintf('Failed to remove file "%s": %s.', $file, self::$lastError));
-}
-}
-}
-
-
-
-
-
-
-
-
-
-
-
-public function chmod($files, $mode, $umask = 0000, $recursive = false)
-{
-foreach ($this->toIterator($files) as $file) {
-if (true !== @chmod($file, $mode & ~$umask)) {
-throw new IOException(sprintf('Failed to chmod file "%s".', $file), 0, null, $file);
-}
-if ($recursive && is_dir($file) && !is_link($file)) {
-$this->chmod(new \FilesystemIterator($file), $mode, $umask, true);
-}
-}
-}
-
-
-
-
-
-
-
-
-
-
-public function chown($files, $user, $recursive = false)
-{
-foreach ($this->toIterator($files) as $file) {
-if ($recursive && is_dir($file) && !is_link($file)) {
-$this->chown(new \FilesystemIterator($file), $user, true);
-}
-if (is_link($file) && \function_exists('lchown')) {
-if (true !== @lchown($file, $user)) {
-throw new IOException(sprintf('Failed to chown file "%s".', $file), 0, null, $file);
-}
-} else {
-if (true !== @chown($file, $user)) {
-throw new IOException(sprintf('Failed to chown file "%s".', $file), 0, null, $file);
-}
-}
-}
-}
-
-
-
-
-
-
-
-
-
-
-public function chgrp($files, $group, $recursive = false)
-{
-foreach ($this->toIterator($files) as $file) {
-if ($recursive && is_dir($file) && !is_link($file)) {
-$this->chgrp(new \FilesystemIterator($file), $group, true);
-}
-if (is_link($file) && \function_exists('lchgrp')) {
-if (true !== @lchgrp($file, $group) || (\defined('HHVM_VERSION') && !posix_getgrnam($group))) {
-throw new IOException(sprintf('Failed to chgrp file "%s".', $file), 0, null, $file);
-}
-} else {
-if (true !== @chgrp($file, $group)) {
-throw new IOException(sprintf('Failed to chgrp file "%s".', $file), 0, null, $file);
-}
-}
-}
-}
-
-
-
-
-
-
-
-
-
-
-
-public function rename($origin, $target, $overwrite = false)
-{
-
- if (!$overwrite && $this->isReadable($target)) {
-throw new IOException(sprintf('Cannot rename because the target "%s" already exists.', $target), 0, null, $target);
-}
-
-if (true !== @rename($origin, $target)) {
-if (is_dir($origin)) {
-
- $this->mirror($origin, $target, null, array('override' => $overwrite, 'delete' => $overwrite));
-$this->remove($origin);
-
-return;
-}
-throw new IOException(sprintf('Cannot rename "%s" to "%s".', $origin, $target), 0, null, $target);
-}
-}
-
-
-
-
-
-
-
-
-
-
-private function isReadable($filename)
-{
-$maxPathLength = PHP_MAXPATHLEN - 2;
-
-if (\strlen($filename) > $maxPathLength) {
-throw new IOException(sprintf('Could not check if file is readable because path length exceeds %d characters.', $maxPathLength), 0, null, $filename);
-}
-
-return is_readable($filename);
-}
-
-
-
-
-
-
-
-
-
-
-public function symlink($originDir, $targetDir, $copyOnWindows = false)
-{
-if ('\\' === \DIRECTORY_SEPARATOR) {
-$originDir = strtr($originDir, '/', '\\');
-$targetDir = strtr($targetDir, '/', '\\');
-
-if ($copyOnWindows) {
-$this->mirror($originDir, $targetDir);
-
-return;
-}
-}
-
-$this->mkdir(\dirname($targetDir));
-
-if (is_link($targetDir)) {
-if (readlink($targetDir) === $originDir) {
-return;
-}
-$this->remove($targetDir);
-}
-
-if (!self::box('symlink', $originDir, $targetDir)) {
-if (null !== self::$lastError) {
-if ('\\' === \DIRECTORY_SEPARATOR && false !== strpos(self::$lastError, 'error code(1314)')) {
-throw new IOException('Unable to create symlink due to error code 1314: \'A required privilege is not held by the client\'. Do you have the required Administrator-rights?', 0, null, $targetDir);
-}
-}
-throw new IOException(sprintf('Failed to create symbolic link from "%s" to "%s".', $originDir, $targetDir), 0, null, $targetDir);
-}
-}
-
-
-
-
-
-
-
-
-
-public function makePathRelative($endPath, $startPath)
-{
-
- if ('\\' === \DIRECTORY_SEPARATOR) {
-$endPath = str_replace('\\', '/', $endPath);
-$startPath = str_replace('\\', '/', $startPath);
-}
-
-$stripDriveLetter = function ($path) {
-if (\strlen($path) > 2 && ':' === $path[1] && '/' === $path[2] && ctype_alpha($path[0])) {
-return substr($path, 2);
-}
-
-return $path;
-};
-
-$endPath = $stripDriveLetter($endPath);
-$startPath = $stripDriveLetter($startPath);
-
-
- $startPathArr = explode('/', trim($startPath, '/'));
-$endPathArr = explode('/', trim($endPath, '/'));
-
-$normalizePathArray = function ($pathSegments, $absolute) {
-$result = array();
-
-foreach ($pathSegments as $segment) {
-if ('..' === $segment && ($absolute || \count($result))) {
-array_pop($result);
-} elseif ('.' !== $segment) {
-$result[] = $segment;
-}
-}
-
-return $result;
-};
-
-$startPathArr = $normalizePathArray($startPathArr, static::isAbsolutePath($startPath));
-$endPathArr = $normalizePathArray($endPathArr, static::isAbsolutePath($endPath));
-
-
- $index = 0;
-while (isset($startPathArr[$index]) && isset($endPathArr[$index]) && $startPathArr[$index] === $endPathArr[$index]) {
-++$index;
-}
-
-
- if (1 === \count($startPathArr) && '' === $startPathArr[0]) {
-$depth = 0;
-} else {
-$depth = \count($startPathArr) - $index;
-}
-
-
- $traverser = str_repeat('../', $depth);
-
-$endPathRemainder = implode('/', \array_slice($endPathArr, $index));
-
-
- $relativePath = $traverser.('' !== $endPathRemainder ? $endPathRemainder.'/' : '');
-
-return '' === $relativePath ? './' : $relativePath;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function mirror($originDir, $targetDir, \Traversable $iterator = null, $options = array())
-{
-$targetDir = rtrim($targetDir, '/\\');
-$originDir = rtrim($originDir, '/\\');
-$originDirLen = \strlen($originDir);
-
-
- if ($this->exists($targetDir) && isset($options['delete']) && $options['delete']) {
-$deleteIterator = $iterator;
-if (null === $deleteIterator) {
-$flags = \FilesystemIterator::SKIP_DOTS;
-$deleteIterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($targetDir, $flags), \RecursiveIteratorIterator::CHILD_FIRST);
-}
-$targetDirLen = \strlen($targetDir);
-foreach ($deleteIterator as $file) {
-$origin = $originDir.substr($file->getPathname(), $targetDirLen);
-if (!$this->exists($origin)) {
-$this->remove($file);
-}
-}
-}
-
-$copyOnWindows = false;
-if (isset($options['copy_on_windows'])) {
-$copyOnWindows = $options['copy_on_windows'];
-}
-
-if (null === $iterator) {
-$flags = $copyOnWindows ? \FilesystemIterator::SKIP_DOTS | \FilesystemIterator::FOLLOW_SYMLINKS : \FilesystemIterator::SKIP_DOTS;
-$iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($originDir, $flags), \RecursiveIteratorIterator::SELF_FIRST);
-}
-
-if ($this->exists($originDir)) {
-$this->mkdir($targetDir);
-}
-
-foreach ($iterator as $file) {
-$target = $targetDir.substr($file->getPathname(), $originDirLen);
-
-if ($copyOnWindows) {
-if (is_file($file)) {
-$this->copy($file, $target, isset($options['override']) ? $options['override'] : false);
-} elseif (is_dir($file)) {
-$this->mkdir($target);
-} else {
-throw new IOException(sprintf('Unable to guess "%s" file type.', $file), 0, null, $file);
-}
-} else {
-if (is_link($file)) {
-$this->symlink($file->getLinkTarget(), $target);
-} elseif (is_dir($file)) {
-$this->mkdir($target);
-} elseif (is_file($file)) {
-$this->copy($file, $target, isset($options['override']) ? $options['override'] : false);
-} else {
-throw new IOException(sprintf('Unable to guess "%s" file type.', $file), 0, null, $file);
-}
-}
-}
-}
-
-
-
-
-
-
-
-
-public function isAbsolutePath($file)
-{
-return strspn($file, '/\\', 0, 1)
-|| (\strlen($file) > 3 && ctype_alpha($file[0])
-&& ':' === substr($file, 1, 1)
-&& strspn($file, '/\\', 2, 1)
-)
-|| null !== parse_url($file, PHP_URL_SCHEME)
-;
-}
-
-
-
-
-
-
-
-
-
-
-public function tempnam($dir, $prefix)
-{
-list($scheme, $hierarchy) = $this->getSchemeAndHierarchy($dir);
-
-
- if (null === $scheme || 'file' === $scheme || 'gs' === $scheme) {
-$tmpFile = @tempnam($hierarchy, $prefix);
-
-
- if (false !== $tmpFile) {
-if (null !== $scheme && 'gs' !== $scheme) {
-return $scheme.'://'.$tmpFile;
-}
-
-return $tmpFile;
-}
-
-throw new IOException('A temporary file could not be created.');
-}
-
-
- for ($i = 0; $i < 10; ++$i) {
-
- $tmpFile = $dir.'/'.$prefix.uniqid(mt_rand(), true);
-
-
- 
- $handle = @fopen($tmpFile, 'x+');
-
-
- if (false === $handle) {
-continue;
-}
-
-
- @fclose($handle);
-
-return $tmpFile;
-}
-
-throw new IOException('A temporary file could not be created.');
-}
-
-
-
-
-
-
-
-
-
-
-
-public function dumpFile($filename, $content, $mode = 0666)
-{
-$dir = \dirname($filename);
-
-if (!is_dir($dir)) {
-$this->mkdir($dir);
-}
-
-if (!is_writable($dir)) {
-throw new IOException(sprintf('Unable to write to the "%s" directory.', $dir), 0, null, $dir);
-}
-
-$tmpFile = $this->tempnam($dir, basename($filename));
-
-if (false === @file_put_contents($tmpFile, $content)) {
-throw new IOException(sprintf('Failed to write file "%s".', $filename), 0, null, $filename);
-}
-
-if (null !== $mode) {
-if (\func_num_args() > 2) {
-@trigger_error('Support for modifying file permissions is deprecated since Symfony 2.3.12 and will be removed in 3.0.', E_USER_DEPRECATED);
-}
-
-$this->chmod($tmpFile, $mode);
-} elseif (file_exists($filename)) {
-@chmod($tmpFile, fileperms($filename));
-}
-
-$this->rename($tmpFile, $filename, true);
-}
-
-
-
-
-
-
-private function toIterator($files)
-{
-if (!$files instanceof \Traversable) {
-$files = new \ArrayObject(\is_array($files) ? $files : array($files));
-}
-
-return $files;
-}
-
-
-
-
-
-
-
-
-private function getSchemeAndHierarchy($filename)
-{
-$components = explode('://', $filename, 2);
-
-return 2 === \count($components) ? array($components[0], $components[1]) : array(null, $components[0]);
-}
-
-private static function box($func)
-{
-self::$lastError = null;
-\set_error_handler(__CLASS__.'::handleError');
-try {
-$result = \call_user_func_array($func, \array_slice(\func_get_args(), 1));
-\restore_error_handler();
-
-return $result;
-} catch (\Throwable $e) {
-} catch (\Exception $e) {
-}
-\restore_error_handler();
-
-throw $e;
-}
-
-
-
-
-public static function handleError($type, $msg)
-{
-self::$lastError = $msg;
-}
-}
-Copyright (c) 2004-2018 Fabien Potencier
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Filesystem;
-
-use Symfony\Component\Filesystem\Exception\IOException;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-class LockHandler
-{
-private $file;
-private $handle;
-
-
-
-
-
-
-
-public function __construct($name, $lockPath = null)
-{
-$lockPath = $lockPath ?: sys_get_temp_dir();
-
-if (!is_dir($lockPath)) {
-$fs = new Filesystem();
-$fs->mkdir($lockPath);
-}
-
-if (!is_writable($lockPath)) {
-throw new IOException(sprintf('The directory "%s" is not writable.', $lockPath), 0, null, $lockPath);
-}
-
-$this->file = sprintf('%s/sf.%s.%s.lock', $lockPath, preg_replace('/[^a-z0-9\._-]+/i', '-', $name), hash('sha256', $name));
-}
-
-
-
-
-
-
-
-
-
-
-public function lock($blocking = false)
-{
-if ($this->handle) {
-return true;
-}
-
-$error = null;
-
-
- set_error_handler(function ($errno, $msg) use (&$error) {
-$error = $msg;
-});
-
-if (!$this->handle = fopen($this->file, 'r+') ?: fopen($this->file, 'r')) {
-if ($this->handle = fopen($this->file, 'x')) {
-chmod($this->file, 0666);
-} elseif (!$this->handle = fopen($this->file, 'r+') ?: fopen($this->file, 'r')) {
-usleep(100); 
- $this->handle = fopen($this->file, 'r+') ?: fopen($this->file, 'r');
-}
-}
-restore_error_handler();
-
-if (!$this->handle) {
-throw new IOException($error, 0, null, $this->file);
-}
-
-
- 
- if (!flock($this->handle, LOCK_EX | ($blocking ? 0 : LOCK_NB))) {
-fclose($this->handle);
-$this->handle = null;
-
-return false;
-}
-
-return true;
-}
-
-
-
-
-public function release()
-{
-if ($this->handle) {
-flock($this->handle, LOCK_UN | LOCK_NB);
-fclose($this->handle);
-$this->handle = null;
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Adapter;
-
-@trigger_error('The '.__NAMESPACE__.'\AbstractAdapter class is deprecated since Symfony 2.8 and will be removed in 3.0. Use directly the Finder class instead.', E_USER_DEPRECATED);
-
-
-
-
-
-
-
-
-abstract class AbstractAdapter implements AdapterInterface
-{
-protected $followLinks = false;
-protected $mode = 0;
-protected $minDepth = 0;
-protected $maxDepth = PHP_INT_MAX;
-protected $exclude = array();
-protected $names = array();
-protected $notNames = array();
-protected $contains = array();
-protected $notContains = array();
-protected $sizes = array();
-protected $dates = array();
-protected $filters = array();
-protected $sort = false;
-protected $paths = array();
-protected $notPaths = array();
-protected $ignoreUnreadableDirs = false;
-
-private static $areSupported = array();
-
-
-
-
-public function isSupported()
-{
-$name = $this->getName();
-
-if (!array_key_exists($name, self::$areSupported)) {
-self::$areSupported[$name] = $this->canBeUsed();
-}
-
-return self::$areSupported[$name];
-}
-
-
-
-
-public function setFollowLinks($followLinks)
-{
-$this->followLinks = $followLinks;
-
-return $this;
-}
-
-
-
-
-public function setMode($mode)
-{
-$this->mode = $mode;
-
-return $this;
-}
-
-
-
-
-public function setDepths(array $depths)
-{
-$this->minDepth = 0;
-$this->maxDepth = PHP_INT_MAX;
-
-foreach ($depths as $comparator) {
-switch ($comparator->getOperator()) {
-case '>':
-$this->minDepth = $comparator->getTarget() + 1;
-break;
-case '>=':
-$this->minDepth = $comparator->getTarget();
-break;
-case '<':
-$this->maxDepth = $comparator->getTarget() - 1;
-break;
-case '<=':
-$this->maxDepth = $comparator->getTarget();
-break;
-default:
-$this->minDepth = $this->maxDepth = $comparator->getTarget();
-}
-}
-
-return $this;
-}
-
-
-
-
-public function setExclude(array $exclude)
-{
-$this->exclude = $exclude;
-
-return $this;
-}
-
-
-
-
-public function setNames(array $names)
-{
-$this->names = $names;
-
-return $this;
-}
-
-
-
-
-public function setNotNames(array $notNames)
-{
-$this->notNames = $notNames;
-
-return $this;
-}
-
-
-
-
-public function setContains(array $contains)
-{
-$this->contains = $contains;
-
-return $this;
-}
-
-
-
-
-public function setNotContains(array $notContains)
-{
-$this->notContains = $notContains;
-
-return $this;
-}
-
-
-
-
-public function setSizes(array $sizes)
-{
-$this->sizes = $sizes;
-
-return $this;
-}
-
-
-
-
-public function setDates(array $dates)
-{
-$this->dates = $dates;
-
-return $this;
-}
-
-
-
-
-public function setFilters(array $filters)
-{
-$this->filters = $filters;
-
-return $this;
-}
-
-
-
-
-public function setSort($sort)
-{
-$this->sort = $sort;
-
-return $this;
-}
-
-
-
-
-public function setPath(array $paths)
-{
-$this->paths = $paths;
-
-return $this;
-}
-
-
-
-
-public function setNotPath(array $notPaths)
-{
-$this->notPaths = $notPaths;
-
-return $this;
-}
-
-
-
-
-public function ignoreUnreadableDirs($ignore = true)
-{
-$this->ignoreUnreadableDirs = (bool) $ignore;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-abstract protected function canBeUsed();
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Adapter;
-
-@trigger_error('The '.__NAMESPACE__.'\AbstractFindAdapter class is deprecated since Symfony 2.8 and will be removed in 3.0. Use directly the Finder class instead.', E_USER_DEPRECATED);
-
-use Symfony\Component\Finder\Comparator\DateComparator;
-use Symfony\Component\Finder\Comparator\NumberComparator;
-use Symfony\Component\Finder\Exception\AccessDeniedException;
-use Symfony\Component\Finder\Expression\Expression;
-use Symfony\Component\Finder\Iterator;
-use Symfony\Component\Finder\Shell\Command;
-use Symfony\Component\Finder\Shell\Shell;
-
-
-
-
-
-
-
-
-abstract class AbstractFindAdapter extends AbstractAdapter
-{
-protected $shell;
-
-public function __construct()
-{
-$this->shell = new Shell();
-}
-
-
-
-
-public function searchInDirectory($dir)
-{
-
- $dir = realpath($dir);
-
-
- if (Iterator\FileTypeFilterIterator::ONLY_DIRECTORIES === $this->mode && ($this->contains || $this->notContains)) {
-return new Iterator\FilePathsIterator(array(), $dir);
-}
-
-$command = Command::create();
-$find = $this->buildFindCommand($command, $dir);
-
-if ($this->followLinks) {
-$find->add('-follow');
-}
-
-$find->add('-mindepth')->add($this->minDepth + 1);
-
-if (PHP_INT_MAX !== $this->maxDepth) {
-$find->add('-maxdepth')->add($this->maxDepth + 1);
-}
-
-if (Iterator\FileTypeFilterIterator::ONLY_DIRECTORIES === $this->mode) {
-$find->add('-type d');
-} elseif (Iterator\FileTypeFilterIterator::ONLY_FILES === $this->mode) {
-$find->add('-type f');
-}
-
-$this->buildNamesFiltering($find, $this->names);
-$this->buildNamesFiltering($find, $this->notNames, true);
-$this->buildPathsFiltering($find, $dir, $this->paths);
-$this->buildPathsFiltering($find, $dir, $this->notPaths, true);
-$this->buildSizesFiltering($find, $this->sizes);
-$this->buildDatesFiltering($find, $this->dates);
-
-$useGrep = $this->shell->testCommand('grep') && $this->shell->testCommand('xargs');
-$useSort = \is_int($this->sort) && $this->shell->testCommand('sort') && $this->shell->testCommand('cut');
-
-if ($useGrep && ($this->contains || $this->notContains)) {
-$grep = $command->ins('grep');
-$this->buildContentFiltering($grep, $this->contains);
-$this->buildContentFiltering($grep, $this->notContains, true);
-}
-
-if ($useSort) {
-$this->buildSorting($command, $this->sort);
-}
-
-$command->setErrorHandler(
-$this->ignoreUnreadableDirs
-
- ? function ($stderr) { }
-: function ($stderr) { throw new AccessDeniedException($stderr); }
-);
-
-$paths = $this->shell->testCommand('uniq') ? $command->add('| uniq')->execute() : array_unique($command->execute());
-$iterator = new Iterator\FilePathsIterator($paths, $dir);
-
-if ($this->exclude) {
-$iterator = new Iterator\ExcludeDirectoryFilterIterator($iterator, $this->exclude);
-}
-
-if (!$useGrep && ($this->contains || $this->notContains)) {
-$iterator = new Iterator\FilecontentFilterIterator($iterator, $this->contains, $this->notContains);
-}
-
-if ($this->filters) {
-$iterator = new Iterator\CustomFilterIterator($iterator, $this->filters);
-}
-
-if (!$useSort && $this->sort) {
-$iteratorAggregate = new Iterator\SortableIterator($iterator, $this->sort);
-$iterator = $iteratorAggregate->getIterator();
-}
-
-return $iterator;
-}
-
-
-
-
-protected function canBeUsed()
-{
-return $this->shell->testCommand('find');
-}
-
-
-
-
-
-
-
-protected function buildFindCommand(Command $command, $dir)
-{
-return $command
-->ins('find')
-->add('find ')
-->arg($dir)
-->add('-noleaf'); 
- }
-
-
-
-
-
-
-private function buildNamesFiltering(Command $command, array $names, $not = false)
-{
-if (0 === \count($names)) {
-return;
-}
-
-$command->add($not ? '-not' : null)->cmd('(');
-
-foreach ($names as $i => $name) {
-$expr = Expression::create($name);
-
-
- if ($expr->isGlob() && $expr->getGlob()->isExpandable()) {
-$expr = Expression::create($expr->getGlob()->toRegex(false));
-}
-
-
- 
- 
- if ($expr->isRegex()) {
-$regex = $expr->getRegex();
-$regex->prepend($regex->hasStartFlag() ? '/' : '/[^/]*')
-->setStartFlag(false)
-->setStartJoker(true)
-->replaceJokers('[^/]');
-if (!$regex->hasEndFlag() || $regex->hasEndJoker()) {
-$regex->setEndJoker(false)->append('[^/]*');
-}
-}
-
-$command
-->add($i > 0 ? '-or' : null)
-->add($expr->isRegex()
-? ($expr->isCaseSensitive() ? '-regex' : '-iregex')
-: ($expr->isCaseSensitive() ? '-name' : '-iname')
-)
-->arg($expr->renderPattern());
-}
-
-$command->cmd(')');
-}
-
-
-
-
-
-
-
-private function buildPathsFiltering(Command $command, $dir, array $paths, $not = false)
-{
-if (0 === \count($paths)) {
-return;
-}
-
-$command->add($not ? '-not' : null)->cmd('(');
-
-foreach ($paths as $i => $path) {
-$expr = Expression::create($path);
-
-
- if ($expr->isGlob() && $expr->getGlob()->isExpandable()) {
-$expr = Expression::create($expr->getGlob()->toRegex(false));
-}
-
-
- if ($expr->isRegex()) {
-$regex = $expr->getRegex();
-$regex->prepend($regex->hasStartFlag() ? preg_quote($dir).\DIRECTORY_SEPARATOR : '.*')->setEndJoker(!$regex->hasEndFlag());
-} else {
-$expr->prepend('*')->append('*');
-}
-
-$command
-->add($i > 0 ? '-or' : null)
-->add($expr->isRegex()
-? ($expr->isCaseSensitive() ? '-regex' : '-iregex')
-: ($expr->isCaseSensitive() ? '-path' : '-ipath')
-)
-->arg($expr->renderPattern());
-}
-
-$command->cmd(')');
-}
-
-
-
-
-
-private function buildSizesFiltering(Command $command, array $sizes)
-{
-foreach ($sizes as $i => $size) {
-$command->add($i > 0 ? '-and' : null);
-
-switch ($size->getOperator()) {
-case '<=':
-$command->add('-size -'.($size->getTarget() + 1).'c');
-break;
-case '>=':
-$command->add('-size +'.($size->getTarget() - 1).'c');
-break;
-case '>':
-$command->add('-size +'.$size->getTarget().'c');
-break;
-case '!=':
-$command->add('-size -'.$size->getTarget().'c');
-$command->add('-size +'.$size->getTarget().'c');
-break;
-case '<':
-default:
-$command->add('-size -'.$size->getTarget().'c');
-}
-}
-}
-
-
-
-
-
-private function buildDatesFiltering(Command $command, array $dates)
-{
-foreach ($dates as $i => $date) {
-$command->add($i > 0 ? '-and' : null);
-
-$mins = (int) round((time() - $date->getTarget()) / 60);
-
-if (0 > $mins) {
-
- $command->add(' -mmin -0');
-
- return;
-}
-
-switch ($date->getOperator()) {
-case '<=':
-$command->add('-mmin +'.($mins - 1));
-break;
-case '>=':
-$command->add('-mmin -'.($mins + 1));
-break;
-case '>':
-$command->add('-mmin -'.$mins);
-break;
-case '!=':
-$command->add('-mmin +'.$mins.' -or -mmin -'.$mins);
-break;
-case '<':
-default:
-$command->add('-mmin +'.$mins);
-}
-}
-}
-
-
-
-
-
-
-
-private function buildSorting(Command $command, $sort)
-{
-$this->buildFormatSorting($command, $sort);
-}
-
-
-
-
-
-abstract protected function buildFormatSorting(Command $command, $sort);
-
-
-
-
-
-
-abstract protected function buildContentFiltering(Command $command, array $contains, $not = false);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Adapter;
-
-
-
-
-
-
-interface AdapterInterface
-{
-
-
-
-
-
-public function setFollowLinks($followLinks);
-
-
-
-
-
-
-public function setMode($mode);
-
-
-
-
-public function setExclude(array $exclude);
-
-
-
-
-public function setDepths(array $depths);
-
-
-
-
-public function setNames(array $names);
-
-
-
-
-public function setNotNames(array $notNames);
-
-
-
-
-public function setContains(array $contains);
-
-
-
-
-public function setNotContains(array $notContains);
-
-
-
-
-public function setSizes(array $sizes);
-
-
-
-
-public function setDates(array $dates);
-
-
-
-
-public function setFilters(array $filters);
-
-
-
-
-
-
-public function setSort($sort);
-
-
-
-
-public function setPath(array $paths);
-
-
-
-
-public function setNotPath(array $notPaths);
-
-
-
-
-
-
-public function ignoreUnreadableDirs($ignore = true);
-
-
-
-
-
-
-public function searchInDirectory($dir);
-
-
-
-
-
-
-public function isSupported();
-
-
-
-
-
-
-public function getName();
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Adapter;
-
-@trigger_error('The '.__NAMESPACE__.'\BsdFindAdapter class is deprecated since Symfony 2.8 and will be removed in 3.0. Use directly the Finder class instead.', E_USER_DEPRECATED);
-
-use Symfony\Component\Finder\Expression\Expression;
-use Symfony\Component\Finder\Iterator\SortableIterator;
-use Symfony\Component\Finder\Shell\Command;
-use Symfony\Component\Finder\Shell\Shell;
-
-
-
-
-
-
-
-
-class BsdFindAdapter extends AbstractFindAdapter
-{
-
-
-
-public function getName()
-{
-return 'bsd_find';
-}
-
-
-
-
-protected function canBeUsed()
-{
-return \in_array($this->shell->getType(), array(Shell::TYPE_BSD, Shell::TYPE_DARWIN)) && parent::canBeUsed();
-}
-
-
-
-
-protected function buildFormatSorting(Command $command, $sort)
-{
-switch ($sort) {
-case SortableIterator::SORT_BY_NAME:
-$command->ins('sort')->add('| sort');
-
-return;
-case SortableIterator::SORT_BY_TYPE:
-$format = '%HT';
-break;
-case SortableIterator::SORT_BY_ACCESSED_TIME:
-$format = '%a';
-break;
-case SortableIterator::SORT_BY_CHANGED_TIME:
-$format = '%c';
-break;
-case SortableIterator::SORT_BY_MODIFIED_TIME:
-$format = '%m';
-break;
-default:
-throw new \InvalidArgumentException(sprintf('Unknown sort options: %s.', $sort));
-}
-
-$command
-->add('-print0 | xargs -0 stat -f')
-->arg($format.'%t%N')
-->add('| sort | cut -f 2');
-}
-
-
-
-
-protected function buildFindCommand(Command $command, $dir)
-{
-parent::buildFindCommand($command, $dir)->addAtIndex('-E', 1);
-
-return $command;
-}
-
-
-
-
-protected function buildContentFiltering(Command $command, array $contains, $not = false)
-{
-foreach ($contains as $contain) {
-$expr = Expression::create($contain);
-
-
- $command
-->add('| grep -v \'^$\'')
-->add('| xargs -I{} grep -I')
-->add($expr->isCaseSensitive() ? null : '-i')
-->add($not ? '-L' : '-l')
-->add('-Ee')->arg($expr->renderPattern())
-->add('{}')
-;
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Adapter;
-
-@trigger_error('The '.__NAMESPACE__.'\GnuFindAdapter class is deprecated since Symfony 2.8 and will be removed in 3.0. Use directly the Finder class instead.', E_USER_DEPRECATED);
-
-use Symfony\Component\Finder\Expression\Expression;
-use Symfony\Component\Finder\Iterator\SortableIterator;
-use Symfony\Component\Finder\Shell\Command;
-use Symfony\Component\Finder\Shell\Shell;
-
-
-
-
-
-
-
-
-class GnuFindAdapter extends AbstractFindAdapter
-{
-
-
-
-public function getName()
-{
-return 'gnu_find';
-}
-
-
-
-
-protected function buildFormatSorting(Command $command, $sort)
-{
-switch ($sort) {
-case SortableIterator::SORT_BY_NAME:
-$command->ins('sort')->add('| sort');
-
-return;
-case SortableIterator::SORT_BY_TYPE:
-$format = '%y';
-break;
-case SortableIterator::SORT_BY_ACCESSED_TIME:
-$format = '%A@';
-break;
-case SortableIterator::SORT_BY_CHANGED_TIME:
-$format = '%C@';
-break;
-case SortableIterator::SORT_BY_MODIFIED_TIME:
-$format = '%T@';
-break;
-default:
-throw new \InvalidArgumentException(sprintf('Unknown sort options: %s.', $sort));
-}
-
-$command
-->get('find')
-->add('-printf')
-->arg($format.' %h/%f\\n')
-->add('| sort | cut')
-->arg('-d ')
-->arg('-f2-')
-;
-}
-
-
-
-
-protected function canBeUsed()
-{
-return Shell::TYPE_UNIX === $this->shell->getType() && parent::canBeUsed();
-}
-
-
-
-
-protected function buildFindCommand(Command $command, $dir)
-{
-return parent::buildFindCommand($command, $dir)->add('-regextype posix-extended');
-}
-
-
-
-
-protected function buildContentFiltering(Command $command, array $contains, $not = false)
-{
-foreach ($contains as $contain) {
-$expr = Expression::create($contain);
-
-
- $command
-->add('| xargs -I{} -r grep -I')
-->add($expr->isCaseSensitive() ? null : '-i')
-->add($not ? '-L' : '-l')
-->add('-Ee')->arg($expr->renderPattern())
-->add('{}')
-;
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Adapter;
-
-@trigger_error('The '.__NAMESPACE__.'\PhpAdapter class is deprecated since Symfony 2.8 and will be removed in 3.0. Use directly the Finder class instead.', E_USER_DEPRECATED);
-
-use Symfony\Component\Finder\Iterator;
-
-
-
-
-
-
-
-
-class PhpAdapter extends AbstractAdapter
-{
-
-
-
-public function searchInDirectory($dir)
-{
-$flags = \RecursiveDirectoryIterator::SKIP_DOTS;
-
-if ($this->followLinks) {
-$flags |= \RecursiveDirectoryIterator::FOLLOW_SYMLINKS;
-}
-
-$iterator = new Iterator\RecursiveDirectoryIterator($dir, $flags, $this->ignoreUnreadableDirs);
-
-if ($this->exclude) {
-$iterator = new Iterator\ExcludeDirectoryFilterIterator($iterator, $this->exclude);
-}
-
-$iterator = new \RecursiveIteratorIterator($iterator, \RecursiveIteratorIterator::SELF_FIRST);
-
-if ($this->minDepth > 0 || $this->maxDepth < PHP_INT_MAX) {
-$iterator = new Iterator\DepthRangeFilterIterator($iterator, $this->minDepth, $this->maxDepth);
-}
-
-if ($this->mode) {
-$iterator = new Iterator\FileTypeFilterIterator($iterator, $this->mode);
-}
-
-if ($this->names || $this->notNames) {
-$iterator = new Iterator\FilenameFilterIterator($iterator, $this->names, $this->notNames);
-}
-
-if ($this->contains || $this->notContains) {
-$iterator = new Iterator\FilecontentFilterIterator($iterator, $this->contains, $this->notContains);
-}
-
-if ($this->sizes) {
-$iterator = new Iterator\SizeRangeFilterIterator($iterator, $this->sizes);
-}
-
-if ($this->dates) {
-$iterator = new Iterator\DateRangeFilterIterator($iterator, $this->dates);
-}
-
-if ($this->filters) {
-$iterator = new Iterator\CustomFilterIterator($iterator, $this->filters);
-}
-
-if ($this->paths || $this->notPaths) {
-$iterator = new Iterator\PathFilterIterator($iterator, $this->paths, $this->notPaths);
-}
-
-if ($this->sort) {
-$iteratorAggregate = new Iterator\SortableIterator($iterator, $this->sort);
-$iterator = $iteratorAggregate->getIterator();
-}
-
-return $iterator;
-}
-
-
-
-
-public function getName()
-{
-return 'php';
-}
-
-
-
-
-protected function canBeUsed()
-{
-return true;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Comparator;
-
-
-
-
-
-
-class Comparator
-{
-private $target;
-private $operator = '==';
-
-
-
-
-
-
-public function getTarget()
-{
-return $this->target;
-}
-
-
-
-
-
-
-public function setTarget($target)
-{
-$this->target = $target;
-}
-
-
-
-
-
-
-public function getOperator()
-{
-return $this->operator;
-}
-
-
-
-
-
-
-
-
-public function setOperator($operator)
-{
-if (!$operator) {
-$operator = '==';
-}
-
-if (!\in_array($operator, array('>', '<', '>=', '<=', '==', '!='))) {
-throw new \InvalidArgumentException(sprintf('Invalid operator "%s".', $operator));
-}
-
-$this->operator = $operator;
-}
-
-
-
-
-
-
-
-
-public function test($test)
-{
-switch ($this->operator) {
-case '>':
-return $test > $this->target;
-case '>=':
-return $test >= $this->target;
-case '<':
-return $test < $this->target;
-case '<=':
-return $test <= $this->target;
-case '!=':
-return $test != $this->target;
-}
-
-return $test == $this->target;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Comparator;
-
-
-
-
-
-
-class DateComparator extends Comparator
-{
-
-
-
-
-
-public function __construct($test)
-{
-if (!preg_match('#^\s*(==|!=|[<>]=?|after|since|before|until)?\s*(.+?)\s*$#i', $test, $matches)) {
-throw new \InvalidArgumentException(sprintf('Don\'t understand "%s" as a date test.', $test));
-}
-
-try {
-$date = new \DateTime($matches[2]);
-$target = $date->format('U');
-} catch (\Exception $e) {
-throw new \InvalidArgumentException(sprintf('"%s" is not a valid date.', $matches[2]));
-}
-
-$operator = isset($matches[1]) ? $matches[1] : '==';
-if ('since' === $operator || 'after' === $operator) {
-$operator = '>';
-}
-
-if ('until' === $operator || 'before' === $operator) {
-$operator = '<';
-}
-
-$this->setOperator($operator);
-$this->setTarget($target);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Comparator;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-class NumberComparator extends Comparator
-{
-
-
-
-
-
-public function __construct($test)
-{
-if (!preg_match('#^\s*(==|!=|[<>]=?)?\s*([0-9\.]+)\s*([kmg]i?)?\s*$#i', $test, $matches)) {
-throw new \InvalidArgumentException(sprintf('Don\'t understand "%s" as a number test.', $test));
-}
-
-$target = $matches[2];
-if (!is_numeric($target)) {
-throw new \InvalidArgumentException(sprintf('Invalid number "%s".', $target));
-}
-if (isset($matches[3])) {
-
- switch (strtolower($matches[3])) {
-case 'k':
-$target *= 1000;
-break;
-case 'ki':
-$target *= 1024;
-break;
-case 'm':
-$target *= 1000000;
-break;
-case 'mi':
-$target *= 1024 * 1024;
-break;
-case 'g':
-$target *= 1000000000;
-break;
-case 'gi':
-$target *= 1024 * 1024 * 1024;
-break;
-}
-}
-
-$this->setTarget($target);
-$this->setOperator(isset($matches[1]) ? $matches[1] : '==');
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Exception;
-
-
-
-
-class AccessDeniedException extends \UnexpectedValueException
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Exception;
-
-@trigger_error('The '.__NAMESPACE__.'\AdapterFailureException class is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-use Symfony\Component\Finder\Adapter\AdapterInterface;
-
-
-
-
-
-
-
-
-class AdapterFailureException extends \RuntimeException implements ExceptionInterface
-{
-private $adapter;
-
-
-
-
-
-
-public function __construct(AdapterInterface $adapter, $message = null, \Exception $previous = null)
-{
-$this->adapter = $adapter;
-parent::__construct($message ?: 'Search failed with "'.$adapter->getName().'" adapter.', $previous);
-}
-
-
-
-
-public function getAdapter()
-{
-return $this->adapter;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Exception;
-
-
-
-
-interface ExceptionInterface
-{
-
-
-
-public function getAdapter();
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Exception;
-
-@trigger_error('The '.__NAMESPACE__.'\OperationNotPermitedException class is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-
-
-
-
-
-class OperationNotPermitedException extends AdapterFailureException
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Exception;
-
-@trigger_error('The '.__NAMESPACE__.'\ShellCommandFailureException class is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-use Symfony\Component\Finder\Adapter\AdapterInterface;
-use Symfony\Component\Finder\Shell\Command;
-
-
-
-
-
-
-class ShellCommandFailureException extends AdapterFailureException
-{
-private $command;
-
-public function __construct(AdapterInterface $adapter, Command $command, \Exception $previous = null)
-{
-$this->command = $command;
-parent::__construct($adapter, 'Shell command failed: "'.$command->join().'".', $previous);
-}
-
-
-
-
-public function getCommand()
-{
-return $this->command;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Expression;
-
-@trigger_error('The '.__NAMESPACE__.'\Expression class is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-
-
-
-class Expression implements ValueInterface
-{
-const TYPE_REGEX = 1;
-const TYPE_GLOB = 2;
-
-
-
-
-private $value;
-
-
-
-
-
-
-public static function create($expr)
-{
-return new self($expr);
-}
-
-
-
-
-public function __construct($expr)
-{
-try {
-$this->value = Regex::create($expr);
-} catch (\InvalidArgumentException $e) {
-$this->value = new Glob($expr);
-}
-}
-
-
-
-
-public function __toString()
-{
-return $this->render();
-}
-
-
-
-
-public function render()
-{
-return $this->value->render();
-}
-
-
-
-
-public function renderPattern()
-{
-return $this->value->renderPattern();
-}
-
-
-
-
-public function isCaseSensitive()
-{
-return $this->value->isCaseSensitive();
-}
-
-
-
-
-public function getType()
-{
-return $this->value->getType();
-}
-
-
-
-
-public function prepend($expr)
-{
-$this->value->prepend($expr);
-
-return $this;
-}
-
-
-
-
-public function append($expr)
-{
-$this->value->append($expr);
-
-return $this;
-}
-
-
-
-
-public function isRegex()
-{
-return self::TYPE_REGEX === $this->value->getType();
-}
-
-
-
-
-public function isGlob()
-{
-return self::TYPE_GLOB === $this->value->getType();
-}
-
-
-
-
-
-
-public function getGlob()
-{
-if (self::TYPE_GLOB !== $this->value->getType()) {
-throw new \LogicException('Regex can\'t be transformed to glob.');
-}
-
-return $this->value;
-}
-
-
-
-
-public function getRegex()
-{
-return self::TYPE_REGEX === $this->value->getType() ? $this->value : $this->value->toRegex();
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Expression;
-
-@trigger_error('The '.__NAMESPACE__.'\Glob class is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-use Symfony\Component\Finder\Glob as FinderGlob;
-
-
-
-
-class Glob implements ValueInterface
-{
-private $pattern;
-
-
-
-
-public function __construct($pattern)
-{
-$this->pattern = $pattern;
-}
-
-
-
-
-public function render()
-{
-return $this->pattern;
-}
-
-
-
-
-public function renderPattern()
-{
-return $this->pattern;
-}
-
-
-
-
-public function getType()
-{
-return Expression::TYPE_GLOB;
-}
-
-
-
-
-public function isCaseSensitive()
-{
-return true;
-}
-
-
-
-
-public function prepend($expr)
-{
-$this->pattern = $expr.$this->pattern;
-
-return $this;
-}
-
-
-
-
-public function append($expr)
-{
-$this->pattern .= $expr;
-
-return $this;
-}
-
-
-
-
-
-
-public function isExpandable()
-{
-return false !== strpos($this->pattern, '{')
-&& false !== strpos($this->pattern, '}');
-}
-
-
-
-
-
-
-
-public function toRegex($strictLeadingDot = true, $strictWildcardSlash = true)
-{
-$regex = FinderGlob::toRegex($this->pattern, $strictLeadingDot, $strictWildcardSlash, '');
-
-return new Regex($regex);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Expression;
-
-@trigger_error('The '.__NAMESPACE__.'\Regex class is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-
-
-
-class Regex implements ValueInterface
-{
-const START_FLAG = '^';
-const END_FLAG = '$';
-const BOUNDARY = '~';
-const JOKER = '.*';
-const ESCAPING = '\\';
-
-
-
-
-private $pattern;
-
-
-
-
-private $options;
-
-
-
-
-private $startFlag;
-
-
-
-
-private $endFlag;
-
-
-
-
-private $startJoker;
-
-
-
-
-private $endJoker;
-
-
-
-
-
-
-
-
-public static function create($expr)
-{
-if (preg_match('/^(.{3,}?)([imsxuADU]*)$/', $expr, $m)) {
-$start = substr($m[1], 0, 1);
-$end = substr($m[1], -1);
-
-if (
-($start === $end && !preg_match('/[*?[:alnum:] \\\\]/', $start))
-|| ('{' === $start && '}' === $end)
-|| ('(' === $start && ')' === $end)
-) {
-return new self(substr($m[1], 1, -1), $m[2], $end);
-}
-}
-
-throw new \InvalidArgumentException('Given expression is not a regex.');
-}
-
-
-
-
-
-
-public function __construct($pattern, $options = '', $delimiter = null)
-{
-if (null !== $delimiter) {
-
- $pattern = str_replace('\\'.$delimiter, $delimiter, $pattern);
-}
-
-$this->parsePattern($pattern);
-$this->options = $options;
-}
-
-
-
-
-public function __toString()
-{
-return $this->render();
-}
-
-
-
-
-public function render()
-{
-return self::BOUNDARY
-.$this->renderPattern()
-.self::BOUNDARY
-.$this->options;
-}
-
-
-
-
-public function renderPattern()
-{
-return ($this->startFlag ? self::START_FLAG : '')
-.($this->startJoker ? self::JOKER : '')
-.str_replace(self::BOUNDARY, '\\'.self::BOUNDARY, $this->pattern)
-.($this->endJoker ? self::JOKER : '')
-.($this->endFlag ? self::END_FLAG : '');
-}
-
-
-
-
-public function isCaseSensitive()
-{
-return !$this->hasOption('i');
-}
-
-
-
-
-public function getType()
-{
-return Expression::TYPE_REGEX;
-}
-
-
-
-
-public function prepend($expr)
-{
-$this->pattern = $expr.$this->pattern;
-
-return $this;
-}
-
-
-
-
-public function append($expr)
-{
-$this->pattern .= $expr;
-
-return $this;
-}
-
-
-
-
-
-
-public function hasOption($option)
-{
-return false !== strpos($this->options, $option);
-}
-
-
-
-
-
-
-public function addOption($option)
-{
-if (!$this->hasOption($option)) {
-$this->options .= $option;
-}
-
-return $this;
-}
-
-
-
-
-
-
-public function removeOption($option)
-{
-$this->options = str_replace($option, '', $this->options);
-
-return $this;
-}
-
-
-
-
-
-
-public function setStartFlag($startFlag)
-{
-$this->startFlag = $startFlag;
-
-return $this;
-}
-
-
-
-
-public function hasStartFlag()
-{
-return $this->startFlag;
-}
-
-
-
-
-
-
-public function setEndFlag($endFlag)
-{
-$this->endFlag = (bool) $endFlag;
-
-return $this;
-}
-
-
-
-
-public function hasEndFlag()
-{
-return $this->endFlag;
-}
-
-
-
-
-
-
-public function setStartJoker($startJoker)
-{
-$this->startJoker = $startJoker;
-
-return $this;
-}
-
-
-
-
-public function hasStartJoker()
-{
-return $this->startJoker;
-}
-
-
-
-
-
-
-public function setEndJoker($endJoker)
-{
-$this->endJoker = (bool) $endJoker;
-
-return $this;
-}
-
-
-
-
-public function hasEndJoker()
-{
-return $this->endJoker;
-}
-
-
-
-
-public function replaceJokers($replacement)
-{
-$replace = function ($subject) use ($replacement) {
-$subject = $subject[0];
-$replace = 0 === substr_count($subject, '\\') % 2;
-
-return $replace ? str_replace('.', $replacement, $subject) : $subject;
-};
-
-$this->pattern = preg_replace_callback('~[\\\\]*\\.~', $replace, $this->pattern);
-
-return $this;
-}
-
-
-
-
-private function parsePattern($pattern)
-{
-if ($this->startFlag = self::START_FLAG === substr($pattern, 0, 1)) {
-$pattern = substr($pattern, 1);
-}
-
-if ($this->startJoker = self::JOKER === substr($pattern, 0, 2)) {
-$pattern = substr($pattern, 2);
-}
-
-if ($this->endFlag = (self::END_FLAG === substr($pattern, -1) && self::ESCAPING !== substr($pattern, -2, -1))) {
-$pattern = substr($pattern, 0, -1);
-}
-
-if ($this->endJoker = (self::JOKER === substr($pattern, -2) && self::ESCAPING !== substr($pattern, -3, -2))) {
-$pattern = substr($pattern, 0, -2);
-}
-
-$this->pattern = $pattern;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Expression;
-
-@trigger_error('The '.__NAMESPACE__.'\ValueInterface interface is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-
-
-
-interface ValueInterface
-{
-
-
-
-
-
-public function render();
-
-
-
-
-
-
-public function renderPattern();
-
-
-
-
-
-
-public function isCaseSensitive();
-
-
-
-
-
-
-public function getType();
-
-
-
-
-
-
-public function prepend($expr);
-
-
-
-
-
-
-public function append($expr);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder;
-
-use Symfony\Component\Finder\Adapter\AdapterInterface;
-use Symfony\Component\Finder\Adapter\BsdFindAdapter;
-use Symfony\Component\Finder\Adapter\GnuFindAdapter;
-use Symfony\Component\Finder\Adapter\PhpAdapter;
-use Symfony\Component\Finder\Comparator\DateComparator;
-use Symfony\Component\Finder\Comparator\NumberComparator;
-use Symfony\Component\Finder\Exception\ExceptionInterface;
-use Symfony\Component\Finder\Iterator\CustomFilterIterator;
-use Symfony\Component\Finder\Iterator\DateRangeFilterIterator;
-use Symfony\Component\Finder\Iterator\DepthRangeFilterIterator;
-use Symfony\Component\Finder\Iterator\ExcludeDirectoryFilterIterator;
-use Symfony\Component\Finder\Iterator\FilecontentFilterIterator;
-use Symfony\Component\Finder\Iterator\FilenameFilterIterator;
-use Symfony\Component\Finder\Iterator\SizeRangeFilterIterator;
-use Symfony\Component\Finder\Iterator\SortableIterator;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-class Finder implements \IteratorAggregate, \Countable
-{
-const IGNORE_VCS_FILES = 1;
-const IGNORE_DOT_FILES = 2;
-
-private $mode = 0;
-private $names = array();
-private $notNames = array();
-private $exclude = array();
-private $filters = array();
-private $depths = array();
-private $sizes = array();
-private $followLinks = false;
-private $sort = false;
-private $ignore = 0;
-private $dirs = array();
-private $dates = array();
-private $iterators = array();
-private $contains = array();
-private $notContains = array();
-private $adapters = null;
-private $paths = array();
-private $notPaths = array();
-private $ignoreUnreadableDirs = false;
-
-private static $vcsPatterns = array('.svn', '_svn', 'CVS', '_darcs', '.arch-params', '.monotone', '.bzr', '.git', '.hg');
-
-public function __construct()
-{
-$this->ignore = static::IGNORE_VCS_FILES | static::IGNORE_DOT_FILES;
-}
-
-
-
-
-
-
-public static function create()
-{
-return new static();
-}
-
-
-
-
-
-
-
-
-
-
-
-public function addAdapter(AdapterInterface $adapter, $priority = 0)
-{
-@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-$this->initDefaultAdapters();
-
-$this->adapters[$adapter->getName()] = array(
-'adapter' => $adapter,
-'priority' => $priority,
-'selected' => false,
-);
-
-return $this->sortAdapters();
-}
-
-
-
-
-
-
-
-
-public function useBestAdapter()
-{
-@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-$this->initDefaultAdapters();
-
-$this->resetAdapterSelection();
-
-return $this->sortAdapters();
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function setAdapter($name)
-{
-@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-$this->initDefaultAdapters();
-
-if (!isset($this->adapters[$name])) {
-throw new \InvalidArgumentException(sprintf('Adapter "%s" does not exist.', $name));
-}
-
-$this->resetAdapterSelection();
-$this->adapters[$name]['selected'] = true;
-
-return $this->sortAdapters();
-}
-
-
-
-
-
-
-
-
-public function removeAdapters()
-{
-@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-$this->adapters = array();
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function getAdapters()
-{
-@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-$this->initDefaultAdapters();
-
-return array_values(array_map(function (array $adapter) {
-return $adapter['adapter'];
-}, $this->adapters));
-}
-
-
-
-
-
-
-public function directories()
-{
-$this->mode = Iterator\FileTypeFilterIterator::ONLY_DIRECTORIES;
-
-return $this;
-}
-
-
-
-
-
-
-public function files()
-{
-$this->mode = Iterator\FileTypeFilterIterator::ONLY_FILES;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function depth($level)
-{
-$this->depths[] = new Comparator\NumberComparator($level);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function date($date)
-{
-$this->dates[] = new Comparator\DateComparator($date);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function name($pattern)
-{
-$this->names[] = $pattern;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-public function notName($pattern)
-{
-$this->notNames[] = $pattern;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function contains($pattern)
-{
-$this->contains[] = $pattern;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function notContains($pattern)
-{
-$this->notContains[] = $pattern;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function path($pattern)
-{
-$this->paths[] = $pattern;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function notPath($pattern)
-{
-$this->notPaths[] = $pattern;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function size($size)
-{
-$this->sizes[] = new Comparator\NumberComparator($size);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function exclude($dirs)
-{
-$this->exclude = array_merge($this->exclude, (array) $dirs);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function ignoreDotFiles($ignoreDotFiles)
-{
-if ($ignoreDotFiles) {
-$this->ignore |= static::IGNORE_DOT_FILES;
-} else {
-$this->ignore &= ~static::IGNORE_DOT_FILES;
-}
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function ignoreVCS($ignoreVCS)
-{
-if ($ignoreVCS) {
-$this->ignore |= static::IGNORE_VCS_FILES;
-} else {
-$this->ignore &= ~static::IGNORE_VCS_FILES;
-}
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public static function addVCSPattern($pattern)
-{
-foreach ((array) $pattern as $p) {
-self::$vcsPatterns[] = $p;
-}
-
-self::$vcsPatterns = array_unique(self::$vcsPatterns);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function sort(\Closure $closure)
-{
-$this->sort = $closure;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-public function sortByName()
-{
-$this->sort = Iterator\SortableIterator::SORT_BY_NAME;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-public function sortByType()
-{
-$this->sort = Iterator\SortableIterator::SORT_BY_TYPE;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function sortByAccessedTime()
-{
-$this->sort = Iterator\SortableIterator::SORT_BY_ACCESSED_TIME;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function sortByChangedTime()
-{
-$this->sort = Iterator\SortableIterator::SORT_BY_CHANGED_TIME;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function sortByModifiedTime()
-{
-$this->sort = Iterator\SortableIterator::SORT_BY_MODIFIED_TIME;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-public function filter(\Closure $closure)
-{
-$this->filters[] = $closure;
-
-return $this;
-}
-
-
-
-
-
-
-public function followLinks()
-{
-$this->followLinks = true;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-public function ignoreUnreadableDirs($ignore = true)
-{
-$this->ignoreUnreadableDirs = (bool) $ignore;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-public function in($dirs)
-{
-$resolvedDirs = array();
-
-foreach ((array) $dirs as $dir) {
-if (is_dir($dir)) {
-$resolvedDirs[] = $this->normalizeDir($dir);
-} elseif ($glob = glob($dir, (\defined('GLOB_BRACE') ? GLOB_BRACE : 0) | GLOB_ONLYDIR)) {
-$resolvedDirs = array_merge($resolvedDirs, array_map(array($this, 'normalizeDir'), $glob));
-} else {
-throw new \InvalidArgumentException(sprintf('The "%s" directory does not exist.', $dir));
-}
-}
-
-$this->dirs = array_merge($this->dirs, $resolvedDirs);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-public function getIterator()
-{
-if (0 === \count($this->dirs) && 0 === \count($this->iterators)) {
-throw new \LogicException('You must call one of in() or append() methods before iterating over a Finder.');
-}
-
-if (1 === \count($this->dirs) && 0 === \count($this->iterators)) {
-return $this->searchInDirectory($this->dirs[0]);
-}
-
-$iterator = new \AppendIterator();
-foreach ($this->dirs as $dir) {
-$iterator->append($this->searchInDirectory($dir));
-}
-
-foreach ($this->iterators as $it) {
-$iterator->append($it);
-}
-
-return $iterator;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function append($iterator)
-{
-if ($iterator instanceof \IteratorAggregate) {
-$this->iterators[] = $iterator->getIterator();
-} elseif ($iterator instanceof \Iterator) {
-$this->iterators[] = $iterator;
-} elseif ($iterator instanceof \Traversable || \is_array($iterator)) {
-$it = new \ArrayIterator();
-foreach ($iterator as $file) {
-$it->append($file instanceof \SplFileInfo ? $file : new \SplFileInfo($file));
-}
-$this->iterators[] = $it;
-} else {
-throw new \InvalidArgumentException('Finder::append() method wrong argument type.');
-}
-
-return $this;
-}
-
-
-
-
-
-
-public function count()
-{
-return iterator_count($this->getIterator());
-}
-
-
-
-
-private function sortAdapters()
-{
-uasort($this->adapters, function (array $a, array $b) {
-if ($a['selected'] || $b['selected']) {
-return $a['selected'] ? -1 : 1;
-}
-
-return $a['priority'] > $b['priority'] ? -1 : 1;
-});
-
-return $this;
-}
-
-
-
-
-
-
-private function searchInDirectory($dir)
-{
-if (static::IGNORE_VCS_FILES === (static::IGNORE_VCS_FILES & $this->ignore)) {
-$this->exclude = array_merge($this->exclude, self::$vcsPatterns);
-}
-
-if (static::IGNORE_DOT_FILES === (static::IGNORE_DOT_FILES & $this->ignore)) {
-$this->notPaths[] = '#(^|/)\..+(/|$)#';
-}
-
-if ($this->adapters) {
-foreach ($this->adapters as $adapter) {
-if ($adapter['adapter']->isSupported()) {
-try {
-return $this
-->buildAdapter($adapter['adapter'])
-->searchInDirectory($dir);
-} catch (ExceptionInterface $e) {
-}
-}
-}
-}
-
-$minDepth = 0;
-$maxDepth = PHP_INT_MAX;
-
-foreach ($this->depths as $comparator) {
-switch ($comparator->getOperator()) {
-case '>':
-$minDepth = $comparator->getTarget() + 1;
-break;
-case '>=':
-$minDepth = $comparator->getTarget();
-break;
-case '<':
-$maxDepth = $comparator->getTarget() - 1;
-break;
-case '<=':
-$maxDepth = $comparator->getTarget();
-break;
-default:
-$minDepth = $maxDepth = $comparator->getTarget();
-}
-}
-
-$flags = \RecursiveDirectoryIterator::SKIP_DOTS;
-
-if ($this->followLinks) {
-$flags |= \RecursiveDirectoryIterator::FOLLOW_SYMLINKS;
-}
-
-$iterator = new Iterator\RecursiveDirectoryIterator($dir, $flags, $this->ignoreUnreadableDirs);
-
-if ($this->exclude) {
-$iterator = new Iterator\ExcludeDirectoryFilterIterator($iterator, $this->exclude);
-}
-
-$iterator = new \RecursiveIteratorIterator($iterator, \RecursiveIteratorIterator::SELF_FIRST);
-
-if ($minDepth > 0 || $maxDepth < PHP_INT_MAX) {
-$iterator = new Iterator\DepthRangeFilterIterator($iterator, $minDepth, $maxDepth);
-}
-
-if ($this->mode) {
-$iterator = new Iterator\FileTypeFilterIterator($iterator, $this->mode);
-}
-
-if ($this->names || $this->notNames) {
-$iterator = new Iterator\FilenameFilterIterator($iterator, $this->names, $this->notNames);
-}
-
-if ($this->contains || $this->notContains) {
-$iterator = new Iterator\FilecontentFilterIterator($iterator, $this->contains, $this->notContains);
-}
-
-if ($this->sizes) {
-$iterator = new Iterator\SizeRangeFilterIterator($iterator, $this->sizes);
-}
-
-if ($this->dates) {
-$iterator = new Iterator\DateRangeFilterIterator($iterator, $this->dates);
-}
-
-if ($this->filters) {
-$iterator = new Iterator\CustomFilterIterator($iterator, $this->filters);
-}
-
-if ($this->paths || $this->notPaths) {
-$iterator = new Iterator\PathFilterIterator($iterator, $this->paths, $this->notPaths);
-}
-
-if ($this->sort) {
-$iteratorAggregate = new Iterator\SortableIterator($iterator, $this->sort);
-$iterator = $iteratorAggregate->getIterator();
-}
-
-return $iterator;
-}
-
-
-
-
-private function buildAdapter(AdapterInterface $adapter)
-{
-return $adapter
-->setFollowLinks($this->followLinks)
-->setDepths($this->depths)
-->setMode($this->mode)
-->setExclude($this->exclude)
-->setNames($this->names)
-->setNotNames($this->notNames)
-->setContains($this->contains)
-->setNotContains($this->notContains)
-->setSizes($this->sizes)
-->setDates($this->dates)
-->setFilters($this->filters)
-->setSort($this->sort)
-->setPath($this->paths)
-->setNotPath($this->notPaths)
-->ignoreUnreadableDirs($this->ignoreUnreadableDirs);
-}
-
-
-
-
-private function resetAdapterSelection()
-{
-$this->adapters = array_map(function (array $properties) {
-$properties['selected'] = false;
-
-return $properties;
-}, $this->adapters);
-}
-
-private function initDefaultAdapters()
-{
-if (null === $this->adapters) {
-$this->adapters = array();
-$this
-->addAdapter(new GnuFindAdapter())
-->addAdapter(new BsdFindAdapter())
-->addAdapter(new PhpAdapter(), -50)
-->setAdapter('php')
-;
-}
-}
-
-
-
-
-
-
-
-
-private function normalizeDir($dir)
-{
-return rtrim($dir, '/'.\DIRECTORY_SEPARATOR);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-class Glob
-{
-
-
-
-
-
-
-
-
-
-
-public static function toRegex($glob, $strictLeadingDot = true, $strictWildcardSlash = true, $delimiter = '#')
-{
-$firstByte = true;
-$escaping = false;
-$inCurlies = 0;
-$regex = '';
-$sizeGlob = \strlen($glob);
-for ($i = 0; $i < $sizeGlob; ++$i) {
-$car = $glob[$i];
-if ($firstByte) {
-if ($strictLeadingDot && '.' !== $car) {
-$regex .= '(?=[^\.])';
-}
-
-$firstByte = false;
-}
-
-if ('/' === $car) {
-$firstByte = true;
-}
-
-if ($delimiter === $car || '.' === $car || '(' === $car || ')' === $car || '|' === $car || '+' === $car || '^' === $car || '$' === $car) {
-$regex .= "\\$car";
-} elseif ('*' === $car) {
-$regex .= $escaping ? '\\*' : ($strictWildcardSlash ? '[^/]*' : '.*');
-} elseif ('?' === $car) {
-$regex .= $escaping ? '\\?' : ($strictWildcardSlash ? '[^/]' : '.');
-} elseif ('{' === $car) {
-$regex .= $escaping ? '\\{' : '(';
-if (!$escaping) {
-++$inCurlies;
-}
-} elseif ('}' === $car && $inCurlies) {
-$regex .= $escaping ? '}' : ')';
-if (!$escaping) {
---$inCurlies;
-}
-} elseif (',' === $car && $inCurlies) {
-$regex .= $escaping ? ',' : '|';
-} elseif ('\\' === $car) {
-if ($escaping) {
-$regex .= '\\\\';
-$escaping = false;
-} else {
-$escaping = true;
-}
-
-continue;
-} else {
-$regex .= $car;
-}
-$escaping = false;
-}
-
-return $delimiter.'^'.$regex.'$'.$delimiter;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Iterator;
-
-
-
-
-
-
-
-
-
-class CustomFilterIterator extends FilterIterator
-{
-private $filters = array();
-
-
-
-
-
-
-
-public function __construct(\Iterator $iterator, array $filters)
-{
-foreach ($filters as $filter) {
-if (!\is_callable($filter)) {
-throw new \InvalidArgumentException('Invalid PHP callback.');
-}
-}
-$this->filters = $filters;
-
-parent::__construct($iterator);
-}
-
-
-
-
-
-
-public function accept()
-{
-$fileinfo = $this->current();
-
-foreach ($this->filters as $filter) {
-if (false === \call_user_func($filter, $fileinfo)) {
-return false;
-}
-}
-
-return true;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Iterator;
-
-use Symfony\Component\Finder\Comparator\DateComparator;
-
-
-
-
-
-
-class DateRangeFilterIterator extends FilterIterator
-{
-private $comparators = array();
-
-
-
-
-
-public function __construct(\Iterator $iterator, array $comparators)
-{
-$this->comparators = $comparators;
-
-parent::__construct($iterator);
-}
-
-
-
-
-
-
-public function accept()
-{
-$fileinfo = $this->current();
-
-if (!file_exists($fileinfo->getPathname())) {
-return false;
-}
-
-$filedate = $fileinfo->getMTime();
-foreach ($this->comparators as $compare) {
-if (!$compare->test($filedate)) {
-return false;
-}
-}
-
-return true;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Iterator;
-
-
-
-
-
-
-class DepthRangeFilterIterator extends FilterIterator
-{
-private $minDepth = 0;
-
-
-
-
-
-
-public function __construct(\RecursiveIteratorIterator $iterator, $minDepth = 0, $maxDepth = PHP_INT_MAX)
-{
-$this->minDepth = $minDepth;
-$iterator->setMaxDepth(PHP_INT_MAX === $maxDepth ? -1 : $maxDepth);
-
-parent::__construct($iterator);
-}
-
-
-
-
-
-
-public function accept()
-{
-return $this->getInnerIterator()->getDepth() >= $this->minDepth;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Iterator;
-
-
-
-
-
-
-class ExcludeDirectoryFilterIterator extends FilterIterator implements \RecursiveIterator
-{
-private $iterator;
-private $isRecursive;
-private $excludedDirs = array();
-private $excludedPattern;
-
-
-
-
-
-public function __construct(\Iterator $iterator, array $directories)
-{
-$this->iterator = $iterator;
-$this->isRecursive = $iterator instanceof \RecursiveIterator;
-$patterns = array();
-foreach ($directories as $directory) {
-$directory = rtrim($directory, '/');
-if (!$this->isRecursive || false !== strpos($directory, '/')) {
-$patterns[] = preg_quote($directory, '#');
-} else {
-$this->excludedDirs[$directory] = true;
-}
-}
-if ($patterns) {
-$this->excludedPattern = '#(?:^|/)(?:'.implode('|', $patterns).')(?:/|$)#';
-}
-
-parent::__construct($iterator);
-}
-
-
-
-
-
-
-public function accept()
-{
-if ($this->isRecursive && isset($this->excludedDirs[$this->getFilename()]) && $this->isDir()) {
-return false;
-}
-
-if ($this->excludedPattern) {
-$path = $this->isDir() ? $this->current()->getRelativePathname() : $this->current()->getRelativePath();
-$path = str_replace('\\', '/', $path);
-
-return !preg_match($this->excludedPattern, $path);
-}
-
-return true;
-}
-
-public function hasChildren()
-{
-return $this->isRecursive && $this->iterator->hasChildren();
-}
-
-public function getChildren()
-{
-$children = new self($this->iterator->getChildren(), array());
-$children->excludedDirs = $this->excludedDirs;
-$children->excludedPattern = $this->excludedPattern;
-
-return $children;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Iterator;
-
-@trigger_error('The '.__NAMESPACE__.'\FilePathsIterator class is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-use Symfony\Component\Finder\SplFileInfo;
-
-
-
-
-
-
-
-
-class FilePathsIterator extends \ArrayIterator
-{
-
-
-
-private $baseDir;
-
-
-
-
-private $baseDirLength;
-
-
-
-
-private $subPath;
-
-
-
-
-private $subPathname;
-
-
-
-
-private $current;
-
-
-
-
-
-public function __construct(array $paths, $baseDir)
-{
-$this->baseDir = $baseDir;
-$this->baseDirLength = \strlen($baseDir);
-
-parent::__construct($paths);
-}
-
-
-
-
-
-
-
-public function __call($name, array $arguments)
-{
-return \call_user_func_array(array($this->current(), $name), $arguments);
-}
-
-
-
-
-
-
-public function current()
-{
-return $this->current;
-}
-
-
-
-
-public function key()
-{
-return $this->current->getPathname();
-}
-
-public function next()
-{
-parent::next();
-$this->buildProperties();
-}
-
-public function rewind()
-{
-parent::rewind();
-$this->buildProperties();
-}
-
-
-
-
-public function getSubPath()
-{
-return $this->subPath;
-}
-
-
-
-
-public function getSubPathname()
-{
-return $this->subPathname;
-}
-
-private function buildProperties()
-{
-$absolutePath = parent::current();
-
-if ($this->baseDir === substr($absolutePath, 0, $this->baseDirLength)) {
-$this->subPathname = ltrim(substr($absolutePath, $this->baseDirLength), '/\\');
-$dir = \dirname($this->subPathname);
-$this->subPath = '.' === $dir ? '' : $dir;
-} else {
-$this->subPath = $this->subPathname = '';
-}
-
-$this->current = new SplFileInfo(parent::current(), $this->subPath, $this->subPathname);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Iterator;
-
-
-
-
-
-
-class FileTypeFilterIterator extends FilterIterator
-{
-const ONLY_FILES = 1;
-const ONLY_DIRECTORIES = 2;
-
-private $mode;
-
-
-
-
-
-public function __construct(\Iterator $iterator, $mode)
-{
-$this->mode = $mode;
-
-parent::__construct($iterator);
-}
-
-
-
-
-
-
-public function accept()
-{
-$fileinfo = $this->current();
-if (self::ONLY_DIRECTORIES === (self::ONLY_DIRECTORIES & $this->mode) && $fileinfo->isFile()) {
-return false;
-} elseif (self::ONLY_FILES === (self::ONLY_FILES & $this->mode) && $fileinfo->isDir()) {
-return false;
-}
-
-return true;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Iterator;
-
-
-
-
-
-
-
-class FilecontentFilterIterator extends MultiplePcreFilterIterator
-{
-
-
-
-
-
-public function accept()
-{
-if (!$this->matchRegexps && !$this->noMatchRegexps) {
-return true;
-}
-
-$fileinfo = $this->current();
-
-if ($fileinfo->isDir() || !$fileinfo->isReadable()) {
-return false;
-}
-
-$content = $fileinfo->getContents();
-if (!$content) {
-return false;
-}
-
-return $this->isAccepted($content);
-}
-
-
-
-
-
-
-
-
-protected function toRegex($str)
-{
-return $this->isRegex($str) ? $str : '/'.preg_quote($str, '/').'/';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Iterator;
-
-use Symfony\Component\Finder\Glob;
-
-
-
-
-
-
-class FilenameFilterIterator extends MultiplePcreFilterIterator
-{
-
-
-
-
-
-public function accept()
-{
-return $this->isAccepted($this->current()->getFilename());
-}
-
-
-
-
-
-
-
-
-
-
-
-protected function toRegex($str)
-{
-return $this->isRegex($str) ? $str : Glob::toRegex($str);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Iterator;
-
-
-
-
-
-
-
-
-
-abstract class FilterIterator extends \FilterIterator
-{
-
-
-
-
-
-
-public function rewind()
-{
-if (\PHP_VERSION_ID > 50607 || (\PHP_VERSION_ID > 50523 && \PHP_VERSION_ID < 50600)) {
-parent::rewind();
-
-return;
-}
-
-$iterator = $this;
-while ($iterator instanceof \OuterIterator) {
-$innerIterator = $iterator->getInnerIterator();
-
-if ($innerIterator instanceof RecursiveDirectoryIterator) {
-
- if ($innerIterator->isRewindable()) {
-$innerIterator->next();
-$innerIterator->rewind();
-}
-} elseif ($innerIterator instanceof \FilesystemIterator) {
-$innerIterator->next();
-$innerIterator->rewind();
-}
-
-$iterator = $innerIterator;
-}
-
-parent::rewind();
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Iterator;
-
-
-
-
-
-
-abstract class MultiplePcreFilterIterator extends FilterIterator
-{
-protected $matchRegexps = array();
-protected $noMatchRegexps = array();
-
-
-
-
-
-
-public function __construct(\Iterator $iterator, array $matchPatterns, array $noMatchPatterns)
-{
-foreach ($matchPatterns as $pattern) {
-$this->matchRegexps[] = $this->toRegex($pattern);
-}
-
-foreach ($noMatchPatterns as $pattern) {
-$this->noMatchRegexps[] = $this->toRegex($pattern);
-}
-
-parent::__construct($iterator);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-protected function isAccepted($string)
-{
-
- foreach ($this->noMatchRegexps as $regex) {
-if (preg_match($regex, $string)) {
-return false;
-}
-}
-
-
- if ($this->matchRegexps) {
-foreach ($this->matchRegexps as $regex) {
-if (preg_match($regex, $string)) {
-return true;
-}
-}
-
-return false;
-}
-
-
- return true;
-}
-
-
-
-
-
-
-
-
-protected function isRegex($str)
-{
-if (preg_match('/^(.{3,}?)[imsxuADU]*$/', $str, $m)) {
-$start = substr($m[1], 0, 1);
-$end = substr($m[1], -1);
-
-if ($start === $end) {
-return !preg_match('/[*?[:alnum:] \\\\]/', $start);
-}
-
-foreach (array(array('{', '}'), array('(', ')'), array('[', ']'), array('<', '>')) as $delimiters) {
-if ($start === $delimiters[0] && $end === $delimiters[1]) {
-return true;
-}
-}
-}
-
-return false;
-}
-
-
-
-
-
-
-
-
-abstract protected function toRegex($str);
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Iterator;
-
-
-
-
-
-
-
-class PathFilterIterator extends MultiplePcreFilterIterator
-{
-
-
-
-
-
-public function accept()
-{
-$filename = $this->current()->getRelativePathname();
-
-if ('\\' === \DIRECTORY_SEPARATOR) {
-$filename = str_replace('\\', '/', $filename);
-}
-
-return $this->isAccepted($filename);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-protected function toRegex($str)
-{
-return $this->isRegex($str) ? $str : '/'.preg_quote($str, '/').'/';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Iterator;
-
-use Symfony\Component\Finder\Exception\AccessDeniedException;
-use Symfony\Component\Finder\SplFileInfo;
-
-
-
-
-
-
-class RecursiveDirectoryIterator extends \RecursiveDirectoryIterator
-{
-
-
-
-private $ignoreUnreadableDirs;
-
-
-
-
-private $rewindable;
-
-
- private $rootPath;
-private $subPath;
-private $directorySeparator = '/';
-
-
-
-
-
-
-
-
-public function __construct($path, $flags, $ignoreUnreadableDirs = false)
-{
-if ($flags & (self::CURRENT_AS_PATHNAME | self::CURRENT_AS_SELF)) {
-throw new \RuntimeException('This iterator only support returning current as fileinfo.');
-}
-
-parent::__construct($path, $flags);
-$this->ignoreUnreadableDirs = $ignoreUnreadableDirs;
-$this->rootPath = (string) $path;
-if ('/' !== \DIRECTORY_SEPARATOR && !($flags & self::UNIX_PATHS)) {
-$this->directorySeparator = \DIRECTORY_SEPARATOR;
-}
-}
-
-
-
-
-
-
-public function current()
-{
-
-
-if (null === $subPathname = $this->subPath) {
-$subPathname = $this->subPath = (string) $this->getSubPath();
-}
-if ('' !== $subPathname) {
-$subPathname .= $this->directorySeparator;
-}
-$subPathname .= $this->getFilename();
-
-return new SplFileInfo($this->rootPath.$this->directorySeparator.$subPathname, $this->subPath, $subPathname);
-}
-
-
-
-
-
-
-public function getChildren()
-{
-try {
-$children = parent::getChildren();
-
-if ($children instanceof self) {
-
- $children->ignoreUnreadableDirs = $this->ignoreUnreadableDirs;
-
-
- $children->rewindable = &$this->rewindable;
-$children->rootPath = $this->rootPath;
-}
-
-return $children;
-} catch (\UnexpectedValueException $e) {
-if ($this->ignoreUnreadableDirs) {
-
- return new \RecursiveArrayIterator(array());
-} else {
-throw new AccessDeniedException($e->getMessage(), $e->getCode(), $e);
-}
-}
-}
-
-
-
-
-public function rewind()
-{
-if (false === $this->isRewindable()) {
-return;
-}
-
-
- if (\PHP_VERSION_ID < 50523 || \PHP_VERSION_ID >= 50600 && \PHP_VERSION_ID < 50607) {
-parent::next();
-}
-
-parent::rewind();
-}
-
-
-
-
-
-
-public function isRewindable()
-{
-if (null !== $this->rewindable) {
-return $this->rewindable;
-}
-
-
- if ('' === $this->getPath()) {
-return $this->rewindable = false;
-}
-
-if (false !== $stream = @opendir($this->getPath())) {
-$infos = stream_get_meta_data($stream);
-closedir($stream);
-
-if ($infos['seekable']) {
-return $this->rewindable = true;
-}
-}
-
-return $this->rewindable = false;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Iterator;
-
-use Symfony\Component\Finder\Comparator\NumberComparator;
-
-
-
-
-
-
-class SizeRangeFilterIterator extends FilterIterator
-{
-private $comparators = array();
-
-
-
-
-
-public function __construct(\Iterator $iterator, array $comparators)
-{
-$this->comparators = $comparators;
-
-parent::__construct($iterator);
-}
-
-
-
-
-
-
-public function accept()
-{
-$fileinfo = $this->current();
-if (!$fileinfo->isFile()) {
-return true;
-}
-
-$filesize = $fileinfo->getSize();
-foreach ($this->comparators as $compare) {
-if (!$compare->test($filesize)) {
-return false;
-}
-}
-
-return true;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Iterator;
-
-
-
-
-
-
-class SortableIterator implements \IteratorAggregate
-{
-const SORT_BY_NAME = 1;
-const SORT_BY_TYPE = 2;
-const SORT_BY_ACCESSED_TIME = 3;
-const SORT_BY_CHANGED_TIME = 4;
-const SORT_BY_MODIFIED_TIME = 5;
-
-private $iterator;
-private $sort;
-
-
-
-
-
-
-
-public function __construct(\Traversable $iterator, $sort)
-{
-$this->iterator = $iterator;
-
-if (self::SORT_BY_NAME === $sort) {
-$this->sort = function ($a, $b) {
-return strcmp($a->getRealpath() ?: $a->getPathname(), $b->getRealpath() ?: $b->getPathname());
-};
-} elseif (self::SORT_BY_TYPE === $sort) {
-$this->sort = function ($a, $b) {
-if ($a->isDir() && $b->isFile()) {
-return -1;
-} elseif ($a->isFile() && $b->isDir()) {
-return 1;
-}
-
-return strcmp($a->getRealpath() ?: $a->getPathname(), $b->getRealpath() ?: $b->getPathname());
-};
-} elseif (self::SORT_BY_ACCESSED_TIME === $sort) {
-$this->sort = function ($a, $b) {
-return $a->getATime() - $b->getATime();
-};
-} elseif (self::SORT_BY_CHANGED_TIME === $sort) {
-$this->sort = function ($a, $b) {
-return $a->getCTime() - $b->getCTime();
-};
-} elseif (self::SORT_BY_MODIFIED_TIME === $sort) {
-$this->sort = function ($a, $b) {
-return $a->getMTime() - $b->getMTime();
-};
-} elseif (\is_callable($sort)) {
-$this->sort = $sort;
-} else {
-throw new \InvalidArgumentException('The SortableIterator takes a PHP callable or a valid built-in sort algorithm as an argument.');
-}
-}
-
-public function getIterator()
-{
-$array = iterator_to_array($this->iterator, true);
-uasort($array, $this->sort);
-
-return new \ArrayIterator($array);
-}
-}
-Copyright (c) 2004-2018 Fabien Potencier
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Shell;
-
-@trigger_error('The '.__NAMESPACE__.'\Command class is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-
-
-
-
-
-class Command
-{
-private $parent;
-private $bits = array();
-private $labels = array();
-
-
-
-
-private $errorHandler;
-
-public function __construct(Command $parent = null)
-{
-$this->parent = $parent;
-}
-
-
-
-
-
-
-public function __toString()
-{
-return $this->join();
-}
-
-
-
-
-
-
-public static function create(Command $parent = null)
-{
-return new self($parent);
-}
-
-
-
-
-
-
-
-
-public static function escape($input)
-{
-return escapeshellcmd($input);
-}
-
-
-
-
-
-
-
-
-public static function quote($input)
-{
-return escapeshellarg($input);
-}
-
-
-
-
-
-
-
-
-public function add($bit)
-{
-$this->bits[] = $bit;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function top($bit)
-{
-array_unshift($this->bits, $bit);
-
-foreach ($this->labels as $label => $index) {
-++$this->labels[$label];
-}
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function arg($arg)
-{
-$this->bits[] = self::quote($arg);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function cmd($esc)
-{
-$this->bits[] = self::escape($esc);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-public function ins($label)
-{
-if (isset($this->labels[$label])) {
-throw new \RuntimeException(sprintf('Label "%s" already exists.', $label));
-}
-
-$this->bits[] = self::create($this);
-$this->labels[$label] = \count($this->bits) - 1;
-
-return $this->bits[$this->labels[$label]];
-}
-
-
-
-
-
-
-
-
-
-
-public function get($label)
-{
-if (!isset($this->labels[$label])) {
-throw new \RuntimeException(sprintf('Label "%s" does not exist.', $label));
-}
-
-return $this->bits[$this->labels[$label]];
-}
-
-
-
-
-
-
-
-
-public function end()
-{
-if (null === $this->parent) {
-throw new \RuntimeException('Calling end on root command doesn\'t make sense.');
-}
-
-return $this->parent;
-}
-
-
-
-
-
-
-public function length()
-{
-return \count($this->bits);
-}
-
-
-
-
-public function setErrorHandler(\Closure $errorHandler)
-{
-$this->errorHandler = $errorHandler;
-
-return $this;
-}
-
-
-
-
-public function getErrorHandler()
-{
-return $this->errorHandler;
-}
-
-
-
-
-
-
-
-
-public function execute()
-{
-if (null === $errorHandler = $this->errorHandler) {
-exec($this->join(), $output);
-} else {
-$process = proc_open($this->join(), array(0 => array('pipe', 'r'), 1 => array('pipe', 'w'), 2 => array('pipe', 'w')), $pipes);
-$output = preg_split('~(\r\n|\r|\n)~', stream_get_contents($pipes[1]), -1, PREG_SPLIT_NO_EMPTY);
-
-if ($error = stream_get_contents($pipes[2])) {
-$errorHandler($error);
-}
-
-proc_close($process);
-}
-
-return $output ?: array();
-}
-
-
-
-
-
-
-public function join()
-{
-return implode(' ', array_filter(
-array_map(function ($bit) {
-return $bit instanceof Command ? $bit->join() : ($bit ?: null);
-}, $this->bits),
-function ($bit) { return null !== $bit; }
-));
-}
-
-
-
-
-
-
-
-
-
-public function addAtIndex($bit, $index)
-{
-array_splice($this->bits, $index, 0, $bit instanceof self ? array($bit) : $bit);
-
-return $this;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder\Shell;
-
-@trigger_error('The '.__NAMESPACE__.'\Shell class is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-
-
-
-
-
-class Shell
-{
-const TYPE_UNIX = 1;
-const TYPE_DARWIN = 2;
-const TYPE_CYGWIN = 3;
-const TYPE_WINDOWS = 4;
-const TYPE_BSD = 5;
-
-
-
-
-private $type;
-
-
-
-
-
-
-public function getType()
-{
-if (null === $this->type) {
-$this->type = $this->guessType();
-}
-
-return $this->type;
-}
-
-
-
-
-
-
-
-
-public function testCommand($command)
-{
-if (!\function_exists('exec')) {
-return false;
-}
-
-
- $testCommand = 'which ';
-if (self::TYPE_WINDOWS === $this->type) {
-$testCommand = 'where ';
-}
-
-$command = escapeshellcmd($command);
-
-exec($testCommand.$command, $output, $code);
-
-return 0 === $code && \count($output) > 0;
-}
-
-
-
-
-
-
-private function guessType()
-{
-$os = strtolower(PHP_OS);
-
-if (false !== strpos($os, 'cygwin')) {
-return self::TYPE_CYGWIN;
-}
-
-if (false !== strpos($os, 'darwin')) {
-return self::TYPE_DARWIN;
-}
-
-if (false !== strpos($os, 'bsd')) {
-return self::TYPE_BSD;
-}
-
-if (0 === strpos($os, 'win')) {
-return self::TYPE_WINDOWS;
-}
-
-return self::TYPE_UNIX;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Finder;
-
-
-
-
-
-
-class SplFileInfo extends \SplFileInfo
-{
-private $relativePath;
-private $relativePathname;
-
-
-
-
-
-
-public function __construct($file, $relativePath, $relativePathname)
-{
-parent::__construct($file);
-$this->relativePath = $relativePath;
-$this->relativePathname = $relativePathname;
-}
-
-
-
-
-
-
-
-
-public function getRelativePath()
-{
-return $this->relativePath;
-}
-
-
-
-
-
-
-
-
-public function getRelativePathname()
-{
-return $this->relativePathname;
-}
-
-
-
-
-
-
-
-
-public function getContents()
-{
-set_error_handler(function ($type, $msg) use (&$error) { $error = $msg; });
-$content = file_get_contents($this->getPathname());
-restore_error_handler();
-if (false === $content) {
-throw new \RuntimeException($error);
-}
-
-return $content;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Polyfill\Ctype;
-
-
-
-
-
-
-
-
-final class Ctype
-{
-
-
-
-
-
-
-
-
-
-public static function ctype_alnum($text)
-{
-$text = self::convert_int_to_char_for_ctype($text);
-
-return \is_string($text) && '' !== $text && !preg_match('/[^A-Za-z0-9]/', $text);
-}
-
-
-
-
-
-
-
-
-
-
-public static function ctype_alpha($text)
-{
-$text = self::convert_int_to_char_for_ctype($text);
-
-return \is_string($text) && '' !== $text && !preg_match('/[^A-Za-z]/', $text);
-}
-
-
-
-
-
-
-
-
-
-
-public static function ctype_cntrl($text)
-{
-$text = self::convert_int_to_char_for_ctype($text);
-
-return \is_string($text) && '' !== $text && !preg_match('/[^\x00-\x1f\x7f]/', $text);
-}
-
-
-
-
-
-
-
-
-
-
-public static function ctype_digit($text)
-{
-$text = self::convert_int_to_char_for_ctype($text);
-
-return \is_string($text) && '' !== $text && !preg_match('/[^0-9]/', $text);
-}
-
-
-
-
-
-
-
-
-
-
-public static function ctype_graph($text)
-{
-$text = self::convert_int_to_char_for_ctype($text);
-
-return \is_string($text) && '' !== $text && !preg_match('/[^!-~]/', $text);
-}
-
-
-
-
-
-
-
-
-
-
-public static function ctype_lower($text)
-{
-$text = self::convert_int_to_char_for_ctype($text);
-
-return \is_string($text) && '' !== $text && !preg_match('/[^a-z]/', $text);
-}
-
-
-
-
-
-
-
-
-
-
-public static function ctype_print($text)
-{
-$text = self::convert_int_to_char_for_ctype($text);
-
-return \is_string($text) && '' !== $text && !preg_match('/[^ -~]/', $text);
-}
-
-
-
-
-
-
-
-
-
-
-public static function ctype_punct($text)
-{
-$text = self::convert_int_to_char_for_ctype($text);
-
-return \is_string($text) && '' !== $text && !preg_match('/[^!-\/\:-@\[-`\{-~]/', $text);
-}
-
-
-
-
-
-
-
-
-
-
-public static function ctype_space($text)
-{
-$text = self::convert_int_to_char_for_ctype($text);
-
-return \is_string($text) && '' !== $text && !preg_match('/[^\s]/', $text);
-}
-
-
-
-
-
-
-
-
-
-
-public static function ctype_upper($text)
-{
-$text = self::convert_int_to_char_for_ctype($text);
-
-return \is_string($text) && '' !== $text && !preg_match('/[^A-Z]/', $text);
-}
-
-
-
-
-
-
-
-
-
-
-public static function ctype_xdigit($text)
-{
-$text = self::convert_int_to_char_for_ctype($text);
-
-return \is_string($text) && '' !== $text && !preg_match('/[^A-Fa-f0-9]/', $text);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-private static function convert_int_to_char_for_ctype($int)
-{
-if (!\is_int($int)) {
-return $int;
-}
-
-if ($int < -128 || $int > 255) {
-return (string) $int;
-}
-
-if ($int < 0) {
-$int += 256;
-}
-
-return \chr($int);
-}
-}
-Copyright (c) 2018 Fabien Potencier
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-<?php
-
-
-
-
-
-
-
-
-
-
-use Symfony\Polyfill\Ctype as p;
-
-if (!function_exists('ctype_alnum')) {
-function ctype_alnum($text) { return p\Ctype::ctype_alnum($text); }
-function ctype_alpha($text) { return p\Ctype::ctype_alpha($text); }
-function ctype_cntrl($text) { return p\Ctype::ctype_cntrl($text); }
-function ctype_digit($text) { return p\Ctype::ctype_digit($text); }
-function ctype_graph($text) { return p\Ctype::ctype_graph($text); }
-function ctype_lower($text) { return p\Ctype::ctype_lower($text); }
-function ctype_print($text) { return p\Ctype::ctype_print($text); }
-function ctype_punct($text) { return p\Ctype::ctype_punct($text); }
-function ctype_space($text) { return p\Ctype::ctype_space($text); }
-function ctype_upper($text) { return p\Ctype::ctype_upper($text); }
-function ctype_xdigit($text) { return p\Ctype::ctype_xdigit($text); }
-}
-Copyright (c) 2015-2018 Fabien Potencier
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Polyfill\Mbstring;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-final class Mbstring
-{
-const MB_CASE_FOLD = PHP_INT_MAX;
-
-private static $encodingList = array('ASCII', 'UTF-8');
-private static $language = 'neutral';
-private static $internalEncoding = 'UTF-8';
-private static $caseFold = array(
-array('Âµ', 'Å¿', "\xCD\x85", 'Ï', "\xCF\x90", "\xCF\x91", "\xCF\x95", "\xCF\x96", "\xCF\xB0", "\xCF\xB1", "\xCF\xB5", "\xE1\xBA\x9B", "\xE1\xBE\xBE"),
-array('Î¼', 's', 'Î¹', 'Ï', 'Î²', 'Î¸', 'Ï', 'Ï', 'Îº', 'Ï', 'Îµ', "\xE1\xB9\xA1", 'Î¹'),
-);
-
-public static function mb_convert_encoding($s, $toEncoding, $fromEncoding = null)
-{
-if (\is_array($fromEncoding) || false !== strpos($fromEncoding, ',')) {
-$fromEncoding = self::mb_detect_encoding($s, $fromEncoding);
-} else {
-$fromEncoding = self::getEncoding($fromEncoding);
-}
-
-$toEncoding = self::getEncoding($toEncoding);
-
-if ('BASE64' === $fromEncoding) {
-$s = base64_decode($s);
-$fromEncoding = $toEncoding;
-}
-
-if ('BASE64' === $toEncoding) {
-return base64_encode($s);
-}
-
-if ('HTML-ENTITIES' === $toEncoding || 'HTML' === $toEncoding) {
-if ('HTML-ENTITIES' === $fromEncoding || 'HTML' === $fromEncoding) {
-$fromEncoding = 'Windows-1252';
-}
-if ('UTF-8' !== $fromEncoding) {
-$s = iconv($fromEncoding, 'UTF-8//IGNORE', $s);
-}
-
-return preg_replace_callback('/[\x80-\xFF]+/', array(__CLASS__, 'html_encoding_callback'), $s);
-}
-
-if ('HTML-ENTITIES' === $fromEncoding) {
-$s = html_entity_decode($s, ENT_COMPAT, 'UTF-8');
-$fromEncoding = 'UTF-8';
-}
-
-return iconv($fromEncoding, $toEncoding.'//IGNORE', $s);
-}
-
-public static function mb_convert_variables($toEncoding, $fromEncoding, &$a = null, &$b = null, &$c = null, &$d = null, &$e = null, &$f = null)
-{
-$vars = array(&$a, &$b, &$c, &$d, &$e, &$f);
-
-$ok = true;
-array_walk_recursive($vars, function (&$v) use (&$ok, $toEncoding, $fromEncoding) {
-if (false === $v = Mbstring::mb_convert_encoding($v, $toEncoding, $fromEncoding)) {
-$ok = false;
-}
-});
-
-return $ok ? $fromEncoding : false;
-}
-
-public static function mb_decode_mimeheader($s)
-{
-return iconv_mime_decode($s, 2, self::$internalEncoding);
-}
-
-public static function mb_encode_mimeheader($s, $charset = null, $transferEncoding = null, $linefeed = null, $indent = null)
-{
-trigger_error('mb_encode_mimeheader() is bugged. Please use iconv_mime_encode() instead', E_USER_WARNING);
-}
-
-public static function mb_decode_numericentity($s, $convmap, $encoding = null)
-{
-if (null !== $s && !\is_scalar($s) && !(\is_object($s) && \method_exists($s, '__toString'))) {
-trigger_error('mb_decode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', E_USER_WARNING);
-
-return null;
-}
-
-if (!\is_array($convmap) || !$convmap) {
-return false;
-}
-
-if (null !== $encoding && !\is_scalar($encoding)) {
-trigger_error('mb_decode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', E_USER_WARNING);
-
-return ''; 
- }
-
-$s = (string) $s;
-if ('' === $s) {
-return '';
-}
-
-$encoding = self::getEncoding($encoding);
-
-if ('UTF-8' === $encoding) {
-$encoding = null;
-if (!preg_match('//u', $s)) {
-$s = @iconv('UTF-8', 'UTF-8//IGNORE', $s);
-}
-} else {
-$s = iconv($encoding, 'UTF-8//IGNORE', $s);
-}
-
-$cnt = floor(\count($convmap) / 4) * 4;
-
-for ($i = 0; $i < $cnt; $i += 4) {
-
- $convmap[$i] += $convmap[$i + 2];
-$convmap[$i + 1] += $convmap[$i + 2];
-}
-
-$s = preg_replace_callback('/&#(?:0*([0-9]+)|x0*([0-9a-fA-F]+))(?!&);?/', function (array $m) use ($cnt, $convmap) {
-$c = isset($m[2]) ? (int) hexdec($m[2]) : $m[1];
-for ($i = 0; $i < $cnt; $i += 4) {
-if ($c >= $convmap[$i] && $c <= $convmap[$i + 1]) {
-return Mbstring::mb_chr($c - $convmap[$i + 2]);
-}
-}
-
-return $m[0];
-}, $s);
-
-if (null === $encoding) {
-return $s;
-}
-
-return iconv('UTF-8', $encoding.'//IGNORE', $s);
-}
-
-public static function mb_encode_numericentity($s, $convmap, $encoding = null, $is_hex = false)
-{
-if (null !== $s && !\is_scalar($s) && !(\is_object($s) && \method_exists($s, '__toString'))) {
-trigger_error('mb_encode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', E_USER_WARNING);
-
-return null;
-}
-
-if (!\is_array($convmap) || !$convmap) {
-return false;
-}
-
-if (null !== $encoding && !\is_scalar($encoding)) {
-trigger_error('mb_encode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', E_USER_WARNING);
-
-return null; 
- }
-
-if (null !== $is_hex && !\is_scalar($is_hex)) {
-trigger_error('mb_encode_numericentity() expects parameter 4 to be boolean, '.\gettype($s).' given', E_USER_WARNING);
-
-return null;
-}
-
-$s = (string) $s;
-if ('' === $s) {
-return '';
-}
-
-$encoding = self::getEncoding($encoding);
-
-if ('UTF-8' === $encoding) {
-$encoding = null;
-if (!preg_match('//u', $s)) {
-$s = @iconv('UTF-8', 'UTF-8//IGNORE', $s);
-}
-} else {
-$s = iconv($encoding, 'UTF-8//IGNORE', $s);
-}
-
-static $ulenMask = array("\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4);
-
-$cnt = floor(\count($convmap) / 4) * 4;
-$i = 0;
-$len = \strlen($s);
-$result = '';
-
-while ($i < $len) {
-$ulen = $s[$i] < "\x80" ? 1 : $ulenMask[$s[$i] & "\xF0"];
-$uchr = substr($s, $i, $ulen);
-$i += $ulen;
-$c = self::mb_ord($uchr);
-
-for ($j = 0; $j < $cnt; $j += 4) {
-if ($c >= $convmap[$j] && $c <= $convmap[$j + 1]) {
-$cOffset = ($c + $convmap[$j + 2]) & $convmap[$j + 3];
-$result .= $is_hex ? sprintf('&#x%X;', $cOffset) : '&#'.$cOffset.';';
-continue 2;
-}
-}
-$result .= $uchr;
-}
-
-if (null === $encoding) {
-return $result;
-}
-
-return iconv('UTF-8', $encoding.'//IGNORE', $result);
-}
-
-public static function mb_convert_case($s, $mode, $encoding = null)
-{
-$s = (string) $s;
-if ('' === $s) {
-return '';
-}
-
-$encoding = self::getEncoding($encoding);
-
-if ('UTF-8' === $encoding) {
-$encoding = null;
-if (!preg_match('//u', $s)) {
-$s = @iconv('UTF-8', 'UTF-8//IGNORE', $s);
-}
-} else {
-$s = iconv($encoding, 'UTF-8//IGNORE', $s);
-}
-
-if (MB_CASE_TITLE == $mode) {
-static $titleRegexp = null;
-if (null === $titleRegexp) {
-$titleRegexp = self::getData('titleCaseRegexp');
-}
-$s = preg_replace_callback($titleRegexp, array(__CLASS__, 'title_case'), $s);
-} else {
-if (MB_CASE_UPPER == $mode) {
-static $upper = null;
-if (null === $upper) {
-$upper = self::getData('upperCase');
-}
-$map = $upper;
-} else {
-if (self::MB_CASE_FOLD === $mode) {
-$s = str_replace(self::$caseFold[0], self::$caseFold[1], $s);
-}
-
-static $lower = null;
-if (null === $lower) {
-$lower = self::getData('lowerCase');
-}
-$map = $lower;
-}
-
-static $ulenMask = array("\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4);
-
-$i = 0;
-$len = \strlen($s);
-
-while ($i < $len) {
-$ulen = $s[$i] < "\x80" ? 1 : $ulenMask[$s[$i] & "\xF0"];
-$uchr = substr($s, $i, $ulen);
-$i += $ulen;
-
-if (isset($map[$uchr])) {
-$uchr = $map[$uchr];
-$nlen = \strlen($uchr);
-
-if ($nlen == $ulen) {
-$nlen = $i;
-do {
-$s[--$nlen] = $uchr[--$ulen];
-} while ($ulen);
-} else {
-$s = substr_replace($s, $uchr, $i - $ulen, $ulen);
-$len += $nlen - $ulen;
-$i += $nlen - $ulen;
-}
-}
-}
-}
-
-if (null === $encoding) {
-return $s;
-}
-
-return iconv('UTF-8', $encoding.'//IGNORE', $s);
-}
-
-public static function mb_internal_encoding($encoding = null)
-{
-if (null === $encoding) {
-return self::$internalEncoding;
-}
-
-$encoding = self::getEncoding($encoding);
-
-if ('UTF-8' === $encoding || false !== @iconv($encoding, $encoding, ' ')) {
-self::$internalEncoding = $encoding;
-
-return true;
-}
-
-return false;
-}
-
-public static function mb_language($lang = null)
-{
-if (null === $lang) {
-return self::$language;
-}
-
-switch ($lang = strtolower($lang)) {
-case 'uni':
-case 'neutral':
-self::$language = $lang;
-
-return true;
-}
-
-return false;
-}
-
-public static function mb_list_encodings()
-{
-return array('UTF-8');
-}
-
-public static function mb_encoding_aliases($encoding)
-{
-switch (strtoupper($encoding)) {
-case 'UTF8':
-case 'UTF-8':
-return array('utf8');
-}
-
-return false;
-}
-
-public static function mb_check_encoding($var = null, $encoding = null)
-{
-if (null === $encoding) {
-if (null === $var) {
-return false;
-}
-$encoding = self::$internalEncoding;
-}
-
-return self::mb_detect_encoding($var, array($encoding)) || false !== @iconv($encoding, $encoding, $var);
-}
-
-public static function mb_detect_encoding($str, $encodingList = null, $strict = false)
-{
-if (null === $encodingList) {
-$encodingList = self::$encodingList;
-} else {
-if (!\is_array($encodingList)) {
-$encodingList = array_map('trim', explode(',', $encodingList));
-}
-$encodingList = array_map('strtoupper', $encodingList);
-}
-
-foreach ($encodingList as $enc) {
-switch ($enc) {
-case 'ASCII':
-if (!preg_match('/[\x80-\xFF]/', $str)) {
-return $enc;
-}
-break;
-
-case 'UTF8':
-case 'UTF-8':
-if (preg_match('//u', $str)) {
-return 'UTF-8';
-}
-break;
-
-default:
-if (0 === strncmp($enc, 'ISO-8859-', 9)) {
-return $enc;
-}
-}
-}
-
-return false;
-}
-
-public static function mb_detect_order($encodingList = null)
-{
-if (null === $encodingList) {
-return self::$encodingList;
-}
-
-if (!\is_array($encodingList)) {
-$encodingList = array_map('trim', explode(',', $encodingList));
-}
-$encodingList = array_map('strtoupper', $encodingList);
-
-foreach ($encodingList as $enc) {
-switch ($enc) {
-default:
-if (strncmp($enc, 'ISO-8859-', 9)) {
-return false;
-}
-
- case 'ASCII':
-case 'UTF8':
-case 'UTF-8':
-}
-}
-
-self::$encodingList = $encodingList;
-
-return true;
-}
-
-public static function mb_strlen($s, $encoding = null)
-{
-$encoding = self::getEncoding($encoding);
-if ('CP850' === $encoding || 'ASCII' === $encoding) {
-return \strlen($s);
-}
-
-return @iconv_strlen($s, $encoding);
-}
-
-public static function mb_strpos($haystack, $needle, $offset = 0, $encoding = null)
-{
-$encoding = self::getEncoding($encoding);
-if ('CP850' === $encoding || 'ASCII' === $encoding) {
-return strpos($haystack, $needle, $offset);
-}
-
-$needle = (string) $needle;
-if ('' === $needle) {
-trigger_error(__METHOD__.': Empty delimiter', E_USER_WARNING);
-
-return false;
-}
-
-return iconv_strpos($haystack, $needle, $offset, $encoding);
-}
-
-public static function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null)
-{
-$encoding = self::getEncoding($encoding);
-if ('CP850' === $encoding || 'ASCII' === $encoding) {
-return strrpos($haystack, $needle, $offset);
-}
-
-if ($offset != (int) $offset) {
-$offset = 0;
-} elseif ($offset = (int) $offset) {
-if ($offset < 0) {
-$haystack = self::mb_substr($haystack, 0, $offset, $encoding);
-$offset = 0;
-} else {
-$haystack = self::mb_substr($haystack, $offset, 2147483647, $encoding);
-}
-}
-
-$pos = iconv_strrpos($haystack, $needle, $encoding);
-
-return false !== $pos ? $offset + $pos : false;
-}
-
-public static function mb_strtolower($s, $encoding = null)
-{
-return self::mb_convert_case($s, MB_CASE_LOWER, $encoding);
-}
-
-public static function mb_strtoupper($s, $encoding = null)
-{
-return self::mb_convert_case($s, MB_CASE_UPPER, $encoding);
-}
-
-public static function mb_substitute_character($c = null)
-{
-if (0 === strcasecmp($c, 'none')) {
-return true;
-}
-
-return null !== $c ? false : 'none';
-}
-
-public static function mb_substr($s, $start, $length = null, $encoding = null)
-{
-$encoding = self::getEncoding($encoding);
-if ('CP850' === $encoding || 'ASCII' === $encoding) {
-return substr($s, $start, null === $length ? 2147483647 : $length);
-}
-
-if ($start < 0) {
-$start = iconv_strlen($s, $encoding) + $start;
-if ($start < 0) {
-$start = 0;
-}
-}
-
-if (null === $length) {
-$length = 2147483647;
-} elseif ($length < 0) {
-$length = iconv_strlen($s, $encoding) + $length - $start;
-if ($length < 0) {
-return '';
-}
-}
-
-return (string) iconv_substr($s, $start, $length, $encoding);
-}
-
-public static function mb_stripos($haystack, $needle, $offset = 0, $encoding = null)
-{
-$haystack = self::mb_convert_case($haystack, self::MB_CASE_FOLD, $encoding);
-$needle = self::mb_convert_case($needle, self::MB_CASE_FOLD, $encoding);
-
-return self::mb_strpos($haystack, $needle, $offset, $encoding);
-}
-
-public static function mb_stristr($haystack, $needle, $part = false, $encoding = null)
-{
-$pos = self::mb_stripos($haystack, $needle, 0, $encoding);
-
-return self::getSubpart($pos, $part, $haystack, $encoding);
-}
-
-public static function mb_strrchr($haystack, $needle, $part = false, $encoding = null)
-{
-$encoding = self::getEncoding($encoding);
-if ('CP850' === $encoding || 'ASCII' === $encoding) {
-return strrchr($haystack, $needle, $part);
-}
-$needle = self::mb_substr($needle, 0, 1, $encoding);
-$pos = iconv_strrpos($haystack, $needle, $encoding);
-
-return self::getSubpart($pos, $part, $haystack, $encoding);
-}
-
-public static function mb_strrichr($haystack, $needle, $part = false, $encoding = null)
-{
-$needle = self::mb_substr($needle, 0, 1, $encoding);
-$pos = self::mb_strripos($haystack, $needle, $encoding);
-
-return self::getSubpart($pos, $part, $haystack, $encoding);
-}
-
-public static function mb_strripos($haystack, $needle, $offset = 0, $encoding = null)
-{
-$haystack = self::mb_convert_case($haystack, self::MB_CASE_FOLD, $encoding);
-$needle = self::mb_convert_case($needle, self::MB_CASE_FOLD, $encoding);
-
-return self::mb_strrpos($haystack, $needle, $offset, $encoding);
-}
-
-public static function mb_strstr($haystack, $needle, $part = false, $encoding = null)
-{
-$pos = strpos($haystack, $needle);
-if (false === $pos) {
-return false;
-}
-if ($part) {
-return substr($haystack, 0, $pos);
-}
-
-return substr($haystack, $pos);
-}
-
-public static function mb_get_info($type = 'all')
-{
-$info = array(
-'internal_encoding' => self::$internalEncoding,
-'http_output' => 'pass',
-'http_output_conv_mimetypes' => '^(text/|application/xhtml\+xml)',
-'func_overload' => 0,
-'func_overload_list' => 'no overload',
-'mail_charset' => 'UTF-8',
-'mail_header_encoding' => 'BASE64',
-'mail_body_encoding' => 'BASE64',
-'illegal_chars' => 0,
-'encoding_translation' => 'Off',
-'language' => self::$language,
-'detect_order' => self::$encodingList,
-'substitute_character' => 'none',
-'strict_detection' => 'Off',
-);
-
-if ('all' === $type) {
-return $info;
-}
-if (isset($info[$type])) {
-return $info[$type];
-}
-
-return false;
-}
-
-public static function mb_http_input($type = '')
-{
-return false;
-}
-
-public static function mb_http_output($encoding = null)
-{
-return null !== $encoding ? 'pass' === $encoding : 'pass';
-}
-
-public static function mb_strwidth($s, $encoding = null)
-{
-$encoding = self::getEncoding($encoding);
-
-if ('UTF-8' !== $encoding) {
-$s = iconv($encoding, 'UTF-8//IGNORE', $s);
-}
-
-$s = preg_replace('/[\x{1100}-\x{115F}\x{2329}\x{232A}\x{2E80}-\x{303E}\x{3040}-\x{A4CF}\x{AC00}-\x{D7A3}\x{F900}-\x{FAFF}\x{FE10}-\x{FE19}\x{FE30}-\x{FE6F}\x{FF00}-\x{FF60}\x{FFE0}-\x{FFE6}\x{20000}-\x{2FFFD}\x{30000}-\x{3FFFD}]/u', '', $s, -1, $wide);
-
-return ($wide << 1) + iconv_strlen($s, 'UTF-8');
-}
-
-public static function mb_substr_count($haystack, $needle, $encoding = null)
-{
-return substr_count($haystack, $needle);
-}
-
-public static function mb_output_handler($contents, $status)
-{
-return $contents;
-}
-
-public static function mb_chr($code, $encoding = null)
-{
-if (0x80 > $code %= 0x200000) {
-$s = \chr($code);
-} elseif (0x800 > $code) {
-$s = \chr(0xC0 | $code >> 6).\chr(0x80 | $code & 0x3F);
-} elseif (0x10000 > $code) {
-$s = \chr(0xE0 | $code >> 12).\chr(0x80 | $code >> 6 & 0x3F).\chr(0x80 | $code & 0x3F);
-} else {
-$s = \chr(0xF0 | $code >> 18).\chr(0x80 | $code >> 12 & 0x3F).\chr(0x80 | $code >> 6 & 0x3F).\chr(0x80 | $code & 0x3F);
-}
-
-if ('UTF-8' !== $encoding = self::getEncoding($encoding)) {
-$s = mb_convert_encoding($s, $encoding, 'UTF-8');
-}
-
-return $s;
-}
-
-public static function mb_ord($s, $encoding = null)
-{
-if ('UTF-8' !== $encoding = self::getEncoding($encoding)) {
-$s = mb_convert_encoding($s, 'UTF-8', $encoding);
-}
-
-if (1 === \strlen($s)) {
-return \ord($s);
-}
-
-$code = ($s = unpack('C*', substr($s, 0, 4))) ? $s[1] : 0;
-if (0xF0 <= $code) {
-return (($code - 0xF0) << 18) + (($s[2] - 0x80) << 12) + (($s[3] - 0x80) << 6) + $s[4] - 0x80;
-}
-if (0xE0 <= $code) {
-return (($code - 0xE0) << 12) + (($s[2] - 0x80) << 6) + $s[3] - 0x80;
-}
-if (0xC0 <= $code) {
-return (($code - 0xC0) << 6) + $s[2] - 0x80;
-}
-
-return $code;
-}
-
-private static function getSubpart($pos, $part, $haystack, $encoding)
-{
-if (false === $pos) {
-return false;
-}
-if ($part) {
-return self::mb_substr($haystack, 0, $pos, $encoding);
-}
-
-return self::mb_substr($haystack, $pos, null, $encoding);
-}
-
-private static function html_encoding_callback(array $m)
-{
-$i = 1;
-$entities = '';
-$m = unpack('C*', htmlentities($m[0], ENT_COMPAT, 'UTF-8'));
-
-while (isset($m[$i])) {
-if (0x80 > $m[$i]) {
-$entities .= \chr($m[$i++]);
-continue;
-}
-if (0xF0 <= $m[$i]) {
-$c = (($m[$i++] - 0xF0) << 18) + (($m[$i++] - 0x80) << 12) + (($m[$i++] - 0x80) << 6) + $m[$i++] - 0x80;
-} elseif (0xE0 <= $m[$i]) {
-$c = (($m[$i++] - 0xE0) << 12) + (($m[$i++] - 0x80) << 6) + $m[$i++] - 0x80;
-} else {
-$c = (($m[$i++] - 0xC0) << 6) + $m[$i++] - 0x80;
-}
-
-$entities .= '&#'.$c.';';
-}
-
-return $entities;
-}
-
-private static function title_case(array $s)
-{
-return self::mb_convert_case($s[1], MB_CASE_UPPER, 'UTF-8').self::mb_convert_case($s[2], MB_CASE_LOWER, 'UTF-8');
-}
-
-private static function getData($file)
-{
-if (file_exists($file = __DIR__.'/Resources/unidata/'.$file.'.php')) {
-return require $file;
-}
-
-return false;
-}
-
-private static function getEncoding($encoding)
-{
-if (null === $encoding) {
-return self::$internalEncoding;
-}
-
-$encoding = strtoupper($encoding);
-
-if ('8BIT' === $encoding || 'BINARY' === $encoding) {
-return 'CP850';
-}
-if ('UTF8' === $encoding) {
-return 'UTF-8';
-}
-
-return $encoding;
-}
-}
-<?php
-
-return array(
-'A' => 'a',
-'B' => 'b',
-'C' => 'c',
-'D' => 'd',
-'E' => 'e',
-'F' => 'f',
-'G' => 'g',
-'H' => 'h',
-'I' => 'i',
-'J' => 'j',
-'K' => 'k',
-'L' => 'l',
-'M' => 'm',
-'N' => 'n',
-'O' => 'o',
-'P' => 'p',
-'Q' => 'q',
-'R' => 'r',
-'S' => 's',
-'T' => 't',
-'U' => 'u',
-'V' => 'v',
-'W' => 'w',
-'X' => 'x',
-'Y' => 'y',
-'Z' => 'z',
-'Ã' => 'Ã ',
-'Ã' => 'Ã¡',
-'Ã' => 'Ã¢',
-'Ã' => 'Ã£',
-'Ã' => 'Ã¤',
-'Ã
-' => 'Ã¥',
-'Ã' => 'Ã¦',
-'Ã' => 'Ã§',
-'Ã' => 'Ã¨',
-'Ã' => 'Ã©',
-'Ã' => 'Ãª',
-'Ã' => 'Ã«',
-'Ã' => 'Ã¬',
-'Ã' => 'Ã­',
-'Ã' => 'Ã®',
-'Ã' => 'Ã¯',
-'Ã' => 'Ã°',
-'Ã' => 'Ã±',
-'Ã' => 'Ã²',
-'Ã' => 'Ã³',
-'Ã' => 'Ã´',
-'Ã' => 'Ãµ',
-'Ã' => 'Ã¶',
-'Ã' => 'Ã¸',
-'Ã' => 'Ã¹',
-'Ã' => 'Ãº',
-'Ã' => 'Ã»',
-'Ã' => 'Ã¼',
-'Ã' => 'Ã½',
-'Ã' => 'Ã¾',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä
-',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä ' => 'Ä¡',
-'Ä¢' => 'Ä£',
-'Ä¤' => 'Ä¥',
-'Ä¦' => 'Ä§',
-'Ä¨' => 'Ä©',
-'Äª' => 'Ä«',
-'Ä¬' => 'Ä­',
-'Ä®' => 'Ä¯',
-'Ä°' => 'i',
-'Ä²' => 'Ä³',
-'Ä´' => 'Äµ',
-'Ä¶' => 'Ä·',
-'Ä¹' => 'Äº',
-'Ä»' => 'Ä¼',
-'Ä½' => 'Ä¾',
-'Ä¿' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å
-' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å ' => 'Å¡',
-'Å¢' => 'Å£',
-'Å¤' => 'Å¥',
-'Å¦' => 'Å§',
-'Å¨' => 'Å©',
-'Åª' => 'Å«',
-'Å¬' => 'Å­',
-'Å®' => 'Å¯',
-'Å°' => 'Å±',
-'Å²' => 'Å³',
-'Å´' => 'Åµ',
-'Å¶' => 'Å·',
-'Å¸' => 'Ã¿',
-'Å¹' => 'Åº',
-'Å»' => 'Å¼',
-'Å½' => 'Å¾',
-'Æ' => 'É',
-'Æ' => 'Æ',
-'Æ' => 'Æ
-',
-'Æ' => 'É',
-'Æ' => 'Æ',
-'Æ' => 'É',
-'Æ' => 'É',
-'Æ' => 'Æ',
-'Æ' => 'Ç',
-'Æ' => 'É',
-'Æ' => 'É',
-'Æ' => 'Æ',
-'Æ' => 'É ',
-'Æ' => 'É£',
-'Æ' => 'É©',
-'Æ' => 'É¨',
-'Æ' => 'Æ',
-'Æ' => 'É¯',
-'Æ' => 'É²',
-'Æ' => 'Éµ',
-'Æ ' => 'Æ¡',
-'Æ¢' => 'Æ£',
-'Æ¤' => 'Æ¥',
-'Æ¦' => 'Ê',
-'Æ§' => 'Æ¨',
-'Æ©' => 'Ê',
-'Æ¬' => 'Æ­',
-'Æ®' => 'Ê',
-'Æ¯' => 'Æ°',
-'Æ±' => 'Ê',
-'Æ²' => 'Ê',
-'Æ³' => 'Æ´',
-'Æµ' => 'Æ¶',
-'Æ·' => 'Ê',
-'Æ¸' => 'Æ¹',
-'Æ¼' => 'Æ½',
-'Ç' => 'Ç',
-'Ç
-' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç ' => 'Ç¡',
-'Ç¢' => 'Ç£',
-'Ç¤' => 'Ç¥',
-'Ç¦' => 'Ç§',
-'Ç¨' => 'Ç©',
-'Çª' => 'Ç«',
-'Ç¬' => 'Ç­',
-'Ç®' => 'Ç¯',
-'Ç±' => 'Ç³',
-'Ç²' => 'Ç³',
-'Ç´' => 'Çµ',
-'Ç¶' => 'Æ',
-'Ç·' => 'Æ¿',
-'Ç¸' => 'Ç¹',
-'Çº' => 'Ç»',
-'Ç¼' => 'Ç½',
-'Ç¾' => 'Ç¿',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È
-',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È ' => 'Æ',
-'È¢' => 'È£',
-'È¤' => 'È¥',
-'È¦' => 'È§',
-'È¨' => 'È©',
-'Èª' => 'È«',
-'È¬' => 'È­',
-'È®' => 'È¯',
-'È°' => 'È±',
-'È²' => 'È³',
-'Èº' => 'â±¥',
-'È»' => 'È¼',
-'È½' => 'Æ',
-'È¾' => 'â±¦',
-'É' => 'É',
-'É' => 'Æ',
-'É' => 'Ê',
-'É
-' => 'Ê',
-'É' => 'É',
-'É' => 'É',
-'É' => 'É',
-'É' => 'É',
-'É' => 'É',
-'Í°' => 'Í±',
-'Í²' => 'Í³',
-'Í¶' => 'Í·',
-'Í¿' => 'Ï³',
-'Î' => 'Î¬',
-'Î' => 'Î­',
-'Î' => 'Î®',
-'Î' => 'Î¯',
-'Î' => 'Ï',
-'Î' => 'Ï',
-'Î' => 'Ï',
-'Î' => 'Î±',
-'Î' => 'Î²',
-'Î' => 'Î³',
-'Î' => 'Î´',
-'Î' => 'Îµ',
-'Î' => 'Î¶',
-'Î' => 'Î·',
-'Î' => 'Î¸',
-'Î' => 'Î¹',
-'Î' => 'Îº',
-'Î' => 'Î»',
-'Î' => 'Î¼',
-'Î' => 'Î½',
-'Î' => 'Î¾',
-'Î' => 'Î¿',
-'Î ' => 'Ï',
-'Î¡' => 'Ï',
-'Î£' => 'Ï',
-'Î¤' => 'Ï',
-'Î¥' => 'Ï
-',
-'Î¦' => 'Ï',
-'Î§' => 'Ï',
-'Î¨' => 'Ï',
-'Î©' => 'Ï',
-'Îª' => 'Ï',
-'Î«' => 'Ï',
-'Ï' => 'Ï',
-'Ï' => 'Ï',
-'Ï' => 'Ï',
-'Ï' => 'Ï',
-'Ï' => 'Ï',
-'Ï ' => 'Ï¡',
-'Ï¢' => 'Ï£',
-'Ï¤' => 'Ï¥',
-'Ï¦' => 'Ï§',
-'Ï¨' => 'Ï©',
-'Ïª' => 'Ï«',
-'Ï¬' => 'Ï­',
-'Ï®' => 'Ï¯',
-'Ï´' => 'Î¸',
-'Ï·' => 'Ï¸',
-'Ï¹' => 'Ï²',
-'Ïº' => 'Ï»',
-'Ï½' => 'Í»',
-'Ï¾' => 'Í¼',
-'Ï¿' => 'Í½',
-'Ð' => 'Ñ',
-'Ð' => 'Ñ',
-'Ð' => 'Ñ',
-'Ð' => 'Ñ',
-'Ð' => 'Ñ',
-'Ð
-' => 'Ñ',
-'Ð' => 'Ñ',
-'Ð' => 'Ñ',
-'Ð' => 'Ñ',
-'Ð' => 'Ñ',
-'Ð' => 'Ñ',
-'Ð' => 'Ñ',
-'Ð' => 'Ñ',
-'Ð' => 'Ñ',
-'Ð' => 'Ñ',
-'Ð' => 'Ñ',
-'Ð' => 'Ð°',
-'Ð' => 'Ð±',
-'Ð' => 'Ð²',
-'Ð' => 'Ð³',
-'Ð' => 'Ð´',
-'Ð' => 'Ðµ',
-'Ð' => 'Ð¶',
-'Ð' => 'Ð·',
-'Ð' => 'Ð¸',
-'Ð' => 'Ð¹',
-'Ð' => 'Ðº',
-'Ð' => 'Ð»',
-'Ð' => 'Ð¼',
-'Ð' => 'Ð½',
-'Ð' => 'Ð¾',
-'Ð' => 'Ð¿',
-'Ð ' => 'Ñ',
-'Ð¡' => 'Ñ',
-'Ð¢' => 'Ñ',
-'Ð£' => 'Ñ',
-'Ð¤' => 'Ñ',
-'Ð¥' => 'Ñ
-',
-'Ð¦' => 'Ñ',
-'Ð§' => 'Ñ',
-'Ð¨' => 'Ñ',
-'Ð©' => 'Ñ',
-'Ðª' => 'Ñ',
-'Ð«' => 'Ñ',
-'Ð¬' => 'Ñ',
-'Ð­' => 'Ñ',
-'Ð®' => 'Ñ',
-'Ð¯' => 'Ñ',
-'Ñ ' => 'Ñ¡',
-'Ñ¢' => 'Ñ£',
-'Ñ¤' => 'Ñ¥',
-'Ñ¦' => 'Ñ§',
-'Ñ¨' => 'Ñ©',
-'Ñª' => 'Ñ«',
-'Ñ¬' => 'Ñ­',
-'Ñ®' => 'Ñ¯',
-'Ñ°' => 'Ñ±',
-'Ñ²' => 'Ñ³',
-'Ñ´' => 'Ñµ',
-'Ñ¶' => 'Ñ·',
-'Ñ¸' => 'Ñ¹',
-'Ñº' => 'Ñ»',
-'Ñ¼' => 'Ñ½',
-'Ñ¾' => 'Ñ¿',
-'Ò' => 'Ò',
-'Ò' => 'Ò',
-'Ò' => 'Ò',
-'Ò' => 'Ò',
-'Ò' => 'Ò',
-'Ò' => 'Ò',
-'Ò' => 'Ò',
-'Ò' => 'Ò',
-'Ò' => 'Ò',
-'Ò' => 'Ò',
-'Ò' => 'Ò',
-'Ò' => 'Ò',
-'Ò ' => 'Ò¡',
-'Ò¢' => 'Ò£',
-'Ò¤' => 'Ò¥',
-'Ò¦' => 'Ò§',
-'Ò¨' => 'Ò©',
-'Òª' => 'Ò«',
-'Ò¬' => 'Ò­',
-'Ò®' => 'Ò¯',
-'Ò°' => 'Ò±',
-'Ò²' => 'Ò³',
-'Ò´' => 'Òµ',
-'Ò¶' => 'Ò·',
-'Ò¸' => 'Ò¹',
-'Òº' => 'Ò»',
-'Ò¼' => 'Ò½',
-'Ò¾' => 'Ò¿',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó
-' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó ' => 'Ó¡',
-'Ó¢' => 'Ó£',
-'Ó¤' => 'Ó¥',
-'Ó¦' => 'Ó§',
-'Ó¨' => 'Ó©',
-'Óª' => 'Ó«',
-'Ó¬' => 'Ó­',
-'Ó®' => 'Ó¯',
-'Ó°' => 'Ó±',
-'Ó²' => 'Ó³',
-'Ó´' => 'Óµ',
-'Ó¶' => 'Ó·',
-'Ó¸' => 'Ó¹',
-'Óº' => 'Ó»',
-'Ó¼' => 'Ó½',
-'Ó¾' => 'Ó¿',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô
-',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô ' => 'Ô¡',
-'Ô¢' => 'Ô£',
-'Ô¤' => 'Ô¥',
-'Ô¦' => 'Ô§',
-'Ô¨' => 'Ô©',
-'Ôª' => 'Ô«',
-'Ô¬' => 'Ô­',
-'Ô®' => 'Ô¯',
-'Ô±' => 'Õ¡',
-'Ô²' => 'Õ¢',
-'Ô³' => 'Õ£',
-'Ô´' => 'Õ¤',
-'Ôµ' => 'Õ¥',
-'Ô¶' => 'Õ¦',
-'Ô·' => 'Õ§',
-'Ô¸' => 'Õ¨',
-'Ô¹' => 'Õ©',
-'Ôº' => 'Õª',
-'Ô»' => 'Õ«',
-'Ô¼' => 'Õ¬',
-'Ô½' => 'Õ­',
-'Ô¾' => 'Õ®',
-'Ô¿' => 'Õ¯',
-'Õ' => 'Õ°',
-'Õ' => 'Õ±',
-'Õ' => 'Õ²',
-'Õ' => 'Õ³',
-'Õ' => 'Õ´',
-'Õ
-' => 'Õµ',
-'Õ' => 'Õ¶',
-'Õ' => 'Õ·',
-'Õ' => 'Õ¸',
-'Õ' => 'Õ¹',
-'Õ' => 'Õº',
-'Õ' => 'Õ»',
-'Õ' => 'Õ¼',
-'Õ' => 'Õ½',
-'Õ' => 'Õ¾',
-'Õ' => 'Õ¿',
-'Õ' => 'Ö',
-'Õ' => 'Ö',
-'Õ' => 'Ö',
-'Õ' => 'Ö',
-'Õ' => 'Ö',
-'Õ' => 'Ö
-',
-'Õ' => 'Ö',
-'á ' => 'â´',
-'á¡' => 'â´',
-'á¢' => 'â´',
-'á£' => 'â´',
-'á¤' => 'â´',
-'á¥' => 'â´
-',
-'á¦' => 'â´',
-'á§' => 'â´',
-'á¨' => 'â´',
-'á©' => 'â´',
-'áª' => 'â´',
-'á«' => 'â´',
-'á¬' => 'â´',
-'á­' => 'â´',
-'á®' => 'â´',
-'á¯' => 'â´',
-'á°' => 'â´',
-'á±' => 'â´',
-'á²' => 'â´',
-'á³' => 'â´',
-'á´' => 'â´',
-'áµ' => 'â´',
-'á¶' => 'â´',
-'á·' => 'â´',
-'á¸' => 'â´',
-'á¹' => 'â´',
-'áº' => 'â´',
-'á»' => 'â´',
-'á¼' => 'â´',
-'á½' => 'â´',
-'á¾' => 'â´',
-'á¿' => 'â´',
-'á' => 'â´ ',
-'á' => 'â´¡',
-'á' => 'â´¢',
-'á' => 'â´£',
-'á' => 'â´¤',
-'á
-' => 'â´¥',
-'á' => 'â´§',
-'á' => 'â´­',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸
-',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸ ' => 'á¸¡',
-'á¸¢' => 'á¸£',
-'á¸¤' => 'á¸¥',
-'á¸¦' => 'á¸§',
-'á¸¨' => 'á¸©',
-'á¸ª' => 'á¸«',
-'á¸¬' => 'á¸­',
-'á¸®' => 'á¸¯',
-'á¸°' => 'á¸±',
-'á¸²' => 'á¸³',
-'á¸´' => 'á¸µ',
-'á¸¶' => 'á¸·',
-'á¸¸' => 'á¸¹',
-'á¸º' => 'á¸»',
-'á¸¼' => 'á¸½',
-'á¸¾' => 'á¸¿',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹
-',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹ ' => 'á¹¡',
-'á¹¢' => 'á¹£',
-'á¹¤' => 'á¹¥',
-'á¹¦' => 'á¹§',
-'á¹¨' => 'á¹©',
-'á¹ª' => 'á¹«',
-'á¹¬' => 'á¹­',
-'á¹®' => 'á¹¯',
-'á¹°' => 'á¹±',
-'á¹²' => 'á¹³',
-'á¹´' => 'á¹µ',
-'á¹¶' => 'á¹·',
-'á¹¸' => 'á¹¹',
-'á¹º' => 'á¹»',
-'á¹¼' => 'á¹½',
-'á¹¾' => 'á¹¿',
-'áº' => 'áº',
-'áº' => 'áº',
-'áº' => 'áº
-',
-'áº' => 'áº',
-'áº' => 'áº',
-'áº' => 'áº',
-'áº' => 'áº',
-'áº' => 'áº',
-'áº' => 'áº',
-'áº' => 'áº',
-'áº' => 'áº',
-'áº' => 'Ã',
-'áº ' => 'áº¡',
-'áº¢' => 'áº£',
-'áº¤' => 'áº¥',
-'áº¦' => 'áº§',
-'áº¨' => 'áº©',
-'áºª' => 'áº«',
-'áº¬' => 'áº­',
-'áº®' => 'áº¯',
-'áº°' => 'áº±',
-'áº²' => 'áº³',
-'áº´' => 'áºµ',
-'áº¶' => 'áº·',
-'áº¸' => 'áº¹',
-'áºº' => 'áº»',
-'áº¼' => 'áº½',
-'áº¾' => 'áº¿',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»
-',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á» ' => 'á»¡',
-'á»¢' => 'á»£',
-'á»¤' => 'á»¥',
-'á»¦' => 'á»§',
-'á»¨' => 'á»©',
-'á»ª' => 'á»«',
-'á»¬' => 'á»­',
-'á»®' => 'á»¯',
-'á»°' => 'á»±',
-'á»²' => 'á»³',
-'á»´' => 'á»µ',
-'á»¶' => 'á»·',
-'á»¸' => 'á»¹',
-'á»º' => 'á»»',
-'á»¼' => 'á»½',
-'á»¾' => 'á»¿',
-'á¼' => 'á¼',
-'á¼' => 'á¼',
-'á¼' => 'á¼',
-'á¼' => 'á¼',
-'á¼' => 'á¼',
-'á¼' => 'á¼
-',
-'á¼' => 'á¼',
-'á¼' => 'á¼',
-'á¼' => 'á¼',
-'á¼' => 'á¼',
-'á¼' => 'á¼',
-'á¼' => 'á¼',
-'á¼' => 'á¼',
-'á¼' => 'á¼',
-'á¼¨' => 'á¼ ',
-'á¼©' => 'á¼¡',
-'á¼ª' => 'á¼¢',
-'á¼«' => 'á¼£',
-'á¼¬' => 'á¼¤',
-'á¼­' => 'á¼¥',
-'á¼®' => 'á¼¦',
-'á¼¯' => 'á¼§',
-'á¼¸' => 'á¼°',
-'á¼¹' => 'á¼±',
-'á¼º' => 'á¼²',
-'á¼»' => 'á¼³',
-'á¼¼' => 'á¼´',
-'á¼½' => 'á¼µ',
-'á¼¾' => 'á¼¶',
-'á¼¿' => 'á¼·',
-'á½' => 'á½',
-'á½' => 'á½',
-'á½' => 'á½',
-'á½' => 'á½',
-'á½' => 'á½',
-'á½' => 'á½
-',
-'á½' => 'á½',
-'á½' => 'á½',
-'á½' => 'á½',
-'á½' => 'á½',
-'á½¨' => 'á½ ',
-'á½©' => 'á½¡',
-'á½ª' => 'á½¢',
-'á½«' => 'á½£',
-'á½¬' => 'á½¤',
-'á½­' => 'á½¥',
-'á½®' => 'á½¦',
-'á½¯' => 'á½§',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾
-',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾¨' => 'á¾ ',
-'á¾©' => 'á¾¡',
-'á¾ª' => 'á¾¢',
-'á¾«' => 'á¾£',
-'á¾¬' => 'á¾¤',
-'á¾­' => 'á¾¥',
-'á¾®' => 'á¾¦',
-'á¾¯' => 'á¾§',
-'á¾¸' => 'á¾°',
-'á¾¹' => 'á¾±',
-'á¾º' => 'á½°',
-'á¾»' => 'á½±',
-'á¾¼' => 'á¾³',
-'á¿' => 'á½²',
-'á¿' => 'á½³',
-'á¿' => 'á½´',
-'á¿' => 'á½µ',
-'á¿' => 'á¿',
-'á¿' => 'á¿',
-'á¿' => 'á¿',
-'á¿' => 'á½¶',
-'á¿' => 'á½·',
-'á¿¨' => 'á¿ ',
-'á¿©' => 'á¿¡',
-'á¿ª' => 'á½º',
-'á¿«' => 'á½»',
-'á¿¬' => 'á¿¥',
-'á¿¸' => 'á½¸',
-'á¿¹' => 'á½¹',
-'á¿º' => 'á½¼',
-'á¿»' => 'á½½',
-'á¿¼' => 'á¿³',
-'â¦' => 'Ï',
-'âª' => 'k',
-'â«' => 'Ã¥',
-'â²' => 'â
-',
-'â
- ' => 'â
-°',
-'â
-¡' => 'â
-±',
-'â
-¢' => 'â
-²',
-'â
-£' => 'â
-³',
-'â
-¤' => 'â
-´',
-'â
-¥' => 'â
-µ',
-'â
-¦' => 'â
-¶',
-'â
-§' => 'â
-·',
-'â
-¨' => 'â
-¸',
-'â
-©' => 'â
-¹',
-'â
-ª' => 'â
-º',
-'â
-«' => 'â
-»',
-'â
-¬' => 'â
-¼',
-'â
-­' => 'â
-½',
-'â
-®' => 'â
-¾',
-'â
-¯' => 'â
-¿',
-'â' => 'â',
-'â¶' => 'â',
-'â·' => 'â',
-'â¸' => 'â',
-'â¹' => 'â',
-'âº' => 'â',
-'â»' => 'â',
-'â¼' => 'â',
-'â½' => 'â',
-'â¾' => 'â',
-'â¿' => 'â',
-'â' => 'â',
-'â' => 'â',
-'â' => 'â',
-'â' => 'â',
-'â' => 'â',
-'â
-' => 'â',
-'â' => 'â ',
-'â' => 'â¡',
-'â' => 'â¢',
-'â' => 'â£',
-'â' => 'â¤',
-'â' => 'â¥',
-'â' => 'â¦',
-'â' => 'â§',
-'â' => 'â¨',
-'â' => 'â©',
-'â°' => 'â°°',
-'â°' => 'â°±',
-'â°' => 'â°²',
-'â°' => 'â°³',
-'â°' => 'â°´',
-'â°
-' => 'â°µ',
-'â°' => 'â°¶',
-'â°' => 'â°·',
-'â°' => 'â°¸',
-'â°' => 'â°¹',
-'â°' => 'â°º',
-'â°' => 'â°»',
-'â°' => 'â°¼',
-'â°' => 'â°½',
-'â°' => 'â°¾',
-'â°' => 'â°¿',
-'â°' => 'â±',
-'â°' => 'â±',
-'â°' => 'â±',
-'â°' => 'â±',
-'â°' => 'â±',
-'â°' => 'â±
-',
-'â°' => 'â±',
-'â°' => 'â±',
-'â°' => 'â±',
-'â°' => 'â±',
-'â°' => 'â±',
-'â°' => 'â±',
-'â°' => 'â±',
-'â°' => 'â±',
-'â°' => 'â±',
-'â°' => 'â±',
-'â° ' => 'â±',
-'â°¡' => 'â±',
-'â°¢' => 'â±',
-'â°£' => 'â±',
-'â°¤' => 'â±',
-'â°¥' => 'â±',
-'â°¦' => 'â±',
-'â°§' => 'â±',
-'â°¨' => 'â±',
-'â°©' => 'â±',
-'â°ª' => 'â±',
-'â°«' => 'â±',
-'â°¬' => 'â±',
-'â°­' => 'â±',
-'â°®' => 'â±',
-'â± ' => 'â±¡',
-'â±¢' => 'É«',
-'â±£' => 'áµ½',
-'â±¤' => 'É½',
-'â±§' => 'â±¨',
-'â±©' => 'â±ª',
-'â±«' => 'â±¬',
-'â±­' => 'É',
-'â±®' => 'É±',
-'â±¯' => 'É',
-'â±°' => 'É',
-'â±²' => 'â±³',
-'â±µ' => 'â±¶',
-'â±¾' => 'È¿',
-'â±¿' => 'É',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²
-',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â² ' => 'â²¡',
-'â²¢' => 'â²£',
-'â²¤' => 'â²¥',
-'â²¦' => 'â²§',
-'â²¨' => 'â²©',
-'â²ª' => 'â²«',
-'â²¬' => 'â²­',
-'â²®' => 'â²¯',
-'â²°' => 'â²±',
-'â²²' => 'â²³',
-'â²´' => 'â²µ',
-'â²¶' => 'â²·',
-'â²¸' => 'â²¹',
-'â²º' => 'â²»',
-'â²¼' => 'â²½',
-'â²¾' => 'â²¿',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³
-',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³ ' => 'â³¡',
-'â³¢' => 'â³£',
-'â³«' => 'â³¬',
-'â³­' => 'â³®',
-'â³²' => 'â³³',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê
-',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê ' => 'ê¡',
-'ê¢' => 'ê£',
-'ê¤' => 'ê¥',
-'ê¦' => 'ê§',
-'ê¨' => 'ê©',
-'êª' => 'ê«',
-'ê¬' => 'ê­',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê
-',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê¢' => 'ê£',
-'ê¤' => 'ê¥',
-'ê¦' => 'ê§',
-'ê¨' => 'ê©',
-'êª' => 'ê«',
-'ê¬' => 'ê­',
-'ê®' => 'ê¯',
-'ê²' => 'ê³',
-'ê´' => 'êµ',
-'ê¶' => 'ê·',
-'ê¸' => 'ê¹',
-'êº' => 'ê»',
-'ê¼' => 'ê½',
-'ê¾' => 'ê¿',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê
-',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê ' => 'ê¡',
-'ê¢' => 'ê£',
-'ê¤' => 'ê¥',
-'ê¦' => 'ê§',
-'ê¨' => 'ê©',
-'êª' => 'ê«',
-'ê¬' => 'ê­',
-'ê®' => 'ê¯',
-'ê¹' => 'êº',
-'ê»' => 'ê¼',
-'ê½' => 'áµ¹',
-'ê¾' => 'ê¿',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê
-',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'É¥',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê ' => 'ê¡',
-'ê¢' => 'ê£',
-'ê¤' => 'ê¥',
-'ê¦' => 'ê§',
-'ê¨' => 'ê©',
-'êª' => 'É¦',
-'ê«' => 'É',
-'ê¬' => 'É¡',
-'ê­' => 'É¬',
-'ê°' => 'Ê',
-'ê±' => 'Ê',
-'ï¼¡' => 'ï½',
-'ï¼¢' => 'ï½',
-'ï¼£' => 'ï½',
-'ï¼¤' => 'ï½',
-'ï¼¥' => 'ï½
-',
-'ï¼¦' => 'ï½',
-'ï¼§' => 'ï½',
-'ï¼¨' => 'ï½',
-'ï¼©' => 'ï½',
-'ï¼ª' => 'ï½',
-'ï¼«' => 'ï½',
-'ï¼¬' => 'ï½',
-'ï¼­' => 'ï½',
-'ï¼®' => 'ï½',
-'ï¼¯' => 'ï½',
-'ï¼°' => 'ï½',
-'ï¼±' => 'ï½',
-'ï¼²' => 'ï½',
-'ï¼³' => 'ï½',
-'ï¼´' => 'ï½',
-'ï¼µ' => 'ï½',
-'ï¼¶' => 'ï½',
-'ï¼·' => 'ï½',
-'ï¼¸' => 'ï½',
-'ï¼¹' => 'ï½',
-'ï¼º' => 'ï½',
-'ð' => 'ð¨',
-'ð' => 'ð©',
-'ð' => 'ðª',
-'ð' => 'ð«',
-'ð' => 'ð¬',
-'ð
-' => 'ð­',
-'ð' => 'ð®',
-'ð' => 'ð¯',
-'ð' => 'ð°',
-'ð' => 'ð±',
-'ð' => 'ð²',
-'ð' => 'ð³',
-'ð' => 'ð´',
-'ð' => 'ðµ',
-'ð' => 'ð¶',
-'ð' => 'ð·',
-'ð' => 'ð¸',
-'ð' => 'ð¹',
-'ð' => 'ðº',
-'ð' => 'ð»',
-'ð' => 'ð¼',
-'ð' => 'ð½',
-'ð' => 'ð¾',
-'ð' => 'ð¿',
-'ð' => 'ð',
-'ð' => 'ð',
-'ð' => 'ð',
-'ð' => 'ð',
-'ð' => 'ð',
-'ð' => 'ð
-',
-'ð' => 'ð',
-'ð' => 'ð',
-'ð ' => 'ð',
-'ð¡' => 'ð',
-'ð¢' => 'ð',
-'ð£' => 'ð',
-'ð¤' => 'ð',
-'ð¥' => 'ð',
-'ð¦' => 'ð',
-'ð§' => 'ð',
-'ð¢ ' => 'ð£',
-'ð¢¡' => 'ð£',
-'ð¢¢' => 'ð£',
-'ð¢£' => 'ð£',
-'ð¢¤' => 'ð£',
-'ð¢¥' => 'ð£
-',
-'ð¢¦' => 'ð£',
-'ð¢§' => 'ð£',
-'ð¢¨' => 'ð£',
-'ð¢©' => 'ð£',
-'ð¢ª' => 'ð£',
-'ð¢«' => 'ð£',
-'ð¢¬' => 'ð£',
-'ð¢­' => 'ð£',
-'ð¢®' => 'ð£',
-'ð¢¯' => 'ð£',
-'ð¢°' => 'ð£',
-'ð¢±' => 'ð£',
-'ð¢²' => 'ð£',
-'ð¢³' => 'ð£',
-'ð¢´' => 'ð£',
-'ð¢µ' => 'ð£',
-'ð¢¶' => 'ð£',
-'ð¢·' => 'ð£',
-'ð¢¸' => 'ð£',
-'ð¢¹' => 'ð£',
-'ð¢º' => 'ð£',
-'ð¢»' => 'ð£',
-'ð¢¼' => 'ð£',
-'ð¢½' => 'ð£',
-'ð¢¾' => 'ð£',
-'ð¢¿' => 'ð£',
-);
-<?php
-
-
-
-return '/(?<![\x{0027}\x{002E}\x{003A}\x{005E}\x{0060}\x{00A8}\x{00AD}\x{00AF}\x{00B4}\x{00B7}\x{00B8}\x{02B0}-\x{02C1}\x{02C2}-\x{02C5}\x{02C6}-\x{02D1}\x{02D2}-\x{02DF}\x{02E0}-\x{02E4}\x{02E5}-\x{02EB}\x{02EC}\x{02ED}\x{02EE}\x{02EF}-\x{02FF}\x{0300}-\x{036F}\x{0374}\x{0375}\x{037A}\x{0384}-\x{0385}\x{0387}\x{0483}-\x{0487}\x{0488}-\x{0489}\x{0559}\x{0591}-\x{05BD}\x{05BF}\x{05C1}-\x{05C2}\x{05C4}-\x{05C5}\x{05C7}\x{05F4}\x{0600}-\x{0605}\x{0610}-\x{061A}\x{061C}\x{0640}\x{064B}-\x{065F}\x{0670}\x{06D6}-\x{06DC}\x{06DD}\x{06DF}-\x{06E4}\x{06E5}-\x{06E6}\x{06E7}-\x{06E8}\x{06EA}-\x{06ED}\x{070F}\x{0711}\x{0730}-\x{074A}\x{07A6}-\x{07B0}\x{07EB}-\x{07F3}\x{07F4}-\x{07F5}\x{07FA}\x{07FD}\x{0816}-\x{0819}\x{081A}\x{081B}-\x{0823}\x{0824}\x{0825}-\x{0827}\x{0828}\x{0829}-\x{082D}\x{0859}-\x{085B}\x{08D3}-\x{08E1}\x{08E2}\x{08E3}-\x{0902}\x{093A}\x{093C}\x{0941}-\x{0948}\x{094D}\x{0951}-\x{0957}\x{0962}-\x{0963}\x{0971}\x{0981}\x{09BC}\x{09C1}-\x{09C4}\x{09CD}\x{09E2}-\x{09E3}\x{09FE}\x{0A01}-\x{0A02}\x{0A3C}\x{0A41}-\x{0A42}\x{0A47}-\x{0A48}\x{0A4B}-\x{0A4D}\x{0A51}\x{0A70}-\x{0A71}\x{0A75}\x{0A81}-\x{0A82}\x{0ABC}\x{0AC1}-\x{0AC5}\x{0AC7}-\x{0AC8}\x{0ACD}\x{0AE2}-\x{0AE3}\x{0AFA}-\x{0AFF}\x{0B01}\x{0B3C}\x{0B3F}\x{0B41}-\x{0B44}\x{0B4D}\x{0B56}\x{0B62}-\x{0B63}\x{0B82}\x{0BC0}\x{0BCD}\x{0C00}\x{0C04}\x{0C3E}-\x{0C40}\x{0C46}-\x{0C48}\x{0C4A}-\x{0C4D}\x{0C55}-\x{0C56}\x{0C62}-\x{0C63}\x{0C81}\x{0CBC}\x{0CBF}\x{0CC6}\x{0CCC}-\x{0CCD}\x{0CE2}-\x{0CE3}\x{0D00}-\x{0D01}\x{0D3B}-\x{0D3C}\x{0D41}-\x{0D44}\x{0D4D}\x{0D62}-\x{0D63}\x{0DCA}\x{0DD2}-\x{0DD4}\x{0DD6}\x{0E31}\x{0E34}-\x{0E3A}\x{0E46}\x{0E47}-\x{0E4E}\x{0EB1}\x{0EB4}-\x{0EB9}\x{0EBB}-\x{0EBC}\x{0EC6}\x{0EC8}-\x{0ECD}\x{0F18}-\x{0F19}\x{0F35}\x{0F37}\x{0F39}\x{0F71}-\x{0F7E}\x{0F80}-\x{0F84}\x{0F86}-\x{0F87}\x{0F8D}-\x{0F97}\x{0F99}-\x{0FBC}\x{0FC6}\x{102D}-\x{1030}\x{1032}-\x{1037}\x{1039}-\x{103A}\x{103D}-\x{103E}\x{1058}-\x{1059}\x{105E}-\x{1060}\x{1071}-\x{1074}\x{1082}\x{1085}-\x{1086}\x{108D}\x{109D}\x{10FC}\x{135D}-\x{135F}\x{1712}-\x{1714}\x{1732}-\x{1734}\x{1752}-\x{1753}\x{1772}-\x{1773}\x{17B4}-\x{17B5}\x{17B7}-\x{17BD}\x{17C6}\x{17C9}-\x{17D3}\x{17D7}\x{17DD}\x{180B}-\x{180D}\x{180E}\x{1843}\x{1885}-\x{1886}\x{18A9}\x{1920}-\x{1922}\x{1927}-\x{1928}\x{1932}\x{1939}-\x{193B}\x{1A17}-\x{1A18}\x{1A1B}\x{1A56}\x{1A58}-\x{1A5E}\x{1A60}\x{1A62}\x{1A65}-\x{1A6C}\x{1A73}-\x{1A7C}\x{1A7F}\x{1AA7}\x{1AB0}-\x{1ABD}\x{1ABE}\x{1B00}-\x{1B03}\x{1B34}\x{1B36}-\x{1B3A}\x{1B3C}\x{1B42}\x{1B6B}-\x{1B73}\x{1B80}-\x{1B81}\x{1BA2}-\x{1BA5}\x{1BA8}-\x{1BA9}\x{1BAB}-\x{1BAD}\x{1BE6}\x{1BE8}-\x{1BE9}\x{1BED}\x{1BEF}-\x{1BF1}\x{1C2C}-\x{1C33}\x{1C36}-\x{1C37}\x{1C78}-\x{1C7D}\x{1CD0}-\x{1CD2}\x{1CD4}-\x{1CE0}\x{1CE2}-\x{1CE8}\x{1CED}\x{1CF4}\x{1CF8}-\x{1CF9}\x{1D2C}-\x{1D6A}\x{1D78}\x{1D9B}-\x{1DBF}\x{1DC0}-\x{1DF9}\x{1DFB}-\x{1DFF}\x{1FBD}\x{1FBF}-\x{1FC1}\x{1FCD}-\x{1FCF}\x{1FDD}-\x{1FDF}\x{1FED}-\x{1FEF}\x{1FFD}-\x{1FFE}\x{200B}-\x{200F}\x{2018}\x{2019}\x{2024}\x{2027}\x{202A}-\x{202E}\x{2060}-\x{2064}\x{2066}-\x{206F}\x{2071}\x{207F}\x{2090}-\x{209C}\x{20D0}-\x{20DC}\x{20DD}-\x{20E0}\x{20E1}\x{20E2}-\x{20E4}\x{20E5}-\x{20F0}\x{2C7C}-\x{2C7D}\x{2CEF}-\x{2CF1}\x{2D6F}\x{2D7F}\x{2DE0}-\x{2DFF}\x{2E2F}\x{3005}\x{302A}-\x{302D}\x{3031}-\x{3035}\x{303B}\x{3099}-\x{309A}\x{309B}-\x{309C}\x{309D}-\x{309E}\x{30FC}-\x{30FE}\x{A015}\x{A4F8}-\x{A4FD}\x{A60C}\x{A66F}\x{A670}-\x{A672}\x{A674}-\x{A67D}\x{A67F}\x{A69C}-\x{A69D}\x{A69E}-\x{A69F}\x{A6F0}-\x{A6F1}\x{A700}-\x{A716}\x{A717}-\x{A71F}\x{A720}-\x{A721}\x{A770}\x{A788}\x{A789}-\x{A78A}\x{A7F8}-\x{A7F9}\x{A802}\x{A806}\x{A80B}\x{A825}-\x{A826}\x{A8C4}-\x{A8C5}\x{A8E0}-\x{A8F1}\x{A8FF}\x{A926}-\x{A92D}\x{A947}-\x{A951}\x{A980}-\x{A982}\x{A9B3}\x{A9B6}-\x{A9B9}\x{A9BC}\x{A9CF}\x{A9E5}\x{A9E6}\x{AA29}-\x{AA2E}\x{AA31}-\x{AA32}\x{AA35}-\x{AA36}\x{AA43}\x{AA4C}\x{AA70}\x{AA7C}\x{AAB0}\x{AAB2}-\x{AAB4}\x{AAB7}-\x{AAB8}\x{AABE}-\x{AABF}\x{AAC1}\x{AADD}\x{AAEC}-\x{AAED}\x{AAF3}-\x{AAF4}\x{AAF6}\x{AB5B}\x{AB5C}-\x{AB5F}\x{ABE5}\x{ABE8}\x{ABED}\x{FB1E}\x{FBB2}-\x{FBC1}\x{FE00}-\x{FE0F}\x{FE13}\x{FE20}-\x{FE2F}\x{FE52}\x{FE55}\x{FEFF}\x{FF07}\x{FF0E}\x{FF1A}\x{FF3E}\x{FF40}\x{FF70}\x{FF9E}-\x{FF9F}\x{FFE3}\x{FFF9}-\x{FFFB}\x{101FD}\x{102E0}\x{10376}-\x{1037A}\x{10A01}-\x{10A03}\x{10A05}-\x{10A06}\x{10A0C}-\x{10A0F}\x{10A38}-\x{10A3A}\x{10A3F}\x{10AE5}-\x{10AE6}\x{10D24}-\x{10D27}\x{10F46}-\x{10F50}\x{11001}\x{11038}-\x{11046}\x{1107F}-\x{11081}\x{110B3}-\x{110B6}\x{110B9}-\x{110BA}\x{110BD}\x{110CD}\x{11100}-\x{11102}\x{11127}-\x{1112B}\x{1112D}-\x{11134}\x{11173}\x{11180}-\x{11181}\x{111B6}-\x{111BE}\x{111C9}-\x{111CC}\x{1122F}-\x{11231}\x{11234}\x{11236}-\x{11237}\x{1123E}\x{112DF}\x{112E3}-\x{112EA}\x{11300}-\x{11301}\x{1133B}-\x{1133C}\x{11340}\x{11366}-\x{1136C}\x{11370}-\x{11374}\x{11438}-\x{1143F}\x{11442}-\x{11444}\x{11446}\x{1145E}\x{114B3}-\x{114B8}\x{114BA}\x{114BF}-\x{114C0}\x{114C2}-\x{114C3}\x{115B2}-\x{115B5}\x{115BC}-\x{115BD}\x{115BF}-\x{115C0}\x{115DC}-\x{115DD}\x{11633}-\x{1163A}\x{1163D}\x{1163F}-\x{11640}\x{116AB}\x{116AD}\x{116B0}-\x{116B5}\x{116B7}\x{1171D}-\x{1171F}\x{11722}-\x{11725}\x{11727}-\x{1172B}\x{1182F}-\x{11837}\x{11839}-\x{1183A}\x{11A01}-\x{11A0A}\x{11A33}-\x{11A38}\x{11A3B}-\x{11A3E}\x{11A47}\x{11A51}-\x{11A56}\x{11A59}-\x{11A5B}\x{11A8A}-\x{11A96}\x{11A98}-\x{11A99}\x{11C30}-\x{11C36}\x{11C38}-\x{11C3D}\x{11C3F}\x{11C92}-\x{11CA7}\x{11CAA}-\x{11CB0}\x{11CB2}-\x{11CB3}\x{11CB5}-\x{11CB6}\x{11D31}-\x{11D36}\x{11D3A}\x{11D3C}-\x{11D3D}\x{11D3F}-\x{11D45}\x{11D47}\x{11D90}-\x{11D91}\x{11D95}\x{11D97}\x{11EF3}-\x{11EF4}\x{16AF0}-\x{16AF4}\x{16B30}-\x{16B36}\x{16B40}-\x{16B43}\x{16F8F}-\x{16F92}\x{16F93}-\x{16F9F}\x{16FE0}-\x{16FE1}\x{1BC9D}-\x{1BC9E}\x{1BCA0}-\x{1BCA3}\x{1D167}-\x{1D169}\x{1D173}-\x{1D17A}\x{1D17B}-\x{1D182}\x{1D185}-\x{1D18B}\x{1D1AA}-\x{1D1AD}\x{1D242}-\x{1D244}\x{1DA00}-\x{1DA36}\x{1DA3B}-\x{1DA6C}\x{1DA75}\x{1DA84}\x{1DA9B}-\x{1DA9F}\x{1DAA1}-\x{1DAAF}\x{1E000}-\x{1E006}\x{1E008}-\x{1E018}\x{1E01B}-\x{1E021}\x{1E023}-\x{1E024}\x{1E026}-\x{1E02A}\x{1E8D0}-\x{1E8D6}\x{1E944}-\x{1E94A}\x{1F3FB}-\x{1F3FF}\x{E0001}\x{E0020}-\x{E007F}\x{E0100}-\x{E01EF}])(\pL)(\pL*+)/u';
-<?php
-
-return array(
-'a' => 'A',
-'b' => 'B',
-'c' => 'C',
-'d' => 'D',
-'e' => 'E',
-'f' => 'F',
-'g' => 'G',
-'h' => 'H',
-'i' => 'I',
-'j' => 'J',
-'k' => 'K',
-'l' => 'L',
-'m' => 'M',
-'n' => 'N',
-'o' => 'O',
-'p' => 'P',
-'q' => 'Q',
-'r' => 'R',
-'s' => 'S',
-'t' => 'T',
-'u' => 'U',
-'v' => 'V',
-'w' => 'W',
-'x' => 'X',
-'y' => 'Y',
-'z' => 'Z',
-'Âµ' => 'Î',
-'Ã ' => 'Ã',
-'Ã¡' => 'Ã',
-'Ã¢' => 'Ã',
-'Ã£' => 'Ã',
-'Ã¤' => 'Ã',
-'Ã¥' => 'Ã
-',
-'Ã¦' => 'Ã',
-'Ã§' => 'Ã',
-'Ã¨' => 'Ã',
-'Ã©' => 'Ã',
-'Ãª' => 'Ã',
-'Ã«' => 'Ã',
-'Ã¬' => 'Ã',
-'Ã­' => 'Ã',
-'Ã®' => 'Ã',
-'Ã¯' => 'Ã',
-'Ã°' => 'Ã',
-'Ã±' => 'Ã',
-'Ã²' => 'Ã',
-'Ã³' => 'Ã',
-'Ã´' => 'Ã',
-'Ãµ' => 'Ã',
-'Ã¶' => 'Ã',
-'Ã¸' => 'Ã',
-'Ã¹' => 'Ã',
-'Ãº' => 'Ã',
-'Ã»' => 'Ã',
-'Ã¼' => 'Ã',
-'Ã½' => 'Ã',
-'Ã¾' => 'Ã',
-'Ã¿' => 'Å¸',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä
-' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä' => 'Ä',
-'Ä¡' => 'Ä ',
-'Ä£' => 'Ä¢',
-'Ä¥' => 'Ä¤',
-'Ä§' => 'Ä¦',
-'Ä©' => 'Ä¨',
-'Ä«' => 'Äª',
-'Ä­' => 'Ä¬',
-'Ä¯' => 'Ä®',
-'Ä±' => 'I',
-'Ä³' => 'Ä²',
-'Äµ' => 'Ä´',
-'Ä·' => 'Ä¶',
-'Äº' => 'Ä¹',
-'Ä¼' => 'Ä»',
-'Ä¾' => 'Ä½',
-'Å' => 'Ä¿',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å
-',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å' => 'Å',
-'Å¡' => 'Å ',
-'Å£' => 'Å¢',
-'Å¥' => 'Å¤',
-'Å§' => 'Å¦',
-'Å©' => 'Å¨',
-'Å«' => 'Åª',
-'Å­' => 'Å¬',
-'Å¯' => 'Å®',
-'Å±' => 'Å°',
-'Å³' => 'Å²',
-'Åµ' => 'Å´',
-'Å·' => 'Å¶',
-'Åº' => 'Å¹',
-'Å¼' => 'Å»',
-'Å¾' => 'Å½',
-'Å¿' => 'S',
-'Æ' => 'É',
-'Æ' => 'Æ',
-'Æ
-' => 'Æ',
-'Æ' => 'Æ',
-'Æ' => 'Æ',
-'Æ' => 'Æ',
-'Æ' => 'Ç¶',
-'Æ' => 'Æ',
-'Æ' => 'È½',
-'Æ' => 'È ',
-'Æ¡' => 'Æ ',
-'Æ£' => 'Æ¢',
-'Æ¥' => 'Æ¤',
-'Æ¨' => 'Æ§',
-'Æ­' => 'Æ¬',
-'Æ°' => 'Æ¯',
-'Æ´' => 'Æ³',
-'Æ¶' => 'Æµ',
-'Æ¹' => 'Æ¸',
-'Æ½' => 'Æ¼',
-'Æ¿' => 'Ç·',
-'Ç
-' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Ç',
-'Ç' => 'Æ',
-'Ç' => 'Ç',
-'Ç¡' => 'Ç ',
-'Ç£' => 'Ç¢',
-'Ç¥' => 'Ç¤',
-'Ç§' => 'Ç¦',
-'Ç©' => 'Ç¨',
-'Ç«' => 'Çª',
-'Ç­' => 'Ç¬',
-'Ç¯' => 'Ç®',
-'Ç²' => 'Ç±',
-'Ç³' => 'Ç±',
-'Çµ' => 'Ç´',
-'Ç¹' => 'Ç¸',
-'Ç»' => 'Çº',
-'Ç½' => 'Ç¼',
-'Ç¿' => 'Ç¾',
-'È' => 'È',
-'È' => 'È',
-'È
-' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È' => 'È',
-'È£' => 'È¢',
-'È¥' => 'È¤',
-'È§' => 'È¦',
-'È©' => 'È¨',
-'È«' => 'Èª',
-'È­' => 'È¬',
-'È¯' => 'È®',
-'È±' => 'È°',
-'È³' => 'È²',
-'È¼' => 'È»',
-'È¿' => 'â±¾',
-'É' => 'â±¿',
-'É' => 'É',
-'É' => 'É',
-'É' => 'É',
-'É' => 'É',
-'É' => 'É',
-'É' => 'É',
-'É' => 'â±¯',
-'É' => 'â±­',
-'É' => 'â±°',
-'É' => 'Æ',
-'É' => 'Æ',
-'É' => 'Æ',
-'É' => 'Æ',
-'É' => 'Æ',
-'É' => 'Æ',
-'É' => 'ê«',
-'É ' => 'Æ',
-'É¡' => 'ê¬',
-'É£' => 'Æ',
-'É¥' => 'ê',
-'É¦' => 'êª',
-'É¨' => 'Æ',
-'É©' => 'Æ',
-'É«' => 'â±¢',
-'É¬' => 'ê­',
-'É¯' => 'Æ',
-'É±' => 'â±®',
-'É²' => 'Æ',
-'Éµ' => 'Æ',
-'É½' => 'â±¤',
-'Ê' => 'Æ¦',
-'Ê' => 'Æ©',
-'Ê' => 'ê±',
-'Ê' => 'Æ®',
-'Ê' => 'É',
-'Ê' => 'Æ±',
-'Ê' => 'Æ²',
-'Ê' => 'É
-',
-'Ê' => 'Æ·',
-'Ê' => 'ê°',
-'Í
-' => 'Î',
-'Í±' => 'Í°',
-'Í³' => 'Í²',
-'Í·' => 'Í¶',
-'Í»' => 'Ï½',
-'Í¼' => 'Ï¾',
-'Í½' => 'Ï¿',
-'Î¬' => 'Î',
-'Î­' => 'Î',
-'Î®' => 'Î',
-'Î¯' => 'Î',
-'Î±' => 'Î',
-'Î²' => 'Î',
-'Î³' => 'Î',
-'Î´' => 'Î',
-'Îµ' => 'Î',
-'Î¶' => 'Î',
-'Î·' => 'Î',
-'Î¸' => 'Î',
-'Î¹' => 'Î',
-'Îº' => 'Î',
-'Î»' => 'Î',
-'Î¼' => 'Î',
-'Î½' => 'Î',
-'Î¾' => 'Î',
-'Î¿' => 'Î',
-'Ï' => 'Î ',
-'Ï' => 'Î¡',
-'Ï' => 'Î£',
-'Ï' => 'Î£',
-'Ï' => 'Î¤',
-'Ï
-' => 'Î¥',
-'Ï' => 'Î¦',
-'Ï' => 'Î§',
-'Ï' => 'Î¨',
-'Ï' => 'Î©',
-'Ï' => 'Îª',
-'Ï' => 'Î«',
-'Ï' => 'Î',
-'Ï' => 'Î',
-'Ï' => 'Î',
-'Ï' => 'Î',
-'Ï' => 'Î',
-'Ï' => 'Î¦',
-'Ï' => 'Î ',
-'Ï' => 'Ï',
-'Ï' => 'Ï',
-'Ï' => 'Ï',
-'Ï' => 'Ï',
-'Ï' => 'Ï',
-'Ï¡' => 'Ï ',
-'Ï£' => 'Ï¢',
-'Ï¥' => 'Ï¤',
-'Ï§' => 'Ï¦',
-'Ï©' => 'Ï¨',
-'Ï«' => 'Ïª',
-'Ï­' => 'Ï¬',
-'Ï¯' => 'Ï®',
-'Ï°' => 'Î',
-'Ï±' => 'Î¡',
-'Ï²' => 'Ï¹',
-'Ï³' => 'Í¿',
-'Ïµ' => 'Î',
-'Ï¸' => 'Ï·',
-'Ï»' => 'Ïº',
-'Ð°' => 'Ð',
-'Ð±' => 'Ð',
-'Ð²' => 'Ð',
-'Ð³' => 'Ð',
-'Ð´' => 'Ð',
-'Ðµ' => 'Ð',
-'Ð¶' => 'Ð',
-'Ð·' => 'Ð',
-'Ð¸' => 'Ð',
-'Ð¹' => 'Ð',
-'Ðº' => 'Ð',
-'Ð»' => 'Ð',
-'Ð¼' => 'Ð',
-'Ð½' => 'Ð',
-'Ð¾' => 'Ð',
-'Ð¿' => 'Ð',
-'Ñ' => 'Ð ',
-'Ñ' => 'Ð¡',
-'Ñ' => 'Ð¢',
-'Ñ' => 'Ð£',
-'Ñ' => 'Ð¤',
-'Ñ
-' => 'Ð¥',
-'Ñ' => 'Ð¦',
-'Ñ' => 'Ð§',
-'Ñ' => 'Ð¨',
-'Ñ' => 'Ð©',
-'Ñ' => 'Ðª',
-'Ñ' => 'Ð«',
-'Ñ' => 'Ð¬',
-'Ñ' => 'Ð­',
-'Ñ' => 'Ð®',
-'Ñ' => 'Ð¯',
-'Ñ' => 'Ð',
-'Ñ' => 'Ð',
-'Ñ' => 'Ð',
-'Ñ' => 'Ð',
-'Ñ' => 'Ð',
-'Ñ' => 'Ð
-',
-'Ñ' => 'Ð',
-'Ñ' => 'Ð',
-'Ñ' => 'Ð',
-'Ñ' => 'Ð',
-'Ñ' => 'Ð',
-'Ñ' => 'Ð',
-'Ñ' => 'Ð',
-'Ñ' => 'Ð',
-'Ñ' => 'Ð',
-'Ñ' => 'Ð',
-'Ñ¡' => 'Ñ ',
-'Ñ£' => 'Ñ¢',
-'Ñ¥' => 'Ñ¤',
-'Ñ§' => 'Ñ¦',
-'Ñ©' => 'Ñ¨',
-'Ñ«' => 'Ñª',
-'Ñ­' => 'Ñ¬',
-'Ñ¯' => 'Ñ®',
-'Ñ±' => 'Ñ°',
-'Ñ³' => 'Ñ²',
-'Ñµ' => 'Ñ´',
-'Ñ·' => 'Ñ¶',
-'Ñ¹' => 'Ñ¸',
-'Ñ»' => 'Ñº',
-'Ñ½' => 'Ñ¼',
-'Ñ¿' => 'Ñ¾',
-'Ò' => 'Ò',
-'Ò' => 'Ò',
-'Ò' => 'Ò',
-'Ò' => 'Ò',
-'Ò' => 'Ò',
-'Ò' => 'Ò',
-'Ò' => 'Ò',
-'Ò' => 'Ò',
-'Ò' => 'Ò',
-'Ò' => 'Ò',
-'Ò' => 'Ò',
-'Ò' => 'Ò',
-'Ò¡' => 'Ò ',
-'Ò£' => 'Ò¢',
-'Ò¥' => 'Ò¤',
-'Ò§' => 'Ò¦',
-'Ò©' => 'Ò¨',
-'Ò«' => 'Òª',
-'Ò­' => 'Ò¬',
-'Ò¯' => 'Ò®',
-'Ò±' => 'Ò°',
-'Ò³' => 'Ò²',
-'Òµ' => 'Ò´',
-'Ò·' => 'Ò¶',
-'Ò¹' => 'Ò¸',
-'Ò»' => 'Òº',
-'Ò½' => 'Ò¼',
-'Ò¿' => 'Ò¾',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó
-',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó' => 'Ó',
-'Ó¡' => 'Ó ',
-'Ó£' => 'Ó¢',
-'Ó¥' => 'Ó¤',
-'Ó§' => 'Ó¦',
-'Ó©' => 'Ó¨',
-'Ó«' => 'Óª',
-'Ó­' => 'Ó¬',
-'Ó¯' => 'Ó®',
-'Ó±' => 'Ó°',
-'Ó³' => 'Ó²',
-'Óµ' => 'Ó´',
-'Ó·' => 'Ó¶',
-'Ó¹' => 'Ó¸',
-'Ó»' => 'Óº',
-'Ó½' => 'Ó¼',
-'Ó¿' => 'Ó¾',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô
-' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô' => 'Ô',
-'Ô¡' => 'Ô ',
-'Ô£' => 'Ô¢',
-'Ô¥' => 'Ô¤',
-'Ô§' => 'Ô¦',
-'Ô©' => 'Ô¨',
-'Ô«' => 'Ôª',
-'Ô­' => 'Ô¬',
-'Ô¯' => 'Ô®',
-'Õ¡' => 'Ô±',
-'Õ¢' => 'Ô²',
-'Õ£' => 'Ô³',
-'Õ¤' => 'Ô´',
-'Õ¥' => 'Ôµ',
-'Õ¦' => 'Ô¶',
-'Õ§' => 'Ô·',
-'Õ¨' => 'Ô¸',
-'Õ©' => 'Ô¹',
-'Õª' => 'Ôº',
-'Õ«' => 'Ô»',
-'Õ¬' => 'Ô¼',
-'Õ­' => 'Ô½',
-'Õ®' => 'Ô¾',
-'Õ¯' => 'Ô¿',
-'Õ°' => 'Õ',
-'Õ±' => 'Õ',
-'Õ²' => 'Õ',
-'Õ³' => 'Õ',
-'Õ´' => 'Õ',
-'Õµ' => 'Õ
-',
-'Õ¶' => 'Õ',
-'Õ·' => 'Õ',
-'Õ¸' => 'Õ',
-'Õ¹' => 'Õ',
-'Õº' => 'Õ',
-'Õ»' => 'Õ',
-'Õ¼' => 'Õ',
-'Õ½' => 'Õ',
-'Õ¾' => 'Õ',
-'Õ¿' => 'Õ',
-'Ö' => 'Õ',
-'Ö' => 'Õ',
-'Ö' => 'Õ',
-'Ö' => 'Õ',
-'Ö' => 'Õ',
-'Ö
-' => 'Õ',
-'Ö' => 'Õ',
-'áµ¹' => 'ê½',
-'áµ½' => 'â±£',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸
-' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸' => 'á¸',
-'á¸¡' => 'á¸ ',
-'á¸£' => 'á¸¢',
-'á¸¥' => 'á¸¤',
-'á¸§' => 'á¸¦',
-'á¸©' => 'á¸¨',
-'á¸«' => 'á¸ª',
-'á¸­' => 'á¸¬',
-'á¸¯' => 'á¸®',
-'á¸±' => 'á¸°',
-'á¸³' => 'á¸²',
-'á¸µ' => 'á¸´',
-'á¸·' => 'á¸¶',
-'á¸¹' => 'á¸¸',
-'á¸»' => 'á¸º',
-'á¸½' => 'á¸¼',
-'á¸¿' => 'á¸¾',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹
-' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹' => 'á¹',
-'á¹¡' => 'á¹ ',
-'á¹£' => 'á¹¢',
-'á¹¥' => 'á¹¤',
-'á¹§' => 'á¹¦',
-'á¹©' => 'á¹¨',
-'á¹«' => 'á¹ª',
-'á¹­' => 'á¹¬',
-'á¹¯' => 'á¹®',
-'á¹±' => 'á¹°',
-'á¹³' => 'á¹²',
-'á¹µ' => 'á¹´',
-'á¹·' => 'á¹¶',
-'á¹¹' => 'á¹¸',
-'á¹»' => 'á¹º',
-'á¹½' => 'á¹¼',
-'á¹¿' => 'á¹¾',
-'áº' => 'áº',
-'áº' => 'áº',
-'áº
-' => 'áº',
-'áº' => 'áº',
-'áº' => 'áº',
-'áº' => 'áº',
-'áº' => 'áº',
-'áº' => 'áº',
-'áº' => 'áº',
-'áº' => 'áº',
-'áº' => 'áº',
-'áº' => 'á¹ ',
-'áº¡' => 'áº ',
-'áº£' => 'áº¢',
-'áº¥' => 'áº¤',
-'áº§' => 'áº¦',
-'áº©' => 'áº¨',
-'áº«' => 'áºª',
-'áº­' => 'áº¬',
-'áº¯' => 'áº®',
-'áº±' => 'áº°',
-'áº³' => 'áº²',
-'áºµ' => 'áº´',
-'áº·' => 'áº¶',
-'áº¹' => 'áº¸',
-'áº»' => 'áºº',
-'áº½' => 'áº¼',
-'áº¿' => 'áº¾',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»
-' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»' => 'á»',
-'á»¡' => 'á» ',
-'á»£' => 'á»¢',
-'á»¥' => 'á»¤',
-'á»§' => 'á»¦',
-'á»©' => 'á»¨',
-'á»«' => 'á»ª',
-'á»­' => 'á»¬',
-'á»¯' => 'á»®',
-'á»±' => 'á»°',
-'á»³' => 'á»²',
-'á»µ' => 'á»´',
-'á»·' => 'á»¶',
-'á»¹' => 'á»¸',
-'á»»' => 'á»º',
-'á»½' => 'á»¼',
-'á»¿' => 'á»¾',
-'á¼' => 'á¼',
-'á¼' => 'á¼',
-'á¼' => 'á¼',
-'á¼' => 'á¼',
-'á¼' => 'á¼',
-'á¼
-' => 'á¼',
-'á¼' => 'á¼',
-'á¼' => 'á¼',
-'á¼' => 'á¼',
-'á¼' => 'á¼',
-'á¼' => 'á¼',
-'á¼' => 'á¼',
-'á¼' => 'á¼',
-'á¼' => 'á¼',
-'á¼ ' => 'á¼¨',
-'á¼¡' => 'á¼©',
-'á¼¢' => 'á¼ª',
-'á¼£' => 'á¼«',
-'á¼¤' => 'á¼¬',
-'á¼¥' => 'á¼­',
-'á¼¦' => 'á¼®',
-'á¼§' => 'á¼¯',
-'á¼°' => 'á¼¸',
-'á¼±' => 'á¼¹',
-'á¼²' => 'á¼º',
-'á¼³' => 'á¼»',
-'á¼´' => 'á¼¼',
-'á¼µ' => 'á¼½',
-'á¼¶' => 'á¼¾',
-'á¼·' => 'á¼¿',
-'á½' => 'á½',
-'á½' => 'á½',
-'á½' => 'á½',
-'á½' => 'á½',
-'á½' => 'á½',
-'á½
-' => 'á½',
-'á½' => 'á½',
-'á½' => 'á½',
-'á½' => 'á½',
-'á½' => 'á½',
-'á½ ' => 'á½¨',
-'á½¡' => 'á½©',
-'á½¢' => 'á½ª',
-'á½£' => 'á½«',
-'á½¤' => 'á½¬',
-'á½¥' => 'á½­',
-'á½¦' => 'á½®',
-'á½§' => 'á½¯',
-'á½°' => 'á¾º',
-'á½±' => 'á¾»',
-'á½²' => 'á¿',
-'á½³' => 'á¿',
-'á½´' => 'á¿',
-'á½µ' => 'á¿',
-'á½¶' => 'á¿',
-'á½·' => 'á¿',
-'á½¸' => 'á¿¸',
-'á½¹' => 'á¿¹',
-'á½º' => 'á¿ª',
-'á½»' => 'á¿«',
-'á½¼' => 'á¿º',
-'á½½' => 'á¿»',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾
-' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾' => 'á¾',
-'á¾ ' => 'á¾¨',
-'á¾¡' => 'á¾©',
-'á¾¢' => 'á¾ª',
-'á¾£' => 'á¾«',
-'á¾¤' => 'á¾¬',
-'á¾¥' => 'á¾­',
-'á¾¦' => 'á¾®',
-'á¾§' => 'á¾¯',
-'á¾°' => 'á¾¸',
-'á¾±' => 'á¾¹',
-'á¾³' => 'á¾¼',
-'á¾¾' => 'Î',
-'á¿' => 'á¿',
-'á¿' => 'á¿',
-'á¿' => 'á¿',
-'á¿ ' => 'á¿¨',
-'á¿¡' => 'á¿©',
-'á¿¥' => 'á¿¬',
-'á¿³' => 'á¿¼',
-'â
-' => 'â²',
-'â
-°' => 'â
- ',
-'â
-±' => 'â
-¡',
-'â
-²' => 'â
-¢',
-'â
-³' => 'â
-£',
-'â
-´' => 'â
-¤',
-'â
-µ' => 'â
-¥',
-'â
-¶' => 'â
-¦',
-'â
-·' => 'â
-§',
-'â
-¸' => 'â
-¨',
-'â
-¹' => 'â
-©',
-'â
-º' => 'â
-ª',
-'â
-»' => 'â
-«',
-'â
-¼' => 'â
-¬',
-'â
-½' => 'â
-­',
-'â
-¾' => 'â
-®',
-'â
-¿' => 'â
-¯',
-'â' => 'â',
-'â' => 'â¶',
-'â' => 'â·',
-'â' => 'â¸',
-'â' => 'â¹',
-'â' => 'âº',
-'â' => 'â»',
-'â' => 'â¼',
-'â' => 'â½',
-'â' => 'â¾',
-'â' => 'â¿',
-'â' => 'â',
-'â' => 'â',
-'â' => 'â',
-'â' => 'â',
-'â' => 'â',
-'â' => 'â
-',
-'â ' => 'â',
-'â¡' => 'â',
-'â¢' => 'â',
-'â£' => 'â',
-'â¤' => 'â',
-'â¥' => 'â',
-'â¦' => 'â',
-'â§' => 'â',
-'â¨' => 'â',
-'â©' => 'â',
-'â°°' => 'â°',
-'â°±' => 'â°',
-'â°²' => 'â°',
-'â°³' => 'â°',
-'â°´' => 'â°',
-'â°µ' => 'â°
-',
-'â°¶' => 'â°',
-'â°·' => 'â°',
-'â°¸' => 'â°',
-'â°¹' => 'â°',
-'â°º' => 'â°',
-'â°»' => 'â°',
-'â°¼' => 'â°',
-'â°½' => 'â°',
-'â°¾' => 'â°',
-'â°¿' => 'â°',
-'â±' => 'â°',
-'â±' => 'â°',
-'â±' => 'â°',
-'â±' => 'â°',
-'â±' => 'â°',
-'â±
-' => 'â°',
-'â±' => 'â°',
-'â±' => 'â°',
-'â±' => 'â°',
-'â±' => 'â°',
-'â±' => 'â°',
-'â±' => 'â°',
-'â±' => 'â°',
-'â±' => 'â°',
-'â±' => 'â°',
-'â±' => 'â°',
-'â±' => 'â° ',
-'â±' => 'â°¡',
-'â±' => 'â°¢',
-'â±' => 'â°£',
-'â±' => 'â°¤',
-'â±' => 'â°¥',
-'â±' => 'â°¦',
-'â±' => 'â°§',
-'â±' => 'â°¨',
-'â±' => 'â°©',
-'â±' => 'â°ª',
-'â±' => 'â°«',
-'â±' => 'â°¬',
-'â±' => 'â°­',
-'â±' => 'â°®',
-'â±¡' => 'â± ',
-'â±¥' => 'Èº',
-'â±¦' => 'È¾',
-'â±¨' => 'â±§',
-'â±ª' => 'â±©',
-'â±¬' => 'â±«',
-'â±³' => 'â±²',
-'â±¶' => 'â±µ',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²
-' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²' => 'â²',
-'â²¡' => 'â² ',
-'â²£' => 'â²¢',
-'â²¥' => 'â²¤',
-'â²§' => 'â²¦',
-'â²©' => 'â²¨',
-'â²«' => 'â²ª',
-'â²­' => 'â²¬',
-'â²¯' => 'â²®',
-'â²±' => 'â²°',
-'â²³' => 'â²²',
-'â²µ' => 'â²´',
-'â²·' => 'â²¶',
-'â²¹' => 'â²¸',
-'â²»' => 'â²º',
-'â²½' => 'â²¼',
-'â²¿' => 'â²¾',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³
-' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³' => 'â³',
-'â³¡' => 'â³ ',
-'â³£' => 'â³¢',
-'â³¬' => 'â³«',
-'â³®' => 'â³­',
-'â³³' => 'â³²',
-'â´' => 'á ',
-'â´' => 'á¡',
-'â´' => 'á¢',
-'â´' => 'á£',
-'â´' => 'á¤',
-'â´
-' => 'á¥',
-'â´' => 'á¦',
-'â´' => 'á§',
-'â´' => 'á¨',
-'â´' => 'á©',
-'â´' => 'áª',
-'â´' => 'á«',
-'â´' => 'á¬',
-'â´' => 'á­',
-'â´' => 'á®',
-'â´' => 'á¯',
-'â´' => 'á°',
-'â´' => 'á±',
-'â´' => 'á²',
-'â´' => 'á³',
-'â´' => 'á´',
-'â´' => 'áµ',
-'â´' => 'á¶',
-'â´' => 'á·',
-'â´' => 'á¸',
-'â´' => 'á¹',
-'â´' => 'áº',
-'â´' => 'á»',
-'â´' => 'á¼',
-'â´' => 'á½',
-'â´' => 'á¾',
-'â´' => 'á¿',
-'â´ ' => 'á',
-'â´¡' => 'á',
-'â´¢' => 'á',
-'â´£' => 'á',
-'â´¤' => 'á',
-'â´¥' => 'á
-',
-'â´§' => 'á',
-'â´­' => 'á',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê
-' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê¡' => 'ê ',
-'ê£' => 'ê¢',
-'ê¥' => 'ê¤',
-'ê§' => 'ê¦',
-'ê©' => 'ê¨',
-'ê«' => 'êª',
-'ê­' => 'ê¬',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê
-' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê£' => 'ê¢',
-'ê¥' => 'ê¤',
-'ê§' => 'ê¦',
-'ê©' => 'ê¨',
-'ê«' => 'êª',
-'ê­' => 'ê¬',
-'ê¯' => 'ê®',
-'ê³' => 'ê²',
-'êµ' => 'ê´',
-'ê·' => 'ê¶',
-'ê¹' => 'ê¸',
-'ê»' => 'êº',
-'ê½' => 'ê¼',
-'ê¿' => 'ê¾',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê
-' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê¡' => 'ê ',
-'ê£' => 'ê¢',
-'ê¥' => 'ê¤',
-'ê§' => 'ê¦',
-'ê©' => 'ê¨',
-'ê«' => 'êª',
-'ê­' => 'ê¬',
-'ê¯' => 'ê®',
-'êº' => 'ê¹',
-'ê¼' => 'ê»',
-'ê¿' => 'ê¾',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê
-' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê' => 'ê',
-'ê¡' => 'ê ',
-'ê£' => 'ê¢',
-'ê¥' => 'ê¤',
-'ê§' => 'ê¦',
-'ê©' => 'ê¨',
-'ï½' => 'ï¼¡',
-'ï½' => 'ï¼¢',
-'ï½' => 'ï¼£',
-'ï½' => 'ï¼¤',
-'ï½
-' => 'ï¼¥',
-'ï½' => 'ï¼¦',
-'ï½' => 'ï¼§',
-'ï½' => 'ï¼¨',
-'ï½' => 'ï¼©',
-'ï½' => 'ï¼ª',
-'ï½' => 'ï¼«',
-'ï½' => 'ï¼¬',
-'ï½' => 'ï¼­',
-'ï½' => 'ï¼®',
-'ï½' => 'ï¼¯',
-'ï½' => 'ï¼°',
-'ï½' => 'ï¼±',
-'ï½' => 'ï¼²',
-'ï½' => 'ï¼³',
-'ï½' => 'ï¼´',
-'ï½' => 'ï¼µ',
-'ï½' => 'ï¼¶',
-'ï½' => 'ï¼·',
-'ï½' => 'ï¼¸',
-'ï½' => 'ï¼¹',
-'ï½' => 'ï¼º',
-'ð¨' => 'ð',
-'ð©' => 'ð',
-'ðª' => 'ð',
-'ð«' => 'ð',
-'ð¬' => 'ð',
-'ð­' => 'ð
-',
-'ð®' => 'ð',
-'ð¯' => 'ð',
-'ð°' => 'ð',
-'ð±' => 'ð',
-'ð²' => 'ð',
-'ð³' => 'ð',
-'ð´' => 'ð',
-'ðµ' => 'ð',
-'ð¶' => 'ð',
-'ð·' => 'ð',
-'ð¸' => 'ð',
-'ð¹' => 'ð',
-'ðº' => 'ð',
-'ð»' => 'ð',
-'ð¼' => 'ð',
-'ð½' => 'ð',
-'ð¾' => 'ð',
-'ð¿' => 'ð',
-'ð' => 'ð',
-'ð' => 'ð',
-'ð' => 'ð',
-'ð' => 'ð',
-'ð' => 'ð',
-'ð
-' => 'ð',
-'ð' => 'ð',
-'ð' => 'ð',
-'ð' => 'ð ',
-'ð' => 'ð¡',
-'ð' => 'ð¢',
-'ð' => 'ð£',
-'ð' => 'ð¤',
-'ð' => 'ð¥',
-'ð' => 'ð¦',
-'ð' => 'ð§',
-'ð£' => 'ð¢ ',
-'ð£' => 'ð¢¡',
-'ð£' => 'ð¢¢',
-'ð£' => 'ð¢£',
-'ð£' => 'ð¢¤',
-'ð£
-' => 'ð¢¥',
-'ð£' => 'ð¢¦',
-'ð£' => 'ð¢§',
-'ð£' => 'ð¢¨',
-'ð£' => 'ð¢©',
-'ð£' => 'ð¢ª',
-'ð£' => 'ð¢«',
-'ð£' => 'ð¢¬',
-'ð£' => 'ð¢­',
-'ð£' => 'ð¢®',
-'ð£' => 'ð¢¯',
-'ð£' => 'ð¢°',
-'ð£' => 'ð¢±',
-'ð£' => 'ð¢²',
-'ð£' => 'ð¢³',
-'ð£' => 'ð¢´',
-'ð£' => 'ð¢µ',
-'ð£' => 'ð¢¶',
-'ð£' => 'ð¢·',
-'ð£' => 'ð¢¸',
-'ð£' => 'ð¢¹',
-'ð£' => 'ð¢º',
-'ð£' => 'ð¢»',
-'ð£' => 'ð¢¼',
-'ð£' => 'ð¢½',
-'ð£' => 'ð¢¾',
-'ð£' => 'ð¢¿',
-);
-<?php
-
-
-
-
-
-
-
-
-
-
-use Symfony\Polyfill\Mbstring as p;
-
-if (!function_exists('mb_strlen')) {
-define('MB_CASE_UPPER', 0);
-define('MB_CASE_LOWER', 1);
-define('MB_CASE_TITLE', 2);
-
-function mb_convert_encoding($s, $to, $from = null) { return p\Mbstring::mb_convert_encoding($s, $to, $from); }
-function mb_decode_mimeheader($s) { return p\Mbstring::mb_decode_mimeheader($s); }
-function mb_encode_mimeheader($s, $charset = null, $transferEnc = null, $lf = null, $indent = null) { return p\Mbstring::mb_encode_mimeheader($s, $charset, $transferEnc, $lf, $indent); }
-function mb_decode_numericentity($s, $convmap, $enc = null) { return p\Mbstring::mb_decode_numericentity($s, $convmap, $enc); }
-function mb_encode_numericentity($s, $convmap, $enc = null, $is_hex = false) { return p\Mbstring::mb_encode_numericentity($s, $convmap, $enc, $is_hex); }
-function mb_convert_case($s, $mode, $enc = null) { return p\Mbstring::mb_convert_case($s, $mode, $enc); }
-function mb_internal_encoding($enc = null) { return p\Mbstring::mb_internal_encoding($enc); }
-function mb_language($lang = null) { return p\Mbstring::mb_language($lang); }
-function mb_list_encodings() { return p\Mbstring::mb_list_encodings(); }
-function mb_encoding_aliases($encoding) { return p\Mbstring::mb_encoding_aliases($encoding); }
-function mb_check_encoding($var = null, $encoding = null) { return p\Mbstring::mb_check_encoding($var, $encoding); }
-function mb_detect_encoding($str, $encodingList = null, $strict = false) { return p\Mbstring::mb_detect_encoding($str, $encodingList, $strict); }
-function mb_detect_order($encodingList = null) { return p\Mbstring::mb_detect_order($encodingList); }
-function mb_parse_str($s, &$result = array()) { parse_str($s, $result); }
-function mb_strlen($s, $enc = null) { return p\Mbstring::mb_strlen($s, $enc); }
-function mb_strpos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strpos($s, $needle, $offset, $enc); }
-function mb_strtolower($s, $enc = null) { return p\Mbstring::mb_strtolower($s, $enc); }
-function mb_strtoupper($s, $enc = null) { return p\Mbstring::mb_strtoupper($s, $enc); }
-function mb_substitute_character($char = null) { return p\Mbstring::mb_substitute_character($char); }
-function mb_substr($s, $start, $length = 2147483647, $enc = null) { return p\Mbstring::mb_substr($s, $start, $length, $enc); }
-function mb_stripos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_stripos($s, $needle, $offset, $enc); }
-function mb_stristr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_stristr($s, $needle, $part, $enc); }
-function mb_strrchr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strrchr($s, $needle, $part, $enc); }
-function mb_strrichr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strrichr($s, $needle, $part, $enc); }
-function mb_strripos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strripos($s, $needle, $offset, $enc); }
-function mb_strrpos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strrpos($s, $needle, $offset, $enc); }
-function mb_strstr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strstr($s, $needle, $part, $enc); }
-function mb_get_info($type = 'all') { return p\Mbstring::mb_get_info($type); }
-function mb_http_output($enc = null) { return p\Mbstring::mb_http_output($enc); }
-function mb_strwidth($s, $enc = null) { return p\Mbstring::mb_strwidth($s, $enc); }
-function mb_substr_count($haystack, $needle, $enc = null) { return p\Mbstring::mb_substr_count($haystack, $needle, $enc); }
-function mb_output_handler($contents, $status) { return p\Mbstring::mb_output_handler($contents, $status); }
-function mb_http_input($type = '') { return p\Mbstring::mb_http_input($type); }
-function mb_convert_variables($toEncoding, $fromEncoding, &$a = null, &$b = null, &$c = null, &$d = null, &$e = null, &$f = null) { return p\Mbstring::mb_convert_variables($toEncoding, $fromEncoding, $a, $b, $c, $d, $e, $f); }
-}
-if (!function_exists('mb_chr')) {
-function mb_ord($s, $enc = null) { return p\Mbstring::mb_ord($s, $enc); }
-function mb_chr($code, $enc = null) { return p\Mbstring::mb_chr($code, $enc); }
-function mb_scrub($s, $enc = null) { $enc = null === $enc ? mb_internal_encoding() : $enc; return mb_convert_encoding($s, $enc, $enc); }
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Process\Exception;
-
-
-
-
-
-
-interface ExceptionInterface
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Process\Exception;
-
-
-
-
-
-
-class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Process\Exception;
-
-
-
-
-
-
-class LogicException extends \LogicException implements ExceptionInterface
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Process\Exception;
-
-use Symfony\Component\Process\Process;
-
-
-
-
-
-
-class ProcessFailedException extends RuntimeException
-{
-private $process;
-
-public function __construct(Process $process)
-{
-if ($process->isSuccessful()) {
-throw new InvalidArgumentException('Expected a failed process, but the given process was successful.');
-}
-
-$error = sprintf('The command "%s" failed.'."\n\nExit Code: %s(%s)\n\nWorking directory: %s",
-$process->getCommandLine(),
-$process->getExitCode(),
-$process->getExitCodeText(),
-$process->getWorkingDirectory()
-);
-
-if (!$process->isOutputDisabled()) {
-$error .= sprintf("\n\nOutput:\n================\n%s\n\nError Output:\n================\n%s",
-$process->getOutput(),
-$process->getErrorOutput()
-);
-}
-
-parent::__construct($error);
-
-$this->process = $process;
-}
-
-public function getProcess()
-{
-return $this->process;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Process\Exception;
-
-use Symfony\Component\Process\Process;
-
-
-
-
-
-
-class ProcessTimedOutException extends RuntimeException
-{
-const TYPE_GENERAL = 1;
-const TYPE_IDLE = 2;
-
-private $process;
-private $timeoutType;
-
-public function __construct(Process $process, $timeoutType)
-{
-$this->process = $process;
-$this->timeoutType = $timeoutType;
-
-parent::__construct(sprintf(
-'The process "%s" exceeded the timeout of %s seconds.',
-$process->getCommandLine(),
-$this->getExceededTimeout()
-));
-}
-
-public function getProcess()
-{
-return $this->process;
-}
-
-public function isGeneralTimeout()
-{
-return self::TYPE_GENERAL === $this->timeoutType;
-}
-
-public function isIdleTimeout()
-{
-return self::TYPE_IDLE === $this->timeoutType;
-}
-
-public function getExceededTimeout()
-{
-switch ($this->timeoutType) {
-case self::TYPE_GENERAL:
-return $this->process->getTimeout();
-
-case self::TYPE_IDLE:
-return $this->process->getIdleTimeout();
-
-default:
-throw new \LogicException(sprintf('Unknown timeout type "%d".', $this->timeoutType));
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Process\Exception;
-
-
-
-
-
-
-class RuntimeException extends \RuntimeException implements ExceptionInterface
-{
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Process;
-
-
-
-
-
-
-
-class ExecutableFinder
-{
-private $suffixes = array('.exe', '.bat', '.cmd', '.com');
-
-
-
-
-public function setSuffixes(array $suffixes)
-{
-$this->suffixes = $suffixes;
-}
-
-
-
-
-
-
-public function addSuffix($suffix)
-{
-$this->suffixes[] = $suffix;
-}
-
-
-
-
-
-
-
-
-
-
-public function find($name, $default = null, array $extraDirs = array())
-{
-if (ini_get('open_basedir')) {
-$searchPath = explode(PATH_SEPARATOR, ini_get('open_basedir'));
-$dirs = array();
-foreach ($searchPath as $path) {
-
- if (@is_dir($path)) {
-$dirs[] = $path;
-} else {
-if (basename($path) == $name && @is_executable($path)) {
-return $path;
-}
-}
-}
-} else {
-$dirs = array_merge(
-explode(PATH_SEPARATOR, getenv('PATH') ?: getenv('Path')),
-$extraDirs
-);
-}
-
-$suffixes = array('');
-if ('\\' === \DIRECTORY_SEPARATOR) {
-$pathExt = getenv('PATHEXT');
-$suffixes = array_merge($pathExt ? explode(PATH_SEPARATOR, $pathExt) : $this->suffixes, $suffixes);
-}
-foreach ($suffixes as $suffix) {
-foreach ($dirs as $dir) {
-if (@is_file($file = $dir.\DIRECTORY_SEPARATOR.$name.$suffix) && ('\\' === \DIRECTORY_SEPARATOR || @is_executable($file))) {
-return $file;
-}
-}
-}
-
-return $default;
-}
-}
-Copyright (c) 2004-2018 Fabien Potencier
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Process;
-
-
-
-
-
-
-
-class PhpExecutableFinder
-{
-private $executableFinder;
-
-public function __construct()
-{
-$this->executableFinder = new ExecutableFinder();
-}
-
-
-
-
-
-
-
-
-public function find($includeArgs = true)
-{
-$args = $this->findArguments();
-$args = $includeArgs && $args ? ' '.implode(' ', $args) : '';
-
-
- if (\defined('HHVM_VERSION')) {
-return (getenv('PHP_BINARY') ?: PHP_BINARY).$args;
-}
-
-
- if (\defined('PHP_BINARY') && PHP_BINARY && \in_array(\PHP_SAPI, array('cli', 'cli-server', 'phpdbg'), true)) {
-return PHP_BINARY.$args;
-}
-
-if ($php = getenv('PHP_PATH')) {
-if (!@is_executable($php)) {
-return false;
-}
-
-return $php;
-}
-
-if ($php = getenv('PHP_PEAR_PHP_BIN')) {
-if (@is_executable($php)) {
-return $php;
-}
-}
-
-if (@is_executable($php = PHP_BINDIR.('\\' === \DIRECTORY_SEPARATOR ? '\\php.exe' : '/php'))) {
-return $php;
-}
-
-$dirs = array(PHP_BINDIR);
-if ('\\' === \DIRECTORY_SEPARATOR) {
-$dirs[] = 'C:\xampp\php\\';
-}
-
-return $this->executableFinder->find('php', false, $dirs);
-}
-
-
-
-
-
-
-public function findArguments()
-{
-$arguments = array();
-
-if (\defined('HHVM_VERSION')) {
-$arguments[] = '--php';
-} elseif ('phpdbg' === \PHP_SAPI) {
-$arguments[] = '-qrr';
-}
-
-return $arguments;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Process;
-
-use Symfony\Component\Process\Exception\RuntimeException;
-
-
-
-
-
-
-
-
-
-
-class PhpProcess extends Process
-{
-
-
-
-
-
-
-
-public function __construct($script, $cwd = null, array $env = null, $timeout = 60, array $options = array())
-{
-$executableFinder = new PhpExecutableFinder();
-if (false === $php = $executableFinder->find()) {
-$php = null;
-}
-if ('phpdbg' === \PHP_SAPI) {
-$file = tempnam(sys_get_temp_dir(), 'dbg');
-file_put_contents($file, $script);
-register_shutdown_function('unlink', $file);
-$php .= ' '.ProcessUtils::escapeArgument($file);
-$script = null;
-}
-if ('\\' !== \DIRECTORY_SEPARATOR && null !== $php) {
-
- 
- 
- $php = 'exec '.$php;
-}
-
-parent::__construct($php, $cwd, $env, $script, $timeout, $options);
-}
-
-
-
-
-public function setPhpBinary($php)
-{
-$this->setCommandLine($php);
-}
-
-
-
-
-public function start($callback = null)
-{
-if (null === $this->getCommandLine()) {
-throw new RuntimeException('Unable to find the PHP executable.');
-}
-
-parent::start($callback);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Process\Pipes;
-
-
-
-
-
-
-abstract class AbstractPipes implements PipesInterface
-{
-public $pipes = array();
-
-private $inputBuffer = '';
-private $input;
-private $blocked = true;
-private $lastError;
-
-
-
-
-public function __construct($input)
-{
-if (\is_resource($input)) {
-$this->input = $input;
-} elseif (\is_string($input)) {
-$this->inputBuffer = $input;
-} else {
-$this->inputBuffer = (string) $input;
-}
-}
-
-
-
-
-public function close()
-{
-foreach ($this->pipes as $pipe) {
-fclose($pipe);
-}
-$this->pipes = array();
-}
-
-
-
-
-
-
-protected function hasSystemCallBeenInterrupted()
-{
-$lastError = $this->lastError;
-$this->lastError = null;
-
-
- return null !== $lastError && false !== stripos($lastError, 'interrupted system call');
-}
-
-
-
-
-protected function unblock()
-{
-if (!$this->blocked) {
-return;
-}
-
-foreach ($this->pipes as $pipe) {
-stream_set_blocking($pipe, 0);
-}
-if (null !== $this->input) {
-stream_set_blocking($this->input, 0);
-}
-
-$this->blocked = false;
-}
-
-
-
-
-protected function write()
-{
-if (!isset($this->pipes[0])) {
-return;
-}
-$input = $this->input;
-$r = $e = array();
-$w = array($this->pipes[0]);
-
-
- if (false === @stream_select($r, $w, $e, 0, 0)) {
-return;
-}
-
-foreach ($w as $stdin) {
-if (isset($this->inputBuffer[0])) {
-$written = fwrite($stdin, $this->inputBuffer);
-$this->inputBuffer = substr($this->inputBuffer, $written);
-if (isset($this->inputBuffer[0])) {
-return array($this->pipes[0]);
-}
-}
-
-if ($input) {
-for (;;) {
-$data = fread($input, self::CHUNK_SIZE);
-if (!isset($data[0])) {
-break;
-}
-$written = fwrite($stdin, $data);
-$data = substr($data, $written);
-if (isset($data[0])) {
-$this->inputBuffer = $data;
-
-return array($this->pipes[0]);
-}
-}
-if (feof($input)) {
-
- 
- $this->input = null;
-}
-}
-}
-
-
- if (null === $this->input && !isset($this->inputBuffer[0])) {
-fclose($this->pipes[0]);
-unset($this->pipes[0]);
-} elseif (!$w) {
-return array($this->pipes[0]);
-}
-}
-
-
-
-
-public function handleError($type, $msg)
-{
-$this->lastError = $msg;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Process\Pipes;
-
-
-
-
-
-
-
-
-interface PipesInterface
-{
-const CHUNK_SIZE = 16384;
-
-
-
-
-
-
-public function getDescriptors();
-
-
-
-
-
-
-public function getFiles();
-
-
-
-
-
-
-
-
-
-public function readAndWrite($blocking, $close = false);
-
-
-
-
-
-
-public function areOpen();
-
-
-
-
-public function close();
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Process\Pipes;
-
-use Symfony\Component\Process\Process;
-
-
-
-
-
-
-
-
-class UnixPipes extends AbstractPipes
-{
-private $ttyMode;
-private $ptyMode;
-private $disableOutput;
-
-public function __construct($ttyMode, $ptyMode, $input, $disableOutput)
-{
-$this->ttyMode = (bool) $ttyMode;
-$this->ptyMode = (bool) $ptyMode;
-$this->disableOutput = (bool) $disableOutput;
-
-parent::__construct($input);
-}
-
-public function __destruct()
-{
-$this->close();
-}
-
-
-
-
-public function getDescriptors()
-{
-if ($this->disableOutput) {
-$nullstream = fopen('/dev/null', 'c');
-
-return array(
-array('pipe', 'r'),
-$nullstream,
-$nullstream,
-);
-}
-
-if ($this->ttyMode) {
-return array(
-array('file', '/dev/tty', 'r'),
-array('file', '/dev/tty', 'w'),
-array('file', '/dev/tty', 'w'),
-);
-}
-
-if ($this->ptyMode && Process::isPtySupported()) {
-return array(
-array('pty'),
-array('pty'),
-array('pty'),
-);
-}
-
-return array(
-array('pipe', 'r'),
-array('pipe', 'w'), 
- array('pipe', 'w'), 
- );
-}
-
-
-
-
-public function getFiles()
-{
-return array();
-}
-
-
-
-
-public function readAndWrite($blocking, $close = false)
-{
-$this->unblock();
-$w = $this->write();
-
-$read = $e = array();
-$r = $this->pipes;
-unset($r[0]);
-
-
- set_error_handler(array($this, 'handleError'));
-if (($r || $w) && false === stream_select($r, $w, $e, 0, $blocking ? Process::TIMEOUT_PRECISION * 1E6 : 0)) {
-restore_error_handler();
-
- 
- if (!$this->hasSystemCallBeenInterrupted()) {
-$this->pipes = array();
-}
-
-return $read;
-}
-restore_error_handler();
-
-foreach ($r as $pipe) {
-
- 
- $read[$type = array_search($pipe, $this->pipes, true)] = '';
-
-do {
-$data = fread($pipe, self::CHUNK_SIZE);
-$read[$type] .= $data;
-} while (isset($data[0]) && ($close || isset($data[self::CHUNK_SIZE - 1])));
-
-if (!isset($read[$type][0])) {
-unset($read[$type]);
-}
-
-if ($close && feof($pipe)) {
-fclose($pipe);
-unset($this->pipes[$type]);
-}
-}
-
-return $read;
-}
-
-
-
-
-public function areOpen()
-{
-return (bool) $this->pipes;
-}
-
-
-
-
-
-
-
-
-
-public static function create(Process $process, $input)
-{
-return new static($process->isTty(), $process->isPty(), $input, $process->isOutputDisabled());
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Process\Pipes;
-
-use Symfony\Component\Process\Exception\RuntimeException;
-use Symfony\Component\Process\Process;
-
-
-
-
-
-
-
-
-
-
-
-class WindowsPipes extends AbstractPipes
-{
-private $files = array();
-private $fileHandles = array();
-private $lockHandles = array();
-private $readBytes = array(
-Process::STDOUT => 0,
-Process::STDERR => 0,
-);
-private $disableOutput;
-
-public function __construct($disableOutput, $input)
-{
-$this->disableOutput = (bool) $disableOutput;
-
-if (!$this->disableOutput) {
-
- 
- 
- 
- $pipes = array(
-Process::STDOUT => Process::OUT,
-Process::STDERR => Process::ERR,
-);
-$tmpDir = sys_get_temp_dir();
-$lastError = 'unknown reason';
-set_error_handler(function ($type, $msg) use (&$lastError) { $lastError = $msg; });
-for ($i = 0;; ++$i) {
-foreach ($pipes as $pipe => $name) {
-$file = sprintf('%s\\sf_proc_%02X.%s', $tmpDir, $i, $name);
-
-if (!$h = fopen($file.'.lock', 'w')) {
-restore_error_handler();
-throw new RuntimeException(sprintf('A temporary file could not be opened to write the process output: %s', $lastError));
-}
-if (!flock($h, LOCK_EX | LOCK_NB)) {
-continue 2;
-}
-if (isset($this->lockHandles[$pipe])) {
-flock($this->lockHandles[$pipe], LOCK_UN);
-fclose($this->lockHandles[$pipe]);
-}
-$this->lockHandles[$pipe] = $h;
-
-if (!fclose(fopen($file, 'w')) || !$h = fopen($file, 'r')) {
-flock($this->lockHandles[$pipe], LOCK_UN);
-fclose($this->lockHandles[$pipe]);
-unset($this->lockHandles[$pipe]);
-continue 2;
-}
-$this->fileHandles[$pipe] = $h;
-$this->files[$pipe] = $file;
-}
-break;
-}
-restore_error_handler();
-}
-
-parent::__construct($input);
-}
-
-public function __destruct()
-{
-$this->close();
-}
-
-
-
-
-public function getDescriptors()
-{
-if ($this->disableOutput) {
-$nullstream = fopen('NUL', 'c');
-
-return array(
-array('pipe', 'r'),
-$nullstream,
-$nullstream,
-);
-}
-
-
- 
- 
- return array(
-array('pipe', 'r'),
-array('file', 'NUL', 'w'),
-array('file', 'NUL', 'w'),
-);
-}
-
-
-
-
-public function getFiles()
-{
-return $this->files;
-}
-
-
-
-
-public function readAndWrite($blocking, $close = false)
-{
-$this->unblock();
-$w = $this->write();
-$read = $r = $e = array();
-
-if ($blocking) {
-if ($w) {
-@stream_select($r, $w, $e, 0, Process::TIMEOUT_PRECISION * 1E6);
-} elseif ($this->fileHandles) {
-usleep(Process::TIMEOUT_PRECISION * 1E6);
-}
-}
-foreach ($this->fileHandles as $type => $fileHandle) {
-$data = stream_get_contents($fileHandle, -1, $this->readBytes[$type]);
-
-if (isset($data[0])) {
-$this->readBytes[$type] += \strlen($data);
-$read[$type] = $data;
-}
-if ($close) {
-ftruncate($fileHandle, 0);
-fclose($fileHandle);
-flock($this->lockHandles[$type], LOCK_UN);
-fclose($this->lockHandles[$type]);
-unset($this->fileHandles[$type], $this->lockHandles[$type]);
-}
-}
-
-return $read;
-}
-
-
-
-
-public function areOpen()
-{
-return $this->pipes && $this->fileHandles;
-}
-
-
-
-
-public function close()
-{
-parent::close();
-foreach ($this->fileHandles as $type => $handle) {
-ftruncate($handle, 0);
-fclose($handle);
-flock($this->lockHandles[$type], LOCK_UN);
-fclose($this->lockHandles[$type]);
-}
-$this->fileHandles = $this->lockHandles = array();
-}
-
-
-
-
-
-
-
-
-
-public static function create(Process $process, $input)
-{
-return new static($process->isOutputDisabled(), $input);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Process;
-
-use Symfony\Component\Process\Exception\InvalidArgumentException;
-use Symfony\Component\Process\Exception\LogicException;
-use Symfony\Component\Process\Exception\ProcessFailedException;
-use Symfony\Component\Process\Exception\ProcessTimedOutException;
-use Symfony\Component\Process\Exception\RuntimeException;
-use Symfony\Component\Process\Pipes\PipesInterface;
-use Symfony\Component\Process\Pipes\UnixPipes;
-use Symfony\Component\Process\Pipes\WindowsPipes;
-
-
-
-
-
-
-
-
-class Process
-{
-const ERR = 'err';
-const OUT = 'out';
-
-const STATUS_READY = 'ready';
-const STATUS_STARTED = 'started';
-const STATUS_TERMINATED = 'terminated';
-
-const STDIN = 0;
-const STDOUT = 1;
-const STDERR = 2;
-
-
- const TIMEOUT_PRECISION = 0.2;
-
-private $callback;
-private $commandline;
-private $cwd;
-private $env;
-private $input;
-private $starttime;
-private $lastOutputTime;
-private $timeout;
-private $idleTimeout;
-private $options;
-private $exitcode;
-private $fallbackStatus = array();
-private $processInformation;
-private $outputDisabled = false;
-private $stdout;
-private $stderr;
-private $enhanceWindowsCompatibility = true;
-private $enhanceSigchildCompatibility;
-private $process;
-private $status = self::STATUS_READY;
-private $incrementalOutputOffset = 0;
-private $incrementalErrorOutputOffset = 0;
-private $tty;
-private $pty;
-
-private $useFileHandles = false;
-
-private $processPipes;
-
-private $latestSignal;
-
-private static $sigchild;
-
-
-
-
-
-
-public static $exitCodes = array(
-0 => 'OK',
-1 => 'General error',
-2 => 'Misuse of shell builtins',
-
-126 => 'Invoked command cannot execute',
-127 => 'Command not found',
-128 => 'Invalid exit argument',
-
-
- 129 => 'Hangup',
-130 => 'Interrupt',
-131 => 'Quit and dump core',
-132 => 'Illegal instruction',
-133 => 'Trace/breakpoint trap',
-134 => 'Process aborted',
-135 => 'Bus error: "access to undefined portion of memory object"',
-136 => 'Floating point exception: "erroneous arithmetic operation"',
-137 => 'Kill (terminate immediately)',
-138 => 'User-defined 1',
-139 => 'Segmentation violation',
-140 => 'User-defined 2',
-141 => 'Write to pipe with no one reading',
-142 => 'Signal raised by alarm',
-143 => 'Termination (request to terminate)',
-
- 145 => 'Child process terminated, stopped (or continued*)',
-146 => 'Continue if stopped',
-147 => 'Stop executing temporarily',
-148 => 'Terminal stop signal',
-149 => 'Background process attempting to read from tty ("in")',
-150 => 'Background process attempting to write to tty ("out")',
-151 => 'Urgent data available on socket',
-152 => 'CPU time limit exceeded',
-153 => 'File size limit exceeded',
-154 => 'Signal raised by timer counting virtual time: "virtual timer expired"',
-155 => 'Profiling timer expired',
-
- 157 => 'Pollable event',
-
- 159 => 'Bad syscall',
-);
-
-
-
-
-
-
-
-
-
-
-
-public function __construct($commandline, $cwd = null, array $env = null, $input = null, $timeout = 60, array $options = array())
-{
-if (!\function_exists('proc_open')) {
-throw new RuntimeException('The Process class relies on proc_open, which is not available on your PHP installation.');
-}
-
-$this->commandline = $commandline;
-$this->cwd = $cwd;
-
-
- 
- 
- 
- if (null === $this->cwd && (\defined('ZEND_THREAD_SAFE') || '\\' === \DIRECTORY_SEPARATOR)) {
-$this->cwd = getcwd();
-}
-if (null !== $env) {
-$this->setEnv($env);
-}
-
-$this->setInput($input);
-$this->setTimeout($timeout);
-$this->useFileHandles = '\\' === \DIRECTORY_SEPARATOR;
-$this->pty = false;
-$this->enhanceSigchildCompatibility = '\\' !== \DIRECTORY_SEPARATOR && $this->isSigchildEnabled();
-$this->options = array_replace(array('suppress_errors' => true, 'binary_pipes' => true), $options);
-}
-
-public function __destruct()
-{
-$this->stop(0);
-}
-
-public function __clone()
-{
-$this->resetProcessData();
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function run($callback = null)
-{
-$this->start($callback);
-
-return $this->wait();
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function mustRun($callback = null)
-{
-if (!$this->enhanceSigchildCompatibility && $this->isSigchildEnabled()) {
-throw new RuntimeException('This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.');
-}
-
-if (0 !== $this->run($callback)) {
-throw new ProcessFailedException($this);
-}
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function start($callback = null)
-{
-if ($this->isRunning()) {
-throw new RuntimeException('Process is already running');
-}
-if ($this->outputDisabled && null !== $callback) {
-throw new LogicException('Output has been disabled, enable it to allow the use of a callback.');
-}
-
-$this->resetProcessData();
-$this->starttime = $this->lastOutputTime = microtime(true);
-$this->callback = $this->buildCallback($callback);
-$descriptors = $this->getDescriptors();
-
-$commandline = $this->commandline;
-
-if ('\\' === \DIRECTORY_SEPARATOR && $this->enhanceWindowsCompatibility) {
-$commandline = 'cmd /V:ON /E:ON /D /C "('.$commandline.')';
-foreach ($this->processPipes->getFiles() as $offset => $filename) {
-$commandline .= ' '.$offset.'>'.ProcessUtils::escapeArgument($filename);
-}
-$commandline .= '"';
-
-if (!isset($this->options['bypass_shell'])) {
-$this->options['bypass_shell'] = true;
-}
-} elseif (!$this->useFileHandles && $this->enhanceSigchildCompatibility && $this->isSigchildEnabled()) {
-
- $descriptors[3] = array('pipe', 'w');
-
-
- $commandline = '{ ('.$this->commandline.') <&3 3<&- 3>/dev/null & } 3<&0;';
-$commandline .= 'pid=$!; echo $pid >&3; wait $pid; code=$?; echo $code >&3; exit $code';
-
-
- 
- $ptsWorkaround = fopen(__FILE__, 'r');
-}
-
-$this->process = proc_open($commandline, $descriptors, $this->processPipes->pipes, $this->cwd, $this->env, $this->options);
-
-if (!\is_resource($this->process)) {
-throw new RuntimeException('Unable to launch a new process.');
-}
-$this->status = self::STATUS_STARTED;
-
-if (isset($descriptors[3])) {
-$this->fallbackStatus['pid'] = (int) fgets($this->processPipes->pipes[3]);
-}
-
-if ($this->tty) {
-return;
-}
-
-$this->updateStatus(false);
-$this->checkTimeout();
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function restart($callback = null)
-{
-if ($this->isRunning()) {
-throw new RuntimeException('Process is already running');
-}
-
-$process = clone $this;
-$process->start($callback);
-
-return $process;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function wait($callback = null)
-{
-$this->requireProcessIsStarted(__FUNCTION__);
-
-$this->updateStatus(false);
-if (null !== $callback) {
-$this->callback = $this->buildCallback($callback);
-}
-
-do {
-$this->checkTimeout();
-$running = '\\' === \DIRECTORY_SEPARATOR ? $this->isRunning() : $this->processPipes->areOpen();
-$this->readPipes($running, '\\' !== \DIRECTORY_SEPARATOR || !$running);
-} while ($running);
-
-while ($this->isRunning()) {
-usleep(1000);
-}
-
-if ($this->processInformation['signaled'] && $this->processInformation['termsig'] !== $this->latestSignal) {
-throw new RuntimeException(sprintf('The process has been signaled with signal "%s".', $this->processInformation['termsig']));
-}
-
-return $this->exitcode;
-}
-
-
-
-
-
-
-public function getPid()
-{
-return $this->isRunning() ? $this->processInformation['pid'] : null;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function signal($signal)
-{
-$this->doSignal($signal, true);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-public function disableOutput()
-{
-if ($this->isRunning()) {
-throw new RuntimeException('Disabling output while the process is running is not possible.');
-}
-if (null !== $this->idleTimeout) {
-throw new LogicException('Output can not be disabled while an idle timeout is set.');
-}
-
-$this->outputDisabled = true;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function enableOutput()
-{
-if ($this->isRunning()) {
-throw new RuntimeException('Enabling output while the process is running is not possible.');
-}
-
-$this->outputDisabled = false;
-
-return $this;
-}
-
-
-
-
-
-
-public function isOutputDisabled()
-{
-return $this->outputDisabled;
-}
-
-
-
-
-
-
-
-
-
-public function getOutput()
-{
-$this->readPipesForOutput(__FUNCTION__);
-
-if (false === $ret = stream_get_contents($this->stdout, -1, 0)) {
-return '';
-}
-
-return $ret;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function getIncrementalOutput()
-{
-$this->readPipesForOutput(__FUNCTION__);
-
-$latest = stream_get_contents($this->stdout, -1, $this->incrementalOutputOffset);
-$this->incrementalOutputOffset = ftell($this->stdout);
-
-if (false === $latest) {
-return '';
-}
-
-return $latest;
-}
-
-
-
-
-
-
-public function clearOutput()
-{
-ftruncate($this->stdout, 0);
-fseek($this->stdout, 0);
-$this->incrementalOutputOffset = 0;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-public function getErrorOutput()
-{
-$this->readPipesForOutput(__FUNCTION__);
-
-if (false === $ret = stream_get_contents($this->stderr, -1, 0)) {
-return '';
-}
-
-return $ret;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function getIncrementalErrorOutput()
-{
-$this->readPipesForOutput(__FUNCTION__);
-
-$latest = stream_get_contents($this->stderr, -1, $this->incrementalErrorOutputOffset);
-$this->incrementalErrorOutputOffset = ftell($this->stderr);
-
-if (false === $latest) {
-return '';
-}
-
-return $latest;
-}
-
-
-
-
-
-
-public function clearErrorOutput()
-{
-ftruncate($this->stderr, 0);
-fseek($this->stderr, 0);
-$this->incrementalErrorOutputOffset = 0;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function getExitCode()
-{
-if (!$this->enhanceSigchildCompatibility && $this->isSigchildEnabled()) {
-throw new RuntimeException('This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.');
-}
-
-$this->updateStatus(false);
-
-return $this->exitcode;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function getExitCodeText()
-{
-if (null === $exitcode = $this->getExitCode()) {
-return;
-}
-
-return isset(self::$exitCodes[$exitcode]) ? self::$exitCodes[$exitcode] : 'Unknown error';
-}
-
-
-
-
-
-
-public function isSuccessful()
-{
-return 0 === $this->getExitCode();
-}
-
-
-
-
-
-
-
-
-
-
-
-public function hasBeenSignaled()
-{
-$this->requireProcessIsTerminated(__FUNCTION__);
-
-if (!$this->enhanceSigchildCompatibility && $this->isSigchildEnabled()) {
-throw new RuntimeException('This PHP has been compiled with --enable-sigchild. Term signal can not be retrieved.');
-}
-
-return $this->processInformation['signaled'];
-}
-
-
-
-
-
-
-
-
-
-
-
-public function getTermSignal()
-{
-$this->requireProcessIsTerminated(__FUNCTION__);
-
-if ($this->isSigchildEnabled() && (!$this->enhanceSigchildCompatibility || -1 === $this->processInformation['termsig'])) {
-throw new RuntimeException('This PHP has been compiled with --enable-sigchild. Term signal can not be retrieved.');
-}
-
-return $this->processInformation['termsig'];
-}
-
-
-
-
-
-
-
-
-
-
-public function hasBeenStopped()
-{
-$this->requireProcessIsTerminated(__FUNCTION__);
-
-return $this->processInformation['stopped'];
-}
-
-
-
-
-
-
-
-
-
-
-public function getStopSignal()
-{
-$this->requireProcessIsTerminated(__FUNCTION__);
-
-return $this->processInformation['stopsig'];
-}
-
-
-
-
-
-
-public function isRunning()
-{
-if (self::STATUS_STARTED !== $this->status) {
-return false;
-}
-
-$this->updateStatus(false);
-
-return $this->processInformation['running'];
-}
-
-
-
-
-
-
-public function isStarted()
-{
-return self::STATUS_READY != $this->status;
-}
-
-
-
-
-
-
-public function isTerminated()
-{
-$this->updateStatus(false);
-
-return self::STATUS_TERMINATED == $this->status;
-}
-
-
-
-
-
-
-
-
-public function getStatus()
-{
-$this->updateStatus(false);
-
-return $this->status;
-}
-
-
-
-
-
-
-
-
-
-public function stop($timeout = 10, $signal = null)
-{
-$timeoutMicro = microtime(true) + $timeout;
-if ($this->isRunning()) {
-
- $this->doSignal(15, false);
-do {
-usleep(1000);
-} while ($this->isRunning() && microtime(true) < $timeoutMicro);
-
-if ($this->isRunning()) {
-
- 
- $this->doSignal($signal ?: 9, false);
-}
-}
-
-if ($this->isRunning()) {
-if (isset($this->fallbackStatus['pid'])) {
-unset($this->fallbackStatus['pid']);
-
-return $this->stop(0, $signal);
-}
-$this->close();
-}
-
-return $this->exitcode;
-}
-
-
-
-
-
-
-
-
-public function addOutput($line)
-{
-$this->lastOutputTime = microtime(true);
-
-fseek($this->stdout, 0, SEEK_END);
-fwrite($this->stdout, $line);
-fseek($this->stdout, $this->incrementalOutputOffset);
-}
-
-
-
-
-
-
-
-
-public function addErrorOutput($line)
-{
-$this->lastOutputTime = microtime(true);
-
-fseek($this->stderr, 0, SEEK_END);
-fwrite($this->stderr, $line);
-fseek($this->stderr, $this->incrementalErrorOutputOffset);
-}
-
-
-
-
-
-
-public function getCommandLine()
-{
-return $this->commandline;
-}
-
-
-
-
-
-
-
-
-public function setCommandLine($commandline)
-{
-$this->commandline = $commandline;
-
-return $this;
-}
-
-
-
-
-
-
-public function getTimeout()
-{
-return $this->timeout;
-}
-
-
-
-
-
-
-public function getIdleTimeout()
-{
-return $this->idleTimeout;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function setTimeout($timeout)
-{
-$this->timeout = $this->validateTimeout($timeout);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function setIdleTimeout($timeout)
-{
-if (null !== $timeout && $this->outputDisabled) {
-throw new LogicException('Idle timeout can not be set while the output is disabled.');
-}
-
-$this->idleTimeout = $this->validateTimeout($timeout);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-public function setTty($tty)
-{
-if ('\\' === \DIRECTORY_SEPARATOR && $tty) {
-throw new RuntimeException('TTY mode is not supported on Windows platform.');
-}
-if ($tty) {
-static $isTtySupported;
-
-if (null === $isTtySupported) {
-$isTtySupported = (bool) @proc_open('echo 1 >/dev/null', array(array('file', '/dev/tty', 'r'), array('file', '/dev/tty', 'w'), array('file', '/dev/tty', 'w')), $pipes);
-}
-
-if (!$isTtySupported) {
-throw new RuntimeException('TTY mode requires /dev/tty to be read/writable.');
-}
-}
-
-$this->tty = (bool) $tty;
-
-return $this;
-}
-
-
-
-
-
-
-public function isTty()
-{
-return $this->tty;
-}
-
-
-
-
-
-
-
-
-public function setPty($bool)
-{
-$this->pty = (bool) $bool;
-
-return $this;
-}
-
-
-
-
-
-
-public function isPty()
-{
-return $this->pty;
-}
-
-
-
-
-
-
-public function getWorkingDirectory()
-{
-if (null === $this->cwd) {
-
- 
- return getcwd() ?: null;
-}
-
-return $this->cwd;
-}
-
-
-
-
-
-
-
-
-public function setWorkingDirectory($cwd)
-{
-$this->cwd = $cwd;
-
-return $this;
-}
-
-
-
-
-
-
-public function getEnv()
-{
-return $this->env;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function setEnv(array $env)
-{
-
- $env = array_filter($env, function ($value) {
-return !\is_array($value);
-});
-
-$this->env = array();
-foreach ($env as $key => $value) {
-$this->env[$key] = (string) $value;
-}
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-public function getStdin()
-{
-@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0. Use the getInput() method instead.', E_USER_DEPRECATED);
-
-return $this->getInput();
-}
-
-
-
-
-
-
-public function getInput()
-{
-return $this->input;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function setStdin($stdin)
-{
-@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0. Use the setInput() method instead.', E_USER_DEPRECATED);
-
-return $this->setInput($stdin);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function setInput($input)
-{
-if ($this->isRunning()) {
-throw new LogicException('Input can not be set while the process is running.');
-}
-
-$this->input = ProcessUtils::validateInput(__METHOD__, $input);
-
-return $this;
-}
-
-
-
-
-
-
-public function getOptions()
-{
-return $this->options;
-}
-
-
-
-
-
-
-
-
-public function setOptions(array $options)
-{
-$this->options = $options;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function getEnhanceWindowsCompatibility()
-{
-return $this->enhanceWindowsCompatibility;
-}
-
-
-
-
-
-
-
-
-public function setEnhanceWindowsCompatibility($enhance)
-{
-$this->enhanceWindowsCompatibility = (bool) $enhance;
-
-return $this;
-}
-
-
-
-
-
-
-public function getEnhanceSigchildCompatibility()
-{
-return $this->enhanceSigchildCompatibility;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function setEnhanceSigchildCompatibility($enhance)
-{
-$this->enhanceSigchildCompatibility = (bool) $enhance;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-public function checkTimeout()
-{
-if (self::STATUS_STARTED !== $this->status) {
-return;
-}
-
-if (null !== $this->timeout && $this->timeout < microtime(true) - $this->starttime) {
-$this->stop(0);
-
-throw new ProcessTimedOutException($this, ProcessTimedOutException::TYPE_GENERAL);
-}
-
-if (null !== $this->idleTimeout && $this->idleTimeout < microtime(true) - $this->lastOutputTime) {
-$this->stop(0);
-
-throw new ProcessTimedOutException($this, ProcessTimedOutException::TYPE_IDLE);
-}
-}
-
-
-
-
-
-
-public static function isPtySupported()
-{
-static $result;
-
-if (null !== $result) {
-return $result;
-}
-
-if ('\\' === \DIRECTORY_SEPARATOR) {
-return $result = false;
-}
-
-return $result = (bool) @proc_open('echo 1 >/dev/null', array(array('pty'), array('pty'), array('pty')), $pipes);
-}
-
-
-
-
-
-
-private function getDescriptors()
-{
-if ('\\' === \DIRECTORY_SEPARATOR) {
-$this->processPipes = WindowsPipes::create($this, $this->input);
-} else {
-$this->processPipes = UnixPipes::create($this, $this->input);
-}
-
-return $this->processPipes->getDescriptors();
-}
-
-
-
-
-
-
-
-
-
-
-
-protected function buildCallback($callback)
-{
-$that = $this;
-$out = self::OUT;
-$callback = function ($type, $data) use ($that, $callback, $out) {
-if ($out == $type) {
-$that->addOutput($data);
-} else {
-$that->addErrorOutput($data);
-}
-
-if (null !== $callback) {
-\call_user_func($callback, $type, $data);
-}
-};
-
-return $callback;
-}
-
-
-
-
-
-
-protected function updateStatus($blocking)
-{
-if (self::STATUS_STARTED !== $this->status) {
-return;
-}
-
-$this->processInformation = proc_get_status($this->process);
-$running = $this->processInformation['running'];
-
-$this->readPipes($running && $blocking, '\\' !== \DIRECTORY_SEPARATOR || !$running);
-
-if ($this->fallbackStatus && $this->enhanceSigchildCompatibility && $this->isSigchildEnabled()) {
-$this->processInformation = $this->fallbackStatus + $this->processInformation;
-}
-
-if (!$running) {
-$this->close();
-}
-}
-
-
-
-
-
-
-protected function isSigchildEnabled()
-{
-if (null !== self::$sigchild) {
-return self::$sigchild;
-}
-
-if (!\function_exists('phpinfo') || \defined('HHVM_VERSION')) {
-return self::$sigchild = false;
-}
-
-ob_start();
-phpinfo(INFO_GENERAL);
-
-return self::$sigchild = false !== strpos(ob_get_clean(), '--enable-sigchild');
-}
-
-
-
-
-
-
-
-
-private function readPipesForOutput($caller)
-{
-if ($this->outputDisabled) {
-throw new LogicException('Output has been disabled.');
-}
-
-$this->requireProcessIsStarted($caller);
-
-$this->updateStatus(false);
-}
-
-
-
-
-
-
-
-
-
-
-private function validateTimeout($timeout)
-{
-$timeout = (float) $timeout;
-
-if (0.0 === $timeout) {
-$timeout = null;
-} elseif ($timeout < 0) {
-throw new InvalidArgumentException('The timeout value must be a valid positive integer or float number.');
-}
-
-return $timeout;
-}
-
-
-
-
-
-
-
-private function readPipes($blocking, $close)
-{
-$result = $this->processPipes->readAndWrite($blocking, $close);
-
-$callback = $this->callback;
-foreach ($result as $type => $data) {
-if (3 !== $type) {
-$callback(self::STDOUT === $type ? self::OUT : self::ERR, $data);
-} elseif (!isset($this->fallbackStatus['signaled'])) {
-$this->fallbackStatus['exitcode'] = (int) $data;
-}
-}
-}
-
-
-
-
-
-
-private function close()
-{
-$this->processPipes->close();
-if (\is_resource($this->process)) {
-proc_close($this->process);
-}
-$this->exitcode = $this->processInformation['exitcode'];
-$this->status = self::STATUS_TERMINATED;
-
-if (-1 === $this->exitcode) {
-if ($this->processInformation['signaled'] && 0 < $this->processInformation['termsig']) {
-
- $this->exitcode = 128 + $this->processInformation['termsig'];
-} elseif ($this->enhanceSigchildCompatibility && $this->isSigchildEnabled()) {
-$this->processInformation['signaled'] = true;
-$this->processInformation['termsig'] = -1;
-}
-}
-
-
- 
- 
- $this->callback = null;
-
-return $this->exitcode;
-}
-
-
-
-
-private function resetProcessData()
-{
-$this->starttime = null;
-$this->callback = null;
-$this->exitcode = null;
-$this->fallbackStatus = array();
-$this->processInformation = null;
-$this->stdout = fopen('php://temp/maxmemory:'.(1024 * 1024), 'w+b');
-$this->stderr = fopen('php://temp/maxmemory:'.(1024 * 1024), 'w+b');
-$this->process = null;
-$this->latestSignal = null;
-$this->status = self::STATUS_READY;
-$this->incrementalOutputOffset = 0;
-$this->incrementalErrorOutputOffset = 0;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-private function doSignal($signal, $throwException)
-{
-if (null === $pid = $this->getPid()) {
-if ($throwException) {
-throw new LogicException('Can not send signal on a non running process.');
-}
-
-return false;
-}
-
-if ('\\' === \DIRECTORY_SEPARATOR) {
-exec(sprintf('taskkill /F /T /PID %d 2>&1', $pid), $output, $exitCode);
-if ($exitCode && $this->isRunning()) {
-if ($throwException) {
-throw new RuntimeException(sprintf('Unable to kill the process (%s).', implode(' ', $output)));
-}
-
-return false;
-}
-} else {
-if (!$this->enhanceSigchildCompatibility || !$this->isSigchildEnabled()) {
-$ok = @proc_terminate($this->process, $signal);
-} elseif (\function_exists('posix_kill')) {
-$ok = @posix_kill($pid, $signal);
-} elseif ($ok = proc_open(sprintf('kill -%d %d', $signal, $pid), array(2 => array('pipe', 'w')), $pipes)) {
-$ok = false === fgets($pipes[2]);
-}
-if (!$ok) {
-if ($throwException) {
-throw new RuntimeException(sprintf('Error while sending signal `%s`.', $signal));
-}
-
-return false;
-}
-}
-
-$this->latestSignal = (int) $signal;
-$this->fallbackStatus['signaled'] = true;
-$this->fallbackStatus['exitcode'] = -1;
-$this->fallbackStatus['termsig'] = $this->latestSignal;
-
-return true;
-}
-
-
-
-
-
-
-
-
-private function requireProcessIsStarted($functionName)
-{
-if (!$this->isStarted()) {
-throw new LogicException(sprintf('Process must be started before calling %s.', $functionName));
-}
-}
-
-
-
-
-
-
-
-
-private function requireProcessIsTerminated($functionName)
-{
-if (!$this->isTerminated()) {
-throw new LogicException(sprintf('Process must be terminated before calling %s.', $functionName));
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Process;
-
-use Symfony\Component\Process\Exception\InvalidArgumentException;
-use Symfony\Component\Process\Exception\LogicException;
-
-
-
-
-class ProcessBuilder
-{
-private $arguments;
-private $cwd;
-private $env = array();
-private $input;
-private $timeout = 60;
-private $options = array();
-private $inheritEnv = true;
-private $prefix = array();
-private $outputDisabled = false;
-
-
-
-
-public function __construct(array $arguments = array())
-{
-$this->arguments = $arguments;
-}
-
-
-
-
-
-
-
-
-public static function create(array $arguments = array())
-{
-return new static($arguments);
-}
-
-
-
-
-
-
-
-
-public function add($argument)
-{
-$this->arguments[] = $argument;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-public function setPrefix($prefix)
-{
-$this->prefix = \is_array($prefix) ? $prefix : array($prefix);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-public function setArguments(array $arguments)
-{
-$this->arguments = $arguments;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function setWorkingDirectory($cwd)
-{
-$this->cwd = $cwd;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function inheritEnvironmentVariables($inheritEnv = true)
-{
-$this->inheritEnv = $inheritEnv;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function setEnv($name, $value)
-{
-$this->env[$name] = $value;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function addEnvironmentVariables(array $variables)
-{
-$this->env = array_replace($this->env, $variables);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function setInput($input)
-{
-$this->input = ProcessUtils::validateInput(__METHOD__, $input);
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function setTimeout($timeout)
-{
-if (null === $timeout) {
-$this->timeout = null;
-
-return $this;
-}
-
-$timeout = (float) $timeout;
-
-if ($timeout < 0) {
-throw new InvalidArgumentException('The timeout value must be a valid positive integer or float number.');
-}
-
-$this->timeout = $timeout;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-public function setOption($name, $value)
-{
-$this->options[$name] = $value;
-
-return $this;
-}
-
-
-
-
-
-
-public function disableOutput()
-{
-$this->outputDisabled = true;
-
-return $this;
-}
-
-
-
-
-
-
-public function enableOutput()
-{
-$this->outputDisabled = false;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function getProcess()
-{
-if (0 === \count($this->prefix) && 0 === \count($this->arguments)) {
-throw new LogicException('You must add() command arguments before calling getProcess().');
-}
-
-$options = $this->options;
-
-$arguments = array_merge($this->prefix, $this->arguments);
-$script = implode(' ', array_map(array(__NAMESPACE__.'\\ProcessUtils', 'escapeArgument'), $arguments));
-
-if ($this->inheritEnv) {
-
- $env = array_replace($_ENV, $_SERVER, $this->env);
-} else {
-$env = $this->env;
-}
-
-$process = new Process($script, $this->cwd, $env, $this->input, $this->timeout, $options);
-
-if ($this->outputDisabled) {
-$process->disableOutput();
-}
-
-return $process;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Symfony\Component\Process;
-
-use Symfony\Component\Process\Exception\InvalidArgumentException;
-
-
-
-
-
-
-
-
-class ProcessUtils
-{
-
-
-
-private function __construct()
-{
-}
-
-
-
-
-
-
-
-
-public static function escapeArgument($argument)
-{
-
- 
- 
- 
- if ('\\' === \DIRECTORY_SEPARATOR) {
-if ('' === $argument) {
-return escapeshellarg($argument);
-}
-
-$escapedArgument = '';
-$quote = false;
-foreach (preg_split('/(")/', $argument, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE) as $part) {
-if ('"' === $part) {
-$escapedArgument .= '\\"';
-} elseif (self::isSurroundedBy($part, '%')) {
-
- $escapedArgument .= '^%"'.substr($part, 1, -1).'"^%';
-} else {
-
- if ('\\' === substr($part, -1)) {
-$part .= '\\';
-}
-$quote = true;
-$escapedArgument .= $part;
-}
-}
-if ($quote) {
-$escapedArgument = '"'.$escapedArgument.'"';
-}
-
-return $escapedArgument;
-}
-
-return "'".str_replace("'", "'\\''", $argument)."'";
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-public static function validateInput($caller, $input)
-{
-if (null !== $input) {
-if (\is_resource($input)) {
-return $input;
-}
-if (\is_string($input)) {
-return $input;
-}
-if (is_scalar($input)) {
-return (string) $input;
-}
-
- if (\is_object($input) && method_exists($input, '__toString')) {
-@trigger_error('Passing an object as an input is deprecated since Symfony 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
-
-return (string) $input;
-}
-
-throw new InvalidArgumentException(sprintf('%s only accepts strings or stream resources.', $caller));
-}
-
-return $input;
-}
-
-private static function isSurroundedBy($arg, $char)
-{
-return 2 < \strlen($arg) && $char === $arg[0] && $char === $arg[\strlen($arg) - 1];
-}
-}
-Copyright (c) 2011 Jordi Boggiano
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Seld\JsonLint;
-
-class DuplicateKeyException extends ParsingException
-{
-public function __construct($message, $key, array $details = array())
-{
-$details['key'] = $key;
-parent::__construct($message, $details);
-}
-
-public function getKey()
-{
-return $this->details['key'];
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Seld\JsonLint;
-use stdClass;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-class JsonParser
-{
-const DETECT_KEY_CONFLICTS = 1;
-const ALLOW_DUPLICATE_KEYS = 2;
-const PARSE_TO_ASSOC = 4;
-
-private $lexer;
-
-private $flags;
-private $stack;
-private $vstack; 
- private $lstack; 
-
-private $symbols = array(
-'error' => 2,
-'JSONString' => 3,
-'STRING' => 4,
-'JSONNumber' => 5,
-'NUMBER' => 6,
-'JSONNullLiteral' => 7,
-'NULL' => 8,
-'JSONBooleanLiteral' => 9,
-'TRUE' => 10,
-'FALSE' => 11,
-'JSONText' => 12,
-'JSONValue' => 13,
-'EOF' => 14,
-'JSONObject' => 15,
-'JSONArray' => 16,
-'{' => 17,
-'}' => 18,
-'JSONMemberList' => 19,
-'JSONMember' => 20,
-':' => 21,
-',' => 22,
-'[' => 23,
-']' => 24,
-'JSONElementList' => 25,
-'$accept' => 0,
-'$end' => 1,
-);
-
-private $terminals_ = array(
-2 => "error",
-4 => "STRING",
-6 => "NUMBER",
-8 => "NULL",
-10 => "TRUE",
-11 => "FALSE",
-14 => "EOF",
-17 => "{",
-18 => "}",
-21 => ":",
-22 => ",",
-23 => "[",
-24 => "]",
-);
-
-private $productions_ = array(
-0,
-array(3, 1),
-array(5, 1),
-array(7, 1),
-array(9, 1),
-array(9, 1),
-array(12, 2),
-array(13, 1),
-array(13, 1),
-array(13, 1),
-array(13, 1),
-array(13, 1),
-array(13, 1),
-array(15, 2),
-array(15, 3),
-array(20, 3),
-array(19, 1),
-array(19, 3),
-array(16, 2),
-array(16, 3),
-array(25, 1),
-array(25, 3)
-);
-
-private $table = array(array(3 => 5, 4 => array(1,12), 5 => 6, 6 => array(1,13), 7 => 3, 8 => array(1,9), 9 => 4, 10 => array(1,10), 11 => array(1,11), 12 => 1, 13 => 2, 15 => 7, 16 => 8, 17 => array(1,14), 23 => array(1,15)), array( 1 => array(3)), array( 14 => array(1,16)), array( 14 => array(2,7), 18 => array(2,7), 22 => array(2,7), 24 => array(2,7)), array( 14 => array(2,8), 18 => array(2,8), 22 => array(2,8), 24 => array(2,8)), array( 14 => array(2,9), 18 => array(2,9), 22 => array(2,9), 24 => array(2,9)), array( 14 => array(2,10), 18 => array(2,10), 22 => array(2,10), 24 => array(2,10)), array( 14 => array(2,11), 18 => array(2,11), 22 => array(2,11), 24 => array(2,11)), array( 14 => array(2,12), 18 => array(2,12), 22 => array(2,12), 24 => array(2,12)), array( 14 => array(2,3), 18 => array(2,3), 22 => array(2,3), 24 => array(2,3)), array( 14 => array(2,4), 18 => array(2,4), 22 => array(2,4), 24 => array(2,4)), array( 14 => array(2,5), 18 => array(2,5), 22 => array(2,5), 24 => array(2,5)), array( 14 => array(2,1), 18 => array(2,1), 21 => array(2,1), 22 => array(2,1), 24 => array(2,1)), array( 14 => array(2,2), 18 => array(2,2), 22 => array(2,2), 24 => array(2,2)), array( 3 => 20, 4 => array(1,12), 18 => array(1,17), 19 => 18, 20 => 19 ), array( 3 => 5, 4 => array(1,12), 5 => 6, 6 => array(1,13), 7 => 3, 8 => array(1,9), 9 => 4, 10 => array(1,10), 11 => array(1,11), 13 => 23, 15 => 7, 16 => 8, 17 => array(1,14), 23 => array(1,15), 24 => array(1,21), 25 => 22 ), array( 1 => array(2,6)), array( 14 => array(2,13), 18 => array(2,13), 22 => array(2,13), 24 => array(2,13)), array( 18 => array(1,24), 22 => array(1,25)), array( 18 => array(2,16), 22 => array(2,16)), array( 21 => array(1,26)), array( 14 => array(2,18), 18 => array(2,18), 22 => array(2,18), 24 => array(2,18)), array( 22 => array(1,28), 24 => array(1,27)), array( 22 => array(2,20), 24 => array(2,20)), array( 14 => array(2,14), 18 => array(2,14), 22 => array(2,14), 24 => array(2,14)), array( 3 => 20, 4 => array(1,12), 20 => 29 ), array( 3 => 5, 4 => array(1,12), 5 => 6, 6 => array(1,13), 7 => 3, 8 => array(1,9), 9 => 4, 10 => array(1,10), 11 => array(1,11), 13 => 30, 15 => 7, 16 => 8, 17 => array(1,14), 23 => array(1,15)), array( 14 => array(2,19), 18 => array(2,19), 22 => array(2,19), 24 => array(2,19)), array( 3 => 5, 4 => array(1,12), 5 => 6, 6 => array(1,13), 7 => 3, 8 => array(1,9), 9 => 4, 10 => array(1,10), 11 => array(1,11), 13 => 31, 15 => 7, 16 => 8, 17 => array(1,14), 23 => array(1,15)), array( 18 => array(2,17), 22 => array(2,17)), array( 18 => array(2,15), 22 => array(2,15)), array( 22 => array(2,21), 24 => array(2,21)),
-);
-
-private $defaultActions = array(
-16 => array(2, 6)
-);
-
-
-
-
-
-
-public function lint($input, $flags = 0)
-{
-try {
-$this->parse($input, $flags);
-} catch (ParsingException $e) {
-return $e;
-}
-}
-
-
-
-
-
-
-
-public function parse($input, $flags = 0)
-{
-$this->failOnBOM($input);
-
-$this->flags = $flags;
-
-$this->stack = array(0);
-$this->vstack = array(null);
-$this->lstack = array();
-
-$yytext = '';
-$yylineno = 0;
-$yyleng = 0;
-$recovering = 0;
-$TERROR = 2;
-$EOF = 1;
-
-$this->lexer = new Lexer();
-$this->lexer->setInput($input);
-
-$yyloc = $this->lexer->yylloc;
-$this->lstack[] = $yyloc;
-
-$symbol = null;
-$preErrorSymbol = null;
-$state = null;
-$action = null;
-$a = null;
-$r = null;
-$yyval = new stdClass;
-$p = null;
-$len = null;
-$newState = null;
-$expected = null;
-$errStr = null;
-
-while (true) {
-
- $state = $this->stack[count($this->stack)-1];
-
-
- if (isset($this->defaultActions[$state])) {
-$action = $this->defaultActions[$state];
-} else {
-if ($symbol == null) {
-$symbol = $this->lex();
-}
-
- $action = isset($this->table[$state][$symbol]) ? $this->table[$state][$symbol] : false;
-}
-
-
- if (!$action || !$action[0]) {
-if (!$recovering) {
-
- $expected = array();
-foreach ($this->table[$state] as $p => $ignore) {
-if (isset($this->terminals_[$p]) && $p > 2) {
-$expected[] = "'" . $this->terminals_[$p] . "'";
-}
-}
-
-$message = null;
-if (in_array("'STRING'", $expected) && in_array(substr($this->lexer->match, 0, 1), array('"', "'"))) {
-$message = "Invalid string";
-if ("'" === substr($this->lexer->match, 0, 1)) {
-$message .= ", it appears you used single quotes instead of double quotes";
-} elseif (preg_match('{".+?(\\\\[^"bfnrt/\\\\u])}', $this->lexer->getUpcomingInput(), $match)) {
-$message .= ", it appears you have an unescaped backslash at: ".$match[1];
-} elseif (preg_match('{"(?:[^"]+|\\\\")*$}m', $this->lexer->getUpcomingInput())) {
-$message .= ", it appears you forgot to terminate a string, or attempted to write a multiline string which is invalid";
-}
-}
-
-$errStr = 'Parse error on line ' . ($yylineno+1) . ":\n";
-$errStr .= $this->lexer->showPosition() . "\n";
-if ($message) {
-$errStr .= $message;
-} else {
-$errStr .= (count($expected) > 1) ? "Expected one of: " : "Expected: ";
-$errStr .= implode(', ', $expected);
-}
-
-if (',' === substr(trim($this->lexer->getPastInput()), -1)) {
-$errStr .= " - It appears you have an extra trailing comma";
-}
-
-$this->parseError($errStr, array(
-'text' => $this->lexer->match,
-'token' => !empty($this->terminals_[$symbol]) ? $this->terminals_[$symbol] : $symbol,
-'line' => $this->lexer->yylineno,
-'loc' => $yyloc,
-'expected' => $expected,
-));
-}
-
-
- if ($recovering == 3) {
-if ($symbol == $EOF) {
-throw new ParsingException($errStr ?: 'Parsing halted.');
-}
-
-
- $yyleng = $this->lexer->yyleng;
-$yytext = $this->lexer->yytext;
-$yylineno = $this->lexer->yylineno;
-$yyloc = $this->lexer->yylloc;
-$symbol = $this->lex();
-}
-
-
- while (true) {
-
- if (array_key_exists($TERROR, $this->table[$state])) {
-break;
-}
-if ($state == 0) {
-throw new ParsingException($errStr ?: 'Parsing halted.');
-}
-$this->popStack(1);
-$state = $this->stack[count($this->stack)-1];
-}
-
-$preErrorSymbol = $symbol; 
- $symbol = $TERROR; 
- $state = $this->stack[count($this->stack)-1];
-$action = isset($this->table[$state][$TERROR]) ? $this->table[$state][$TERROR] : false;
-$recovering = 3; 
- }
-
-
- if (is_array($action[0]) && count($action) > 1) {
-throw new ParsingException('Parse Error: multiple actions possible at state: ' . $state . ', token: ' . $symbol);
-}
-
-switch ($action[0]) {
-case 1: 
- $this->stack[] = $symbol;
-$this->vstack[] = $this->lexer->yytext;
-$this->lstack[] = $this->lexer->yylloc;
-$this->stack[] = $action[1]; 
- $symbol = null;
-if (!$preErrorSymbol) { 
- $yyleng = $this->lexer->yyleng;
-$yytext = $this->lexer->yytext;
-$yylineno = $this->lexer->yylineno;
-$yyloc = $this->lexer->yylloc;
-if ($recovering > 0) {
-$recovering--;
-}
-} else { 
- $symbol = $preErrorSymbol;
-$preErrorSymbol = null;
-}
-break;
-
-case 2: 
- $len = $this->productions_[$action[1]][1];
-
-
- $yyval->token = $this->vstack[count($this->vstack) - $len]; 
- 
- $yyval->store = array( 
- 'first_line' => $this->lstack[count($this->lstack) - ($len ?: 1)]['first_line'],
-'last_line' => $this->lstack[count($this->lstack) - 1]['last_line'],
-'first_column' => $this->lstack[count($this->lstack) - ($len ?: 1)]['first_column'],
-'last_column' => $this->lstack[count($this->lstack) - 1]['last_column'],
-);
-$r = $this->performAction($yyval, $yytext, $yyleng, $yylineno, $action[1], $this->vstack, $this->lstack);
-
-if (!$r instanceof Undefined) {
-return $r;
-}
-
-if ($len) {
-$this->popStack($len);
-}
-
-$this->stack[] = $this->productions_[$action[1]][0]; 
- $this->vstack[] = $yyval->token;
-$this->lstack[] = $yyval->store;
-$newState = $this->table[$this->stack[count($this->stack)-2]][$this->stack[count($this->stack)-1]];
-$this->stack[] = $newState;
-break;
-
-case 3: 
-
-return true;
-}
-}
-
-return true;
-}
-
-protected function parseError($str, $hash)
-{
-throw new ParsingException($str, $hash);
-}
-
-
- 
- 
- private function performAction(stdClass $yyval, $yytext, $yyleng, $yylineno, $yystate, &$tokens)
-{
-
- $len = count($tokens) - 1;
-switch ($yystate) {
-case 1:
-$yytext = preg_replace_callback('{(?:\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4})}', array($this, 'stringInterpolation'), $yytext);
-$yyval->token = $yytext;
-break;
-case 2:
-if (strpos($yytext, 'e') !== false || strpos($yytext, 'E') !== false) {
-$yyval->token = floatval($yytext);
-} else {
-$yyval->token = strpos($yytext, '.') === false ? intval($yytext) : floatval($yytext);
-}
-break;
-case 3:
-$yyval->token = null;
-break;
-case 4:
-$yyval->token = true;
-break;
-case 5:
-$yyval->token = false;
-break;
-case 6:
-return $yyval->token = $tokens[$len-1];
-case 13:
-if ($this->flags & self::PARSE_TO_ASSOC) {
-$yyval->token = array();
-} else {
-$yyval->token = new stdClass;
-}
-break;
-case 14:
-$yyval->token = $tokens[$len-1];
-break;
-case 15:
-$yyval->token = array($tokens[$len-2], $tokens[$len]);
-break;
-case 16:
-if (PHP_VERSION_ID < 70100) {
-$property = $tokens[$len][0] === '' ? '_empty_' : $tokens[$len][0];
-} else {
-$property = $tokens[$len][0];
-}
-if ($this->flags & self::PARSE_TO_ASSOC) {
-$yyval->token = array();
-$yyval->token[$property] = $tokens[$len][1];
-} else {
-$yyval->token = new stdClass;
-$yyval->token->$property = $tokens[$len][1];
-}
-break;
-case 17:
-if ($this->flags & self::PARSE_TO_ASSOC) {
-$yyval->token =& $tokens[$len-2];
-$key = $tokens[$len][0];
-if (($this->flags & self::DETECT_KEY_CONFLICTS) && isset($tokens[$len-2][$key])) {
-$errStr = 'Parse error on line ' . ($yylineno+1) . ":\n";
-$errStr .= $this->lexer->showPosition() . "\n";
-$errStr .= "Duplicate key: ".$tokens[$len][0];
-throw new DuplicateKeyException($errStr, $tokens[$len][0], array('line' => $yylineno+1));
-} elseif (($this->flags & self::ALLOW_DUPLICATE_KEYS) && isset($tokens[$len-2][$key])) {
-$duplicateCount = 1;
-do {
-$duplicateKey = $key . '.' . $duplicateCount++;
-} while (isset($tokens[$len-2][$duplicateKey]));
-$key = $duplicateKey;
-}
-$tokens[$len-2][$key] = $tokens[$len][1];
-} else {
-$yyval->token = $tokens[$len-2];
-if (PHP_VERSION_ID < 70100) {
-$key = $tokens[$len][0] === '' ? '_empty_' : $tokens[$len][0];
-} else {
-$key = $tokens[$len][0];
-}
-if (($this->flags & self::DETECT_KEY_CONFLICTS) && isset($tokens[$len-2]->{$key})) {
-$errStr = 'Parse error on line ' . ($yylineno+1) . ":\n";
-$errStr .= $this->lexer->showPosition() . "\n";
-$errStr .= "Duplicate key: ".$tokens[$len][0];
-throw new DuplicateKeyException($errStr, $tokens[$len][0], array('line' => $yylineno+1));
-} elseif (($this->flags & self::ALLOW_DUPLICATE_KEYS) && isset($tokens[$len-2]->{$key})) {
-$duplicateCount = 1;
-do {
-$duplicateKey = $key . '.' . $duplicateCount++;
-} while (isset($tokens[$len-2]->$duplicateKey));
-$key = $duplicateKey;
-}
-$tokens[$len-2]->$key = $tokens[$len][1];
-}
-break;
-case 18:
-$yyval->token = array();
-break;
-case 19:
-$yyval->token = $tokens[$len-1];
-break;
-case 20:
-$yyval->token = array($tokens[$len]);
-break;
-case 21:
-$tokens[$len-2][] = $tokens[$len];
-$yyval->token = $tokens[$len-2];
-break;
-}
-
-return new Undefined();
-}
-
-private function stringInterpolation($match)
-{
-switch ($match[0]) {
-case '\\\\':
-return '\\';
-case '\"':
-return '"';
-case '\b':
-return chr(8);
-case '\f':
-return chr(12);
-case '\n':
-return "\n";
-case '\r':
-return "\r";
-case '\t':
-return "\t";
-case '\/':
-return "/";
-default:
-return html_entity_decode('&#x'.ltrim(substr($match[0], 2), '0').';', 0, 'UTF-8');
-}
-}
-
-private function popStack($n)
-{
-$this->stack = array_slice($this->stack, 0, - (2 * $n));
-$this->vstack = array_slice($this->vstack, 0, - $n);
-$this->lstack = array_slice($this->lstack, 0, - $n);
-}
-
-private function lex()
-{
-$token = $this->lexer->lex() ?: 1; 
- 
- if (!is_numeric($token)) {
-$token = isset($this->symbols[$token]) ? $this->symbols[$token] : $token;
-}
-
-return $token;
-}
-
-private function failOnBOM($input)
-{
-
- $bom = "\xEF\xBB\xBF";
-
-if (substr($input, 0, 3) === $bom) {
-$this->parseError("BOM detected, make sure your input does not include a Unicode Byte-Order-Mark", array());
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Seld\JsonLint;
-
-
-
-
-
-
-class Lexer
-{
-private $EOF = 1;
-private $rules = array(
-0 => '/^\s+/',
-1 => '/^-?([0-9]|[1-9][0-9]+)(\.[0-9]+)?([eE][+-]?[0-9]+)?\b/',
-2 => '{^"(?>\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^\0-\x1f\\\\"]++)*+"}',
-3 => '/^\{/',
-4 => '/^\}/',
-5 => '/^\[/',
-6 => '/^\]/',
-7 => '/^,/',
-8 => '/^:/',
-9 => '/^true\b/',
-10 => '/^false\b/',
-11 => '/^null\b/',
-12 => '/^$/',
-13 => '/^./',
-);
-
-private $conditions = array(
-"INITIAL" => array(
-"rules" => array(0,1,2,3,4,5,6,7,8,9,10,11,12,13),
-"inclusive" => true,
-),
-);
-
-private $conditionStack;
-private $input;
-private $more;
-private $done;
-private $matched;
-
-public $match;
-public $yylineno;
-public $yyleng;
-public $yytext;
-public $yylloc;
-
-public function lex()
-{
-$r = $this->next();
-if (!$r instanceof Undefined) {
-return $r;
-}
-
-return $this->lex();
-}
-
-public function setInput($input)
-{
-$this->input = $input;
-$this->more = false;
-$this->done = false;
-$this->yylineno = $this->yyleng = 0;
-$this->yytext = $this->matched = $this->match = '';
-$this->conditionStack = array('INITIAL');
-$this->yylloc = array('first_line' => 1, 'first_column' => 0, 'last_line' => 1, 'last_column' => 0);
-
-return $this;
-}
-
-public function showPosition()
-{
-$pre = str_replace("\n", '', $this->getPastInput());
-$c = str_repeat('-', max(0, strlen($pre) - 1)); 
-
-return $pre . str_replace("\n", '', $this->getUpcomingInput()) . "\n" . $c . "^";
-}
-
-public function getPastInput()
-{
-$past = substr($this->matched, 0, strlen($this->matched) - strlen($this->match));
-
-return (strlen($past) > 20 ? '...' : '') . substr($past, -20);
-}
-
-public function getUpcomingInput()
-{
-$next = $this->match;
-if (strlen($next) < 20) {
-$next .= substr($this->input, 0, 20 - strlen($next));
-}
-
-return substr($next, 0, 20) . (strlen($next) > 20 ? '...' : '');
-}
-
-protected function parseError($str, $hash)
-{
-throw new \Exception($str);
-}
-
-private function next()
-{
-if ($this->done) {
-return $this->EOF;
-}
-if ($this->input === '') {
-$this->done = true;
-}
-
-$token = null;
-$match = null;
-$col = null;
-$lines = null;
-
-if (!$this->more) {
-$this->yytext = '';
-$this->match = '';
-}
-
-$rules = $this->getCurrentRules();
-$rulesLen = count($rules);
-
-for ($i=0; $i < $rulesLen; $i++) {
-if (preg_match($this->rules[$rules[$i]], $this->input, $match)) {
-preg_match_all('/\n.*/', $match[0], $lines);
-$lines = $lines[0];
-if ($lines) {
-$this->yylineno += count($lines);
-}
-
-$this->yylloc = array(
-'first_line' => $this->yylloc['last_line'],
-'last_line' => $this->yylineno+1,
-'first_column' => $this->yylloc['last_column'],
-'last_column' => $lines ? strlen($lines[count($lines) - 1]) - 1 : $this->yylloc['last_column'] + strlen($match[0]),
-);
-$this->yytext .= $match[0];
-$this->match .= $match[0];
-$this->yyleng = strlen($this->yytext);
-$this->more = false;
-$this->input = substr($this->input, strlen($match[0]));
-$this->matched .= $match[0];
-$token = $this->performAction($rules[$i], $this->conditionStack[count($this->conditionStack)-1]);
-if ($token) {
-return $token;
-}
-
-return new Undefined();
-}
-}
-
-if ($this->input === "") {
-return $this->EOF;
-}
-
-$this->parseError(
-'Lexical error on line ' . ($this->yylineno+1) . ". Unrecognized text.\n" . $this->showPosition(),
-array(
-'text' => "",
-'token' => null,
-'line' => $this->yylineno,
-)
-);
-}
-
-private function getCurrentRules()
-{
-return $this->conditions[$this->conditionStack[count($this->conditionStack)-1]]['rules'];
-}
-
-private function performAction($avoiding_name_collisions, $YY_START)
-{
-switch ($avoiding_name_collisions) {
-case 0:
-break;
-case 1:
-return 6;
-break;
-case 2:
-$this->yytext = substr($this->yytext, 1, $this->yyleng-2);
-
-return 4;
-case 3:
-return 17;
-case 4:
-return 18;
-case 5:
-return 23;
-case 6:
-return 24;
-case 7:
-return 22;
-case 8:
-return 21;
-case 9:
-return 10;
-case 10:
-return 11;
-case 11:
-return 8;
-case 12:
-return 14;
-case 13:
-return 'INVALID';
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Seld\JsonLint;
-
-class ParsingException extends \Exception
-{
-protected $details;
-
-public function __construct($message, $details = array())
-{
-$this->details = $details;
-parent::__construct($message);
-}
-
-public function getDetails()
-{
-return $this->details;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Seld\JsonLint;
-
-class Undefined
-{
-}
-MIT License
-
-Copyright (c) 2016
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-<?php
-
-require __DIR__ . '/../vendor/autoload.php';
-
-$data = json_decode(file_get_contents('data.json'));
-
-
-$validator = new JsonSchema\Validator();
-$validator->check($data, (object) array('$ref' => 'file://' . realpath('schema.json')));
-
-if ($validator->isValid()) {
-echo "The supplied JSON validates against the schema.\n";
-} else {
-echo "JSON does not validate. Violations:\n";
-foreach ($validator->getErrors() as $error) {
-echo sprintf("[%s] %s\n", $error['property'], $error['message']);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Entity\JsonPointer;
-use JsonSchema\Exception\InvalidArgumentException;
-use JsonSchema\Exception\ValidationException;
-use JsonSchema\Validator;
-
-
-
-
-
-class BaseConstraint
-{
-
-
-
-protected $errors = array();
-
-
-
-
-protected $errorMask = Validator::ERROR_NONE;
-
-
-
-
-protected $factory;
-
-
-
-
-public function __construct(Factory $factory = null)
-{
-$this->factory = $factory ?: new Factory();
-}
-
-public function addError(JsonPointer $path = null, $message, $constraint = '', array $more = null)
-{
-$error = array(
-'property' => $this->convertJsonPointerIntoPropertyPath($path ?: new JsonPointer('')),
-'pointer' => ltrim(strval($path ?: new JsonPointer('')), '#'),
-'message' => $message,
-'constraint' => $constraint,
-'context' => $this->factory->getErrorContext(),
-);
-
-if ($this->factory->getConfig(Constraint::CHECK_MODE_EXCEPTIONS)) {
-throw new ValidationException(sprintf('Error validating %s: %s', $error['pointer'], $error['message']));
-}
-
-if (is_array($more) && count($more) > 0) {
-$error += $more;
-}
-
-$this->errors[] = $error;
-$this->errorMask |= $error['context'];
-}
-
-public function addErrors(array $errors)
-{
-if ($errors) {
-$this->errors = array_merge($this->errors, $errors);
-$errorMask = &$this->errorMask;
-array_walk($errors, function ($error) use (&$errorMask) {
-if (isset($error['context'])) {
-$errorMask |= $error['context'];
-}
-});
-}
-}
-
-public function getErrors($errorContext = Validator::ERROR_ALL)
-{
-if ($errorContext === Validator::ERROR_ALL) {
-return $this->errors;
-}
-
-return array_filter($this->errors, function ($error) use ($errorContext) {
-if ($errorContext & $error['context']) {
-return true;
-}
-});
-}
-
-public function numErrors($errorContext = Validator::ERROR_ALL)
-{
-if ($errorContext === Validator::ERROR_ALL) {
-return count($this->errors);
-}
-
-return count($this->getErrors($errorContext));
-}
-
-public function isValid()
-{
-return !$this->getErrors();
-}
-
-
-
-
-
-public function reset()
-{
-$this->errors = array();
-$this->errorMask = Validator::ERROR_NONE;
-}
-
-
-
-
-
-
-public function getErrorMask()
-{
-return $this->errorMask;
-}
-
-
-
-
-
-
-
-
-public static function arrayToObjectRecursive($array)
-{
-$json = json_encode($array);
-if (json_last_error() !== \JSON_ERROR_NONE) {
-$message = 'Unable to encode schema array as JSON';
-if (function_exists('json_last_error_msg')) {
-$message .= ': ' . json_last_error_msg();
-}
-throw new InvalidArgumentException($message);
-}
-
-return (object) json_decode($json);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Entity\JsonPointer;
-
-
-
-
-
-
-
-class CollectionConstraint extends Constraint
-{
-
-
-
-public function check(&$value, $schema = null, JsonPointer $path = null, $i = null)
-{
-
- if (isset($schema->minItems) && count($value) < $schema->minItems) {
-$this->addError($path, 'There must be a minimum of ' . $schema->minItems . ' items in the array', 'minItems', array('minItems' => $schema->minItems));
-}
-
-
- if (isset($schema->maxItems) && count($value) > $schema->maxItems) {
-$this->addError($path, 'There must be a maximum of ' . $schema->maxItems . ' items in the array', 'maxItems', array('maxItems' => $schema->maxItems));
-}
-
-
- if (isset($schema->uniqueItems) && $schema->uniqueItems) {
-$unique = $value;
-if (is_array($value) && count($value)) {
-$unique = array_map(function ($e) {
-return var_export($e, true);
-}, $value);
-}
-if (count(array_unique($unique)) != count($value)) {
-$this->addError($path, 'There are no duplicates allowed in the array', 'uniqueItems');
-}
-}
-
-
- if (isset($schema->items)) {
-$this->validateItems($value, $schema, $path, $i);
-}
-}
-
-
-
-
-
-
-
-
-
-protected function validateItems(&$value, $schema = null, JsonPointer $path = null, $i = null)
-{
-if (is_object($schema->items)) {
-
-
-if (isset($schema->items->type)
-&& (
-$schema->items->type == 'string'
-|| $schema->items->type == 'number'
-|| $schema->items->type == 'integer'
-)
-&& !isset($schema->additionalItems)
-) {
-
- $type = $schema->items->type;
-$typeValidator = $this->factory->createInstanceFor('type');
-$validator = $this->factory->createInstanceFor($type === 'integer' ? 'number' : $type);
-
-foreach ($value as $k => &$v) {
-$k_path = $this->incrementPath($path, $k);
-$typeValidator->check($v, $schema->items, $k_path, $i);
-
-$validator->check($v, $schema->items, $k_path, $i);
-}
-unset($v); 
-
-$this->addErrors($typeValidator->getErrors());
-$this->addErrors($validator->getErrors());
-} else {
-foreach ($value as $k => &$v) {
-$initErrors = $this->getErrors();
-
-
- $this->checkUndefined($v, $schema->items, $path, $k);
-
-
- if (count($initErrors) < count($this->getErrors()) && (isset($schema->additionalItems) && $schema->additionalItems !== false)) {
-$secondErrors = $this->getErrors();
-$this->checkUndefined($v, $schema->additionalItems, $path, $k);
-}
-
-
- if (isset($secondErrors) && count($secondErrors) < count($this->getErrors())) {
-$this->errors = $secondErrors;
-} elseif (isset($secondErrors) && count($secondErrors) === count($this->getErrors())) {
-$this->errors = $initErrors;
-}
-}
-unset($v); 
-
-}
-} else {
-
- foreach ($value as $k => &$v) {
-if (array_key_exists($k, $schema->items)) {
-$this->checkUndefined($v, $schema->items[$k], $path, $k);
-} else {
-
- if (property_exists($schema, 'additionalItems')) {
-if ($schema->additionalItems !== false) {
-$this->checkUndefined($v, $schema->additionalItems, $path, $k);
-} else {
-$this->addError(
-$path, 'The item ' . $i . '[' . $k . '] is not defined and the definition does not allow additional items', 'additionalItems', array('additionalItems' => $schema->additionalItems));
-}
-} else {
-
- $this->checkUndefined($v, new \stdClass(), $path, $k);
-}
-}
-}
-unset($v); 
-
-
-
- if (count($value) > 0) {
-for ($k = count($value); $k < count($schema->items); $k++) {
-$undefinedInstance = $this->factory->createInstanceFor('undefined');
-$this->checkUndefined($undefinedInstance, $schema->items[$k], $path, $k);
-}
-}
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Entity\JsonPointer;
-
-
-
-
-
-
-
-abstract class Constraint extends BaseConstraint implements ConstraintInterface
-{
-protected $inlineSchemaProperty = '$schema';
-
-const CHECK_MODE_NONE = 0x00000000;
-const CHECK_MODE_NORMAL = 0x00000001;
-const CHECK_MODE_TYPE_CAST = 0x00000002;
-const CHECK_MODE_COERCE_TYPES = 0x00000004;
-const CHECK_MODE_APPLY_DEFAULTS = 0x00000008;
-const CHECK_MODE_EXCEPTIONS = 0x00000010;
-const CHECK_MODE_DISABLE_FORMAT = 0x00000020;
-const CHECK_MODE_ONLY_REQUIRED_DEFAULTS = 0x00000080;
-const CHECK_MODE_VALIDATE_SCHEMA = 0x00000100;
-
-
-
-
-
-
-
-
-
-protected function incrementPath(JsonPointer $path = null, $i)
-{
-$path = $path ?: new JsonPointer('');
-$path = $path->withPropertyPaths(
-array_merge(
-$path->getPropertyPaths(),
-array_filter(array($i), 'strlen')
-)
-);
-
-return $path;
-}
-
-
-
-
-
-
-
-
-
-protected function checkArray(&$value, $schema = null, JsonPointer $path = null, $i = null)
-{
-$validator = $this->factory->createInstanceFor('collection');
-$validator->check($value, $schema, $path, $i);
-
-$this->addErrors($validator->getErrors());
-}
-
-
-
-
-
-
-
-
-
-
-
-protected function checkObject(&$value, $schema = null, JsonPointer $path = null, $properties = null,
-$additionalProperties = null, $patternProperties = null, $appliedDefaults = array())
-{
-$validator = $this->factory->createInstanceFor('object');
-$validator->check($value, $schema, $path, $properties, $additionalProperties, $patternProperties, $appliedDefaults);
-
-$this->addErrors($validator->getErrors());
-}
-
-
-
-
-
-
-
-
-
-protected function checkType(&$value, $schema = null, JsonPointer $path = null, $i = null)
-{
-$validator = $this->factory->createInstanceFor('type');
-$validator->check($value, $schema, $path, $i);
-
-$this->addErrors($validator->getErrors());
-}
-
-
-
-
-
-
-
-
-
-protected function checkUndefined(&$value, $schema = null, JsonPointer $path = null, $i = null, $fromDefault = false)
-{
-$validator = $this->factory->createInstanceFor('undefined');
-
-$validator->check($value, $this->factory->getSchemaStorage()->resolveRefSchema($schema), $path, $i, $fromDefault);
-
-$this->addErrors($validator->getErrors());
-}
-
-
-
-
-
-
-
-
-
-protected function checkString($value, $schema = null, JsonPointer $path = null, $i = null)
-{
-$validator = $this->factory->createInstanceFor('string');
-$validator->check($value, $schema, $path, $i);
-
-$this->addErrors($validator->getErrors());
-}
-
-
-
-
-
-
-
-
-
-protected function checkNumber($value, $schema = null, JsonPointer $path = null, $i = null)
-{
-$validator = $this->factory->createInstanceFor('number');
-$validator->check($value, $schema, $path, $i);
-
-$this->addErrors($validator->getErrors());
-}
-
-
-
-
-
-
-
-
-
-protected function checkEnum($value, $schema = null, JsonPointer $path = null, $i = null)
-{
-$validator = $this->factory->createInstanceFor('enum');
-$validator->check($value, $schema, $path, $i);
-
-$this->addErrors($validator->getErrors());
-}
-
-
-
-
-
-
-
-
-
-protected function checkFormat($value, $schema = null, JsonPointer $path = null, $i = null)
-{
-$validator = $this->factory->createInstanceFor('format');
-$validator->check($value, $schema, $path, $i);
-
-$this->addErrors($validator->getErrors());
-}
-
-
-
-
-
-
-protected function getTypeCheck()
-{
-return $this->factory->getTypeCheck();
-}
-
-
-
-
-
-
-protected function convertJsonPointerIntoPropertyPath(JsonPointer $pointer)
-{
-$result = array_map(
-function ($path) {
-return sprintf(is_numeric($path) ? '[%d]' : '.%s', $path);
-},
-$pointer->getPropertyPaths()
-);
-
-return trim(implode('', $result), '.');
-}
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Entity\JsonPointer;
-
-
-
-
-
-
-interface ConstraintInterface
-{
-
-
-
-
-
-public function getErrors();
-
-
-
-
-
-
-public function addErrors(array $errors);
-
-
-
-
-
-
-
-
-
-public function addError(JsonPointer $path = null, $message, $constraint='', array $more = null);
-
-
-
-
-
-
-public function isValid();
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function check(&$value, $schema = null, JsonPointer $path = null, $i = null);
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Entity\JsonPointer;
-
-
-
-
-
-
-
-class EnumConstraint extends Constraint
-{
-
-
-
-public function check(&$element, $schema = null, JsonPointer $path = null, $i = null)
-{
-
- if ($element instanceof UndefinedConstraint && (!isset($schema->required) || !$schema->required)) {
-return;
-}
-$type = gettype($element);
-
-foreach ($schema->enum as $enum) {
-$enumType = gettype($enum);
-if ($this->factory->getConfig(self::CHECK_MODE_TYPE_CAST) && $type == 'array' && $enumType == 'object') {
-if ((object) $element == $enum) {
-return;
-}
-}
-
-if ($type === gettype($enum)) {
-if ($type == 'object') {
-if ($element == $enum) {
-return;
-}
-} elseif ($element === $enum) {
-return;
-}
-}
-}
-
-$this->addError($path, 'Does not have a value in the enumeration ' . json_encode($schema->enum), 'enum', array('enum' => $schema->enum));
-}
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Exception\InvalidArgumentException;
-use JsonSchema\SchemaStorage;
-use JsonSchema\SchemaStorageInterface;
-use JsonSchema\Uri\UriRetriever;
-use JsonSchema\UriRetrieverInterface;
-use JsonSchema\Validator;
-
-
-
-
-class Factory
-{
-
-
-
-protected $schemaStorage;
-
-
-
-
-protected $uriRetriever;
-
-
-
-
-private $checkMode = Constraint::CHECK_MODE_NORMAL;
-
-
-
-
-private $typeCheck = array();
-
-
-
-
-protected $errorContext = Validator::ERROR_DOCUMENT_VALIDATION;
-
-
-
-
-protected $constraintMap = array(
-'array' => 'JsonSchema\Constraints\CollectionConstraint',
-'collection' => 'JsonSchema\Constraints\CollectionConstraint',
-'object' => 'JsonSchema\Constraints\ObjectConstraint',
-'type' => 'JsonSchema\Constraints\TypeConstraint',
-'undefined' => 'JsonSchema\Constraints\UndefinedConstraint',
-'string' => 'JsonSchema\Constraints\StringConstraint',
-'number' => 'JsonSchema\Constraints\NumberConstraint',
-'enum' => 'JsonSchema\Constraints\EnumConstraint',
-'format' => 'JsonSchema\Constraints\FormatConstraint',
-'schema' => 'JsonSchema\Constraints\SchemaConstraint',
-'validator' => 'JsonSchema\Validator'
-);
-
-
-
-
-private $instanceCache = array();
-
-
-
-
-
-
-public function __construct(
-SchemaStorageInterface $schemaStorage = null,
-UriRetrieverInterface $uriRetriever = null,
-$checkMode = Constraint::CHECK_MODE_NORMAL
-) {
-
- $this->setConfig($checkMode);
-
-$this->uriRetriever = $uriRetriever ?: new UriRetriever();
-$this->schemaStorage = $schemaStorage ?: new SchemaStorage($this->uriRetriever);
-}
-
-
-
-
-
-
-public function setConfig($checkMode = Constraint::CHECK_MODE_NORMAL)
-{
-$this->checkMode = $checkMode;
-}
-
-
-
-
-
-
-public function addConfig($options)
-{
-$this->checkMode |= $options;
-}
-
-
-
-
-
-
-public function removeConfig($options)
-{
-$this->checkMode &= ~$options;
-}
-
-
-
-
-
-
-
-
-public function getConfig($options = null)
-{
-if ($options === null) {
-return $this->checkMode;
-}
-
-return $this->checkMode & $options;
-}
-
-
-
-
-public function getUriRetriever()
-{
-return $this->uriRetriever;
-}
-
-public function getSchemaStorage()
-{
-return $this->schemaStorage;
-}
-
-public function getTypeCheck()
-{
-if (!isset($this->typeCheck[$this->checkMode])) {
-$this->typeCheck[$this->checkMode] = ($this->checkMode & Constraint::CHECK_MODE_TYPE_CAST)
-? new TypeCheck\LooseTypeCheck()
-: new TypeCheck\StrictTypeCheck();
-}
-
-return $this->typeCheck[$this->checkMode];
-}
-
-
-
-
-
-
-
-public function setConstraintClass($name, $class)
-{
-
- if (!class_exists($class)) {
-throw new InvalidArgumentException('Unknown constraint ' . $name);
-}
-
- if (!in_array('JsonSchema\Constraints\ConstraintInterface', class_implements($class))) {
-throw new InvalidArgumentException('Invalid class ' . $name);
-}
-$this->constraintMap[$name] = $class;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-
-
-public function createInstanceFor($constraintName)
-{
-if (!isset($this->constraintMap[$constraintName])) {
-throw new InvalidArgumentException('Unknown constraint ' . $constraintName);
-}
-
-if (!isset($this->instanceCache[$constraintName])) {
-$this->instanceCache[$constraintName] = new $this->constraintMap[$constraintName]($this);
-}
-
-return clone $this->instanceCache[$constraintName];
-}
-
-
-
-
-
-
-public function getErrorContext()
-{
-return $this->errorContext;
-}
-
-
-
-
-
-
-public function setErrorContext($errorContext)
-{
-$this->errorContext = $errorContext;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Entity\JsonPointer;
-use JsonSchema\Rfc3339;
-
-
-
-
-
-
-
-
-class FormatConstraint extends Constraint
-{
-
-
-
-public function check(&$element, $schema = null, JsonPointer $path = null, $i = null)
-{
-if (!isset($schema->format) || $this->factory->getConfig(self::CHECK_MODE_DISABLE_FORMAT)) {
-return;
-}
-
-switch ($schema->format) {
-case 'date':
-if (!$date = $this->validateDateTime($element, 'Y-m-d')) {
-$this->addError($path, sprintf('Invalid date %s, expected format YYYY-MM-DD', json_encode($element)), 'format', array('format' => $schema->format));
-}
-break;
-
-case 'time':
-if (!$this->validateDateTime($element, 'H:i:s')) {
-$this->addError($path, sprintf('Invalid time %s, expected format hh:mm:ss', json_encode($element)), 'format', array('format' => $schema->format));
-}
-break;
-
-case 'date-time':
-if (null === Rfc3339::createFromString($element)) {
-$this->addError($path, sprintf('Invalid date-time %s, expected format YYYY-MM-DDThh:mm:ssZ or YYYY-MM-DDThh:mm:ss+hh:mm', json_encode($element)), 'format', array('format' => $schema->format));
-}
-break;
-
-case 'utc-millisec':
-if (!$this->validateDateTime($element, 'U')) {
-$this->addError($path, sprintf('Invalid time %s, expected integer of milliseconds since Epoch', json_encode($element)), 'format', array('format' => $schema->format));
-}
-break;
-
-case 'regex':
-if (!$this->validateRegex($element)) {
-$this->addError($path, 'Invalid regex format ' . $element, 'format', array('format' => $schema->format));
-}
-break;
-
-case 'color':
-if (!$this->validateColor($element)) {
-$this->addError($path, 'Invalid color', 'format', array('format' => $schema->format));
-}
-break;
-
-case 'style':
-if (!$this->validateStyle($element)) {
-$this->addError($path, 'Invalid style', 'format', array('format' => $schema->format));
-}
-break;
-
-case 'phone':
-if (!$this->validatePhone($element)) {
-$this->addError($path, 'Invalid phone number', 'format', array('format' => $schema->format));
-}
-break;
-
-case 'uri':
-if (null === filter_var($element, FILTER_VALIDATE_URL, FILTER_NULL_ON_FAILURE)) {
-$this->addError($path, 'Invalid URL format', 'format', array('format' => $schema->format));
-}
-break;
-
-case 'uriref':
-case 'uri-reference':
-if (null === filter_var($element, FILTER_VALIDATE_URL, FILTER_NULL_ON_FAILURE)) {
-
- 
- 
- if (substr($element, 0, 2) === '//') { 
- $validURL = filter_var('scheme:' . $element, FILTER_VALIDATE_URL, FILTER_NULL_ON_FAILURE);
-} elseif (substr($element, 0, 1) === '/') { 
- $validURL = filter_var('scheme://host' . $element, FILTER_VALIDATE_URL, FILTER_NULL_ON_FAILURE);
-} elseif (strlen($element)) { 
- $pathParts = explode('/', $element, 2);
-if (strpos($pathParts[0], ':') !== false) {
-$validURL = null;
-} else {
-$validURL = filter_var('scheme://host/' . $element, FILTER_VALIDATE_URL, FILTER_NULL_ON_FAILURE);
-}
-} else {
-$validURL = null;
-}
-if ($validURL === null) {
-$this->addError($path, 'Invalid URL format', 'format', array('format' => $schema->format));
-}
-}
-break;
-
-case 'email':
-$filterFlags = FILTER_NULL_ON_FAILURE;
-if (defined('FILTER_FLAG_EMAIL_UNICODE')) {
-
- $filterFlags |= constant('FILTER_FLAG_EMAIL_UNICODE'); 
- }
-if (null === filter_var($element, FILTER_VALIDATE_EMAIL, $filterFlags)) {
-$this->addError($path, 'Invalid email', 'format', array('format' => $schema->format));
-}
-break;
-
-case 'ip-address':
-case 'ipv4':
-if (null === filter_var($element, FILTER_VALIDATE_IP, FILTER_NULL_ON_FAILURE | FILTER_FLAG_IPV4)) {
-$this->addError($path, 'Invalid IP address', 'format', array('format' => $schema->format));
-}
-break;
-
-case 'ipv6':
-if (null === filter_var($element, FILTER_VALIDATE_IP, FILTER_NULL_ON_FAILURE | FILTER_FLAG_IPV6)) {
-$this->addError($path, 'Invalid IP address', 'format', array('format' => $schema->format));
-}
-break;
-
-case 'host-name':
-case 'hostname':
-if (!$this->validateHostname($element)) {
-$this->addError($path, 'Invalid hostname', 'format', array('format' => $schema->format));
-}
-break;
-
-default:
-
- 
- 
- 
- 
- 
- break;
-}
-}
-
-protected function validateDateTime($datetime, $format)
-{
-$dt = \DateTime::createFromFormat($format, $datetime);
-
-if (!$dt) {
-return false;
-}
-
-if ($datetime === $dt->format($format)) {
-return true;
-}
-
-
- 
- 
- 
- if ((strpos('u', $format) !== -1) && (preg_match('/\.\d+Z$/', $datetime))) {
-return true;
-}
-
-return false;
-}
-
-protected function validateRegex($regex)
-{
-return false !== @preg_match('/' . $regex . '/u', '');
-}
-
-protected function validateColor($color)
-{
-if (in_array(strtolower($color), array('aqua', 'black', 'blue', 'fuchsia',
-'gray', 'green', 'lime', 'maroon', 'navy', 'olive', 'orange', 'purple',
-'red', 'silver', 'teal', 'white', 'yellow'))) {
-return true;
-}
-
-return preg_match('/^#([a-f0-9]{3}|[a-f0-9]{6})$/i', $color);
-}
-
-protected function validateStyle($style)
-{
-$properties = explode(';', rtrim($style, ';'));
-$invalidEntries = preg_grep('/^\s*[-a-z]+\s*:\s*.+$/i', $properties, PREG_GREP_INVERT);
-
-return empty($invalidEntries);
-}
-
-protected function validatePhone($phone)
-{
-return preg_match('/^\+?(\(\d{3}\)|\d{3}) \d{3} \d{4}$/', $phone);
-}
-
-protected function validateHostname($host)
-{
-$hostnameRegex = '/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/i';
-
-return preg_match($hostnameRegex, $host);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Entity\JsonPointer;
-
-
-
-
-
-
-
-class NumberConstraint extends Constraint
-{
-
-
-
-public function check(&$element, $schema = null, JsonPointer $path = null, $i = null)
-{
-
- if (isset($schema->exclusiveMinimum)) {
-if (isset($schema->minimum)) {
-if ($schema->exclusiveMinimum && $element <= $schema->minimum) {
-$this->addError($path, 'Must have a minimum value of ' . $schema->minimum, 'exclusiveMinimum', array('minimum' => $schema->minimum));
-} elseif ($element < $schema->minimum) {
-$this->addError($path, 'Must have a minimum value of ' . $schema->minimum, 'minimum', array('minimum' => $schema->minimum));
-}
-} else {
-$this->addError($path, 'Use of exclusiveMinimum requires presence of minimum', 'missingMinimum');
-}
-} elseif (isset($schema->minimum) && $element < $schema->minimum) {
-$this->addError($path, 'Must have a minimum value of ' . $schema->minimum, 'minimum', array('minimum' => $schema->minimum));
-}
-
-
- if (isset($schema->exclusiveMaximum)) {
-if (isset($schema->maximum)) {
-if ($schema->exclusiveMaximum && $element >= $schema->maximum) {
-$this->addError($path, 'Must have a maximum value of ' . $schema->maximum, 'exclusiveMaximum', array('maximum' => $schema->maximum));
-} elseif ($element > $schema->maximum) {
-$this->addError($path, 'Must have a maximum value of ' . $schema->maximum, 'maximum', array('maximum' => $schema->maximum));
-}
-} else {
-$this->addError($path, 'Use of exclusiveMaximum requires presence of maximum', 'missingMaximum');
-}
-} elseif (isset($schema->maximum) && $element > $schema->maximum) {
-$this->addError($path, 'Must have a maximum value of ' . $schema->maximum, 'maximum', array('maximum' => $schema->maximum));
-}
-
-
- if (isset($schema->divisibleBy) && $this->fmod($element, $schema->divisibleBy) != 0) {
-$this->addError($path, 'Is not divisible by ' . $schema->divisibleBy, 'divisibleBy', array('divisibleBy' => $schema->divisibleBy));
-}
-
-
- if (isset($schema->multipleOf) && $this->fmod($element, $schema->multipleOf) != 0) {
-$this->addError($path, 'Must be a multiple of ' . $schema->multipleOf, 'multipleOf', array('multipleOf' => $schema->multipleOf));
-}
-
-$this->checkFormat($element, $schema, $path, $i);
-}
-
-private function fmod($number1, $number2)
-{
-$number1 = abs($number1);
-$modulus = fmod($number1, $number2);
-$precision = abs(0.0000000001);
-$diff = (float) ($modulus - $number2);
-
-if (-$precision < $diff && $diff < $precision) {
-return 0.0;
-}
-
-$decimals1 = mb_strpos($number1, '.') ? mb_strlen($number1) - mb_strpos($number1, '.') - 1 : 0;
-$decimals2 = mb_strpos($number2, '.') ? mb_strlen($number2) - mb_strpos($number2, '.') - 1 : 0;
-
-return (float) round($modulus, max($decimals1, $decimals2));
-}
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Entity\JsonPointer;
-
-
-
-
-
-
-
-class ObjectConstraint extends Constraint
-{
-
-
-
-protected $appliedDefaults = array();
-
-
-
-
-public function check(&$element, $schema = null, JsonPointer $path = null, $properties = null,
-$additionalProp = null, $patternProperties = null, $appliedDefaults = array())
-{
-if ($element instanceof UndefinedConstraint) {
-return;
-}
-
-$this->appliedDefaults = $appliedDefaults;
-
-$matches = array();
-if ($patternProperties) {
-
- $matches = $this->validatePatternProperties($element, $path, $patternProperties);
-}
-
-if ($properties) {
-
- $this->validateProperties($element, $properties, $path);
-}
-
-
- $this->validateElement($element, $matches, $schema, $path, $properties, $additionalProp);
-}
-
-public function validatePatternProperties($element, JsonPointer $path = null, $patternProperties)
-{
-$try = array('/', '#', '+', '~', '%');
-$matches = array();
-foreach ($patternProperties as $pregex => $schema) {
-$delimiter = '/';
-
- foreach ($try as $delimiter) {
-if (strpos($pregex, $delimiter) === false) { 
- break;
-}
-}
-
-
- if (@preg_match($delimiter . $pregex . $delimiter . 'u', '') === false) {
-$this->addError($path, 'The pattern "' . $pregex . '" is invalid', 'pregex', array('pregex' => $pregex));
-continue;
-}
-foreach ($element as $i => $value) {
-if (preg_match($delimiter . $pregex . $delimiter . 'u', $i)) {
-$matches[] = $i;
-$this->checkUndefined($value, $schema ?: new \stdClass(), $path, $i, in_array($i, $this->appliedDefaults));
-}
-}
-}
-
-return $matches;
-}
-
-
-
-
-
-
-
-
-
-
-
-public function validateElement($element, $matches, $schema = null, JsonPointer $path = null,
-$properties = null, $additionalProp = null)
-{
-$this->validateMinMaxConstraint($element, $schema, $path);
-
-foreach ($element as $i => $value) {
-$definition = $this->getProperty($properties, $i);
-
-
- if (!in_array($i, $matches) && $additionalProp === false && $this->inlineSchemaProperty !== $i && !$definition) {
-$this->addError($path, 'The property ' . $i . ' is not defined and the definition does not allow additional properties', 'additionalProp');
-}
-
-
- if (!in_array($i, $matches) && $additionalProp && !$definition) {
-if ($additionalProp === true) {
-$this->checkUndefined($value, null, $path, $i, in_array($i, $this->appliedDefaults));
-} else {
-$this->checkUndefined($value, $additionalProp, $path, $i, in_array($i, $this->appliedDefaults));
-}
-}
-
-
- $require = $this->getProperty($definition, 'requires');
-if ($require && !$this->getProperty($element, $require)) {
-$this->addError($path, 'The presence of the property ' . $i . ' requires that ' . $require . ' also be present', 'requires');
-}
-
-$property = $this->getProperty($element, $i, $this->factory->createInstanceFor('undefined'));
-if (is_object($property)) {
-$this->validateMinMaxConstraint(!($property instanceof UndefinedConstraint) ? $property : $element, $definition, $path);
-}
-}
-}
-
-
-
-
-
-
-
-
-public function validateProperties(&$element, $properties = null, JsonPointer $path = null)
-{
-$undefinedConstraint = $this->factory->createInstanceFor('undefined');
-
-foreach ($properties as $i => $value) {
-$property = &$this->getProperty($element, $i, $undefinedConstraint);
-$definition = $this->getProperty($properties, $i);
-
-if (is_object($definition)) {
-
- $this->checkUndefined($property, $definition, $path, $i, in_array($i, $this->appliedDefaults));
-}
-}
-}
-
-
-
-
-
-
-
-
-
-
-protected function &getProperty(&$element, $property, $fallback = null)
-{
-if (is_array($element) && (isset($element[$property]) || array_key_exists($property, $element)) ) {
-return $element[$property];
-} elseif (is_object($element) && property_exists($element, $property)) {
-return $element->$property;
-}
-
-return $fallback;
-}
-
-
-
-
-
-
-
-
-protected function validateMinMaxConstraint($element, $objectDefinition, JsonPointer $path = null)
-{
-
- if (isset($objectDefinition->minProperties) && !is_object($objectDefinition->minProperties)) {
-if ($this->getTypeCheck()->propertyCount($element) < $objectDefinition->minProperties) {
-$this->addError($path, 'Must contain a minimum of ' . $objectDefinition->minProperties . ' properties', 'minProperties', array('minProperties' => $objectDefinition->minProperties));
-}
-}
-
- if (isset($objectDefinition->maxProperties) && !is_object($objectDefinition->maxProperties)) {
-if ($this->getTypeCheck()->propertyCount($element) > $objectDefinition->maxProperties) {
-$this->addError($path, 'Must contain no more than ' . $objectDefinition->maxProperties . ' properties', 'maxProperties', array('maxProperties' => $objectDefinition->maxProperties));
-}
-}
-}
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Entity\JsonPointer;
-use JsonSchema\Exception\InvalidArgumentException;
-use JsonSchema\Exception\InvalidSchemaException;
-use JsonSchema\Exception\RuntimeException;
-use JsonSchema\Validator;
-
-
-
-
-
-
-
-class SchemaConstraint extends Constraint
-{
-const DEFAULT_SCHEMA_SPEC = 'http://json-schema.org/draft-04/schema#';
-
-
-
-
-public function check(&$element, $schema = null, JsonPointer $path = null, $i = null)
-{
-if ($schema !== null) {
-
- $validationSchema = $schema;
-} elseif ($this->getTypeCheck()->propertyExists($element, $this->inlineSchemaProperty)) {
-
- $validationSchema = $this->getTypeCheck()->propertyGet($element, $this->inlineSchemaProperty);
-} else {
-throw new InvalidArgumentException('no schema found to verify against');
-}
-
-
- if (is_array($validationSchema)) {
-$validationSchema = BaseConstraint::arrayToObjectRecursive($validationSchema);
-}
-
-
- 
- if ($this->factory->getConfig(self::CHECK_MODE_VALIDATE_SCHEMA)) {
-if (!$this->getTypeCheck()->isObject($validationSchema)) {
-throw new RuntimeException('Cannot validate the schema of a non-object');
-}
-if ($this->getTypeCheck()->propertyExists($validationSchema, '$schema')) {
-$schemaSpec = $this->getTypeCheck()->propertyGet($validationSchema, '$schema');
-} else {
-$schemaSpec = self::DEFAULT_SCHEMA_SPEC;
-}
-
-
- $schemaStorage = $this->factory->getSchemaStorage();
-if (!$this->getTypeCheck()->isObject($schemaSpec)) {
-$schemaSpec = $schemaStorage->getSchema($schemaSpec);
-}
-
-
- $initialErrorCount = $this->numErrors();
-$initialConfig = $this->factory->getConfig();
-$initialContext = $this->factory->getErrorContext();
-$this->factory->removeConfig(self::CHECK_MODE_VALIDATE_SCHEMA | self::CHECK_MODE_APPLY_DEFAULTS);
-$this->factory->addConfig(self::CHECK_MODE_TYPE_CAST);
-$this->factory->setErrorContext(Validator::ERROR_SCHEMA_VALIDATION);
-
-
- try {
-$this->check($validationSchema, $schemaSpec);
-} catch (\Exception $e) {
-if ($this->factory->getConfig(self::CHECK_MODE_EXCEPTIONS)) {
-throw new InvalidSchemaException('Schema did not pass validation', 0, $e);
-}
-}
-if ($this->numErrors() > $initialErrorCount) {
-$this->addError($path, 'Schema is not valid', 'schema');
-}
-
-
- $this->factory->setConfig($initialConfig);
-$this->factory->setErrorContext($initialContext);
-}
-
-
- $this->checkUndefined($element, $validationSchema, $path, $i);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Entity\JsonPointer;
-
-
-
-
-
-
-
-class StringConstraint extends Constraint
-{
-
-
-
-public function check(&$element, $schema = null, JsonPointer $path = null, $i = null)
-{
-
- if (isset($schema->maxLength) && $this->strlen($element) > $schema->maxLength) {
-$this->addError($path, 'Must be at most ' . $schema->maxLength . ' characters long', 'maxLength', array(
-'maxLength' => $schema->maxLength,
-));
-}
-
-
- if (isset($schema->minLength) && $this->strlen($element) < $schema->minLength) {
-$this->addError($path, 'Must be at least ' . $schema->minLength . ' characters long', 'minLength', array(
-'minLength' => $schema->minLength,
-));
-}
-
-
- if (isset($schema->pattern) && !preg_match('#' . str_replace('#', '\\#', $schema->pattern) . '#u', $element)) {
-$this->addError($path, 'Does not match the regex pattern ' . $schema->pattern, 'pattern', array(
-'pattern' => $schema->pattern,
-));
-}
-
-$this->checkFormat($element, $schema, $path, $i);
-}
-
-private function strlen($string)
-{
-if (extension_loaded('mbstring')) {
-return mb_strlen($string, mb_detect_encoding($string));
-}
-
-
- return strlen($string); 
- }
-}
-<?php
-
-namespace JsonSchema\Constraints\TypeCheck;
-
-class LooseTypeCheck implements TypeCheckInterface
-{
-public static function isObject($value)
-{
-return
-is_object($value) ||
-(is_array($value) && (count($value) == 0 || self::isAssociativeArray($value)));
-}
-
-public static function isArray($value)
-{
-return
-is_array($value) &&
-(count($value) == 0 || !self::isAssociativeArray($value));
-}
-
-public static function propertyGet($value, $property)
-{
-if (is_object($value)) {
-return $value->{$property};
-}
-
-return $value[$property];
-}
-
-public static function propertySet(&$value, $property, $data)
-{
-if (is_object($value)) {
-$value->{$property} = $data;
-} else {
-$value[$property] = $data;
-}
-}
-
-public static function propertyExists($value, $property)
-{
-if (is_object($value)) {
-return property_exists($value, $property);
-}
-
-return array_key_exists($property, $value);
-}
-
-public static function propertyCount($value)
-{
-if (is_object($value)) {
-return count(get_object_vars($value));
-}
-
-return count($value);
-}
-
-
-
-
-
-
-
-
-private static function isAssociativeArray($arr)
-{
-return array_keys($arr) !== range(0, count($arr) - 1);
-}
-}
-<?php
-
-namespace JsonSchema\Constraints\TypeCheck;
-
-class StrictTypeCheck implements TypeCheckInterface
-{
-public static function isObject($value)
-{
-return is_object($value);
-}
-
-public static function isArray($value)
-{
-return is_array($value);
-}
-
-public static function propertyGet($value, $property)
-{
-return $value->{$property};
-}
-
-public static function propertySet(&$value, $property, $data)
-{
-$value->{$property} = $data;
-}
-
-public static function propertyExists($value, $property)
-{
-return property_exists($value, $property);
-}
-
-public static function propertyCount($value)
-{
-return count(get_object_vars($value));
-}
-}
-<?php
-
-namespace JsonSchema\Constraints\TypeCheck;
-
-interface TypeCheckInterface
-{
-public static function isObject($value);
-
-public static function isArray($value);
-
-public static function propertyGet($value, $property);
-
-public static function propertySet(&$value, $property, $data);
-
-public static function propertyExists($value, $property);
-
-public static function propertyCount($value);
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Entity\JsonPointer;
-use JsonSchema\Exception\InvalidArgumentException;
-use UnexpectedValueException as StandardUnexpectedValueException;
-
-
-
-
-
-
-
-class TypeConstraint extends Constraint
-{
-
-
-
-public static $wording = array(
-'integer' => 'an integer',
-'number' => 'a number',
-'boolean' => 'a boolean',
-'object' => 'an object',
-'array' => 'an array',
-'string' => 'a string',
-'null' => 'a null',
-'any' => null, 
- 0 => null, 
- );
-
-
-
-
-public function check(&$value = null, $schema = null, JsonPointer $path = null, $i = null)
-{
-$type = isset($schema->type) ? $schema->type : null;
-$isValid = false;
-$wording = array();
-
-if (is_array($type)) {
-$this->validateTypesArray($value, $type, $wording, $isValid, $path);
-} elseif (is_object($type)) {
-$this->checkUndefined($value, $type, $path);
-
-return;
-} else {
-$isValid = $this->validateType($value, $type);
-}
-
-if ($isValid === false) {
-if (!is_array($type)) {
-$this->validateTypeNameWording($type);
-$wording[] = self::$wording[$type];
-}
-$this->addError($path, ucwords(gettype($value)) . ' value found, but ' .
-$this->implodeWith($wording, ', ', 'or') . ' is required', 'type');
-}
-}
-
-
-
-
-
-
-
-
-
-
-
-
-protected function validateTypesArray(&$value, array $type, &$validTypesWording, &$isValid, $path)
-{
-foreach ($type as $tp) {
-
- 
- if (is_object($tp)) {
-if (!$isValid) {
-$validator = $this->factory->createInstanceFor('type');
-$subSchema = new \stdClass();
-$subSchema->type = $tp;
-$validator->check($value, $subSchema, $path, null);
-$error = $validator->getErrors();
-$isValid = !(bool) $error;
-$validTypesWording[] = self::$wording['object'];
-}
-} else {
-$this->validateTypeNameWording($tp);
-$validTypesWording[] = self::$wording[$tp];
-if (!$isValid) {
-$isValid = $this->validateType($value, $tp);
-}
-}
-}
-}
-
-
-
-
-
-
-
-
-
-
-
-
-protected function implodeWith(array $elements, $delimiter = ', ', $listEnd = false)
-{
-if ($listEnd === false || !isset($elements[1])) {
-return implode($delimiter, $elements);
-}
-$lastElement = array_slice($elements, -1);
-$firsElements = join($delimiter, array_slice($elements, 0, -1));
-$implodedElements = array_merge(array($firsElements), $lastElement);
-
-return join(" $listEnd ", $implodedElements);
-}
-
-
-
-
-
-
-
-
-
-protected function validateTypeNameWording($type)
-{
-if (!isset(self::$wording[$type])) {
-throw new StandardUnexpectedValueException(
-sprintf(
-'No wording for %s available, expected wordings are: [%s]',
-var_export($type, true),
-implode(', ', array_filter(self::$wording)))
-);
-}
-}
-
-
-
-
-
-
-
-
-
-
-
-protected function validateType(&$value, $type)
-{
-
- if (!$type) {
-return true;
-}
-
-if ('any' === $type) {
-return true;
-}
-
-if ('object' === $type) {
-return $this->getTypeCheck()->isObject($value);
-}
-
-if ('array' === $type) {
-return $this->getTypeCheck()->isArray($value);
-}
-
-$coerce = $this->factory->getConfig(Constraint::CHECK_MODE_COERCE_TYPES);
-
-if ('integer' === $type) {
-if ($coerce) {
-$value = $this->toInteger($value);
-}
-
-return is_int($value);
-}
-
-if ('number' === $type) {
-if ($coerce) {
-$value = $this->toNumber($value);
-}
-
-return is_numeric($value) && !is_string($value);
-}
-
-if ('boolean' === $type) {
-if ($coerce) {
-$value = $this->toBoolean($value);
-}
-
-return is_bool($value);
-}
-
-if ('string' === $type) {
-return is_string($value);
-}
-
-if ('email' === $type) {
-return is_string($value);
-}
-
-if ('null' === $type) {
-return is_null($value);
-}
-
-throw new InvalidArgumentException((is_object($value) ? 'object' : $value) . ' is an invalid type for ' . $type);
-}
-
-
-
-
-
-
-
-
-protected function toBoolean($value)
-{
-if ($value === 'true') {
-return true;
-}
-
-if ($value === 'false') {
-return false;
-}
-
-return $value;
-}
-
-
-
-
-
-
-
-
-protected function toNumber($value)
-{
-if (is_numeric($value)) {
-return $value + 0; 
- }
-
-return $value;
-}
-
-protected function toInteger($value)
-{
-if (is_numeric($value) && (int) $value == $value) {
-return (int) $value; 
- }
-
-return $value;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Constraints;
-
-use JsonSchema\Constraints\TypeCheck\LooseTypeCheck;
-use JsonSchema\Entity\JsonPointer;
-use JsonSchema\Exception\ValidationException;
-use JsonSchema\Uri\UriResolver;
-
-
-
-
-
-
-
-class UndefinedConstraint extends Constraint
-{
-
-
-
-protected $appliedDefaults = array();
-
-
-
-
-public function check(&$value, $schema = null, JsonPointer $path = null, $i = null, $fromDefault = false)
-{
-if (is_null($schema) || !is_object($schema)) {
-return;
-}
-
-$path = $this->incrementPath($path ?: new JsonPointer(''), $i);
-if ($fromDefault) {
-$path->setFromDefault();
-}
-
-
- $this->validateCommonProperties($value, $schema, $path, $i);
-
-
- $this->validateOfProperties($value, $schema, $path, '');
-
-
- $this->validateTypes($value, $schema, $path, $i);
-}
-
-
-
-
-
-
-
-
-
-public function validateTypes(&$value, $schema = null, JsonPointer $path, $i = null)
-{
-
- if ($this->getTypeCheck()->isArray($value)) {
-$this->checkArray($value, $schema, $path, $i);
-}
-
-
- if (LooseTypeCheck::isObject($value)) { 
- 
- 
- $this->checkObject(
-$value,
-$schema,
-$path,
-isset($schema->properties) ? $schema->properties : null,
-isset($schema->additionalProperties) ? $schema->additionalProperties : null,
-isset($schema->patternProperties) ? $schema->patternProperties : null,
-$this->appliedDefaults
-);
-}
-
-
- if (is_string($value)) {
-$this->checkString($value, $schema, $path, $i);
-}
-
-
- if (is_numeric($value)) {
-$this->checkNumber($value, $schema, $path, $i);
-}
-
-
- if (isset($schema->enum)) {
-$this->checkEnum($value, $schema, $path, $i);
-}
-}
-
-
-
-
-
-
-
-
-
-protected function validateCommonProperties(&$value, $schema = null, JsonPointer $path, $i = '')
-{
-
- if (isset($schema->extends)) {
-if (is_string($schema->extends)) {
-$schema->extends = $this->validateUri($schema, $schema->extends);
-}
-if (is_array($schema->extends)) {
-foreach ($schema->extends as $extends) {
-$this->checkUndefined($value, $extends, $path, $i);
-}
-} else {
-$this->checkUndefined($value, $schema->extends, $path, $i);
-}
-}
-
-
- if (!$path->fromDefault()) {
-$this->applyDefaultValues($value, $schema, $path);
-}
-
-
- if ($this->getTypeCheck()->isObject($value)) {
-if (!($value instanceof self) && isset($schema->required) && is_array($schema->required)) {
-
- foreach ($schema->required as $required) {
-if (!$this->getTypeCheck()->propertyExists($value, $required)) {
-$this->addError(
-$this->incrementPath($path ?: new JsonPointer(''), $required),
-'The property ' . $required . ' is required',
-'required'
-);
-}
-}
-} elseif (isset($schema->required) && !is_array($schema->required)) {
-
- if ($schema->required && $value instanceof self) {
-$propertyPaths = $path->getPropertyPaths();
-$propertyName = end($propertyPaths);
-$this->addError(
-$path,
-'The property ' . $propertyName . ' is required',
-'required'
-);
-}
-}
-}
-
-
- if (!($value instanceof self)) {
-$this->checkType($value, $schema, $path, $i);
-}
-
-
- if (isset($schema->disallow)) {
-$initErrors = $this->getErrors();
-
-$typeSchema = new \stdClass();
-$typeSchema->type = $schema->disallow;
-$this->checkType($value, $typeSchema, $path);
-
-
- if (count($this->getErrors()) == count($initErrors)) {
-$this->addError($path, 'Disallowed value was matched', 'disallow');
-} else {
-$this->errors = $initErrors;
-}
-}
-
-if (isset($schema->not)) {
-$initErrors = $this->getErrors();
-$this->checkUndefined($value, $schema->not, $path, $i);
-
-
- if (count($this->getErrors()) == count($initErrors)) {
-$this->addError($path, 'Matched a schema which it should not', 'not');
-} else {
-$this->errors = $initErrors;
-}
-}
-
-
- if (isset($schema->dependencies) && $this->getTypeCheck()->isObject($value)) {
-$this->validateDependencies($value, $schema->dependencies, $path);
-}
-}
-
-
-
-
-
-
-
-
-
-
-private function shouldApplyDefaultValue($requiredOnly, $schema, $name = null, $parentSchema = null)
-{
-
- if (!$requiredOnly) {
-return true;
-}
-
- if (
-$name !== null
-&& isset($parentSchema->required)
-&& is_array($parentSchema->required)
-&& in_array($name, $parentSchema->required)
-) {
-return true;
-}
-
- if (isset($schema->required) && !is_array($schema->required) && $schema->required) {
-return true;
-}
-
- return false;
-}
-
-
-
-
-
-
-
-
-protected function applyDefaultValues(&$value, $schema, $path)
-{
-
- if (!$this->factory->getConfig(self::CHECK_MODE_APPLY_DEFAULTS)) {
-return;
-}
-
-
- $requiredOnly = $this->factory->getConfig(self::CHECK_MODE_ONLY_REQUIRED_DEFAULTS);
-if (isset($schema->properties) && LooseTypeCheck::isObject($value)) {
-
- foreach ($schema->properties as $currentProperty => $propertyDefinition) {
-$propertyDefinition = $this->factory->getSchemaStorage()->resolveRefSchema($propertyDefinition);
-if (
-!LooseTypeCheck::propertyExists($value, $currentProperty)
-&& property_exists($propertyDefinition, 'default')
-&& $this->shouldApplyDefaultValue($requiredOnly, $propertyDefinition, $currentProperty, $schema)
-) {
-
- if (is_object($propertyDefinition->default)) {
-LooseTypeCheck::propertySet($value, $currentProperty, clone $propertyDefinition->default);
-} else {
-LooseTypeCheck::propertySet($value, $currentProperty, $propertyDefinition->default);
-}
-$this->appliedDefaults[] = $currentProperty;
-}
-}
-} elseif (isset($schema->items) && LooseTypeCheck::isArray($value)) {
-$items = array();
-if (LooseTypeCheck::isArray($schema->items)) {
-$items = $schema->items;
-} elseif (isset($schema->minItems) && count($value) < $schema->minItems) {
-$items = array_fill(count($value), $schema->minItems - count($value), $schema->items);
-}
-
- foreach ($items as $currentItem => $itemDefinition) {
-$itemDefinition = $this->factory->getSchemaStorage()->resolveRefSchema($itemDefinition);
-if (
-!array_key_exists($currentItem, $value)
-&& property_exists($itemDefinition, 'default')
-&& $this->shouldApplyDefaultValue($requiredOnly, $itemDefinition)) {
-if (is_object($itemDefinition->default)) {
-$value[$currentItem] = clone $itemDefinition->default;
-} else {
-$value[$currentItem] = $itemDefinition->default;
-}
-}
-$path->setFromDefault();
-}
-} elseif (
-$value instanceof self
-&& property_exists($schema, 'default')
-&& $this->shouldApplyDefaultValue($requiredOnly, $schema)) {
-
- $value = is_object($schema->default) ? clone $schema->default : $schema->default;
-$path->setFromDefault();
-}
-}
-
-
-
-
-
-
-
-
-
-protected function validateOfProperties(&$value, $schema, JsonPointer $path, $i = '')
-{
-
- if ($value instanceof self) {
-return;
-}
-
-if (isset($schema->allOf)) {
-$isValid = true;
-foreach ($schema->allOf as $allOf) {
-$initErrors = $this->getErrors();
-$this->checkUndefined($value, $allOf, $path, $i);
-$isValid = $isValid && (count($this->getErrors()) == count($initErrors));
-}
-if (!$isValid) {
-$this->addError($path, 'Failed to match all schemas', 'allOf');
-}
-}
-
-if (isset($schema->anyOf)) {
-$isValid = false;
-$startErrors = $this->getErrors();
-$caughtException = null;
-foreach ($schema->anyOf as $anyOf) {
-$initErrors = $this->getErrors();
-try {
-$this->checkUndefined($value, $anyOf, $path, $i);
-if ($isValid = (count($this->getErrors()) == count($initErrors))) {
-break;
-}
-} catch (ValidationException $e) {
-$isValid = false;
-}
-}
-if (!$isValid) {
-$this->addError($path, 'Failed to match at least one schema', 'anyOf');
-} else {
-$this->errors = $startErrors;
-}
-}
-
-if (isset($schema->oneOf)) {
-$allErrors = array();
-$matchedSchemas = 0;
-$startErrors = $this->getErrors();
-foreach ($schema->oneOf as $oneOf) {
-try {
-$this->errors = array();
-$this->checkUndefined($value, $oneOf, $path, $i);
-if (count($this->getErrors()) == 0) {
-$matchedSchemas++;
-}
-$allErrors = array_merge($allErrors, array_values($this->getErrors()));
-} catch (ValidationException $e) {
-
- 
- }
-}
-if ($matchedSchemas !== 1) {
-$this->addErrors(array_merge($allErrors, $startErrors));
-$this->addError($path, 'Failed to match exactly one schema', 'oneOf');
-} else {
-$this->errors = $startErrors;
-}
-}
-}
-
-
-
-
-
-
-
-
-
-protected function validateDependencies($value, $dependencies, JsonPointer $path, $i = '')
-{
-foreach ($dependencies as $key => $dependency) {
-if ($this->getTypeCheck()->propertyExists($value, $key)) {
-if (is_string($dependency)) {
-
- if (!$this->getTypeCheck()->propertyExists($value, $dependency)) {
-$this->addError($path, "$key depends on $dependency and $dependency is missing", 'dependencies');
-}
-} elseif (is_array($dependency)) {
-
- foreach ($dependency as $d) {
-if (!$this->getTypeCheck()->propertyExists($value, $d)) {
-$this->addError($path, "$key depends on $d and $d is missing", 'dependencies');
-}
-}
-} elseif (is_object($dependency)) {
-
- $this->checkUndefined($value, $dependency, $path, $i);
-}
-}
-}
-}
-
-protected function validateUri($schema, $schemaUri = null)
-{
-$resolver = new UriResolver();
-$retriever = $this->factory->getUriRetriever();
-
-$jsonSchema = null;
-if ($resolver->isValid($schemaUri)) {
-$schemaId = property_exists($schema, 'id') ? $schema->id : null;
-$jsonSchema = $retriever->retrieve($schemaId, $schemaUri);
-}
-
-return $jsonSchema;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Entity;
-
-use JsonSchema\Exception\InvalidArgumentException;
-
-
-
-
-
-
-class JsonPointer
-{
-
-private $filename;
-
-
-private $propertyPaths = array();
-
-
-
-
-private $fromDefault = false;
-
-
-
-
-
-
-public function __construct($value)
-{
-if (!is_string($value)) {
-throw new InvalidArgumentException('Ref value must be a string');
-}
-
-$splitRef = explode('#', $value, 2);
-$this->filename = $splitRef[0];
-if (array_key_exists(1, $splitRef)) {
-$this->propertyPaths = $this->decodePropertyPaths($splitRef[1]);
-}
-}
-
-
-
-
-
-
-private function decodePropertyPaths($propertyPathString)
-{
-$paths = array();
-foreach (explode('/', trim($propertyPathString, '/')) as $path) {
-$path = $this->decodePath($path);
-if (is_string($path) && '' !== $path) {
-$paths[] = $path;
-}
-}
-
-return $paths;
-}
-
-
-
-
-private function encodePropertyPaths()
-{
-return array_map(
-array($this, 'encodePath'),
-$this->getPropertyPaths()
-);
-}
-
-
-
-
-
-
-private function decodePath($path)
-{
-return strtr($path, array('~1' => '/', '~0' => '~', '%25' => '%'));
-}
-
-
-
-
-
-
-private function encodePath($path)
-{
-return strtr($path, array('/' => '~1', '~' => '~0', '%' => '%25'));
-}
-
-
-
-
-public function getFilename()
-{
-return $this->filename;
-}
-
-
-
-
-public function getPropertyPaths()
-{
-return $this->propertyPaths;
-}
-
-
-
-
-
-
-public function withPropertyPaths(array $propertyPaths)
-{
-$new = clone $this;
-$new->propertyPaths = $propertyPaths;
-
-return $new;
-}
-
-
-
-
-public function getPropertyPathAsString()
-{
-return rtrim('#/' . implode('/', $this->encodePropertyPaths()), '/');
-}
-
-
-
-
-public function __toString()
-{
-return $this->getFilename() . $this->getPropertyPathAsString();
-}
-
-
-
-
-public function setFromDefault()
-{
-$this->fromDefault = true;
-}
-
-
-
-
-
-
-public function fromDefault()
-{
-return $this->fromDefault;
-}
-}
-<?php
-
-namespace JsonSchema\Exception;
-
-interface ExceptionInterface
-{
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Exception;
-
-
-
-
-class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
-{
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Exception;
-
-
-
-
-class InvalidConfigException extends RuntimeException
-{
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Exception;
-
-
-
-
-class InvalidSchemaException extends RuntimeException
-{
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Exception;
-
-
-
-
-class InvalidSchemaMediaTypeException extends RuntimeException
-{
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Exception;
-
-
-
-
-class InvalidSourceUriException extends InvalidArgumentException
-{
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Exception;
-
-
-
-
-class JsonDecodingException extends RuntimeException
-{
-public function __construct($code = JSON_ERROR_NONE, \Exception $previous = null)
-{
-switch ($code) {
-case JSON_ERROR_DEPTH:
-$message = 'The maximum stack depth has been exceeded';
-break;
-case JSON_ERROR_STATE_MISMATCH:
-$message = 'Invalid or malformed JSON';
-break;
-case JSON_ERROR_CTRL_CHAR:
-$message = 'Control character error, possibly incorrectly encoded';
-break;
-case JSON_ERROR_UTF8:
-$message = 'Malformed UTF-8 characters, possibly incorrectly encoded';
-break;
-case JSON_ERROR_SYNTAX:
-$message = 'JSON syntax is malformed';
-break;
-default:
-$message = 'Syntax error';
-}
-parent::__construct($message, $code, $previous);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Exception;
-
-
-
-
-class ResourceNotFoundException extends RuntimeException
-{
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Exception;
-
-
-
-
-class RuntimeException extends \RuntimeException implements ExceptionInterface
-{
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Exception;
-
-
-
-
-
-
-class UnresolvableJsonPointerException extends InvalidArgumentException
-{
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Exception;
-
-
-
-
-class UriResolverException extends RuntimeException
-{
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Exception;
-
-class ValidationException extends RuntimeException
-{
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Iterator;
-
-
-
-
-
-
-class ObjectIterator implements \Iterator, \Countable
-{
-
-private $object;
-
-
-private $position = 0;
-
-
-private $data = array();
-
-
-private $initialized = false;
-
-
-
-
-public function __construct($object)
-{
-$this->object = $object;
-}
-
-
-
-
-public function current()
-{
-$this->initialize();
-
-return $this->data[$this->position];
-}
-
-
-
-
-public function next()
-{
-$this->initialize();
-$this->position++;
-}
-
-
-
-
-public function key()
-{
-$this->initialize();
-
-return $this->position;
-}
-
-
-
-
-public function valid()
-{
-$this->initialize();
-
-return isset($this->data[$this->position]);
-}
-
-
-
-
-public function rewind()
-{
-$this->initialize();
-$this->position = 0;
-}
-
-
-
-
-public function count()
-{
-$this->initialize();
-
-return count($this->data);
-}
-
-
-
-
-private function initialize()
-{
-if (!$this->initialized) {
-$this->data = $this->buildDataFromObject($this->object);
-$this->initialized = true;
-}
-}
-
-
-
-
-
-
-private function buildDataFromObject($object)
-{
-$result = array();
-
-$stack = new \SplStack();
-$stack->push($object);
-
-while (!$stack->isEmpty()) {
-$current = $stack->pop();
-if (is_object($current)) {
-array_push($result, $current);
-}
-
-foreach ($this->getDataFromItem($current) as $propertyName => $propertyValue) {
-if (is_object($propertyValue) || is_array($propertyValue)) {
-$stack->push($propertyValue);
-}
-}
-}
-
-return $result;
-}
-
-
-
-
-
-
-private function getDataFromItem($item)
-{
-if (!is_object($item) && !is_array($item)) {
-return array();
-}
-
-return is_object($item) ? get_object_vars($item) : $item;
-}
-}
-<?php
-
-namespace JsonSchema;
-
-class Rfc3339
-{
-const REGEX = '/^(\d{4}-\d{2}-\d{2}[T ]{1}\d{2}:\d{2}:\d{2})(\.\d+)?(Z|([+-]\d{2}):?(\d{2}))$/';
-
-
-
-
-
-
-
-
-public static function createFromString($string)
-{
-if (!preg_match(self::REGEX, strtoupper($string), $matches)) {
-return null;
-}
-
-$dateAndTime = $matches[1];
-$microseconds = $matches[2] ?: '.000000';
-$timeZone = 'Z' !== $matches[3] ? $matches[4] . ':' . $matches[5] : '+00:00';
-$dateFormat = strpos($dateAndTime, 'T') === false ? 'Y-m-d H:i:s.uP' : 'Y-m-d\TH:i:s.uP';
-$dateTime = \DateTime::createFromFormat($dateFormat, $dateAndTime . $microseconds . $timeZone, new \DateTimeZone('UTC'));
-
-return $dateTime ?: null;
-}
-}
-<?php
-
-namespace JsonSchema;
-
-use JsonSchema\Constraints\BaseConstraint;
-use JsonSchema\Entity\JsonPointer;
-use JsonSchema\Exception\UnresolvableJsonPointerException;
-use JsonSchema\Uri\UriResolver;
-use JsonSchema\Uri\UriRetriever;
-
-class SchemaStorage implements SchemaStorageInterface
-{
-const INTERNAL_PROVIDED_SCHEMA_URI = 'internal://provided-schema/';
-
-protected $uriRetriever;
-protected $uriResolver;
-protected $schemas = array();
-
-public function __construct(
-UriRetrieverInterface $uriRetriever = null,
-UriResolverInterface $uriResolver = null
-) {
-$this->uriRetriever = $uriRetriever ?: new UriRetriever();
-$this->uriResolver = $uriResolver ?: new UriResolver();
-}
-
-
-
-
-public function getUriRetriever()
-{
-return $this->uriRetriever;
-}
-
-
-
-
-public function getUriResolver()
-{
-return $this->uriResolver;
-}
-
-
-
-
-public function addSchema($id, $schema = null)
-{
-if (is_null($schema) && $id !== self::INTERNAL_PROVIDED_SCHEMA_URI) {
-
- 
- 
- $schema = $this->uriRetriever->retrieve($id);
-}
-
-
- if (is_array($schema)) {
-$schema = BaseConstraint::arrayToObjectRecursive($schema);
-}
-
-
- 
- if (is_object($schema) && property_exists($schema, 'id')) {
-if ($schema->id == 'http://json-schema.org/draft-04/schema#') {
-$schema->properties->id->format = 'uri-reference';
-} elseif ($schema->id == 'http://json-schema.org/draft-03/schema#') {
-$schema->properties->id->format = 'uri-reference';
-$schema->properties->{'$ref'}->format = 'uri-reference';
-}
-}
-
-
- $this->expandRefs($schema, $id);
-
-$this->schemas[$id] = $schema;
-}
-
-
-
-
-
-
-
-private function expandRefs(&$schema, $base = null)
-{
-if (!is_object($schema)) {
-if (is_array($schema)) {
-foreach ($schema as &$member) {
-$this->expandRefs($member, $base);
-}
-}
-
-return;
-}
-
-if (property_exists($schema, 'id') && is_string($schema->id) && $base != $schema->id) {
-$base = $this->uriResolver->resolve($schema->id, $base);
-}
-
-if (property_exists($schema, '$ref') && is_string($schema->{'$ref'})) {
-$refPointer = new JsonPointer($this->uriResolver->resolve($schema->{'$ref'}, $base));
-$schema->{'$ref'} = (string) $refPointer;
-}
-
-foreach ($schema as &$member) {
-$this->expandRefs($member, $base);
-}
-}
-
-
-
-
-public function getSchema($id)
-{
-if (!array_key_exists($id, $this->schemas)) {
-$this->addSchema($id);
-}
-
-return $this->schemas[$id];
-}
-
-
-
-
-public function resolveRef($ref)
-{
-$jsonPointer = new JsonPointer($ref);
-
-
- $fileName = $jsonPointer->getFilename();
-if (!strlen($fileName)) {
-throw new UnresolvableJsonPointerException(sprintf(
-"Could not resolve fragment '%s': no file is defined",
-$jsonPointer->getPropertyPathAsString()
-));
-}
-
-
- $refSchema = $this->getSchema($fileName);
-foreach ($jsonPointer->getPropertyPaths() as $path) {
-if (is_object($refSchema) && property_exists($refSchema, $path)) {
-$refSchema = $this->resolveRefSchema($refSchema->{$path});
-} elseif (is_array($refSchema) && array_key_exists($path, $refSchema)) {
-$refSchema = $this->resolveRefSchema($refSchema[$path]);
-} else {
-throw new UnresolvableJsonPointerException(sprintf(
-'File: %s is found, but could not resolve fragment: %s',
-$jsonPointer->getFilename(),
-$jsonPointer->getPropertyPathAsString()
-));
-}
-}
-
-return $refSchema;
-}
-
-
-
-
-public function resolveRefSchema($refSchema)
-{
-if (is_object($refSchema) && property_exists($refSchema, '$ref') && is_string($refSchema->{'$ref'})) {
-$newSchema = $this->resolveRef($refSchema->{'$ref'});
-$refSchema = (object) (get_object_vars($refSchema) + get_object_vars($newSchema));
-unset($refSchema->{'$ref'});
-}
-
-return $refSchema;
-}
-}
-<?php
-
-namespace JsonSchema;
-
-interface SchemaStorageInterface
-{
-
-
-
-
-
-
-public function addSchema($id, $schema = null);
-
-
-
-
-
-
-
-
-public function getSchema($id);
-
-
-
-
-
-
-
-
-public function resolveRef($ref);
-
-
-
-
-
-
-
-
-public function resolveRefSchema($refSchema);
-}
-<?php
-
-
-
-
-
-
-namespace JsonSchema\Uri\Retrievers;
-
-
-
-
-
-
-
-abstract class AbstractRetriever implements UriRetrieverInterface
-{
-
-
-
-
-
-protected $contentType;
-
-
-
-
-
-
-public function getContentType()
-{
-return $this->contentType;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Uri\Retrievers;
-
-use JsonSchema\Exception\RuntimeException;
-use JsonSchema\Validator;
-
-
-
-
-
-
-class Curl extends AbstractRetriever
-{
-protected $messageBody;
-
-public function __construct()
-{
-if (!function_exists('curl_init')) {
-
- throw new RuntimeException('cURL not installed'); 
- }
-}
-
-
-
-
-
-
-public function retrieve($uri)
-{
-$ch = curl_init();
-
-curl_setopt($ch, CURLOPT_URL, $uri);
-curl_setopt($ch, CURLOPT_HEADER, true);
-curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
-curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept: ' . Validator::SCHEMA_MEDIA_TYPE));
-
-$response = curl_exec($ch);
-if (false === $response) {
-throw new \JsonSchema\Exception\ResourceNotFoundException('JSON schema not found');
-}
-
-$this->fetchMessageBody($response);
-$this->fetchContentType($response);
-
-curl_close($ch);
-
-return $this->messageBody;
-}
-
-
-
-
-private function fetchMessageBody($response)
-{
-preg_match("/(?:\r\n){2}(.*)$/ms", $response, $match);
-$this->messageBody = $match[1];
-}
-
-
-
-
-
-
-protected function fetchContentType($response)
-{
-if (0 < preg_match("/Content-Type:(\V*)/ims", $response, $match)) {
-$this->contentType = trim($match[1]);
-
-return true;
-}
-
-return false;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Uri\Retrievers;
-
-use JsonSchema\Exception\ResourceNotFoundException;
-
-
-
-
-
-
-class FileGetContents extends AbstractRetriever
-{
-protected $messageBody;
-
-
-
-
-
-
-public function retrieve($uri)
-{
-$errorMessage = null;
-set_error_handler(function ($errno, $errstr) use (&$errorMessage) {
-$errorMessage = $errstr;
-});
-$response = file_get_contents($uri);
-restore_error_handler();
-
-if ($errorMessage) {
-throw new ResourceNotFoundException($errorMessage);
-}
-
-if (false === $response) {
-throw new ResourceNotFoundException('JSON schema not found at ' . $uri);
-}
-
-if ($response == ''
-&& substr($uri, 0, 7) == 'file://' && substr($uri, -1) == '/'
-) {
-throw new ResourceNotFoundException('JSON schema not found at ' . $uri);
-}
-
-$this->messageBody = $response;
-if (!empty($http_response_header)) {
-
- 
- $this->fetchContentType($http_response_header); 
- } else { 
- 
- $this->contentType = null;
-}
-
-return $this->messageBody;
-}
-
-
-
-
-
-
-private function fetchContentType(array $headers)
-{
-foreach ($headers as $header) {
-if ($this->contentType = self::getContentTypeMatchInHeader($header)) {
-return true;
-}
-}
-
-return false;
-}
-
-
-
-
-
-
-protected static function getContentTypeMatchInHeader($header)
-{
-if (0 < preg_match("/Content-Type:(\V*)/ims", $header, $match)) {
-return trim($match[1]);
-}
-
-return null;
-}
-}
-<?php
-
-namespace JsonSchema\Uri\Retrievers;
-
-use JsonSchema\Validator;
-
-
-
-
-
-
-
-
-
-
-
-
-
-class PredefinedArray extends AbstractRetriever
-{
-
-
-
-
-
-private $schemas;
-
-
-
-
-
-
-
-public function __construct(array $schemas, $contentType = Validator::SCHEMA_MEDIA_TYPE)
-{
-$this->schemas = $schemas;
-$this->contentType = $contentType;
-}
-
-
-
-
-
-
-public function retrieve($uri)
-{
-if (!array_key_exists($uri, $this->schemas)) {
-throw new \JsonSchema\Exception\ResourceNotFoundException(sprintf(
-'The JSON schema "%s" was not found.',
-$uri
-));
-}
-
-return $this->schemas[$uri];
-}
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Uri\Retrievers;
-
-
-
-
-
-
-interface UriRetrieverInterface
-{
-
-
-
-
-
-
-
-
-
-public function retrieve($uri);
-
-
-
-
-
-
-public function getContentType();
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Uri;
-
-use JsonSchema\Exception\UriResolverException;
-use JsonSchema\UriResolverInterface;
-
-
-
-
-
-
-class UriResolver implements UriResolverInterface
-{
-
-
-
-
-
-
-
-public function parse($uri)
-{
-preg_match('|^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?|', $uri, $match);
-
-$components = array();
-if (5 < count($match)) {
-$components = array(
-'scheme' => $match[2],
-'authority' => $match[4],
-'path' => $match[5]
-);
-}
-if (7 < count($match)) {
-$components['query'] = $match[7];
-}
-if (9 < count($match)) {
-$components['fragment'] = $match[9];
-}
-
-return $components;
-}
-
-
-
-
-
-
-
-
-public function generate(array $components)
-{
-$uri = $components['scheme'] . '://'
-. $components['authority']
-. $components['path'];
-
-if (array_key_exists('query', $components) && strlen($components['query'])) {
-$uri .= '?' . $components['query'];
-}
-if (array_key_exists('fragment', $components)) {
-$uri .= '#' . $components['fragment'];
-}
-
-return $uri;
-}
-
-
-
-
-public function resolve($uri, $baseUri = null)
-{
-
- if (
-!is_null($baseUri) &&
-!filter_var($baseUri, \FILTER_VALIDATE_URL) &&
-!preg_match('|^[^/]+://|u', $baseUri)
-) {
-if (is_file($baseUri)) {
-$baseUri = 'file://' . realpath($baseUri);
-} elseif (is_dir($baseUri)) {
-$baseUri = 'file://' . realpath($baseUri) . '/';
-} else {
-$baseUri = 'file://' . getcwd() . '/' . $baseUri;
-}
-}
-
-if ($uri == '') {
-return $baseUri;
-}
-
-$components = $this->parse($uri);
-$path = $components['path'];
-
-if (!empty($components['scheme'])) {
-return $uri;
-}
-$baseComponents = $this->parse($baseUri);
-$basePath = $baseComponents['path'];
-
-$baseComponents['path'] = self::combineRelativePathWithBasePath($path, $basePath);
-if (isset($components['fragment'])) {
-$baseComponents['fragment'] = $components['fragment'];
-}
-
-return $this->generate($baseComponents);
-}
-
-
-
-
-
-
-
-
-
-
-
-public static function combineRelativePathWithBasePath($relativePath, $basePath)
-{
-$relativePath = self::normalizePath($relativePath);
-if ($relativePath == '') {
-return $basePath;
-}
-if ($relativePath[0] == '/') {
-return $relativePath;
-}
-
-$basePathSegments = explode('/', $basePath);
-
-preg_match('|^/?(\.\./(?:\./)*)*|', $relativePath, $match);
-$numLevelUp = strlen($match[0]) /3 + 1;
-if ($numLevelUp >= count($basePathSegments)) {
-throw new UriResolverException(sprintf("Unable to resolve URI '%s' from base '%s'", $relativePath, $basePath));
-}
-
-$basePathSegments = array_slice($basePathSegments, 0, -$numLevelUp);
-$path = preg_replace('|^/?(\.\./(\./)*)*|', '', $relativePath);
-
-return implode('/', $basePathSegments) . '/' . $path;
-}
-
-
-
-
-
-
-
-
-private static function normalizePath($path)
-{
-$path = preg_replace('|((?<!\.)\./)*|', '', $path);
-$path = preg_replace('|//|', '/', $path);
-
-return $path;
-}
-
-
-
-
-
-
-public function isValid($uri)
-{
-$components = $this->parse($uri);
-
-return !empty($components);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema\Uri;
-
-use JsonSchema\Exception\InvalidSchemaMediaTypeException;
-use JsonSchema\Exception\JsonDecodingException;
-use JsonSchema\Exception\ResourceNotFoundException;
-use JsonSchema\Uri\Retrievers\FileGetContents;
-use JsonSchema\Uri\Retrievers\UriRetrieverInterface;
-use JsonSchema\UriRetrieverInterface as BaseUriRetrieverInterface;
-use JsonSchema\Validator;
-
-
-
-
-
-
-class UriRetriever implements BaseUriRetrieverInterface
-{
-
-
-
-protected $translationMap = array(
-
- '|^https?://json-schema.org/draft-(0[34])/schema#?|' => 'package://dist/schema/json-schema-draft-$1.json'
-);
-
-
-
-
-protected $uriRetriever = null;
-
-
-
-
-
-
-private $schemaCache = array();
-
-
-
-
-
-
-
-
-
-public function confirmMediaType($uriRetriever, $uri)
-{
-$contentType = $uriRetriever->getContentType();
-
-if (is_null($contentType)) {
-
- return;
-}
-
-if (in_array($contentType, array(Validator::SCHEMA_MEDIA_TYPE, 'application/json'))) {
-return;
-}
-
-if (substr($uri, 0, 23) == 'http://json-schema.org/') {
-
- return true;
-}
-
-throw new InvalidSchemaMediaTypeException(sprintf('Media type %s expected', Validator::SCHEMA_MEDIA_TYPE));
-}
-
-
-
-
-
-
-
-
-
-public function getUriRetriever()
-{
-if (is_null($this->uriRetriever)) {
-$this->setUriRetriever(new FileGetContents());
-}
-
-return $this->uriRetriever;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function resolvePointer($jsonSchema, $uri)
-{
-$resolver = new UriResolver();
-$parsed = $resolver->parse($uri);
-if (empty($parsed['fragment'])) {
-return $jsonSchema;
-}
-
-$path = explode('/', $parsed['fragment']);
-while ($path) {
-$pathElement = array_shift($path);
-if (!empty($pathElement)) {
-$pathElement = str_replace('~1', '/', $pathElement);
-$pathElement = str_replace('~0', '~', $pathElement);
-if (!empty($jsonSchema->$pathElement)) {
-$jsonSchema = $jsonSchema->$pathElement;
-} else {
-throw new ResourceNotFoundException(
-'Fragment "' . $parsed['fragment'] . '" not found'
-. ' in ' . $uri
-);
-}
-
-if (!is_object($jsonSchema)) {
-throw new ResourceNotFoundException(
-'Fragment part "' . $pathElement . '" is no object '
-. ' in ' . $uri
-);
-}
-}
-}
-
-return $jsonSchema;
-}
-
-
-
-
-public function retrieve($uri, $baseUri = null, $translate = true)
-{
-$resolver = new UriResolver();
-$resolvedUri = $fetchUri = $resolver->resolve($uri, $baseUri);
-
-
- $arParts = $resolver->parse($resolvedUri);
-if (isset($arParts['fragment'])) {
-unset($arParts['fragment']);
-$fetchUri = $resolver->generate($arParts);
-}
-
-
- if ($translate) {
-$fetchUri = $this->translate($fetchUri);
-}
-
-$jsonSchema = $this->loadSchema($fetchUri);
-
-
- $jsonSchema = $this->resolvePointer($jsonSchema, $resolvedUri);
-
-if ($jsonSchema instanceof \stdClass) {
-$jsonSchema->id = $resolvedUri;
-}
-
-return $jsonSchema;
-}
-
-
-
-
-
-
-
-
-
-protected function loadSchema($fetchUri)
-{
-if (isset($this->schemaCache[$fetchUri])) {
-return $this->schemaCache[$fetchUri];
-}
-
-$uriRetriever = $this->getUriRetriever();
-$contents = $this->uriRetriever->retrieve($fetchUri);
-$this->confirmMediaType($uriRetriever, $fetchUri);
-$jsonSchema = json_decode($contents);
-
-if (JSON_ERROR_NONE < $error = json_last_error()) {
-throw new JsonDecodingException($error);
-}
-
-$this->schemaCache[$fetchUri] = $jsonSchema;
-
-return $jsonSchema;
-}
-
-
-
-
-
-
-
-
-public function setUriRetriever(UriRetrieverInterface $uriRetriever)
-{
-$this->uriRetriever = $uriRetriever;
-
-return $this;
-}
-
-
-
-
-
-
-
-
-public function parse($uri)
-{
-preg_match('|^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?|', $uri, $match);
-
-$components = array();
-if (5 < count($match)) {
-$components = array(
-'scheme' => $match[2],
-'authority' => $match[4],
-'path' => $match[5]
-);
-}
-
-if (7 < count($match)) {
-$components['query'] = $match[7];
-}
-
-if (9 < count($match)) {
-$components['fragment'] = $match[9];
-}
-
-return $components;
-}
-
-
-
-
-
-
-
-
-public function generate(array $components)
-{
-$uri = $components['scheme'] . '://'
-. $components['authority']
-. $components['path'];
-
-if (array_key_exists('query', $components)) {
-$uri .= $components['query'];
-}
-
-if (array_key_exists('fragment', $components)) {
-$uri .= $components['fragment'];
-}
-
-return $uri;
-}
-
-
-
-
-
-
-
-
-
-public function resolve($uri, $baseUri = null)
-{
-$components = $this->parse($uri);
-$path = $components['path'];
-
-if ((array_key_exists('scheme', $components)) && ('http' === $components['scheme'])) {
-return $uri;
-}
-
-$baseComponents = $this->parse($baseUri);
-$basePath = $baseComponents['path'];
-
-$baseComponents['path'] = UriResolver::combineRelativePathWithBasePath($path, $basePath);
-
-return $this->generate($baseComponents);
-}
-
-
-
-
-
-
-public function isValid($uri)
-{
-$components = $this->parse($uri);
-
-return !empty($components);
-}
-
-
-
-
-public function setTranslation($from, $to)
-{
-$this->translationMap[$from] = $to;
-}
-
-
-
-
-public function translate($uri)
-{
-foreach ($this->translationMap as $from => $to) {
-$uri = preg_replace($from, $to, $uri);
-}
-
-
- $uri = preg_replace('|^package://|', sprintf('file://%s/', realpath(__DIR__ . '/../../..')), $uri);
-
-return $uri;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema;
-
-
-
-
-interface UriResolverInterface
-{
-
-
-
-
-
-
-
-
-public function resolve($uri, $baseUri = null);
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema;
-
-
-
-
-interface UriRetrieverInterface
-{
-
-
-
-
-
-
-
-
-public function retrieve($uri, $baseUri = null);
-}
-<?php
-
-
-
-
-
-
-
-
-namespace JsonSchema;
-
-use JsonSchema\Constraints\BaseConstraint;
-use JsonSchema\Constraints\Constraint;
-
-
-
-
-
-
-
-
-
-class Validator extends BaseConstraint
-{
-const SCHEMA_MEDIA_TYPE = 'application/schema+json';
-
-const ERROR_NONE = 0x00000000;
-const ERROR_ALL = 0xFFFFFFFF;
-const ERROR_DOCUMENT_VALIDATION = 0x00000001;
-const ERROR_SCHEMA_VALIDATION = 0x00000002;
-
-
-
-
-
-
-
-
-
-
-public function validate(&$value, $schema = null, $checkMode = null)
-{
-
- if (is_array($schema)) {
-$schema = self::arrayToObjectRecursive($schema);
-}
-
-
- $initialCheckMode = $this->factory->getConfig();
-if ($checkMode !== null) {
-$this->factory->setConfig($checkMode);
-}
-
-
- if (is_object($schema) && property_exists($schema, 'id')) {
-$schemaURI = $schema->id;
-} else {
-$schemaURI = SchemaStorage::INTERNAL_PROVIDED_SCHEMA_URI;
-}
-$this->factory->getSchemaStorage()->addSchema($schemaURI, $schema);
-
-$validator = $this->factory->createInstanceFor('schema');
-$validator->check(
-$value,
-$this->factory->getSchemaStorage()->getSchema($schemaURI)
-);
-
-$this->factory->setConfig($initialCheckMode);
-
-$this->addErrors(array_unique($validator->getErrors(), SORT_REGULAR));
-
-return $validator->getErrorMask();
-}
-
-
-
-
-public function check($value, $schema)
-{
-return $this->validate($value, $schema);
-}
-
-
-
-
-public function coerce(&$value, $schema)
-{
-return $this->validate($value, $schema, Constraint::CHECK_MODE_COERCE_TYPES);
-}
-}
-Copyright (C) 2015 Composer
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Spdx;
-
-class SpdxLicenses
-{
-
-const LICENSES_FILE = 'spdx-licenses.json';
-
-
-const EXCEPTIONS_FILE = 'spdx-exceptions.json';
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-private $licenses;
-
-
-
-
-private $licensesExpression;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-private $exceptions;
-
-
-
-
-private $exceptionsExpression;
-
-public function __construct()
-{
-$this->loadLicenses();
-$this->loadExceptions();
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function getLicenseByIdentifier($identifier)
-{
-$key = strtolower($identifier);
-
-if (!isset($this->licenses[$key])) {
-return;
-}
-
-list($identifier, $name, $isOsiApproved, $isDeprecatedLicenseId) = $this->licenses[$key];
-
-return array(
-$name,
-$isOsiApproved,
-'https://spdx.org/licenses/' . $identifier . '.html#licenseText',
-$isDeprecatedLicenseId,
-);
-}
-
-
-
-
-
-
-public function getLicenses()
-{
-return $this->licenses;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-public function getExceptionByIdentifier($identifier)
-{
-$key = strtolower($identifier);
-
-if (!isset($this->exceptions[$key])) {
-return;
-}
-
-list($identifier, $name) = $this->exceptions[$key];
-
-return array(
-$name,
-'https://spdx.org/licenses/' . $identifier . '.html#licenseExceptionText',
-);
-}
-
-
-
-
-
-
-
-
-public function getIdentifierByName($name)
-{
-foreach ($this->licenses as $licenseData) {
-if ($licenseData[1] === $name) {
-return $licenseData[0];
-}
-}
-
-foreach ($this->exceptions as $licenseData) {
-if ($licenseData[1] === $name) {
-return $licenseData[0];
-}
-}
-}
-
-
-
-
-
-
-
-
-public function isOsiApprovedByIdentifier($identifier)
-{
-return $this->licenses[strtolower($identifier)][2];
-}
-
-
-
-
-
-
-
-
-public function isDeprecatedByIdentifier($identifier)
-{
-return $this->licenses[strtolower($identifier)][3];
-}
-
-
-
-
-
-
-
-
-public function validate($license)
-{
-if (is_array($license)) {
-$count = count($license);
-if ($count !== count(array_filter($license, 'is_string'))) {
-throw new \InvalidArgumentException('Array of strings expected.');
-}
-$license = $count > 1 ? '(' . implode(' OR ', $license) . ')' : (string) reset($license);
-}
-
-if (!is_string($license)) {
-throw new \InvalidArgumentException(sprintf(
-'Array or String expected, %s given.',
-gettype($license)
-));
-}
-
-return $this->isValidLicenseString($license);
-}
-
-
-
-
-public static function getResourcesDir()
-{
-return dirname(__DIR__) . '/res';
-}
-
-private function loadLicenses()
-{
-if (null !== $this->licenses) {
-return;
-}
-
-$json = file_get_contents(self::getResourcesDir() . '/' . self::LICENSES_FILE);
-$this->licenses = array();
-
-foreach (json_decode($json, true) as $identifier => $license) {
-$this->licenses[strtolower($identifier)] = array($identifier, $license[0], $license[1], $license[2]);
-}
-}
-
-private function loadExceptions()
-{
-if (null !== $this->exceptions) {
-return;
-}
-
-$json = file_get_contents(self::getResourcesDir() . '/' . self::EXCEPTIONS_FILE);
-$this->exceptions = array();
-
-foreach (json_decode($json, true) as $identifier => $exception) {
-$this->exceptions[strtolower($identifier)] = array($identifier, $exception[0]);
-}
-}
-
-
-
-
-private function getLicensesExpression()
-{
-if (null === $this->licensesExpression) {
-$licenses = array_map('preg_quote', array_keys($this->licenses));
-rsort($licenses);
-$licenses = implode('|', $licenses);
-$this->licensesExpression = $licenses;
-}
-
-return $this->licensesExpression;
-}
-
-
-
-
-private function getExceptionsExpression()
-{
-if (null === $this->exceptionsExpression) {
-$exceptions = array_map('preg_quote', array_keys($this->exceptions));
-rsort($exceptions);
-$exceptions = implode('|', $exceptions);
-$this->exceptionsExpression = $exceptions;
-}
-
-return $this->exceptionsExpression;
-}
-
-
-
-
-
-
-
-
-private function isValidLicenseString($license)
-{
-if (isset($this->licenses[strtolower($license)])) {
-return true;
-}
-
-$licenses = $this->getLicensesExpression();
-$exceptions = $this->getExceptionsExpression();
-
-$regex = <<<REGEX
-{
-(?(DEFINE)
-    # idstring: 1*( ALPHA / DIGIT / - / . )
-    (?<idstring>[\pL\pN.-]{1,})
-
-    # license-id: taken from list
-    (?<licenseid>${licenses})
-
-    # license-exception-id: taken from list
-    (?<licenseexceptionid>${exceptions})
-
-    # license-ref: [DocumentRef-1*(idstring):]LicenseRef-1*(idstring)
-    (?<licenseref>(?:DocumentRef-(?&idstring):)?LicenseRef-(?&idstring))
-
-    # simple-expresssion: license-id / license-id+ / license-ref
-    (?<simple_expression>(?&licenseid)\+? | (?&licenseid) | (?&licenseref))
-
-    # compound-expression: 1*(
-    #   simple-expression /
-    #   simple-expression WITH license-exception-id /
-    #   compound-expression AND compound-expression /
-    #   compound-expression OR compound-expression
-    # ) / ( compound-expression ) )
-    (?<compound_head>
-        (?&simple_expression) ( \s+ WITH \s+ (?&licenseexceptionid))?
-            | \( \s* (?&compound_expression) \s* \)
-    )
-    (?<compound_expression>
-        (?&compound_head) (?: \s+ (?:AND|OR) \s+ (?&compound_expression))?
-    )
-
-    # license-expression: 1*1(simple-expression / compound-expression)
-    (?<license_expression>(?&compound_expression) | (?&simple_expression))
-) # end of define
-
-^(NONE | NOASSERTION | (?&license_expression))$
-}xi
-REGEX;
-
-$match = preg_match($regex, $license);
-
-if (0 === $match) {
-return false;
-}
-
-if (false === $match) {
-throw new \RuntimeException('Regex failed to compile/run.');
-}
-
-return true;
-}
-}
-Copyright (C) 2015 Composer
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Semver;
-
-use Composer\Semver\Constraint\Constraint;
-
-class Comparator
-{
-
-
-
-
-
-
-
-
-public static function greaterThan($version1, $version2)
-{
-return self::compare($version1, '>', $version2);
-}
-
-
-
-
-
-
-
-
-
-public static function greaterThanOrEqualTo($version1, $version2)
-{
-return self::compare($version1, '>=', $version2);
-}
-
-
-
-
-
-
-
-
-
-public static function lessThan($version1, $version2)
-{
-return self::compare($version1, '<', $version2);
-}
-
-
-
-
-
-
-
-
-
-public static function lessThanOrEqualTo($version1, $version2)
-{
-return self::compare($version1, '<=', $version2);
-}
-
-
-
-
-
-
-
-
-
-public static function equalTo($version1, $version2)
-{
-return self::compare($version1, '==', $version2);
-}
-
-
-
-
-
-
-
-
-
-public static function notEqualTo($version1, $version2)
-{
-return self::compare($version1, '!=', $version2);
-}
-
-
-
-
-
-
-
-
-
-
-public static function compare($version1, $operator, $version2)
-{
-$constraint = new Constraint($operator, $version2);
-
-return $constraint->matches(new Constraint('==', $version1));
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Semver\Constraint;
-
-trigger_error('The ' . __CLASS__ . ' abstract class is deprecated, there is no replacement for it, it will be removed in the next major version.', E_USER_DEPRECATED);
-
-
-
-
-abstract class AbstractConstraint implements ConstraintInterface
-{
-
-protected $prettyString;
-
-
-
-
-
-
-public function matches(ConstraintInterface $provider)
-{
-if ($provider instanceof $this) {
-
- return $this->matchSpecific($provider);
-}
-
-
- return $provider->matches($this);
-}
-
-
-
-
-public function setPrettyString($prettyString)
-{
-$this->prettyString = $prettyString;
-}
-
-
-
-
-public function getPrettyString()
-{
-if ($this->prettyString) {
-return $this->prettyString;
-}
-
-return $this->__toString();
-}
-
-
- 
- 
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Semver\Constraint;
-
-
-
-
-class Constraint implements ConstraintInterface
-{
-
-const OP_EQ = 0;
-const OP_LT = 1;
-const OP_LE = 2;
-const OP_GT = 3;
-const OP_GE = 4;
-const OP_NE = 5;
-
-
-
-
-
-
-private static $transOpStr = array(
-'=' => self::OP_EQ,
-'==' => self::OP_EQ,
-'<' => self::OP_LT,
-'<=' => self::OP_LE,
-'>' => self::OP_GT,
-'>=' => self::OP_GE,
-'<>' => self::OP_NE,
-'!=' => self::OP_NE,
-);
-
-
-
-
-
-
-private static $transOpInt = array(
-self::OP_EQ => '==',
-self::OP_LT => '<',
-self::OP_LE => '<=',
-self::OP_GT => '>',
-self::OP_GE => '>=',
-self::OP_NE => '!=',
-);
-
-
-protected $operator;
-
-
-protected $version;
-
-
-protected $prettyString;
-
-
-
-
-
-
-public function matches(ConstraintInterface $provider)
-{
-if ($provider instanceof $this) {
-return $this->matchSpecific($provider);
-}
-
-
- return $provider->matches($this);
-}
-
-
-
-
-public function setPrettyString($prettyString)
-{
-$this->prettyString = $prettyString;
-}
-
-
-
-
-public function getPrettyString()
-{
-if ($this->prettyString) {
-return $this->prettyString;
-}
-
-return $this->__toString();
-}
-
-
-
-
-
-
-public static function getSupportedOperators()
-{
-return array_keys(self::$transOpStr);
-}
-
-
-
-
-
-
-
-
-
-public function __construct($operator, $version)
-{
-if (!isset(self::$transOpStr[$operator])) {
-throw new \InvalidArgumentException(sprintf(
-'Invalid operator "%s" given, expected one of: %s',
-$operator,
-implode(', ', self::getSupportedOperators())
-));
-}
-
-$this->operator = self::$transOpStr[$operator];
-$this->version = $version;
-}
-
-
-
-
-
-
-
-
-
-
-
-public function versionCompare($a, $b, $operator, $compareBranches = false)
-{
-if (!isset(self::$transOpStr[$operator])) {
-throw new \InvalidArgumentException(sprintf(
-'Invalid operator "%s" given, expected one of: %s',
-$operator,
-implode(', ', self::getSupportedOperators())
-));
-}
-
-$aIsBranch = 'dev-' === substr($a, 0, 4);
-$bIsBranch = 'dev-' === substr($b, 0, 4);
-
-if ($aIsBranch && $bIsBranch) {
-return $operator === '==' && $a === $b;
-}
-
-
- if (!$compareBranches && ($aIsBranch || $bIsBranch)) {
-return false;
-}
-
-return version_compare($a, $b, $operator);
-}
-
-
-
-
-
-
-
-public function matchSpecific(Constraint $provider, $compareBranches = false)
-{
-$noEqualOp = str_replace('=', '', self::$transOpInt[$this->operator]);
-$providerNoEqualOp = str_replace('=', '', self::$transOpInt[$provider->operator]);
-
-$isEqualOp = self::OP_EQ === $this->operator;
-$isNonEqualOp = self::OP_NE === $this->operator;
-$isProviderEqualOp = self::OP_EQ === $provider->operator;
-$isProviderNonEqualOp = self::OP_NE === $provider->operator;
-
-
- 
- if ($isNonEqualOp || $isProviderNonEqualOp) {
-return !$isEqualOp && !$isProviderEqualOp
-|| $this->versionCompare($provider->version, $this->version, '!=', $compareBranches);
-}
-
-
- 
- if ($this->operator !== self::OP_EQ && $noEqualOp === $providerNoEqualOp) {
-return true;
-}
-
-if ($this->versionCompare($provider->version, $this->version, self::$transOpInt[$this->operator], $compareBranches)) {
-
- 
- if ($provider->version === $this->version
-&& self::$transOpInt[$provider->operator] === $providerNoEqualOp
-&& self::$transOpInt[$this->operator] !== $noEqualOp) {
-return false;
-}
-
-return true;
-}
-
-return false;
-}
-
-
-
-
-public function __toString()
-{
-return self::$transOpInt[$this->operator] . ' ' . $this->version;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Semver\Constraint;
-
-interface ConstraintInterface
-{
-
-
-
-
-
-public function matches(ConstraintInterface $provider);
-
-
-
-
-public function getPrettyString();
-
-
-
-
-public function __toString();
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Semver\Constraint;
-
-
-
-
-class EmptyConstraint implements ConstraintInterface
-{
-
-protected $prettyString;
-
-
-
-
-
-
-public function matches(ConstraintInterface $provider)
-{
-return true;
-}
-
-
-
-
-public function setPrettyString($prettyString)
-{
-$this->prettyString = $prettyString;
-}
-
-
-
-
-public function getPrettyString()
-{
-if ($this->prettyString) {
-return $this->prettyString;
-}
-
-return $this->__toString();
-}
-
-
-
-
-public function __toString()
-{
-return '[]';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Semver\Constraint;
-
-
-
-
-class MultiConstraint implements ConstraintInterface
-{
-
-protected $constraints;
-
-
-protected $prettyString;
-
-
-protected $conjunctive;
-
-
-
-
-
-public function __construct(array $constraints, $conjunctive = true)
-{
-$this->constraints = $constraints;
-$this->conjunctive = $conjunctive;
-}
-
-
-
-
-public function getConstraints()
-{
-return $this->constraints;
-}
-
-
-
-
-public function isConjunctive()
-{
-return $this->conjunctive;
-}
-
-
-
-
-public function isDisjunctive()
-{
-return !$this->conjunctive;
-}
-
-
-
-
-
-
-public function matches(ConstraintInterface $provider)
-{
-if (false === $this->conjunctive) {
-foreach ($this->constraints as $constraint) {
-if ($constraint->matches($provider)) {
-return true;
-}
-}
-
-return false;
-}
-
-foreach ($this->constraints as $constraint) {
-if (!$constraint->matches($provider)) {
-return false;
-}
-}
-
-return true;
-}
-
-
-
-
-public function setPrettyString($prettyString)
-{
-$this->prettyString = $prettyString;
-}
-
-
-
-
-public function getPrettyString()
-{
-if ($this->prettyString) {
-return $this->prettyString;
-}
-
-return $this->__toString();
-}
-
-
-
-
-public function __toString()
-{
-$constraints = array();
-foreach ($this->constraints as $constraint) {
-$constraints[] = (string) $constraint;
-}
-
-return '[' . implode($this->conjunctive ? ' ' : ' || ', $constraints) . ']';
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Semver;
-
-use Composer\Semver\Constraint\Constraint;
-
-class Semver
-{
-const SORT_ASC = 1;
-const SORT_DESC = -1;
-
-
-private static $versionParser;
-
-
-
-
-
-
-
-
-
-public static function satisfies($version, $constraints)
-{
-if (null === self::$versionParser) {
-self::$versionParser = new VersionParser();
-}
-
-$versionParser = self::$versionParser;
-$provider = new Constraint('==', $versionParser->normalize($version));
-$constraints = $versionParser->parseConstraints($constraints);
-
-return $constraints->matches($provider);
-}
-
-
-
-
-
-
-
-
-
-public static function satisfiedBy(array $versions, $constraints)
-{
-$versions = array_filter($versions, function ($version) use ($constraints) {
-return Semver::satisfies($version, $constraints);
-});
-
-return array_values($versions);
-}
-
-
-
-
-
-
-
-
-public static function sort(array $versions)
-{
-return self::usort($versions, self::SORT_ASC);
-}
-
-
-
-
-
-
-
-
-public static function rsort(array $versions)
-{
-return self::usort($versions, self::SORT_DESC);
-}
-
-
-
-
-
-
-
-private static function usort(array $versions, $direction)
-{
-if (null === self::$versionParser) {
-self::$versionParser = new VersionParser();
-}
-
-$versionParser = self::$versionParser;
-$normalized = array();
-
-
- 
- foreach ($versions as $key => $version) {
-$normalized[] = array($versionParser->normalize($version), $key);
-}
-
-usort($normalized, function (array $left, array $right) use ($direction) {
-if ($left[0] === $right[0]) {
-return 0;
-}
-
-if (Comparator::lessThan($left[0], $right[0])) {
-return -$direction;
-}
-
-return $direction;
-});
-
-
- $sorted = array();
-foreach ($normalized as $item) {
-$sorted[] = $versions[$item[1]];
-}
-
-return $sorted;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Semver;
-
-use Composer\Semver\Constraint\ConstraintInterface;
-use Composer\Semver\Constraint\EmptyConstraint;
-use Composer\Semver\Constraint\MultiConstraint;
-use Composer\Semver\Constraint\Constraint;
-
-
-
-
-
-
-class VersionParser
-{
-
-
-
-
-
-
-
-
-
-
-
-
-
-private static $modifierRegex = '[._-]?(?:(stable|beta|b|RC|alpha|a|patch|pl|p)((?:[.-]?\d+)*+)?)?([.-]?dev)?';
-
-
-private static $stabilities = array('stable', 'RC', 'beta', 'alpha', 'dev');
-
-
-
-
-
-
-
-
-public static function parseStability($version)
-{
-$version = preg_replace('{#.+$}i', '', $version);
-
-if ('dev-' === substr($version, 0, 4) || '-dev' === substr($version, -4)) {
-return 'dev';
-}
-
-preg_match('{' . self::$modifierRegex . '(?:\+.*)?$}i', strtolower($version), $match);
-if (!empty($match[3])) {
-return 'dev';
-}
-
-if (!empty($match[1])) {
-if ('beta' === $match[1] || 'b' === $match[1]) {
-return 'beta';
-}
-if ('alpha' === $match[1] || 'a' === $match[1]) {
-return 'alpha';
-}
-if ('rc' === $match[1]) {
-return 'RC';
-}
-}
-
-return 'stable';
-}
-
-
-
-
-
-
-public static function normalizeStability($stability)
-{
-$stability = strtolower($stability);
-
-return $stability === 'rc' ? 'RC' : $stability;
-}
-
-
-
-
-
-
-
-
-
-
-
-public function normalize($version, $fullVersion = null)
-{
-$version = trim($version);
-if (null === $fullVersion) {
-$fullVersion = $version;
-}
-
-
- if (preg_match('{^([^,\s]++) ++as ++([^,\s]++)$}', $version, $match)) {
-$version = $match[1];
-}
-
-
- if (preg_match('{^(?:dev-)?(?:master|trunk|default)$}i', $version)) {
-return '9999999-dev';
-}
-
-
- if ('dev-' === strtolower(substr($version, 0, 4))) {
-return 'dev-' . substr($version, 4);
-}
-
-
- if (preg_match('{^([^,\s+]++)\+[^\s]++$}', $version, $match)) {
-$version = $match[1];
-}
-
-
- if (preg_match('{^v?(\d{1,5})(\.\d++)?(\.\d++)?(\.\d++)?' . self::$modifierRegex . '$}i', $version, $matches)) {
-$version = $matches[1]
-. (!empty($matches[2]) ? $matches[2] : '.0')
-. (!empty($matches[3]) ? $matches[3] : '.0')
-. (!empty($matches[4]) ? $matches[4] : '.0');
-$index = 5;
-
- } elseif (preg_match('{^v?(\d{4}(?:[.:-]?\d{2}){1,6}(?:[.:-]?\d{1,3})?)' . self::$modifierRegex . '$}i', $version, $matches)) {
-$version = preg_replace('{\D}', '.', $matches[1]);
-$index = 2;
-}
-
-
- if (isset($index)) {
-if (!empty($matches[$index])) {
-if ('stable' === $matches[$index]) {
-return $version;
-}
-$version .= '-' . $this->expandStability($matches[$index]) . (!empty($matches[$index + 1]) ? ltrim($matches[$index + 1], '.-') : '');
-}
-
-if (!empty($matches[$index + 2])) {
-$version .= '-dev';
-}
-
-return $version;
-}
-
-
- if (preg_match('{(.*?)[.-]?dev$}i', $version, $match)) {
-try {
-return $this->normalizeBranch($match[1]);
-} catch (\Exception $e) {
-}
-}
-
-$extraMessage = '';
-if (preg_match('{ +as +' . preg_quote($version) . '$}', $fullVersion)) {
-$extraMessage = ' in "' . $fullVersion . '", the alias must be an exact version';
-} elseif (preg_match('{^' . preg_quote($version) . ' +as +}', $fullVersion)) {
-$extraMessage = ' in "' . $fullVersion . '", the alias source must be an exact version, if it is a branch name you should prefix it with dev-';
-}
-
-throw new \UnexpectedValueException('Invalid version string "' . $version . '"' . $extraMessage);
-}
-
-
-
-
-
-
-
-
-public function parseNumericAliasPrefix($branch)
-{
-if (preg_match('{^(?P<version>(\d++\\.)*\d++)(?:\.x)?-dev$}i', $branch, $matches)) {
-return $matches['version'] . '.';
-}
-
-return false;
-}
-
-
-
-
-
-
-
-
-public function normalizeBranch($name)
-{
-$name = trim($name);
-
-if (in_array($name, array('master', 'trunk', 'default'))) {
-return $this->normalize($name);
-}
-
-if (preg_match('{^v?(\d++)(\.(?:\d++|[xX*]))?(\.(?:\d++|[xX*]))?(\.(?:\d++|[xX*]))?$}i', $name, $matches)) {
-$version = '';
-for ($i = 1; $i < 5; ++$i) {
-$version .= isset($matches[$i]) ? str_replace(array('*', 'X'), 'x', $matches[$i]) : '.x';
-}
-
-return str_replace('x', '9999999', $version) . '-dev';
-}
-
-return 'dev-' . $name;
-}
-
-
-
-
-
-
-
-
-public function parseConstraints($constraints)
-{
-$prettyConstraint = $constraints;
-
-if (preg_match('{^([^,\s]*?)@(' . implode('|', self::$stabilities) . ')$}i', $constraints, $match)) {
-$constraints = empty($match[1]) ? '*' : $match[1];
-}
-
-if (preg_match('{^(dev-[^,\s@]+?|[^,\s@]+?\.x-dev)#.+$}i', $constraints, $match)) {
-$constraints = $match[1];
-}
-
-$orConstraints = preg_split('{\s*\|\|?\s*}', trim($constraints));
-$orGroups = array();
-foreach ($orConstraints as $constraints) {
-$andConstraints = preg_split('{(?<!^|as|[=>< ,]) *(?<!-)[, ](?!-) *(?!,|as|$)}', $constraints);
-if (count($andConstraints) > 1) {
-$constraintObjects = array();
-foreach ($andConstraints as $constraint) {
-foreach ($this->parseConstraint($constraint) as $parsedConstraint) {
-$constraintObjects[] = $parsedConstraint;
-}
-}
-} else {
-$constraintObjects = $this->parseConstraint($andConstraints[0]);
-}
-
-if (1 === count($constraintObjects)) {
-$constraint = $constraintObjects[0];
-} else {
-$constraint = new MultiConstraint($constraintObjects);
-}
-
-$orGroups[] = $constraint;
-}
-
-if (1 === count($orGroups)) {
-$constraint = $orGroups[0];
-} elseif (2 === count($orGroups)
-
- 
- && $orGroups[0] instanceof MultiConstraint
-&& $orGroups[1] instanceof MultiConstraint
-&& 2 === count($orGroups[0]->getConstraints())
-&& 2 === count($orGroups[1]->getConstraints())
-&& ($a = (string) $orGroups[0])
-&& substr($a, 0, 3) === '[>=' && (false !== ($posA = strpos($a, '<', 4)))
-&& ($b = (string) $orGroups[1])
-&& substr($b, 0, 3) === '[>=' && (false !== ($posB = strpos($b, '<', 4)))
-&& substr($a, $posA + 2, -1) === substr($b, 4, $posB - 5)
-) {
-$constraint = new MultiConstraint(array(
-new Constraint('>=', substr($a, 4, $posA - 5)),
-new Constraint('<', substr($b, $posB + 2, -1)),
-));
-} else {
-$constraint = new MultiConstraint($orGroups, false);
-}
-
-$constraint->setPrettyString($prettyConstraint);
-
-return $constraint;
-}
-
-
-
-
-
-
-
-
-private function parseConstraint($constraint)
-{
-if (preg_match('{^([^,\s]+?)@(' . implode('|', self::$stabilities) . ')$}i', $constraint, $match)) {
-$constraint = $match[1];
-if ($match[2] !== 'stable') {
-$stabilityModifier = $match[2];
-}
-}
-
-if (preg_match('{^v?[xX*](\.[xX*])*$}i', $constraint)) {
-return array(new EmptyConstraint());
-}
-
-$versionRegex = 'v?(\d++)(?:\.(\d++))?(?:\.(\d++))?(?:\.(\d++))?' . self::$modifierRegex . '(?:\+[^\s]+)?';
-
-
- 
- 
- 
- 
- if (preg_match('{^~>?' . $versionRegex . '$}i', $constraint, $matches)) {
-if (substr($constraint, 0, 2) === '~>') {
-throw new \UnexpectedValueException(
-'Could not parse version constraint ' . $constraint . ': ' .
-'Invalid operator "~>", you probably meant to use the "~" operator'
-);
-}
-
-
- if (isset($matches[4]) && '' !== $matches[4]) {
-$position = 4;
-} elseif (isset($matches[3]) && '' !== $matches[3]) {
-$position = 3;
-} elseif (isset($matches[2]) && '' !== $matches[2]) {
-$position = 2;
-} else {
-$position = 1;
-}
-
-
- $stabilitySuffix = '';
-if (!empty($matches[5])) {
-$stabilitySuffix .= '-' . $this->expandStability($matches[5]) . (!empty($matches[6]) ? $matches[6] : '');
-}
-
-if (!empty($matches[7])) {
-$stabilitySuffix .= '-dev';
-}
-
-if (!$stabilitySuffix) {
-$stabilitySuffix = '-dev';
-}
-
-$lowVersion = $this->manipulateVersionString($matches, $position, 0) . $stabilitySuffix;
-$lowerBound = new Constraint('>=', $lowVersion);
-
-
- 
- $highPosition = max(1, $position - 1);
-$highVersion = $this->manipulateVersionString($matches, $highPosition, 1) . '-dev';
-$upperBound = new Constraint('<', $highVersion);
-
-return array(
-$lowerBound,
-$upperBound,
-);
-}
-
-
- 
- 
- 
- 
- if (preg_match('{^\^' . $versionRegex . '($)}i', $constraint, $matches)) {
-
- if ('0' !== $matches[1] || '' === $matches[2]) {
-$position = 1;
-} elseif ('0' !== $matches[2] || '' === $matches[3]) {
-$position = 2;
-} else {
-$position = 3;
-}
-
-
- $stabilitySuffix = '';
-if (empty($matches[5]) && empty($matches[7])) {
-$stabilitySuffix .= '-dev';
-}
-
-$lowVersion = $this->normalize(substr($constraint . $stabilitySuffix, 1));
-$lowerBound = new Constraint('>=', $lowVersion);
-
-
- 
- $highVersion = $this->manipulateVersionString($matches, $position, 1) . '-dev';
-$upperBound = new Constraint('<', $highVersion);
-
-return array(
-$lowerBound,
-$upperBound,
-);
-}
-
-
- 
- 
- 
- if (preg_match('{^v?(\d++)(?:\.(\d++))?(?:\.(\d++))?(?:\.[xX*])++$}', $constraint, $matches)) {
-if (isset($matches[3]) && '' !== $matches[3]) {
-$position = 3;
-} elseif (isset($matches[2]) && '' !== $matches[2]) {
-$position = 2;
-} else {
-$position = 1;
-}
-
-$lowVersion = $this->manipulateVersionString($matches, $position) . '-dev';
-$highVersion = $this->manipulateVersionString($matches, $position, 1) . '-dev';
-
-if ($lowVersion === '0.0.0.0-dev') {
-return array(new Constraint('<', $highVersion));
-}
-
-return array(
-new Constraint('>=', $lowVersion),
-new Constraint('<', $highVersion),
-);
-}
-
-
- 
- 
- 
- 
- 
- if (preg_match('{^(?P<from>' . $versionRegex . ') +- +(?P<to>' . $versionRegex . ')($)}i', $constraint, $matches)) {
-
- $lowStabilitySuffix = '';
-if (empty($matches[6]) && empty($matches[8])) {
-$lowStabilitySuffix = '-dev';
-}
-
-$lowVersion = $this->normalize($matches['from']);
-$lowerBound = new Constraint('>=', $lowVersion . $lowStabilitySuffix);
-
-$empty = function ($x) {
-return ($x === 0 || $x === '0') ? false : empty($x);
-};
-
-if ((!$empty($matches[11]) && !$empty($matches[12])) || !empty($matches[14]) || !empty($matches[16])) {
-$highVersion = $this->normalize($matches['to']);
-$upperBound = new Constraint('<=', $highVersion);
-} else {
-$highMatch = array('', $matches[10], $matches[11], $matches[12], $matches[13]);
-$highVersion = $this->manipulateVersionString($highMatch, $empty($matches[11]) ? 1 : 2, 1) . '-dev';
-$upperBound = new Constraint('<', $highVersion);
-}
-
-return array(
-$lowerBound,
-$upperBound,
-);
-}
-
-
- if (preg_match('{^(<>|!=|>=?|<=?|==?)?\s*(.*)}', $constraint, $matches)) {
-try {
-$version = $this->normalize($matches[2]);
-
-if (!empty($stabilityModifier) && $this->parseStability($version) === 'stable') {
-$version .= '-' . $stabilityModifier;
-} elseif ('<' === $matches[1] || '>=' === $matches[1]) {
-if (!preg_match('/-' . self::$modifierRegex . '$/', strtolower($matches[2]))) {
-if (substr($matches[2], 0, 4) !== 'dev-') {
-$version .= '-dev';
-}
-}
-}
-
-return array(new Constraint($matches[1] ?: '=', $version));
-} catch (\Exception $e) {
-}
-}
-
-$message = 'Could not parse version constraint ' . $constraint;
-if (isset($e)) {
-$message .= ': ' . $e->getMessage();
-}
-
-throw new \UnexpectedValueException($message);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-private function manipulateVersionString($matches, $position, $increment = 0, $pad = '0')
-{
-for ($i = 4; $i > 0; --$i) {
-if ($i > $position) {
-$matches[$i] = $pad;
-} elseif ($i === $position && $increment) {
-$matches[$i] += $increment;
-
- if ($matches[$i] < 0) {
-$matches[$i] = $pad;
---$position;
-
-
- if ($i === 1) {
-return;
-}
-}
-}
-}
-
-return $matches[1] . '.' . $matches[2] . '.' . $matches[3] . '.' . $matches[4];
-}
-
-
-
-
-
-
-
-
-private function expandStability($stability)
-{
-$stability = strtolower($stability);
-
-switch ($stability) {
-case 'a':
-return 'alpha';
-case 'b':
-return 'beta';
-case 'p':
-case 'pl':
-return 'patch';
-case 'rc':
-return 'RC';
-default:
-return $stability;
-}
-}
-}
-Copyright (C) 2016 Composer
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Composer\CaBundle;
-
-use Psr\Log\LoggerInterface;
-use Symfony\Component\Process\PhpProcess;
-
-
-
-
-
-class CaBundle
-{
-private static $caPath;
-private static $caFileValidity = array();
-private static $useOpensslParse;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-public static function getSystemCaRootBundlePath(LoggerInterface $logger = null)
-{
-if (self::$caPath !== null) {
-return self::$caPath;
-}
-
-
- 
- $envCertFile = getenv('SSL_CERT_FILE');
-if ($envCertFile && is_readable($envCertFile) && static::validateCaFile($envCertFile, $logger)) {
-return self::$caPath = $envCertFile;
-}
-
-
- 
- $envCertDir = getenv('SSL_CERT_DIR');
-if ($envCertDir && is_dir($envCertDir) && is_readable($envCertDir)) {
-return self::$caPath = $envCertDir;
-}
-
-$configured = ini_get('openssl.cafile');
-if ($configured && strlen($configured) > 0 && is_readable($configured) && static::validateCaFile($configured, $logger)) {
-return self::$caPath = $configured;
-}
-
-$configured = ini_get('openssl.capath');
-if ($configured && is_dir($configured) && is_readable($configured)) {
-return self::$caPath = $configured;
-}
-
-$caBundlePaths = array(
-'/etc/pki/tls/certs/ca-bundle.crt', 
- '/etc/ssl/certs/ca-certificates.crt', 
- '/etc/ssl/ca-bundle.pem', 
- '/usr/local/share/certs/ca-root-nss.crt', 
- '/usr/ssl/certs/ca-bundle.crt', 
- '/opt/local/share/curl/curl-ca-bundle.crt', 
- '/usr/local/share/curl/curl-ca-bundle.crt', 
- '/usr/share/ssl/certs/ca-bundle.crt', 
- '/etc/ssl/cert.pem', 
- '/usr/local/etc/ssl/cert.pem', 
- '/usr/local/etc/openssl/cert.pem', 
- );
-
-foreach ($caBundlePaths as $caBundle) {
-if (@is_readable($caBundle) && static::validateCaFile($caBundle, $logger)) {
-return self::$caPath = $caBundle;
-}
-}
-
-foreach ($caBundlePaths as $caBundle) {
-$caBundle = dirname($caBundle);
-if (@is_dir($caBundle) && glob($caBundle.'/*')) {
-return self::$caPath = $caBundle;
-}
-}
-
-return self::$caPath = static::getBundledCaBundlePath(); 
- }
-
-
-
-
-
-
-
-
-public static function getBundledCaBundlePath()
-{
-$caBundleFile = __DIR__.'/../res/cacert.pem';
-
-
- 
- if (0 === strpos($caBundleFile, 'phar://')) {
-file_put_contents(
-$tempCaBundleFile = tempnam(sys_get_temp_dir(), 'openssl-ca-bundle-'),
-file_get_contents($caBundleFile)
-);
-
-register_shutdown_function(function() use ($tempCaBundleFile) {
-@unlink($tempCaBundleFile);
-});
-
-$caBundleFile = $tempCaBundleFile;
-}
-
-return $caBundleFile;
-}
-
-
-
-
-
-
-
-
-
-public static function validateCaFile($filename, LoggerInterface $logger = null)
-{
-static $warned = false;
-
-if (isset(self::$caFileValidity[$filename])) {
-return self::$caFileValidity[$filename];
-}
-
-$contents = file_get_contents($filename);
-
-
- 
- if (!static::isOpensslParseSafe()) {
-if (!$warned && $logger) {
-$logger->warning(sprintf(
-'Your version of PHP, %s, is affected by CVE-2013-6420 and cannot safely perform certificate validation, we strongly suggest you upgrade.',
-PHP_VERSION
-));
-$warned = true;
-}
-
-$isValid = !empty($contents);
-} else {
-$isValid = (bool) openssl_x509_parse($contents);
-}
-
-if ($logger) {
-$logger->debug('Checked CA file '.realpath($filename).': '.($isValid ? 'valid' : 'invalid'));
-}
-
-return self::$caFileValidity[$filename] = $isValid;
-}
-
-
-
-
-
-
-
-
-
-public static function isOpensslParseSafe()
-{
-if (null !== self::$useOpensslParse) {
-return self::$useOpensslParse;
-}
-
-if (PHP_VERSION_ID >= 50600) {
-return self::$useOpensslParse = true;
-}
-
-
- 
- 
- 
- if (
-(PHP_VERSION_ID < 50400 && PHP_VERSION_ID >= 50328)
-|| (PHP_VERSION_ID < 50500 && PHP_VERSION_ID >= 50423)
-|| (PHP_VERSION_ID < 50600 && PHP_VERSION_ID >= 50507)
-) {
-
- return self::$useOpensslParse = true;
-}
-
-if (defined('PHP_WINDOWS_VERSION_BUILD')) {
-
- return self::$useOpensslParse = false;
-}
-
-$compareDistroVersionPrefix = function ($prefix, $fixedVersion) {
-$regex = '{^'.preg_quote($prefix).'([0-9]+)$}';
-
-if (preg_match($regex, PHP_VERSION, $m)) {
-return ((int) $m[1]) >= $fixedVersion;
-}
-
-return false;
-};
-
-
- if (
-$compareDistroVersionPrefix('5.3.3-7+squeeze', 18) 
- || $compareDistroVersionPrefix('5.4.4-14+deb7u', 7) 
- || $compareDistroVersionPrefix('5.3.10-1ubuntu3.', 9) 
- ) {
-return self::$useOpensslParse = true;
-}
-
-
- if (!class_exists('Symfony\Component\Process\PhpProcess')) {
-return self::$useOpensslParse = false;
-}
-
-
- 
- 
- 
- 
- 
-
-
- 
- $cert = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVwRENDQTR5Z0F3SUJBZ0lKQUp6dThyNnU2ZUJjTUEwR0NTcUdTSWIzRFFFQkJRVUFNSUhETVFzd0NRWUQKVlFRR0V3SkVSVEVjTUJvR0ExVUVDQXdUVG05eVpISm9aV2x1TFZkbGMzUm1ZV3hsYmpFUU1BNEdBMVVFQnd3SApTOE9Ed3Jac2JqRVVNQklHQTFVRUNnd0xVMlZyZEdsdmJrVnBibk14SHpBZEJnTlZCQXNNRmsxaGJHbGphVzkxCmN5QkRaWEowSUZObFkzUnBiMjR4SVRBZkJnTlZCQU1NR0cxaGJHbGphVzkxY3k1elpXdDBhVzl1WldsdWN5NWsKWlRFcU1DZ0dDU3FHU0liM0RRRUpBUlliYzNSbFptRnVMbVZ6YzJWeVFITmxhM1JwYjI1bGFXNXpMbVJsTUhVWQpaREU1TnpBd01UQXhNREF3TURBd1dnQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBCkFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUEKQUFBQUFBQVhEVEUwTVRFeU9ERXhNemt6TlZvd2djTXhDekFKQmdOVkJBWVRBa1JGTVJ3d0dnWURWUVFJREJOTwpiM0prY21obGFXNHRWMlZ6ZEdaaGJHVnVNUkF3RGdZRFZRUUhEQWRMdzRQQ3RteHVNUlF3RWdZRFZRUUtEQXRUClpXdDBhVzl1UldsdWN6RWZNQjBHQTFVRUN3d1dUV0ZzYVdOcGIzVnpJRU5sY25RZ1UyVmpkR2x2YmpFaE1COEcKQTFVRUF3d1liV0ZzYVdOcGIzVnpMbk5sYTNScGIyNWxhVzV6TG1SbE1Tb3dLQVlKS29aSWh2Y05BUWtCRmh0egpkR1ZtWVc0dVpYTnpaWEpBYzJWcmRHbHZibVZwYm5NdVpHVXdnZ0VpTUEwR0NTcUdTSWIzRFFFQkFRVUFBNElCCkR3QXdnZ0VLQW9JQkFRRERBZjNobDdKWTBYY0ZuaXlFSnBTU0RxbjBPcUJyNlFQNjV1c0pQUnQvOFBhRG9xQnUKd0VZVC9OYSs2ZnNnUGpDMHVLOURaZ1dnMnRIV1dvYW5TYmxBTW96NVBINlorUzRTSFJaN2UyZERJalBqZGhqaAowbUxnMlVNTzV5cDBWNzk3R2dzOWxOdDZKUmZIODFNTjJvYlhXczROdHp0TE11RDZlZ3FwcjhkRGJyMzRhT3M4CnBrZHVpNVVhd1Raa3N5NXBMUEhxNWNNaEZHbTA2djY1Q0xvMFYyUGQ5K0tBb2tQclBjTjVLTEtlYno3bUxwazYKU01lRVhPS1A0aWRFcXh5UTdPN2ZCdUhNZWRzUWh1K3ByWTNzaTNCVXlLZlF0UDVDWm5YMmJwMHdLSHhYMTJEWAoxbmZGSXQ5RGJHdkhUY3lPdU4rblpMUEJtM3ZXeG50eUlJdlZBZ01CQUFHalFqQkFNQWtHQTFVZEV3UUNNQUF3CkVRWUpZSVpJQVliNFFnRUJCQVFEQWdlQU1Bc0dBMVVkRHdRRUF3SUZvREFUQmdOVkhTVUVEREFLQmdnckJnRUYKQlFjREFqQU5CZ2txaGtpRzl3MEJBUVVGQUFPQ0FRRUFHMGZaWVlDVGJkajFYWWMrMVNub2FQUit2SThDOENhRAo4KzBVWWhkbnlVNGdnYTBCQWNEclk5ZTk0ZUVBdTZacXljRjZGakxxWFhkQWJvcHBXb2NyNlQ2R0QxeDMzQ2tsClZBcnpHL0t4UW9oR0QySmVxa2hJTWxEb214SE83a2EzOStPYThpMnZXTFZ5alU4QVp2V01BcnVIYTRFRU55RzcKbFcyQWFnYUZLRkNyOVRuWFRmcmR4R1ZFYnY3S1ZRNmJkaGc1cDVTanBXSDErTXEwM3VSM1pYUEJZZHlWODMxOQpvMGxWajFLRkkyRENML2xpV2lzSlJvb2YrMWNSMzVDdGQwd1lCY3BCNlRac2xNY09QbDc2ZHdLd0pnZUpvMlFnClpzZm1jMnZDMS9xT2xOdU5xLzBUenprVkd2OEVUVDNDZ2FVK1VYZTRYT1Z2a2NjZWJKbjJkZz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K';
-$script = <<<'EOT'
-
-error_reporting(-1);
-$info = openssl_x509_parse(base64_decode('%s'));
-var_dump(PHP_VERSION, $info['issuer']['emailAddress'], $info['validFrom_time_t']);
-
-EOT;
-$script = '<'."?php\n".sprintf($script, $cert);
-
-try {
-$process = new PhpProcess($script);
-$process->mustRun();
-} catch (\Exception $e) {
-
- 
- return self::$useOpensslParse = false;
-}
-
-$output = preg_split('{\r?\n}', trim($process->getOutput()));
-$errorOutput = trim($process->getErrorOutput());
-
-if (
-count($output) === 3
-&& $output[0] === sprintf('string(%d) "%s"', strlen(PHP_VERSION), PHP_VERSION)
-&& $output[1] === 'string(27) "stefan.esser@sektioneins.de"'
-&& $output[2] === 'int(-1)'
-&& preg_match('{openssl_x509_parse\(\): illegal (?:ASN1 data type for|length in) timestamp in - on line \d+}', $errorOutput)
-) {
-
- return self::$useOpensslParse = true;
-}
-
-return self::$useOpensslParse = false;
-}
-
-
-
-
-public static function reset()
-{
-self::$caFileValidity = array();
-self::$caPath = null;
-self::$useOpensslParse = null;
-}
-}
-MIT License
-
-Copyright (c) 2017 Composer
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Composer\XdebugHandler;
-
-
-
-
-class PhpConfig
-{
-
-
-
-
-
-public function useOriginal()
-{
-$this->getDataAndReset();
-return array();
-}
-
-
-
-
-
-
-public function useStandard()
-{
-if ($data = $this->getDataAndReset()) {
-return array('-n', '-c', $data['tmpIni']);
-}
-
-return array();
-}
-
-
-
-
-
-
-public function usePersistent()
-{
-if ($data = $this->getDataAndReset()) {
-Process::setEnv('PHPRC', $data['tmpIni']);
-Process::setEnv('PHP_INI_SCAN_DIR', '');
-}
-
-return array();
-}
-
-
-
-
-
-
-private function getDataAndReset()
-{
-if ($data = XdebugHandler::getRestartSettings()) {
-Process::setEnv('PHPRC', $data['phprc']);
-Process::setEnv('PHP_INI_SCAN_DIR', $data['scanDir']);
-}
-
-return $data;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Composer\XdebugHandler;
-
-
-
-
-
-
-
-
-class Process
-{
-
-
-
-
-
-
-
-
-
-
-public static function addColorOption(array $args, $colorOption)
-{
-if (!$colorOption
-|| in_array($colorOption, $args)
-|| !preg_match('/^--([a-z]+$)|(^--[a-z]+=)/', $colorOption, $matches)) {
-return $args;
-}
-
-if (isset($matches[2])) {
-
- if (false !== ($index = array_search($matches[2].'auto', $args))) {
-$args[$index] = $colorOption;
-return $args;
-} elseif (preg_grep('/^'.$matches[2].'/', $args)) {
-return $args;
-}
-} elseif (in_array('--no-'.$matches[1], $args)) {
-return $args;
-}
-
-if (false !== ($index = array_search('--', $args))) {
-
- array_splice($args, $index, 0, $colorOption);
-} else {
-$args[] = $colorOption;
-}
-
-return $args;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-public static function escape($arg, $meta = true, $module = false)
-{
-if (!defined('PHP_WINDOWS_VERSION_BUILD')) {
-return "'".str_replace("'", "'\\''", $arg)."'";
-}
-
-$quote = strpbrk($arg, " \t") !== false || $arg === '';
-
-$arg = preg_replace('/(\\\\*)"/', '$1$1\\"', $arg, -1, $dquotes);
-
-if ($meta) {
-$meta = $dquotes || preg_match('/%[^%]+%/', $arg);
-
-if (!$meta) {
-$quote = $quote || strpbrk($arg, '^&|<>()') !== false;
-} elseif ($module && !$dquotes && $quote) {
-$meta = false;
-}
-}
-
-if ($quote) {
-$arg = '"'.preg_replace('/(\\\\*)$/', '$1$1', $arg).'"';
-}
-
-if ($meta) {
-$arg = preg_replace('/(["^&|<>()%])/', '^$1', $arg);
-}
-
-return $arg;
-}
-
-
-
-
-
-
-
-
-
-
-
-public static function supportsColor($output)
-{
-if (defined('PHP_WINDOWS_VERSION_BUILD')) {
-return (function_exists('sapi_windows_vt100_support')
-&& sapi_windows_vt100_support($output))
-|| false !== getenv('ANSICON')
-|| 'ON' === getenv('ConEmuANSI')
-|| 'xterm' === getenv('TERM');
-}
-
-if (function_exists('stream_isatty')) {
-return stream_isatty($output);
-} elseif (function_exists('posix_isatty')) {
-return posix_isatty($output);
-}
-
-$stat = fstat($output);
-
- return $stat ? 0020000 === ($stat['mode'] & 0170000) : false;
-}
-
-
-
-
-
-
-
-
-
-public static function setEnv($name, $value = false)
-{
-$unset = false === $value;
-
-if (!putenv($unset ? $name : $name.'='.$value)) {
-return false;
-}
-
-if ($unset) {
-unset($_SERVER[$name]);
-} else {
-$_SERVER[$name] = $value;
-}
-return true;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Composer\XdebugHandler;
-
-use Psr\Log\LoggerInterface;
-use Psr\Log\LogLevel;
-
-
-
-
-
-class Status
-{
-const ENV_RESTART = 'XDEBUG_HANDLER_RESTART';
-const CHECK = 'Check';
-const ERROR = 'Error';
-const INFO = 'Info';
-const NORESTART = 'NoRestart';
-const RESTART = 'Restart';
-const RESTARTING = 'Restarting';
-const RESTARTED = 'Restarted';
-
-private $debug;
-private $envAllowXdebug;
-private $loaded;
-private $logger;
-private $time;
-
-
-
-
-
-
-
-public function __construct($envAllowXdebug, $debug)
-{
-$start = getenv(self::ENV_RESTART);
-Process::setEnv(self::ENV_RESTART);
-$this->time = $start ? round((microtime(true) - $start) * 1000) : 0;
-
-$this->envAllowXdebug = $envAllowXdebug;
-$this->debug = $debug && defined('STDERR');
-}
-
-
-
-
-public function setLogger(LoggerInterface $logger)
-{
-$this->logger = $logger;
-}
-
-
-
-
-
-
-
-public function report($op, $data)
-{
-if ($this->logger || $this->debug) {
-call_user_func(array($this, 'report'.$op), $data);
-}
-}
-
-
-
-
-
-
-
-private function output($text, $level = null)
-{
-if ($this->logger) {
-$this->logger->log($level ?: LogLevel::DEBUG, $text);
-}
-
-if ($this->debug) {
-fwrite(STDERR, sprintf('xdebug-handler[%d] %s', getmypid(), $text.PHP_EOL));
-}
-}
-
-private function reportCheck($loaded)
-{
-$this->loaded = $loaded;
-$this->output('Checking '.$this->envAllowXdebug);
-}
-
-private function reportError($error)
-{
-$this->output(sprintf('No restart (%s)', $error), LogLevel::WARNING);
-}
-
-private function reportInfo($info)
-{
-$this->output($info);
-}
-
-private function reportNoRestart()
-{
-$this->output($this->getLoadedMessage());
-
-if ($this->loaded) {
-$text = sprintf('No restart (%s)', $this->getEnvAllow());
-if (!getenv($this->envAllowXdebug)) {
-$text .= ' Allowed by application';
-}
-$this->output($text);
-}
-}
-
-private function reportRestart()
-{
-$this->output($this->getLoadedMessage());
-Process::setEnv(self::ENV_RESTART, (string) microtime(true));
-}
-
-private function reportRestarted()
-{
-$loaded = $this->getLoadedMessage();
-$text = sprintf('Restarted (%d ms). %s', $this->time, $loaded);
-$level = $this->loaded ? LogLevel::WARNING : null;
-$this->output($text, $level);
-}
-
-private function reportRestarting($command)
-{
-$text = sprintf('Process restarting (%s)', $this->getEnvAllow());
-$this->output($text);
-$text = 'Running '.$command;
-$this->output($text);
-}
-
-
-
-
-
-
-private function getEnvAllow()
-{
-return $this->envAllowXdebug.'='.getenv($this->envAllowXdebug);
-}
-
-
-
-
-
-
-private function getLoadedMessage()
-{
-$loaded = $this->loaded ? sprintf('loaded (%s)', $this->loaded) : 'not loaded';
-return 'The xdebug extension is '.$loaded;
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-namespace Composer\XdebugHandler;
-
-use Psr\Log\LoggerInterface;
-
-
-
-
-class XdebugHandler
-{
-const SUFFIX_ALLOW = '_ALLOW_XDEBUG';
-const SUFFIX_INIS = '_ORIGINAL_INIS';
-const RESTART_ID = 'internal';
-const RESTART_SETTINGS = 'XDEBUG_HANDLER_SETTINGS';
-const DEBUG = 'XDEBUG_HANDLER_DEBUG';
-
-
-protected $tmpIni;
-
-private static $inRestart;
-private static $name;
-private static $skipped;
-
-private $cli;
-private $colorOption;
-private $debug;
-private $envAllowXdebug;
-private $envOriginalInis;
-private $loaded;
-private $persistent;
-private $script;
-
-private $statusWriter;
-
-
-
-
-
-
-
-
-
-
-
-
-public function __construct($envPrefix, $colorOption = '')
-{
-if (!is_string($envPrefix) || empty($envPrefix) || !is_string($colorOption)) {
-throw new \RuntimeException('Invalid constructor parameter');
-}
-
-self::$name = strtoupper($envPrefix);
-$this->envAllowXdebug = self::$name.self::SUFFIX_ALLOW;
-$this->envOriginalInis = self::$name.self::SUFFIX_INIS;
-
-$this->colorOption = $colorOption;
-
-if (extension_loaded('xdebug')) {
-$ext = new \ReflectionExtension('xdebug');
-$this->loaded = $ext->getVersion() ?: 'unknown';
-}
-
-if ($this->cli = PHP_SAPI === 'cli') {
-$this->debug = getenv(self::DEBUG);
-}
-
-$this->statusWriter = new Status($this->envAllowXdebug, (bool) $this->debug);
-}
-
-
-
-
-
-
-
-
-public function setLogger(LoggerInterface $logger)
-{
-$this->statusWriter->setLogger($logger);
-return $this;
-}
-
-
-
-
-
-
-
-
-public function setMainScript($script)
-{
-$this->script = $script;
-return $this;
-}
-
-
-
-
-
-
-public function setPersistent()
-{
-$this->persistent = true;
-return $this;
-}
-
-
-
-
-
-
-
-
-public function check()
-{
-$this->notify(Status::CHECK, $this->loaded);
-$envArgs = explode('|', (string) getenv($this->envAllowXdebug));
-
-if (empty($envArgs[0]) && $this->requiresRestart((bool) $this->loaded)) {
-
- $this->notify(Status::RESTART);
-
-if ($this->prepareRestart()) {
-$command = $this->getCommand();
-$this->notify(Status::RESTARTING, $command);
-$this->restart($command);
-}
-return;
-}
-
-if (self::RESTART_ID === $envArgs[0] && count($envArgs) === 5) {
-
- $this->notify(Status::RESTARTED);
-
-Process::setEnv($this->envAllowXdebug);
-self::$inRestart = true;
-
-if (!$this->loaded) {
-
- self::$skipped = $envArgs[1];
-}
-
-
- $this->setEnvRestartSettings($envArgs);
-return;
-}
-
-$this->notify(Status::NORESTART);
-
-if ($settings = self::getRestartSettings()) {
-
- $this->syncSettings($settings);
-}
-}
-
-
-
-
-
-
-
-
-
-public static function getAllIniFiles()
-{
-if (!empty(self::$name)) {
-$env = getenv(self::$name.self::SUFFIX_INIS);
-
-if (false !== $env) {
-return explode(PATH_SEPARATOR, $env);
-}
-}
-
-$paths = array((string) php_ini_loaded_file());
-
-if ($scanned = php_ini_scanned_files()) {
-$paths = array_merge($paths, array_map('trim', explode(',', $scanned)));
-}
-
-return $paths;
-}
-
-
-
-
-
-
-
-
-
-public static function getRestartSettings()
-{
-$envArgs = explode('|', (string) getenv(self::RESTART_SETTINGS));
-
-if (count($envArgs) !== 6
-|| (!self::$inRestart && php_ini_loaded_file() !== $envArgs[0])) {
-return;
-}
-
-return array(
-'tmpIni' => $envArgs[0],
-'scannedInis' => (bool) $envArgs[1],
-'scanDir' => '*' === $envArgs[2] ? false : $envArgs[2],
-'phprc' => '*' === $envArgs[3] ? false : $envArgs[3],
-'inis' => explode(PATH_SEPARATOR, $envArgs[4]),
-'skipped' => $envArgs[5],
-);
-}
-
-
-
-
-
-
-public static function getSkippedVersion()
-{
-return (string) self::$skipped;
-}
-
-
-
-
-
-
-
-
-protected function requiresRestart($isLoaded)
-{
-return $isLoaded;
-}
-
-
-
-
-
-
-protected function restart($command)
-{
-$this->doRestart($command);
-}
-
-
-
-
-
-
-private function doRestart($command)
-{
-passthru($command, $exitCode);
-$this->notify(Status::INFO, 'Restarted process exited '.$exitCode);
-
-if ($this->debug === '2') {
-$this->notify(Status::INFO, 'Temp ini saved: '.$this->tmpIni);
-} else {
-@unlink($this->tmpIni);
-}
-
-exit($exitCode);
-}
-
-
-
-
-
-
-
-
-
-
-
-private function prepareRestart()
-{
-$error = '';
-$iniFiles = self::getAllIniFiles();
-$scannedInis = count($iniFiles) > 1;
-$tmpDir = sys_get_temp_dir();
-
-if (!$this->cli) {
-$error = 'Unsupported SAPI: '.PHP_SAPI;
-} elseif (!defined('PHP_BINARY')) {
-$error = 'PHP version is too old: '.PHP_VERSION;
-} elseif (false !== strpos(ini_get('disable_functions'), 'passthru')) {
-$error = 'Required function is disabled: passthru';
-} elseif (!$this->checkScanDirConfig()) {
-$error = 'PHP version does not report scanned inis: '.PHP_VERSION;
-} elseif (!$this->checkMainScript()) {
-$error = 'Unable to access main script: '.$this->script;
-} elseif (!$this->writeTmpIni($iniFiles, $tmpDir, $error)) {
-$error = $error ?: 'Unable to create temp ini file at: '.$tmpDir;
-} elseif (!$this->setEnvironment($scannedInis, $iniFiles)) {
-$error = 'Unable to set environment variables';
-}
-
-if ($error) {
-$this->notify(Status::ERROR, $error);
-}
-
-return empty($error);
-}
-
-
-
-
-
-
-
-
-
-
-private function writeTmpIni(array $iniFiles, $tmpDir, &$error)
-{
-if (!$this->tmpIni = @tempnam($tmpDir, '')) {
-return false;
-}
-
-
- if (empty($iniFiles[0])) {
-array_shift($iniFiles);
-}
-
-$content = '';
-$regex = '/^\s*(zend_extension\s*=.*xdebug.*)$/mi';
-
-foreach ($iniFiles as $file) {
-
- if (!$data = @file_get_contents($file)) {
-$error = 'Unable to read ini: '.$file;
-return false;
-}
-$content .= preg_replace($regex, ';$1', $data).PHP_EOL;
-}
-
-
- if ($config = parse_ini_string($content)) {
-$loaded = ini_get_all(null, false);
-$content .= $this->mergeLoadedConfig($loaded, $config);
-}
-
-
- $content .= 'opcache.enable_cli=0'.PHP_EOL;
-
-return @file_put_contents($this->tmpIni, $content);
-}
-
-
-
-
-
-
-private function getCommand()
-{
-$php = array(PHP_BINARY);
-$args = array_slice($_SERVER['argv'], 1);
-
-if (!$this->persistent) {
-
- array_push($php, '-n', '-c', $this->tmpIni);
-}
-
-if (defined('STDOUT') && Process::supportsColor(STDOUT)) {
-$args = Process::addColorOption($args, $this->colorOption);
-}
-
-$args = array_merge($php, array($this->script), $args);
-
-$cmd = Process::escape(array_shift($args), true, true);
-foreach ($args as $arg) {
-$cmd .= ' '.Process::escape($arg);
-}
-
-return $cmd;
-}
-
-
-
-
-
-
-
-
-
-
-
-private function setEnvironment($scannedInis, array $iniFiles)
-{
-$scanDir = getenv('PHP_INI_SCAN_DIR');
-$phprc = getenv('PHPRC');
-
-
- if (!putenv($this->envOriginalInis.'='.implode(PATH_SEPARATOR, $iniFiles))) {
-return false;
-}
-
-if ($this->persistent) {
-
- if (!putenv('PHP_INI_SCAN_DIR=') || !putenv('PHPRC='.$this->tmpIni)) {
-return false;
-}
-}
-
-
- $envArgs = array(
-self::RESTART_ID,
-$this->loaded,
-(int) $scannedInis,
-false === $scanDir ? '*' : $scanDir,
-false === $phprc ? '*' : $phprc,
-);
-
-return putenv($this->envAllowXdebug.'='.implode('|', $envArgs));
-}
-
-
-
-
-
-
-
-private function notify($op, $data = null)
-{
-$this->statusWriter->report($op, $data);
-}
-
-
-
-
-
-
-
-
-
-private function mergeLoadedConfig(array $loadedConfig, array $iniConfig)
-{
-$content = '';
-
-foreach ($loadedConfig as $name => $value) {
-
- if (!is_string($value)
-|| strpos($name, 'xdebug') === 0
-|| $name === 'apc.mmap_file_mask') {
-continue;
-}
-
-if (!isset($iniConfig[$name]) || $iniConfig[$name] !== $value) {
-
- $content .= $name.'="'.addcslashes($value, '\\"').'"'.PHP_EOL;
-}
-}
-
-return $content;
-}
-
-
-
-
-
-
-private function checkMainScript()
-{
-if (null !== $this->script) {
-
- return file_exists($this->script) || '--' === $this->script;
-}
-
-if (file_exists($this->script = $_SERVER['argv'][0])) {
-return true;
-}
-
-
- $options = PHP_VERSION_ID >= 50306 ? DEBUG_BACKTRACE_IGNORE_ARGS : false;
-$trace = debug_backtrace($options);
-
-if (($main = end($trace)) && isset($main['file'])) {
-return file_exists($this->script = $main['file']);
-}
-
-return false;
-}
-
-
-
-
-
-
-private function setEnvRestartSettings($envArgs)
-{
-$settings = array(
-php_ini_loaded_file(),
-$envArgs[2],
-$envArgs[3],
-$envArgs[4],
-getenv($this->envOriginalInis),
-self::$skipped,
-);
-
-Process::setEnv(self::RESTART_SETTINGS, implode('|', $settings));
-}
-
-
-
-
-
-
-private function syncSettings(array $settings)
-{
-if (false === getenv($this->envOriginalInis)) {
-
- Process::setEnv($this->envOriginalInis, implode(PATH_SEPARATOR, $settings['inis']));
-}
-
-self::$skipped = $settings['skipped'];
-$this->notify(Status::INFO, 'Process called with existing restart settings');
-}
-
-
-
-
-
-
-
-
-
-private function checkScanDirConfig()
-{
-return !(getenv('PHP_INI_SCAN_DIR')
-&& !PHP_CONFIG_FILE_SCAN_DIR
-&& (PHP_VERSION_ID < 70113
-|| PHP_VERSION_ID === 70200));
-}
-}
-Copyright (c) 2012 PHP Framework Interoperability Group
-
-Permission is hereby granted, free of charge, to any person obtaining a copy 
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights 
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
-copies of the Software, and to permit persons to whom the Software is 
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in 
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-<?php
-
-namespace Psr\Log;
-
-
-
-
-
-
-
-
-abstract class AbstractLogger implements LoggerInterface
-{
-
-
-
-
-
-
-
-
-public function emergency($message, array $context = array())
-{
-$this->log(LogLevel::EMERGENCY, $message, $context);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function alert($message, array $context = array())
-{
-$this->log(LogLevel::ALERT, $message, $context);
-}
-
-
-
-
-
-
-
-
-
-
-
-public function critical($message, array $context = array())
-{
-$this->log(LogLevel::CRITICAL, $message, $context);
-}
-
-
-
-
-
-
-
-
-
-
-public function error($message, array $context = array())
-{
-$this->log(LogLevel::ERROR, $message, $context);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function warning($message, array $context = array())
-{
-$this->log(LogLevel::WARNING, $message, $context);
-}
-
-
-
-
-
-
-
-
-
-public function notice($message, array $context = array())
-{
-$this->log(LogLevel::NOTICE, $message, $context);
-}
-
-
-
-
-
-
-
-
-
-
-
-public function info($message, array $context = array())
-{
-$this->log(LogLevel::INFO, $message, $context);
-}
-
-
-
-
-
-
-
-
-
-public function debug($message, array $context = array())
-{
-$this->log(LogLevel::DEBUG, $message, $context);
-}
-}
-<?php
-
-namespace Psr\Log;
-
-class InvalidArgumentException extends \InvalidArgumentException
-{
-}
-<?php
-
-namespace Psr\Log;
-
-
-
-
-class LogLevel
-{
-const EMERGENCY = 'emergency';
-const ALERT = 'alert';
-const CRITICAL = 'critical';
-const ERROR = 'error';
-const WARNING = 'warning';
-const NOTICE = 'notice';
-const INFO = 'info';
-const DEBUG = 'debug';
-}
-<?php
-
-namespace Psr\Log;
-
-
-
-
-interface LoggerAwareInterface
-{
-
-
-
-
-
-
-
-public function setLogger(LoggerInterface $logger);
-}
-<?php
-
-namespace Psr\Log;
-
-
-
-
-trait LoggerAwareTrait
-{
-
-
-
-
-
-protected $logger;
-
-
-
-
-
-
-public function setLogger(LoggerInterface $logger)
-{
-$this->logger = $logger;
-}
-}
-<?php
-
-namespace Psr\Log;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-interface LoggerInterface
-{
-
-
-
-
-
-
-
-
-public function emergency($message, array $context = array());
-
-
-
-
-
-
-
-
-
-
-
-
-public function alert($message, array $context = array());
-
-
-
-
-
-
-
-
-
-
-
-public function critical($message, array $context = array());
-
-
-
-
-
-
-
-
-
-
-public function error($message, array $context = array());
-
-
-
-
-
-
-
-
-
-
-
-
-public function warning($message, array $context = array());
-
-
-
-
-
-
-
-
-
-public function notice($message, array $context = array());
-
-
-
-
-
-
-
-
-
-
-
-public function info($message, array $context = array());
-
-
-
-
-
-
-
-
-
-public function debug($message, array $context = array());
-
-
-
-
-
-
-
-
-
-
-public function log($level, $message, array $context = array());
-}
-<?php
-
-namespace Psr\Log;
-
-
-
-
-
-
-
-
-
-trait LoggerTrait
-{
-
-
-
-
-
-
-
-
-public function emergency($message, array $context = array())
-{
-$this->log(LogLevel::EMERGENCY, $message, $context);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function alert($message, array $context = array())
-{
-$this->log(LogLevel::ALERT, $message, $context);
-}
-
-
-
-
-
-
-
-
-
-
-
-public function critical($message, array $context = array())
-{
-$this->log(LogLevel::CRITICAL, $message, $context);
-}
-
-
-
-
-
-
-
-
-
-
-public function error($message, array $context = array())
-{
-$this->log(LogLevel::ERROR, $message, $context);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-public function warning($message, array $context = array())
-{
-$this->log(LogLevel::WARNING, $message, $context);
-}
-
-
-
-
-
-
-
-
-
-public function notice($message, array $context = array())
-{
-$this->log(LogLevel::NOTICE, $message, $context);
-}
-
-
-
-
-
-
-
-
-
-
-
-public function info($message, array $context = array())
-{
-$this->log(LogLevel::INFO, $message, $context);
-}
-
-
-
-
-
-
-
-
-
-public function debug($message, array $context = array())
-{
-$this->log(LogLevel::DEBUG, $message, $context);
-}
-
-
-
-
-
-
-
-
-
-
-abstract public function log($level, $message, array $context = array());
-}
-<?php
-
-namespace Psr\Log;
-
-
-
-
-
-
-
-
-
-class NullLogger extends AbstractLogger
-{
-
-
-
-
-
-
-
-
-
-public function log($level, $message, array $context = array())
-{
-
- }
-}
-<?php
-
-namespace Psr\Log\Test;
-
-use Psr\Log\LoggerInterface;
-use Psr\Log\LogLevel;
-
-
-
-
-
-
-
-abstract class LoggerInterfaceTest extends \PHPUnit_Framework_TestCase
-{
-
-
-
-abstract public function getLogger();
-
-
-
-
-
-
-
-
-
-
-abstract public function getLogs();
-
-public function testImplements()
-{
-$this->assertInstanceOf('Psr\Log\LoggerInterface', $this->getLogger());
-}
-
-
-
-
-public function testLogsAtAllLevels($level, $message)
-{
-$logger = $this->getLogger();
-$logger->{$level}($message, array('user' => 'Bob'));
-$logger->log($level, $message, array('user' => 'Bob'));
-
-$expected = array(
-$level.' message of level '.$level.' with context: Bob',
-$level.' message of level '.$level.' with context: Bob',
-);
-$this->assertEquals($expected, $this->getLogs());
-}
-
-public function provideLevelsAndMessages()
-{
-return array(
-LogLevel::EMERGENCY => array(LogLevel::EMERGENCY, 'message of level emergency with context: {user}'),
-LogLevel::ALERT => array(LogLevel::ALERT, 'message of level alert with context: {user}'),
-LogLevel::CRITICAL => array(LogLevel::CRITICAL, 'message of level critical with context: {user}'),
-LogLevel::ERROR => array(LogLevel::ERROR, 'message of level error with context: {user}'),
-LogLevel::WARNING => array(LogLevel::WARNING, 'message of level warning with context: {user}'),
-LogLevel::NOTICE => array(LogLevel::NOTICE, 'message of level notice with context: {user}'),
-LogLevel::INFO => array(LogLevel::INFO, 'message of level info with context: {user}'),
-LogLevel::DEBUG => array(LogLevel::DEBUG, 'message of level debug with context: {user}'),
-);
-}
-
-
-
-
-public function testThrowsOnInvalidLevel()
-{
-$logger = $this->getLogger();
-$logger->log('invalid level', 'Foo');
-}
-
-public function testContextReplacement()
-{
-$logger = $this->getLogger();
-$logger->info('{Message {nothing} {user} {foo.bar} a}', array('user' => 'Bob', 'foo.bar' => 'Bar'));
-
-$expected = array('info {Message {nothing} Bob Bar a}');
-$this->assertEquals($expected, $this->getLogs());
-}
-
-public function testObjectCastToString()
-{
-if (method_exists($this, 'createPartialMock')) {
-$dummy = $this->createPartialMock('Psr\Log\Test\DummyTest', array('__toString'));
-} else {
-$dummy = $this->getMock('Psr\Log\Test\DummyTest', array('__toString'));
-}
-$dummy->expects($this->once())
-->method('__toString')
-->will($this->returnValue('DUMMY'));
-
-$this->getLogger()->warning($dummy);
-
-$expected = array('warning DUMMY');
-$this->assertEquals($expected, $this->getLogs());
-}
-
-public function testContextCanContainAnything()
-{
-$closed = fopen('php://memory', 'r');
-fclose($closed);
-
-$context = array(
-'bool' => true,
-'null' => null,
-'string' => 'Foo',
-'int' => 0,
-'float' => 0.5,
-'nested' => array('with object' => new DummyTest),
-'object' => new \DateTime,
-'resource' => fopen('php://memory', 'r'),
-'closed' => $closed,
-);
-
-$this->getLogger()->warning('Crazy context data', $context);
-
-$expected = array('warning Crazy context data');
-$this->assertEquals($expected, $this->getLogs());
-}
-
-public function testContextExceptionKeyCanBeExceptionOrOtherValues()
-{
-$logger = $this->getLogger();
-$logger->warning('Random message', array('exception' => 'oops'));
-$logger->critical('Uncaught Exception!', array('exception' => new \LogicException('Fail')));
-
-$expected = array(
-'warning Random message',
-'critical Uncaught Exception!'
-);
-$this->assertEquals($expected, $this->getLogs());
-}
-}
-
-class DummyTest
-{
-public function __toString()
-{
-}
-}
-<?php
-
-namespace Psr\Log\Test;
-
-use Psr\Log\AbstractLogger;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-class TestLogger extends AbstractLogger
-{
-
-
-
-public $records = [];
-
-public $recordsByLevel = [];
-
-
-
-
-public function log($level, $message, array $context = [])
-{
-$record = [
-'level' => $level,
-'message' => $message,
-'context' => $context,
-];
-
-$this->recordsByLevel[$record['level']][] = $record;
-$this->records[] = $record;
-}
-
-public function hasRecords($level)
-{
-return isset($this->recordsByLevel[$level]);
-}
-
-public function hasRecord($record, $level)
-{
-if (is_string($record)) {
-$record = ['message' => $record];
-}
-return $this->hasRecordThatPasses(function ($rec) use ($record) {
-if ($rec['message'] !== $record['message']) {
-return false;
-}
-if (isset($record['context']) && $rec['context'] !== $record['context']) {
-return false;
-}
-return true;
-}, $level);
-}
-
-public function hasRecordThatContains($message, $level)
-{
-return $this->hasRecordThatPasses(function ($rec) use ($message) {
-return strpos($rec['message'], $message) !== false;
-}, $level);
-}
-
-public function hasRecordThatMatches($regex, $level)
-{
-return $this->hasRecordThatPasses(function ($rec) use ($regex) {
-return preg_match($regex, $rec['message']) > 0;
-}, $level);
-}
-
-public function hasRecordThatPasses(callable $predicate, $level)
-{
-if (!isset($this->recordsByLevel[$level])) {
-return false;
-}
-foreach ($this->recordsByLevel[$level] as $i => $rec) {
-if (call_user_func($predicate, $rec, $i)) {
-return true;
-}
-}
-return false;
-}
-
-public function __call($method, $args)
-{
-if (preg_match('/(.*)(Debug|Info|Notice|Warning|Error|Critical|Alert|Emergency)(.*)/', $method, $matches) > 0) {
-$genericMethod = $matches[1] . ('Records' !== $matches[3] ? 'Record' : '') . $matches[3];
-$level = strtolower($matches[2]);
-if (method_exists($this, $genericMethod)) {
-$args[] = $level;
-return call_user_func_array([$this, $genericMethod], $args);
-}
-}
-throw new \BadMethodCallException('Call to undefined method ' . get_class($this) . '::' . $method . '()');
-}
-
-public function reset()
-{
-$this->records = [];
-}
-}
-<?php
-
-
-
-require_once __DIR__ . '/composer/autoload_real.php';
-
-return ComposerAutoloaderInitComposerPhar1543829476::getLoader();
-<?php
-
-
-
-$vendorDir = dirname(dirname(__FILE__));
-$baseDir = dirname($vendorDir);
-
-return array(
-);
-<?php
-
-
-
-$vendorDir = dirname(dirname(__FILE__));
-$baseDir = dirname($vendorDir);
-
-return array(
-'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'),
-'Symfony\\Polyfill\\Ctype\\' => array($vendorDir . '/symfony/polyfill-ctype'),
-'Symfony\\Component\\Process\\' => array($vendorDir . '/symfony/process'),
-'Symfony\\Component\\Finder\\' => array($vendorDir . '/symfony/finder'),
-'Symfony\\Component\\Filesystem\\' => array($vendorDir . '/symfony/filesystem'),
-'Symfony\\Component\\Debug\\' => array($vendorDir . '/symfony/debug'),
-'Symfony\\Component\\Console\\' => array($vendorDir . '/symfony/console'),
-'Seld\\PharUtils\\' => array($vendorDir . '/seld/phar-utils/src'),
-'Seld\\JsonLint\\' => array($vendorDir . '/seld/jsonlint/src/Seld/JsonLint'),
-'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'),
-'JsonSchema\\' => array($vendorDir . '/justinrainbow/json-schema/src/JsonSchema'),
-'Composer\\XdebugHandler\\' => array($vendorDir . '/composer/xdebug-handler/src'),
-'Composer\\Spdx\\' => array($vendorDir . '/composer/spdx-licenses/src'),
-'Composer\\Semver\\' => array($vendorDir . '/composer/semver/src'),
-'Composer\\CaBundle\\' => array($vendorDir . '/composer/ca-bundle/src'),
-'Composer\\' => array($baseDir . '/src/Composer'),
-);
-<?php
-
-
-
-$vendorDir = dirname(dirname(__FILE__));
-$baseDir = dirname($vendorDir);
-
-return array(
-);
-<?php
-
-
-
-$vendorDir = dirname(dirname(__FILE__));
-$baseDir = dirname($vendorDir);
-
-return array(
-'320cde22f66dd4f5d3fd621d3e88b98f' => $vendorDir . '/symfony/polyfill-ctype/bootstrap.php',
-'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php',
-);
-<?php
-
-
-
-class ComposerAutoloaderInitComposerPhar1543829476
-{
-private static $loader;
-
-public static function loadClassLoader($class)
-{
-if ('Composer\Autoload\ClassLoader' === $class) {
-require __DIR__ . '/ClassLoader.php';
-}
-}
-
-public static function getLoader()
-{
-if (null !== self::$loader) {
-return self::$loader;
-}
-
-spl_autoload_register(array('ComposerAutoloaderInitComposerPhar1543829476', 'loadClassLoader'), true, true);
-self::$loader = $loader = new \Composer\Autoload\ClassLoader();
-spl_autoload_unregister(array('ComposerAutoloaderInitComposerPhar1543829476', 'loadClassLoader'));
-
-$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
-if ($useStaticLoader) {
-require_once __DIR__ . '/autoload_static.php';
-
-call_user_func(\Composer\Autoload\ComposerStaticInitComposerPhar1543829476::getInitializer($loader));
-} else {
-$map = require __DIR__ . '/autoload_namespaces.php';
-foreach ($map as $namespace => $path) {
-$loader->set($namespace, $path);
-}
-
-$map = require __DIR__ . '/autoload_psr4.php';
-foreach ($map as $namespace => $path) {
-$loader->setPsr4($namespace, $path);
-}
-
-$classMap = require __DIR__ . '/autoload_classmap.php';
-if ($classMap) {
-$loader->addClassMap($classMap);
-}
-}
-
-$loader->register(true);
-
-if ($useStaticLoader) {
-$includeFiles = Composer\Autoload\ComposerStaticInitComposerPhar1543829476::$files;
-} else {
-$includeFiles = require __DIR__ . '/autoload_files.php';
-}
-foreach ($includeFiles as $fileIdentifier => $file) {
-composerRequireComposerPhar1543829476($fileIdentifier, $file);
-}
-
-return $loader;
-}
-}
-
-function composerRequireComposerPhar1543829476($fileIdentifier, $file)
-{
-if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
-require $file;
-
-$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
-}
-}
-<?php
-
-
-
-namespace Composer\Autoload;
-
-class ComposerStaticInitComposerPhar1543829476
-{
-public static $files = array (
-'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
-'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
-);
-
-public static $prefixLengthsPsr4 = array (
-'S' => 
-array (
-'Symfony\\Polyfill\\Mbstring\\' => 26,
-'Symfony\\Polyfill\\Ctype\\' => 23,
-'Symfony\\Component\\Process\\' => 26,
-'Symfony\\Component\\Finder\\' => 25,
-'Symfony\\Component\\Filesystem\\' => 29,
-'Symfony\\Component\\Debug\\' => 24,
-'Symfony\\Component\\Console\\' => 26,
-'Seld\\PharUtils\\' => 15,
-'Seld\\JsonLint\\' => 14,
-),
-'P' => 
-array (
-'Psr\\Log\\' => 8,
-),
-'J' => 
-array (
-'JsonSchema\\' => 11,
-),
-'C' => 
-array (
-'Composer\\XdebugHandler\\' => 23,
-'Composer\\Spdx\\' => 14,
-'Composer\\Semver\\' => 16,
-'Composer\\CaBundle\\' => 18,
-'Composer\\' => 9,
-),
-);
-
-public static $prefixDirsPsr4 = array (
-'Symfony\\Polyfill\\Mbstring\\' => 
-array (
-0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring',
-),
-'Symfony\\Polyfill\\Ctype\\' => 
-array (
-0 => __DIR__ . '/..' . '/symfony/polyfill-ctype',
-),
-'Symfony\\Component\\Process\\' => 
-array (
-0 => __DIR__ . '/..' . '/symfony/process',
-),
-'Symfony\\Component\\Finder\\' => 
-array (
-0 => __DIR__ . '/..' . '/symfony/finder',
-),
-'Symfony\\Component\\Filesystem\\' => 
-array (
-0 => __DIR__ . '/..' . '/symfony/filesystem',
-),
-'Symfony\\Component\\Debug\\' => 
-array (
-0 => __DIR__ . '/..' . '/symfony/debug',
-),
-'Symfony\\Component\\Console\\' => 
-array (
-0 => __DIR__ . '/..' . '/symfony/console',
-),
-'Seld\\PharUtils\\' => 
-array (
-0 => __DIR__ . '/..' . '/seld/phar-utils/src',
-),
-'Seld\\JsonLint\\' => 
-array (
-0 => __DIR__ . '/..' . '/seld/jsonlint/src/Seld/JsonLint',
-),
-'Psr\\Log\\' => 
-array (
-0 => __DIR__ . '/..' . '/psr/log/Psr/Log',
-),
-'JsonSchema\\' => 
-array (
-0 => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema',
-),
-'Composer\\XdebugHandler\\' => 
-array (
-0 => __DIR__ . '/..' . '/composer/xdebug-handler/src',
-),
-'Composer\\Spdx\\' => 
-array (
-0 => __DIR__ . '/..' . '/composer/spdx-licenses/src',
-),
-'Composer\\Semver\\' => 
-array (
-0 => __DIR__ . '/..' . '/composer/semver/src',
-),
-'Composer\\CaBundle\\' => 
-array (
-0 => __DIR__ . '/..' . '/composer/ca-bundle/src',
-),
-'Composer\\' => 
-array (
-0 => __DIR__ . '/../..' . '/src/Composer',
-),
-);
-
-public static function getInitializer(ClassLoader $loader)
-{
-return \Closure::bind(function () use ($loader) {
-$loader->prefixLengthsPsr4 = ComposerStaticInitComposerPhar1543829476::$prefixLengthsPsr4;
-$loader->prefixDirsPsr4 = ComposerStaticInitComposerPhar1543829476::$prefixDirsPsr4;
-
-}, null, ClassLoader::class);
-}
-}
-<?php
-
-
-
-
-
-
-
-
-
-
-
-namespace Composer\Autoload;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-class ClassLoader
-{
-
- private $prefixLengthsPsr4 = array();
-private $prefixDirsPsr4 = array();
-private $fallbackDirsPsr4 = array();
-
-
- private $prefixesPsr0 = array();
-private $fallbackDirsPsr0 = array();
-
-private $useIncludePath = false;
-private $classMap = array();
-private $classMapAuthoritative = false;
-private $missingClasses = array();
-private $apcuPrefix;
-
-public function getPrefixes()
-{
-if (!empty($this->prefixesPsr0)) {
-return call_user_func_array('array_merge', $this->prefixesPsr0);
-}
-
-return array();
-}
-
-public function getPrefixesPsr4()
-{
-return $this->prefixDirsPsr4;
-}
-
-public function getFallbackDirs()
-{
-return $this->fallbackDirsPsr0;
-}
-
-public function getFallbackDirsPsr4()
-{
-return $this->fallbackDirsPsr4;
-}
-
-public function getClassMap()
-{
-return $this->classMap;
-}
-
-
-
-
-public function addClassMap(array $classMap)
-{
-if ($this->classMap) {
-$this->classMap = array_merge($this->classMap, $classMap);
-} else {
-$this->classMap = $classMap;
-}
-}
-
-
-
-
-
-
-
-
-
-public function add($prefix, $paths, $prepend = false)
-{
-if (!$prefix) {
-if ($prepend) {
-$this->fallbackDirsPsr0 = array_merge(
-(array) $paths,
-$this->fallbackDirsPsr0
-);
-} else {
-$this->fallbackDirsPsr0 = array_merge(
-$this->fallbackDirsPsr0,
-(array) $paths
-);
-}
-
-return;
-}
-
-$first = $prefix[0];
-if (!isset($this->prefixesPsr0[$first][$prefix])) {
-$this->prefixesPsr0[$first][$prefix] = (array) $paths;
-
-return;
-}
-if ($prepend) {
-$this->prefixesPsr0[$first][$prefix] = array_merge(
-(array) $paths,
-$this->prefixesPsr0[$first][$prefix]
-);
-} else {
-$this->prefixesPsr0[$first][$prefix] = array_merge(
-$this->prefixesPsr0[$first][$prefix],
-(array) $paths
-);
-}
-}
-
-
-
-
-
-
-
-
-
-
-
-public function addPsr4($prefix, $paths, $prepend = false)
-{
-if (!$prefix) {
-
- if ($prepend) {
-$this->fallbackDirsPsr4 = array_merge(
-(array) $paths,
-$this->fallbackDirsPsr4
-);
-} else {
-$this->fallbackDirsPsr4 = array_merge(
-$this->fallbackDirsPsr4,
-(array) $paths
-);
-}
-} elseif (!isset($this->prefixDirsPsr4[$prefix])) {
-
- $length = strlen($prefix);
-if ('\\' !== $prefix[$length - 1]) {
-throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
-}
-$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
-$this->prefixDirsPsr4[$prefix] = (array) $paths;
-} elseif ($prepend) {
-
- $this->prefixDirsPsr4[$prefix] = array_merge(
-(array) $paths,
-$this->prefixDirsPsr4[$prefix]
-);
-} else {
-
- $this->prefixDirsPsr4[$prefix] = array_merge(
-$this->prefixDirsPsr4[$prefix],
-(array) $paths
-);
-}
-}
-
-
-
-
-
-
-
-
-public function set($prefix, $paths)
-{
-if (!$prefix) {
-$this->fallbackDirsPsr0 = (array) $paths;
-} else {
-$this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
-}
-}
-
-
-
-
-
-
-
-
-
-
-public function setPsr4($prefix, $paths)
-{
-if (!$prefix) {
-$this->fallbackDirsPsr4 = (array) $paths;
-} else {
-$length = strlen($prefix);
-if ('\\' !== $prefix[$length - 1]) {
-throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
-}
-$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
-$this->prefixDirsPsr4[$prefix] = (array) $paths;
-}
-}
-
-
-
-
-
-
-public function setUseIncludePath($useIncludePath)
-{
-$this->useIncludePath = $useIncludePath;
-}
-
-
-
-
-
-
-
-public function getUseIncludePath()
-{
-return $this->useIncludePath;
-}
-
-
-
-
-
-
-
-public function setClassMapAuthoritative($classMapAuthoritative)
-{
-$this->classMapAuthoritative = $classMapAuthoritative;
-}
-
-
-
-
-
-
-public function isClassMapAuthoritative()
-{
-return $this->classMapAuthoritative;
-}
-
-
-
-
-
-
-public function setApcuPrefix($apcuPrefix)
-{
-$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
-}
-
-
-
-
-
-
-public function getApcuPrefix()
-{
-return $this->apcuPrefix;
-}
-
-
-
-
-
-
-public function register($prepend = false)
-{
-spl_autoload_register(array($this, 'loadClass'), true, $prepend);
-}
-
-
-
-
-public function unregister()
-{
-spl_autoload_unregister(array($this, 'loadClass'));
-}
-
-
-
-
-
-
-
-public function loadClass($class)
-{
-if ($file = $this->findFile($class)) {
-includeFile($file);
-
-return true;
-}
-}
-
-
-
-
-
-
-
-
-public function findFile($class)
-{
-
- if (isset($this->classMap[$class])) {
-return $this->classMap[$class];
-}
-if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
-return false;
-}
-if (null !== $this->apcuPrefix) {
-$file = apcu_fetch($this->apcuPrefix.$class, $hit);
-if ($hit) {
-return $file;
-}
-}
-
-$file = $this->findFileWithExtension($class, '.php');
-
-
- if (false === $file && defined('HHVM_VERSION')) {
-$file = $this->findFileWithExtension($class, '.hh');
-}
-
-if (null !== $this->apcuPrefix) {
-apcu_add($this->apcuPrefix.$class, $file);
-}
-
-if (false === $file) {
-
- $this->missingClasses[$class] = true;
-}
-
-return $file;
-}
-
-private function findFileWithExtension($class, $ext)
-{
-
- $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
-
-$first = $class[0];
-if (isset($this->prefixLengthsPsr4[$first])) {
-$subPath = $class;
-while (false !== $lastPos = strrpos($subPath, '\\')) {
-$subPath = substr($subPath, 0, $lastPos);
-$search = $subPath . '\\';
-if (isset($this->prefixDirsPsr4[$search])) {
-$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
-foreach ($this->prefixDirsPsr4[$search] as $dir) {
-if (file_exists($file = $dir . $pathEnd)) {
-return $file;
-}
-}
-}
-}
-}
-
-
- foreach ($this->fallbackDirsPsr4 as $dir) {
-if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
-return $file;
-}
-}
-
-
- if (false !== $pos = strrpos($class, '\\')) {
-
- $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
-. strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
-} else {
-
- $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
-}
-
-if (isset($this->prefixesPsr0[$first])) {
-foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
-if (0 === strpos($class, $prefix)) {
-foreach ($dirs as $dir) {
-if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
-return $file;
-}
-}
-}
-}
-}
-
-
- foreach ($this->fallbackDirsPsr0 as $dir) {
-if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
-return $file;
-}
-}
-
-
- if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
-return $file;
-}
-
-return false;
-}
-}
-
-
-
-
-
-
-function includeFile($file)
-{
-include $file;
-}
-##
-## Bundle of CA Root Certificates
-##
-## Certificate data from Mozilla as of: Wed Oct 17 03:12:10 2018 GMT
-##
-## This is a bundle of X.509 certificates of public Certificate Authorities
-## (CA). These were automatically extracted from Mozilla's root certificates
-## file (certdata.txt).  This file can be found in the mozilla source tree:
-## https://hg.mozilla.org/releases/mozilla-release/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt
-##
-## It contains the certificates in PEM format and therefore
-## can be directly used with curl / libcurl / php_curl, or with
-## an Apache+mod_ssl webserver for SSL client authentication.
-## Just configure this file as the SSLCACertificateFile.
-##
-## Conversion done with mk-ca-bundle.pl version 1.27.
-## SHA256: 3f875d87fee4ce3d966c69f1d6c111aa95c0143ade59e4fa24882c582bb5f0ca
-##
-
-
-GlobalSign Root CA
-==================
------BEGIN CERTIFICATE-----
-MIIDdTCCAl2gAwIBAgILBAAAAAABFUtaw5QwDQYJKoZIhvcNAQEFBQAwVzELMAkGA1UEBhMCQkUx
-GTAXBgNVBAoTEEdsb2JhbFNpZ24gbnYtc2ExEDAOBgNVBAsTB1Jvb3QgQ0ExGzAZBgNVBAMTEkds
-b2JhbFNpZ24gUm9vdCBDQTAeFw05ODA5MDExMjAwMDBaFw0yODAxMjgxMjAwMDBaMFcxCzAJBgNV
-BAYTAkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMRAwDgYDVQQLEwdSb290IENBMRswGQYD
-VQQDExJHbG9iYWxTaWduIFJvb3QgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDa
-DuaZjc6j40+Kfvvxi4Mla+pIH/EqsLmVEQS98GPR4mdmzxzdzxtIK+6NiY6arymAZavpxy0Sy6sc
-THAHoT0KMM0VjU/43dSMUBUc71DuxC73/OlS8pF94G3VNTCOXkNz8kHp1Wrjsok6Vjk4bwY8iGlb
-Kk3Fp1S4bInMm/k8yuX9ifUSPJJ4ltbcdG6TRGHRjcdGsnUOhugZitVtbNV4FpWi6cgKOOvyJBNP
-c1STE4U6G7weNLWLBYy5d4ux2x8gkasJU26Qzns3dLlwR5EiUWMWea6xrkEmCMgZK9FGqkjWZCrX
-gzT/LCrBbBlDSgeF59N89iFo7+ryUp9/k5DPAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNV
-HRMBAf8EBTADAQH/MB0GA1UdDgQWBBRge2YaRQ2XyolQL30EzTSo//z9SzANBgkqhkiG9w0BAQUF
-AAOCAQEA1nPnfE920I2/7LqivjTFKDK1fPxsnCwrvQmeU79rXqoRSLblCKOzyj1hTdNGCbM+w6Dj
-Y1Ub8rrvrTnhQ7k4o+YviiY776BQVvnGCv04zcQLcFGUl5gE38NflNUVyRRBnMRddWQVDf9VMOyG
-j/8N7yy5Y0b2qvzfvGn9LhJIZJrglfCm7ymPAbEVtQwdpf5pLGkkeB6zpxxxYu7KyJesF12KwvhH
-hm4qxFYxldBniYUr+WymXUadDKqC5JlR3XC321Y9YeRq4VzW9v493kHMB65jUr9TU/Qr6cf9tveC
-X4XSQRjbgbMEHMUfpIBvFSDJ3gyICh3WZlXi/EjJKSZp4A==
------END CERTIFICATE-----
-
-GlobalSign Root CA - R2
-=======================
------BEGIN CERTIFICATE-----
-MIIDujCCAqKgAwIBAgILBAAAAAABD4Ym5g0wDQYJKoZIhvcNAQEFBQAwTDEgMB4GA1UECxMXR2xv
-YmFsU2lnbiBSb290IENBIC0gUjIxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkdsb2Jh
-bFNpZ24wHhcNMDYxMjE1MDgwMDAwWhcNMjExMjE1MDgwMDAwWjBMMSAwHgYDVQQLExdHbG9iYWxT
-aWduIFJvb3QgQ0EgLSBSMjETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFsU2ln
-bjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKbPJA6+Lm8omUVCxKs+IVSbC9N/hHD6
-ErPLv4dfxn+G07IwXNb9rfF73OX4YJYJkhD10FPe+3t+c4isUoh7SqbKSaZeqKeMWhG8eoLrvozp
-s6yWJQeXSpkqBy+0Hne/ig+1AnwblrjFuTosvNYSuetZfeLQBoZfXklqtTleiDTsvHgMCJiEbKjN
-S7SgfQx5TfC4LcshytVsW33hoCmEofnTlEnLJGKRILzdC9XZzPnqJworc5HGnRusyMvo4KD0L5CL
-TfuwNhv2GXqF4G3yYROIXJ/gkwpRl4pazq+r1feqCapgvdzZX99yqWATXgAByUr6P6TqBwMhAo6C
-ygPCm48CAwEAAaOBnDCBmTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4E
-FgQUm+IHV2ccHsBqBt5ZtJot39wZhi4wNgYDVR0fBC8wLTAroCmgJ4YlaHR0cDovL2NybC5nbG9i
-YWxzaWduLm5ldC9yb290LXIyLmNybDAfBgNVHSMEGDAWgBSb4gdXZxwewGoG3lm0mi3f3BmGLjAN
-BgkqhkiG9w0BAQUFAAOCAQEAmYFThxxol4aR7OBKuEQLq4GsJ0/WwbgcQ3izDJr86iw8bmEbTUsp
-9Z8FHSbBuOmDAGJFtqkIk7mpM0sYmsL4h4hO291xNBrBVNpGP+DTKqttVCL1OmLNIG+6KYnX3ZHu
-01yiPqFbQfXf5WRDLenVOavSot+3i9DAgBkcRcAtjOj4LaR0VknFBbVPFd5uRHg5h6h+u/N5GJG7
-9G+dwfCMNYxdAfvDbbnvRG15RjF+Cv6pgsH/76tuIMRQyV+dTZsXjAzlAcmgQWpzU/qlULRuJQ/7
-TBj0/VLZjmmx6BEP3ojY+x1J96relc8geMJgEtslQIxq/H5COEBkEveegeGTLg==
------END CERTIFICATE-----
-
-Verisign Class 3 Public Primary Certification Authority - G3
-============================================================
------BEGIN CERTIFICATE-----
-MIIEGjCCAwICEQCbfgZJoz5iudXukEhxKe9XMA0GCSqGSIb3DQEBBQUAMIHKMQswCQYDVQQGEwJV
-UzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRydXN0IE5ldHdv
-cmsxOjA4BgNVBAsTMShjKSAxOTk5IFZlcmlTaWduLCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNl
-IG9ubHkxRTBDBgNVBAMTPFZlcmlTaWduIENsYXNzIDMgUHVibGljIFByaW1hcnkgQ2VydGlmaWNh
-dGlvbiBBdXRob3JpdHkgLSBHMzAeFw05OTEwMDEwMDAwMDBaFw0zNjA3MTYyMzU5NTlaMIHKMQsw
-CQYDVQQGEwJVUzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRy
-dXN0IE5ldHdvcmsxOjA4BgNVBAsTMShjKSAxOTk5IFZlcmlTaWduLCBJbmMuIC0gRm9yIGF1dGhv
-cml6ZWQgdXNlIG9ubHkxRTBDBgNVBAMTPFZlcmlTaWduIENsYXNzIDMgUHVibGljIFByaW1hcnkg
-Q2VydGlmaWNhdGlvbiBBdXRob3JpdHkgLSBHMzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
-ggEBAMu6nFL8eB8aHm8bN3O9+MlrlBIwT/A2R/XQkQr1F8ilYcEWQE37imGQ5XYgwREGfassbqb1
-EUGO+i2tKmFZpGcmTNDovFJbcCAEWNF6yaRpvIMXZK0Fi7zQWM6NjPXr8EJJC52XJ2cybuGukxUc
-cLwgTS8Y3pKI6GyFVxEa6X7jJhFUokWWVYPKMIno3Nij7SqAP395ZVc+FSBmCC+Vk7+qRy+oRpfw
-EuL+wgorUeZ25rdGt+INpsyow0xZVYnm6FNcHOqd8GIWC6fJXwzw3sJ2zq/3avL6QaaiMxTJ5Xpj
-055iN9WFZZ4O5lMkdBteHRJTW8cs54NJOxWuimi5V5cCAwEAATANBgkqhkiG9w0BAQUFAAOCAQEA
-ERSWwauSCPc/L8my/uRan2Te2yFPhpk0djZX3dAVL8WtfxUfN2JzPtTnX84XA9s1+ivbrmAJXx5f
-j267Cz3qWhMeDGBvtcC1IyIuBwvLqXTLR7sdwdela8wv0kL9Sd2nic9TutoAWii/gt/4uhMdUIaC
-/Y4wjylGsB49Ndo4YhYYSq3mtlFs3q9i6wHQHiT+eo8SGhJouPtmmRQURVyu565pF4ErWjfJXir0
-xuKhXFSbplQAz/DxwceYMBo7Nhbbo27q/a2ywtrvAkcTisDxszGtTxzhT5yvDwyd93gN2PQ1VoDa
-t20Xj50egWTh/sVFuq1ruQp6Tk9LhO5L8X3dEQ==
------END CERTIFICATE-----
-
-Entrust.net Premium 2048 Secure Server CA
-=========================================
------BEGIN CERTIFICATE-----
-MIIEKjCCAxKgAwIBAgIEOGPe+DANBgkqhkiG9w0BAQUFADCBtDEUMBIGA1UEChMLRW50cnVzdC5u
-ZXQxQDA+BgNVBAsUN3d3dy5lbnRydXN0Lm5ldC9DUFNfMjA0OCBpbmNvcnAuIGJ5IHJlZi4gKGxp
-bWl0cyBsaWFiLikxJTAjBgNVBAsTHChjKSAxOTk5IEVudHJ1c3QubmV0IExpbWl0ZWQxMzAxBgNV
-BAMTKkVudHJ1c3QubmV0IENlcnRpZmljYXRpb24gQXV0aG9yaXR5ICgyMDQ4KTAeFw05OTEyMjQx
-NzUwNTFaFw0yOTA3MjQxNDE1MTJaMIG0MRQwEgYDVQQKEwtFbnRydXN0Lm5ldDFAMD4GA1UECxQ3
-d3d3LmVudHJ1c3QubmV0L0NQU18yMDQ4IGluY29ycC4gYnkgcmVmLiAobGltaXRzIGxpYWIuKTEl
-MCMGA1UECxMcKGMpIDE5OTkgRW50cnVzdC5uZXQgTGltaXRlZDEzMDEGA1UEAxMqRW50cnVzdC5u
-ZXQgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgKDIwNDgpMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
-MIIBCgKCAQEArU1LqRKGsuqjIAcVFmQqK0vRvwtKTY7tgHalZ7d4QMBzQshowNtTK91euHaYNZOL
-Gp18EzoOH1u3Hs/lJBQesYGpjX24zGtLA/ECDNyrpUAkAH90lKGdCCmziAv1h3edVc3kw37XamSr
-hRSGlVuXMlBvPci6Zgzj/L24ScF2iUkZ/cCovYmjZy/Gn7xxGWC4LeksyZB2ZnuU4q941mVTXTzW
-nLLPKQP5L6RQstRIzgUyVYr9smRMDuSYB3Xbf9+5CFVghTAp+XtIpGmG4zU/HoZdenoVve8AjhUi
-VBcAkCaTvA5JaJG/+EfTnZVCwQ5N328mz8MYIWJmQ3DW1cAH4QIDAQABo0IwQDAOBgNVHQ8BAf8E
-BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUVeSB0RGAvtiJuQijMfmhJAkWuXAwDQYJ
-KoZIhvcNAQEFBQADggEBADubj1abMOdTmXx6eadNl9cZlZD7Bh/KM3xGY4+WZiT6QBshJ8rmcnPy
-T/4xmf3IDExoU8aAghOY+rat2l098c5u9hURlIIM7j+VrxGrD9cv3h8Dj1csHsm7mhpElesYT6Yf
-zX1XEC+bBAlahLVu2B064dae0Wx5XnkcFMXj0EyTO2U87d89vqbllRrDtRnDvV5bu/8j72gZyxKT
-J1wDLW8w0B62GqzeWvfRqqgnpv55gcR5mTNXuhKwqeBCbJPKVt7+bYQLCIt+jerXmCHG8+c8eS9e
-nNFMFY3h7CI3zJpDC5fcgJCNs2ebb0gIFVbPv/ErfF6adulZkMV8gzURZVE=
------END CERTIFICATE-----
-
-Baltimore CyberTrust Root
-=========================
------BEGIN CERTIFICATE-----
-MIIDdzCCAl+gAwIBAgIEAgAAuTANBgkqhkiG9w0BAQUFADBaMQswCQYDVQQGEwJJRTESMBAGA1UE
-ChMJQmFsdGltb3JlMRMwEQYDVQQLEwpDeWJlclRydXN0MSIwIAYDVQQDExlCYWx0aW1vcmUgQ3li
-ZXJUcnVzdCBSb290MB4XDTAwMDUxMjE4NDYwMFoXDTI1MDUxMjIzNTkwMFowWjELMAkGA1UEBhMC
-SUUxEjAQBgNVBAoTCUJhbHRpbW9yZTETMBEGA1UECxMKQ3liZXJUcnVzdDEiMCAGA1UEAxMZQmFs
-dGltb3JlIEN5YmVyVHJ1c3QgUm9vdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKME
-uyKrmD1X6CZymrV51Cni4eiVgLGw41uOKymaZN+hXe2wCQVt2yguzmKiYv60iNoS6zjrIZ3AQSsB
-UnuId9Mcj8e6uYi1agnnc+gRQKfRzMpijS3ljwumUNKoUMMo6vWrJYeKmpYcqWe4PwzV9/lSEy/C
-G9VwcPCPwBLKBsua4dnKM3p31vjsufFoREJIE9LAwqSuXmD+tqYF/LTdB1kC1FkYmGP1pWPgkAx9
-XbIGevOF6uvUA65ehD5f/xXtabz5OTZydc93Uk3zyZAsuT3lySNTPx8kmCFcB5kpvcY67Oduhjpr
-l3RjM71oGDHweI12v/yejl0qhqdNkNwnGjkCAwEAAaNFMEMwHQYDVR0OBBYEFOWdWTCCR1jMrPoI
-VDaGezq1BE3wMBIGA1UdEwEB/wQIMAYBAf8CAQMwDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEB
-BQUAA4IBAQCFDF2O5G9RaEIFoN27TyclhAO992T9Ldcw46QQF+vaKSm2eT929hkTI7gQCvlYpNRh
-cL0EYWoSihfVCr3FvDB81ukMJY2GQE/szKN+OMY3EU/t3WgxjkzSswF07r51XgdIGn9w/xZchMB5
-hbgF/X++ZRGjD8ACtPhSNzkE1akxehi/oCr0Epn3o0WC4zxe9Z2etciefC7IpJ5OCBRLbf1wbWsa
-Y71k5h+3zvDyny67G7fyUIhzksLi4xaNmjICq44Y3ekQEe5+NauQrz4wlHrQMz2nZQ/1/I6eYs9H
-RCwBXbsdtTLSR9I4LtD+gdwyah617jzV/OeBHRnDJELqYzmp
------END CERTIFICATE-----
-
-AddTrust External Root
-======================
------BEGIN CERTIFICATE-----
-MIIENjCCAx6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBvMQswCQYDVQQGEwJTRTEUMBIGA1UEChML
-QWRkVHJ1c3QgQUIxJjAkBgNVBAsTHUFkZFRydXN0IEV4dGVybmFsIFRUUCBOZXR3b3JrMSIwIAYD
-VQQDExlBZGRUcnVzdCBFeHRlcm5hbCBDQSBSb290MB4XDTAwMDUzMDEwNDgzOFoXDTIwMDUzMDEw
-NDgzOFowbzELMAkGA1UEBhMCU0UxFDASBgNVBAoTC0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRU
-cnVzdCBFeHRlcm5hbCBUVFAgTmV0d29yazEiMCAGA1UEAxMZQWRkVHJ1c3QgRXh0ZXJuYWwgQ0Eg
-Um9vdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALf3GjPm8gAELTngTlvtH7xsD821
-+iO2zt6bETOXpClMfZOfvUq8k+0DGuOPz+VtUFrWlymUWoCwSXrbLpX9uMq/NzgtHj6RQa1wVsfw
-Tz/oMp50ysiQVOnGXw94nZpAPA6sYapeFI+eh6FqUNzXmk6vBbOmcZSccbNQYArHE504B4YCqOmo
-aSYYkKtMsE8jqzpPhNjfzp/haW+710LXa0Tkx63ubUFfclpxCDezeWWkWaCUN/cALw3CknLa0Dhy
-2xSoRcRdKn23tNbE7qzNE0S3ySvdQwAl+mG5aWpYIxG3pzOPVnVZ9c0p10a3CitlttNCbxWyuHv7
-7+ldU9U0WicCAwEAAaOB3DCB2TAdBgNVHQ4EFgQUrb2YejS0Jvf6xCZU7wO94CTLVBowCwYDVR0P
-BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wgZkGA1UdIwSBkTCBjoAUrb2YejS0Jvf6xCZU7wO94CTL
-VBqhc6RxMG8xCzAJBgNVBAYTAlNFMRQwEgYDVQQKEwtBZGRUcnVzdCBBQjEmMCQGA1UECxMdQWRk
-VHJ1c3QgRXh0ZXJuYWwgVFRQIE5ldHdvcmsxIjAgBgNVBAMTGUFkZFRydXN0IEV4dGVybmFsIENB
-IFJvb3SCAQEwDQYJKoZIhvcNAQEFBQADggEBALCb4IUlwtYj4g+WBpKdQZic2YR5gdkeWxQHIzZl
-j7DYd7usQWxHYINRsPkyPef89iYTx4AWpb9a/IfPeHmJIZriTAcKhjW88t5RxNKWt9x+Tu5w/Rw5
-6wwCURQtjr0W4MHfRnXnJK3s9EK0hZNwEGe6nQY1ShjTK3rMUUKhemPR5ruhxSvCNr4TDea9Y355
-e6cJDUCrat2PisP29owaQgVR1EX1n6diIWgVIEM8med8vSTYqZEXc4g/VhsxOBi0cQ+azcgOno4u
-G+GMmIPLHzHxREzGBHNJdmAPx/i9F4BrLunMTA5amnkPIAou1Z5jJh5VkpTYghdae9C8x49OhgQ=
------END CERTIFICATE-----
-
-Entrust Root Certification Authority
-====================================
------BEGIN CERTIFICATE-----
-MIIEkTCCA3mgAwIBAgIERWtQVDANBgkqhkiG9w0BAQUFADCBsDELMAkGA1UEBhMCVVMxFjAUBgNV
-BAoTDUVudHJ1c3QsIEluYy4xOTA3BgNVBAsTMHd3dy5lbnRydXN0Lm5ldC9DUFMgaXMgaW5jb3Jw
-b3JhdGVkIGJ5IHJlZmVyZW5jZTEfMB0GA1UECxMWKGMpIDIwMDYgRW50cnVzdCwgSW5jLjEtMCsG
-A1UEAxMkRW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA2MTEyNzIwMjM0
-MloXDTI2MTEyNzIwNTM0MlowgbAxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1FbnRydXN0LCBJbmMu
-MTkwNwYDVQQLEzB3d3cuZW50cnVzdC5uZXQvQ1BTIGlzIGluY29ycG9yYXRlZCBieSByZWZlcmVu
-Y2UxHzAdBgNVBAsTFihjKSAyMDA2IEVudHJ1c3QsIEluYy4xLTArBgNVBAMTJEVudHJ1c3QgUm9v
-dCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
-ALaVtkNC+sZtKm9I35RMOVcF7sN5EUFoNu3s/poBj6E4KPz3EEZmLk0eGrEaTsbRwJWIsMn/MYsz
-A9u3g3s+IIRe7bJWKKf44LlAcTfFy0cOlypowCKVYhXbR9n10Cv/gkvJrT7eTNuQgFA/CYqEAOww
-Cj0Yzfv9KlmaI5UXLEWeH25DeW0MXJj+SKfFI0dcXv1u5x609mhF0YaDW6KKjbHjKYD+JXGIrb68
-j6xSlkuqUY3kEzEZ6E5Nn9uss2rVvDlUccp6en+Q3X0dgNmBu1kmwhH+5pPi94DkZfs0Nw4pgHBN
-rziGLp5/V6+eF67rHMsoIV+2HNjnogQi+dPa2MsCAwEAAaOBsDCBrTAOBgNVHQ8BAf8EBAMCAQYw
-DwYDVR0TAQH/BAUwAwEB/zArBgNVHRAEJDAigA8yMDA2MTEyNzIwMjM0MlqBDzIwMjYxMTI3MjA1
-MzQyWjAfBgNVHSMEGDAWgBRokORnpKZTgMeGZqTx90tD+4S9bTAdBgNVHQ4EFgQUaJDkZ6SmU4DH
-hmak8fdLQ/uEvW0wHQYJKoZIhvZ9B0EABBAwDhsIVjcuMTo0LjADAgSQMA0GCSqGSIb3DQEBBQUA
-A4IBAQCT1DCw1wMgKtD5Y+iRDAUgqV8ZyntyTtSx29CW+1RaGSwMCPeyvIWonX9tO1KzKtvn1ISM
-Y/YPyyYBkVBs9F8U4pN0wBOeMDpQ47RgxRzwIkSNcUesyBrJ6ZuaAGAT/3B+XxFNSRuzFVJ7yVTa
-v52Vr2ua2J7p8eRDjeIRRDq/r72DQnNSi6q7pynP9WQcCk3RvKqsnyrQ/39/2n3qse0wJcGE2jTS
-W3iDVuycNsMm4hH2Z0kdkquM++v/eu6FSqdQgPCnXEqULl8FmTxSQeDNtGPPAUO6nIPcj2A781q0
-tHuu2guQOHXvgR1m0vdXcDazv/wor3ElhVsT/h5/WrQ8
------END CERTIFICATE-----
-
-GeoTrust Global CA
-==================
------BEGIN CERTIFICATE-----
-MIIDVDCCAjygAwIBAgIDAjRWMA0GCSqGSIb3DQEBBQUAMEIxCzAJBgNVBAYTAlVTMRYwFAYDVQQK
-Ew1HZW9UcnVzdCBJbmMuMRswGQYDVQQDExJHZW9UcnVzdCBHbG9iYWwgQ0EwHhcNMDIwNTIxMDQw
-MDAwWhcNMjIwNTIxMDQwMDAwWjBCMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNR2VvVHJ1c3QgSW5j
-LjEbMBkGA1UEAxMSR2VvVHJ1c3QgR2xvYmFsIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
-CgKCAQEA2swYYzD99BcjGlZ+W988bDjkcbd4kdS8odhM+KhDtgPpTSEHCIjaWC9mOSm9BXiLnTjo
-BbdqfnGk5sRgprDvgOSJKA+eJdbtg/OtppHHmMlCGDUUna2YRpIuT8rxh0PBFpVXLVDviS2Aelet
-8u5fa9IAjbkU+BQVNdnARqN7csiRv8lVK83Qlz6cJmTM386DGXHKTubU1XupGc1V3sjs0l44U+Vc
-T4wt/lAjNvxm5suOpDkZALeVAjmRCw7+OC7RHQWa9k0+bw8HHa8sHo9gOeL6NlMTOdReJivbPagU
-vTLrGAMoUgRx5aszPeE4uwc2hGKceeoWMPRfwCvocWvk+QIDAQABo1MwUTAPBgNVHRMBAf8EBTAD
-AQH/MB0GA1UdDgQWBBTAephojYn7qwVkDBF9qn1luMrMTjAfBgNVHSMEGDAWgBTAephojYn7qwVk
-DBF9qn1luMrMTjANBgkqhkiG9w0BAQUFAAOCAQEANeMpauUvXVSOKVCUn5kaFOSPeCpilKInZ57Q
-zxpeR+nBsqTP3UEaBU6bS+5Kb1VSsyShNwrrZHYqLizz/Tt1kL/6cdjHPTfStQWVYrmm3ok9Nns4
-d0iXrKYgjy6myQzCsplFAMfOEVEiIuCl6rYVSAlk6l5PdPcFPseKUgzbFbS9bZvlxrFUaKnjaZC2
-mqUPuLk/IH2uSrW4nOQdtqvmlKXBx4Ot2/Unhw4EbNX/3aBd7YdStysVAq45pmp06drE57xNNB6p
-XE0zX5IJL4hmXXeXxx12E6nV5fEWCRE11azbJHFwLJhWC9kXtNHjUStedejV0NxPNO3CBWaAocvm
-Mw==
------END CERTIFICATE-----
-
-GeoTrust Universal CA
-=====================
------BEGIN CERTIFICATE-----
-MIIFaDCCA1CgAwIBAgIBATANBgkqhkiG9w0BAQUFADBFMQswCQYDVQQGEwJVUzEWMBQGA1UEChMN
-R2VvVHJ1c3QgSW5jLjEeMBwGA1UEAxMVR2VvVHJ1c3QgVW5pdmVyc2FsIENBMB4XDTA0MDMwNDA1
-MDAwMFoXDTI5MDMwNDA1MDAwMFowRTELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUdlb1RydXN0IElu
-Yy4xHjAcBgNVBAMTFUdlb1RydXN0IFVuaXZlcnNhbCBDQTCCAiIwDQYJKoZIhvcNAQEBBQADggIP
-ADCCAgoCggIBAKYVVaCjxuAfjJ0hUNfBvitbtaSeodlyWL0AG0y/YckUHUWCq8YdgNY96xCcOq9t
-JPi8cQGeBvV8Xx7BDlXKg5pZMK4ZyzBIle0iN430SppyZj6tlcDgFgDgEB8rMQ7XlFTTQjOgNB0e
-RXbdT8oYN+yFFXoZCPzVx5zw8qkuEKmS5j1YPakWaDwvdSEYfyh3peFhF7em6fgemdtzbvQKoiFs
-7tqqhZJmr/Z6a4LauiIINQ/PQvE1+mrufislzDoR5G2vc7J2Ha3QsnhnGqQ5HFELZ1aD/ThdDc7d
-8Lsrlh/eezJS/R27tQahsiFepdaVaH/wmZ7cRQg+59IJDTWU3YBOU5fXtQlEIGQWFwMCTFMNaN7V
-qnJNk22CDtucvc+081xdVHppCZbW2xHBjXWotM85yM48vCR85mLK4b19p71XZQvk/iXttmkQ3Cga
-Rr0BHdCXteGYO8A3ZNY9lO4L4fUorgtWv3GLIylBjobFS1J72HGrH4oVpjuDWtdYAVHGTEHZf9hB
-Z3KiKN9gg6meyHv8U3NyWfWTehd2Ds735VzZC1U0oqpbtWpU5xPKV+yXbfReBi9Fi1jUIxaS5BZu
-KGNZMN9QAZxjiRqf2xeUgnA3wySemkfWWspOqGmJch+RbNt+nhutxx9z3SxPGWX9f5NAEC7S8O08
-ni4oPmkmM8V7AgMBAAGjYzBhMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFNq7LqqwDLiIJlF0
-XG0D08DYj3rWMB8GA1UdIwQYMBaAFNq7LqqwDLiIJlF0XG0D08DYj3rWMA4GA1UdDwEB/wQEAwIB
-hjANBgkqhkiG9w0BAQUFAAOCAgEAMXjmx7XfuJRAyXHEqDXsRh3ChfMoWIawC/yOsjmPRFWrZIRc
-aanQmjg8+uUfNeVE44B5lGiku8SfPeE0zTBGi1QrlaXv9z+ZhP015s8xxtxqv6fXIwjhmF7DWgh2
-qaavdy+3YL1ERmrvl/9zlcGO6JP7/TG37FcREUWbMPEaiDnBTzynANXH/KttgCJwpQzgXQQpAvvL
-oJHRfNbDflDVnVi+QTjruXU8FdmbyUqDWcDaU/0zuzYYm4UPFd3uLax2k7nZAY1IEKj79TiG8dsK
-xr2EoyNB3tZ3b4XUhRxQ4K5RirqNPnbiucon8l+f725ZDQbYKxek0nxru18UGkiPGkzns0ccjkxF
-KyDuSN/n3QmOGKjaQI2SJhFTYXNd673nxE0pN2HrrDktZy4W1vUAg4WhzH92xH3kt0tm7wNFYGm2
-DFKWkoRepqO1pD4r2czYG0eq8kTaT/kD6PAUyz/zg97QwVTjt+gKN02LIFkDMBmhLMi9ER/frslK
-xfMnZmaGrGiR/9nmUxwPi1xpZQomyB40w11Re9epnAahNt3ViZS82eQtDF4JbAiXfKM9fJP/P6EU
-p8+1Xevb2xzEdt+Iub1FBZUbrvxGakyvSOPOrg/SfuvmbJxPgWp6ZKy7PtXny3YuxadIwVyQD8vI
-P/rmMuGNG2+k5o7Y+SlIis5z/iw=
------END CERTIFICATE-----
-
-GeoTrust Universal CA 2
-=======================
------BEGIN CERTIFICATE-----
-MIIFbDCCA1SgAwIBAgIBATANBgkqhkiG9w0BAQUFADBHMQswCQYDVQQGEwJVUzEWMBQGA1UEChMN
-R2VvVHJ1c3QgSW5jLjEgMB4GA1UEAxMXR2VvVHJ1c3QgVW5pdmVyc2FsIENBIDIwHhcNMDQwMzA0
-MDUwMDAwWhcNMjkwMzA0MDUwMDAwWjBHMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNR2VvVHJ1c3Qg
-SW5jLjEgMB4GA1UEAxMXR2VvVHJ1c3QgVW5pdmVyc2FsIENBIDIwggIiMA0GCSqGSIb3DQEBAQUA
-A4ICDwAwggIKAoICAQCzVFLByT7y2dyxUxpZKeexw0Uo5dfR7cXFS6GqdHtXr0om/Nj1XqduGdt0
-DE81WzILAePb63p3NeqqWuDW6KFXlPCQo3RWlEQwAx5cTiuFJnSCegx2oG9NzkEtoBUGFF+3Qs17
-j1hhNNwqCPkuwwGmIkQcTAeC5lvO0Ep8BNMZcyfwqph/Lq9O64ceJHdqXbboW0W63MOhBW9Wjo8Q
-JqVJwy7XQYci4E+GymC16qFjwAGXEHm9ADwSbSsVsaxLse4YuU6W3Nx2/zu+z18DwPw76L5GG//a
-QMJS9/7jOvdqdzXQ2o3rXhhqMcceujwbKNZrVMaqW9eiLBsZzKIC9ptZvTdrhrVtgrrY6slWvKk2
-WP0+GfPtDCapkzj4T8FdIgbQl+rhrcZV4IErKIM6+vR7IVEAvlI4zs1meaj0gVbi0IMJR1FbUGrP
-20gaXT73y/Zl92zxlfgCOzJWgjl6W70viRu/obTo/3+NjN8D8WBOWBFM66M/ECuDmgFz2ZRthAAn
-ZqzwcEAJQpKtT5MNYQlRJNiS1QuUYbKHsu3/mjX/hVTK7URDrBs8FmtISgocQIgfksILAAX/8sgC
-SqSqqcyZlpwvWOB94b67B9xfBHJcMTTD7F8t4D1kkCLm0ey4Lt1ZrtmhN79UNdxzMk+MBB4zsslG
-8dhcyFVQyWi9qLo2CQIDAQABo2MwYTAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBR281Xh+qQ2
-+/CfXGJx7Tz0RzgQKzAfBgNVHSMEGDAWgBR281Xh+qQ2+/CfXGJx7Tz0RzgQKzAOBgNVHQ8BAf8E
-BAMCAYYwDQYJKoZIhvcNAQEFBQADggIBAGbBxiPz2eAubl/oz66wsCVNK/g7WJtAJDday6sWSf+z
-dXkzoS9tcBc0kf5nfo/sm+VegqlVHy/c1FEHEv6sFj4sNcZj/NwQ6w2jqtB8zNHQL1EuxBRa3ugZ
-4T7GzKQp5y6EqgYweHZUcyiYWTjgAA1i00J9IZ+uPTqM1fp3DRgrFg5fNuH8KrUwJM/gYwx7WBr+
-mbpCErGR9Hxo4sjoryzqyX6uuyo9DRXcNJW2GHSoag/HtPQTxORb7QrSpJdMKu0vbBKJPfEncKpq
-A1Ihn0CoZ1Dy81of398j9tx4TuaYT1U6U+Pv8vSfx3zYWK8pIpe44L2RLrB27FcRz+8pRPPphXpg
-Y+RdM4kX2TGq2tbzGDVyz4crL2MjhF2EjD9XoIj8mZEoJmmZ1I+XRL6O1UixpCgp8RW04eWe3fiP
-pm8m1wk8OhwRDqZsN/etRIcsKMfYdIKz0G9KV7s1KSegi+ghp4dkNl3M2Basx7InQJJVOCiNUW7d
-FGdTbHFcJoRNdVq2fmBWqU2t+5sel/MN2dKXVHfaPRK34B7vCAas+YWH6aLcr34YEoP9VhdBLtUp
-gn2Z9DH2canPLAEnpQW5qrJITirvn5NSUZU8UnOOVkwXQMAJKOSLakhT2+zNVVXxxvjpoixMptEm
-X36vWkzaH6byHCx+rgIW0lbQL1dTR+iS
------END CERTIFICATE-----
-
-Visa eCommerce Root
-===================
------BEGIN CERTIFICATE-----
-MIIDojCCAoqgAwIBAgIQE4Y1TR0/BvLB+WUF1ZAcYjANBgkqhkiG9w0BAQUFADBrMQswCQYDVQQG
-EwJVUzENMAsGA1UEChMEVklTQTEvMC0GA1UECxMmVmlzYSBJbnRlcm5hdGlvbmFsIFNlcnZpY2Ug
-QXNzb2NpYXRpb24xHDAaBgNVBAMTE1Zpc2EgZUNvbW1lcmNlIFJvb3QwHhcNMDIwNjI2MDIxODM2
-WhcNMjIwNjI0MDAxNjEyWjBrMQswCQYDVQQGEwJVUzENMAsGA1UEChMEVklTQTEvMC0GA1UECxMm
-VmlzYSBJbnRlcm5hdGlvbmFsIFNlcnZpY2UgQXNzb2NpYXRpb24xHDAaBgNVBAMTE1Zpc2EgZUNv
-bW1lcmNlIFJvb3QwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCvV95WHm6h2mCxlCfL
-F9sHP4CFT8icttD0b0/Pmdjh28JIXDqsOTPHH2qLJj0rNfVIsZHBAk4ElpF7sDPwsRROEW+1QK8b
-RaVK7362rPKgH1g/EkZgPI2h4H3PVz4zHvtH8aoVlwdVZqW1LS7YgFmypw23RuwhY/81q6UCzyr0
-TP579ZRdhE2o8mCP2w4lPJ9zcc+U30rq299yOIzzlr3xF7zSujtFWsan9sYXiwGd/BmoKoMWuDpI
-/k4+oKsGGelT84ATB+0tvz8KPFUgOSwsAGl0lUq8ILKpeeUYiZGo3BxN77t+Nwtd/jmliFKMAGzs
-GHxBvfaLdXe6YJ2E5/4tAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEG
-MB0GA1UdDgQWBBQVOIMPPyw/cDMezUb+B4wg4NfDtzANBgkqhkiG9w0BAQUFAAOCAQEAX/FBfXxc
-CLkr4NWSR/pnXKUTwwMhmytMiUbPWU3J/qVAtmPN3XEolWcRzCSs00Rsca4BIGsDoo8Ytyk6feUW
-YFN4PMCvFYP3j1IzJL1kk5fui/fbGKhtcbP3LBfQdCVp9/5rPJS+TUtBjE7ic9DjkCJzQ83z7+pz
-zkWKsKZJ/0x9nXGIxHYdkFsd7v3M9+79YKWxehZx0RbQfBI8bGmX265fOZpwLwU8GUYEmSA20GBu
-YQa7FkKMcPcw++DbZqMAAb3mLNqRX6BGi01qnD093QVG/na/oAo85ADmJ7f/hC3euiInlhBx6yLt
-398znM/jra6O1I7mT1GvFpLgXPYHDw==
------END CERTIFICATE-----
-
-Comodo AAA Services root
-========================
------BEGIN CERTIFICATE-----
-MIIEMjCCAxqgAwIBAgIBATANBgkqhkiG9w0BAQUFADB7MQswCQYDVQQGEwJHQjEbMBkGA1UECAwS
-R3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHDAdTYWxmb3JkMRowGAYDVQQKDBFDb21vZG8gQ0Eg
-TGltaXRlZDEhMB8GA1UEAwwYQUFBIENlcnRpZmljYXRlIFNlcnZpY2VzMB4XDTA0MDEwMTAwMDAw
-MFoXDTI4MTIzMTIzNTk1OVowezELMAkGA1UEBhMCR0IxGzAZBgNVBAgMEkdyZWF0ZXIgTWFuY2hl
-c3RlcjEQMA4GA1UEBwwHU2FsZm9yZDEaMBgGA1UECgwRQ29tb2RvIENBIExpbWl0ZWQxITAfBgNV
-BAMMGEFBQSBDZXJ0aWZpY2F0ZSBTZXJ2aWNlczCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
-ggEBAL5AnfRu4ep2hxxNRUSOvkbIgwadwSr+GB+O5AL686tdUIoWMQuaBtDFcCLNSS1UY8y2bmhG
-C1Pqy0wkwLxyTurxFa70VJoSCsN6sjNg4tqJVfMiWPPe3M/vg4aijJRPn2jymJBGhCfHdr/jzDUs
-i14HZGWCwEiwqJH5YZ92IFCokcdmtet4YgNW8IoaE+oxox6gmf049vYnMlhvB/VruPsUK6+3qszW
-Y19zjNoFmag4qMsXeDZRrOme9Hg6jc8P2ULimAyrL58OAd7vn5lJ8S3frHRNG5i1R8XlKdH5kBjH
-Ypy+g8cmez6KJcfA3Z3mNWgQIJ2P2N7Sw4ScDV7oL8kCAwEAAaOBwDCBvTAdBgNVHQ4EFgQUoBEK
-Iz6W8Qfs4q8p74Klf9AwpLQwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wewYDVR0f
-BHQwcjA4oDagNIYyaHR0cDovL2NybC5jb21vZG9jYS5jb20vQUFBQ2VydGlmaWNhdGVTZXJ2aWNl
-cy5jcmwwNqA0oDKGMGh0dHA6Ly9jcmwuY29tb2RvLm5ldC9BQUFDZXJ0aWZpY2F0ZVNlcnZpY2Vz
-LmNybDANBgkqhkiG9w0BAQUFAAOCAQEACFb8AvCb6P+k+tZ7xkSAzk/ExfYAWMymtrwUSWgEdujm
-7l3sAg9g1o1QGE8mTgHj5rCl7r+8dFRBv/38ErjHT1r0iWAFf2C3BUrz9vHCv8S5dIa2LX1rzNLz
-Rt0vxuBqw8M0Ayx9lt1awg6nCpnBBYurDC/zXDrPbDdVCYfeU0BsWO/8tqtlbgT2G9w84FoVxp7Z
-8VlIMCFlA2zs6SFz7JsDoeA3raAVGI/6ugLOpyypEBMs1OUIJqsil2D4kF501KKaU73yqWjgom7C
-12yxow+ev+to51byrvLjKzg6CYG1a4XXvi3tPxq3smPi9WIsgtRqAEFQ8TmDn5XpNpaYbg==
------END CERTIFICATE-----
-
-QuoVadis Root CA
-================
------BEGIN CERTIFICATE-----
-MIIF0DCCBLigAwIBAgIEOrZQizANBgkqhkiG9w0BAQUFADB/MQswCQYDVQQGEwJCTTEZMBcGA1UE
-ChMQUXVvVmFkaXMgTGltaXRlZDElMCMGA1UECxMcUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0
-eTEuMCwGA1UEAxMlUXVvVmFkaXMgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wMTAz
-MTkxODMzMzNaFw0yMTAzMTcxODMzMzNaMH8xCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRp
-cyBMaW1pdGVkMSUwIwYDVQQLExxSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MS4wLAYDVQQD
-EyVRdW9WYWRpcyBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIIBIjANBgkqhkiG9w0BAQEF
-AAOCAQ8AMIIBCgKCAQEAv2G1lVO6V/z68mcLOhrfEYBklbTRvM16z/Ypli4kVEAkOPcahdxYTMuk
-J0KX0J+DisPkBgNbAKVRHnAEdOLB1Dqr1607BxgFjv2DrOpm2RgbaIr1VxqYuvXtdj182d6UajtL
-F8HVj71lODqV0D1VNk7feVcxKh7YWWVJWCCYfqtffp/p1k3sg3Spx2zY7ilKhSoGFPlU5tPaZQeL
-YzcS19Dsw3sgQUSj7cugF+FxZc4dZjH3dgEZyH0DWLaVSR2mEiboxgx24ONmy+pdpibu5cxfvWen
-AScOospUxbF6lR1xHkopigPcakXBpBlebzbNw6Kwt/5cOOJSvPhEQ+aQuwIDAQABo4ICUjCCAk4w
-PQYIKwYBBQUHAQEEMTAvMC0GCCsGAQUFBzABhiFodHRwczovL29jc3AucXVvdmFkaXNvZmZzaG9y
-ZS5jb20wDwYDVR0TAQH/BAUwAwEB/zCCARoGA1UdIASCAREwggENMIIBCQYJKwYBBAG+WAABMIH7
-MIHUBggrBgEFBQcCAjCBxxqBxFJlbGlhbmNlIG9uIHRoZSBRdW9WYWRpcyBSb290IENlcnRpZmlj
-YXRlIGJ5IGFueSBwYXJ0eSBhc3N1bWVzIGFjY2VwdGFuY2Ugb2YgdGhlIHRoZW4gYXBwbGljYWJs
-ZSBzdGFuZGFyZCB0ZXJtcyBhbmQgY29uZGl0aW9ucyBvZiB1c2UsIGNlcnRpZmljYXRpb24gcHJh
-Y3RpY2VzLCBhbmQgdGhlIFF1b1ZhZGlzIENlcnRpZmljYXRlIFBvbGljeS4wIgYIKwYBBQUHAgEW
-Fmh0dHA6Ly93d3cucXVvdmFkaXMuYm0wHQYDVR0OBBYEFItLbe3TKbkGGew5Oanwl4Rqy+/fMIGu
-BgNVHSMEgaYwgaOAFItLbe3TKbkGGew5Oanwl4Rqy+/foYGEpIGBMH8xCzAJBgNVBAYTAkJNMRkw
-FwYDVQQKExBRdW9WYWRpcyBMaW1pdGVkMSUwIwYDVQQLExxSb290IENlcnRpZmljYXRpb24gQXV0
-aG9yaXR5MS4wLAYDVQQDEyVRdW9WYWRpcyBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5ggQ6
-tlCLMA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQUFAAOCAQEAitQUtf70mpKnGdSkfnIYj9lo
-fFIk3WdvOXrEql494liwTXCYhGHoG+NpGA7O+0dQoE7/8CQfvbLO9Sf87C9TqnN7Az10buYWnuul
-LsS/VidQK2K6vkscPFVcQR0kvoIgR13VRH56FmjffU1RcHhXHTMe/QKZnAzNCgVPx7uOpHX6Sm2x
-gI4JVrmcGmD+XcHXetwReNDWXcG31a0ymQM6isxUJTkxgXsTIlG6Rmyhu576BGxJJnSP0nPrzDCi
-5upZIof4l/UO/erMkqQWxFIY6iHOsfHmhIHluqmGKPJDWl0Snawe2ajlCmqnf6CHKc/yiU3U7MXi
-5nrQNiOKSnQ2+Q==
------END CERTIFICATE-----
-
-QuoVadis Root CA 2
-==================
------BEGIN CERTIFICATE-----
-MIIFtzCCA5+gAwIBAgICBQkwDQYJKoZIhvcNAQEFBQAwRTELMAkGA1UEBhMCQk0xGTAXBgNVBAoT
-EFF1b1ZhZGlzIExpbWl0ZWQxGzAZBgNVBAMTElF1b1ZhZGlzIFJvb3QgQ0EgMjAeFw0wNjExMjQx
-ODI3MDBaFw0zMTExMjQxODIzMzNaMEUxCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBM
-aW1pdGVkMRswGQYDVQQDExJRdW9WYWRpcyBSb290IENBIDIwggIiMA0GCSqGSIb3DQEBAQUAA4IC
-DwAwggIKAoICAQCaGMpLlA0ALa8DKYrwD4HIrkwZhR0In6spRIXzL4GtMh6QRr+jhiYaHv5+HBg6
-XJxgFyo6dIMzMH1hVBHL7avg5tKifvVrbxi3Cgst/ek+7wrGsxDp3MJGF/hd/aTa/55JWpzmM+Yk
-lvc/ulsrHHo1wtZn/qtmUIttKGAr79dgw8eTvI02kfN/+NsRE8Scd3bBrrcCaoF6qUWD4gXmuVbB
-lDePSHFjIuwXZQeVikvfj8ZaCuWw419eaxGrDPmF60Tp+ARz8un+XJiM9XOva7R+zdRcAitMOeGy
-lZUtQofX1bOQQ7dsE/He3fbE+Ik/0XX1ksOR1YqI0JDs3G3eicJlcZaLDQP9nL9bFqyS2+r+eXyt
-66/3FsvbzSUr5R/7mp/iUcw6UwxI5g69ybR2BlLmEROFcmMDBOAENisgGQLodKcftslWZvB1Jdxn
-wQ5hYIizPtGo/KPaHbDRsSNU30R2be1B2MGyIrZTHN81Hdyhdyox5C315eXbyOD/5YDXC2Og/zOh
-D7osFRXql7PSorW+8oyWHhqPHWykYTe5hnMz15eWniN9gqRMgeKh0bpnX5UHoycR7hYQe7xFSkyy
-BNKr79X9DFHOUGoIMfmR2gyPZFwDwzqLID9ujWc9Otb+fVuIyV77zGHcizN300QyNQliBJIWENie
-J0f7OyHj+OsdWwIDAQABo4GwMIGtMA8GA1UdEwEB/wQFMAMBAf8wCwYDVR0PBAQDAgEGMB0GA1Ud
-DgQWBBQahGK8SEwzJQTU7tD2A8QZRtGUazBuBgNVHSMEZzBlgBQahGK8SEwzJQTU7tD2A8QZRtGU
-a6FJpEcwRTELMAkGA1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxGzAZBgNVBAMT
-ElF1b1ZhZGlzIFJvb3QgQ0EgMoICBQkwDQYJKoZIhvcNAQEFBQADggIBAD4KFk2fBluornFdLwUv
-Z+YTRYPENvbzwCYMDbVHZF34tHLJRqUDGCdViXh9duqWNIAXINzng/iN/Ae42l9NLmeyhP3ZRPx3
-UIHmfLTJDQtyU/h2BwdBR5YM++CCJpNVjP4iH2BlfF/nJrP3MpCYUNQ3cVX2kiF495V5+vgtJodm
-VjB3pjd4M1IQWK4/YY7yarHvGH5KWWPKjaJW1acvvFYfzznB4vsKqBUsfU16Y8Zsl0Q80m/DShcK
-+JDSV6IZUaUtl0HaB0+pUNqQjZRG4T7wlP0QADj1O+hA4bRuVhogzG9Yje0uRY/W6ZM/57Es3zrW
-IozchLsib9D45MY56QSIPMO661V6bYCZJPVsAfv4l7CUW+v90m/xd2gNNWQjrLhVoQPRTUIZ3Ph1
-WVaj+ahJefivDrkRoHy3au000LYmYjgahwz46P0u05B/B5EqHdZ+XIWDmbA4CD/pXvk1B+TJYm5X
-f6dQlfe6yJvmjqIBxdZmv3lh8zwc4bmCXF2gw+nYSL0ZohEUGW6yhhtoPkg3Goi3XZZenMfvJ2II
-4pEZXNLxId26F0KCl3GBUzGpn/Z9Yr9y4aOTHcyKJloJONDO1w2AFrR4pTqHTI2KpdVGl/IsELm8
-VCLAAVBpQ570su9t+Oza8eOx79+Rj1QqCyXBJhnEUhAFZdWCEOrCMc0u
------END CERTIFICATE-----
-
-QuoVadis Root CA 3
-==================
------BEGIN CERTIFICATE-----
-MIIGnTCCBIWgAwIBAgICBcYwDQYJKoZIhvcNAQEFBQAwRTELMAkGA1UEBhMCQk0xGTAXBgNVBAoT
-EFF1b1ZhZGlzIExpbWl0ZWQxGzAZBgNVBAMTElF1b1ZhZGlzIFJvb3QgQ0EgMzAeFw0wNjExMjQx
-OTExMjNaFw0zMTExMjQxOTA2NDRaMEUxCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBM
-aW1pdGVkMRswGQYDVQQDExJRdW9WYWRpcyBSb290IENBIDMwggIiMA0GCSqGSIb3DQEBAQUAA4IC
-DwAwggIKAoICAQDMV0IWVJzmmNPTTe7+7cefQzlKZbPoFog02w1ZkXTPkrgEQK0CSzGrvI2RaNgg
-DhoB4hp7Thdd4oq3P5kazethq8Jlph+3t723j/z9cI8LoGe+AaJZz3HmDyl2/7FWeUUrH556VOij
-KTVopAFPD6QuN+8bv+OPEKhyq1hX51SGyMnzW9os2l2ObjyjPtr7guXd8lyyBTNvijbO0BNO/79K
-DDRMpsMhvVAEVeuxu537RR5kFd5VAYwCdrXLoT9CabwvvWhDFlaJKjdhkf2mrk7AyxRllDdLkgbv
-BNDInIjbC3uBr7E9KsRlOni27tyAsdLTmZw67mtaa7ONt9XOnMK+pUsvFrGeaDsGb659n/je7Mwp
-p5ijJUMv7/FfJuGITfhebtfZFG4ZM2mnO4SJk8RTVROhUXhA+LjJou57ulJCg54U7QVSWllWp5f8
-nT8KKdjcT5EOE7zelaTfi5m+rJsziO+1ga8bxiJTyPbH7pcUsMV8eFLI8M5ud2CEpukqdiDtWAEX
-MJPpGovgc2PZapKUSU60rUqFxKMiMPwJ7Wgic6aIDFUhWMXhOp8q3crhkODZc6tsgLjoC2SToJyM
-Gf+z0gzskSaHirOi4XCPLArlzW1oUevaPwV/izLmE1xr/l9A4iLItLRkT9a6fUg+qGkM17uGcclz
-uD87nSVL2v9A6wIDAQABo4IBlTCCAZEwDwYDVR0TAQH/BAUwAwEB/zCB4QYDVR0gBIHZMIHWMIHT
-BgkrBgEEAb5YAAMwgcUwgZMGCCsGAQUFBwICMIGGGoGDQW55IHVzZSBvZiB0aGlzIENlcnRpZmlj
-YXRlIGNvbnN0aXR1dGVzIGFjY2VwdGFuY2Ugb2YgdGhlIFF1b1ZhZGlzIFJvb3QgQ0EgMyBDZXJ0
-aWZpY2F0ZSBQb2xpY3kgLyBDZXJ0aWZpY2F0aW9uIFByYWN0aWNlIFN0YXRlbWVudC4wLQYIKwYB
-BQUHAgEWIWh0dHA6Ly93d3cucXVvdmFkaXNnbG9iYWwuY29tL2NwczALBgNVHQ8EBAMCAQYwHQYD
-VR0OBBYEFPLAE+CCQz777i9nMpY1XNu4ywLQMG4GA1UdIwRnMGWAFPLAE+CCQz777i9nMpY1XNu4
-ywLQoUmkRzBFMQswCQYDVQQGEwJCTTEZMBcGA1UEChMQUXVvVmFkaXMgTGltaXRlZDEbMBkGA1UE
-AxMSUXVvVmFkaXMgUm9vdCBDQSAzggIFxjANBgkqhkiG9w0BAQUFAAOCAgEAT62gLEz6wPJv92ZV
-qyM07ucp2sNbtrCD2dDQ4iH782CnO11gUyeim/YIIirnv6By5ZwkajGxkHon24QRiSemd1o417+s
-hvzuXYO8BsbRd2sPbSQvS3pspweWyuOEn62Iix2rFo1bZhfZFvSLgNLd+LJ2w/w4E6oM3kJpK27z
-POuAJ9v1pkQNn1pVWQvVDVJIxa6f8i+AxeoyUDUSly7B4f/xI4hROJ/yZlZ25w9Rl6VSDE1JUZU2
-Pb+iSwwQHYaZTKrzchGT5Or2m9qoXadNt54CrnMAyNojA+j56hl0YgCUyyIgvpSnWbWCar6ZeXqp
-8kokUvd0/bpO5qgdAm6xDYBEwa7TIzdfu4V8K5Iu6H6li92Z4b8nby1dqnuH/grdS/yO9SbkbnBC
-bjPsMZ57k8HkyWkaPcBrTiJt7qtYTcbQQcEr6k8Sh17rRdhs9ZgC06DYVYoGmRmioHfRMJ6szHXu
-g/WwYjnPbFfiTNKRCw51KBuav/0aQ/HKd/s7j2G4aSgWQgRecCocIdiP4b0jWy10QJLZYxkNc91p
-vGJHvOB0K7Lrfb5BG7XARsWhIstfTsEokt4YutUqKLsRixeTmJlglFwjz1onl14LBQaTNx47aTbr
-qZ5hHY8y2o4M1nQ+ewkk2gF3R8Q7zTSMmfXK4SVhM7JZG+Ju1zdXtg2pEto=
------END CERTIFICATE-----
-
-Security Communication Root CA
-==============================
------BEGIN CERTIFICATE-----
-MIIDWjCCAkKgAwIBAgIBADANBgkqhkiG9w0BAQUFADBQMQswCQYDVQQGEwJKUDEYMBYGA1UEChMP
-U0VDT00gVHJ1c3QubmV0MScwJQYDVQQLEx5TZWN1cml0eSBDb21tdW5pY2F0aW9uIFJvb3RDQTEw
-HhcNMDMwOTMwMDQyMDQ5WhcNMjMwOTMwMDQyMDQ5WjBQMQswCQYDVQQGEwJKUDEYMBYGA1UEChMP
-U0VDT00gVHJ1c3QubmV0MScwJQYDVQQLEx5TZWN1cml0eSBDb21tdW5pY2F0aW9uIFJvb3RDQTEw
-ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCzs/5/022x7xZ8V6UMbXaKL0u/ZPtM7orw
-8yl89f/uKuDp6bpbZCKamm8sOiZpUQWZJtzVHGpxxpp9Hp3dfGzGjGdnSj74cbAZJ6kJDKaVv0uM
-DPpVmDvY6CKhS3E4eayXkmmziX7qIWgGmBSWh9JhNrxtJ1aeV+7AwFb9Ms+k2Y7CI9eNqPPYJayX
-5HA49LY6tJ07lyZDo6G8SVlyTCMwhwFY9k6+HGhWZq/NQV3Is00qVUarH9oe4kA92819uZKAnDfd
-DJZkndwi92SL32HeFZRSFaB9UslLqCHJxrHty8OVYNEP8Ktw+N/LTX7s1vqr2b1/VPKl6Xn62dZ2
-JChzAgMBAAGjPzA9MB0GA1UdDgQWBBSgc0mZaNyFW2XjmygvV5+9M7wHSDALBgNVHQ8EBAMCAQYw
-DwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAQEAaECpqLvkT115swW1F7NgE+vGkl3g
-0dNq/vu+m22/xwVtWSDEHPC32oRYAmP6SBbvT6UL90qY8j+eG61Ha2POCEfrUj94nK9NrvjVT8+a
-mCoQQTlSxN3Zmw7vkwGusi7KaEIkQmywszo+zenaSMQVy+n5Bw+SUEmK3TGXX8npN6o7WWWXlDLJ
-s58+OmJYxUmtYg5xpTKqL8aJdkNAExNnPaJUJRDL8Try2frbSVa7pv6nQTXD4IhhyYjH3zYQIphZ
-6rBK+1YWc26sTfcioU+tHXotRSflMMFe8toTyyVCUZVHA4xsIcx0Qu1T/zOLjw9XARYvz6buyXAi
-FL39vmwLAw==
------END CERTIFICATE-----
-
-Sonera Class 2 Root CA
-======================
------BEGIN CERTIFICATE-----
-MIIDIDCCAgigAwIBAgIBHTANBgkqhkiG9w0BAQUFADA5MQswCQYDVQQGEwJGSTEPMA0GA1UEChMG
-U29uZXJhMRkwFwYDVQQDExBTb25lcmEgQ2xhc3MyIENBMB4XDTAxMDQwNjA3Mjk0MFoXDTIxMDQw
-NjA3Mjk0MFowOTELMAkGA1UEBhMCRkkxDzANBgNVBAoTBlNvbmVyYTEZMBcGA1UEAxMQU29uZXJh
-IENsYXNzMiBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJAXSjWdyvANlsdE+hY3
-/Ei9vX+ALTU74W+oZ6m/AxxNjG8yR9VBaKQTBME1DJqEQ/xcHf+Js+gXGM2RX/uJ4+q/Tl18GybT
-dXnt5oTjV+WtKcT0OijnpXuENmmz/V52vaMtmdOQTiMofRhj8VQ7Jp12W5dCsv+u8E7s3TmVToMG
-f+dJQMjFAbJUWmYdPfz56TwKnoG4cPABi+QjVHzIrviQHgCWctRUz2EjvOr7nQKV0ba5cTppCD8P
-tOFCx4j1P5iop7oc4HFx71hXgVB6XGt0Rg6DA5jDjqhu8nYybieDwnPz3BjotJPqdURrBGAgcVeH
-nfO+oJAjPYok4doh28MCAwEAAaMzMDEwDwYDVR0TAQH/BAUwAwEB/zARBgNVHQ4ECgQISqCqWITT
-XjwwCwYDVR0PBAQDAgEGMA0GCSqGSIb3DQEBBQUAA4IBAQBazof5FnIVV0sd2ZvnoiYw7JNn39Yt
-0jSv9zilzqsWuasvfDXLrNAPtEwr/IDva4yRXzZ299uzGxnq9LIR/WFxRL8oszodv7ND6J+/3DEI
-cbCdjdY0RzKQxmUk96BKfARzjzlvF4xytb1LyHr4e4PDKE6cCepnP7JnBBvDFNr450kkkdAdavph
-Oe9r5yF1BgfYErQhIHBCcYHaPJo2vqZbDWpsmh+Re/n570K6Tk6ezAyNlNzZRZxe7EJQY670XcSx
-EtzKO6gunRRaBXW37Ndj4ro1tgQIkejanZz2ZrUYrAqmVCY0M9IbwdR/GjqOC6oybtv8TyWf2TLH
-llpwrN9M
------END CERTIFICATE-----
-
-XRamp Global CA Root
-====================
------BEGIN CERTIFICATE-----
-MIIEMDCCAxigAwIBAgIQUJRs7Bjq1ZxN1ZfvdY+grTANBgkqhkiG9w0BAQUFADCBgjELMAkGA1UE
-BhMCVVMxHjAcBgNVBAsTFXd3dy54cmFtcHNlY3VyaXR5LmNvbTEkMCIGA1UEChMbWFJhbXAgU2Vj
-dXJpdHkgU2VydmljZXMgSW5jMS0wKwYDVQQDEyRYUmFtcCBHbG9iYWwgQ2VydGlmaWNhdGlvbiBB
-dXRob3JpdHkwHhcNMDQxMTAxMTcxNDA0WhcNMzUwMTAxMDUzNzE5WjCBgjELMAkGA1UEBhMCVVMx
-HjAcBgNVBAsTFXd3dy54cmFtcHNlY3VyaXR5LmNvbTEkMCIGA1UEChMbWFJhbXAgU2VjdXJpdHkg
-U2VydmljZXMgSW5jMS0wKwYDVQQDEyRYUmFtcCBHbG9iYWwgQ2VydGlmaWNhdGlvbiBBdXRob3Jp
-dHkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCYJB69FbS638eMpSe2OAtp87ZOqCwu
-IR1cRN8hXX4jdP5efrRKt6atH67gBhbim1vZZ3RrXYCPKZ2GG9mcDZhtdhAoWORlsH9KmHmf4MMx
-foArtYzAQDsRhtDLooY2YKTVMIJt2W7QDxIEM5dfT2Fa8OT5kavnHTu86M/0ay00fOJIYRyO82FE
-zG+gSqmUsE3a56k0enI4qEHMPJQRfevIpoy3hsvKMzvZPTeL+3o+hiznc9cKV6xkmxnr9A8ECIqs
-AxcZZPRaJSKNNCyy9mgdEm3Tih4U2sSPpuIjhdV6Db1q4Ons7Be7QhtnqiXtRYMh/MHJfNViPvry
-xS3T/dRlAgMBAAGjgZ8wgZwwEwYJKwYBBAGCNxQCBAYeBABDAEEwCwYDVR0PBAQDAgGGMA8GA1Ud
-EwEB/wQFMAMBAf8wHQYDVR0OBBYEFMZPoj0GY4QJnM5i5ASsjVy16bYbMDYGA1UdHwQvMC0wK6Ap
-oCeGJWh0dHA6Ly9jcmwueHJhbXBzZWN1cml0eS5jb20vWEdDQS5jcmwwEAYJKwYBBAGCNxUBBAMC
-AQEwDQYJKoZIhvcNAQEFBQADggEBAJEVOQMBG2f7Shz5CmBbodpNl2L5JFMn14JkTpAuw0kbK5rc
-/Kh4ZzXxHfARvbdI4xD2Dd8/0sm2qlWkSLoC295ZLhVbO50WfUfXN+pfTXYSNrsf16GBBEYgoyxt
-qZ4Bfj8pzgCT3/3JknOJiWSe5yvkHJEs0rnOfc5vMZnT5r7SHpDwCRR5XCOrTdLaIR9NmXmd4c8n
-nxCbHIgNsIpkQTG4DmyQJKSbXHGPurt+HBvbaoAPIbzp26a3QPSyi6mx5O+aGtA9aZnuqCij4Tyz
-8LIRnM98QObd50N9otg6tamN8jSZxNQQ4Qb9CYQQO+7ETPTsJ3xCwnR8gooJybQDJbw=
------END CERTIFICATE-----
-
-Go Daddy Class 2 CA
-===================
------BEGIN CERTIFICATE-----
-MIIEADCCAuigAwIBAgIBADANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJVUzEhMB8GA1UEChMY
-VGhlIEdvIERhZGR5IEdyb3VwLCBJbmMuMTEwLwYDVQQLEyhHbyBEYWRkeSBDbGFzcyAyIENlcnRp
-ZmljYXRpb24gQXV0aG9yaXR5MB4XDTA0MDYyOTE3MDYyMFoXDTM0MDYyOTE3MDYyMFowYzELMAkG
-A1UEBhMCVVMxITAfBgNVBAoTGFRoZSBHbyBEYWRkeSBHcm91cCwgSW5jLjExMC8GA1UECxMoR28g
-RGFkZHkgQ2xhc3MgMiBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTCCASAwDQYJKoZIhvcNAQEBBQAD
-ggENADCCAQgCggEBAN6d1+pXGEmhW+vXX0iG6r7d/+TvZxz0ZWizV3GgXne77ZtJ6XCAPVYYYwhv
-2vLM0D9/AlQiVBDYsoHUwHU9S3/Hd8M+eKsaA7Ugay9qK7HFiH7Eux6wwdhFJ2+qN1j3hybX2C32
-qRe3H3I2TqYXP2WYktsqbl2i/ojgC95/5Y0V4evLOtXiEqITLdiOr18SPaAIBQi2XKVlOARFmR6j
-YGB0xUGlcmIbYsUfb18aQr4CUWWoriMYavx4A6lNf4DD+qta/KFApMoZFv6yyO9ecw3ud72a9nmY
-vLEHZ6IVDd2gWMZEewo+YihfukEHU1jPEX44dMX4/7VpkI+EdOqXG68CAQOjgcAwgb0wHQYDVR0O
-BBYEFNLEsNKR1EwRcbNhyz2h/t2oatTjMIGNBgNVHSMEgYUwgYKAFNLEsNKR1EwRcbNhyz2h/t2o
-atTjoWekZTBjMQswCQYDVQQGEwJVUzEhMB8GA1UEChMYVGhlIEdvIERhZGR5IEdyb3VwLCBJbmMu
-MTEwLwYDVQQLEyhHbyBEYWRkeSBDbGFzcyAyIENlcnRpZmljYXRpb24gQXV0aG9yaXR5ggEAMAwG
-A1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBADJL87LKPpH8EsahB4yOd6AzBhRckB4Y9wim
-PQoZ+YeAEW5p5JYXMP80kWNyOO7MHAGjHZQopDH2esRU1/blMVgDoszOYtuURXO1v0XJJLXVggKt
-I3lpjbi2Tc7PTMozI+gciKqdi0FuFskg5YmezTvacPd+mSYgFFQlq25zheabIZ0KbIIOqPjCDPoQ
-HmyW74cNxA9hi63ugyuV+I6ShHI56yDqg+2DzZduCLzrTia2cyvk0/ZM/iZx4mERdEr/VxqHD3VI
-Ls9RaRegAhJhldXRQLIQTO7ErBBDpqWeCtWVYpoNz4iCxTIM5CufReYNnyicsbkqWletNw+vHX/b
-vZ8=
------END CERTIFICATE-----
-
-Starfield Class 2 CA
-====================
------BEGIN CERTIFICATE-----
-MIIEDzCCAvegAwIBAgIBADANBgkqhkiG9w0BAQUFADBoMQswCQYDVQQGEwJVUzElMCMGA1UEChMc
-U3RhcmZpZWxkIFRlY2hub2xvZ2llcywgSW5jLjEyMDAGA1UECxMpU3RhcmZpZWxkIENsYXNzIDIg
-Q2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMDQwNjI5MTczOTE2WhcNMzQwNjI5MTczOTE2WjBo
-MQswCQYDVQQGEwJVUzElMCMGA1UEChMcU3RhcmZpZWxkIFRlY2hub2xvZ2llcywgSW5jLjEyMDAG
-A1UECxMpU3RhcmZpZWxkIENsYXNzIDIgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggEgMA0GCSqG
-SIb3DQEBAQUAA4IBDQAwggEIAoIBAQC3Msj+6XGmBIWtDBFk385N78gDGIc/oav7PKaf8MOh2tTY
-bitTkPskpD6E8J7oX+zlJ0T1KKY/e97gKvDIr1MvnsoFAZMej2YcOadN+lq2cwQlZut3f+dZxkqZ
-JRRU6ybH838Z1TBwj6+wRir/resp7defqgSHo9T5iaU0X9tDkYI22WY8sbi5gv2cOj4QyDvvBmVm
-epsZGD3/cVE8MC5fvj13c7JdBmzDI1aaK4UmkhynArPkPw2vCHmCuDY96pzTNbO8acr1zJ3o/WSN
-F4Azbl5KXZnJHoe0nRrA1W4TNSNe35tfPe/W93bC6j67eA0cQmdrBNj41tpvi/JEoAGrAgEDo4HF
-MIHCMB0GA1UdDgQWBBS/X7fRzt0fhvRbVazc1xDCDqmI5zCBkgYDVR0jBIGKMIGHgBS/X7fRzt0f
-hvRbVazc1xDCDqmI56FspGowaDELMAkGA1UEBhMCVVMxJTAjBgNVBAoTHFN0YXJmaWVsZCBUZWNo
-bm9sb2dpZXMsIEluYy4xMjAwBgNVBAsTKVN0YXJmaWVsZCBDbGFzcyAyIENlcnRpZmljYXRpb24g
-QXV0aG9yaXR5ggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBAAWdP4id0ckaVaGs
-afPzWdqbAYcaT1epoXkJKtv3L7IezMdeatiDh6GX70k1PncGQVhiv45YuApnP+yz3SFmH8lU+nLM
-PUxA2IGvd56Deruix/U0F47ZEUD0/CwqTRV/p2JdLiXTAAsgGh1o+Re49L2L7ShZ3U0WixeDyLJl
-xy16paq8U4Zt3VekyvggQQto8PT7dL5WXXp59fkdheMtlb71cZBDzI0fmgAKhynpVSJYACPq4xJD
-KVtHCN2MQWplBqjlIapBtJUhlbl90TSrE9atvNziPTnNvT51cKEYWQPJIrSPnNVeKtelttQKbfi3
-QBFGmh95DmK/D5fs4C8fF5Q=
------END CERTIFICATE-----
-
-Taiwan GRCA
-===========
------BEGIN CERTIFICATE-----
-MIIFcjCCA1qgAwIBAgIQH51ZWtcvwgZEpYAIaeNe9jANBgkqhkiG9w0BAQUFADA/MQswCQYDVQQG
-EwJUVzEwMC4GA1UECgwnR292ZXJubWVudCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4X
-DTAyMTIwNTEzMjMzM1oXDTMyMTIwNTEzMjMzM1owPzELMAkGA1UEBhMCVFcxMDAuBgNVBAoMJ0dv
-dmVybm1lbnQgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTCCAiIwDQYJKoZIhvcNAQEBBQAD
-ggIPADCCAgoCggIBAJoluOzMonWoe/fOW1mKydGGEghU7Jzy50b2iPN86aXfTEc2pBsBHH8eV4qN
-w8XRIePaJD9IK/ufLqGU5ywck9G/GwGHU5nOp/UKIXZ3/6m3xnOUT0b3EEk3+qhZSV1qgQdW8or5
-BtD3cCJNtLdBuTK4sfCxw5w/cP1T3YGq2GN49thTbqGsaoQkclSGxtKyyhwOeYHWtXBiCAEuTk8O
-1RGvqa/lmr/czIdtJuTJV6L7lvnM4T9TjGxMfptTCAtsF/tnyMKtsc2AtJfcdgEWFelq16TheEfO
-htX7MfP6Mb40qij7cEwdScevLJ1tZqa2jWR+tSBqnTuBto9AAGdLiYa4zGX+FVPpBMHWXx1E1wov
-J5pGfaENda1UhhXcSTvxls4Pm6Dso3pdvtUqdULle96ltqqvKKyskKw4t9VoNSZ63Pc78/1Fm9G7
-Q3hub/FCVGqY8A2tl+lSXunVanLeavcbYBT0peS2cWeqH+riTcFCQP5nRhc4L0c/cZyu5SHKYS1t
-B6iEfC3uUSXxY5Ce/eFXiGvviiNtsea9P63RPZYLhY3Naye7twWb7LuRqQoHEgKXTiCQ8P8NHuJB
-O9NAOueNXdpm5AKwB1KYXA6OM5zCppX7VRluTI6uSw+9wThNXo+EHWbNxWCWtFJaBYmOlXqYwZE8
-lSOyDvR5tMl8wUohAgMBAAGjajBoMB0GA1UdDgQWBBTMzO/MKWCkO7GStjz6MmKPrCUVOzAMBgNV
-HRMEBTADAQH/MDkGBGcqBwAEMTAvMC0CAQAwCQYFKw4DAhoFADAHBgVnKgMAAAQUA5vwIhP/lSg2
-09yewDL7MTqKUWUwDQYJKoZIhvcNAQEFBQADggIBAECASvomyc5eMN1PhnR2WPWus4MzeKR6dBcZ
-TulStbngCnRiqmjKeKBMmo4sIy7VahIkv9Ro04rQ2JyftB8M3jh+Vzj8jeJPXgyfqzvS/3WXy6Tj
-Zwj/5cAWtUgBfen5Cv8b5Wppv3ghqMKnI6mGq3ZW6A4M9hPdKmaKZEk9GhiHkASfQlK3T8v+R0F2
-Ne//AHY2RTKbxkaFXeIksB7jSJaYV0eUVXoPQbFEJPPB/hprv4j9wabak2BegUqZIJxIZhm1AHlU
-D7gsL0u8qV1bYH+Mh6XgUmMqvtg7hUAV/h62ZT/FS9p+tXo1KaMuephgIqP0fSdOLeq0dDzpD6Qz
-DxARvBMB1uUO07+1EqLhRSPAzAhuYbeJq4PjJB7mXQfnHyA+z2fI56wwbSdLaG5LKlwCCDTb+Hbk
-Z6MmnD+iMsJKxYEYMRBWqoTvLQr/uB930r+lWKBi5NdLkXWNiYCYfm3LU05er/ayl4WXudpVBrkk
-7tfGOB5jGxI7leFYrPLfhNVfmS8NVVvmONsuP3LpSIXLuykTjx44VbnzssQwmSNOXfJIoRIM3BKQ
-CZBUkQM8R+XVyWXgt0t97EfTsws+rZ7QdAAO671RrcDeLMDDav7v3Aun+kbfYNucpllQdSNpc5Oy
-+fwC00fmcc4QAu4njIT/rEUNE1yDMuAlpYYsfPQS
------END CERTIFICATE-----
-
-DigiCert Assured ID Root CA
-===========================
------BEGIN CERTIFICATE-----
-MIIDtzCCAp+gAwIBAgIQDOfg5RfYRv6P5WD8G/AwOTANBgkqhkiG9w0BAQUFADBlMQswCQYDVQQG
-EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSQw
-IgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgQ0EwHhcNMDYxMTEwMDAwMDAwWhcNMzEx
-MTEwMDAwMDAwWjBlMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQL
-ExB3d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgQ0Ew
-ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCtDhXO5EOAXLGH87dg+XESpa7cJpSIqvTO
-9SA5KFhgDPiA2qkVlTJhPLWxKISKityfCgyDF3qPkKyK53lTXDGEKvYPmDI2dsze3Tyoou9q+yHy
-UmHfnyDXH+Kx2f4YZNISW1/5WBg1vEfNoTb5a3/UsDg+wRvDjDPZ2C8Y/igPs6eD1sNuRMBhNZYW
-/lmci3Zt1/GiSw0r/wty2p5g0I6QNcZ4VYcgoc/lbQrISXwxmDNsIumH0DJaoroTghHtORedmTpy
-oeb6pNnVFzF1roV9Iq4/AUaG9ih5yLHa5FcXxH4cDrC0kqZWs72yl+2qp/C3xag/lRbQ/6GW6whf
-GHdPAgMBAAGjYzBhMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRF
-66Kv9JLLgjEtUYunpyGd823IDzAfBgNVHSMEGDAWgBRF66Kv9JLLgjEtUYunpyGd823IDzANBgkq
-hkiG9w0BAQUFAAOCAQEAog683+Lt8ONyc3pklL/3cmbYMuRCdWKuh+vy1dneVrOfzM4UKLkNl2Bc
-EkxY5NM9g0lFWJc1aRqoR+pWxnmrEthngYTffwk8lOa4JiwgvT2zKIn3X/8i4peEH+ll74fg38Fn
-SbNd67IJKusm7Xi+fT8r87cmNW1fiQG2SVufAQWbqz0lwcy2f8Lxb4bG+mRo64EtlOtCt/qMHt1i
-8b5QZ7dsvfPxH2sMNgcWfzd8qVttevESRmCD1ycEvkvOl77DZypoEd+A5wwzZr8TDRRu838fYxAe
-+o0bJW1sj6W3YQGx0qMmoRBxna3iw/nDmVG3KwcIzi7mULKn+gpFL6Lw8g==
------END CERTIFICATE-----
-
-DigiCert Global Root CA
-=======================
------BEGIN CERTIFICATE-----
-MIIDrzCCApegAwIBAgIQCDvgVpBCRrGhdWrJWZHHSjANBgkqhkiG9w0BAQUFADBhMQswCQYDVQQG
-EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSAw
-HgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBDQTAeFw0wNjExMTAwMDAwMDBaFw0zMTExMTAw
-MDAwMDBaMGExCzAJBgNVBAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3
-dy5kaWdpY2VydC5jb20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IENBMIIBIjANBgkq
-hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4jvhEXLeqKTTo1eqUKKPC3eQyaKl7hLOllsBCSDMAZOn
-TjC3U/dDxGkAV53ijSLdhwZAAIEJzs4bg7/fzTtxRuLWZscFs3YnFo97nh6Vfe63SKMI2tavegw5
-BmV/Sl0fvBf4q77uKNd0f3p4mVmFaG5cIzJLv07A6Fpt43C/dxC//AH2hdmoRBBYMql1GNXRor5H
-4idq9Joz+EkIYIvUX7Q6hL+hqkpMfT7PT19sdl6gSzeRntwi5m3OFBqOasv+zbMUZBfHWymeMr/y
-7vrTC0LUq7dBMtoM1O/4gdW7jVg/tRvoSSiicNoxBN33shbyTApOB6jtSj1etX+jkMOvJwIDAQAB
-o2MwYTAOBgNVHQ8BAf8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUA95QNVbRTLtm
-8KPiGxvDl7I90VUwHwYDVR0jBBgwFoAUA95QNVbRTLtm8KPiGxvDl7I90VUwDQYJKoZIhvcNAQEF
-BQADggEBAMucN6pIExIK+t1EnE9SsPTfrgT1eXkIoyQY/EsrhMAtudXH/vTBH1jLuG2cenTnmCmr
-EbXjcKChzUyImZOMkXDiqw8cvpOp/2PV5Adg06O/nVsJ8dWO41P0jmP6P6fbtGbfYmbW0W5BjfIt
-tep3Sp+dWOIrWcBAI+0tKIJFPnlUkiaY4IBIqDfv8NZ5YBberOgOzW6sRBc4L0na4UU+Krk2U886
-UAb3LujEV0lsYSEY1QSteDwsOoBrp+uvFRTp2InBuThs4pFsiv9kuXclVzDAGySj4dzp30d8tbQk
-CAUw7C29C79Fv1C5qfPrmAESrciIxpg0X40KPMbp1ZWVbd4=
------END CERTIFICATE-----
-
-DigiCert High Assurance EV Root CA
-==================================
------BEGIN CERTIFICATE-----
-MIIDxTCCAq2gAwIBAgIQAqxcJmoLQJuPC3nyrkYldzANBgkqhkiG9w0BAQUFADBsMQswCQYDVQQG
-EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSsw
-KQYDVQQDEyJEaWdpQ2VydCBIaWdoIEFzc3VyYW5jZSBFViBSb290IENBMB4XDTA2MTExMDAwMDAw
-MFoXDTMxMTExMDAwMDAwMFowbDELMAkGA1UEBhMCVVMxFTATBgNVBAoTDERpZ2lDZXJ0IEluYzEZ
-MBcGA1UECxMQd3d3LmRpZ2ljZXJ0LmNvbTErMCkGA1UEAxMiRGlnaUNlcnQgSGlnaCBBc3N1cmFu
-Y2UgRVYgUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMbM5XPm+9S75S0t
-Mqbf5YE/yc0lSbZxKsPVlDRnogocsF9ppkCxxLeyj9CYpKlBWTrT3JTWPNt0OKRKzE0lgvdKpVMS
-OO7zSW1xkX5jtqumX8OkhPhPYlG++MXs2ziS4wblCJEMxChBVfvLWokVfnHoNb9Ncgk9vjo4UFt3
-MRuNs8ckRZqnrG0AFFoEt7oT61EKmEFBIk5lYYeBQVCmeVyJ3hlKV9Uu5l0cUyx+mM0aBhakaHPQ
-NAQTXKFx01p8VdteZOE3hzBWBOURtCmAEvF5OYiiAhF8J2a3iLd48soKqDirCmTCv2ZdlYTBoSUe
-h10aUAsgEsxBu24LUTi4S8sCAwEAAaNjMGEwDgYDVR0PAQH/BAQDAgGGMA8GA1UdEwEB/wQFMAMB
-Af8wHQYDVR0OBBYEFLE+w2kD+L9HAdSYJhoIAu9jZCvDMB8GA1UdIwQYMBaAFLE+w2kD+L9HAdSY
-JhoIAu9jZCvDMA0GCSqGSIb3DQEBBQUAA4IBAQAcGgaX3NecnzyIZgYIVyHbIUf4KmeqvxgydkAQ
-V8GK83rZEWWONfqe/EW1ntlMMUu4kehDLI6zeM7b41N5cdblIZQB2lWHmiRk9opmzN6cN82oNLFp
-myPInngiK3BD41VHMWEZ71jFhS9OMPagMRYjyOfiZRYzy78aG6A9+MpeizGLYAiJLQwGXFK3xPkK
-mNEVX58Svnw2Yzi9RKR/5CYrCsSXaQ3pjOLAEFe4yHYSkVXySGnYvCoCWw9E1CAx2/S6cCZdkGCe
-vEsXCS+0yx5DaMkHJ8HSXPfqIbloEpw8nL+e/IBcm2PN7EeqJSdnoDfzAIJ9VNep+OkuE6N36B9K
------END CERTIFICATE-----
-
-Certplus Class 2 Primary CA
-===========================
------BEGIN CERTIFICATE-----
-MIIDkjCCAnqgAwIBAgIRAIW9S/PY2uNp9pTXX8OlRCMwDQYJKoZIhvcNAQEFBQAwPTELMAkGA1UE
-BhMCRlIxETAPBgNVBAoTCENlcnRwbHVzMRswGQYDVQQDExJDbGFzcyAyIFByaW1hcnkgQ0EwHhcN
-OTkwNzA3MTcwNTAwWhcNMTkwNzA2MjM1OTU5WjA9MQswCQYDVQQGEwJGUjERMA8GA1UEChMIQ2Vy
-dHBsdXMxGzAZBgNVBAMTEkNsYXNzIDIgUHJpbWFyeSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP
-ADCCAQoCggEBANxQltAS+DXSCHh6tlJw/W/uz7kRy1134ezpfgSN1sxvc0NXYKwzCkTsA18cgCSR
-5aiRVhKC9+Ar9NuuYS6JEI1rbLqzAr3VNsVINyPi8Fo3UjMXEuLRYE2+L0ER4/YXJQyLkcAbmXuZ
-Vg2v7tK8R1fjeUl7NIknJITesezpWE7+Tt9avkGtrAjFGA7v0lPubNCdEgETjdyAYveVqUSISnFO
-YFWe2yMZeVYHDD9jC1yw4r5+FfyUM1hBOHTE4Y+L3yasH7WLO7dDWWuwJKZtkIvEcupdM5i3y95e
-e++U8Rs+yskhwcWYAqqi9lt3m/V+llU0HGdpwPFC40es/CgcZlUCAwEAAaOBjDCBiTAPBgNVHRME
-CDAGAQH/AgEKMAsGA1UdDwQEAwIBBjAdBgNVHQ4EFgQU43Mt38sOKAze3bOkynm4jrvoMIkwEQYJ
-YIZIAYb4QgEBBAQDAgEGMDcGA1UdHwQwMC4wLKAqoCiGJmh0dHA6Ly93d3cuY2VydHBsdXMuY29t
-L0NSTC9jbGFzczIuY3JsMA0GCSqGSIb3DQEBBQUAA4IBAQCnVM+IRBnL39R/AN9WM2K191EBkOvD
-P9GIROkkXe/nFL0gt5o8AP5tn9uQ3Nf0YtaLcF3n5QRIqWh8yfFC82x/xXp8HVGIutIKPidd3i1R
-TtMTZGnkLuPT55sJmabglZvOGtd/vjzOUrMRFcEPF80Du5wlFbqidon8BvEY0JNLDnyCt6X09l/+
-7UCmnYR0ObncHoUW2ikbhiMAybuJfm6AiB4vFLQDJKgybwOaRywwvlbGp0ICcBvqQNi6BQNwB6SW
-//1IMwrh3KWBkJtN3X3n57LNXMhqlfil9o3EXXgIvnsG1knPGTZQIy4I5p4FTUcY1Rbpsda2ENW7
-l7+ijrRU
------END CERTIFICATE-----
-
-DST Root CA X3
-==============
------BEGIN CERTIFICATE-----
-MIIDSjCCAjKgAwIBAgIQRK+wgNajJ7qJMDmGLvhAazANBgkqhkiG9w0BAQUFADA/MSQwIgYDVQQK
-ExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAMTDkRTVCBSb290IENBIFgzMB4X
-DTAwMDkzMDIxMTIxOVoXDTIxMDkzMDE0MDExNVowPzEkMCIGA1UEChMbRGlnaXRhbCBTaWduYXR1
-cmUgVHJ1c3QgQ28uMRcwFQYDVQQDEw5EU1QgUm9vdCBDQSBYMzCCASIwDQYJKoZIhvcNAQEBBQAD
-ggEPADCCAQoCggEBAN+v6ZdQCINXtMxiZfaQguzH0yxrMMpb7NnDfcdAwRgUi+DoM3ZJKuM/IUmT
-rE4Orz5Iy2Xu/NMhD2XSKtkyj4zl93ewEnu1lcCJo6m67XMuegwGMoOifooUMM0RoOEqOLl5CjH9
-UL2AZd+3UWODyOKIYepLYYHsUmu5ouJLGiifSKOeDNoJjj4XLh7dIN9bxiqKqy69cK3FCxolkHRy
-xXtqqzTWMIn/5WgTe1QLyNau7Fqckh49ZLOMxt+/yUFw7BZy1SbsOFU5Q9D8/RhcQPGX69Wam40d
-utolucbY38EVAjqr2m7xPi71XAicPNaDaeQQmxkqtilX4+U9m5/wAl0CAwEAAaNCMEAwDwYDVR0T
-AQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFMSnsaR7LHH62+FLkHX/xBVghYkQ
-MA0GCSqGSIb3DQEBBQUAA4IBAQCjGiybFwBcqR7uKGY3Or+Dxz9LwwmglSBd49lZRNI+DT69ikug
-dB/OEIKcdBodfpga3csTS7MgROSR6cz8faXbauX+5v3gTt23ADq1cEmv8uXrAvHRAosZy5Q6XkjE
-GB5YGV8eAlrwDPGxrancWYaLbumR9YbK+rlmM6pZW87ipxZzR8srzJmwN0jP41ZL9c8PDHIyh8bw
-RLtTcm1D9SZImlJnt1ir/md2cXjbDaJWFBM5JDGFoqgCWjBH4d1QB7wCCZAA62RjYJsWvIjJEubS
-fZGL+T0yjWW06XyxV3bqxbYoOb8VZRzI9neWagqNdwvYkQsEjgfbKbYK7p2CNTUQ
------END CERTIFICATE-----
-
-SwissSign Gold CA - G2
-======================
------BEGIN CERTIFICATE-----
-MIIFujCCA6KgAwIBAgIJALtAHEP1Xk+wMA0GCSqGSIb3DQEBBQUAMEUxCzAJBgNVBAYTAkNIMRUw
-EwYDVQQKEwxTd2lzc1NpZ24gQUcxHzAdBgNVBAMTFlN3aXNzU2lnbiBHb2xkIENBIC0gRzIwHhcN
-MDYxMDI1MDgzMDM1WhcNMzYxMDI1MDgzMDM1WjBFMQswCQYDVQQGEwJDSDEVMBMGA1UEChMMU3dp
-c3NTaWduIEFHMR8wHQYDVQQDExZTd2lzc1NpZ24gR29sZCBDQSAtIEcyMIICIjANBgkqhkiG9w0B
-AQEFAAOCAg8AMIICCgKCAgEAr+TufoskDhJuqVAtFkQ7kpJcyrhdhJJCEyq8ZVeCQD5XJM1QiyUq
-t2/876LQwB8CJEoTlo8jE+YoWACjR8cGp4QjK7u9lit/VcyLwVcfDmJlD909Vopz2q5+bbqBHH5C
-jCA12UNNhPqE21Is8w4ndwtrvxEvcnifLtg+5hg3Wipy+dpikJKVyh+c6bM8K8vzARO/Ws/BtQpg
-vd21mWRTuKCWs2/iJneRjOBiEAKfNA+k1ZIzUd6+jbqEemA8atufK+ze3gE/bk3lUIbLtK/tREDF
-ylqM2tIrfKjuvqblCqoOpd8FUrdVxyJdMmqXl2MT28nbeTZ7hTpKxVKJ+STnnXepgv9VHKVxaSvR
-AiTysybUa9oEVeXBCsdtMDeQKuSeFDNeFhdVxVu1yzSJkvGdJo+hB9TGsnhQ2wwMC3wLjEHXuend
-jIj3o02yMszYF9rNt85mndT9Xv+9lz4pded+p2JYryU0pUHHPbwNUMoDAw8IWh+Vc3hiv69yFGkO
-peUDDniOJihC8AcLYiAQZzlG+qkDzAQ4embvIIO1jEpWjpEA/I5cgt6IoMPiaG59je883WX0XaxR
-7ySArqpWl2/5rX3aYT+YdzylkbYcjCbaZaIJbcHiVOO5ykxMgI93e2CaHt+28kgeDrpOVG2Y4OGi
-GqJ3UM/EY5LsRxmd6+ZrzsECAwEAAaOBrDCBqTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUw
-AwEB/zAdBgNVHQ4EFgQUWyV7lqRlUX64OfPAeGZe6Drn8O4wHwYDVR0jBBgwFoAUWyV7lqRlUX64
-OfPAeGZe6Drn8O4wRgYDVR0gBD8wPTA7BglghXQBWQECAQEwLjAsBggrBgEFBQcCARYgaHR0cDov
-L3JlcG9zaXRvcnkuc3dpc3NzaWduLmNvbS8wDQYJKoZIhvcNAQEFBQADggIBACe645R88a7A3hfm
-5djV9VSwg/S7zV4Fe0+fdWavPOhWfvxyeDgD2StiGwC5+OlgzczOUYrHUDFu4Up+GC9pWbY9ZIEr
-44OE5iKHjn3g7gKZYbge9LgriBIWhMIxkziWMaa5O1M/wySTVltpkuzFwbs4AOPsF6m43Md8AYOf
-Mke6UiI0HTJ6CVanfCU2qT1L2sCCbwq7EsiHSycR+R4tx5M/nttfJmtS2S6K8RTGRI0Vqbe/vd6m
-Gu6uLftIdxf+u+yvGPUqUfA5hJeVbG4bwyvEdGB5JbAKJ9/fXtI5z0V9QkvfsywexcZdylU6oJxp
-mo/a77KwPJ+HbBIrZXAVUjEaJM9vMSNQH4xPjyPDdEFjHFWoFN0+4FFQz/EbMFYOkrCChdiDyyJk
-vC24JdVUorgG6q2SpCSgwYa1ShNqR88uC1aVVMvOmttqtKay20EIhid392qgQmwLOM7XdVAyksLf
-KzAiSNDVQTglXaTpXZ/GlHXQRf0wl0OPkKsKx4ZzYEppLd6leNcG2mqeSz53OiATIgHQv2ieY2Br
-NU0LbbqhPcCT4H8js1WtciVORvnSFu+wZMEBnunKoGqYDs/YYPIvSbjkQuE4NRb0yG5P94FW6Lqj
-viOvrv1vA+ACOzB2+httQc8Bsem4yWb02ybzOqR08kkkW8mw0FfB+j564ZfJ
------END CERTIFICATE-----
-
-SwissSign Silver CA - G2
-========================
------BEGIN CERTIFICATE-----
-MIIFvTCCA6WgAwIBAgIITxvUL1S7L0swDQYJKoZIhvcNAQEFBQAwRzELMAkGA1UEBhMCQ0gxFTAT
-BgNVBAoTDFN3aXNzU2lnbiBBRzEhMB8GA1UEAxMYU3dpc3NTaWduIFNpbHZlciBDQSAtIEcyMB4X
-DTA2MTAyNTA4MzI0NloXDTM2MTAyNTA4MzI0NlowRzELMAkGA1UEBhMCQ0gxFTATBgNVBAoTDFN3
-aXNzU2lnbiBBRzEhMB8GA1UEAxMYU3dpc3NTaWduIFNpbHZlciBDQSAtIEcyMIICIjANBgkqhkiG
-9w0BAQEFAAOCAg8AMIICCgKCAgEAxPGHf9N4Mfc4yfjDmUO8x/e8N+dOcbpLj6VzHVxumK4DV644
-N0MvFz0fyM5oEMF4rhkDKxD6LHmD9ui5aLlV8gREpzn5/ASLHvGiTSf5YXu6t+WiE7brYT7QbNHm
-+/pe7R20nqA1W6GSy/BJkv6FCgU+5tkL4k+73JU3/JHpMjUi0R86TieFnbAVlDLaYQ1HTWBCrpJH
-6INaUFjpiou5XaHc3ZlKHzZnu0jkg7Y360g6rw9njxcH6ATK72oxh9TAtvmUcXtnZLi2kUpCe2Uu
-MGoM9ZDulebyzYLs2aFK7PayS+VFheZteJMELpyCbTapxDFkH4aDCyr0NQp4yVXPQbBH6TCfmb5h
-qAaEuSh6XzjZG6k4sIN/c8HDO0gqgg8hm7jMqDXDhBuDsz6+pJVpATqJAHgE2cn0mRmrVn5bi4Y5
-FZGkECwJMoBgs5PAKrYYC51+jUnyEEp/+dVGLxmSo5mnJqy7jDzmDrxHB9xzUfFwZC8I+bRHHTBs
-ROopN4WSaGa8gzj+ezku01DwH/teYLappvonQfGbGHLy9YR0SslnxFSuSGTfjNFusB3hB48IHpmc
-celM2KX3RxIfdNFRnobzwqIjQAtz20um53MGjMGg6cFZrEb65i/4z3GcRm25xBWNOHkDRUjvxF3X
-CO6HOSKGsg0PWEP3calILv3q1h8CAwEAAaOBrDCBqTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/
-BAUwAwEB/zAdBgNVHQ4EFgQUF6DNweRBtjpbO8tFnb0cwpj6hlgwHwYDVR0jBBgwFoAUF6DNweRB
-tjpbO8tFnb0cwpj6hlgwRgYDVR0gBD8wPTA7BglghXQBWQEDAQEwLjAsBggrBgEFBQcCARYgaHR0
-cDovL3JlcG9zaXRvcnkuc3dpc3NzaWduLmNvbS8wDQYJKoZIhvcNAQEFBQADggIBAHPGgeAn0i0P
-4JUw4ppBf1AsX19iYamGamkYDHRJ1l2E6kFSGG9YrVBWIGrGvShpWJHckRE1qTodvBqlYJ7YH39F
-kWnZfrt4csEGDyrOj4VwYaygzQu4OSlWhDJOhrs9xCrZ1x9y7v5RoSJBsXECYxqCsGKrXlcSH9/L
-3XWgwF15kIwb4FDm3jH+mHtwX6WQ2K34ArZv02DdQEsixT2tOnqfGhpHkXkzuoLcMmkDlm4fS/Bx
-/uNncqCxv1yL5PqZIseEuRuNI5c/7SXgz2W79WEE790eslpBIlqhn10s6FvJbakMDHiqYMZWjwFa
-DGi8aRl5xB9+lwW/xekkUV7U1UtT7dkjWjYDZaPBA61BMPNGG4WQr2W11bHkFlt4dR2Xem1ZqSqP
-e97Dh4kQmUlzeMg9vVE1dCrV8X5pGyq7O70luJpaPXJhkGaH7gzWTdQRdAtq/gsD/KNVV4n+Ssuu
-WxcFyPKNIzFTONItaj+CuY0IavdeQXRuwxF+B6wpYJE/OMpXEA29MC/HpeZBoNquBYeaoKRlbEwJ
-DIm6uNO5wJOKMPqN5ZprFQFOZ6raYlY+hAhm0sQ2fac+EPyI4NSA5QC9qvNOBqN6avlicuMJT+ub
-DgEj8Z+7fNzcbBGXJbLytGMU0gYqZ4yD9c7qB9iaah7s5Aq7KkzrCWA5zspi2C5u
------END CERTIFICATE-----
-
-GeoTrust Primary Certification Authority
-========================================
------BEGIN CERTIFICATE-----
-MIIDfDCCAmSgAwIBAgIQGKy1av1pthU6Y2yv2vrEoTANBgkqhkiG9w0BAQUFADBYMQswCQYDVQQG
-EwJVUzEWMBQGA1UEChMNR2VvVHJ1c3QgSW5jLjExMC8GA1UEAxMoR2VvVHJ1c3QgUHJpbWFyeSBD
-ZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wNjExMjcwMDAwMDBaFw0zNjA3MTYyMzU5NTlaMFgx
-CzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMTEwLwYDVQQDEyhHZW9UcnVzdCBQ
-cmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
-CgKCAQEAvrgVe//UfH1nrYNke8hCUy3f9oQIIGHWAVlqnEQRr+92/ZV+zmEwu3qDXwK9AWbK7hWN
-b6EwnL2hhZ6UOvNWiAAxz9juapYC2e0DjPt1befquFUWBRaa9OBesYjAZIVcFU2Ix7e64HXprQU9
-nceJSOC7KMgD4TCTZF5SwFlwIjVXiIrxlQqD17wxcwE07e9GceBrAqg1cmuXm2bgyxx5X9gaBGge
-RwLmnWDiNpcB3841kt++Z8dtd1k7j53WkBWUvEI0EME5+bEnPn7WinXFsq+W06Lem+SYvn3h6YGt
-tm/81w7a4DSwDRp35+MImO9Y+pyEtzavwt+s0vQQBnBxNQIDAQABo0IwQDAPBgNVHRMBAf8EBTAD
-AQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQULNVQQZcVi/CPNmFbSvtr2ZnJM5IwDQYJKoZI
-hvcNAQEFBQADggEBAFpwfyzdtzRP9YZRqSa+S7iq8XEN3GHHoOo0Hnp3DwQ16CePbJC/kRYkRj5K
-Ts4rFtULUh38H2eiAkUxT87z+gOneZ1TatnaYzr4gNfTmeGl4b7UVXGYNTq+k+qurUKykG/g/CFN
-NWMziUnWm07Kx+dOCQD32sfvmWKZd7aVIl6KoKv0uHiYyjgZmclynnjNS6yvGaBzEi38wkG6gZHa
-Floxt/m0cYASSJlyc1pZU8FjUjPtp8nSOQJw+uCxQmYpqptR7TBUIhRf2asdweSU8Pj1K/fqynhG
-1riR/aYNKxoUAT6A8EKglQdebc3MS6RFjasS6LPeWuWgfOgPIh1a6Vk=
------END CERTIFICATE-----
-
-thawte Primary Root CA
-======================
------BEGIN CERTIFICATE-----
-MIIEIDCCAwigAwIBAgIQNE7VVyDV7exJ9C/ON9srbTANBgkqhkiG9w0BAQUFADCBqTELMAkGA1UE
-BhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2
-aWNlcyBEaXZpc2lvbjE4MDYGA1UECxMvKGMpIDIwMDYgdGhhd3RlLCBJbmMuIC0gRm9yIGF1dGhv
-cml6ZWQgdXNlIG9ubHkxHzAdBgNVBAMTFnRoYXd0ZSBQcmltYXJ5IFJvb3QgQ0EwHhcNMDYxMTE3
-MDAwMDAwWhcNMzYwNzE2MjM1OTU5WjCBqTELMAkGA1UEBhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwg
-SW5jLjEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjE4MDYGA1UECxMv
-KGMpIDIwMDYgdGhhd3RlLCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxHzAdBgNVBAMT
-FnRoYXd0ZSBQcmltYXJ5IFJvb3QgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCs
-oPD7gFnUnMekz52hWXMJEEUMDSxuaPFsW0hoSVk3/AszGcJ3f8wQLZU0HObrTQmnHNK4yZc2AreJ
-1CRfBsDMRJSUjQJib+ta3RGNKJpchJAQeg29dGYvajig4tVUROsdB58Hum/u6f1OCyn1PoSgAfGc
-q/gcfomk6KHYcWUNo1F77rzSImANuVud37r8UVsLr5iy6S7pBOhih94ryNdOwUxkHt3Ph1i6Sk/K
-aAcdHJ1KxtUvkcx8cXIcxcBn6zL9yZJclNqFwJu/U30rCfSMnZEfl2pSy94JNqR32HuHUETVPm4p
-afs5SSYeCaWAe0At6+gnhcn+Yf1+5nyXHdWdAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYD
-VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBR7W0XPr87Lev0xkhpqtvNG61dIUDANBgkqhkiG9w0BAQUF
-AAOCAQEAeRHAS7ORtvzw6WfUDW5FvlXok9LOAz/t2iWwHVfLHjp2oEzsUHboZHIMpKnxuIvW1oeE
-uzLlQRHAd9mzYJ3rG9XRbkREqaYB7FViHXe4XI5ISXycO1cRrK1zN44veFyQaEfZYGDm/Ac9IiAX
-xPcW6cTYcvnIc3zfFi8VqT79aie2oetaupgf1eNNZAqdE8hhuvU5HIe6uL17In/2/qxAeeWsEG89
-jxt5dovEN7MhGITlNgDrYyCZuen+MwS7QcjBAvlEYyCegc5C09Y/LHbTY5xZ3Y+m4Q6gLkH3LpVH
-z7z9M/P2C2F+fpErgUfCJzDupxBdN49cOSvkBPB7jVaMaA==
------END CERTIFICATE-----
-
-VeriSign Class 3 Public Primary Certification Authority - G5
-============================================================
------BEGIN CERTIFICATE-----
-MIIE0zCCA7ugAwIBAgIQGNrRniZ96LtKIVjNzGs7SjANBgkqhkiG9w0BAQUFADCByjELMAkGA1UE
-BhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBO
-ZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNiBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVk
-IHVzZSBvbmx5MUUwQwYDVQQDEzxWZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRp
-ZmljYXRpb24gQXV0aG9yaXR5IC0gRzUwHhcNMDYxMTA4MDAwMDAwWhcNMzYwNzE2MjM1OTU5WjCB
-yjELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2ln
-biBUcnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNiBWZXJpU2lnbiwgSW5jLiAtIEZvciBh
-dXRob3JpemVkIHVzZSBvbmx5MUUwQwYDVQQDEzxWZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmlt
-YXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw
-ggEKAoIBAQCvJAgIKXo1nmAMqudLO07cfLw8RRy7K+D+KQL5VwijZIUVJ/XxrcgxiV0i6CqqpkKz
-j/i5Vbext0uz/o9+B1fs70PbZmIVYc9gDaTY3vjgw2IIPVQT60nKWVSFJuUrjxuf6/WhkcIzSdhD
-Y2pSS9KP6HBRTdGJaXvHcPaz3BJ023tdS1bTlr8Vd6Gw9KIl8q8ckmcY5fQGBO+QueQA5N06tRn/
-Arr0PO7gi+s3i+z016zy9vA9r911kTMZHRxAy3QkGSGT2RT+rCpSx4/VBEnkjWNHiDxpg8v+R70r
-fk/Fla4OndTRQ8Bnc+MUCH7lP59zuDMKz10/NIeWiu5T6CUVAgMBAAGjgbIwga8wDwYDVR0TAQH/
-BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwbQYIKwYBBQUHAQwEYTBfoV2gWzBZMFcwVRYJaW1hZ2Uv
-Z2lmMCEwHzAHBgUrDgMCGgQUj+XTGoasjY5rw8+AatRIGCx7GS4wJRYjaHR0cDovL2xvZ28udmVy
-aXNpZ24uY29tL3ZzbG9nby5naWYwHQYDVR0OBBYEFH/TZafC3ey78DAJ80M5+gKvMzEzMA0GCSqG
-SIb3DQEBBQUAA4IBAQCTJEowX2LP2BqYLz3q3JktvXf2pXkiOOzEp6B4Eq1iDkVwZMXnl2YtmAl+
-X6/WzChl8gGqCBpH3vn5fJJaCGkgDdk+bW48DW7Y5gaRQBi5+MHt39tBquCWIMnNZBU4gcmU7qKE
-KQsTb47bDN0lAtukixlE0kF6BWlKWE9gyn6CagsCqiUXObXbf+eEZSqVir2G3l6BFoMtEMze/aiC
-Km0oHw0LxOXnGiYZ4fQRbxC1lfznQgUy286dUV4otp6F01vvpX1FQHKOtw5rDgb7MzVIcbidJ4vE
-ZV8NhnacRHr2lVz2XTIIM6RUthg/aFzyQkqFOFSDX9HoLPKsEdao7WNq
------END CERTIFICATE-----
-
-SecureTrust CA
-==============
------BEGIN CERTIFICATE-----
-MIIDuDCCAqCgAwIBAgIQDPCOXAgWpa1Cf/DrJxhZ0DANBgkqhkiG9w0BAQUFADBIMQswCQYDVQQG
-EwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24xFzAVBgNVBAMTDlNlY3VyZVRy
-dXN0IENBMB4XDTA2MTEwNzE5MzExOFoXDTI5MTIzMTE5NDA1NVowSDELMAkGA1UEBhMCVVMxIDAe
-BgNVBAoTF1NlY3VyZVRydXN0IENvcnBvcmF0aW9uMRcwFQYDVQQDEw5TZWN1cmVUcnVzdCBDQTCC
-ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKukgeWVzfX2FI7CT8rU4niVWJxB4Q2ZQCQX
-OZEzZum+4YOvYlyJ0fwkW2Gz4BERQRwdbvC4u/jep4G6pkjGnx29vo6pQT64lO0pGtSO0gMdA+9t
-DWccV9cGrcrI9f4Or2YlSASWC12juhbDCE/RRvgUXPLIXgGZbf2IzIaowW8xQmxSPmjL8xk037uH
-GFaAJsTQ3MBv396gwpEWoGQRS0S8Hvbn+mPeZqx2pHGj7DaUaHp3pLHnDi+BeuK1cobvomuL8A/b
-01k/unK8RCSc43Oz969XL0Imnal0ugBS8kvNU3xHCzaFDmapCJcWNFfBZveA4+1wVMeT4C4oFVmH
-ursCAwEAAaOBnTCBmjATBgkrBgEEAYI3FAIEBh4EAEMAQTALBgNVHQ8EBAMCAYYwDwYDVR0TAQH/
-BAUwAwEB/zAdBgNVHQ4EFgQUQjK2FvoE/f5dS3rD/fdMQB1aQ68wNAYDVR0fBC0wKzApoCegJYYj
-aHR0cDovL2NybC5zZWN1cmV0cnVzdC5jb20vU1RDQS5jcmwwEAYJKwYBBAGCNxUBBAMCAQAwDQYJ
-KoZIhvcNAQEFBQADggEBADDtT0rhWDpSclu1pqNlGKa7UTt36Z3q059c4EVlew3KW+JwULKUBRSu
-SceNQQcSc5R+DCMh/bwQf2AQWnL1mA6s7Ll/3XpvXdMc9P+IBWlCqQVxyLesJugutIxq/3HcuLHf
-mbx8IVQr5Fiiu1cprp6poxkmD5kuCLDv/WnPmRoJjeOnnyvJNjR7JLN4TJUXpAYmHrZkUjZfYGfZ
-nMUFdAvnZyPSCPyI6a6Lf+Ew9Dd+/cYy2i2eRDAwbO4H3tI0/NL/QPZL9GZGBlSm8jIKYyYwa5vR
-3ItHuuG51WLQoqD0ZwV4KWMabwTW+MZMo5qxN7SN5ShLHZ4swrhovO0C7jE=
------END CERTIFICATE-----
-
-Secure Global CA
-================
------BEGIN CERTIFICATE-----
-MIIDvDCCAqSgAwIBAgIQB1YipOjUiolN9BPI8PjqpTANBgkqhkiG9w0BAQUFADBKMQswCQYDVQQG
-EwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24xGTAXBgNVBAMTEFNlY3VyZSBH
-bG9iYWwgQ0EwHhcNMDYxMTA3MTk0MjI4WhcNMjkxMjMxMTk1MjA2WjBKMQswCQYDVQQGEwJVUzEg
-MB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24xGTAXBgNVBAMTEFNlY3VyZSBHbG9iYWwg
-Q0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCvNS7YrGxVaQZx5RNoJLNP2MwhR/jx
-YDiJiQPpvepeRlMJ3Fz1Wuj3RSoC6zFh1ykzTM7HfAo3fg+6MpjhHZevj8fcyTiW89sa/FHtaMbQ
-bqR8JNGuQsiWUGMu4P51/pinX0kuleM5M2SOHqRfkNJnPLLZ/kG5VacJjnIFHovdRIWCQtBJwB1g
-8NEXLJXr9qXBkqPFwqcIYA1gBBCWeZ4WNOaptvolRTnIHmX5k/Wq8VLcmZg9pYYaDDUz+kulBAYV
-HDGA76oYa8J719rO+TMg1fW9ajMtgQT7sFzUnKPiXB3jqUJ1XnvUd+85VLrJChgbEplJL4hL/VBi
-0XPnj3pDAgMBAAGjgZ0wgZowEwYJKwYBBAGCNxQCBAYeBABDAEEwCwYDVR0PBAQDAgGGMA8GA1Ud
-EwEB/wQFMAMBAf8wHQYDVR0OBBYEFK9EBMJBfkiD2045AuzshHrmzsmkMDQGA1UdHwQtMCswKaAn
-oCWGI2h0dHA6Ly9jcmwuc2VjdXJldHJ1c3QuY29tL1NHQ0EuY3JsMBAGCSsGAQQBgjcVAQQDAgEA
-MA0GCSqGSIb3DQEBBQUAA4IBAQBjGghAfaReUw132HquHw0LURYD7xh8yOOvaliTFGCRsoTciE6+
-OYo68+aCiV0BN7OrJKQVDpI1WkpEXk5X+nXOH0jOZvQ8QCaSmGwb7iRGDBezUqXbpZGRzzfTb+cn
-CDpOGR86p1hcF895P4vkp9MmI50mD1hp/Ed+stCNi5O/KU9DaXR2Z0vPB4zmAve14bRDtUstFJ/5
-3CYNv6ZHdAbYiNE6KTCEztI5gGIbqMdXSbxqVVFnFUq+NQfk1XWYN3kwFNspnWzFacxHVaIw98xc
-f8LDmBxrThaA63p4ZUWiABqvDA1VZDRIuJK58bRQKfJPIx/abKwfROHdI3hRW8cW
------END CERTIFICATE-----
-
-COMODO Certification Authority
-==============================
------BEGIN CERTIFICATE-----
-MIIEHTCCAwWgAwIBAgIQToEtioJl4AsC7j41AkblPTANBgkqhkiG9w0BAQUFADCBgTELMAkGA1UE
-BhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgG
-A1UEChMRQ09NT0RPIENBIExpbWl0ZWQxJzAlBgNVBAMTHkNPTU9ETyBDZXJ0aWZpY2F0aW9uIEF1
-dGhvcml0eTAeFw0wNjEyMDEwMDAwMDBaFw0yOTEyMzEyMzU5NTlaMIGBMQswCQYDVQQGEwJHQjEb
-MBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHEwdTYWxmb3JkMRowGAYDVQQKExFD
-T01PRE8gQ0EgTGltaXRlZDEnMCUGA1UEAxMeQ09NT0RPIENlcnRpZmljYXRpb24gQXV0aG9yaXR5
-MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0ECLi3LjkRv3UcEbVASY06m/weaKXTuH
-+7uIzg3jLz8GlvCiKVCZrts7oVewdFFxze1CkU1B/qnI2GqGd0S7WWaXUF601CxwRM/aN5VCaTww
-xHGzUvAhTaHYujl8HJ6jJJ3ygxaYqhZ8Q5sVW7euNJH+1GImGEaaP+vB+fGQV+useg2L23IwambV
-4EajcNxo2f8ESIl33rXp+2dtQem8Ob0y2WIC8bGoPW43nOIv4tOiJovGuFVDiOEjPqXSJDlqR6sA
-1KGzqSX+DT+nHbrTUcELpNqsOO9VUCQFZUaTNE8tja3G1CEZ0o7KBWFxB3NH5YoZEr0ETc5OnKVI
-rLsm9wIDAQABo4GOMIGLMB0GA1UdDgQWBBQLWOWLxkwVN6RAqTCpIb5HNlpW/zAOBgNVHQ8BAf8E
-BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zBJBgNVHR8EQjBAMD6gPKA6hjhodHRwOi8vY3JsLmNvbW9k
-b2NhLmNvbS9DT01PRE9DZXJ0aWZpY2F0aW9uQXV0aG9yaXR5LmNybDANBgkqhkiG9w0BAQUFAAOC
-AQEAPpiem/Yb6dc5t3iuHXIYSdOH5EOC6z/JqvWote9VfCFSZfnVDeFs9D6Mk3ORLgLETgdxb8CP
-OGEIqB6BCsAvIC9Bi5HcSEW88cbeunZrM8gALTFGTO3nnc+IlP8zwFboJIYmuNg4ON8qa90SzMc/
-RxdMosIGlgnW2/4/PEZB31jiVg88O8EckzXZOFKs7sjsLjBOlDW0JB9LeGna8gI4zJVSk/BwJVmc
-IGfE7vmLV2H0knZ9P4SNVbfo5azV8fUZVqZa+5Acr5Pr5RzUZ5ddBA6+C4OmF4O5MBKgxTMVBbkN
-+8cFduPYSo38NBejxiEovjBFMR7HeL5YYTisO+IBZQ==
------END CERTIFICATE-----
-
-Network Solutions Certificate Authority
-=======================================
------BEGIN CERTIFICATE-----
-MIID5jCCAs6gAwIBAgIQV8szb8JcFuZHFhfjkDFo4DANBgkqhkiG9w0BAQUFADBiMQswCQYDVQQG
-EwJVUzEhMB8GA1UEChMYTmV0d29yayBTb2x1dGlvbnMgTC5MLkMuMTAwLgYDVQQDEydOZXR3b3Jr
-IFNvbHV0aW9ucyBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwHhcNMDYxMjAxMDAwMDAwWhcNMjkxMjMx
-MjM1OTU5WjBiMQswCQYDVQQGEwJVUzEhMB8GA1UEChMYTmV0d29yayBTb2x1dGlvbnMgTC5MLkMu
-MTAwLgYDVQQDEydOZXR3b3JrIFNvbHV0aW9ucyBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwggEiMA0G
-CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDkvH6SMG3G2I4rC7xGzuAnlt7e+foS0zwzc7MEL7xx
-jOWftiJgPl9dzgn/ggwbmlFQGiaJ3dVhXRncEg8tCqJDXRfQNJIg6nPPOCwGJgl6cvf6UDL4wpPT
-aaIjzkGxzOTVHzbRijr4jGPiFFlp7Q3Tf2vouAPlT2rlmGNpSAW+Lv8ztumXWWn4Zxmuk2GWRBXT
-crA/vGp97Eh/jcOrqnErU2lBUzS1sLnFBgrEsEX1QV1uiUV7PTsmjHTC5dLRfbIR1PtYMiKagMnc
-/Qzpf14Dl847ABSHJ3A4qY5usyd2mFHgBeMhqxrVhSI8KbWaFsWAqPS7azCPL0YCorEMIuDTAgMB
-AAGjgZcwgZQwHQYDVR0OBBYEFCEwyfsA106Y2oeqKtCnLrFAMadMMA4GA1UdDwEB/wQEAwIBBjAP
-BgNVHRMBAf8EBTADAQH/MFIGA1UdHwRLMEkwR6BFoEOGQWh0dHA6Ly9jcmwubmV0c29sc3NsLmNv
-bS9OZXR3b3JrU29sdXRpb25zQ2VydGlmaWNhdGVBdXRob3JpdHkuY3JsMA0GCSqGSIb3DQEBBQUA
-A4IBAQC7rkvnt1frf6ott3NHhWrB5KUd5Oc86fRZZXe1eltajSU24HqXLjjAV2CDmAaDn7l2em5Q
-4LqILPxFzBiwmZVRDuwduIj/h1AcgsLj4DKAv6ALR8jDMe+ZZzKATxcheQxpXN5eNK4CtSbqUN9/
-GGUsyfJj4akH/nxxH2szJGoeBfcFaMBqEssuXmHLrijTfsK0ZpEmXzwuJF/LWA/rKOyvEZbz3Htv
-wKeI8lN3s2Berq4o2jUsbzRF0ybh3uxbTydrFny9RAQYgrOJeRcQcT16ohZO9QHNpGxlaKFJdlxD
-ydi8NmdspZS11My5vWo1ViHe2MPr+8ukYEywVaCge1ey
------END CERTIFICATE-----
-
-COMODO ECC Certification Authority
-==================================
------BEGIN CERTIFICATE-----
-MIICiTCCAg+gAwIBAgIQH0evqmIAcFBUTAGem2OZKjAKBggqhkjOPQQDAzCBhTELMAkGA1UEBhMC
-R0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UE
-ChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBFQ0MgQ2VydGlmaWNhdGlvbiBB
-dXRob3JpdHkwHhcNMDgwMzA2MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBhTELMAkGA1UEBhMCR0Ix
-GzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UEChMR
-Q09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBFQ0MgQ2VydGlmaWNhdGlvbiBBdXRo
-b3JpdHkwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQDR3svdcmCFYX7deSRFtSrYpn1PlILBs5BAH+X
-4QokPB0BBO490o0JlwzgdeT6+3eKKvUDYEs2ixYjFq0JcfRK9ChQtP6IHG4/bC8vCVlbpVsLM5ni
-wz2J+Wos77LTBumjQjBAMB0GA1UdDgQWBBR1cacZSBm8nZ3qQUfflMRId5nTeTAOBgNVHQ8BAf8E
-BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNoADBlAjEA7wNbeqy3eApyt4jf/7VG
-FAkK+qDmfQjGGoe9GKhzvSbKYAydzpmfz1wPMOG+FDHqAjAU9JM8SaczepBGR7NjfRObTrdvGDeA
-U/7dIOA1mjbRxwG55tzd8/8dLDoWV9mSOdY=
------END CERTIFICATE-----
-
-OISTE WISeKey Global Root GA CA
-===============================
------BEGIN CERTIFICATE-----
-MIID8TCCAtmgAwIBAgIQQT1yx/RrH4FDffHSKFTfmjANBgkqhkiG9w0BAQUFADCBijELMAkGA1UE
-BhMCQ0gxEDAOBgNVBAoTB1dJU2VLZXkxGzAZBgNVBAsTEkNvcHlyaWdodCAoYykgMjAwNTEiMCAG
-A1UECxMZT0lTVEUgRm91bmRhdGlvbiBFbmRvcnNlZDEoMCYGA1UEAxMfT0lTVEUgV0lTZUtleSBH
-bG9iYWwgUm9vdCBHQSBDQTAeFw0wNTEyMTExNjAzNDRaFw0zNzEyMTExNjA5NTFaMIGKMQswCQYD
-VQQGEwJDSDEQMA4GA1UEChMHV0lTZUtleTEbMBkGA1UECxMSQ29weXJpZ2h0IChjKSAyMDA1MSIw
-IAYDVQQLExlPSVNURSBGb3VuZGF0aW9uIEVuZG9yc2VkMSgwJgYDVQQDEx9PSVNURSBXSVNlS2V5
-IEdsb2JhbCBSb290IEdBIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAy0+zAJs9
-Nt350UlqaxBJH+zYK7LG+DKBKUOVTJoZIyEVRd7jyBxRVVuuk+g3/ytr6dTqvirdqFEr12bDYVxg
-Asj1znJ7O7jyTmUIms2kahnBAbtzptf2w93NvKSLtZlhuAGio9RN1AU9ka34tAhxZK9w8RxrfvbD
-d50kc3vkDIzh2TbhmYsFmQvtRTEJysIA2/dyoJaqlYfQjse2YXMNdmaM3Bu0Y6Kff5MTMPGhJ9vZ
-/yxViJGg4E8HsChWjBgbl0SOid3gF27nKu+POQoxhILYQBRJLnpB5Kf+42TMwVlxSywhp1t94B3R
-LoGbw9ho972WG6xwsRYUC9tguSYBBQIDAQABo1EwTzALBgNVHQ8EBAMCAYYwDwYDVR0TAQH/BAUw
-AwEB/zAdBgNVHQ4EFgQUswN+rja8sHnR3JQmthG+IbJphpQwEAYJKwYBBAGCNxUBBAMCAQAwDQYJ
-KoZIhvcNAQEFBQADggEBAEuh/wuHbrP5wUOxSPMowB0uyQlB+pQAHKSkq0lPjz0e701vvbyk9vIm
-MMkQyh2I+3QZH4VFvbBsUfk2ftv1TDI6QU9bR8/oCy22xBmddMVHxjtqD6wU2zz0c5ypBd8A3HR4
-+vg1YFkCExh8vPtNsCBtQ7tgMHpnM1zFmdH4LTlSc/uMqpclXHLZCB6rTjzjgTGfA6b7wP4piFXa
-hNVQA7bihKOmNqoROgHhGEvWRGizPflTdISzRpFGlgC3gCy24eMQ4tui5yiPAZZiFj4A4xylNoEY
-okxSdsARo27mHbrjWr42U8U+dY+GaSlYU7Wcu2+fXMUY7N0v4ZjJ/L7fCg0=
------END CERTIFICATE-----
-
-Certigna
-========
------BEGIN CERTIFICATE-----
-MIIDqDCCApCgAwIBAgIJAP7c4wEPyUj/MA0GCSqGSIb3DQEBBQUAMDQxCzAJBgNVBAYTAkZSMRIw
-EAYDVQQKDAlEaGlteW90aXMxETAPBgNVBAMMCENlcnRpZ25hMB4XDTA3MDYyOTE1MTMwNVoXDTI3
-MDYyOTE1MTMwNVowNDELMAkGA1UEBhMCRlIxEjAQBgNVBAoMCURoaW15b3RpczERMA8GA1UEAwwI
-Q2VydGlnbmEwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDIaPHJ1tazNHUmgh7stL7q
-XOEm7RFHYeGifBZ4QCHkYJ5ayGPhxLGWkv8YbWkj4Sti993iNi+RB7lIzw7sebYs5zRLcAglozyH
-GxnygQcPOJAZ0xH+hrTy0V4eHpbNgGzOOzGTtvKg0KmVEn2lmsxryIRWijOp5yIVUxbwzBfsV1/p
-ogqYCd7jX5xv3EjjhQsVWqa6n6xI4wmy9/Qy3l40vhx4XUJbzg4ij02Q130yGLMLLGq/jj8UEYkg
-DncUtT2UCIf3JR7VsmAA7G8qKCVuKj4YYxclPz5EIBb2JsglrgVKtOdjLPOMFlN+XPsRGgjBRmKf
-Irjxwo1p3Po6WAbfAgMBAAGjgbwwgbkwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUGu3+QTmQ
-tCRZvgHyUtVF9lo53BEwZAYDVR0jBF0wW4AUGu3+QTmQtCRZvgHyUtVF9lo53BGhOKQ2MDQxCzAJ
-BgNVBAYTAkZSMRIwEAYDVQQKDAlEaGlteW90aXMxETAPBgNVBAMMCENlcnRpZ25hggkA/tzjAQ/J
-SP8wDgYDVR0PAQH/BAQDAgEGMBEGCWCGSAGG+EIBAQQEAwIABzANBgkqhkiG9w0BAQUFAAOCAQEA
-hQMeknH2Qq/ho2Ge6/PAD/Kl1NqV5ta+aDY9fm4fTIrv0Q8hbV6lUmPOEvjvKtpv6zf+EwLHyzs+
-ImvaYS5/1HI93TDhHkxAGYwP15zRgzB7mFncfca5DClMoTOi62c6ZYTTluLtdkVwj7Ur3vkj1klu
-PBS1xp81HlDQwY9qcEQCYsuuHWhBp6pX6FOqB9IG9tUUBguRA3UsbHK1YZWaDYu5Def131TN3ubY
-1gkIl2PlwS6wt0QmwCbAr1UwnjvVNioZBPRcHv/PLLf/0P2HQBHVESO7SMAhqaQoLf0V+LBOK/Qw
-WyH8EZE0vkHve52Xdf+XlcCWWC/qu0bXu+TZLg==
------END CERTIFICATE-----
-
-Deutsche Telekom Root CA 2
-==========================
------BEGIN CERTIFICATE-----
-MIIDnzCCAoegAwIBAgIBJjANBgkqhkiG9w0BAQUFADBxMQswCQYDVQQGEwJERTEcMBoGA1UEChMT
-RGV1dHNjaGUgVGVsZWtvbSBBRzEfMB0GA1UECxMWVC1UZWxlU2VjIFRydXN0IENlbnRlcjEjMCEG
-A1UEAxMaRGV1dHNjaGUgVGVsZWtvbSBSb290IENBIDIwHhcNOTkwNzA5MTIxMTAwWhcNMTkwNzA5
-MjM1OTAwWjBxMQswCQYDVQQGEwJERTEcMBoGA1UEChMTRGV1dHNjaGUgVGVsZWtvbSBBRzEfMB0G
-A1UECxMWVC1UZWxlU2VjIFRydXN0IENlbnRlcjEjMCEGA1UEAxMaRGV1dHNjaGUgVGVsZWtvbSBS
-b290IENBIDIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCrC6M14IspFLEUha88EOQ5
-bzVdSq7d6mGNlUn0b2SjGmBmpKlAIoTZ1KXleJMOaAGtuU1cOs7TuKhCQN/Po7qCWWqSG6wcmtoI
-KyUn+WkjR/Hg6yx6m/UTAtB+NHzCnjwAWav12gz1MjwrrFDa1sPeg5TKqAyZMg4ISFZbavva4VhY
-AUlfckE8FQYBjl2tqriTtM2e66foai1SNNs671x1Udrb8zH57nGYMsRUFUQM+ZtV7a3fGAigo4aK
-Se5TBY8ZTNXeWHmb0mocQqvF1afPaA+W5OFhmHZhyJF81j4A4pFQh+GdCuatl9Idxjp9y7zaAzTV
-jlsB9WoHtxa2bkp/AgMBAAGjQjBAMB0GA1UdDgQWBBQxw3kbuvVT1xfgiXotF2wKsyudMzAPBgNV
-HRMECDAGAQH/AgEFMA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQUFAAOCAQEAlGRZrTlk5ynr
-E/5aw4sTV8gEJPB0d8Bg42f76Ymmg7+Wgnxu1MM9756AbrsptJh6sTtU6zkXR34ajgv8HzFZMQSy
-zhfzLMdiNlXiItiJVbSYSKpk+tYcNthEeFpaIzpXl/V6ME+un2pMSyuOoAPjPuCp1NJ70rOo4nI8
-rZ7/gFnkm0W09juwzTkZmDLl6iFhkOQxIY40sfcvNUqFENrnijchvllj4PKFiDFT1FQUhXB59C4G
-dyd1Lx+4ivn+xbrYNuSD7Odlt79jWvNGr4GUN9RBjNYj1h7P9WgbRGOiWrqnNVmh5XAFmw4jV5mU
-Cm26OWMohpLzGITY+9HPBVZkVw==
------END CERTIFICATE-----
-
-Cybertrust Global Root
-======================
------BEGIN CERTIFICATE-----
-MIIDoTCCAomgAwIBAgILBAAAAAABD4WqLUgwDQYJKoZIhvcNAQEFBQAwOzEYMBYGA1UEChMPQ3li
-ZXJ0cnVzdCwgSW5jMR8wHQYDVQQDExZDeWJlcnRydXN0IEdsb2JhbCBSb290MB4XDTA2MTIxNTA4
-MDAwMFoXDTIxMTIxNTA4MDAwMFowOzEYMBYGA1UEChMPQ3liZXJ0cnVzdCwgSW5jMR8wHQYDVQQD
-ExZDeWJlcnRydXN0IEdsb2JhbCBSb290MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA
-+Mi8vRRQZhP/8NN57CPytxrHjoXxEnOmGaoQ25yiZXRadz5RfVb23CO21O1fWLE3TdVJDm71aofW
-0ozSJ8bi/zafmGWgE07GKmSb1ZASzxQG9Dvj1Ci+6A74q05IlG2OlTEQXO2iLb3VOm2yHLtgwEZL
-AfVJrn5GitB0jaEMAs7u/OePuGtm839EAL9mJRQr3RAwHQeWP032a7iPt3sMpTjr3kfb1V05/Iin
-89cqdPHoWqI7n1C6poxFNcJQZZXcY4Lv3b93TZxiyWNzFtApD0mpSPCzqrdsxacwOUBdrsTiXSZT
-8M4cIwhhqJQZugRiQOwfOHB3EgZxpzAYXSUnpQIDAQABo4GlMIGiMA4GA1UdDwEB/wQEAwIBBjAP
-BgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBS2CHsNesysIEyGVjJez6tuhS1wVzA/BgNVHR8EODA2
-MDSgMqAwhi5odHRwOi8vd3d3Mi5wdWJsaWMtdHJ1c3QuY29tL2NybC9jdC9jdHJvb3QuY3JsMB8G
-A1UdIwQYMBaAFLYIew16zKwgTIZWMl7Pq26FLXBXMA0GCSqGSIb3DQEBBQUAA4IBAQBW7wojoFRO
-lZfJ+InaRcHUowAl9B8Tq7ejhVhpwjCt2BWKLePJzYFa+HMjWqd8BfP9IjsO0QbE2zZMcwSO5bAi
-5MXzLqXZI+O4Tkogp24CJJ8iYGd7ix1yCcUxXOl5n4BHPa2hCwcUPUf/A2kaDAtE52Mlp3+yybh2
-hO0j9n0Hq0V+09+zv+mKts2oomcrUtW3ZfA5TGOgkXmTUg9U3YO7n9GPp1Nzw8v/MOx8BLjYRB+T
-X3EJIrduPuocA06dGiBh+4E37F78CkWr1+cXVdCg6mCbpvbjjFspwgZgFJ0tl0ypkxWdYcQBX0jW
-WL1WMRJOEcgh4LMRkWXbtKaIOM5V
------END CERTIFICATE-----
-
-ePKI Root Certification Authority
-=================================
------BEGIN CERTIFICATE-----
-MIIFsDCCA5igAwIBAgIQFci9ZUdcr7iXAF7kBtK8nTANBgkqhkiG9w0BAQUFADBeMQswCQYDVQQG
-EwJUVzEjMCEGA1UECgwaQ2h1bmdod2EgVGVsZWNvbSBDby4sIEx0ZC4xKjAoBgNVBAsMIWVQS0kg
-Um9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wNDEyMjAwMjMxMjdaFw0zNDEyMjAwMjMx
-MjdaMF4xCzAJBgNVBAYTAlRXMSMwIQYDVQQKDBpDaHVuZ2h3YSBUZWxlY29tIENvLiwgTHRkLjEq
-MCgGA1UECwwhZVBLSSBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIICIjANBgkqhkiG9w0B
-AQEFAAOCAg8AMIICCgKCAgEA4SUP7o3biDN1Z82tH306Tm2d0y8U82N0ywEhajfqhFAHSyZbCUNs
-IZ5qyNUD9WBpj8zwIuQf5/dqIjG3LBXy4P4AakP/h2XGtRrBp0xtInAhijHyl3SJCRImHJ7K2RKi
-lTza6We/CKBk49ZCt0Xvl/T29de1ShUCWH2YWEtgvM3XDZoTM1PRYfl61dd4s5oz9wCGzh1NlDiv
-qOx4UXCKXBCDUSH3ET00hl7lSM2XgYI1TBnsZfZrxQWh7kcT1rMhJ5QQCtkkO7q+RBNGMD+XPNjX
-12ruOzjjK9SXDrkb5wdJfzcq+Xd4z1TtW0ado4AOkUPB1ltfFLqfpo0kR0BZv3I4sjZsN/+Z0V0O
-WQqraffAsgRFelQArr5T9rXn4fg8ozHSqf4hUmTFpmfwdQcGlBSBVcYn5AGPF8Fqcde+S/uUWH1+
-ETOxQvdibBjWzwloPn9s9h6PYq2lY9sJpx8iQkEeb5mKPtf5P0B6ebClAZLSnT0IFaUQAS2zMnao
-lQ2zepr7BxB4EW/hj8e6DyUadCrlHJhBmd8hh+iVBmoKs2pHdmX2Os+PYhcZewoozRrSgx4hxyy/
-vv9haLdnG7t4TY3OZ+XkwY63I2binZB1NJipNiuKmpS5nezMirH4JYlcWrYvjB9teSSnUmjDhDXi
-Zo1jDiVN1Rmy5nk3pyKdVDECAwEAAaNqMGgwHQYDVR0OBBYEFB4M97Zn8uGSJglFwFU5Lnc/Qkqi
-MAwGA1UdEwQFMAMBAf8wOQYEZyoHAAQxMC8wLQIBADAJBgUrDgMCGgUAMAcGBWcqAwAABBRFsMLH
-ClZ87lt4DJX5GFPBphzYEDANBgkqhkiG9w0BAQUFAAOCAgEACbODU1kBPpVJufGBuvl2ICO1J2B0
-1GqZNF5sAFPZn/KmsSQHRGoqxqWOeBLoR9lYGxMqXnmbnwoqZ6YlPwZpVnPDimZI+ymBV3QGypzq
-KOg4ZyYr8dW1P2WT+DZdjo2NQCCHGervJ8A9tDkPJXtoUHRVnAxZfVo9QZQlUgjgRywVMRnVvwdV
-xrsStZf0X4OFunHB2WyBEXYKCrC/gpf36j36+uwtqSiUO1bd0lEursC9CBWMd1I0ltabrNMdjmEP
-NXubrjlpC2JgQCA2j6/7Nu4tCEoduL+bXPjqpRugc6bY+G7gMwRfaKonh+3ZwZCc7b3jajWvY9+r
-GNm65ulK6lCKD2GTHuItGeIwlDWSXQ62B68ZgI9HkFFLLk3dheLSClIKF5r8GrBQAuUBo2M3IUxE
-xJtRmREOc5wGj1QupyheRDmHVi03vYVElOEMSyycw5KFNGHLD7ibSkNS/jQ6fbjpKdx2qcgw+BRx
-gMYeNkh0IkFch4LoGHGLQYlE535YW6i4jRPpp2zDR+2zGp1iro2C6pSe3VkQw63d4k3jMdXH7Ojy
-sP6SHhYKGvzZ8/gntsm+HbRsZJB/9OTEW9c3rkIO3aQab3yIVMUWbuF6aC74Or8NpDyJO3inTmOD
-BCEIZ43ygknQW/2xzQ+DhNQ+IIX3Sj0rnP0qCglN6oH4EZw=
------END CERTIFICATE-----
-
-certSIGN ROOT CA
-================
------BEGIN CERTIFICATE-----
-MIIDODCCAiCgAwIBAgIGIAYFFnACMA0GCSqGSIb3DQEBBQUAMDsxCzAJBgNVBAYTAlJPMREwDwYD
-VQQKEwhjZXJ0U0lHTjEZMBcGA1UECxMQY2VydFNJR04gUk9PVCBDQTAeFw0wNjA3MDQxNzIwMDRa
-Fw0zMTA3MDQxNzIwMDRaMDsxCzAJBgNVBAYTAlJPMREwDwYDVQQKEwhjZXJ0U0lHTjEZMBcGA1UE
-CxMQY2VydFNJR04gUk9PVCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALczuX7I
-JUqOtdu0KBuqV5Do0SLTZLrTk+jUrIZhQGpgV2hUhE28alQCBf/fm5oqrl0Hj0rDKH/v+yv6efHH
-rfAQUySQi2bJqIirr1qjAOm+ukbuW3N7LBeCgV5iLKECZbO9xSsAfsT8AzNXDe3i+s5dRdY4zTW2
-ssHQnIFKquSyAVwdj1+ZxLGt24gh65AIgoDzMKND5pCCrlUoSe1b16kQOA7+j0xbm0bqQfWwCHTD
-0IgztnzXdN/chNFDDnU5oSVAKOp4yw4sLjmdjItuFhwvJoIQ4uNllAoEwF73XVv4EOLQunpL+943
-AAAaWyjj0pxzPjKHmKHJUS/X3qwzs08CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8B
-Af8EBAMCAcYwHQYDVR0OBBYEFOCMm9slSbPxfIbWskKHC9BroNnkMA0GCSqGSIb3DQEBBQUAA4IB
-AQA+0hyJLjX8+HXd5n9liPRyTMks1zJO890ZeUe9jjtbkw9QSSQTaxQGcu8J06Gh40CEyecYMnQ8
-SG4Pn0vU9x7Tk4ZkVJdjclDVVc/6IJMCopvDI5NOFlV2oHB5bc0hH88vLbwZ44gx+FkagQnIl6Z0
-x2DEW8xXjrJ1/RsCCdtZb3KTafcxQdaIOL+Hsr0Wefmq5L6IJd1hJyMctTEHBDa0GpC9oHRxUIlt
-vBTjD4au8as+x6AJzKNI0eDbZOeStc+vckNwi/nDhDwTqn6Sm1dTk/pwwpEOMfmbZ13pljheX7Nz
-TogVZ96edhBiIL5VaZVDADlN9u6wWk5JRFRYX0KD
------END CERTIFICATE-----
-
-GeoTrust Primary Certification Authority - G3
-=============================================
------BEGIN CERTIFICATE-----
-MIID/jCCAuagAwIBAgIQFaxulBmyeUtB9iepwxgPHzANBgkqhkiG9w0BAQsFADCBmDELMAkGA1UE
-BhMCVVMxFjAUBgNVBAoTDUdlb1RydXN0IEluYy4xOTA3BgNVBAsTMChjKSAyMDA4IEdlb1RydXN0
-IEluYy4gLSBGb3IgYXV0aG9yaXplZCB1c2Ugb25seTE2MDQGA1UEAxMtR2VvVHJ1c3QgUHJpbWFy
-eSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEczMB4XDTA4MDQwMjAwMDAwMFoXDTM3MTIwMTIz
-NTk1OVowgZgxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMTkwNwYDVQQLEzAo
-YykgMjAwOCBHZW9UcnVzdCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxNjA0BgNVBAMT
-LUdlb1RydXN0IFByaW1hcnkgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgLSBHMzCCASIwDQYJKoZI
-hvcNAQEBBQADggEPADCCAQoCggEBANziXmJYHTNXOTIz+uvLh4yn1ErdBojqZI4xmKU4kB6Yzy5j
-K/BGvESyiaHAKAxJcCGVn2TAppMSAmUmhsalifD614SgcK9PGpc/BkTVyetyEH3kMSj7HGHmKAdE
-c5IiaacDiGydY8hS2pgn5whMcD60yRLBxWeDXTPzAxHsatBT4tG6NmCUgLthY2xbF37fQJQeqw3C
-IShwiP/WJmxsYAQlTlV+fe+/lEjetx3dcI0FX4ilm/LC7urRQEFtYjgdVgbFA0dRIBn8exALDmKu
-dlW/X3e+PkkBUz2YJQN2JFodtNuJ6nnltrM7P7pMKEF/BqxqjsHQ9gUdfeZChuOl1UcCAwEAAaNC
-MEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFMR5yo6hTgMdHNxr
-2zFblD4/MH8tMA0GCSqGSIb3DQEBCwUAA4IBAQAtxRPPVoB7eni9n64smefv2t+UXglpp+duaIy9
-cr5HqQ6XErhK8WTTOd8lNNTBzU6B8A8ExCSzNJbGpqow32hhc9f5joWJ7w5elShKKiePEI4ufIbE
-Ap7aDHdlDkQNkv39sxY2+hENHYwOB4lqKVb3cvTdFZx3NWZXqxNT2I7BQMXXExZacse3aQHEerGD
-AWh9jUGhlBjBJVz88P6DAod8DQ3PLghcSkANPuyBYeYk28rgDi0Hsj5W3I31QYUHSJsMC8tJP33s
-t/3LjWeJGqvtux6jAAgIFyqCXDFdRootD4abdNlF+9RAsXqqaC2Gspki4cErx5z481+oghLrGREt
------END CERTIFICATE-----
-
-thawte Primary Root CA - G2
-===========================
------BEGIN CERTIFICATE-----
-MIICiDCCAg2gAwIBAgIQNfwmXNmET8k9Jj1Xm67XVjAKBggqhkjOPQQDAzCBhDELMAkGA1UEBhMC
-VVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjE4MDYGA1UECxMvKGMpIDIwMDcgdGhhd3RlLCBJbmMu
-IC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxJDAiBgNVBAMTG3RoYXd0ZSBQcmltYXJ5IFJvb3Qg
-Q0EgLSBHMjAeFw0wNzExMDUwMDAwMDBaFw0zODAxMTgyMzU5NTlaMIGEMQswCQYDVQQGEwJVUzEV
-MBMGA1UEChMMdGhhd3RlLCBJbmMuMTgwNgYDVQQLEy8oYykgMjAwNyB0aGF3dGUsIEluYy4gLSBG
-b3IgYXV0aG9yaXplZCB1c2Ugb25seTEkMCIGA1UEAxMbdGhhd3RlIFByaW1hcnkgUm9vdCBDQSAt
-IEcyMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEotWcgnuVnfFSeIf+iha/BebfowJPDQfGAFG6DAJS
-LSKkQjnE/o/qycG+1E3/n3qe4rF8mq2nhglzh9HnmuN6papu+7qzcMBniKI11KOasf2twu8x+qi5
-8/sIxpHR+ymVo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQU
-mtgAMADna3+FGO6Lts6KDPgR4bswCgYIKoZIzj0EAwMDaQAwZgIxAN344FdHW6fmCsO99YCKlzUN
-G4k8VIZ3KMqh9HneteY4sPBlcIx/AlTCv//YoT7ZzwIxAMSNlPzcU9LcnXgWHxUzI1NS41oxXZ3K
-rr0TKUQNJ1uo52icEvdYPy5yAlejj6EULg==
------END CERTIFICATE-----
-
-thawte Primary Root CA - G3
-===========================
------BEGIN CERTIFICATE-----
-MIIEKjCCAxKgAwIBAgIQYAGXt0an6rS0mtZLL/eQ+zANBgkqhkiG9w0BAQsFADCBrjELMAkGA1UE
-BhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2
-aWNlcyBEaXZpc2lvbjE4MDYGA1UECxMvKGMpIDIwMDggdGhhd3RlLCBJbmMuIC0gRm9yIGF1dGhv
-cml6ZWQgdXNlIG9ubHkxJDAiBgNVBAMTG3RoYXd0ZSBQcmltYXJ5IFJvb3QgQ0EgLSBHMzAeFw0w
-ODA0MDIwMDAwMDBaFw0zNzEyMDEyMzU5NTlaMIGuMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMdGhh
-d3RlLCBJbmMuMSgwJgYDVQQLEx9DZXJ0aWZpY2F0aW9uIFNlcnZpY2VzIERpdmlzaW9uMTgwNgYD
-VQQLEy8oYykgMjAwOCB0aGF3dGUsIEluYy4gLSBGb3IgYXV0aG9yaXplZCB1c2Ugb25seTEkMCIG
-A1UEAxMbdGhhd3RlIFByaW1hcnkgUm9vdCBDQSAtIEczMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
-MIIBCgKCAQEAsr8nLPvb2FvdeHsbnndmgcs+vHyu86YnmjSjaDFxODNi5PNxZnmxqWWjpYvVj2At
-P0LMqmsywCPLLEHd5N/8YZzic7IilRFDGF/Eth9XbAoFWCLINkw6fKXRz4aviKdEAhN0cXMKQlkC
-+BsUa0Lfb1+6a4KinVvnSr0eAXLbS3ToO39/fR8EtCab4LRarEc9VbjXsCZSKAExQGbY2SS99irY
-7CFJXJv2eul/VTV+lmuNk5Mny5K76qxAwJ/C+IDPXfRa3M50hqY+bAtTyr2SzhkGcuYMXDhpxwTW
-vGzOW/b3aJzcJRVIiKHpqfiYnODz1TEoYRFsZ5aNOZnLwkUkOQIDAQABo0IwQDAPBgNVHRMBAf8E
-BTADAQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUrWyqlGCc7eT/+j4KdCtjA/e2Wb8wDQYJ
-KoZIhvcNAQELBQADggEBABpA2JVlrAmSicY59BDlqQ5mU1143vokkbvnRFHfxhY0Cu9qRFHqKweK
-A3rD6z8KLFIWoCtDuSWQP3CpMyVtRRooOyfPqsMpQhvfO0zAMzRbQYi/aytlryjvsvXDqmbOe1bu
-t8jLZ8HJnBoYuMTDSQPxYA5QzUbF83d597YV4Djbxy8ooAw/dyZ02SUS2jHaGh7cKUGRIjxpp7sC
-8rZcJwOJ9Abqm+RyguOhCcHpABnTPtRwa7pxpqpYrvS76Wy274fMm7v/OeZWYdMKp8RcTGB7BXcm
-er/YB1IsYvdwY9k5vG8cwnncdimvzsUsZAReiDZuMdRAGmI0Nj81Aa6sY6A=
------END CERTIFICATE-----
-
-GeoTrust Primary Certification Authority - G2
-=============================================
------BEGIN CERTIFICATE-----
-MIICrjCCAjWgAwIBAgIQPLL0SAoA4v7rJDteYD7DazAKBggqhkjOPQQDAzCBmDELMAkGA1UEBhMC
-VVMxFjAUBgNVBAoTDUdlb1RydXN0IEluYy4xOTA3BgNVBAsTMChjKSAyMDA3IEdlb1RydXN0IElu
-Yy4gLSBGb3IgYXV0aG9yaXplZCB1c2Ugb25seTE2MDQGA1UEAxMtR2VvVHJ1c3QgUHJpbWFyeSBD
-ZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEcyMB4XDTA3MTEwNTAwMDAwMFoXDTM4MDExODIzNTk1
-OVowgZgxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMTkwNwYDVQQLEzAoYykg
-MjAwNyBHZW9UcnVzdCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxNjA0BgNVBAMTLUdl
-b1RydXN0IFByaW1hcnkgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgLSBHMjB2MBAGByqGSM49AgEG
-BSuBBAAiA2IABBWx6P0DFUPlrOuHNxFi79KDNlJ9RVcLSo17VDs6bl8VAsBQps8lL33KSLjHUGMc
-KiEIfJo22Av+0SbFWDEwKCXzXV2juLaltJLtbCyf691DiaI8S0iRHVDsJt/WYC69IaNCMEAwDwYD
-VR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFBVfNVdRVfslsq0DafwBo/q+
-EVXVMAoGCCqGSM49BAMDA2cAMGQCMGSWWaboCd6LuvpaiIjwH5HTRqjySkwCY/tsXzjbLkGTqQ7m
-ndwxHLKgpxgceeHHNgIwOlavmnRs9vuD4DPTCF+hnMJbn0bWtsuRBmOiBuczrD6ogRLQy7rQkgu2
-npaqBA+K
------END CERTIFICATE-----
-
-VeriSign Universal Root Certification Authority
-===============================================
------BEGIN CERTIFICATE-----
-MIIEuTCCA6GgAwIBAgIQQBrEZCGzEyEDDrvkEhrFHTANBgkqhkiG9w0BAQsFADCBvTELMAkGA1UE
-BhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBO
-ZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwOCBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVk
-IHVzZSBvbmx5MTgwNgYDVQQDEy9WZXJpU2lnbiBVbml2ZXJzYWwgUm9vdCBDZXJ0aWZpY2F0aW9u
-IEF1dGhvcml0eTAeFw0wODA0MDIwMDAwMDBaFw0zNzEyMDEyMzU5NTlaMIG9MQswCQYDVQQGEwJV
-UzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRydXN0IE5ldHdv
-cmsxOjA4BgNVBAsTMShjKSAyMDA4IFZlcmlTaWduLCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNl
-IG9ubHkxODA2BgNVBAMTL1ZlcmlTaWduIFVuaXZlcnNhbCBSb290IENlcnRpZmljYXRpb24gQXV0
-aG9yaXR5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAx2E3XrEBNNti1xWb/1hajCMj
-1mCOkdeQmIN65lgZOIzF9uVkhbSicfvtvbnazU0AtMgtc6XHaXGVHzk8skQHnOgO+k1KxCHfKWGP
-MiJhgsWHH26MfF8WIFFE0XBPV+rjHOPMee5Y2A7Cs0WTwCznmhcrewA3ekEzeOEz4vMQGn+HLL72
-9fdC4uW/h2KJXwBL38Xd5HVEMkE6HnFuacsLdUYI0crSK5XQz/u5QGtkjFdN/BMReYTtXlT2NJ8I
-AfMQJQYXStrxHXpma5hgZqTZ79IugvHw7wnqRMkVauIDbjPTrJ9VAMf2CGqUuV/c4DPxhGD5WycR
-tPwW8rtWaoAljQIDAQABo4GyMIGvMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMG0G
-CCsGAQUFBwEMBGEwX6FdoFswWTBXMFUWCWltYWdlL2dpZjAhMB8wBwYFKw4DAhoEFI/l0xqGrI2O
-a8PPgGrUSBgsexkuMCUWI2h0dHA6Ly9sb2dvLnZlcmlzaWduLmNvbS92c2xvZ28uZ2lmMB0GA1Ud
-DgQWBBS2d/ppSEefUxLVwuoHMnYH0ZcHGTANBgkqhkiG9w0BAQsFAAOCAQEASvj4sAPmLGd75JR3
-Y8xuTPl9Dg3cyLk1uXBPY/ok+myDjEedO2Pzmvl2MpWRsXe8rJq+seQxIcaBlVZaDrHC1LGmWazx
-Y8u4TB1ZkErvkBYoH1quEPuBUDgMbMzxPcP1Y+Oz4yHJJDnp/RVmRvQbEdBNc6N9Rvk97ahfYtTx
-P/jgdFcrGJ2BtMQo2pSXpXDrrB2+BxHw1dvd5Yzw1TKwg+ZX4o+/vqGqvz0dtdQ46tewXDpPaj+P
-wGZsY6rp2aQW9IHRlRQOfc2VNNnSj3BzgXucfr2YYdhFh5iQxeuGMMY1v/D/w1WIg0vvBZIGcfK4
-mJO37M2CYfE45k+XmCpajQ==
------END CERTIFICATE-----
-
-VeriSign Class 3 Public Primary Certification Authority - G4
-============================================================
------BEGIN CERTIFICATE-----
-MIIDhDCCAwqgAwIBAgIQL4D+I4wOIg9IZxIokYesszAKBggqhkjOPQQDAzCByjELMAkGA1UEBhMC
-VVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBOZXR3
-b3JrMTowOAYDVQQLEzEoYykgMjAwNyBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVz
-ZSBvbmx5MUUwQwYDVQQDEzxWZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmlj
-YXRpb24gQXV0aG9yaXR5IC0gRzQwHhcNMDcxMTA1MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCByjEL
-MAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBU
-cnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNyBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRo
-b3JpemVkIHVzZSBvbmx5MUUwQwYDVQQDEzxWZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5
-IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzQwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAASnVnp8
-Utpkmw4tXNherJI9/gHmGUo9FANL+mAnINmDiWn6VMaaGF5VKmTeBvaNSjutEDxlPZCIBIngMGGz
-rl0Bp3vefLK+ymVhAIau2o970ImtTR1ZmkGxvEeA3J5iw/mjgbIwga8wDwYDVR0TAQH/BAUwAwEB
-/zAOBgNVHQ8BAf8EBAMCAQYwbQYIKwYBBQUHAQwEYTBfoV2gWzBZMFcwVRYJaW1hZ2UvZ2lmMCEw
-HzAHBgUrDgMCGgQUj+XTGoasjY5rw8+AatRIGCx7GS4wJRYjaHR0cDovL2xvZ28udmVyaXNpZ24u
-Y29tL3ZzbG9nby5naWYwHQYDVR0OBBYEFLMWkf3upm7ktS5Jj4d4gYDs5bG1MAoGCCqGSM49BAMD
-A2gAMGUCMGYhDBgmYFo4e1ZC4Kf8NoRRkSAsdk1DPcQdhCPQrNZ8NQbOzWm9kA3bbEhCHQ6qQgIx
-AJw9SDkjOVgaFRJZap7v1VmyHVIsmXHNxynfGyphe3HR3vPA5Q06Sqotp9iGKt0uEA==
------END CERTIFICATE-----
-
-NetLock Arany (Class Gold) FÅtanÃºsÃ­tvÃ¡ny
-========================================
------BEGIN CERTIFICATE-----
-MIIEFTCCAv2gAwIBAgIGSUEs5AAQMA0GCSqGSIb3DQEBCwUAMIGnMQswCQYDVQQGEwJIVTERMA8G
-A1UEBwwIQnVkYXBlc3QxFTATBgNVBAoMDE5ldExvY2sgS2Z0LjE3MDUGA1UECwwuVGFuw7pzw610
-dsOhbnlraWFkw7NrIChDZXJ0aWZpY2F0aW9uIFNlcnZpY2VzKTE1MDMGA1UEAwwsTmV0TG9jayBB
-cmFueSAoQ2xhc3MgR29sZCkgRsWRdGFuw7pzw610dsOhbnkwHhcNMDgxMjExMTUwODIxWhcNMjgx
-MjA2MTUwODIxWjCBpzELMAkGA1UEBhMCSFUxETAPBgNVBAcMCEJ1ZGFwZXN0MRUwEwYDVQQKDAxO
-ZXRMb2NrIEtmdC4xNzA1BgNVBAsMLlRhbsO6c8OtdHbDoW55a2lhZMOzayAoQ2VydGlmaWNhdGlv
-biBTZXJ2aWNlcykxNTAzBgNVBAMMLE5ldExvY2sgQXJhbnkgKENsYXNzIEdvbGQpIEbFkXRhbsO6
-c8OtdHbDoW55MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxCRec75LbRTDofTjl5Bu
-0jBFHjzuZ9lk4BqKf8owyoPjIMHj9DrTlF8afFttvzBPhCf2nx9JvMaZCpDyD/V/Q4Q3Y1GLeqVw
-/HpYzY6b7cNGbIRwXdrzAZAj/E4wqX7hJ2Pn7WQ8oLjJM2P+FpD/sLj916jAwJRDC7bVWaaeVtAk
-H3B5r9s5VA1lddkVQZQBr17s9o3x/61k/iCa11zr/qYfCGSji3ZVrR47KGAuhyXoqq8fxmRGILdw
-fzzeSNuWU7c5d+Qa4scWhHaXWy+7GRWF+GmF9ZmnqfI0p6m2pgP8b4Y9VHx2BJtr+UBdADTHLpl1
-neWIA6pN+APSQnbAGwIDAKiLo0UwQzASBgNVHRMBAf8ECDAGAQH/AgEEMA4GA1UdDwEB/wQEAwIB
-BjAdBgNVHQ4EFgQUzPpnk/C2uNClwB7zU/2MU9+D15YwDQYJKoZIhvcNAQELBQADggEBAKt/7hwW
-qZw8UQCgwBEIBaeZ5m8BiFRhbvG5GK1Krf6BQCOUL/t1fC8oS2IkgYIL9WHxHG64YTjrgfpioTta
-YtOUZcTh5m2C+C8lcLIhJsFyUR+MLMOEkMNaj7rP9KdlpeuY0fsFskZ1FSNqb4VjMIDw1Z4fKRzC
-bLBQWV2QWzuoDTDPv31/zvGdg73JRm4gpvlhUbohL3u+pRVjodSVh/GeufOJ8z2FuLjbvrW5Kfna
-NwUASZQDhETnv0Mxz3WLJdH0pmT1kvarBes96aULNmLazAZfNou2XjG4Kvte9nHfRCaexOYNkbQu
-dZWAUWpLMKawYqGT8ZvYzsRjdT9ZR7E=
------END CERTIFICATE-----
-
-Staat der Nederlanden Root CA - G2
-==================================
------BEGIN CERTIFICATE-----
-MIIFyjCCA7KgAwIBAgIEAJiWjDANBgkqhkiG9w0BAQsFADBaMQswCQYDVQQGEwJOTDEeMBwGA1UE
-CgwVU3RhYXQgZGVyIE5lZGVybGFuZGVuMSswKQYDVQQDDCJTdGFhdCBkZXIgTmVkZXJsYW5kZW4g
-Um9vdCBDQSAtIEcyMB4XDTA4MDMyNjExMTgxN1oXDTIwMDMyNTExMDMxMFowWjELMAkGA1UEBhMC
-TkwxHjAcBgNVBAoMFVN0YWF0IGRlciBOZWRlcmxhbmRlbjErMCkGA1UEAwwiU3RhYXQgZGVyIE5l
-ZGVybGFuZGVuIFJvb3QgQ0EgLSBHMjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMVZ
-5291qj5LnLW4rJ4L5PnZyqtdj7U5EILXr1HgO+EASGrP2uEGQxGZqhQlEq0i6ABtQ8SpuOUfiUtn
-vWFI7/3S4GCI5bkYYCjDdyutsDeqN95kWSpGV+RLufg3fNU254DBtvPUZ5uW6M7XxgpT0GtJlvOj
-CwV3SPcl5XCsMBQgJeN/dVrlSPhOewMHBPqCYYdu8DvEpMfQ9XQ+pV0aCPKbJdL2rAQmPlU6Yiil
-e7Iwr/g3wtG61jj99O9JMDeZJiFIhQGp5Rbn3JBV3w/oOM2ZNyFPXfUib2rFEhZgF1XyZWampzCR
-OME4HYYEhLoaJXhena/MUGDWE4dS7WMfbWV9whUYdMrhfmQpjHLYFhN9C0lK8SgbIHRrxT3dsKpI
-CT0ugpTNGmXZK4iambwYfp/ufWZ8Pr2UuIHOzZgweMFvZ9C+X+Bo7d7iscksWXiSqt8rYGPy5V65
-48r6f1CGPqI0GAwJaCgRHOThuVw+R7oyPxjMW4T182t0xHJ04eOLoEq9jWYv6q012iDTiIJh8BIi
-trzQ1aTsr1SIJSQ8p22xcik/Plemf1WvbibG/ufMQFxRRIEKeN5KzlW/HdXZt1bv8Hb/C3m1r737
-qWmRRpdogBQ2HbN/uymYNqUg+oJgYjOk7Na6B6duxc8UpufWkjTYgfX8HV2qXB72o007uPc5AgMB
-AAGjgZcwgZQwDwYDVR0TAQH/BAUwAwEB/zBSBgNVHSAESzBJMEcGBFUdIAAwPzA9BggrBgEFBQcC
-ARYxaHR0cDovL3d3dy5wa2lvdmVyaGVpZC5ubC9wb2xpY2llcy9yb290LXBvbGljeS1HMjAOBgNV
-HQ8BAf8EBAMCAQYwHQYDVR0OBBYEFJFoMocVHYnitfGsNig0jQt8YojrMA0GCSqGSIb3DQEBCwUA
-A4ICAQCoQUpnKpKBglBu4dfYszk78wIVCVBR7y29JHuIhjv5tLySCZa59sCrI2AGeYwRTlHSeYAz
-+51IvuxBQ4EffkdAHOV6CMqqi3WtFMTC6GY8ggen5ieCWxjmD27ZUD6KQhgpxrRW/FYQoAUXvQwj
-f/ST7ZwaUb7dRUG/kSS0H4zpX897IZmflZ85OkYcbPnNe5yQzSipx6lVu6xiNGI1E0sUOlWDuYaN
-kqbG9AclVMwWVxJKgnjIFNkXgiYtXSAfea7+1HAWFpWD2DU5/1JddRwWxRNVz0fMdWVSSt7wsKfk
-CpYL+63C4iWEst3kvX5ZbJvw8NjnyvLplzh+ib7M+zkXYT9y2zqR2GUBGR2tUKRXCnxLvJxxcypF
-URmFzI79R6d0lR2o0a9OF7FpJsKqeFdbxU2n5Z4FF5TKsl+gSRiNNOkmbEgeqmiSBeGCc1qb3Adb
-CG19ndeNIdn8FCCqwkXfP+cAslHkwvgFuXkajDTznlvkN1trSt8sV4pAWja63XVECDdCcAz+3F4h
-oKOKwJCcaNpQ5kUQR3i2TtJlycM33+FCY7BXN0Ute4qcvwXqZVUz9zkQxSgqIXobisQk+T8VyJoV
-IPVVYpbtbZNQvOSqeK3Zywplh6ZmwcSBo3c6WB4L7oOLnR7SUqTMHW+wmG2UMbX4cQrcufx9MmDm
-66+KAQ==
------END CERTIFICATE-----
-
-Hongkong Post Root CA 1
-=======================
------BEGIN CERTIFICATE-----
-MIIDMDCCAhigAwIBAgICA+gwDQYJKoZIhvcNAQEFBQAwRzELMAkGA1UEBhMCSEsxFjAUBgNVBAoT
-DUhvbmdrb25nIFBvc3QxIDAeBgNVBAMTF0hvbmdrb25nIFBvc3QgUm9vdCBDQSAxMB4XDTAzMDUx
-NTA1MTMxNFoXDTIzMDUxNTA0NTIyOVowRzELMAkGA1UEBhMCSEsxFjAUBgNVBAoTDUhvbmdrb25n
-IFBvc3QxIDAeBgNVBAMTF0hvbmdrb25nIFBvc3QgUm9vdCBDQSAxMIIBIjANBgkqhkiG9w0BAQEF
-AAOCAQ8AMIIBCgKCAQEArP84tulmAknjorThkPlAj3n54r15/gK97iSSHSL22oVyaf7XPwnU3ZG1
-ApzQjVrhVcNQhrkpJsLj2aDxaQMoIIBFIi1WpztUlVYiWR8o3x8gPW2iNr4joLFutbEnPzlTCeqr
-auh0ssJlXI6/fMN4hM2eFvz1Lk8gKgifd/PFHsSaUmYeSF7jEAaPIpjhZY4bXSNmO7ilMlHIhqqh
-qZ5/dpTCpmy3QfDVyAY45tQM4vM7TG1QjMSDJ8EThFk9nnV0ttgCXjqQesBCNnLsak3c78QA3xMY
-V18meMjWCnl3v/evt3a5pQuEF10Q6m/hq5URX208o1xNg1vysxmKgIsLhwIDAQABoyYwJDASBgNV
-HRMBAf8ECDAGAQH/AgEDMA4GA1UdDwEB/wQEAwIBxjANBgkqhkiG9w0BAQUFAAOCAQEADkbVPK7i
-h9legYsCmEEIjEy82tvuJxuC52pF7BaLT4Wg87JwvVqWuspube5Gi27nKi6Wsxkz67SfqLI37pio
-l7Yutmcn1KZJ/RyTZXaeQi/cImyaT/JaFTmxcdcrUehtHJjA2Sr0oYJ71clBoiMBdDhViw+5Lmei
-IAQ32pwL0xch4I+XeTRvhEgCIDMb5jREn5Fw9IBehEPCKdJsEhTkYY2sEJCehFC78JZvRZ+K88ps
-T/oROhUVRsPNH4NbLUES7VBnQRM9IauUiqpOfMGx+6fWtScvl6tu4B3i0RwsH0Ti/L6RoZz71ilT
-c4afU9hDDl3WY4JxHYB0yvbiAmvZWg==
------END CERTIFICATE-----
-
-SecureSign RootCA11
-===================
------BEGIN CERTIFICATE-----
-MIIDbTCCAlWgAwIBAgIBATANBgkqhkiG9w0BAQUFADBYMQswCQYDVQQGEwJKUDErMCkGA1UEChMi
-SmFwYW4gQ2VydGlmaWNhdGlvbiBTZXJ2aWNlcywgSW5jLjEcMBoGA1UEAxMTU2VjdXJlU2lnbiBS
-b290Q0ExMTAeFw0wOTA0MDgwNDU2NDdaFw0yOTA0MDgwNDU2NDdaMFgxCzAJBgNVBAYTAkpQMSsw
-KQYDVQQKEyJKYXBhbiBDZXJ0aWZpY2F0aW9uIFNlcnZpY2VzLCBJbmMuMRwwGgYDVQQDExNTZWN1
-cmVTaWduIFJvb3RDQTExMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA/XeqpRyQBTvL
-TJszi1oURaTnkBbR31fSIRCkF/3frNYfp+TbfPfs37gD2pRY/V1yfIw/XwFndBWW4wI8h9uuywGO
-wvNmxoVF9ALGOrVisq/6nL+k5tSAMJjzDbaTj6nU2DbysPyKyiyhFTOVMdrAG/LuYpmGYz+/3ZMq
-g6h2uRMft85OQoWPIucuGvKVCbIFtUROd6EgvanyTgp9UK31BQ1FT0Zx/Sg+U/sE2C3XZR1KG/rP
-O7AxmjVuyIsG0wCR8pQIZUyxNAYAeoni8McDWc/V1uinMrPmmECGxc0nEovMe863ETxiYAcjPitA
-bpSACW22s293bzUIUPsCh8U+iQIDAQABo0IwQDAdBgNVHQ4EFgQUW/hNT7KlhtQ60vFjmqC+CfZX
-t94wDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBAKCh
-OBZmLqdWHyGcBvod7bkixTgm2E5P7KN/ed5GIaGHd48HCJqypMWvDzKYC3xmKbabfSVSSUOrTC4r
-bnpwrxYO4wJs+0LmGJ1F2FXI6Dvd5+H0LgscNFxsWEr7jIhQX5Ucv+2rIrVls4W6ng+4reV6G4pQ
-Oh29Dbx7VFALuUKvVaAYga1lme++5Jy/xIWrQbJUb9wlze144o4MjQlJ3WN7WmmWAiGovVJZ6X01
-y8hSyn+B/tlr0/cR7SXf+Of5pPpyl4RTDaXQMhhRdlkUbA/r7F+AjHVDg8OFmP9Mni0N5HeDk061
-lgeLKBObjBmNQSdJQO7e5iNEOdyhIta6A/I=
------END CERTIFICATE-----
-
-Microsec e-Szigno Root CA 2009
-==============================
------BEGIN CERTIFICATE-----
-MIIECjCCAvKgAwIBAgIJAMJ+QwRORz8ZMA0GCSqGSIb3DQEBCwUAMIGCMQswCQYDVQQGEwJIVTER
-MA8GA1UEBwwIQnVkYXBlc3QxFjAUBgNVBAoMDU1pY3Jvc2VjIEx0ZC4xJzAlBgNVBAMMHk1pY3Jv
-c2VjIGUtU3ppZ25vIFJvb3QgQ0EgMjAwOTEfMB0GCSqGSIb3DQEJARYQaW5mb0BlLXN6aWduby5o
-dTAeFw0wOTA2MTYxMTMwMThaFw0yOTEyMzAxMTMwMThaMIGCMQswCQYDVQQGEwJIVTERMA8GA1UE
-BwwIQnVkYXBlc3QxFjAUBgNVBAoMDU1pY3Jvc2VjIEx0ZC4xJzAlBgNVBAMMHk1pY3Jvc2VjIGUt
-U3ppZ25vIFJvb3QgQ0EgMjAwOTEfMB0GCSqGSIb3DQEJARYQaW5mb0BlLXN6aWduby5odTCCASIw
-DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOn4j/NjrdqG2KfgQvvPkd6mJviZpWNwrZuuyjNA
-fW2WbqEORO7hE52UQlKavXWFdCyoDh2Tthi3jCyoz/tccbna7P7ofo/kLx2yqHWH2Leh5TvPmUpG
-0IMZfcChEhyVbUr02MelTTMuhTlAdX4UfIASmFDHQWe4oIBhVKZsTh/gnQ4H6cm6M+f+wFUoLAKA
-pxn1ntxVUwOXewdI/5n7N4okxFnMUBBjjqqpGrCEGob5X7uxUG6k0QrM1XF+H6cbfPVTbiJfyyvm
-1HxdrtbCxkzlBQHZ7Vf8wSN5/PrIJIOV87VqUQHQd9bpEqH5GoP7ghu5sJf0dgYzQ0mg/wu1+rUC
-AwEAAaOBgDB+MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTLD8bf
-QkPMPcu1SCOhGnqmKrs0aDAfBgNVHSMEGDAWgBTLD8bfQkPMPcu1SCOhGnqmKrs0aDAbBgNVHREE
-FDASgRBpbmZvQGUtc3ppZ25vLmh1MA0GCSqGSIb3DQEBCwUAA4IBAQDJ0Q5eLtXMs3w+y/w9/w0o
-lZMEyL/azXm4Q5DwpL7v8u8hmLzU1F0G9u5C7DBsoKqpyvGvivo/C3NqPuouQH4frlRheesuCDfX
-I/OMn74dseGkddug4lQUsbocKaQY9hK6ohQU4zE1yED/t+AFdlfBHFny+L/k7SViXITwfn4fs775
-tyERzAMBVnCnEJIeGzSBHq2cGsMEPO0CYdYeBvNfOofyK/FFh+U9rNHHV4S9a67c2Pm2G2JwCz02
-yULyMtd6YebS2z3PyKnJm9zbWETXbzivf3jTo60adbocwTZ8jx5tHMN1Rq41Bab2XD0h7lbwyYIi
-LXpUq3DDfSJlgnCW
------END CERTIFICATE-----
-
-GlobalSign Root CA - R3
-=======================
------BEGIN CERTIFICATE-----
-MIIDXzCCAkegAwIBAgILBAAAAAABIVhTCKIwDQYJKoZIhvcNAQELBQAwTDEgMB4GA1UECxMXR2xv
-YmFsU2lnbiBSb290IENBIC0gUjMxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkdsb2Jh
-bFNpZ24wHhcNMDkwMzE4MTAwMDAwWhcNMjkwMzE4MTAwMDAwWjBMMSAwHgYDVQQLExdHbG9iYWxT
-aWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFsU2ln
-bjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMwldpB5BngiFvXAg7aEyiie/QV2EcWt
-iHL8RgJDx7KKnQRfJMsuS+FggkbhUqsMgUdwbN1k0ev1LKMPgj0MK66X17YUhhB5uzsTgHeMCOFJ
-0mpiLx9e+pZo34knlTifBtc+ycsmWQ1z3rDI6SYOgxXG71uL0gRgykmmKPZpO/bLyCiR5Z2KYVc3
-rHQU3HTgOu5yLy6c+9C7v/U9AOEGM+iCK65TpjoWc4zdQQ4gOsC0p6Hpsk+QLjJg6VfLuQSSaGjl
-OCZgdbKfd/+RFO+uIEn8rUAVSNECMWEZXriX7613t2Saer9fwRPvm2L7DWzgVGkWqQPabumDk3F2
-xmmFghcCAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYE
-FI/wS3+oLkUkrk1Q+mOai97i3Ru8MA0GCSqGSIb3DQEBCwUAA4IBAQBLQNvAUKr+yAzv95ZURUm7
-lgAJQayzE4aGKAczymvmdLm6AC2upArT9fHxD4q/c2dKg8dEe3jgr25sbwMpjjM5RcOO5LlXbKr8
-EpbsU8Yt5CRsuZRj+9xTaGdWPoO4zzUhw8lo/s7awlOqzJCK6fBdRoyV3XpYKBovHd7NADdBj+1E
-bddTKJd+82cEHhXXipa0095MJ6RMG3NzdvQXmcIfeg7jLQitChws/zyrVQ4PkX4268NXSb7hLi18
-YIvDQVETI53O9zJrlAGomecsMx86OyXShkDOOyyGeMlhLxS67ttVb9+E7gUJTb0o2HLO02JQZR7r
-kpeDMdmztcpHWD9f
------END CERTIFICATE-----
-
-Autoridad de Certificacion Firmaprofesional CIF A62634068
-=========================================================
------BEGIN CERTIFICATE-----
-MIIGFDCCA/ygAwIBAgIIU+w77vuySF8wDQYJKoZIhvcNAQEFBQAwUTELMAkGA1UEBhMCRVMxQjBA
-BgNVBAMMOUF1dG9yaWRhZCBkZSBDZXJ0aWZpY2FjaW9uIEZpcm1hcHJvZmVzaW9uYWwgQ0lGIEE2
-MjYzNDA2ODAeFw0wOTA1MjAwODM4MTVaFw0zMDEyMzEwODM4MTVaMFExCzAJBgNVBAYTAkVTMUIw
-QAYDVQQDDDlBdXRvcmlkYWQgZGUgQ2VydGlmaWNhY2lvbiBGaXJtYXByb2Zlc2lvbmFsIENJRiBB
-NjI2MzQwNjgwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDKlmuO6vj78aI14H9M2uDD
-Utd9thDIAl6zQyrET2qyyhxdKJp4ERppWVevtSBC5IsP5t9bpgOSL/UR5GLXMnE42QQMcas9UX4P
-B99jBVzpv5RvwSmCwLTaUbDBPLutN0pcyvFLNg4kq7/DhHf9qFD0sefGL9ItWY16Ck6WaVICqjaY
-7Pz6FIMMNx/Jkjd/14Et5cS54D40/mf0PmbR0/RAz15iNA9wBj4gGFrO93IbJWyTdBSTo3OxDqqH
-ECNZXyAFGUftaI6SEspd/NYrspI8IM/hX68gvqB2f3bl7BqGYTM+53u0P6APjqK5am+5hyZvQWyI
-plD9amML9ZMWGxmPsu2bm8mQ9QEM3xk9Dz44I8kvjwzRAv4bVdZO0I08r0+k8/6vKtMFnXkIoctX
-MbScyJCyZ/QYFpM6/EfY0XiWMR+6KwxfXZmtY4laJCB22N/9q06mIqqdXuYnin1oKaPnirjaEbsX
-LZmdEyRG98Xi2J+Of8ePdG1asuhy9azuJBCtLxTa/y2aRnFHvkLfuwHb9H/TKI8xWVvTyQKmtFLK
-bpf7Q8UIJm+K9Lv9nyiqDdVF8xM6HdjAeI9BZzwelGSuewvF6NkBiDkal4ZkQdU7hwxu+g/GvUgU
-vzlN1J5Bto+WHWOWk9mVBngxaJ43BjuAiUVhOSPHG0SjFeUc+JIwuwIDAQABo4HvMIHsMBIGA1Ud
-EwEB/wQIMAYBAf8CAQEwDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRlzeurNR4APn7VdMActHNH
-DhpkLzCBpgYDVR0gBIGeMIGbMIGYBgRVHSAAMIGPMC8GCCsGAQUFBwIBFiNodHRwOi8vd3d3LmZp
-cm1hcHJvZmVzaW9uYWwuY29tL2NwczBcBggrBgEFBQcCAjBQHk4AUABhAHMAZQBvACAAZABlACAA
-bABhACAAQgBvAG4AYQBuAG8AdgBhACAANAA3ACAAQgBhAHIAYwBlAGwAbwBuAGEAIAAwADgAMAAx
-ADcwDQYJKoZIhvcNAQEFBQADggIBABd9oPm03cXF661LJLWhAqvdpYhKsg9VSytXjDvlMd3+xDLx
-51tkljYyGOylMnfX40S2wBEqgLk9am58m9Ot/MPWo+ZkKXzR4Tgegiv/J2Wv+xYVxC5xhOW1//qk
-R71kMrv2JYSiJ0L1ILDCExARzRAVukKQKtJE4ZYm6zFIEv0q2skGz3QeqUvVhyj5eTSSPi5E6PaP
-T481PyWzOdxjKpBrIF/EUhJOlywqrJ2X3kjyo2bbwtKDlaZmp54lD+kLM5FlClrD2VQS3a/DTg4f
-Jl4N3LON7NWBcN7STyQF82xO9UxJZo3R/9ILJUFI/lGExkKvgATP0H5kSeTy36LssUzAKh3ntLFl
-osS88Zj0qnAHY7S42jtM+kAiMFsRpvAFDsYCA0irhpuF3dvd6qJ2gHN99ZwExEWN57kci57q13XR
-crHedUTnQn3iV2t93Jm8PYMo6oCTjcVMZcFwgbg4/EMxsvYDNEeyrPsiBsse3RdHHF9mudMaotoR
-saS8I8nkvof/uZS2+F0gStRf571oe2XyFR7SOqkt6dhrJKyXWERHrVkY8SFlcN7ONGCoQPHzPKTD
-KCOM/iczQ0CgFzzr6juwcqajuUpLXhZI9LK8yIySxZ2frHI2vDSANGupi5LAuBft7HZT9SQBjLMi
-6Et8Vcad+qMUu2WFbm5PEn4KPJ2V
------END CERTIFICATE-----
-
-Izenpe.com
-==========
------BEGIN CERTIFICATE-----
-MIIF8TCCA9mgAwIBAgIQALC3WhZIX7/hy/WL1xnmfTANBgkqhkiG9w0BAQsFADA4MQswCQYDVQQG
-EwJFUzEUMBIGA1UECgwLSVpFTlBFIFMuQS4xEzARBgNVBAMMCkl6ZW5wZS5jb20wHhcNMDcxMjEz
-MTMwODI4WhcNMzcxMjEzMDgyNzI1WjA4MQswCQYDVQQGEwJFUzEUMBIGA1UECgwLSVpFTlBFIFMu
-QS4xEzARBgNVBAMMCkl6ZW5wZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDJ
-03rKDx6sp4boFmVqscIbRTJxldn+EFvMr+eleQGPicPK8lVx93e+d5TzcqQsRNiekpsUOqHnJJAK
-ClaOxdgmlOHZSOEtPtoKct2jmRXagaKH9HtuJneJWK3W6wyyQXpzbm3benhB6QiIEn6HLmYRY2xU
-+zydcsC8Lv/Ct90NduM61/e0aL6i9eOBbsFGb12N4E3GVFWJGjMxCrFXuaOKmMPsOzTFlUFpfnXC
-PCDFYbpRR6AgkJOhkEvzTnyFRVSa0QUmQbC1TR0zvsQDyCV8wXDbO/QJLVQnSKwv4cSsPsjLkkxT
-OTcj7NMB+eAJRE1NZMDhDVqHIrytG6P+JrUV86f8hBnp7KGItERphIPzidF0BqnMC9bC3ieFUCbK
-F7jJeodWLBoBHmy+E60QrLUk9TiRodZL2vG70t5HtfG8gfZZa88ZU+mNFctKy6lvROUbQc/hhqfK
-0GqfvEyNBjNaooXlkDWgYlwWTvDjovoDGrQscbNYLN57C9saD+veIR8GdwYDsMnvmfzAuU8Lhij+
-0rnq49qlw0dpEuDb8PYZi+17cNcC1u2HGCgsBCRMd+RIihrGO5rUD8r6ddIBQFqNeb+Lz0vPqhbB
-leStTIo+F5HUsWLlguWABKQDfo2/2n+iD5dPDNMN+9fR5XJ+HMh3/1uaD7euBUbl8agW7EekFwID
-AQABo4H2MIHzMIGwBgNVHREEgagwgaWBD2luZm9AaXplbnBlLmNvbaSBkTCBjjFHMEUGA1UECgw+
-SVpFTlBFIFMuQS4gLSBDSUYgQTAxMzM3MjYwLVJNZXJjLlZpdG9yaWEtR2FzdGVpeiBUMTA1NSBG
-NjIgUzgxQzBBBgNVBAkMOkF2ZGEgZGVsIE1lZGl0ZXJyYW5lbyBFdG9yYmlkZWEgMTQgLSAwMTAx
-MCBWaXRvcmlhLUdhc3RlaXowDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0O
-BBYEFB0cZQ6o8iV7tJHP5LGx5r1VdGwFMA0GCSqGSIb3DQEBCwUAA4ICAQB4pgwWSp9MiDrAyw6l
-Fn2fuUhfGI8NYjb2zRlrrKvV9pF9rnHzP7MOeIWblaQnIUdCSnxIOvVFfLMMjlF4rJUT3sb9fbga
-kEyrkgPH7UIBzg/YsfqikuFgba56awmqxinuaElnMIAkejEWOVt+8Rwu3WwJrfIxwYJOubv5vr8q
-hT/AQKM6WfxZSzwoJNu0FXWuDYi6LnPAvViH5ULy617uHjAimcs30cQhbIHsvm0m5hzkQiCeR7Cs
-g1lwLDXWrzY0tM07+DKo7+N4ifuNRSzanLh+QBxh5z6ikixL8s36mLYp//Pye6kfLqCTVyvehQP5
-aTfLnnhqBbTFMXiJ7HqnheG5ezzevh55hM6fcA5ZwjUukCox2eRFekGkLhObNA5me0mrZJfQRsN5
-nXJQY6aYWwa9SG3YOYNw6DXwBdGqvOPbyALqfP2C2sJbUjWumDqtujWTI6cfSN01RpiyEGjkpTHC
-ClguGYEQyVB1/OpaFs4R1+7vUIgtYf8/QnMFlEPVjjxOAToZpR9GTnfQXeWBIiGH/pR9hNiTrdZo
-Q0iy2+tzJOeRf1SktoA+naM8THLCV8Sg1Mw4J87VBp6iSNnpn86CcDaTmjvfliHjWbcM2pE38P1Z
-WrOZyGlsQyYBNWNgVYkDOnXYukrZVP/u3oDYLdE41V4tC5h9Pmzb/CaIxw==
------END CERTIFICATE-----
-
-Chambers of Commerce Root - 2008
-================================
------BEGIN CERTIFICATE-----
-MIIHTzCCBTegAwIBAgIJAKPaQn6ksa7aMA0GCSqGSIb3DQEBBQUAMIGuMQswCQYDVQQGEwJFVTFD
-MEEGA1UEBxM6TWFkcmlkIChzZWUgY3VycmVudCBhZGRyZXNzIGF0IHd3dy5jYW1lcmZpcm1hLmNv
-bS9hZGRyZXNzKTESMBAGA1UEBRMJQTgyNzQzMjg3MRswGQYDVQQKExJBQyBDYW1lcmZpcm1hIFMu
-QS4xKTAnBgNVBAMTIENoYW1iZXJzIG9mIENvbW1lcmNlIFJvb3QgLSAyMDA4MB4XDTA4MDgwMTEy
-Mjk1MFoXDTM4MDczMTEyMjk1MFowga4xCzAJBgNVBAYTAkVVMUMwQQYDVQQHEzpNYWRyaWQgKHNl
-ZSBjdXJyZW50IGFkZHJlc3MgYXQgd3d3LmNhbWVyZmlybWEuY29tL2FkZHJlc3MpMRIwEAYDVQQF
-EwlBODI3NDMyODcxGzAZBgNVBAoTEkFDIENhbWVyZmlybWEgUy5BLjEpMCcGA1UEAxMgQ2hhbWJl
-cnMgb2YgQ29tbWVyY2UgUm9vdCAtIDIwMDgwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoIC
-AQCvAMtwNyuAWko6bHiUfaN/Gh/2NdW928sNRHI+JrKQUrpjOyhYb6WzbZSm891kDFX29ufyIiKA
-XuFixrYp4YFs8r/lfTJqVKAyGVn+H4vXPWCGhSRv4xGzdz4gljUha7MI2XAuZPeEklPWDrCQiorj
-h40G072QDuKZoRuGDtqaCrsLYVAGUvGef3bsyw/QHg3PmTA9HMRFEFis1tPo1+XqxQEHd9ZR5gN/
-ikilTWh1uem8nk4ZcfUyS5xtYBkL+8ydddy/Js2Pk3g5eXNeJQ7KXOt3EgfLZEFHcpOrUMPrCXZk
-NNI5t3YRCQ12RcSprj1qr7V9ZS+UWBDsXHyvfuK2GNnQm05aSd+pZgvMPMZ4fKecHePOjlO+Bd5g
-D2vlGts/4+EhySnB8esHnFIbAURRPHsl18TlUlRdJQfKFiC4reRB7noI/plvg6aRArBsNlVq5331
-lubKgdaX8ZSD6e2wsWsSaR6s+12pxZjptFtYer49okQ6Y1nUCyXeG0+95QGezdIp1Z8XGQpvvwyQ
-0wlf2eOKNcx5Wk0ZN5K3xMGtr/R5JJqyAQuxr1yW84Ay+1w9mPGgP0revq+ULtlVmhduYJ1jbLhj
-ya6BXBg14JC7vjxPNyK5fuvPnnchpj04gftI2jE9K+OJ9dC1vX7gUMQSibMjmhAxhduub+84Mxh2
-EQIDAQABo4IBbDCCAWgwEgYDVR0TAQH/BAgwBgEB/wIBDDAdBgNVHQ4EFgQU+SSsD7K1+HnA+mCI
-G8TZTQKeFxkwgeMGA1UdIwSB2zCB2IAU+SSsD7K1+HnA+mCIG8TZTQKeFxmhgbSkgbEwga4xCzAJ
-BgNVBAYTAkVVMUMwQQYDVQQHEzpNYWRyaWQgKHNlZSBjdXJyZW50IGFkZHJlc3MgYXQgd3d3LmNh
-bWVyZmlybWEuY29tL2FkZHJlc3MpMRIwEAYDVQQFEwlBODI3NDMyODcxGzAZBgNVBAoTEkFDIENh
-bWVyZmlybWEgUy5BLjEpMCcGA1UEAxMgQ2hhbWJlcnMgb2YgQ29tbWVyY2UgUm9vdCAtIDIwMDiC
-CQCj2kJ+pLGu2jAOBgNVHQ8BAf8EBAMCAQYwPQYDVR0gBDYwNDAyBgRVHSAAMCowKAYIKwYBBQUH
-AgEWHGh0dHA6Ly9wb2xpY3kuY2FtZXJmaXJtYS5jb20wDQYJKoZIhvcNAQEFBQADggIBAJASryI1
-wqM58C7e6bXpeHxIvj99RZJe6dqxGfwWPJ+0W2aeaufDuV2I6A+tzyMP3iU6XsxPpcG1Lawk0lgH
-3qLPaYRgM+gQDROpI9CF5Y57pp49chNyM/WqfcZjHwj0/gF/JM8rLFQJ3uIrbZLGOU8W6jx+ekbU
-RWpGqOt1glanq6B8aBMz9p0w8G8nOSQjKpD9kCk18pPfNKXG9/jvjA9iSnyu0/VU+I22mlaHFoI6
-M6taIgj3grrqLuBHmrS1RaMFO9ncLkVAO+rcf+g769HsJtg1pDDFOqxXnrN2pSB7+R5KBWIBpih1
-YJeSDW4+TTdDDZIVnBgizVGZoCkaPF+KMjNbMMeJL0eYD6MDxvbxrN8y8NmBGuScvfaAFPDRLLmF
-9dijscilIeUcE5fuDr3fKanvNFNb0+RqE4QGtjICxFKuItLcsiFCGtpA8CnJ7AoMXOLQusxI0zcK
-zBIKinmwPQN/aUv0NCB9szTqjktk9T79syNnFQ0EuPAtwQlRPLJsFfClI9eDdOTlLsn+mCdCxqvG
-nrDQWzilm1DefhiYtUU79nm06PcaewaD+9CL2rvHvRirCG88gGtAPxkZumWK5r7VXNM21+9AUiRg
-OGcEMeyP84LG3rlV8zsxkVrctQgVrXYlCg17LofiDKYGvCYQbTed7N14jHyAxfDZd0jQ
------END CERTIFICATE-----
-
-Global Chambersign Root - 2008
-==============================
------BEGIN CERTIFICATE-----
-MIIHSTCCBTGgAwIBAgIJAMnN0+nVfSPOMA0GCSqGSIb3DQEBBQUAMIGsMQswCQYDVQQGEwJFVTFD
-MEEGA1UEBxM6TWFkcmlkIChzZWUgY3VycmVudCBhZGRyZXNzIGF0IHd3dy5jYW1lcmZpcm1hLmNv
-bS9hZGRyZXNzKTESMBAGA1UEBRMJQTgyNzQzMjg3MRswGQYDVQQKExJBQyBDYW1lcmZpcm1hIFMu
-QS4xJzAlBgNVBAMTHkdsb2JhbCBDaGFtYmVyc2lnbiBSb290IC0gMjAwODAeFw0wODA4MDExMjMx
-NDBaFw0zODA3MzExMjMxNDBaMIGsMQswCQYDVQQGEwJFVTFDMEEGA1UEBxM6TWFkcmlkIChzZWUg
-Y3VycmVudCBhZGRyZXNzIGF0IHd3dy5jYW1lcmZpcm1hLmNvbS9hZGRyZXNzKTESMBAGA1UEBRMJ
-QTgyNzQzMjg3MRswGQYDVQQKExJBQyBDYW1lcmZpcm1hIFMuQS4xJzAlBgNVBAMTHkdsb2JhbCBD
-aGFtYmVyc2lnbiBSb290IC0gMjAwODCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMDf
-VtPkOpt2RbQT2//BthmLN0EYlVJH6xedKYiONWwGMi5HYvNJBL99RDaxccy9Wglz1dmFRP+RVyXf
-XjaOcNFccUMd2drvXNL7G706tcuto8xEpw2uIRU/uXpbknXYpBI4iRmKt4DS4jJvVpyR1ogQC7N0
-ZJJ0YPP2zxhPYLIj0Mc7zmFLmY/CDNBAspjcDahOo7kKrmCgrUVSY7pmvWjg+b4aqIG7HkF4ddPB
-/gBVsIdU6CeQNR1MM62X/JcumIS/LMmjv9GYERTtY/jKmIhYF5ntRQOXfjyGHoiMvvKRhI9lNNgA
-TH23MRdaKXoKGCQwoze1eqkBfSbW+Q6OWfH9GzO1KTsXO0G2Id3UwD2ln58fQ1DJu7xsepeY7s2M
-H/ucUa6LcL0nn3HAa6x9kGbo1106DbDVwo3VyJ2dwW3Q0L9R5OP4wzg2rtandeavhENdk5IMagfe
-Ox2YItaswTXbo6Al/3K1dh3ebeksZixShNBFks4c5eUzHdwHU1SjqoI7mjcv3N2gZOnm3b2u/GSF
-HTynyQbehP9r6GsaPMWis0L7iwk+XwhSx2LE1AVxv8Rk5Pihg+g+EpuoHtQ2TS9x9o0o9oOpE9Jh
-wZG7SMA0j0GMS0zbaRL/UJScIINZc+18ofLx/d33SdNDWKBWY8o9PeU1VlnpDsogzCtLkykPAgMB
-AAGjggFqMIIBZjASBgNVHRMBAf8ECDAGAQH/AgEMMB0GA1UdDgQWBBS5CcqcHtvTbDprru1U8VuT
-BjUuXjCB4QYDVR0jBIHZMIHWgBS5CcqcHtvTbDprru1U8VuTBjUuXqGBsqSBrzCBrDELMAkGA1UE
-BhMCRVUxQzBBBgNVBAcTOk1hZHJpZCAoc2VlIGN1cnJlbnQgYWRkcmVzcyBhdCB3d3cuY2FtZXJm
-aXJtYS5jb20vYWRkcmVzcykxEjAQBgNVBAUTCUE4Mjc0MzI4NzEbMBkGA1UEChMSQUMgQ2FtZXJm
-aXJtYSBTLkEuMScwJQYDVQQDEx5HbG9iYWwgQ2hhbWJlcnNpZ24gUm9vdCAtIDIwMDiCCQDJzdPp
-1X0jzjAOBgNVHQ8BAf8EBAMCAQYwPQYDVR0gBDYwNDAyBgRVHSAAMCowKAYIKwYBBQUHAgEWHGh0
-dHA6Ly9wb2xpY3kuY2FtZXJmaXJtYS5jb20wDQYJKoZIhvcNAQEFBQADggIBAICIf3DekijZBZRG
-/5BXqfEv3xoNa/p8DhxJJHkn2EaqbylZUohwEurdPfWbU1Rv4WCiqAm57OtZfMY18dwY6fFn5a+6
-ReAJ3spED8IXDneRRXozX1+WLGiLwUePmJs9wOzL9dWCkoQ10b42OFZyMVtHLaoXpGNR6woBrX/s
-dZ7LoR/xfxKxueRkf2fWIyr0uDldmOghp+G9PUIadJpwr2hsUF1Jz//7Dl3mLEfXgTpZALVza2Mg
-9jFFCDkO9HB+QHBaP9BrQql0PSgvAm11cpUJjUhjxsYjV5KTXjXBjfkK9yydYhz2rXzdpjEetrHH
-foUm+qRqtdpjMNHvkzeyZi99Bffnt0uYlDXA2TopwZ2yUDMdSqlapskD7+3056huirRXhOukP9Du
-qqqHW2Pok+JrqNS4cnhrG+055F3Lm6qH1U9OAP7Zap88MQ8oAgF9mOinsKJknnn4SPIVqczmyETr
-P3iZ8ntxPjzxmKfFGBI/5rsoM0LpRQp8bfKGeS/Fghl9CYl8slR2iK7ewfPM4W7bMdaTrpmg7yVq
-c5iJWzouE4gev8CSlDQb4ye3ix5vQv/n6TebUB0tovkC7stYWDpxvGjjqsGvHCgfotwjZT+B6q6Z
-09gwzxMNTxXJhLynSC34MCN32EZLeW32jO06f2ARePTpm67VVMB0gNELQp/B
------END CERTIFICATE-----
-
-Go Daddy Root Certificate Authority - G2
-========================================
------BEGIN CERTIFICATE-----
-MIIDxTCCAq2gAwIBAgIBADANBgkqhkiG9w0BAQsFADCBgzELMAkGA1UEBhMCVVMxEDAOBgNVBAgT
-B0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxGjAYBgNVBAoTEUdvRGFkZHkuY29tLCBJbmMu
-MTEwLwYDVQQDEyhHbyBEYWRkeSBSb290IENlcnRpZmljYXRlIEF1dGhvcml0eSAtIEcyMB4XDTA5
-MDkwMTAwMDAwMFoXDTM3MTIzMTIzNTk1OVowgYMxCzAJBgNVBAYTAlVTMRAwDgYDVQQIEwdBcml6
-b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMRowGAYDVQQKExFHb0RhZGR5LmNvbSwgSW5jLjExMC8G
-A1UEAxMoR28gRGFkZHkgUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgLSBHMjCCASIwDQYJKoZI
-hvcNAQEBBQADggEPADCCAQoCggEBAL9xYgjx+lk09xvJGKP3gElY6SKDE6bFIEMBO4Tx5oVJnyfq
-9oQbTqC023CYxzIBsQU+B07u9PpPL1kwIuerGVZr4oAH/PMWdYA5UXvl+TW2dE6pjYIT5LY/qQOD
-+qK+ihVqf94Lw7YZFAXK6sOoBJQ7RnwyDfMAZiLIjWltNowRGLfTshxgtDj6AozO091GB94KPutd
-fMh8+7ArU6SSYmlRJQVhGkSBjCypQ5Yj36w6gZoOKcUcqeldHraenjAKOc7xiID7S13MMuyFYkMl
-NAJWJwGRtDtwKj9useiciAF9n9T521NtYJ2/LOdYq7hfRvzOxBsDPAnrSTFcaUaz4EcCAwEAAaNC
-MEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFDqahQcQZyi27/a9
-BUFuIMGU2g/eMA0GCSqGSIb3DQEBCwUAA4IBAQCZ21151fmXWWcDYfF+OwYxdS2hII5PZYe096ac
-vNjpL9DbWu7PdIxztDhC2gV7+AJ1uP2lsdeu9tfeE8tTEH6KRtGX+rcuKxGrkLAngPnon1rpN5+r
-5N9ss4UXnT3ZJE95kTXWXwTrgIOrmgIttRD02JDHBHNA7XIloKmf7J6raBKZV8aPEjoJpL1E/QYV
-N8Gb5DKj7Tjo2GTzLH4U/ALqn83/B2gX2yKQOC16jdFU8WnjXzPKej17CuPKf1855eJ1usV2GDPO
-LPAvTK33sefOT6jEm0pUBsV/fdUID+Ic/n4XuKxe9tQWskMJDE32p2u0mYRlynqI4uJEvlz36hz1
------END CERTIFICATE-----
-
-Starfield Root Certificate Authority - G2
-=========================================
------BEGIN CERTIFICATE-----
-MIID3TCCAsWgAwIBAgIBADANBgkqhkiG9w0BAQsFADCBjzELMAkGA1UEBhMCVVMxEDAOBgNVBAgT
-B0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxJTAjBgNVBAoTHFN0YXJmaWVsZCBUZWNobm9s
-b2dpZXMsIEluYy4xMjAwBgNVBAMTKVN0YXJmaWVsZCBSb290IENlcnRpZmljYXRlIEF1dGhvcml0
-eSAtIEcyMB4XDTA5MDkwMTAwMDAwMFoXDTM3MTIzMTIzNTk1OVowgY8xCzAJBgNVBAYTAlVTMRAw
-DgYDVQQIEwdBcml6b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMSUwIwYDVQQKExxTdGFyZmllbGQg
-VGVjaG5vbG9naWVzLCBJbmMuMTIwMAYDVQQDEylTdGFyZmllbGQgUm9vdCBDZXJ0aWZpY2F0ZSBB
-dXRob3JpdHkgLSBHMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3twQP89o/8ArFv
-W59I2Z154qK3A2FWGMNHttfKPTUuiUP3oWmb3ooa/RMgnLRJdzIpVv257IzdIvpy3Cdhl+72WoTs
-bhm5iSzchFvVdPtrX8WJpRBSiUZV9Lh1HOZ/5FSuS/hVclcCGfgXcVnrHigHdMWdSL5stPSksPNk
-N3mSwOxGXn/hbVNMYq/NHwtjuzqd+/x5AJhhdM8mgkBj87JyahkNmcrUDnXMN/uLicFZ8WJ/X7Nf
-ZTD4p7dNdloedl40wOiWVpmKs/B/pM293DIxfJHP4F8R+GuqSVzRmZTRouNjWwl2tVZi4Ut0HZbU
-JtQIBFnQmA4O5t78w+wfkPECAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
-AQYwHQYDVR0OBBYEFHwMMh+n2TB/xH1oo2Kooc6rB1snMA0GCSqGSIb3DQEBCwUAA4IBAQARWfol
-TwNvlJk7mh+ChTnUdgWUXuEok21iXQnCoKjUsHU48TRqneSfioYmUeYs0cYtbpUgSpIB7LiKZ3sx
-4mcujJUDJi5DnUox9g61DLu34jd/IroAow57UvtruzvE03lRTs2Q9GcHGcg8RnoNAX3FWOdt5oUw
-F5okxBDgBPfg8n/Uqgr/Qh037ZTlZFkSIHc40zI+OIF1lnP6aI+xy84fxez6nH7PfrHxBy22/L/K
-pL/QlwVKvOoYKAKQvVR4CSFx09F9HdkWsKlhPdAKACL8x3vLCWRFCztAgfd9fDL1mMpYjn0q7pBZ
-c2T5NnReJaH1ZgUufzkVqSr7UIuOhWn0
------END CERTIFICATE-----
-
-Starfield Services Root Certificate Authority - G2
-==================================================
------BEGIN CERTIFICATE-----
-MIID7zCCAtegAwIBAgIBADANBgkqhkiG9w0BAQsFADCBmDELMAkGA1UEBhMCVVMxEDAOBgNVBAgT
-B0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxJTAjBgNVBAoTHFN0YXJmaWVsZCBUZWNobm9s
-b2dpZXMsIEluYy4xOzA5BgNVBAMTMlN0YXJmaWVsZCBTZXJ2aWNlcyBSb290IENlcnRpZmljYXRl
-IEF1dGhvcml0eSAtIEcyMB4XDTA5MDkwMTAwMDAwMFoXDTM3MTIzMTIzNTk1OVowgZgxCzAJBgNV
-BAYTAlVTMRAwDgYDVQQIEwdBcml6b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMSUwIwYDVQQKExxT
-dGFyZmllbGQgVGVjaG5vbG9naWVzLCBJbmMuMTswOQYDVQQDEzJTdGFyZmllbGQgU2VydmljZXMg
-Um9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgLSBHMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC
-AQoCggEBANUMOsQq+U7i9b4Zl1+OiFOxHz/Lz58gE20pOsgPfTz3a3Y4Y9k2YKibXlwAgLIvWX/2
-h/klQ4bnaRtSmpDhcePYLQ1Ob/bISdm28xpWriu2dBTrz/sm4xq6HZYuajtYlIlHVv8loJNwU4Pa
-hHQUw2eeBGg6345AWh1KTs9DkTvnVtYAcMtS7nt9rjrnvDH5RfbCYM8TWQIrgMw0R9+53pBlbQLP
-LJGmpufehRhJfGZOozptqbXuNC66DQO4M99H67FrjSXZm86B0UVGMpZwh94CDklDhbZsc7tk6mFB
-rMnUVN+HL8cisibMn1lUaJ/8viovxFUcdUBgF4UCVTmLfwUCAwEAAaNCMEAwDwYDVR0TAQH/BAUw
-AwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFJxfAN+qAdcwKziIorhtSpzyEZGDMA0GCSqG
-SIb3DQEBCwUAA4IBAQBLNqaEd2ndOxmfZyMIbw5hyf2E3F/YNoHN2BtBLZ9g3ccaaNnRbobhiCPP
-E95Dz+I0swSdHynVv/heyNXBve6SbzJ08pGCL72CQnqtKrcgfU28elUSwhXqvfdqlS5sdJ/PHLTy
-xQGjhdByPq1zqwubdQxtRbeOlKyWN7Wg0I8VRw7j6IPdj/3vQQF3zCepYoUz8jcI73HPdwbeyBkd
-iEDPfUYd/x7H4c7/I9vG+o1VTqkC50cRRj70/b17KSa7qWFiNyi2LSr2EIZkyXCn0q23KXB56jza
-YyWf/Wi3MOxw+3WKt21gZ7IeyLnp2KhvAotnDU0mV3HaIPzBSlCNsSi6
------END CERTIFICATE-----
-
-AffirmTrust Commercial
-======================
------BEGIN CERTIFICATE-----
-MIIDTDCCAjSgAwIBAgIId3cGJyapsXwwDQYJKoZIhvcNAQELBQAwRDELMAkGA1UEBhMCVVMxFDAS
-BgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVzdCBDb21tZXJjaWFsMB4XDTEw
-MDEyOTE0MDYwNloXDTMwMTIzMTE0MDYwNlowRDELMAkGA1UEBhMCVVMxFDASBgNVBAoMC0FmZmly
-bVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVzdCBDb21tZXJjaWFsMIIBIjANBgkqhkiG9w0BAQEF
-AAOCAQ8AMIIBCgKCAQEA9htPZwcroRX1BiLLHwGy43NFBkRJLLtJJRTWzsO3qyxPxkEylFf6Eqdb
-DuKPHx6GGaeqtS25Xw2Kwq+FNXkyLbscYjfysVtKPcrNcV/pQr6U6Mje+SJIZMblq8Yrba0F8PrV
-C8+a5fBQpIs7R6UjW3p6+DM/uO+Zl+MgwdYoic+U+7lF7eNAFxHUdPALMeIrJmqbTFeurCA+ukV6
-BfO9m2kVrn1OIGPENXY6BwLJN/3HR+7o8XYdcxXyl6S1yHp52UKqK39c/s4mT6NmgTWvRLpUHhww
-MmWd5jyTXlBOeuM61G7MGvv50jeuJCqrVwMiKA1JdX+3KNp1v47j3A55MQIDAQABo0IwQDAdBgNV
-HQ4EFgQUnZPGU4teyq8/nx4P5ZmVvCT2lI8wDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
-AQYwDQYJKoZIhvcNAQELBQADggEBAFis9AQOzcAN/wr91LoWXym9e2iZWEnStB03TX8nfUYGXUPG
-hi4+c7ImfU+TqbbEKpqrIZcUsd6M06uJFdhrJNTxFq7YpFzUf1GO7RgBsZNjvbz4YYCanrHOQnDi
-qX0GJX0nof5v7LMeJNrjS1UaADs1tDvZ110w/YETifLCBivtZ8SOyUOyXGsViQK8YvxO8rUzqrJv
-0wqiUOP2O+guRMLbZjipM1ZI8W0bM40NjD9gN53Tym1+NH4Nn3J2ixufcv1SNUFFApYvHLKac0kh
-sUlHRUe072o0EclNmsxZt9YCnlpOZbWUrhvfKbAW8b8Angc6F2S1BLUjIZkKlTuXfO8=
------END CERTIFICATE-----
-
-AffirmTrust Networking
-======================
------BEGIN CERTIFICATE-----
-MIIDTDCCAjSgAwIBAgIIfE8EORzUmS0wDQYJKoZIhvcNAQEFBQAwRDELMAkGA1UEBhMCVVMxFDAS
-BgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVzdCBOZXR3b3JraW5nMB4XDTEw
-MDEyOTE0MDgyNFoXDTMwMTIzMTE0MDgyNFowRDELMAkGA1UEBhMCVVMxFDASBgNVBAoMC0FmZmly
-bVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVzdCBOZXR3b3JraW5nMIIBIjANBgkqhkiG9w0BAQEF
-AAOCAQ8AMIIBCgKCAQEAtITMMxcua5Rsa2FSoOujz3mUTOWUgJnLVWREZY9nZOIG41w3SfYvm4SE
-Hi3yYJ0wTsyEheIszx6e/jarM3c1RNg1lho9Nuh6DtjVR6FqaYvZ/Ls6rnla1fTWcbuakCNrmreI
-dIcMHl+5ni36q1Mr3Lt2PpNMCAiMHqIjHNRqrSK6mQEubWXLviRmVSRLQESxG9fhwoXA3hA/Pe24
-/PHxI1Pcv2WXb9n5QHGNfb2V1M6+oF4nI979ptAmDgAp6zxG8D1gvz9Q0twmQVGeFDdCBKNwV6gb
-h+0t+nvujArjqWaJGctB+d1ENmHP4ndGyH329JKBNv3bNPFyfvMMFr20FQIDAQABo0IwQDAdBgNV
-HQ4EFgQUBx/S55zawm6iQLSwelAQUHTEyL0wDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
-AQYwDQYJKoZIhvcNAQEFBQADggEBAIlXshZ6qML91tmbmzTCnLQyFE2npN/svqe++EPbkTfOtDIu
-UFUaNU52Q3Eg75N3ThVwLofDwR1t3Mu1J9QsVtFSUzpE0nPIxBsFZVpikpzuQY0x2+c06lkh1QF6
-12S4ZDnNye2v7UsDSKegmQGA3GWjNq5lWUhPgkvIZfFXHeVZLgo/bNjR9eUJtGxUAArgFU2HdW23
-WJZa3W3SAKD0m0i+wzekujbgfIeFlxoVot4uolu9rxj5kFDNcFn4J2dHy8egBzp90SxdbBk6ZrV9
-/ZFvgrG+CJPbFEfxojfHRZ48x3evZKiT3/Zpg4Jg8klCNO1aAFSFHBY2kgxc+qatv9s=
------END CERTIFICATE-----
-
-AffirmTrust Premium
-===================
------BEGIN CERTIFICATE-----
-MIIFRjCCAy6gAwIBAgIIbYwURrGmCu4wDQYJKoZIhvcNAQEMBQAwQTELMAkGA1UEBhMCVVMxFDAS
-BgNVBAoMC0FmZmlybVRydXN0MRwwGgYDVQQDDBNBZmZpcm1UcnVzdCBQcmVtaXVtMB4XDTEwMDEy
-OTE0MTAzNloXDTQwMTIzMTE0MTAzNlowQTELMAkGA1UEBhMCVVMxFDASBgNVBAoMC0FmZmlybVRy
-dXN0MRwwGgYDVQQDDBNBZmZpcm1UcnVzdCBQcmVtaXVtMIICIjANBgkqhkiG9w0BAQEFAAOCAg8A
-MIICCgKCAgEAxBLfqV/+Qd3d9Z+K4/as4Tx4mrzY8H96oDMq3I0gW64tb+eT2TZwamjPjlGjhVtn
-BKAQJG9dKILBl1fYSCkTtuG+kU3fhQxTGJoeJKJPj/CihQvL9Cl/0qRY7iZNyaqoe5rZ+jjeRFcV
-5fiMyNlI4g0WJx0eyIOFJbe6qlVBzAMiSy2RjYvmia9mx+n/K+k8rNrSs8PhaJyJ+HoAVt70VZVs
-+7pk3WKL3wt3MutizCaam7uqYoNMtAZ6MMgpv+0GTZe5HMQxK9VfvFMSF5yZVylmd2EhMQcuJUmd
-GPLu8ytxjLW6OQdJd/zvLpKQBY0tL3d770O/Nbua2Plzpyzy0FfuKE4mX4+QaAkvuPjcBukumj5R
-p9EixAqnOEhss/n/fauGV+O61oV4d7pD6kh/9ti+I20ev9E2bFhc8e6kGVQa9QPSdubhjL08s9NI
-S+LI+H+SqHZGnEJlPqQewQcDWkYtuJfzt9WyVSHvutxMAJf7FJUnM7/oQ0dG0giZFmA7mn7S5u04
-6uwBHjxIVkkJx0w3AJ6IDsBz4W9m6XJHMD4Q5QsDyZpCAGzFlH5hxIrff4IaC1nEWTJ3s7xgaVY5
-/bQGeyzWZDbZvUjthB9+pSKPKrhC9IK31FOQeE4tGv2Bb0TXOwF0lkLgAOIua+rF7nKsu7/+6qqo
-+Nz2snmKtmcCAwEAAaNCMEAwHQYDVR0OBBYEFJ3AZ6YMItkm9UWrpmVSESfYRaxjMA8GA1UdEwEB
-/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBDAUAA4ICAQCzV00QYk465KzquByv
-MiPIs0laUZx2KI15qldGF9X1Uva3ROgIRL8YhNILgM3FEv0AVQVhh0HctSSePMTYyPtwni94loMg
-Nt58D2kTiKV1NpgIpsbfrM7jWNa3Pt668+s0QNiigfV4Py/VpfzZotReBA4Xrf5B8OWycvpEgjNC
-6C1Y91aMYj+6QrCcDFx+LmUmXFNPALJ4fqENmS2NuB2OosSw/WDQMKSOyARiqcTtNd56l+0OOF6S
-L5Nwpamcb6d9Ex1+xghIsV5n61EIJenmJWtSKZGc0jlzCFfemQa0W50QBuHCAKi4HEoCChTQwUHK
-+4w1IX2COPKpVJEZNZOUbWo6xbLQu4mGk+ibyQ86p3q4ofB4Rvr8Ny/lioTz3/4E2aFooC8k4gmV
-BtWVyuEklut89pMFu+1z6S3RdTnX5yTb2E5fQ4+e0BQ5v1VwSJlXMbSc7kqYA5YwH2AG7hsj/oFg
-IxpHYoWlzBk0gG+zrBrjn/B7SK3VAdlntqlyk+otZrWyuOQ9PLLvTIzq6we/qzWaVYa8GKa1qF60
-g2xraUDTn9zxw2lrueFtCfTxqlB2Cnp9ehehVZZCmTEJ3WARjQUwfuaORtGdFNrHF+QFlozEJLUb
-zxQHskD4o55BhrwE0GuWyCqANP2/7waj3VjFhT0+j/6eKeC2uAloGRwYQw==
------END CERTIFICATE-----
-
-AffirmTrust Premium ECC
-=======================
------BEGIN CERTIFICATE-----
-MIIB/jCCAYWgAwIBAgIIdJclisc/elQwCgYIKoZIzj0EAwMwRTELMAkGA1UEBhMCVVMxFDASBgNV
-BAoMC0FmZmlybVRydXN0MSAwHgYDVQQDDBdBZmZpcm1UcnVzdCBQcmVtaXVtIEVDQzAeFw0xMDAx
-MjkxNDIwMjRaFw00MDEyMzExNDIwMjRaMEUxCzAJBgNVBAYTAlVTMRQwEgYDVQQKDAtBZmZpcm1U
-cnVzdDEgMB4GA1UEAwwXQWZmaXJtVHJ1c3QgUHJlbWl1bSBFQ0MwdjAQBgcqhkjOPQIBBgUrgQQA
-IgNiAAQNMF4bFZ0D0KF5Nbc6PJJ6yhUczWLznCZcBz3lVPqj1swS6vQUX+iOGasvLkjmrBhDeKzQ
-N8O9ss0s5kfiGuZjuD0uL3jET9v0D6RoTFVya5UdThhClXjMNzyR4ptlKymjQjBAMB0GA1UdDgQW
-BBSaryl6wBE1NSZRMADDav5A1a7WPDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAK
-BggqhkjOPQQDAwNnADBkAjAXCfOHiFBar8jAQr9HX/VsaobgxCd05DhT1wV/GzTjxi+zygk8N53X
-57hG8f2h4nECMEJZh0PUUd+60wkyWs6Iflc9nF9Ca/UHLbXwgpP5WW+uZPpY5Yse42O+tYHNbwKM
-eQ==
------END CERTIFICATE-----
-
-Certum Trusted Network CA
-=========================
------BEGIN CERTIFICATE-----
-MIIDuzCCAqOgAwIBAgIDBETAMA0GCSqGSIb3DQEBBQUAMH4xCzAJBgNVBAYTAlBMMSIwIAYDVQQK
-ExlVbml6ZXRvIFRlY2hub2xvZ2llcyBTLkEuMScwJQYDVQQLEx5DZXJ0dW0gQ2VydGlmaWNhdGlv
-biBBdXRob3JpdHkxIjAgBgNVBAMTGUNlcnR1bSBUcnVzdGVkIE5ldHdvcmsgQ0EwHhcNMDgxMDIy
-MTIwNzM3WhcNMjkxMjMxMTIwNzM3WjB+MQswCQYDVQQGEwJQTDEiMCAGA1UEChMZVW5pemV0byBU
-ZWNobm9sb2dpZXMgUy5BLjEnMCUGA1UECxMeQ2VydHVtIENlcnRpZmljYXRpb24gQXV0aG9yaXR5
-MSIwIAYDVQQDExlDZXJ0dW0gVHJ1c3RlZCBOZXR3b3JrIENBMIIBIjANBgkqhkiG9w0BAQEFAAOC
-AQ8AMIIBCgKCAQEA4/t9o3K6wvDJFIf1awFO4W5AB7ptJ11/91sts1rHUV+rpDKmYYe2bg+G0jAC
-l/jXaVehGDldamR5xgFZrDwxSjh80gTSSyjoIF87B6LMTXPb865Px1bVWqeWifrzq2jUI4ZZJ88J
-J7ysbnKDHDBy3+Ci6dLhdHUZvSqeexVUBBvXQzmtVSjF4hq79MDkrjhJM8x2hZ85RdKknvISjFH4
-fOQtf/WsX+sWn7Et0brMkUJ3TCXJkDhv2/DM+44el1k+1WBO5gUo7Ul5E0u6SNsv+XLTOcr+H9g0
-cvW0QM8xAcPs3hEtF10fuFDRXhmnad4HMyjKUJX5p1TLVIZQRan5SQIDAQABo0IwQDAPBgNVHRMB
-Af8EBTADAQH/MB0GA1UdDgQWBBQIds3LB/8k9sXN7buQvOKEN0Z19zAOBgNVHQ8BAf8EBAMCAQYw
-DQYJKoZIhvcNAQEFBQADggEBAKaorSLOAT2mo/9i0Eidi15ysHhE49wcrwn9I0j6vSrEuVUEtRCj
-jSfeC4Jj0O7eDDd5QVsisrCaQVymcODU0HfLI9MA4GxWL+FpDQ3Zqr8hgVDZBqWo/5U30Kr+4rP1
-mS1FhIrlQgnXdAIv94nYmem8J9RHjboNRhx3zxSkHLmkMcScKHQDNP8zGSal6Q10tz6XxnboJ5aj
-Zt3hrvJBW8qYVoNzcOSGGtIxQbovvi0TWnZvTuhOgQ4/WwMioBK+ZlgRSssDxLQqKi2WF+A5VLxI
-03YnnZotBqbJ7DnSq9ufmgsnAjUpsUCV5/nonFWIGUbWtzT1fs45mtk48VH3Tyw=
------END CERTIFICATE-----
-
-TWCA Root Certification Authority
-=================================
------BEGIN CERTIFICATE-----
-MIIDezCCAmOgAwIBAgIBATANBgkqhkiG9w0BAQUFADBfMQswCQYDVQQGEwJUVzESMBAGA1UECgwJ
-VEFJV0FOLUNBMRAwDgYDVQQLDAdSb290IENBMSowKAYDVQQDDCFUV0NBIFJvb3QgQ2VydGlmaWNh
-dGlvbiBBdXRob3JpdHkwHhcNMDgwODI4MDcyNDMzWhcNMzAxMjMxMTU1OTU5WjBfMQswCQYDVQQG
-EwJUVzESMBAGA1UECgwJVEFJV0FOLUNBMRAwDgYDVQQLDAdSb290IENBMSowKAYDVQQDDCFUV0NB
-IFJvb3QgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK
-AoIBAQCwfnK4pAOU5qfeCTiRShFAh6d8WWQUe7UREN3+v9XAu1bihSX0NXIP+FPQQeFEAcK0HMMx
-QhZHhTMidrIKbw/lJVBPhYa+v5guEGcevhEFhgWQxFnQfHgQsIBct+HHK3XLfJ+utdGdIzdjp9xC
-oi2SBBtQwXu4PhvJVgSLL1KbralW6cH/ralYhzC2gfeXRfwZVzsrb+RH9JlF/h3x+JejiB03HFyP
-4HYlmlD4oFT/RJB2I9IyxsOrBr/8+7/zrX2SYgJbKdM1o5OaQ2RgXbL6Mv87BK9NQGr5x+PvI/1r
-y+UPizgN7gr8/g+YnzAx3WxSZfmLgb4i4RxYA7qRG4kHAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIB
-BjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRqOFsmjd6LWvJPelSDGRjjCDWmujANBgkqhkiG
-9w0BAQUFAAOCAQEAPNV3PdrfibqHDAhUaiBQkr6wQT25JmSDCi/oQMCXKCeCMErJk/9q56YAf4lC
-mtYR5VPOL8zy2gXE/uJQxDqGfczafhAJO5I1KlOy/usrBdlsXebQ79NqZp4VKIV66IIArB6nCWlW
-QtNoURi+VJq/REG6Sb4gumlc7rh3zc5sH62Dlhh9DrUUOYTxKOkto557HnpyWoOzeW/vtPzQCqVY
-T0bf+215WfKEIlKuD8z7fDvnaspHYcN6+NOSBB+4IIThNlQWx0DeO4pz3N/GCUzf7Nr/1FNCocny
-Yh0igzyXxfkZYiesZSLX0zzG5Y6yU8xJzrww/nsOM5D77dIUkR8Hrw==
------END CERTIFICATE-----
-
-Security Communication RootCA2
-==============================
------BEGIN CERTIFICATE-----
-MIIDdzCCAl+gAwIBAgIBADANBgkqhkiG9w0BAQsFADBdMQswCQYDVQQGEwJKUDElMCMGA1UEChMc
-U0VDT00gVHJ1c3QgU3lzdGVtcyBDTy4sTFRELjEnMCUGA1UECxMeU2VjdXJpdHkgQ29tbXVuaWNh
-dGlvbiBSb290Q0EyMB4XDTA5MDUyOTA1MDAzOVoXDTI5MDUyOTA1MDAzOVowXTELMAkGA1UEBhMC
-SlAxJTAjBgNVBAoTHFNFQ09NIFRydXN0IFN5c3RlbXMgQ08uLExURC4xJzAlBgNVBAsTHlNlY3Vy
-aXR5IENvbW11bmljYXRpb24gUm9vdENBMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
-ANAVOVKxUrO6xVmCxF1SrjpDZYBLx/KWvNs2l9amZIyoXvDjChz335c9S672XewhtUGrzbl+dp++
-+T42NKA7wfYxEUV0kz1XgMX5iZnK5atq1LXaQZAQwdbWQonCv/Q4EpVMVAX3NuRFg3sUZdbcDE3R
-3n4MqzvEFb46VqZab3ZpUql6ucjrappdUtAtCms1FgkQhNBqyjoGADdH5H5XTz+L62e4iKrFvlNV
-spHEfbmwhRkGeC7bYRr6hfVKkaHnFtWOojnflLhwHyg/i/xAXmODPIMqGplrz95Zajv8bxbXH/1K
-EOtOghY6rCcMU/Gt1SSwawNQwS08Ft1ENCcadfsCAwEAAaNCMEAwHQYDVR0OBBYEFAqFqXdlBZh8
-QIH4D5csOPEK7DzPMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEB
-CwUAA4IBAQBMOqNErLlFsceTfsgLCkLfZOoc7llsCLqJX2rKSpWeeo8HxdpFcoJxDjrSzG+ntKEj
-u/Ykn8sX/oymzsLS28yN/HH8AynBbF0zX2S2ZTuJbxh2ePXcokgfGT+Ok+vx+hfuzU7jBBJV1uXk
-3fs+BXziHV7Gp7yXT2g69ekuCkO2r1dcYmh8t/2jioSgrGK+KwmHNPBqAbubKVY8/gA3zyNs8U6q
-tnRGEmyR7jTV7JqR50S+kDFy1UkC9gLl9B/rfNmWVan/7Ir5mUf/NVoCqgTLiluHcSmRvaS0eg29
-mvVXIwAHIRc/SjnRBUkLp7Y3gaVdjKozXoEofKd9J+sAro03
------END CERTIFICATE-----
-
-EC-ACC
-======
------BEGIN CERTIFICATE-----
-MIIFVjCCBD6gAwIBAgIQ7is969Qh3hSoYqwE893EATANBgkqhkiG9w0BAQUFADCB8zELMAkGA1UE
-BhMCRVMxOzA5BgNVBAoTMkFnZW5jaWEgQ2F0YWxhbmEgZGUgQ2VydGlmaWNhY2lvIChOSUYgUS0w
-ODAxMTc2LUkpMSgwJgYDVQQLEx9TZXJ2ZWlzIFB1YmxpY3MgZGUgQ2VydGlmaWNhY2lvMTUwMwYD
-VQQLEyxWZWdldSBodHRwczovL3d3dy5jYXRjZXJ0Lm5ldC92ZXJhcnJlbCAoYykwMzE1MDMGA1UE
-CxMsSmVyYXJxdWlhIEVudGl0YXRzIGRlIENlcnRpZmljYWNpbyBDYXRhbGFuZXMxDzANBgNVBAMT
-BkVDLUFDQzAeFw0wMzAxMDcyMzAwMDBaFw0zMTAxMDcyMjU5NTlaMIHzMQswCQYDVQQGEwJFUzE7
-MDkGA1UEChMyQWdlbmNpYSBDYXRhbGFuYSBkZSBDZXJ0aWZpY2FjaW8gKE5JRiBRLTA4MDExNzYt
-SSkxKDAmBgNVBAsTH1NlcnZlaXMgUHVibGljcyBkZSBDZXJ0aWZpY2FjaW8xNTAzBgNVBAsTLFZl
-Z2V1IGh0dHBzOi8vd3d3LmNhdGNlcnQubmV0L3ZlcmFycmVsIChjKTAzMTUwMwYDVQQLEyxKZXJh
-cnF1aWEgRW50aXRhdHMgZGUgQ2VydGlmaWNhY2lvIENhdGFsYW5lczEPMA0GA1UEAxMGRUMtQUND
-MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsyLHT+KXQpWIR4NA9h0X84NzJB5R85iK
-w5K4/0CQBXCHYMkAqbWUZRkiFRfCQ2xmRJoNBD45b6VLeqpjt4pEndljkYRm4CgPukLjbo73FCeT
-ae6RDqNfDrHrZqJyTxIThmV6PttPB/SnCWDaOkKZx7J/sxaVHMf5NLWUhdWZXqBIoH7nF2W4onW4
-HvPlQn2v7fOKSGRdghST2MDk/7NQcvJ29rNdQlB50JQ+awwAvthrDk4q7D7SzIKiGGUzE3eeml0a
-E9jD2z3Il3rucO2n5nzbcc8tlGLfbdb1OL4/pYUKGbio2Al1QnDE6u/LDsg0qBIimAy4E5S2S+zw
-0JDnJwIDAQABo4HjMIHgMB0GA1UdEQQWMBSBEmVjX2FjY0BjYXRjZXJ0Lm5ldDAPBgNVHRMBAf8E
-BTADAQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUoMOLRKo3pUW/l4Ba0fF4opvpXY0wfwYD
-VR0gBHgwdjB0BgsrBgEEAfV4AQMBCjBlMCwGCCsGAQUFBwIBFiBodHRwczovL3d3dy5jYXRjZXJ0
-Lm5ldC92ZXJhcnJlbDA1BggrBgEFBQcCAjApGidWZWdldSBodHRwczovL3d3dy5jYXRjZXJ0Lm5l
-dC92ZXJhcnJlbCAwDQYJKoZIhvcNAQEFBQADggEBAKBIW4IB9k1IuDlVNZyAelOZ1Vr/sXE7zDkJ
-lF7W2u++AVtd0x7Y/X1PzaBB4DSTv8vihpw3kpBWHNzrKQXlxJ7HNd+KDM3FIUPpqojlNcAZQmNa
-Al6kSBg6hW/cnbw/nZzBh7h6YQjpdwt/cKt63dmXLGQehb+8dJahw3oS7AwaboMMPOhyRp/7SNVe
-l+axofjk70YllJyJ22k4vuxcDlbHZVHlUIiIv0LVKz3l+bqeLrPK9HOSAgu+TGbrIP65y7WZf+a2
-E/rKS03Z7lNGBjvGTq2TWoF+bCpLagVFjPIhpDGQh2xlnJ2lYJU6Un/10asIbvPuW/mIPX64b24D
-5EI=
------END CERTIFICATE-----
-
-Hellenic Academic and Research Institutions RootCA 2011
-=======================================================
------BEGIN CERTIFICATE-----
-MIIEMTCCAxmgAwIBAgIBADANBgkqhkiG9w0BAQUFADCBlTELMAkGA1UEBhMCR1IxRDBCBgNVBAoT
-O0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNlYXJjaCBJbnN0aXR1dGlvbnMgQ2VydC4gQXV0aG9y
-aXR5MUAwPgYDVQQDEzdIZWxsZW5pYyBBY2FkZW1pYyBhbmQgUmVzZWFyY2ggSW5zdGl0dXRpb25z
-IFJvb3RDQSAyMDExMB4XDTExMTIwNjEzNDk1MloXDTMxMTIwMTEzNDk1MlowgZUxCzAJBgNVBAYT
-AkdSMUQwQgYDVQQKEztIZWxsZW5pYyBBY2FkZW1pYyBhbmQgUmVzZWFyY2ggSW5zdGl0dXRpb25z
-IENlcnQuIEF1dGhvcml0eTFAMD4GA1UEAxM3SGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNo
-IEluc3RpdHV0aW9ucyBSb290Q0EgMjAxMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
-AKlTAOMupvaO+mDYLZU++CwqVE7NuYRhlFhPjz2L5EPzdYmNUeTDN9KKiE15HrcS3UN4SoqS5tdI
-1Q+kOilENbgH9mgdVc04UfCMJDGFr4PJfel3r+0ae50X+bOdOFAPplp5kYCvN66m0zH7tSYJnTxa
-71HFK9+WXesyHgLacEnsbgzImjeN9/E2YEsmLIKe0HjzDQ9jpFEw4fkrJxIH2Oq9GGKYsFk3fb7u
-8yBRQlqD75O6aRXxYp2fmTmCobd0LovUxQt7L/DICto9eQqakxylKHJzkUOap9FNhYS5qXSPFEDH
-3N6sQWRstBmbAmNtJGSPRLIl6s5ddAxjMlyNh+UCAwEAAaOBiTCBhjAPBgNVHRMBAf8EBTADAQH/
-MAsGA1UdDwQEAwIBBjAdBgNVHQ4EFgQUppFC/RNhSiOeCKQp5dgTBCPuQSUwRwYDVR0eBEAwPqA8
-MAWCAy5ncjAFggMuZXUwBoIELmVkdTAGggQub3JnMAWBAy5ncjAFgQMuZXUwBoEELmVkdTAGgQQu
-b3JnMA0GCSqGSIb3DQEBBQUAA4IBAQAf73lB4XtuP7KMhjdCSk4cNx6NZrokgclPEg8hwAOXhiVt
-XdMiKahsog2p6z0GW5k6x8zDmjR/qw7IThzh+uTczQ2+vyT+bOdrwg3IBp5OjWEopmr95fZi6hg8
-TqBTnbI6nOulnJEWtk2C4AwFSKls9cz4y51JtPACpf1wA+2KIaWuE4ZJwzNzvoc7dIsXRSZMFpGD
-/md9zU1jZ/rzAxKWeAaNsWftjj++n08C9bMJL/NMh98qy5V8AcysNnq/onN694/BtZqhFLKPM58N
-7yLcZnuEvUUXBj08yrl3NI/K6s8/MT7jiOOASSXIl7WdmplNsDz4SgCbZN2fOUvRJ9e4
------END CERTIFICATE-----
-
-Actalis Authentication Root CA
-==============================
------BEGIN CERTIFICATE-----
-MIIFuzCCA6OgAwIBAgIIVwoRl0LE48wwDQYJKoZIhvcNAQELBQAwazELMAkGA1UEBhMCSVQxDjAM
-BgNVBAcMBU1pbGFuMSMwIQYDVQQKDBpBY3RhbGlzIFMucC5BLi8wMzM1ODUyMDk2NzEnMCUGA1UE
-AwweQWN0YWxpcyBBdXRoZW50aWNhdGlvbiBSb290IENBMB4XDTExMDkyMjExMjIwMloXDTMwMDky
-MjExMjIwMlowazELMAkGA1UEBhMCSVQxDjAMBgNVBAcMBU1pbGFuMSMwIQYDVQQKDBpBY3RhbGlz
-IFMucC5BLi8wMzM1ODUyMDk2NzEnMCUGA1UEAwweQWN0YWxpcyBBdXRoZW50aWNhdGlvbiBSb290
-IENBMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAp8bEpSmkLO/lGMWwUKNvUTufClrJ
-wkg4CsIcoBh/kbWHuUA/3R1oHwiD1S0eiKD4j1aPbZkCkpAW1V8IbInX4ay8IMKx4INRimlNAJZa
-by/ARH6jDuSRzVju3PvHHkVH3Se5CAGfpiEd9UEtL0z9KK3giq0itFZljoZUj5NDKd45RnijMCO6
-zfB9E1fAXdKDa0hMxKufgFpbOr3JpyI/gCczWw63igxdBzcIy2zSekciRDXFzMwujt0q7bd9Zg1f
-YVEiVRvjRuPjPdA1YprbrxTIW6HMiRvhMCb8oJsfgadHHwTrozmSBp+Z07/T6k9QnBn+locePGX2
-oxgkg4YQ51Q+qDp2JE+BIcXjDwL4k5RHILv+1A7TaLndxHqEguNTVHnd25zS8gebLra8Pu2Fbe8l
-EfKXGkJh90qX6IuxEAf6ZYGyojnP9zz/GPvG8VqLWeICrHuS0E4UT1lF9gxeKF+w6D9Fz8+vm2/7
-hNN3WpVvrJSEnu68wEqPSpP4RCHiMUVhUE4Q2OM1fEwZtN4Fv6MGn8i1zeQf1xcGDXqVdFUNaBr8
-EBtiZJ1t4JWgw5QHVw0U5r0F+7if5t+L4sbnfpb2U8WANFAoWPASUHEXMLrmeGO89LKtmyuy/uE5
-jF66CyCU3nuDuP/jVo23Eek7jPKxwV2dpAtMK9myGPW1n0sCAwEAAaNjMGEwHQYDVR0OBBYEFFLY
-iDrIn3hm7YnzezhwlMkCAjbQMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUUtiIOsifeGbt
-ifN7OHCUyQICNtAwDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBCwUAA4ICAQALe3KHwGCmSUyI
-WOYdiPcUZEim2FgKDk8TNd81HdTtBjHIgT5q1d07GjLukD0R0i70jsNjLiNmsGe+b7bAEzlgqqI0
-JZN1Ut6nna0Oh4lScWoWPBkdg/iaKWW+9D+a2fDzWochcYBNy+A4mz+7+uAwTc+G02UQGRjRlwKx
-K3JCaKygvU5a2hi/a5iB0P2avl4VSM0RFbnAKVy06Ij3Pjaut2L9HmLecHgQHEhb2rykOLpn7VU+
-Xlff1ANATIGk0k9jpwlCCRT8AKnCgHNPLsBA2RF7SOp6AsDT6ygBJlh0wcBzIm2Tlf05fbsq4/aC
-4yyXX04fkZT6/iyj2HYauE2yOE+b+h1IYHkm4vP9qdCa6HCPSXrW5b0KDtst842/6+OkfcvHlXHo
-2qN8xcL4dJIEG4aspCJTQLas/kx2z/uUMsA1n3Y/buWQbqCmJqK4LL7RK4X9p2jIugErsWx0Hbhz
-lefut8cl8ABMALJ+tguLHPPAUJ4lueAI3jZm/zel0btUZCzJJ7VLkn5l/9Mt4blOvH+kQSGQQXem
-OR/qnuOf0GZvBeyqdn6/axag67XH/JJULysRJyU3eExRarDzzFhdFPFqSBX/wge2sY0PjlxQRrM9
-vwGYT7JZVEc+NHt4bVaTLnPqZih4zR0Uv6CPLy64Lo7yFIrM6bV8+2ydDKXhlg==
------END CERTIFICATE-----
-
-Trustis FPS Root CA
-===================
------BEGIN CERTIFICATE-----
-MIIDZzCCAk+gAwIBAgIQGx+ttiD5JNM2a/fH8YygWTANBgkqhkiG9w0BAQUFADBFMQswCQYDVQQG
-EwJHQjEYMBYGA1UEChMPVHJ1c3RpcyBMaW1pdGVkMRwwGgYDVQQLExNUcnVzdGlzIEZQUyBSb290
-IENBMB4XDTAzMTIyMzEyMTQwNloXDTI0MDEyMTExMzY1NFowRTELMAkGA1UEBhMCR0IxGDAWBgNV
-BAoTD1RydXN0aXMgTGltaXRlZDEcMBoGA1UECxMTVHJ1c3RpcyBGUFMgUm9vdCBDQTCCASIwDQYJ
-KoZIhvcNAQEBBQADggEPADCCAQoCggEBAMVQe547NdDfxIzNjpvto8A2mfRC6qc+gIMPpqdZh8mQ
-RUN+AOqGeSoDvT03mYlmt+WKVoaTnGhLaASMk5MCPjDSNzoiYYkchU59j9WvezX2fihHiTHcDnlk
-H5nSW7r+f2C/revnPDgpai/lkQtV/+xvWNUtyd5MZnGPDNcE2gfmHhjjvSkCqPoc4Vu5g6hBSLwa
-cY3nYuUtsuvffM/bq1rKMfFMIvMFE/eC+XN5DL7XSxzA0RU8k0Fk0ea+IxciAIleH2ulrG6nS4zt
-o3Lmr2NNL4XSFDWaLk6M6jKYKIahkQlBOrTh4/L68MkKokHdqeMDx4gVOxzUGpTXn2RZEm0CAwEA
-AaNTMFEwDwYDVR0TAQH/BAUwAwEB/zAfBgNVHSMEGDAWgBS6+nEleYtXQSUhhgtx67JkDoshZzAd
-BgNVHQ4EFgQUuvpxJXmLV0ElIYYLceuyZA6LIWcwDQYJKoZIhvcNAQEFBQADggEBAH5Y//01GX2c
-GE+esCu8jowU/yyg2kdbw++BLa8F6nRIW/M+TgfHbcWzk88iNVy2P3UnXwmWzaD+vkAMXBJV+JOC
-yinpXj9WV4s4NvdFGkwozZ5BuO1WTISkQMi4sKUraXAEasP41BIy+Q7DsdwyhEQsb8tGD+pmQQ9P
-8Vilpg0ND2HepZ5dfWWhPBfnqFVO76DH7cZEf1T1o+CP8HxVIo8ptoGj4W1OLBuAZ+ytIJ8MYmHV
-l/9D7S3B2l0pKoU/rGXuhg8FjZBf3+6f9L/uHfuY5H+QK4R4EA5sSVPvFVtlRkpdr7r7OnIdzfYl
-iB6XzCGcKQENZetX2fNXlrtIzYE=
------END CERTIFICATE-----
-
-Buypass Class 2 Root CA
-=======================
------BEGIN CERTIFICATE-----
-MIIFWTCCA0GgAwIBAgIBAjANBgkqhkiG9w0BAQsFADBOMQswCQYDVQQGEwJOTzEdMBsGA1UECgwU
-QnV5cGFzcyBBUy05ODMxNjMzMjcxIDAeBgNVBAMMF0J1eXBhc3MgQ2xhc3MgMiBSb290IENBMB4X
-DTEwMTAyNjA4MzgwM1oXDTQwMTAyNjA4MzgwM1owTjELMAkGA1UEBhMCTk8xHTAbBgNVBAoMFEJ1
-eXBhc3MgQVMtOTgzMTYzMzI3MSAwHgYDVQQDDBdCdXlwYXNzIENsYXNzIDIgUm9vdCBDQTCCAiIw
-DQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANfHXvfBB9R3+0Mh9PT1aeTuMgHbo4Yf5FkNuud1
-g1Lr6hxhFUi7HQfKjK6w3Jad6sNgkoaCKHOcVgb/S2TwDCo3SbXlzwx87vFKu3MwZfPVL4O2fuPn
-9Z6rYPnT8Z2SdIrkHJasW4DptfQxh6NR/Md+oW+OU3fUl8FVM5I+GC911K2GScuVr1QGbNgGE41b
-/+EmGVnAJLqBcXmQRFBoJJRfuLMR8SlBYaNByyM21cHxMlAQTn/0hpPshNOOvEu/XAFOBz3cFIqU
-CqTqc/sLUegTBxj6DvEr0VQVfTzh97QZQmdiXnfgolXsttlpF9U6r0TtSsWe5HonfOV116rLJeff
-awrbD02TTqigzXsu8lkBarcNuAeBfos4GzjmCleZPe4h6KP1DBbdi+w0jpwqHAAVF41og9JwnxgI
-zRFo1clrUs3ERo/ctfPYV3Me6ZQ5BL/T3jjetFPsaRyifsSP5BtwrfKi+fv3FmRmaZ9JUaLiFRhn
-Bkp/1Wy1TbMz4GHrXb7pmA8y1x1LPC5aAVKRCfLf6o3YBkBjqhHk/sM3nhRSP/TizPJhk9H9Z2vX
-Uq6/aKtAQ6BXNVN48FP4YUIHZMbXb5tMOA1jrGKvNouicwoN9SG9dKpN6nIDSdvHXx1iY8f93ZHs
-M+71bbRuMGjeyNYmsHVee7QHIJihdjK4TWxPAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wHQYD
-VR0OBBYEFMmAd+BikoL1RpzzuvdMw964o605MA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQsF
-AAOCAgEAU18h9bqwOlI5LJKwbADJ784g7wbylp7ppHR/ehb8t/W2+xUbP6umwHJdELFx7rxP462s
-A20ucS6vxOOto70MEae0/0qyexAQH6dXQbLArvQsWdZHEIjzIVEpMMpghq9Gqx3tOluwlN5E40EI
-osHsHdb9T7bWR9AUC8rmyrV7d35BH16Dx7aMOZawP5aBQW9gkOLo+fsicdl9sz1Gv7SEr5AcD48S
-aq/v7h56rgJKihcrdv6sVIkkLE8/trKnToyokZf7KcZ7XC25y2a2t6hbElGFtQl+Ynhw/qlqYLYd
-DnkM/crqJIByw5c/8nerQyIKx+u2DISCLIBrQYoIwOula9+ZEsuK1V6ADJHgJgg2SMX6OBE1/yWD
-LfJ6v9r9jv6ly0UsH8SIU653DtmadsWOLB2jutXsMq7Aqqz30XpN69QH4kj3Io6wpJ9qzo6ysmD0
-oyLQI+uUWnpp3Q+/QFesa1lQ2aOZ4W7+jQF5JyMV3pKdewlNWudLSDBaGOYKbeaP4NK75t98biGC
-wWg5TbSYWGZizEqQXsP6JwSxeRV0mcy+rSDeJmAc61ZRpqPq5KM/p/9h3PFaTWwyI0PurKju7koS
-CTxdccK+efrCh2gdC/1cacwG0Jp9VJkqyTkaGa9LKkPzY11aWOIv4x3kqdbQCtCev9eBCfHJxyYN
-rJgWVqA=
------END CERTIFICATE-----
-
-Buypass Class 3 Root CA
-=======================
------BEGIN CERTIFICATE-----
-MIIFWTCCA0GgAwIBAgIBAjANBgkqhkiG9w0BAQsFADBOMQswCQYDVQQGEwJOTzEdMBsGA1UECgwU
-QnV5cGFzcyBBUy05ODMxNjMzMjcxIDAeBgNVBAMMF0J1eXBhc3MgQ2xhc3MgMyBSb290IENBMB4X
-DTEwMTAyNjA4Mjg1OFoXDTQwMTAyNjA4Mjg1OFowTjELMAkGA1UEBhMCTk8xHTAbBgNVBAoMFEJ1
-eXBhc3MgQVMtOTgzMTYzMzI3MSAwHgYDVQQDDBdCdXlwYXNzIENsYXNzIDMgUm9vdCBDQTCCAiIw
-DQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAKXaCpUWUOOV8l6ddjEGMnqb8RB2uACatVI2zSRH
-sJ8YZLya9vrVediQYkwiL944PdbgqOkcLNt4EemOaFEVcsfzM4fkoF0LXOBXByow9c3EN3coTRiR
-5r/VUv1xLXA+58bEiuPwKAv0dpihi4dVsjoT/Lc+JzeOIuOoTyrvYLs9tznDDgFHmV0ST9tD+leh
-7fmdvhFHJlsTmKtdFoqwNxxXnUX/iJY2v7vKB3tvh2PX0DJq1l1sDPGzbjniazEuOQAnFN44wOwZ
-ZoYS6J1yFhNkUsepNxz9gjDthBgd9K5c/3ATAOux9TN6S9ZV+AWNS2mw9bMoNlwUxFFzTWsL8TQH
-2xc519woe2v1n/MuwU8XKhDzzMro6/1rqy6any2CbgTUUgGTLT2G/H783+9CHaZr77kgxve9oKeV
-/afmiSTYzIw0bOIjL9kSGiG5VZFvC5F5GQytQIgLcOJ60g7YaEi7ghM5EFjp2CoHxhLbWNvSO1UQ
-RwUVZ2J+GGOmRj8JDlQyXr8NYnon74Do29lLBlo3WiXQCBJ31G8JUJc9yB3D34xFMFbG02SrZvPA
-Xpacw8Tvw3xrizp5f7NJzz3iiZ+gMEuFuZyUJHmPfWupRWgPK9Dx2hzLabjKSWJtyNBjYt1gD1iq
-j6G8BaVmos8bdrKEZLFMOVLAMLrwjEsCsLa3AgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wHQYD
-VR0OBBYEFEe4zf/lb+74suwvTg75JbCOPGvDMA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQsF
-AAOCAgEAACAjQTUEkMJAYmDv4jVM1z+s4jSQuKFvdvoWFqRINyzpkMLyPPgKn9iB5btb2iUspKdV
-cSQy9sgL8rxq+JOssgfCX5/bzMiKqr5qb+FJEMwx14C7u8jYog5kV+qi9cKpMRXSIGrs/CIBKM+G
-uIAeqcwRpTzyFrNHnfzSgCHEy9BHcEGhyoMZCCxt8l13nIoUE9Q2HJLw5QY33KbmkJs4j1xrG0aG
-Q0JfPgEHU1RdZX33inOhmlRaHylDFCfChQ+1iHsaO5S3HWCntZznKWlXWpuTekMwGwPXYshApqr8
-ZORK15FTAaggiG6cX0S5y2CBNOxv033aSF/rtJC8LakcC6wc1aJoIIAE1vyxjy+7SjENSoYc6+I2
-KSb12tjE8nVhz36udmNKekBlk4f4HoCMhuWG1o8O/FMsYOgWYRqiPkN7zTlgVGr18okmAWiDSKIz
-6MkEkbIRNBE+6tBDGR8Dk5AM/1E9V/RBbuHLoL7ryWPNbczk+DaqaJ3tvV2XcEQNtg413OEMXbug
-UZTLfhbrES+jkkXITHHZvMmZUldGL1DPvTVp9D0VzgalLA8+9oG6lLvDu79leNKGef9JOxqDDPDe
-eOzI8k1MGt6CKfjBWtrt7uYnXuhF0J0cUahoq0Tj0Itq4/g7u9xN12TyUb7mqqta6THuBrxzvxNi
-Cp/HuZc=
------END CERTIFICATE-----
-
-T-TeleSec GlobalRoot Class 3
-============================
------BEGIN CERTIFICATE-----
-MIIDwzCCAqugAwIBAgIBATANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoM
-IlQtU3lzdGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBU
-cnVzdCBDZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDMwHhcNMDgx
-MDAxMTAyOTU2WhcNMzMxMDAxMjM1OTU5WjCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoMIlQtU3lz
-dGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBD
-ZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDMwggEiMA0GCSqGSIb3
-DQEBAQUAA4IBDwAwggEKAoIBAQC9dZPwYiJvJK7genasfb3ZJNW4t/zN8ELg63iIVl6bmlQdTQyK
-9tPPcPRStdiTBONGhnFBSivwKixVA9ZIw+A5OO3yXDw/RLyTPWGrTs0NvvAgJ1gORH8EGoel15YU
-NpDQSXuhdfsaa3Ox+M6pCSzyU9XDFES4hqX2iys52qMzVNn6chr3IhUciJFrf2blw2qAsCTz34ZF
-iP0Zf3WHHx+xGwpzJFu5ZeAsVMhg02YXP+HMVDNzkQI6pn97djmiH5a2OK61yJN0HZ65tOVgnS9W
-0eDrXltMEnAMbEQgqxHY9Bn20pxSN+f6tsIxO0rUFJmtxxr1XV/6B7h8DR/Wgx6zAgMBAAGjQjBA
-MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBS1A/d2O2GCahKqGFPr
-AyGUv/7OyjANBgkqhkiG9w0BAQsFAAOCAQEAVj3vlNW92nOyWL6ukK2YJ5f+AbGwUgC4TeQbIXQb
-fsDuXmkqJa9c1h3a0nnJ85cp4IaH3gRZD/FZ1GSFS5mvJQQeyUapl96Cshtwn5z2r3Ex3XsFpSzT
-ucpH9sry9uetuUg/vBa3wW306gmv7PO15wWeph6KU1HWk4HMdJP2udqmJQV0eVp+QD6CSyYRMG7h
-P0HHRwA11fXT91Q+gT3aSWqas+8QPebrb9HIIkfLzM8BMZLZGOMivgkeGj5asuRrDFR6fUNOuIml
-e9eiPZaGzPImNC1qkp2aGtAw4l1OBLBfiyB+d8E9lYLRRpo7PHi4b6HQDWSieB4pTpPDpFQUWw==
------END CERTIFICATE-----
-
-EE Certification Centre Root CA
-===============================
------BEGIN CERTIFICATE-----
-MIIEAzCCAuugAwIBAgIQVID5oHPtPwBMyonY43HmSjANBgkqhkiG9w0BAQUFADB1MQswCQYDVQQG
-EwJFRTEiMCAGA1UECgwZQVMgU2VydGlmaXRzZWVyaW1pc2tlc2t1czEoMCYGA1UEAwwfRUUgQ2Vy
-dGlmaWNhdGlvbiBDZW50cmUgUm9vdCBDQTEYMBYGCSqGSIb3DQEJARYJcGtpQHNrLmVlMCIYDzIw
-MTAxMDMwMTAxMDMwWhgPMjAzMDEyMTcyMzU5NTlaMHUxCzAJBgNVBAYTAkVFMSIwIAYDVQQKDBlB
-UyBTZXJ0aWZpdHNlZXJpbWlza2Vza3VzMSgwJgYDVQQDDB9FRSBDZXJ0aWZpY2F0aW9uIENlbnRy
-ZSBSb290IENBMRgwFgYJKoZIhvcNAQkBFglwa2lAc2suZWUwggEiMA0GCSqGSIb3DQEBAQUAA4IB
-DwAwggEKAoIBAQDIIMDs4MVLqwd4lfNE7vsLDP90jmG7sWLqI9iroWUyeuuOF0+W2Ap7kaJjbMeM
-TC55v6kF/GlclY1i+blw7cNRfdCT5mzrMEvhvH2/UpvObntl8jixwKIy72KyaOBhU8E2lf/slLo2
-rpwcpzIP5Xy0xm90/XsY6KxX7QYgSzIwWFv9zajmofxwvI6Sc9uXp3whrj3B9UiHbCe9nyV0gVWw
-93X2PaRka9ZP585ArQ/dMtO8ihJTmMmJ+xAdTX7Nfh9WDSFwhfYggx/2uh8Ej+p3iDXE/+pOoYtN
-P2MbRMNE1CV2yreN1x5KZmTNXMWcg+HCCIia7E6j8T4cLNlsHaFLAgMBAAGjgYowgYcwDwYDVR0T
-AQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFBLyWj7qVhy/zQas8fElyalL1BSZ
-MEUGA1UdJQQ+MDwGCCsGAQUFBwMCBggrBgEFBQcDAQYIKwYBBQUHAwMGCCsGAQUFBwMEBggrBgEF
-BQcDCAYIKwYBBQUHAwkwDQYJKoZIhvcNAQEFBQADggEBAHv25MANqhlHt01Xo/6tu7Fq1Q+e2+Rj
-xY6hUFaTlrg4wCQiZrxTFGGVv9DHKpY5P30osxBAIWrEr7BSdxjhlthWXePdNl4dp1BUoMUq5KqM
-lIpPnTX/dqQGE5Gion0ARD9V04I8GtVbvFZMIi5GQ4okQC3zErg7cBqklrkar4dBGmoYDQZPxz5u
-uSlNDUmJEYcyW+ZLBMjkXOZ0c5RdFpgTlf7727FE5TpwrDdr5rMzcijJs1eg9gIWiAYLtqZLICjU
-3j2LrTcFU3T+bsy8QxdxXvnFzBqpYe73dgzzcvRyrc9yAjYHR8/vGVCJYMzpJJUPwssd8m92kMfM
-dcGWxZ0=
------END CERTIFICATE-----
-
-D-TRUST Root Class 3 CA 2 2009
-==============================
------BEGIN CERTIFICATE-----
-MIIEMzCCAxugAwIBAgIDCYPzMA0GCSqGSIb3DQEBCwUAME0xCzAJBgNVBAYTAkRFMRUwEwYDVQQK
-DAxELVRydXN0IEdtYkgxJzAlBgNVBAMMHkQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgMjAwOTAe
-Fw0wOTExMDUwODM1NThaFw0yOTExMDUwODM1NThaME0xCzAJBgNVBAYTAkRFMRUwEwYDVQQKDAxE
-LVRydXN0IEdtYkgxJzAlBgNVBAMMHkQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgMjAwOTCCASIw
-DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANOySs96R+91myP6Oi/WUEWJNTrGa9v+2wBoqOAD
-ER03UAifTUpolDWzU9GUY6cgVq/eUXjsKj3zSEhQPgrfRlWLJ23DEE0NkVJD2IfgXU42tSHKXzlA
-BF9bfsyjxiupQB7ZNoTWSPOSHjRGICTBpFGOShrvUD9pXRl/RcPHAY9RySPocq60vFYJfxLLHLGv
-KZAKyVXMD9O0Gu1HNVpK7ZxzBCHQqr0ME7UAyiZsxGsMlFqVlNpQmvH/pStmMaTJOKDfHR+4CS7z
-p+hnUquVH+BGPtikw8paxTGA6Eian5Rp/hnd2HN8gcqW3o7tszIFZYQ05ub9VxC1X3a/L7AQDcUC
-AwEAAaOCARowggEWMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFP3aFMSfMN4hvR5COfyrYyNJ
-4PGEMA4GA1UdDwEB/wQEAwIBBjCB0wYDVR0fBIHLMIHIMIGAoH6gfIZ6bGRhcDovL2RpcmVjdG9y
-eS5kLXRydXN0Lm5ldC9DTj1ELVRSVVNUJTIwUm9vdCUyMENsYXNzJTIwMyUyMENBJTIwMiUyMDIw
-MDksTz1ELVRydXN0JTIwR21iSCxDPURFP2NlcnRpZmljYXRlcmV2b2NhdGlvbmxpc3QwQ6BBoD+G
-PWh0dHA6Ly93d3cuZC10cnVzdC5uZXQvY3JsL2QtdHJ1c3Rfcm9vdF9jbGFzc18zX2NhXzJfMjAw
-OS5jcmwwDQYJKoZIhvcNAQELBQADggEBAH+X2zDI36ScfSF6gHDOFBJpiBSVYEQBrLLpME+bUMJm
-2H6NMLVwMeniacfzcNsgFYbQDfC+rAF1hM5+n02/t2A7nPPKHeJeaNijnZflQGDSNiH+0LS4F9p0
-o3/U37CYAqxva2ssJSRyoWXuJVrl5jLn8t+rSfrzkGkj2wTZ51xY/GXUl77M/C4KzCUqNQT4YJEV
-dT1B/yMfGchs64JTBKbkTCJNjYy6zltz7GRUUG3RnFX7acM2w4y8PIWmawomDeCTmGCufsYkl4ph
-X5GOZpIJhzbNi5stPvZR1FDUWSi9g/LMKHtThm3YJohw1+qRzT65ysCQblrGXnRl11z+o+I=
------END CERTIFICATE-----
-
-D-TRUST Root Class 3 CA 2 EV 2009
-=================================
------BEGIN CERTIFICATE-----
-MIIEQzCCAyugAwIBAgIDCYP0MA0GCSqGSIb3DQEBCwUAMFAxCzAJBgNVBAYTAkRFMRUwEwYDVQQK
-DAxELVRydXN0IEdtYkgxKjAoBgNVBAMMIUQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgRVYgMjAw
-OTAeFw0wOTExMDUwODUwNDZaFw0yOTExMDUwODUwNDZaMFAxCzAJBgNVBAYTAkRFMRUwEwYDVQQK
-DAxELVRydXN0IEdtYkgxKjAoBgNVBAMMIUQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgRVYgMjAw
-OTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJnxhDRwui+3MKCOvXwEz75ivJn9gpfS
-egpnljgJ9hBOlSJzmY3aFS3nBfwZcyK3jpgAvDw9rKFs+9Z5JUut8Mxk2og+KbgPCdM03TP1YtHh
-zRnp7hhPTFiu4h7WDFsVWtg6uMQYZB7jM7K1iXdODL/ZlGsTl28So/6ZqQTMFexgaDbtCHu39b+T
-7WYxg4zGcTSHThfqr4uRjRxWQa4iN1438h3Z0S0NL2lRp75mpoo6Kr3HGrHhFPC+Oh25z1uxav60
-sUYgovseO3Dvk5h9jHOW8sXvhXCtKSb8HgQ+HKDYD8tSg2J87otTlZCpV6LqYQXY+U3EJ/pure35
-11H3a6UCAwEAAaOCASQwggEgMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFNOUikxiEyoZLsyv
-cop9NteaHNxnMA4GA1UdDwEB/wQEAwIBBjCB3QYDVR0fBIHVMIHSMIGHoIGEoIGBhn9sZGFwOi8v
-ZGlyZWN0b3J5LmQtdHJ1c3QubmV0L0NOPUQtVFJVU1QlMjBSb290JTIwQ2xhc3MlMjAzJTIwQ0El
-MjAyJTIwRVYlMjAyMDA5LE89RC1UcnVzdCUyMEdtYkgsQz1ERT9jZXJ0aWZpY2F0ZXJldm9jYXRp
-b25saXN0MEagRKBChkBodHRwOi8vd3d3LmQtdHJ1c3QubmV0L2NybC9kLXRydXN0X3Jvb3RfY2xh
-c3NfM19jYV8yX2V2XzIwMDkuY3JsMA0GCSqGSIb3DQEBCwUAA4IBAQA07XtaPKSUiO8aEXUHL7P+
-PPoeUSbrh/Yp3uDx1MYkCenBz1UbtDDZzhr+BlGmFaQt77JLvyAoJUnRpjZ3NOhk31KxEcdzes05
-nsKtjHEh8lprr988TlWvsoRlFIm5d8sqMb7Po23Pb0iUMkZv53GMoKaEGTcH8gNFCSuGdXzfX2lX
-ANtu2KZyIktQ1HWYVt+3GP9DQ1CuekR78HlR10M9p9OB0/DJT7naxpeG0ILD5EJt/rDiZE4OJudA
-NCa1CInXCGNjOCd1HjPqbqjdn5lPdE2BiYBL3ZqXKVwvvoFBuYz/6n1gBp7N1z3TLqMVvKjmJuVv
-w9y4AyHqnxbxLFS1
------END CERTIFICATE-----
-
-CA Disig Root R2
-================
------BEGIN CERTIFICATE-----
-MIIFaTCCA1GgAwIBAgIJAJK4iNuwisFjMA0GCSqGSIb3DQEBCwUAMFIxCzAJBgNVBAYTAlNLMRMw
-EQYDVQQHEwpCcmF0aXNsYXZhMRMwEQYDVQQKEwpEaXNpZyBhLnMuMRkwFwYDVQQDExBDQSBEaXNp
-ZyBSb290IFIyMB4XDTEyMDcxOTA5MTUzMFoXDTQyMDcxOTA5MTUzMFowUjELMAkGA1UEBhMCU0sx
-EzARBgNVBAcTCkJyYXRpc2xhdmExEzARBgNVBAoTCkRpc2lnIGEucy4xGTAXBgNVBAMTEENBIERp
-c2lnIFJvb3QgUjIwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCio8QACdaFXS1tFPbC
-w3OeNcJxVX6B+6tGUODBfEl45qt5WDza/3wcn9iXAng+a0EE6UG9vgMsRfYvZNSrXaNHPWSb6Wia
-xswbP7q+sos0Ai6YVRn8jG+qX9pMzk0DIaPY0jSTVpbLTAwAFjxfGs3Ix2ymrdMxp7zo5eFm1tL7
-A7RBZckQrg4FY8aAamkw/dLukO8NJ9+flXP04SXabBbeQTg06ov80egEFGEtQX6sx3dOy1FU+16S
-GBsEWmjGycT6txOgmLcRK7fWV8x8nhfRyyX+hk4kLlYMeE2eARKmK6cBZW58Yh2EhN/qwGu1pSqV
-g8NTEQxzHQuyRpDRQjrOQG6Vrf/GlK1ul4SOfW+eioANSW1z4nuSHsPzwfPrLgVv2RvPN3YEyLRa
-5Beny912H9AZdugsBbPWnDTYltxhh5EF5EQIM8HauQhl1K6yNg3ruji6DOWbnuuNZt2Zz9aJQfYE
-koopKW1rOhzndX0CcQ7zwOe9yxndnWCywmZgtrEE7snmhrmaZkCo5xHtgUUDi/ZnWejBBhG93c+A
-Ak9lQHhcR1DIm+YfgXvkRKhbhZri3lrVx/k6RGZL5DJUfORsnLMOPReisjQS1n6yqEm70XooQL6i
-Fh/f5DcfEXP7kAplQ6INfPgGAVUzfbANuPT1rqVCV3w2EYx7XsQDnYx5nQIDAQABo0IwQDAPBgNV
-HRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUtZn4r7CU9eMg1gqtzk5WpC5u
-Qu0wDQYJKoZIhvcNAQELBQADggIBACYGXnDnZTPIgm7ZnBc6G3pmsgH2eDtpXi/q/075KMOYKmFM
-tCQSin1tERT3nLXK5ryeJ45MGcipvXrA1zYObYVybqjGom32+nNjf7xueQgcnYqfGopTpti72TVV
-sRHFqQOzVju5hJMiXn7B9hJSi+osZ7z+Nkz1uM/Rs0mSO9MpDpkblvdhuDvEK7Z4bLQjb/D907Je
-dR+Zlais9trhxTF7+9FGs9K8Z7RiVLoJ92Owk6Ka+elSLotgEqv89WBW7xBci8QaQtyDW2QOy7W8
-1k/BfDxujRNt+3vrMNDcTa/F1balTFtxyegxvug4BkihGuLq0t4SOVga/4AOgnXmt8kHbA7v/zjx
-mHHEt38OFdAlab0inSvtBfZGR6ztwPDUO+Ls7pZbkBNOHlY667DvlruWIxG68kOGdGSVyCh13x01
-utI3gzhTODY7z2zp+WsO0PsE6E9312UBeIYMej4hYvF/Y3EMyZ9E26gnonW+boE+18DrG5gPcFw0
-sorMwIUY6256s/daoQe/qUKS82Ail+QUoQebTnbAjn39pCXHR+3/H3OszMOl6W8KjptlwlCFtaOg
-UxLMVYdh84GuEEZhvUQhuMI9dM9+JDX6HAcOmz0iyu8xL4ysEr3vQCj8KWefshNPZiTEUxnpHikV
-7+ZtsH8tZ/3zbBt1RqPlShfppNcL
------END CERTIFICATE-----
-
-ACCVRAIZ1
-=========
------BEGIN CERTIFICATE-----
-MIIH0zCCBbugAwIBAgIIXsO3pkN/pOAwDQYJKoZIhvcNAQEFBQAwQjESMBAGA1UEAwwJQUNDVlJB
-SVoxMRAwDgYDVQQLDAdQS0lBQ0NWMQ0wCwYDVQQKDARBQ0NWMQswCQYDVQQGEwJFUzAeFw0xMTA1
-MDUwOTM3MzdaFw0zMDEyMzEwOTM3MzdaMEIxEjAQBgNVBAMMCUFDQ1ZSQUlaMTEQMA4GA1UECwwH
-UEtJQUNDVjENMAsGA1UECgwEQUNDVjELMAkGA1UEBhMCRVMwggIiMA0GCSqGSIb3DQEBAQUAA4IC
-DwAwggIKAoICAQCbqau/YUqXry+XZpp0X9DZlv3P4uRm7x8fRzPCRKPfmt4ftVTdFXxpNRFvu8gM
-jmoYHtiP2Ra8EEg2XPBjs5BaXCQ316PWywlxufEBcoSwfdtNgM3802/J+Nq2DoLSRYWoG2ioPej0
-RGy9ocLLA76MPhMAhN9KSMDjIgro6TenGEyxCQ0jVn8ETdkXhBilyNpAlHPrzg5XPAOBOp0KoVdD
-aaxXbXmQeOW1tDvYvEyNKKGno6e6Ak4l0Squ7a4DIrhrIA8wKFSVf+DuzgpmndFALW4ir50awQUZ
-0m/A8p/4e7MCQvtQqR0tkw8jq8bBD5L/0KIV9VMJcRz/RROE5iZe+OCIHAr8Fraocwa48GOEAqDG
-WuzndN9wrqODJerWx5eHk6fGioozl2A3ED6XPm4pFdahD9GILBKfb6qkxkLrQaLjlUPTAYVtjrs7
-8yM2x/474KElB0iryYl0/wiPgL/AlmXz7uxLaL2diMMxs0Dx6M/2OLuc5NF/1OVYm3z61PMOm3WR
-5LpSLhl+0fXNWhn8ugb2+1KoS5kE3fj5tItQo05iifCHJPqDQsGH+tUtKSpacXpkatcnYGMN285J
-9Y0fkIkyF/hzQ7jSWpOGYdbhdQrqeWZ2iE9x6wQl1gpaepPluUsXQA+xtrn13k/c4LOsOxFwYIRK
-Q26ZIMApcQrAZQIDAQABo4ICyzCCAscwfQYIKwYBBQUHAQEEcTBvMEwGCCsGAQUFBzAChkBodHRw
-Oi8vd3d3LmFjY3YuZXMvZmlsZWFkbWluL0FyY2hpdm9zL2NlcnRpZmljYWRvcy9yYWl6YWNjdjEu
-Y3J0MB8GCCsGAQUFBzABhhNodHRwOi8vb2NzcC5hY2N2LmVzMB0GA1UdDgQWBBTSh7Tj3zcnk1X2
-VuqB5TbMjB4/vTAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFNKHtOPfNyeTVfZW6oHlNsyM
-Hj+9MIIBcwYDVR0gBIIBajCCAWYwggFiBgRVHSAAMIIBWDCCASIGCCsGAQUFBwICMIIBFB6CARAA
-QQB1AHQAbwByAGkAZABhAGQAIABkAGUAIABDAGUAcgB0AGkAZgBpAGMAYQBjAGkA8wBuACAAUgBh
-AO0AegAgAGQAZQAgAGwAYQAgAEEAQwBDAFYAIAAoAEEAZwBlAG4AYwBpAGEAIABkAGUAIABUAGUA
-YwBuAG8AbABvAGcA7QBhACAAeQAgAEMAZQByAHQAaQBmAGkAYwBhAGMAaQDzAG4AIABFAGwAZQBj
-AHQAcgDzAG4AaQBjAGEALAAgAEMASQBGACAAUQA0ADYAMAAxADEANQA2AEUAKQAuACAAQwBQAFMA
-IABlAG4AIABoAHQAdABwADoALwAvAHcAdwB3AC4AYQBjAGMAdgAuAGUAczAwBggrBgEFBQcCARYk
-aHR0cDovL3d3dy5hY2N2LmVzL2xlZ2lzbGFjaW9uX2MuaHRtMFUGA1UdHwROMEwwSqBIoEaGRGh0
-dHA6Ly93d3cuYWNjdi5lcy9maWxlYWRtaW4vQXJjaGl2b3MvY2VydGlmaWNhZG9zL3JhaXphY2N2
-MV9kZXIuY3JsMA4GA1UdDwEB/wQEAwIBBjAXBgNVHREEEDAOgQxhY2N2QGFjY3YuZXMwDQYJKoZI
-hvcNAQEFBQADggIBAJcxAp/n/UNnSEQU5CmH7UwoZtCPNdpNYbdKl02125DgBS4OxnnQ8pdpD70E
-R9m+27Up2pvZrqmZ1dM8MJP1jaGo/AaNRPTKFpV8M9xii6g3+CfYCS0b78gUJyCpZET/LtZ1qmxN
-YEAZSUNUY9rizLpm5U9EelvZaoErQNV/+QEnWCzI7UiRfD+mAM/EKXMRNt6GGT6d7hmKG9Ww7Y49
-nCrADdg9ZuM8Db3VlFzi4qc1GwQA9j9ajepDvV+JHanBsMyZ4k0ACtrJJ1vnE5Bc5PUzolVt3OAJ
-TS+xJlsndQAJxGJ3KQhfnlmstn6tn1QwIgPBHnFk/vk4CpYY3QIUrCPLBhwepH2NDd4nQeit2hW3
-sCPdK6jT2iWH7ehVRE2I9DZ+hJp4rPcOVkkO1jMl1oRQQmwgEh0q1b688nCBpHBgvgW1m54ERL5h
-I6zppSSMEYCUWqKiuUnSwdzRp+0xESyeGabu4VXhwOrPDYTkF7eifKXeVSUG7szAh1xA2syVP1Xg
-Nce4hL60Xc16gwFy7ofmXx2utYXGJt/mwZrpHgJHnyqobalbz+xFd3+YJ5oyXSrjhO7FmGYvliAd
-3djDJ9ew+f7Zfc3Qn48LFFhRny+Lwzgt3uiP1o2HpPVWQxaZLPSkVrQ0uGE3ycJYgBugl6H8WY3p
-EfbRD0tVNEYqi4Y7
------END CERTIFICATE-----
-
-TWCA Global Root CA
-===================
------BEGIN CERTIFICATE-----
-MIIFQTCCAymgAwIBAgICDL4wDQYJKoZIhvcNAQELBQAwUTELMAkGA1UEBhMCVFcxEjAQBgNVBAoT
-CVRBSVdBTi1DQTEQMA4GA1UECxMHUm9vdCBDQTEcMBoGA1UEAxMTVFdDQSBHbG9iYWwgUm9vdCBD
-QTAeFw0xMjA2MjcwNjI4MzNaFw0zMDEyMzExNTU5NTlaMFExCzAJBgNVBAYTAlRXMRIwEAYDVQQK
-EwlUQUlXQU4tQ0ExEDAOBgNVBAsTB1Jvb3QgQ0ExHDAaBgNVBAMTE1RXQ0EgR2xvYmFsIFJvb3Qg
-Q0EwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCwBdvI64zEbooh745NnHEKH1Jw7W2C
-nJfF10xORUnLQEK1EjRsGcJ0pDFfhQKX7EMzClPSnIyOt7h52yvVavKOZsTuKwEHktSz0ALfUPZV
-r2YOy+BHYC8rMjk1Ujoog/h7FsYYuGLWRyWRzvAZEk2tY/XTP3VfKfChMBwqoJimFb3u/Rk28OKR
-Q4/6ytYQJ0lM793B8YVwm8rqqFpD/G2Gb3PpN0Wp8DbHzIh1HrtsBv+baz4X7GGqcXzGHaL3SekV
-tTzWoWH1EfcFbx39Eb7QMAfCKbAJTibc46KokWofwpFFiFzlmLhxpRUZyXx1EcxwdE8tmx2RRP1W
-KKD+u4ZqyPpcC1jcxkt2yKsi2XMPpfRaAok/T54igu6idFMqPVMnaR1sjjIsZAAmY2E2TqNGtz99
-sy2sbZCilaLOz9qC5wc0GZbpuCGqKX6mOL6OKUohZnkfs8O1CWfe1tQHRvMq2uYiN2DLgbYPoA/p
-yJV/v1WRBXrPPRXAb94JlAGD1zQbzECl8LibZ9WYkTunhHiVJqRaCPgrdLQABDzfuBSO6N+pjWxn
-kjMdwLfS7JLIvgm/LCkFbwJrnu+8vyq8W8BQj0FwcYeyTbcEqYSjMq+u7msXi7Kx/mzhkIyIqJdI
-zshNy/MGz19qCkKxHh53L46g5pIOBvwFItIm4TFRfTLcDwIDAQABoyMwITAOBgNVHQ8BAf8EBAMC
-AQYwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAgEAXzSBdu+WHdXltdkCY4QWwa6g
-cFGn90xHNcgL1yg9iXHZqjNB6hQbbCEAwGxCGX6faVsgQt+i0trEfJdLjbDorMjupWkEmQqSpqsn
-LhpNgb+E1HAerUf+/UqdM+DyucRFCCEK2mlpc3INvjT+lIutwx4116KD7+U4x6WFH6vPNOw/KP4M
-8VeGTslV9xzU2KV9Bnpv1d8Q34FOIWWxtuEXeZVFBs5fzNxGiWNoRI2T9GRwoD2dKAXDOXC4Ynsg
-/eTb6QihuJ49CcdP+yz4k3ZB3lLg4VfSnQO8d57+nile98FRYB/e2guyLXW3Q0iT5/Z5xoRdgFlg
-lPx4mI88k1HtQJAH32RjJMtOcQWh15QaiDLxInQirqWm2BJpTGCjAu4r7NRjkgtevi92a6O2JryP
-A9gK8kxkRr05YuWW6zRjESjMlfGt7+/cgFhI6Uu46mWs6fyAtbXIRfmswZ/ZuepiiI7E8UuDEq3m
-i4TWnsLrgxifarsbJGAzcMzs9zLzXNl5fe+epP7JI8Mk7hWSsT2RTyaGvWZzJBPqpK5jwa19hAM8
-EHiGG3njxPPyBJUgriOCxLM6AGK/5jYk4Ve6xx6QddVfP5VhK8E7zeWzaGHQRiapIVJpLesux+t3
-zqY6tQMzT3bR51xUAV3LePTJDL/PEo4XLSNolOer/qmyKwbQBM0=
------END CERTIFICATE-----
-
-TeliaSonera Root CA v1
-======================
------BEGIN CERTIFICATE-----
-MIIFODCCAyCgAwIBAgIRAJW+FqD3LkbxezmCcvqLzZYwDQYJKoZIhvcNAQEFBQAwNzEUMBIGA1UE
-CgwLVGVsaWFTb25lcmExHzAdBgNVBAMMFlRlbGlhU29uZXJhIFJvb3QgQ0EgdjEwHhcNMDcxMDE4
-MTIwMDUwWhcNMzIxMDE4MTIwMDUwWjA3MRQwEgYDVQQKDAtUZWxpYVNvbmVyYTEfMB0GA1UEAwwW
-VGVsaWFTb25lcmEgUm9vdCBDQSB2MTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMK+
-6yfwIaPzaSZVfp3FVRaRXP3vIb9TgHot0pGMYzHw7CTww6XScnwQbfQ3t+XmfHnqjLWCi65ItqwA
-3GV17CpNX8GH9SBlK4GoRz6JI5UwFpB/6FcHSOcZrr9FZ7E3GwYq/t75rH2D+1665I+XZ75Ljo1k
-B1c4VWk0Nj0TSO9P4tNmHqTPGrdeNjPUtAa9GAH9d4RQAEX1jF3oI7x+/jXh7VB7qTCNGdMJjmhn
-Xb88lxhTuylixcpecsHHltTbLaC0H2kD7OriUPEMPPCs81Mt8Bz17Ww5OXOAFshSsCPN4D7c3TxH
-oLs1iuKYaIu+5b9y7tL6pe0S7fyYGKkmdtwoSxAgHNN/Fnct7W+A90m7UwW7XWjH1Mh1Fj+JWov3
-F0fUTPHSiXk+TT2YqGHeOh7S+F4D4MHJHIzTjU3TlTazN19jY5szFPAtJmtTfImMMsJu7D0hADnJ
-oWjiUIMusDor8zagrC/kb2HCUQk5PotTubtn2txTuXZZNp1D5SDgPTJghSJRt8czu90VL6R4pgd7
-gUY2BIbdeTXHlSw7sKMXNeVzH7RcWe/a6hBle3rQf5+ztCo3O3CLm1u5K7fsslESl1MpWtTwEhDc
-TwK7EpIvYtQ/aUN8Ddb8WHUBiJ1YFkveupD/RwGJBmr2X7KQarMCpgKIv7NHfirZ1fpoeDVNAgMB
-AAGjPzA9MA8GA1UdEwEB/wQFMAMBAf8wCwYDVR0PBAQDAgEGMB0GA1UdDgQWBBTwj1k4ALP1j5qW
-DNXr+nuqF+gTEjANBgkqhkiG9w0BAQUFAAOCAgEAvuRcYk4k9AwI//DTDGjkk0kiP0Qnb7tt3oNm
-zqjMDfz1mgbldxSR651Be5kqhOX//CHBXfDkH1e3damhXwIm/9fH907eT/j3HEbAek9ALCI18Bmx
-0GtnLLCo4MBANzX2hFxc469CeP6nyQ1Q6g2EdvZR74NTxnr/DlZJLo961gzmJ1TjTQpgcmLNkQfW
-pb/ImWvtxBnmq0wROMVvMeJuScg/doAmAyYp4Db29iBT4xdwNBedY2gea+zDTYa4EzAvXUYNR0PV
-G6pZDrlcjQZIrXSHX8f8MVRBE+LHIQ6e4B4N4cB7Q4WQxYpYxmUKeFfyxiMPAdkgS94P+5KFdSpc
-c41teyWRyu5FrgZLAMzTsVlQ2jqIOylDRl6XK1TOU2+NSueW+r9xDkKLfP0ooNBIytrEgUy7onOT
-JsjrDNYmiLbAJM+7vVvrdX3pCI6GMyx5dwlppYn8s3CQh3aP0yK7Qs69cwsgJirQmz1wHiRszYd2
-qReWt88NkvuOGKmYSdGe/mBEciG5Ge3C9THxOUiIkCR1VBatzvT4aRRkOfujuLpwQMcnHL/EVlP6
-Y2XQ8xwOFvVrhlhNGNTkDY6lnVuR3HYkUD/GKvvZt5y11ubQ2egZixVxSK236thZiNSQvxaz2ems
-WWFUyBy6ysHK4bkgTI86k4mloMy/0/Z1pHWWbVY=
------END CERTIFICATE-----
-
-E-Tugra Certification Authority
-===============================
------BEGIN CERTIFICATE-----
-MIIGSzCCBDOgAwIBAgIIamg+nFGby1MwDQYJKoZIhvcNAQELBQAwgbIxCzAJBgNVBAYTAlRSMQ8w
-DQYDVQQHDAZBbmthcmExQDA+BgNVBAoMN0UtVHXEn3JhIEVCRyBCaWxpxZ9pbSBUZWtub2xvamls
-ZXJpIHZlIEhpem1ldGxlcmkgQS7Fni4xJjAkBgNVBAsMHUUtVHVncmEgU2VydGlmaWthc3lvbiBN
-ZXJrZXppMSgwJgYDVQQDDB9FLVR1Z3JhIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTEzMDMw
-NTEyMDk0OFoXDTIzMDMwMzEyMDk0OFowgbIxCzAJBgNVBAYTAlRSMQ8wDQYDVQQHDAZBbmthcmEx
-QDA+BgNVBAoMN0UtVHXEn3JhIEVCRyBCaWxpxZ9pbSBUZWtub2xvamlsZXJpIHZlIEhpem1ldGxl
-cmkgQS7Fni4xJjAkBgNVBAsMHUUtVHVncmEgU2VydGlmaWthc3lvbiBNZXJrZXppMSgwJgYDVQQD
-DB9FLVR1Z3JhIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIICIjANBgkqhkiG9w0BAQEFAAOCAg8A
-MIICCgKCAgEA4vU/kwVRHoViVF56C/UYB4Oufq9899SKa6VjQzm5S/fDxmSJPZQuVIBSOTkHS0vd
-hQd2h8y/L5VMzH2nPbxHD5hw+IyFHnSOkm0bQNGZDbt1bsipa5rAhDGvykPL6ys06I+XawGb1Q5K
-CKpbknSFQ9OArqGIW66z6l7LFpp3RMih9lRozt6Plyu6W0ACDGQXwLWTzeHxE2bODHnv0ZEoq1+g
-ElIwcxmOj+GMB6LDu0rw6h8VqO4lzKRG+Bsi77MOQ7osJLjFLFzUHPhdZL3Dk14opz8n8Y4e0ypQ
-BaNV2cvnOVPAmJ6MVGKLJrD3fY185MaeZkJVgkfnsliNZvcHfC425lAcP9tDJMW/hkd5s3kc91r0
-E+xs+D/iWR+V7kI+ua2oMoVJl0b+SzGPWsutdEcf6ZG33ygEIqDUD13ieU/qbIWGvaimzuT6w+Gz
-rt48Ue7LE3wBf4QOXVGUnhMMti6lTPk5cDZvlsouDERVxcr6XQKj39ZkjFqzAQqptQpHF//vkUAq
-jqFGOjGY5RH8zLtJVor8udBhmm9lbObDyz51Sf6Pp+KJxWfXnUYTTjF2OySznhFlhqt/7x3U+Lzn
-rFpct1pHXFXOVbQicVtbC/DP3KBhZOqp12gKY6fgDT+gr9Oq0n7vUaDmUStVkhUXU8u3Zg5mTPj5
-dUyQ5xJwx0UCAwEAAaNjMGEwHQYDVR0OBBYEFC7j27JJ0JxUeVz6Jyr+zE7S6E5UMA8GA1UdEwEB
-/wQFMAMBAf8wHwYDVR0jBBgwFoAULuPbsknQnFR5XPonKv7MTtLoTlQwDgYDVR0PAQH/BAQDAgEG
-MA0GCSqGSIb3DQEBCwUAA4ICAQAFNzr0TbdF4kV1JI+2d1LoHNgQk2Xz8lkGpD4eKexd0dCrfOAK
-kEh47U6YA5n+KGCRHTAduGN8qOY1tfrTYXbm1gdLymmasoR6d5NFFxWfJNCYExL/u6Au/U5Mh/jO
-XKqYGwXgAEZKgoClM4so3O0409/lPun++1ndYYRP0lSWE2ETPo+Aab6TR7U1Q9Jauz1c77NCR807
-VRMGsAnb/WP2OogKmW9+4c4bU2pEZiNRCHu8W1Ki/QY3OEBhj0qWuJA3+GbHeJAAFS6LrVE1Uweo
-a2iu+U48BybNCAVwzDk/dr2l02cmAYamU9JgO3xDf1WKvJUawSg5TB9D0pH0clmKuVb8P7Sd2nCc
-dlqMQ1DujjByTd//SffGqWfZbawCEeI6FiWnWAjLb1NBnEg4R2gz0dfHj9R0IdTDBZB6/86WiLEV
-KV0jq9BgoRJP3vQXzTLlyb/IQ639Lo7xr+L0mPoSHyDYwKcMhcWQ9DstliaxLL5Mq+ux0orJ23gT
-Dx4JnW2PAJ8C2sH6H3p6CcRK5ogql5+Ji/03X186zjhZhkuvcQu02PJwT58yE+Owp1fl2tpDy4Q0
-8ijE6m30Ku/Ba3ba+367hTzSU8JNvnHhRdH9I2cNE3X7z2VnIp2usAnRCf8dNL/+I5c30jn6PQ0G
-C7TbO6Orb1wdtn7os4I07QZcJA==
------END CERTIFICATE-----
-
-T-TeleSec GlobalRoot Class 2
-============================
------BEGIN CERTIFICATE-----
-MIIDwzCCAqugAwIBAgIBATANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoM
-IlQtU3lzdGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBU
-cnVzdCBDZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDIwHhcNMDgx
-MDAxMTA0MDE0WhcNMzMxMDAxMjM1OTU5WjCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoMIlQtU3lz
-dGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBD
-ZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDIwggEiMA0GCSqGSIb3
-DQEBAQUAA4IBDwAwggEKAoIBAQCqX9obX+hzkeXaXPSi5kfl82hVYAUdAqSzm1nzHoqvNK38DcLZ
-SBnuaY/JIPwhqgcZ7bBcrGXHX+0CfHt8LRvWurmAwhiCFoT6ZrAIxlQjgeTNuUk/9k9uN0goOA/F
-vudocP05l03Sx5iRUKrERLMjfTlH6VJi1hKTXrcxlkIF+3anHqP1wvzpesVsqXFP6st4vGCvx970
-2cu+fjOlbpSD8DT6IavqjnKgP6TeMFvvhk1qlVtDRKgQFRzlAVfFmPHmBiiRqiDFt1MmUUOyCxGV
-WOHAD3bZwI18gfNycJ5v/hqO2V81xrJvNHy+SE/iWjnX2J14np+GPgNeGYtEotXHAgMBAAGjQjBA
-MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBS/WSA2AHmgoCJrjNXy
-YdK4LMuCSjANBgkqhkiG9w0BAQsFAAOCAQEAMQOiYQsfdOhyNsZt+U2e+iKo4YFWz827n+qrkRk4
-r6p8FU3ztqONpfSO9kSpp+ghla0+AGIWiPACuvxhI+YzmzB6azZie60EI4RYZeLbK4rnJVM3YlNf
-vNoBYimipidx5joifsFvHZVwIEoHNN/q/xWA5brXethbdXwFeilHfkCoMRN3zUA7tFFHei4R40cR
-3p1m0IvVVGb6g1XqfMIpiRvpb7PO4gWEyS8+eIVibslfwXhjdFjASBgMmTnrpMwatXlajRWc2BQN
-9noHV8cigwUtPJslJj0Ys6lDfMjIq2SPDqO/nBudMNva0Bkuqjzx+zOAduTNrRlPBSeOE6Fuwg==
------END CERTIFICATE-----
-
-Atos TrustedRoot 2011
-=====================
------BEGIN CERTIFICATE-----
-MIIDdzCCAl+gAwIBAgIIXDPLYixfszIwDQYJKoZIhvcNAQELBQAwPDEeMBwGA1UEAwwVQXRvcyBU
-cnVzdGVkUm9vdCAyMDExMQ0wCwYDVQQKDARBdG9zMQswCQYDVQQGEwJERTAeFw0xMTA3MDcxNDU4
-MzBaFw0zMDEyMzEyMzU5NTlaMDwxHjAcBgNVBAMMFUF0b3MgVHJ1c3RlZFJvb3QgMjAxMTENMAsG
-A1UECgwEQXRvczELMAkGA1UEBhMCREUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCV
-hTuXbyo7LjvPpvMpNb7PGKw+qtn4TaA+Gke5vJrf8v7MPkfoepbCJI419KkM/IL9bcFyYie96mvr
-54rMVD6QUM+A1JX76LWC1BTFtqlVJVfbsVD2sGBkWXppzwO3bw2+yj5vdHLqqjAqc2K+SZFhyBH+
-DgMq92og3AIVDV4VavzjgsG1xZ1kCWyjWZgHJ8cblithdHFsQ/H3NYkQ4J7sVaE3IqKHBAUsR320
-HLliKWYoyrfhk/WklAOZuXCFteZI6o1Q/NnezG8HDt0Lcp2AMBYHlT8oDv3FdU9T1nSatCQujgKR
-z3bFmx5VdJx4IbHwLfELn8LVlhgf8FQieowHAgMBAAGjfTB7MB0GA1UdDgQWBBSnpQaxLKYJYO7R
-l+lwrrw7GWzbITAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFKelBrEspglg7tGX6XCuvDsZ
-bNshMBgGA1UdIAQRMA8wDQYLKwYBBAGwLQMEAQEwDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEB
-CwUAA4IBAQAmdzTblEiGKkGdLD4GkGDEjKwLVLgfuXvTBznk+j57sj1O7Z8jvZfza1zv7v1Apt+h
-k6EKhqzvINB5Ab149xnYJDE0BAGmuhWawyfc2E8PzBhj/5kPDpFrdRbhIfzYJsdHt6bPWHJxfrrh
-TZVHO8mvbaG0weyJ9rQPOLXiZNwlz6bb65pcmaHFCN795trV1lpFDMS3wrUU77QR/w4VtfX128a9
-61qn8FYiqTxlVMYVqL2Gns2Dlmh6cYGJ4Qvh6hEbaAjMaZ7snkGeRDImeuKHCnE96+RapNLbxc3G
-3mB/ufNPRJLvKrcYPqcZ2Qt9sTdBQrC6YB3y/gkRsPCHe6ed
------END CERTIFICATE-----
-
-QuoVadis Root CA 1 G3
-=====================
------BEGIN CERTIFICATE-----
-MIIFYDCCA0igAwIBAgIUeFhfLq0sGUvjNwc1NBMotZbUZZMwDQYJKoZIhvcNAQELBQAwSDELMAkG
-A1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxHjAcBgNVBAMTFVF1b1ZhZGlzIFJv
-b3QgQ0EgMSBHMzAeFw0xMjAxMTIxNzI3NDRaFw00MjAxMTIxNzI3NDRaMEgxCzAJBgNVBAYTAkJN
-MRkwFwYDVQQKExBRdW9WYWRpcyBMaW1pdGVkMR4wHAYDVQQDExVRdW9WYWRpcyBSb290IENBIDEg
-RzMwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCgvlAQjunybEC0BJyFuTHK3C3kEakE
-PBtVwedYMB0ktMPvhd6MLOHBPd+C5k+tR4ds7FtJwUrVu4/sh6x/gpqG7D0DmVIB0jWerNrwU8lm
-PNSsAgHaJNM7qAJGr6Qc4/hzWHa39g6QDbXwz8z6+cZM5cOGMAqNF34168Xfuw6cwI2H44g4hWf6
-Pser4BOcBRiYz5P1sZK0/CPTz9XEJ0ngnjybCKOLXSoh4Pw5qlPafX7PGglTvF0FBM+hSo+LdoIN
-ofjSxxR3W5A2B4GbPgb6Ul5jxaYA/qXpUhtStZI5cgMJYr2wYBZupt0lwgNm3fME0UDiTouG9G/l
-g6AnhF4EwfWQvTA9xO+oabw4m6SkltFi2mnAAZauy8RRNOoMqv8hjlmPSlzkYZqn0ukqeI1RPToV
-7qJZjqlc3sX5kCLliEVx3ZGZbHqfPT2YfF72vhZooF6uCyP8Wg+qInYtyaEQHeTTRCOQiJ/GKubX
-9ZqzWB4vMIkIG1SitZgj7Ah3HJVdYdHLiZxfokqRmu8hqkkWCKi9YSgxyXSthfbZxbGL0eUQMk1f
-iyA6PEkfM4VZDdvLCXVDaXP7a3F98N/ETH3Goy7IlXnLc6KOTk0k+17kBL5yG6YnLUlamXrXXAkg
-t3+UuU/xDRxeiEIbEbfnkduebPRq34wGmAOtzCjvpUfzUwIDAQABo0IwQDAPBgNVHRMBAf8EBTAD
-AQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUo5fW816iEOGrRZ88F2Q87gFwnMwwDQYJKoZI
-hvcNAQELBQADggIBABj6W3X8PnrHX3fHyt/PX8MSxEBd1DKquGrX1RUVRpgjpeaQWxiZTOOtQqOC
-MTaIzen7xASWSIsBx40Bz1szBpZGZnQdT+3Btrm0DWHMY37XLneMlhwqI2hrhVd2cDMT/uFPpiN3
-GPoajOi9ZcnPP/TJF9zrx7zABC4tRi9pZsMbj/7sPtPKlL92CiUNqXsCHKnQO18LwIE6PWThv6ct
-Tr1NxNgpxiIY0MWscgKCP6o6ojoilzHdCGPDdRS5YCgtW2jgFqlmgiNR9etT2DGbe+m3nUvriBbP
-+V04ikkwj+3x6xn0dxoxGE1nVGwvb2X52z3sIexe9PSLymBlVNFxZPT5pqOBMzYzcfCkeF9OrYMh
-3jRJjehZrJ3ydlo28hP0r+AJx2EqbPfgna67hkooby7utHnNkDPDs3b69fBsnQGQ+p6Q9pxyz0fa
-wx/kNSBT8lTR32GDpgLiJTjehTItXnOQUl1CxM49S+H5GYQd1aJQzEH7QRTDvdbJWqNjZgKAvQU6
-O0ec7AAmTPWIUb+oI38YB7AL7YsmoWTTYUrrXJ/es69nA7Mf3W1daWhpq1467HxpvMc7hU6eFbm0
-FU/DlXpY18ls6Wy58yljXrQs8C097Vpl4KlbQMJImYFtnh8GKjwStIsPm6Ik8KaN1nrgS7ZklmOV
-hMJKzRwuJIczYOXD
------END CERTIFICATE-----
-
-QuoVadis Root CA 2 G3
-=====================
------BEGIN CERTIFICATE-----
-MIIFYDCCA0igAwIBAgIURFc0JFuBiZs18s64KztbpybwdSgwDQYJKoZIhvcNAQELBQAwSDELMAkG
-A1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxHjAcBgNVBAMTFVF1b1ZhZGlzIFJv
-b3QgQ0EgMiBHMzAeFw0xMjAxMTIxODU5MzJaFw00MjAxMTIxODU5MzJaMEgxCzAJBgNVBAYTAkJN
-MRkwFwYDVQQKExBRdW9WYWRpcyBMaW1pdGVkMR4wHAYDVQQDExVRdW9WYWRpcyBSb290IENBIDIg
-RzMwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQChriWyARjcV4g/Ruv5r+LrI3HimtFh
-ZiFfqq8nUeVuGxbULX1QsFN3vXg6YOJkApt8hpvWGo6t/x8Vf9WVHhLL5hSEBMHfNrMWn4rjyduY
-NM7YMxcoRvynyfDStNVNCXJJ+fKH46nafaF9a7I6JaltUkSs+L5u+9ymc5GQYaYDFCDy54ejiK2t
-oIz/pgslUiXnFgHVy7g1gQyjO/Dh4fxaXc6AcW34Sas+O7q414AB+6XrW7PFXmAqMaCvN+ggOp+o
-MiwMzAkd056OXbxMmO7FGmh77FOm6RQ1o9/NgJ8MSPsc9PG/Srj61YxxSscfrf5BmrODXfKEVu+l
-V0POKa2Mq1W/xPtbAd0jIaFYAI7D0GoT7RPjEiuA3GfmlbLNHiJuKvhB1PLKFAeNilUSxmn1uIZo
-L1NesNKqIcGY5jDjZ1XHm26sGahVpkUG0CM62+tlXSoREfA7T8pt9DTEceT/AFr2XK4jYIVz8eQQ
-sSWu1ZK7E8EM4DnatDlXtas1qnIhO4M15zHfeiFuuDIIfR0ykRVKYnLP43ehvNURG3YBZwjgQQvD
-6xVu+KQZ2aKrr+InUlYrAoosFCT5v0ICvybIxo/gbjh9Uy3l7ZizlWNof/k19N+IxWA1ksB8aRxh
-lRbQ694Lrz4EEEVlWFA4r0jyWbYW8jwNkALGcC4BrTwV1wIDAQABo0IwQDAPBgNVHRMBAf8EBTAD
-AQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQU7edvdlq/YOxJW8ald7tyFnGbxD0wDQYJKoZI
-hvcNAQELBQADggIBAJHfgD9DCX5xwvfrs4iP4VGyvD11+ShdyLyZm3tdquXK4Qr36LLTn91nMX66
-AarHakE7kNQIXLJgapDwyM4DYvmL7ftuKtwGTTwpD4kWilhMSA/ohGHqPHKmd+RCroijQ1h5fq7K
-pVMNqT1wvSAZYaRsOPxDMuHBR//47PERIjKWnML2W2mWeyAMQ0GaW/ZZGYjeVYg3UQt4XAoeo0L9
-x52ID8DyeAIkVJOviYeIyUqAHerQbj5hLja7NQ4nlv1mNDthcnPxFlxHBlRJAHpYErAK74X9sbgz
-dWqTHBLmYF5vHX/JHyPLhGGfHoJE+V+tYlUkmlKY7VHnoX6XOuYvHxHaU4AshZ6rNRDbIl9qxV6X
-U/IyAgkwo1jwDQHVcsaxfGl7w/U2Rcxhbl5MlMVerugOXou/983g7aEOGzPuVBj+D77vfoRrQ+Nw
-mNtddbINWQeFFSM51vHfqSYP1kjHs6Yi9TM3WpVHn3u6GBVv/9YUZINJ0gpnIdsPNWNgKCLjsZWD
-zYWm3S8P52dSbrsvhXz1SnPnxT7AvSESBT/8twNJAlvIJebiVDj1eYeMHVOyToV7BjjHLPj4sHKN
-JeV3UvQDHEimUF+IIDBu8oJDqz2XhOdT+yHBTw8imoa4WSr2Rz0ZiC3oheGe7IUIarFsNMkd7Egr
-O3jtZsSOeWmD3n+M
------END CERTIFICATE-----
-
-QuoVadis Root CA 3 G3
-=====================
------BEGIN CERTIFICATE-----
-MIIFYDCCA0igAwIBAgIULvWbAiin23r/1aOp7r0DoM8Sah0wDQYJKoZIhvcNAQELBQAwSDELMAkG
-A1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxHjAcBgNVBAMTFVF1b1ZhZGlzIFJv
-b3QgQ0EgMyBHMzAeFw0xMjAxMTIyMDI2MzJaFw00MjAxMTIyMDI2MzJaMEgxCzAJBgNVBAYTAkJN
-MRkwFwYDVQQKExBRdW9WYWRpcyBMaW1pdGVkMR4wHAYDVQQDExVRdW9WYWRpcyBSb290IENBIDMg
-RzMwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCzyw4QZ47qFJenMioKVjZ/aEzHs286
-IxSR/xl/pcqs7rN2nXrpixurazHb+gtTTK/FpRp5PIpM/6zfJd5O2YIyC0TeytuMrKNuFoM7pmRL
-Mon7FhY4futD4tN0SsJiCnMK3UmzV9KwCoWdcTzeo8vAMvMBOSBDGzXRU7Ox7sWTaYI+FrUoRqHe
-6okJ7UO4BUaKhvVZR74bbwEhELn9qdIoyhA5CcoTNs+cra1AdHkrAj80//ogaX3T7mH1urPnMNA3
-I4ZyYUUpSFlob3emLoG+B01vr87ERRORFHAGjx+f+IdpsQ7vw4kZ6+ocYfx6bIrc1gMLnia6Et3U
-VDmrJqMz6nWB2i3ND0/kA9HvFZcba5DFApCTZgIhsUfei5pKgLlVj7WiL8DWM2fafsSntARE60f7
-5li59wzweyuxwHApw0BiLTtIadwjPEjrewl5qW3aqDCYz4ByA4imW0aucnl8CAMhZa634RylsSqi
-Md5mBPfAdOhx3v89WcyWJhKLhZVXGqtrdQtEPREoPHtht+KPZ0/l7DxMYIBpVzgeAVuNVejH38DM
-dyM0SXV89pgR6y3e7UEuFAUCf+D+IOs15xGsIs5XPd7JMG0QA4XN8f+MFrXBsj6IbGB/kE+V9/Yt
-rQE5BwT6dYB9v0lQ7e/JxHwc64B+27bQ3RP+ydOc17KXqQIDAQABo0IwQDAPBgNVHRMBAf8EBTAD
-AQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUxhfQvKjqAkPyGwaZXSuQILnXnOQwDQYJKoZI
-hvcNAQELBQADggIBADRh2Va1EodVTd2jNTFGu6QHcrxfYWLopfsLN7E8trP6KZ1/AvWkyaiTt3px
-KGmPc+FSkNrVvjrlt3ZqVoAh313m6Tqe5T72omnHKgqwGEfcIHB9UqM+WXzBusnIFUBhynLWcKzS
-t/Ac5IYp8M7vaGPQtSCKFWGafoaYtMnCdvvMujAWzKNhxnQT5WvvoxXqA/4Ti2Tk08HS6IT7SdEQ
-TXlm66r99I0xHnAUrdzeZxNMgRVhvLfZkXdxGYFgu/BYpbWcC/ePIlUnwEsBbTuZDdQdm2NnL9Du
-DcpmvJRPpq3t/O5jrFc/ZSXPsoaP0Aj/uHYUbt7lJ+yreLVTubY/6CD50qi+YUbKh4yE8/nxoGib
-Ih6BJpsQBJFxwAYf3KDTuVan45gtf4Od34wrnDKOMpTwATwiKp9Dwi7DmDkHOHv8XgBCH/MyJnmD
-hPbl8MFREsALHgQjDFSlTC9JxUrRtm5gDWv8a4uFJGS3iQ6rJUdbPM9+Sb3H6QrG2vd+DhcI00iX
-0HGS8A85PjRqHH3Y8iKuu2n0M7SmSFXRDw4m6Oy2Cy2nhTXN/VnIn9HNPlopNLk9hM6xZdRZkZFW
-dSHBd575euFgndOtBBj0fOtek49TSiIp+EgrPk2GrFt/ywaZWWDYWGWVjUTR939+J399roD1B0y2
-PpxxVJkES/1Y+Zj0
------END CERTIFICATE-----
-
-DigiCert Assured ID Root G2
-===========================
------BEGIN CERTIFICATE-----
-MIIDljCCAn6gAwIBAgIQC5McOtY5Z+pnI7/Dr5r0SzANBgkqhkiG9w0BAQsFADBlMQswCQYDVQQG
-EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSQw
-IgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzIwHhcNMTMwODAxMTIwMDAwWhcNMzgw
-MTE1MTIwMDAwWjBlMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQL
-ExB3d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzIw
-ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDZ5ygvUj82ckmIkzTz+GoeMVSAn61UQbVH
-35ao1K+ALbkKz3X9iaV9JPrjIgwrvJUXCzO/GU1BBpAAvQxNEP4HteccbiJVMWWXvdMX0h5i89vq
-bFCMP4QMls+3ywPgym2hFEwbid3tALBSfK+RbLE4E9HpEgjAALAcKxHad3A2m67OeYfcgnDmCXRw
-VWmvo2ifv922ebPynXApVfSr/5Vh88lAbx3RvpO704gqu52/clpWcTs/1PPRCv4o76Pu2ZmvA9OP
-YLfykqGxvYmJHzDNw6YuYjOuFgJ3RFrngQo8p0Quebg/BLxcoIfhG69Rjs3sLPr4/m3wOnyqi+Rn
-lTGNAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBTO
-w0q5mVXyuNtgv6l+vVa1lzan1jANBgkqhkiG9w0BAQsFAAOCAQEAyqVVjOPIQW5pJ6d1Ee88hjZv
-0p3GeDgdaZaikmkuOGybfQTUiaWxMTeKySHMq2zNixya1r9I0jJmwYrA8y8678Dj1JGG0VDjA9tz
-d29KOVPt3ibHtX2vK0LRdWLjSisCx1BL4GnilmwORGYQRI+tBev4eaymG+g3NJ1TyWGqolKvSnAW
-hsI6yLETcDbYz+70CjTVW0z9B5yiutkBclzzTcHdDrEcDcRjvq30FPuJ7KJBDkzMyFdA0G4Dqs0M
-jomZmWzwPDCvON9vvKO+KSAnq3T/EyJ43pdSVR6DtVQgA+6uwE9W3jfMw3+qBCe703e4YtsXfJwo
-IhNzbM8m9Yop5w==
------END CERTIFICATE-----
-
-DigiCert Assured ID Root G3
-===========================
------BEGIN CERTIFICATE-----
-MIICRjCCAc2gAwIBAgIQC6Fa+h3foLVJRK/NJKBs7DAKBggqhkjOPQQDAzBlMQswCQYDVQQGEwJV
-UzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSQwIgYD
-VQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzMwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1
-MTIwMDAwWjBlMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
-d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzMwdjAQ
-BgcqhkjOPQIBBgUrgQQAIgNiAAQZ57ysRGXtzbg/WPuNsVepRC0FFfLvC/8QdJ+1YlJfZn4f5dwb
-RXkLzMZTCp2NXQLZqVneAlr2lSoOjThKiknGvMYDOAdfVdp+CW7if17QRSAPWXYQ1qAk8C3eNvJs
-KTmjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBTL0L2p4ZgF
-UaFNN6KDec6NHSrkhDAKBggqhkjOPQQDAwNnADBkAjAlpIFFAmsSS3V0T8gj43DydXLefInwz5Fy
-YZ5eEJJZVrmDxxDnOOlYJjZ91eQ0hjkCMHw2U/Aw5WJjOpnitqM7mzT6HtoQknFekROn3aRukswy
-1vUhZscv6pZjamVFkpUBtA==
------END CERTIFICATE-----
-
-DigiCert Global Root G2
-=======================
------BEGIN CERTIFICATE-----
-MIIDjjCCAnagAwIBAgIQAzrx5qcRqaC7KGSxHQn65TANBgkqhkiG9w0BAQsFADBhMQswCQYDVQQG
-EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSAw
-HgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBHMjAeFw0xMzA4MDExMjAwMDBaFw0zODAxMTUx
-MjAwMDBaMGExCzAJBgNVBAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3
-dy5kaWdpY2VydC5jb20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IEcyMIIBIjANBgkq
-hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuzfNNNx7a8myaJCtSnX/RrohCgiN9RlUyfuI2/Ou8jqJ
-kTx65qsGGmvPrC3oXgkkRLpimn7Wo6h+4FR1IAWsULecYxpsMNzaHxmx1x7e/dfgy5SDN67sH0NO
-3Xss0r0upS/kqbitOtSZpLYl6ZtrAGCSYP9PIUkY92eQq2EGnI/yuum06ZIya7XzV+hdG82MHauV
-BJVJ8zUtluNJbd134/tJS7SsVQepj5WztCO7TG1F8PapspUwtP1MVYwnSlcUfIKdzXOS0xZKBgyM
-UNGPHgm+F6HmIcr9g+UQvIOlCsRnKPZzFBQ9RnbDhxSJITRNrw9FDKZJobq7nMWxM4MphQIDAQAB
-o0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNVHQ4EFgQUTiJUIBiV5uNu
-5g/6+rkS7QYXjzkwDQYJKoZIhvcNAQELBQADggEBAGBnKJRvDkhj6zHd6mcY1Yl9PMWLSn/pvtsr
-F9+wX3N3KjITOYFnQoQj8kVnNeyIv/iPsGEMNKSuIEyExtv4NeF22d+mQrvHRAiGfzZ0JFrabA0U
-WTW98kndth/Jsw1HKj2ZL7tcu7XUIOGZX1NGFdtom/DzMNU+MeKNhJ7jitralj41E6Vf8PlwUHBH
-QRFXGU7Aj64GxJUTFy8bJZ918rGOmaFvE7FBcf6IKshPECBV1/MUReXgRPTqh5Uykw7+U0b6LJ3/
-iyK5S9kJRaTepLiaWN0bfVKfjllDiIGknibVb63dDcY3fe0Dkhvld1927jyNxF1WW6LZZm6zNTfl
-MrY=
------END CERTIFICATE-----
-
-DigiCert Global Root G3
-=======================
------BEGIN CERTIFICATE-----
-MIICPzCCAcWgAwIBAgIQBVVWvPJepDU1w6QP1atFcjAKBggqhkjOPQQDAzBhMQswCQYDVQQGEwJV
-UzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSAwHgYD
-VQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBHMzAeFw0xMzA4MDExMjAwMDBaFw0zODAxMTUxMjAw
-MDBaMGExCzAJBgNVBAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5k
-aWdpY2VydC5jb20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IEczMHYwEAYHKoZIzj0C
-AQYFK4EEACIDYgAE3afZu4q4C/sLfyHS8L6+c/MzXRq8NOrexpu80JX28MzQC7phW1FGfp4tn+6O
-YwwX7Adw9c+ELkCDnOg/QW07rdOkFFk2eJ0DQ+4QE2xy3q6Ip6FrtUPOZ9wj/wMco+I+o0IwQDAP
-BgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNVHQ4EFgQUs9tIpPmhxdiuNkHMEWNp
-Yim8S8YwCgYIKoZIzj0EAwMDaAAwZQIxAK288mw/EkrRLTnDCgmXc/SINoyIJ7vmiI1Qhadj+Z4y
-3maTD/HMsQmP3Wyr+mt/oAIwOWZbwmSNuJ5Q3KjVSaLtx9zRSX8XAbjIho9OjIgrqJqpisXRAL34
-VOKa5Vt8sycX
------END CERTIFICATE-----
-
-DigiCert Trusted Root G4
-========================
------BEGIN CERTIFICATE-----
-MIIFkDCCA3igAwIBAgIQBZsbV56OITLiOQe9p3d1XDANBgkqhkiG9w0BAQwFADBiMQswCQYDVQQG
-EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSEw
-HwYDVQQDExhEaWdpQ2VydCBUcnVzdGVkIFJvb3QgRzQwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1
-MTIwMDAwWjBiMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
-d3cuZGlnaWNlcnQuY29tMSEwHwYDVQQDExhEaWdpQ2VydCBUcnVzdGVkIFJvb3QgRzQwggIiMA0G
-CSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC/5pBzaN675F1KPDAiMGkz7MKnJS7JIT3yithZwuEp
-pz1Yq3aaza57G4QNxDAf8xukOBbrVsaXbR2rsnnyyhHS5F/WBTxSD1Ifxp4VpX6+n6lXFllVcq9o
-k3DCsrp1mWpzMpTREEQQLt+C8weE5nQ7bXHiLQwb7iDVySAdYyktzuxeTsiT+CFhmzTrBcZe7Fsa
-vOvJz82sNEBfsXpm7nfISKhmV1efVFiODCu3T6cw2Vbuyntd463JT17lNecxy9qTXtyOj4DatpGY
-QJB5w3jHtrHEtWoYOAMQjdjUN6QuBX2I9YI+EJFwq1WCQTLX2wRzKm6RAXwhTNS8rhsDdV14Ztk6
-MUSaM0C/CNdaSaTC5qmgZ92kJ7yhTzm1EVgX9yRcRo9k98FpiHaYdj1ZXUJ2h4mXaXpI8OCiEhtm
-mnTK3kse5w5jrubU75KSOp493ADkRSWJtppEGSt+wJS00mFt6zPZxd9LBADMfRyVw4/3IbKyEbe7
-f/LVjHAsQWCqsWMYRJUadmJ+9oCw++hkpjPRiQfhvbfmQ6QYuKZ3AeEPlAwhHbJUKSWJbOUOUlFH
-dL4mrLZBdd56rF+NP8m800ERElvlEFDrMcXKchYiCd98THU/Y+whX8QgUWtvsauGi0/C1kVfnSD8
-oR7FwI+isX4KJpn15GkvmB0t9dmpsh3lGwIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1Ud
-DwEB/wQEAwIBhjAdBgNVHQ4EFgQU7NfjgtJxXWRM3y5nP+e6mK4cD08wDQYJKoZIhvcNAQEMBQAD
-ggIBALth2X2pbL4XxJEbw6GiAI3jZGgPVs93rnD5/ZpKmbnJeFwMDF/k5hQpVgs2SV1EY+CtnJYY
-ZhsjDT156W1r1lT40jzBQ0CuHVD1UvyQO7uYmWlrx8GnqGikJ9yd+SeuMIW59mdNOj6PWTkiU0Tr
-yF0Dyu1Qen1iIQqAyHNm0aAFYF/opbSnr6j3bTWcfFqK1qI4mfN4i/RN0iAL3gTujJtHgXINwBQy
-7zBZLq7gcfJW5GqXb5JQbZaNaHqasjYUegbyJLkJEVDXCLG4iXqEI2FCKeWjzaIgQdfRnGTZ6iah
-ixTXTBmyUEFxPT9NcCOGDErcgdLMMpSEDQgJlxxPwO5rIHQw0uA5NBCFIRUBCOhVMt5xSdkoF1BN
-5r5N0XWs0Mr7QbhDparTwwVETyw2m+L64kW4I1NsBm9nVX9GtUw/bihaeSbSpKhil9Ie4u1Ki7wb
-/UdKDd9nZn6yW0HQO+T0O/QEY+nvwlQAUaCKKsnOeMzV6ocEGLPOr0mIr/OSmbaz5mEP0oUA51Aa
-5BuVnRmhuZyxm7EAHu/QD09CbMkKvO5D+jpxpchNJqU1/YldvIViHTLSoCtU7ZpXwdv6EM8Zt4tK
-G48BtieVU+i2iW1bvGjUI+iLUaJW+fCmgKDWHrO8Dw9TdSmq6hN35N6MgSGtBxBHEa2HPQfRdbzP
-82Z+
------END CERTIFICATE-----
-
-COMODO RSA Certification Authority
-==================================
------BEGIN CERTIFICATE-----
-MIIF2DCCA8CgAwIBAgIQTKr5yttjb+Af907YWwOGnTANBgkqhkiG9w0BAQwFADCBhTELMAkGA1UE
-BhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgG
-A1UEChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBSU0EgQ2VydGlmaWNhdGlv
-biBBdXRob3JpdHkwHhcNMTAwMTE5MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBhTELMAkGA1UEBhMC
-R0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UE
-ChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBSU0EgQ2VydGlmaWNhdGlvbiBB
-dXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCR6FSS0gpWsawNJN3Fz0Rn
-dJkrN6N9I3AAcbxT38T6KhKPS38QVr2fcHK3YX/JSw8Xpz3jsARh7v8Rl8f0hj4K+j5c+ZPmNHrZ
-FGvnnLOFoIJ6dq9xkNfs/Q36nGz637CC9BR++b7Epi9Pf5l/tfxnQ3K9DADWietrLNPtj5gcFKt+
-5eNu/Nio5JIk2kNrYrhV/erBvGy2i/MOjZrkm2xpmfh4SDBF1a3hDTxFYPwyllEnvGfDyi62a+pG
-x8cgoLEfZd5ICLqkTqnyg0Y3hOvozIFIQ2dOciqbXL1MGyiKXCJ7tKuY2e7gUYPDCUZObT6Z+pUX
-2nwzV0E8jVHtC7ZcryxjGt9XyD+86V3Em69FmeKjWiS0uqlWPc9vqv9JWL7wqP/0uK3pN/u6uPQL
-OvnoQ0IeidiEyxPx2bvhiWC4jChWrBQdnArncevPDt09qZahSL0896+1DSJMwBGB7FY79tOi4lu3
-sgQiUpWAk2nojkxl8ZEDLXB0AuqLZxUpaVICu9ffUGpVRr+goyhhf3DQw6KqLCGqR84onAZFdr+C
-GCe01a60y1Dma/RMhnEw6abfFobg2P9A3fvQQoh/ozM6LlweQRGBY84YcWsr7KaKtzFcOmpH4MN5
-WdYgGq/yapiqcrxXStJLnbsQ/LBMQeXtHT1eKJ2czL+zUdqnR+WEUwIDAQABo0IwQDAdBgNVHQ4E
-FgQUu69+Aj36pvE8hI6t7jiY7NkyMtQwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8w
-DQYJKoZIhvcNAQEMBQADggIBAArx1UaEt65Ru2yyTUEUAJNMnMvlwFTPoCWOAvn9sKIN9SCYPBMt
-rFaisNZ+EZLpLrqeLppysb0ZRGxhNaKatBYSaVqM4dc+pBroLwP0rmEdEBsqpIt6xf4FpuHA1sj+
-nq6PK7o9mfjYcwlYRm6mnPTXJ9OV2jeDchzTc+CiR5kDOF3VSXkAKRzH7JsgHAckaVd4sjn8OoSg
-tZx8jb8uk2IntznaFxiuvTwJaP+EmzzV1gsD41eeFPfR60/IvYcjt7ZJQ3mFXLrrkguhxuhoqEwW
-sRqZCuhTLJK7oQkYdQxlqHvLI7cawiiFwxv/0Cti76R7CZGYZ4wUAc1oBmpjIXUDgIiKboHGhfKp
-pC3n9KUkEEeDys30jXlYsQab5xoq2Z0B15R97QNKyvDb6KkBPvVWmckejkk9u+UJueBPSZI9FoJA
-zMxZxuY67RIuaTxslbH9qh17f4a+Hg4yRvv7E491f0yLS0Zj/gA0QHDBw7mh3aZw4gSzQbzpgJHq
-ZJx64SIDqZxubw5lT2yHh17zbqD5daWbQOhTsiedSrnAdyGN/4fy3ryM7xfft0kL0fJuMAsaDk52
-7RH89elWsn2/x20Kk4yl0MC2Hb46TpSi125sC8KKfPog88Tk5c0NqMuRkrF8hey1FGlmDoLnzc7I
-LaZRfyHBNVOFBkpdn627G190
------END CERTIFICATE-----
-
-USERTrust RSA Certification Authority
-=====================================
------BEGIN CERTIFICATE-----
-MIIF3jCCA8agAwIBAgIQAf1tMPyjylGoG7xkDjUDLTANBgkqhkiG9w0BAQwFADCBiDELMAkGA1UE
-BhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQK
-ExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBSU0EgQ2VydGlmaWNh
-dGlvbiBBdXRob3JpdHkwHhcNMTAwMjAxMDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBiDELMAkGA1UE
-BhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQK
-ExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBSU0EgQ2VydGlmaWNh
-dGlvbiBBdXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCAEmUXNg7D2wiz
-0KxXDXbtzSfTTK1Qg2HiqiBNCS1kCdzOiZ/MPans9s/B3PHTsdZ7NygRK0faOca8Ohm0X6a9fZ2j
-Y0K2dvKpOyuR+OJv0OwWIJAJPuLodMkYtJHUYmTbf6MG8YgYapAiPLz+E/CHFHv25B+O1ORRxhFn
-RghRy4YUVD+8M/5+bJz/Fp0YvVGONaanZshyZ9shZrHUm3gDwFA66Mzw3LyeTP6vBZY1H1dat//O
-+T23LLb2VN3I5xI6Ta5MirdcmrS3ID3KfyI0rn47aGYBROcBTkZTmzNg95S+UzeQc0PzMsNT79uq
-/nROacdrjGCT3sTHDN/hMq7MkztReJVni+49Vv4M0GkPGw/zJSZrM233bkf6c0Plfg6lZrEpfDKE
-Y1WJxA3Bk1QwGROs0303p+tdOmw1XNtB1xLaqUkL39iAigmTYo61Zs8liM2EuLE/pDkP2QKe6xJM
-lXzzawWpXhaDzLhn4ugTncxbgtNMs+1b/97lc6wjOy0AvzVVdAlJ2ElYGn+SNuZRkg7zJn0cTRe8
-yexDJtC/QV9AqURE9JnnV4eeUB9XVKg+/XRjL7FQZQnmWEIuQxpMtPAlR1n6BB6T1CZGSlCBst6+
-eLf8ZxXhyVeEHg9j1uliutZfVS7qXMYoCAQlObgOK6nyTJccBz8NUvXt7y+CDwIDAQABo0IwQDAd
-BgNVHQ4EFgQUU3m/WqorSs9UgOHYm8Cd8rIDZsswDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQF
-MAMBAf8wDQYJKoZIhvcNAQEMBQADggIBAFzUfA3P9wF9QZllDHPFUp/L+M+ZBn8b2kMVn54CVVeW
-FPFSPCeHlCjtHzoBN6J2/FNQwISbxmtOuowhT6KOVWKR82kV2LyI48SqC/3vqOlLVSoGIG1VeCkZ
-7l8wXEskEVX/JJpuXior7gtNn3/3ATiUFJVDBwn7YKnuHKsSjKCaXqeYalltiz8I+8jRRa8YFWSQ
-Eg9zKC7F4iRO/Fjs8PRF/iKz6y+O0tlFYQXBl2+odnKPi4w2r78NBc5xjeambx9spnFixdjQg3IM
-8WcRiQycE0xyNN+81XHfqnHd4blsjDwSXWXavVcStkNr/+XeTWYRUc+ZruwXtuhxkYzeSf7dNXGi
-FSeUHM9h4ya7b6NnJSFd5t0dCy5oGzuCr+yDZ4XUmFF0sbmZgIn/f3gZXHlKYC6SQK5MNyosycdi
-yA5d9zZbyuAlJQG03RoHnHcAP9Dc1ew91Pq7P8yF1m9/qS3fuQL39ZeatTXaw2ewh0qpKJ4jjv9c
-J2vhsE/zB+4ALtRZh8tSQZXq9EfX7mRBVXyNWQKV3WKdwrnuWih0hKWbt5DHDAff9Yk2dDLWKMGw
-sAvgnEzDHNb842m1R0aBL6KCq9NjRHDEjf8tM7qtj3u1cIiuPhnPQCjY/MiQu12ZIvVS5ljFH4gx
-Q+6IHdfGjjxDah2nGN59PRbxYvnKkKj9
------END CERTIFICATE-----
-
-USERTrust ECC Certification Authority
-=====================================
------BEGIN CERTIFICATE-----
-MIICjzCCAhWgAwIBAgIQXIuZxVqUxdJxVt7NiYDMJjAKBggqhkjOPQQDAzCBiDELMAkGA1UEBhMC
-VVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQKExVU
-aGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBFQ0MgQ2VydGlmaWNhdGlv
-biBBdXRob3JpdHkwHhcNMTAwMjAxMDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBiDELMAkGA1UEBhMC
-VVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0plcnNleSBDaXR5MR4wHAYDVQQKExVU
-aGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNVBAMTJVVTRVJUcnVzdCBFQ0MgQ2VydGlmaWNhdGlv
-biBBdXRob3JpdHkwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQarFRaqfloI+d61SRvU8Za2EurxtW2
-0eZzca7dnNYMYf3boIkDuAUU7FfO7l0/4iGzzvfUinngo4N+LZfQYcTxmdwlkWOrfzCjtHDix6Ez
-nPO/LlxTsV+zfTJ/ijTjeXmjQjBAMB0GA1UdDgQWBBQ64QmG1M8ZwpZ2dEl23OA1xmNjmjAOBgNV
-HQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNoADBlAjA2Z6EWCNzklwBB
-HU6+4WMBzzuqQhFkoJ2UOQIReVx7Hfpkue4WQrO/isIJxOzksU0CMQDpKmFHjFJKS04YcPbWRNZu
-9YO6bVi9JNlWSOrvxKJGgYhqOkbRqZtNyWHa0V1Xahg=
------END CERTIFICATE-----
-
-GlobalSign ECC Root CA - R4
-===========================
------BEGIN CERTIFICATE-----
-MIIB4TCCAYegAwIBAgIRKjikHJYKBN5CsiilC+g0mAIwCgYIKoZIzj0EAwIwUDEkMCIGA1UECxMb
-R2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI0MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQD
-EwpHbG9iYWxTaWduMB4XDTEyMTExMzAwMDAwMFoXDTM4MDExOTAzMTQwN1owUDEkMCIGA1UECxMb
-R2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI0MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQD
-EwpHbG9iYWxTaWduMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEuMZ5049sJQ6fLjkZHAOkrprl
-OQcJFspjsbmG+IpXwVfOQvpzofdlQv8ewQCybnMO/8ch5RikqtlxP6jUuc6MHaNCMEAwDgYDVR0P
-AQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFFSwe61FuOJAf/sKbvu+M8k8o4TV
-MAoGCCqGSM49BAMCA0gAMEUCIQDckqGgE6bPA7DmxCGXkPoUVy0D7O48027KqGx2vKLeuwIgJ6iF
-JzWbVsaj8kfSt24bAgAXqmemFZHe+pTsewv4n4Q=
------END CERTIFICATE-----
-
-GlobalSign ECC Root CA - R5
-===========================
------BEGIN CERTIFICATE-----
-MIICHjCCAaSgAwIBAgIRYFlJ4CYuu1X5CneKcflK2GwwCgYIKoZIzj0EAwMwUDEkMCIGA1UECxMb
-R2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI1MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQD
-EwpHbG9iYWxTaWduMB4XDTEyMTExMzAwMDAwMFoXDTM4MDExOTAzMTQwN1owUDEkMCIGA1UECxMb
-R2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI1MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQD
-EwpHbG9iYWxTaWduMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAER0UOlvt9Xb/pOdEh+J8LttV7HpI6
-SFkc8GIxLcB6KP4ap1yztsyX50XUWPrRd21DosCHZTQKH3rd6zwzocWdTaRvQZU4f8kehOvRnkmS
-h5SHDDqFSmafnVmTTZdhBoZKo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAd
-BgNVHQ4EFgQUPeYpSJvqB8ohREom3m7e0oPQn1kwCgYIKoZIzj0EAwMDaAAwZQIxAOVpEslu28Yx
-uglB4Zf4+/2a4n0Sye18ZNPLBSWLVtmg515dTguDnFt2KaAJJiFqYgIwcdK1j1zqO+F4CYWodZI7
-yFz9SO8NdCKoCOJuxUnOxwy8p2Fp8fc74SrL+SvzZpA3
------END CERTIFICATE-----
-
-Staat der Nederlanden Root CA - G3
-==================================
------BEGIN CERTIFICATE-----
-MIIFdDCCA1ygAwIBAgIEAJiiOTANBgkqhkiG9w0BAQsFADBaMQswCQYDVQQGEwJOTDEeMBwGA1UE
-CgwVU3RhYXQgZGVyIE5lZGVybGFuZGVuMSswKQYDVQQDDCJTdGFhdCBkZXIgTmVkZXJsYW5kZW4g
-Um9vdCBDQSAtIEczMB4XDTEzMTExNDExMjg0MloXDTI4MTExMzIzMDAwMFowWjELMAkGA1UEBhMC
-TkwxHjAcBgNVBAoMFVN0YWF0IGRlciBOZWRlcmxhbmRlbjErMCkGA1UEAwwiU3RhYXQgZGVyIE5l
-ZGVybGFuZGVuIFJvb3QgQ0EgLSBHMzCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAL4y
-olQPcPssXFnrbMSkUeiFKrPMSjTysF/zDsccPVMeiAho2G89rcKezIJnByeHaHE6n3WWIkYFsO2t
-x1ueKt6c/DrGlaf1F2cY5y9JCAxcz+bMNO14+1Cx3Gsy8KL+tjzk7FqXxz8ecAgwoNzFs21v0IJy
-EavSgWhZghe3eJJg+szeP4TrjTgzkApyI/o1zCZxMdFyKJLZWyNtZrVtB0LrpjPOktvA9mxjeM3K
-Tj215VKb8b475lRgsGYeCasH/lSJEULR9yS6YHgamPfJEf0WwTUaVHXvQ9Plrk7O53vDxk5hUUur
-mkVLoR9BvUhTFXFkC4az5S6+zqQbwSmEorXLCCN2QyIkHxcE1G6cxvx/K2Ya7Irl1s9N9WMJtxU5
-1nus6+N86U78dULI7ViVDAZCopz35HCz33JvWjdAidiFpNfxC95DGdRKWCyMijmev4SH8RY7Ngzp
-07TKbBlBUgmhHbBqv4LvcFEhMtwFdozL92TkA1CvjJFnq8Xy7ljY3r735zHPbMk7ccHViLVlvMDo
-FxcHErVc0qsgk7TmgoNwNsXNo42ti+yjwUOH5kPiNL6VizXtBznaqB16nzaeErAMZRKQFWDZJkBE
-41ZgpRDUajz9QdwOWke275dhdU/Z/seyHdTtXUmzqWrLZoQT1Vyg3N9udwbRcXXIV2+vD3dbAgMB
-AAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRUrfrHkleu
-yjWcLhL75LpdINyUVzANBgkqhkiG9w0BAQsFAAOCAgEAMJmdBTLIXg47mAE6iqTnB/d6+Oea31BD
-U5cqPco8R5gu4RV78ZLzYdqQJRZlwJ9UXQ4DO1t3ApyEtg2YXzTdO2PCwyiBwpwpLiniyMMB8jPq
-KqrMCQj3ZWfGzd/TtiunvczRDnBfuCPRy5FOCvTIeuXZYzbB1N/8Ipf3YF3qKS9Ysr1YvY2WTxB1
-v0h7PVGHoTx0IsL8B3+A3MSs/mrBcDCw6Y5p4ixpgZQJut3+TcCDjJRYwEYgr5wfAvg1VUkvRtTA
-8KCWAg8zxXHzniN9lLf9OtMJgwYh/WA9rjLA0u6NpvDntIJ8CsxwyXmA+P5M9zWEGYox+wrZ13+b
-8KKaa8MFSu1BYBQw0aoRQm7TIwIEC8Zl3d1Sd9qBa7Ko+gE4uZbqKmxnl4mUnrzhVNXkanjvSr0r
-mj1AfsbAddJu+2gw7OyLnflJNZoaLNmzlTnVHpL3prllL+U9bTpITAjc5CgSKL59NVzq4BZ+Extq
-1z7XnvwtdbLBFNUjA9tbbws+eC8N3jONFrdI54OagQ97wUNNVQQXOEpR1VmiiXTTn74eS9fGbbeI
-JG9gkaSChVtWQbzQRKtqE77RLFi3EjNYsjdj3BP1lB0/QFH1T/U67cjF68IeHRaVesd+QnGTbksV
-tzDfqu1XhUisHWrdOWnk4Xl4vs4Fv6EM94B7IWcnMFk=
------END CERTIFICATE-----
-
-Staat der Nederlanden EV Root CA
-================================
------BEGIN CERTIFICATE-----
-MIIFcDCCA1igAwIBAgIEAJiWjTANBgkqhkiG9w0BAQsFADBYMQswCQYDVQQGEwJOTDEeMBwGA1UE
-CgwVU3RhYXQgZGVyIE5lZGVybGFuZGVuMSkwJwYDVQQDDCBTdGFhdCBkZXIgTmVkZXJsYW5kZW4g
-RVYgUm9vdCBDQTAeFw0xMDEyMDgxMTE5MjlaFw0yMjEyMDgxMTEwMjhaMFgxCzAJBgNVBAYTAk5M
-MR4wHAYDVQQKDBVTdGFhdCBkZXIgTmVkZXJsYW5kZW4xKTAnBgNVBAMMIFN0YWF0IGRlciBOZWRl
-cmxhbmRlbiBFViBSb290IENBMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA48d+ifkk
-SzrSM4M1LGns3Amk41GoJSt5uAg94JG6hIXGhaTK5skuU6TJJB79VWZxXSzFYGgEt9nCUiY4iKTW
-O0Cmws0/zZiTs1QUWJZV1VD+hq2kY39ch/aO5ieSZxeSAgMs3NZmdO3dZ//BYY1jTw+bbRcwJu+r
-0h8QoPnFfxZpgQNH7R5ojXKhTbImxrpsX23Wr9GxE46prfNeaXUmGD5BKyF/7otdBwadQ8QpCiv8
-Kj6GyzyDOvnJDdrFmeK8eEEzduG/L13lpJhQDBXd4Pqcfzho0LKmeqfRMb1+ilgnQ7O6M5HTp5gV
-XJrm0w912fxBmJc+qiXbj5IusHsMX/FjqTf5m3VpTCgmJdrV8hJwRVXj33NeN/UhbJCONVrJ0yPr
-08C+eKxCKFhmpUZtcALXEPlLVPxdhkqHz3/KRawRWrUgUY0viEeXOcDPusBCAUCZSCELa6fS/ZbV
-0b5GnUngC6agIk440ME8MLxwjyx1zNDFjFE7PZQIZCZhfbnDZY8UnCHQqv0XcgOPvZuM5l5Tnrmd
-74K74bzickFbIZTTRTeU0d8JOV3nI6qaHcptqAqGhYqCvkIH1vI4gnPah1vlPNOePqc7nvQDs/nx
-fRN0Av+7oeX6AHkcpmZBiFxgV6YuCcS6/ZrPpx9Aw7vMWgpVSzs4dlG4Y4uElBbmVvMCAwEAAaNC
-MEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFP6rAJCYniT8qcwa
-ivsnuL8wbqg7MA0GCSqGSIb3DQEBCwUAA4ICAQDPdyxuVr5Os7aEAJSrR8kN0nbHhp8dB9O2tLsI
-eK9p0gtJ3jPFrK3CiAJ9Brc1AsFgyb/E6JTe1NOpEyVa/m6irn0F3H3zbPB+po3u2dfOWBfoqSmu
-c0iH55vKbimhZF8ZE/euBhD/UcabTVUlT5OZEAFTdfETzsemQUHSv4ilf0X8rLiltTMMgsT7B/Zq
-5SWEXwbKwYY5EdtYzXc7LMJMD16a4/CrPmEbUCTCwPTxGfARKbalGAKb12NMcIxHowNDXLldRqAN
-b/9Zjr7dn3LDWyvfjFvO5QxGbJKyCqNMVEIYFRIYvdr8unRu/8G2oGTYqV9Vrp9canaW2HNnh/tN
-f1zuacpzEPuKqf2evTY4SUmH9A4U8OmHuD+nT3pajnnUk+S7aFKErGzp85hwVXIy+TSrK0m1zSBi
-5Dp6Z2Orltxtrpfs/J92VoguZs9btsmksNcFuuEnL5O7Jiqik7Ab846+HUCjuTaPPoIaGl6I6lD4
-WeKDRikL40Rc4ZW2aZCaFG+XroHPaO+Zmr615+F/+PoTRxZMzG0IQOeLeG9QgkRQP2YGiqtDhFZK
-DyAthg710tvSeopLzaXoTvFeJiUBWSOgftL2fiFX1ye8FVdMpEbB4IMeDExNH08GGeL5qPQ6gqGy
-eUN51q1veieQA6TqJIc/2b3Z6fJfUEkc7uzXLg==
------END CERTIFICATE-----
-
-IdenTrust Commercial Root CA 1
-==============================
------BEGIN CERTIFICATE-----
-MIIFYDCCA0igAwIBAgIQCgFCgAAAAUUjyES1AAAAAjANBgkqhkiG9w0BAQsFADBKMQswCQYDVQQG
-EwJVUzESMBAGA1UEChMJSWRlblRydXN0MScwJQYDVQQDEx5JZGVuVHJ1c3QgQ29tbWVyY2lhbCBS
-b290IENBIDEwHhcNMTQwMTE2MTgxMjIzWhcNMzQwMTE2MTgxMjIzWjBKMQswCQYDVQQGEwJVUzES
-MBAGA1UEChMJSWRlblRydXN0MScwJQYDVQQDEx5JZGVuVHJ1c3QgQ29tbWVyY2lhbCBSb290IENB
-IDEwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCnUBneP5k91DNG8W9RYYKyqU+PZ4ld
-hNlT3Qwo2dfw/66VQ3KZ+bVdfIrBQuExUHTRgQ18zZshq0PirK1ehm7zCYofWjK9ouuU+ehcCuz/
-mNKvcbO0U59Oh++SvL3sTzIwiEsXXlfEU8L2ApeN2WIrvyQfYo3fw7gpS0l4PJNgiCL8mdo2yMKi
-1CxUAGc1bnO/AljwpN3lsKImesrgNqUZFvX9t++uP0D1bVoE/c40yiTcdCMbXTMTEl3EASX2MN0C
-XZ/g1Ue9tOsbobtJSdifWwLziuQkkORiT0/Br4sOdBeo0XKIanoBScy0RnnGF7HamB4HWfp1IYVl
-3ZBWzvurpWCdxJ35UrCLvYf5jysjCiN2O/cz4ckA82n5S6LgTrx+kzmEB/dEcH7+B1rlsazRGMzy
-NeVJSQjKVsk9+w8YfYs7wRPCTY/JTw436R+hDmrfYi7LNQZReSzIJTj0+kuniVyc0uMNOYZKdHzV
-WYfCP04MXFL0PfdSgvHqo6z9STQaKPNBiDoT7uje/5kdX7rL6B7yuVBgwDHTc+XvvqDtMwt0viAg
-xGds8AgDelWAf0ZOlqf0Hj7h9tgJ4TNkK2PXMl6f+cB7D3hvl7yTmvmcEpB4eoCHFddydJxVdHix
-uuFucAS6T6C6aMN7/zHwcz09lCqxC0EOoP5NiGVreTO01wIDAQABo0IwQDAOBgNVHQ8BAf8EBAMC
-AQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU7UQZwNPwBovupHu+QucmVMiONnYwDQYJKoZI
-hvcNAQELBQADggIBAA2ukDL2pkt8RHYZYR4nKM1eVO8lvOMIkPkp165oCOGUAFjvLi5+U1KMtlwH
-6oi6mYtQlNeCgN9hCQCTrQ0U5s7B8jeUeLBfnLOic7iPBZM4zY0+sLj7wM+x8uwtLRvM7Kqas6pg
-ghstO8OEPVeKlh6cdbjTMM1gCIOQ045U8U1mwF10A0Cj7oV+wh93nAbowacYXVKV7cndJZ5t+qnt
-ozo00Fl72u1Q8zW/7esUTTHHYPTa8Yec4kjixsU3+wYQ+nVZZjFHKdp2mhzpgq7vmrlR94gjmmmV
-YjzlVYA211QC//G5Xc7UI2/YRYRKW2XviQzdFKcgyxilJbQN+QHwotL0AMh0jqEqSI5l2xPE4iUX
-feu+h1sXIFRRk0pTAwvsXcoz7WL9RccvW9xYoIA55vrX/hMUpu09lEpCdNTDd1lzzY9GvlU47/ro
-kTLql1gEIt44w8y8bckzOmoKaT+gyOpyj4xjhiO9bTyWnpXgSUyqorkqG5w2gXjtw+hG4iZZRHUe
-2XWJUc0QhJ1hYMtd+ZciTY6Y5uN/9lu7rs3KSoFrXgvzUeF0K+l+J6fZmUlO+KWA2yUPHGNiiskz
-Z2s8EIPGrd6ozRaOjfAHN3Gf8qv8QfXBi+wAN10J5U6A7/qxXDgGpRtK4dw4LTzcqx+QGtVKnO7R
-cGzM7vRX+Bi6hG6H
------END CERTIFICATE-----
-
-IdenTrust Public Sector Root CA 1
-=================================
------BEGIN CERTIFICATE-----
-MIIFZjCCA06gAwIBAgIQCgFCgAAAAUUjz0Z8AAAAAjANBgkqhkiG9w0BAQsFADBNMQswCQYDVQQG
-EwJVUzESMBAGA1UEChMJSWRlblRydXN0MSowKAYDVQQDEyFJZGVuVHJ1c3QgUHVibGljIFNlY3Rv
-ciBSb290IENBIDEwHhcNMTQwMTE2MTc1MzMyWhcNMzQwMTE2MTc1MzMyWjBNMQswCQYDVQQGEwJV
-UzESMBAGA1UEChMJSWRlblRydXN0MSowKAYDVQQDEyFJZGVuVHJ1c3QgUHVibGljIFNlY3RvciBS
-b290IENBIDEwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC2IpT8pEiv6EdrCvsnduTy
-P4o7ekosMSqMjbCpwzFrqHd2hCa2rIFCDQjrVVi7evi8ZX3yoG2LqEfpYnYeEe4IFNGyRBb06tD6
-Hi9e28tzQa68ALBKK0CyrOE7S8ItneShm+waOh7wCLPQ5CQ1B5+ctMlSbdsHyo+1W/CD80/HLaXI
-rcuVIKQxKFdYWuSNG5qrng0M8gozOSI5Cpcu81N3uURF/YTLNiCBWS2ab21ISGHKTN9T0a9SvESf
-qy9rg3LvdYDaBjMbXcjaY8ZNzaxmMc3R3j6HEDbhuaR672BQssvKplbgN6+rNBM5Jeg5ZuSYeqoS
-mJxZZoY+rfGwyj4GD3vwEUs3oERte8uojHH01bWRNszwFcYr3lEXsZdMUD2xlVl8BX0tIdUAvwFn
-ol57plzy9yLxkA2T26pEUWbMfXYD62qoKjgZl3YNa4ph+bz27nb9cCvdKTz4Ch5bQhyLVi9VGxyh
-LrXHFub4qjySjmm2AcG1hp2JDws4lFTo6tyePSW8Uybt1as5qsVATFSrsrTZ2fjXctscvG29ZV/v
-iDUqZi/u9rNl8DONfJhBaUYPQxxp+pu10GFqzcpL2UyQRqsVWaFHVCkugyhfHMKiq3IXAAaOReyL
-4jM9f9oZRORicsPfIsbyVtTdX5Vy7W1f90gDW/3FKqD2cyOEEBsB5wIDAQABo0IwQDAOBgNVHQ8B
-Af8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU43HgntinQtnbcZFrlJPrw6PRFKMw
-DQYJKoZIhvcNAQELBQADggIBAEf63QqwEZE4rU1d9+UOl1QZgkiHVIyqZJnYWv6IAcVYpZmxI1Qj
-t2odIFflAWJBF9MJ23XLblSQdf4an4EKwt3X9wnQW3IV5B4Jaj0z8yGa5hV+rVHVDRDtfULAj+7A
-mgjVQdZcDiFpboBhDhXAuM/FSRJSzL46zNQuOAXeNf0fb7iAaJg9TaDKQGXSc3z1i9kKlT/YPyNt
-GtEqJBnZhbMX73huqVjRI9PHE+1yJX9dsXNw0H8GlwmEKYBhHfpe/3OsoOOJuBxxFcbeMX8S3OFt
-m6/n6J91eEyrRjuazr8FGF1NFTwWmhlQBJqymm9li1JfPFgEKCXAZmExfrngdbkaqIHWchezxQMx
-NRF4eKLg6TCMf4DfWN88uieW4oA0beOY02QnrEh+KHdcxiVhJfiFDGX6xDIvpZgF5PgLZxYWxoK4
-Mhn5+bl53B/N66+rDt0b20XkeucC4pVd/GnwU2lhlXV5C15V5jgclKlZM57IcXR5f1GJtshquDDI
-ajjDbp7hNxbqBWJMWxJH7ae0s1hWx0nzfxJoCTFx8G34Tkf71oXuxVhAGaQdp/lLQzfcaFpPz+vC
-ZHTetBXZ9FRUGi8c15dxVJCO2SCdUyt/q4/i6jC8UDfv8Ue1fXwsBOxonbRJRBD0ckscZOf85muQ
-3Wl9af0AVqW3rLatt8o+Ae+c
------END CERTIFICATE-----
-
-Entrust Root Certification Authority - G2
-=========================================
------BEGIN CERTIFICATE-----
-MIIEPjCCAyagAwIBAgIESlOMKDANBgkqhkiG9w0BAQsFADCBvjELMAkGA1UEBhMCVVMxFjAUBgNV
-BAoTDUVudHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5uZXQvbGVnYWwtdGVy
-bXMxOTA3BgNVBAsTMChjKSAyMDA5IEVudHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXplZCB1c2Ug
-b25seTEyMDAGA1UEAxMpRW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzIw
-HhcNMDkwNzA3MTcyNTU0WhcNMzAxMjA3MTc1NTU0WjCBvjELMAkGA1UEBhMCVVMxFjAUBgNVBAoT
-DUVudHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5uZXQvbGVnYWwtdGVybXMx
-OTA3BgNVBAsTMChjKSAyMDA5IEVudHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXplZCB1c2Ugb25s
-eTEyMDAGA1UEAxMpRW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzIwggEi
-MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC6hLZy254Ma+KZ6TABp3bqMriVQRrJ2mFOWHLP
-/vaCeb9zYQYKpSfYs1/TRU4cctZOMvJyig/3gxnQaoCAAEUesMfnmr8SVycco2gvCoe9amsOXmXz
-HHfV1IWNcCG0szLni6LVhjkCsbjSR87kyUnEO6fe+1R9V77w6G7CebI6C1XiUJgWMhNcL3hWwcKU
-s/Ja5CeanyTXxuzQmyWC48zCxEXFjJd6BmsqEZ+pCm5IO2/b1BEZQvePB7/1U1+cPvQXLOZprE4y
-TGJ36rfo5bs0vBmLrpxR57d+tVOxMyLlbc9wPBr64ptntoP0jaWvYkxN4FisZDQSA/i2jZRjJKRx
-AgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRqciZ6
-0B7vfec7aVHUbI2fkBJmqzANBgkqhkiG9w0BAQsFAAOCAQEAeZ8dlsa2eT8ijYfThwMEYGprmi5Z
-iXMRrEPR9RP/jTkrwPK9T3CMqS/qF8QLVJ7UG5aYMzyorWKiAHarWWluBh1+xLlEjZivEtRh2woZ
-Rkfz6/djwUAFQKXSt/S1mja/qYh2iARVBCuch38aNzx+LaUa2NSJXsq9rD1s2G2v1fN2D807iDgi
-nWyTmsQ9v4IbZT+mD12q/OWyFcq1rca8PdCE6OoGcrBNOTJ4vz4RnAuknZoh8/CbCzB428Hch0P+
-vGOaysXCHMnHjf87ElgI5rY97HosTvuDls4MPGmHVHOkc8KT/1EQrBVUAdj8BbGJoX90g5pJ19xO
-e4pIb4tF9g==
------END CERTIFICATE-----
-
-Entrust Root Certification Authority - EC1
-==========================================
------BEGIN CERTIFICATE-----
-MIIC+TCCAoCgAwIBAgINAKaLeSkAAAAAUNCR+TAKBggqhkjOPQQDAzCBvzELMAkGA1UEBhMCVVMx
-FjAUBgNVBAoTDUVudHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5uZXQvbGVn
-YWwtdGVybXMxOTA3BgNVBAsTMChjKSAyMDEyIEVudHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXpl
-ZCB1c2Ugb25seTEzMDEGA1UEAxMqRW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5
-IC0gRUMxMB4XDTEyMTIxODE1MjUzNloXDTM3MTIxODE1NTUzNlowgb8xCzAJBgNVBAYTAlVTMRYw
-FAYDVQQKEw1FbnRydXN0LCBJbmMuMSgwJgYDVQQLEx9TZWUgd3d3LmVudHJ1c3QubmV0L2xlZ2Fs
-LXRlcm1zMTkwNwYDVQQLEzAoYykgMjAxMiBFbnRydXN0LCBJbmMuIC0gZm9yIGF1dGhvcml6ZWQg
-dXNlIG9ubHkxMzAxBgNVBAMTKkVudHJ1c3QgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAt
-IEVDMTB2MBAGByqGSM49AgEGBSuBBAAiA2IABIQTydC6bUF74mzQ61VfZgIaJPRbiWlH47jCffHy
-AsWfoPZb1YsGGYZPUxBtByQnoaD41UcZYUx9ypMn6nQM72+WCf5j7HBdNq1nd67JnXxVRDqiY1Ef
-9eNi1KlHBz7MIKNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYE
-FLdj5xrdjekIplWDpOBqUEFlEUJJMAoGCCqGSM49BAMDA2cAMGQCMGF52OVCR98crlOZF7ZvHH3h
-vxGU0QOIdeSNiaSKd0bebWHvAvX7td/M/k7//qnmpwIwW5nXhTcGtXsI/esni0qU+eH6p44mCOh8
-kmhtc9hvJqwhAriZtyZBWyVgrtBIGu4G
------END CERTIFICATE-----
-
-CFCA EV ROOT
-============
------BEGIN CERTIFICATE-----
-MIIFjTCCA3WgAwIBAgIEGErM1jANBgkqhkiG9w0BAQsFADBWMQswCQYDVQQGEwJDTjEwMC4GA1UE
-CgwnQ2hpbmEgRmluYW5jaWFsIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MRUwEwYDVQQDDAxDRkNB
-IEVWIFJPT1QwHhcNMTIwODA4MDMwNzAxWhcNMjkxMjMxMDMwNzAxWjBWMQswCQYDVQQGEwJDTjEw
-MC4GA1UECgwnQ2hpbmEgRmluYW5jaWFsIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MRUwEwYDVQQD
-DAxDRkNBIEVWIFJPT1QwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDXXWvNED8fBVnV
-BU03sQ7smCuOFR36k0sXgiFxEFLXUWRwFsJVaU2OFW2fvwwbwuCjZ9YMrM8irq93VCpLTIpTUnrD
-7i7es3ElweldPe6hL6P3KjzJIx1qqx2hp/Hz7KDVRM8Vz3IvHWOX6Jn5/ZOkVIBMUtRSqy5J35DN
-uF++P96hyk0g1CXohClTt7GIH//62pCfCqktQT+x8Rgp7hZZLDRJGqgG16iI0gNyejLi6mhNbiyW
-ZXvKWfry4t3uMCz7zEasxGPrb382KzRzEpR/38wmnvFyXVBlWY9ps4deMm/DGIq1lY+wejfeWkU7
-xzbh72fROdOXW3NiGUgthxwG+3SYIElz8AXSG7Ggo7cbcNOIabla1jj0Ytwli3i/+Oh+uFzJlU9f
-py25IGvPa931DfSCt/SyZi4QKPaXWnuWFo8BGS1sbn85WAZkgwGDg8NNkt0yxoekN+kWzqotaK8K
-gWU6cMGbrU1tVMoqLUuFG7OA5nBFDWteNfB/O7ic5ARwiRIlk9oKmSJgamNgTnYGmE69g60dWIol
-hdLHZR4tjsbftsbhf4oEIRUpdPA+nJCdDC7xij5aqgwJHsfVPKPtl8MeNPo4+QgO48BdK4PRVmrJ
-tqhUUy54Mmc9gn900PvhtgVguXDbjgv5E1hvcWAQUhC5wUEJ73IfZzF4/5YFjQIDAQABo2MwYTAf
-BgNVHSMEGDAWgBTj/i39KNALtbq2osS/BqoFjJP7LzAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB
-/wQEAwIBBjAdBgNVHQ4EFgQU4/4t/SjQC7W6tqLEvwaqBYyT+y8wDQYJKoZIhvcNAQELBQADggIB
-ACXGumvrh8vegjmWPfBEp2uEcwPenStPuiB/vHiyz5ewG5zz13ku9Ui20vsXiObTej/tUxPQ4i9q
-ecsAIyjmHjdXNYmEwnZPNDatZ8POQQaIxffu2Bq41gt/UP+TqhdLjOztUmCypAbqTuv0axn96/Ua
-4CUqmtzHQTb3yHQFhDmVOdYLO6Qn+gjYXB74BGBSESgoA//vU2YApUo0FmZ8/Qmkrp5nGm9BC2sG
-E5uPhnEFtC+NiWYzKXZUmhH4J/qyP5Hgzg0b8zAarb8iXRvTvyUFTeGSGn+ZnzxEk8rUQElsgIfX
-BDrDMlI1Dlb4pd19xIsNER9Tyx6yF7Zod1rg1MvIB671Oi6ON7fQAUtDKXeMOZePglr4UeWJoBjn
-aH9dCi77o0cOPaYjesYBx4/IXr9tgFa+iiS6M+qf4TIRnvHST4D2G0CvOJ4RUHlzEhLN5mydLIhy
-PDCBBpEi6lmt2hkuIsKNuYyH4Ga8cyNfIWRjgEj1oDwYPZTISEEdQLpe/v5WOaHIz16eGWRGENoX
-kbcFgKyLmZJ956LYBws2J+dIeWCKw9cTXPhyQN9Ky8+ZAAoACxGV2lZFA4gKn2fQ1XmxqI1AbQ3C
-ekD6819kR5LLU7m7Wc5P/dAVUwHY3+vZ5nbv0CO7O6l5s9UCKc2Jo5YPSjXnTkLAdc0Hz+Ys63su
------END CERTIFICATE-----
-
-Certinomis - Root CA
-====================
------BEGIN CERTIFICATE-----
-MIIFkjCCA3qgAwIBAgIBATANBgkqhkiG9w0BAQsFADBaMQswCQYDVQQGEwJGUjETMBEGA1UEChMK
-Q2VydGlub21pczEXMBUGA1UECxMOMDAwMiA0MzM5OTg5MDMxHTAbBgNVBAMTFENlcnRpbm9taXMg
-LSBSb290IENBMB4XDTEzMTAyMTA5MTcxOFoXDTMzMTAyMTA5MTcxOFowWjELMAkGA1UEBhMCRlIx
-EzARBgNVBAoTCkNlcnRpbm9taXMxFzAVBgNVBAsTDjAwMDIgNDMzOTk4OTAzMR0wGwYDVQQDExRD
-ZXJ0aW5vbWlzIC0gUm9vdCBDQTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANTMCQos
-P5L2fxSeC5yaah1AMGT9qt8OHgZbn1CF6s2Nq0Nn3rD6foCWnoR4kkjW4znuzuRZWJflLieY6pOo
-d5tK8O90gC3rMB+12ceAnGInkYjwSond3IjmFPnVAy//ldu9n+ws+hQVWZUKxkd8aRi5pwP5ynap
-z8dvtF4F/u7BUrJ1Mofs7SlmO/NKFoL21prbcpjp3vDFTKWrteoB4owuZH9kb/2jJZOLyKIOSY00
-8B/sWEUuNKqEUL3nskoTuLAPrjhdsKkb5nPJWqHZZkCqqU2mNAKthH6yI8H7KsZn9DS2sJVqM09x
-RLWtwHkziOC/7aOgFLScCbAK42C++PhmiM1b8XcF4LVzbsF9Ri6OSyemzTUK/eVNfaoqoynHWmgE
-6OXWk6RiwsXm9E/G+Z8ajYJJGYrKWUM66A0ywfRMEwNvbqY/kXPLynNvEiCL7sCCeN5LLsJJwx3t
-FvYk9CcbXFcx3FXuqB5vbKziRcxXV4p1VxngtViZSTYxPDMBbRZKzbgqg4SGm/lg0h9tkQPTYKbV
-PZrdd5A9NaSfD171UkRpucC63M9933zZxKyGIjK8e2uR73r4F2iw4lNVYC2vPsKD2NkJK/DAZNuH
-i5HMkesE/Xa0lZrmFAYb1TQdvtj/dBxThZngWVJKYe2InmtJiUZ+IFrZ50rlau7SZRFDAgMBAAGj
-YzBhMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTvkUz1pcMw6C8I
-6tNxIqSSaHh02TAfBgNVHSMEGDAWgBTvkUz1pcMw6C8I6tNxIqSSaHh02TANBgkqhkiG9w0BAQsF
-AAOCAgEAfj1U2iJdGlg+O1QnurrMyOMaauo++RLrVl89UM7g6kgmJs95Vn6RHJk/0KGRHCwPT5iV
-WVO90CLYiF2cN/z7ZMF4jIuaYAnq1fohX9B0ZedQxb8uuQsLrbWwF6YSjNRieOpWauwK0kDDPAUw
-Pk2Ut59KA9N9J0u2/kTO+hkzGm2kQtHdzMjI1xZSg081lLMSVX3l4kLr5JyTCcBMWwerx20RoFAX
-lCOotQqSD7J6wWAsOMwaplv/8gzjqh8c3LigkyfeY+N/IZ865Z764BNqdeuWXGKRlI5nU7aJ+BIJ
-y29SWwNyhlCVCNSNh4YVH5Uk2KRvms6knZtt0rJ2BobGVgjF6wnaNsIbW0G+YSrjcOa4pvi2WsS9
-Iff/ql+hbHY5ZtbqTFXhADObE5hjyW/QASAJN1LnDE8+zbz1X5YnpyACleAu6AdBBR8Vbtaw5Bng
-DwKTACdyxYvRVB9dSsNAl35VpnzBMwQUAR1JIGkLGZOdblgi90AMRgwjY/M50n92Uaf0yKHxDHYi
-I0ZSKS3io0EHVmmY0gUJvGnHWmHNj4FgFU2A3ZDifcRQ8ow7bkrHxuaAKzyBvBGAFhAn1/DNP3nM
-cyrDflOR1m749fPH0FFNjkulW+YZFzvWgQncItzujrnEj1PhZ7szuIgVRs/taTX/dQ1G885x4cVr
-hkIGuUE=
------END CERTIFICATE-----
-
-OISTE WISeKey Global Root GB CA
-===============================
------BEGIN CERTIFICATE-----
-MIIDtTCCAp2gAwIBAgIQdrEgUnTwhYdGs/gjGvbCwDANBgkqhkiG9w0BAQsFADBtMQswCQYDVQQG
-EwJDSDEQMA4GA1UEChMHV0lTZUtleTEiMCAGA1UECxMZT0lTVEUgRm91bmRhdGlvbiBFbmRvcnNl
-ZDEoMCYGA1UEAxMfT0lTVEUgV0lTZUtleSBHbG9iYWwgUm9vdCBHQiBDQTAeFw0xNDEyMDExNTAw
-MzJaFw0zOTEyMDExNTEwMzFaMG0xCzAJBgNVBAYTAkNIMRAwDgYDVQQKEwdXSVNlS2V5MSIwIAYD
-VQQLExlPSVNURSBGb3VuZGF0aW9uIEVuZG9yc2VkMSgwJgYDVQQDEx9PSVNURSBXSVNlS2V5IEds
-b2JhbCBSb290IEdCIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2Be3HEokKtaX
-scriHvt9OO+Y9bI5mE4nuBFde9IllIiCFSZqGzG7qFshISvYD06fWvGxWuR51jIjK+FTzJlFXHtP
-rby/h0oLS5daqPZI7H17Dc0hBt+eFf1Biki3IPShehtX1F1Q/7pn2COZH8g/497/b1t3sWtuuMlk
-9+HKQUYOKXHQuSP8yYFfTvdv37+ErXNku7dCjmn21HYdfp2nuFeKUWdy19SouJVUQHMD9ur06/4o
-Qnc/nSMbsrY9gBQHTC5P99UKFg29ZkM3fiNDecNAhvVMKdqOmq0NpQSHiB6F4+lT1ZvIiwNjeOvg
-GUpuuy9rM2RYk61pv48b74JIxwIDAQABo1EwTzALBgNVHQ8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB
-/zAdBgNVHQ4EFgQUNQ/INmNe4qPs+TtmFc5RUuORmj0wEAYJKwYBBAGCNxUBBAMCAQAwDQYJKoZI
-hvcNAQELBQADggEBAEBM+4eymYGQfp3FsLAmzYh7KzKNbrghcViXfa43FK8+5/ea4n32cZiZBKpD
-dHij40lhPnOMTZTg+XHEthYOU3gf1qKHLwI5gSk8rxWYITD+KJAAjNHhy/peyP34EEY7onhCkRd0
-VQreUGdNZtGn//3ZwLWoo4rOZvUPQ82nK1d7Y0Zqqi5S2PTt4W2tKZB4SLrhI6qjiey1q5bAtEui
-HZeeevJuQHHfaPFlTc58Bd9TZaml8LGXBHAVRgOY1NK/VLSgWH1Sb9pWJmLU2NuJMW8c8CLC02Ic
-Nc1MaRVUGpCY3useX8p3x8uOPUNpnJpY0CQ73xtAln41rYHHTnG6iBM=
------END CERTIFICATE-----
-
-SZAFIR ROOT CA2
-===============
------BEGIN CERTIFICATE-----
-MIIDcjCCAlqgAwIBAgIUPopdB+xV0jLVt+O2XwHrLdzk1uQwDQYJKoZIhvcNAQELBQAwUTELMAkG
-A1UEBhMCUEwxKDAmBgNVBAoMH0tyYWpvd2EgSXpiYSBSb3psaWN6ZW5pb3dhIFMuQS4xGDAWBgNV
-BAMMD1NaQUZJUiBST09UIENBMjAeFw0xNTEwMTkwNzQzMzBaFw0zNTEwMTkwNzQzMzBaMFExCzAJ
-BgNVBAYTAlBMMSgwJgYDVQQKDB9LcmFqb3dhIEl6YmEgUm96bGljemVuaW93YSBTLkEuMRgwFgYD
-VQQDDA9TWkFGSVIgUk9PVCBDQTIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC3vD5Q
-qEvNQLXOYeeWyrSh2gwisPq1e3YAd4wLz32ohswmUeQgPYUM1ljj5/QqGJ3a0a4m7utT3PSQ1hNK
-DJA8w/Ta0o4NkjrcsbH/ON7Dui1fgLkCvUqdGw+0w8LBZwPd3BucPbOw3gAeqDRHu5rr/gsUvTaE
-2g0gv/pby6kWIK05YO4vdbbnl5z5Pv1+TW9NL++IDWr63fE9biCloBK0TXC5ztdyO4mTp4CEHCdJ
-ckm1/zuVnsHMyAHs6A6KCpbns6aH5db5BSsNl0BwPLqsdVqc1U2dAgrSS5tmS0YHF2Wtn2yIANwi
-ieDhZNRnvDF5YTy7ykHNXGoAyDw4jlivAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0P
-AQH/BAQDAgEGMB0GA1UdDgQWBBQuFqlKGLXLzPVvUPMjX/hd56zwyDANBgkqhkiG9w0BAQsFAAOC
-AQEAtXP4A9xZWx126aMqe5Aosk3AM0+qmrHUuOQn/6mWmc5G4G18TKI4pAZw8PRBEew/R40/cof5
-O/2kbytTAOD/OblqBw7rHRz2onKQy4I9EYKL0rufKq8h5mOGnXkZ7/e7DDWQw4rtTw/1zBLZpD67
-oPwglV9PJi8RI4NOdQcPv5vRtB3pEAT+ymCPoky4rc/hkA/NrgrHXXu3UNLUYfrVFdvXn4dRVOul
-4+vJhaAlIDf7js4MNIThPIGyd05DpYhfhmehPea0XGG2Ptv+tyjFogeutcrKjSoS75ftwjCkySp6
-+/NNIxuZMzSgLvWpCz/UXeHPhJ/iGcJfitYgHuNztw==
------END CERTIFICATE-----
-
-Certum Trusted Network CA 2
-===========================
------BEGIN CERTIFICATE-----
-MIIF0jCCA7qgAwIBAgIQIdbQSk8lD8kyN/yqXhKN6TANBgkqhkiG9w0BAQ0FADCBgDELMAkGA1UE
-BhMCUEwxIjAgBgNVBAoTGVVuaXpldG8gVGVjaG5vbG9naWVzIFMuQS4xJzAlBgNVBAsTHkNlcnR1
-bSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTEkMCIGA1UEAxMbQ2VydHVtIFRydXN0ZWQgTmV0d29y
-ayBDQSAyMCIYDzIwMTExMDA2MDgzOTU2WhgPMjA0NjEwMDYwODM5NTZaMIGAMQswCQYDVQQGEwJQ
-TDEiMCAGA1UEChMZVW5pemV0byBUZWNobm9sb2dpZXMgUy5BLjEnMCUGA1UECxMeQ2VydHVtIENl
-cnRpZmljYXRpb24gQXV0aG9yaXR5MSQwIgYDVQQDExtDZXJ0dW0gVHJ1c3RlZCBOZXR3b3JrIENB
-IDIwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC9+Xj45tWADGSdhhuWZGc/IjoedQF9
-7/tcZ4zJzFxrqZHmuULlIEub2pt7uZld2ZuAS9eEQCsn0+i6MLs+CRqnSZXvK0AkwpfHp+6bJe+o
-CgCXhVqqndwpyeI1B+twTUrWwbNWuKFBOJvR+zF/j+Bf4bE/D44WSWDXBo0Y+aomEKsq09DRZ40b
-Rr5HMNUuctHFY9rnY3lEfktjJImGLjQ/KUxSiyqnwOKRKIm5wFv5HdnnJ63/mgKXwcZQkpsCLL2p
-uTRZCr+ESv/f/rOf69me4Jgj7KZrdxYq28ytOxykh9xGc14ZYmhFV+SQgkK7QtbwYeDBoz1mo130
-GO6IyY0XRSmZMnUCMe4pJshrAua1YkV/NxVaI2iJ1D7eTiew8EAMvE0Xy02isx7QBlrd9pPPV3WZ
-9fqGGmd4s7+W/jTcvedSVuWz5XV710GRBdxdaeOVDUO5/IOWOZV7bIBaTxNyxtd9KXpEulKkKtVB
-Rgkg/iKgtlswjbyJDNXXcPiHUv3a76xRLgezTv7QCdpw75j6VuZt27VXS9zlLCUVyJ4ueE742pye
-hizKV/Ma5ciSixqClnrDvFASadgOWkaLOusm+iPJtrCBvkIApPjW/jAux9JG9uWOdf3yzLnQh1vM
-BhBgu4M1t15n3kfsmUjxpKEV/q2MYo45VU85FrmxY53/twIDAQABo0IwQDAPBgNVHRMBAf8EBTAD
-AQH/MB0GA1UdDgQWBBS2oVQ5AsOgP46KvPrU+Bym0ToO/TAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZI
-hvcNAQENBQADggIBAHGlDs7k6b8/ONWJWsQCYftMxRQXLYtPU2sQF/xlhMcQSZDe28cmk4gmb3DW
-Al45oPePq5a1pRNcgRRtDoGCERuKTsZPpd1iHkTfCVn0W3cLN+mLIMb4Ck4uWBzrM9DPhmDJ2vuA
-L55MYIR4PSFk1vtBHxgP58l1cb29XN40hz5BsA72udY/CROWFC/emh1auVbONTqwX3BNXuMp8SMo
-clm2q8KMZiYcdywmdjWLKKdpoPk79SPdhRB0yZADVpHnr7pH1BKXESLjokmUbOe3lEu6LaTaM4tM
-pkT/WjzGHWTYtTHkpjx6qFcL2+1hGsvxznN3Y6SHb0xRONbkX8eftoEq5IVIeVheO/jbAoJnwTnb
-w3RLPTYe+SmTiGhbqEQZIfCn6IENLOiTNrQ3ssqwGyZ6miUfmpqAnksqP/ujmv5zMnHCnsZy4Ypo
-J/HkD7TETKVhk/iXEAcqMCWpuchxuO9ozC1+9eB+D4Kob7a6bINDd82Kkhehnlt4Fj1F4jNy3eFm
-ypnTycUm/Q1oBEauttmbjL4ZvrHG8hnjXALKLNhvSgfZyTXaQHXyxKcZb55CEJh15pWLYLztxRLX
-is7VmFxWlgPF7ncGNf/P5O4/E2Hu29othfDNrp2yGAlFw5Khchf8R7agCyzxxN5DaAhqXzvwdmP7
-zAYspsbiDrW5viSP
------END CERTIFICATE-----
-
-Hellenic Academic and Research Institutions RootCA 2015
-=======================================================
------BEGIN CERTIFICATE-----
-MIIGCzCCA/OgAwIBAgIBADANBgkqhkiG9w0BAQsFADCBpjELMAkGA1UEBhMCR1IxDzANBgNVBAcT
-BkF0aGVuczFEMEIGA1UEChM7SGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNoIEluc3RpdHV0
-aW9ucyBDZXJ0LiBBdXRob3JpdHkxQDA+BgNVBAMTN0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNl
-YXJjaCBJbnN0aXR1dGlvbnMgUm9vdENBIDIwMTUwHhcNMTUwNzA3MTAxMTIxWhcNNDAwNjMwMTAx
-MTIxWjCBpjELMAkGA1UEBhMCR1IxDzANBgNVBAcTBkF0aGVuczFEMEIGA1UEChM7SGVsbGVuaWMg
-QWNhZGVtaWMgYW5kIFJlc2VhcmNoIEluc3RpdHV0aW9ucyBDZXJ0LiBBdXRob3JpdHkxQDA+BgNV
-BAMTN0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNlYXJjaCBJbnN0aXR1dGlvbnMgUm9vdENBIDIw
-MTUwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDC+Kk/G4n8PDwEXT2QNrCROnk8Zlrv
-bTkBSRq0t89/TSNTt5AA4xMqKKYx8ZEA4yjsriFBzh/a/X0SWwGDD7mwX5nh8hKDgE0GPt+sr+eh
-iGsxr/CL0BgzuNtFajT0AoAkKAoCFZVedioNmToUW/bLy1O8E00BiDeUJRtCvCLYjqOWXjrZMts+
-6PAQZe104S+nfK8nNLspfZu2zwnI5dMK/IhlZXQK3HMcXM1AsRzUtoSMTFDPaI6oWa7CJ06CojXd
-FPQf/7J31Ycvqm59JCfnxssm5uX+Zwdj2EUN3TpZZTlYepKZcj2chF6IIbjV9Cz82XBST3i4vTwr
-i5WY9bPRaM8gFH5MXF/ni+X1NYEZN9cRCLdmvtNKzoNXADrDgfgXy5I2XdGj2HUb4Ysn6npIQf1F
-GQatJ5lOwXBH3bWfgVMS5bGMSF0xQxfjjMZ6Y5ZLKTBOhE5iGV48zpeQpX8B653g+IuJ3SWYPZK2
-fu/Z8VFRfS0myGlZYeCsargqNhEEelC9MoS+L9xy1dcdFkfkR2YgP/SWxa+OAXqlD3pk9Q0Yh9mu
-iNX6hME6wGkoLfINaFGq46V3xqSQDqE3izEjR8EJCOtu93ib14L8hCCZSRm2Ekax+0VVFqmjZayc
-Bw/qa9wfLgZy7IaIEuQt218FL+TwA9MmM+eAws1CoRc0CwIDAQABo0IwQDAPBgNVHRMBAf8EBTAD
-AQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUcRVnyMjJvXVdctA4GGqd83EkVAswDQYJKoZI
-hvcNAQELBQADggIBAHW7bVRLqhBYRjTyYtcWNl0IXtVsyIe9tC5G8jH4fOpCtZMWVdyhDBKg2mF+
-D1hYc2Ryx+hFjtyp8iY/xnmMsVMIM4GwVhO+5lFc2JsKT0ucVlMC6U/2DWDqTUJV6HwbISHTGzrM
-d/K4kPFox/la/vot9L/J9UUbzjgQKjeKeaO04wlshYaT/4mWJ3iBj2fjRnRUjtkNaeJK9E10A/+y
-d+2VZ5fkscWrv2oj6NSU4kQoYsRL4vDY4ilrGnB+JGGTe08DMiUNRSQrlrRGar9KC/eaj8GsGsVn
-82800vpzY4zvFrCopEYq+OsS7HK07/grfoxSwIuEVPkvPuNVqNxmsdnhX9izjFk0WaSrT2y7Hxjb
-davYy5LNlDhhDgcGH0tGEPEVvo2FXDtKK4F5D7Rpn0lQl033DlZdwJVqwjbDG2jJ9SrcR5q+ss7F
-Jej6A7na+RZukYT1HCjI/CbM1xyQVqdfbzoEvM14iQuODy+jqk+iGxI9FghAD/FGTNeqewjBCvVt
-J94Cj8rDtSvK6evIIVM4pcw72Hc3MKJP2W/R8kCtQXoXxdZKNYm3QdV8hn9VTYNKpXMgwDqvkPGa
-JI7ZjnHKe7iG2rKPmT4dEw0SEe7Uq/DpFXYC5ODfqiAeW2GFZECpkJcNrVPSWh2HagCXZWK0vm9q
-p/UsQu0yrbYhnr68
------END CERTIFICATE-----
-
-Hellenic Academic and Research Institutions ECC RootCA 2015
-===========================================================
------BEGIN CERTIFICATE-----
-MIICwzCCAkqgAwIBAgIBADAKBggqhkjOPQQDAjCBqjELMAkGA1UEBhMCR1IxDzANBgNVBAcTBkF0
-aGVuczFEMEIGA1UEChM7SGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNoIEluc3RpdHV0aW9u
-cyBDZXJ0LiBBdXRob3JpdHkxRDBCBgNVBAMTO0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNlYXJj
-aCBJbnN0aXR1dGlvbnMgRUNDIFJvb3RDQSAyMDE1MB4XDTE1MDcwNzEwMzcxMloXDTQwMDYzMDEw
-MzcxMlowgaoxCzAJBgNVBAYTAkdSMQ8wDQYDVQQHEwZBdGhlbnMxRDBCBgNVBAoTO0hlbGxlbmlj
-IEFjYWRlbWljIGFuZCBSZXNlYXJjaCBJbnN0aXR1dGlvbnMgQ2VydC4gQXV0aG9yaXR5MUQwQgYD
-VQQDEztIZWxsZW5pYyBBY2FkZW1pYyBhbmQgUmVzZWFyY2ggSW5zdGl0dXRpb25zIEVDQyBSb290
-Q0EgMjAxNTB2MBAGByqGSM49AgEGBSuBBAAiA2IABJKgQehLgoRc4vgxEZmGZE4JJS+dQS8KrjVP
-dJWyUWRrjWvmP3CV8AVER6ZyOFB2lQJajq4onvktTpnvLEhvTCUp6NFxW98dwXU3tNf6e3pCnGoK
-Vlp8aQuqgAkkbH7BRqNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0O
-BBYEFLQiC4KZJAEOnLvkDv2/+5cgk5kqMAoGCCqGSM49BAMCA2cAMGQCMGfOFmI4oqxiRaeplSTA
-GiecMjvAwNW6qef4BENThe5SId6d9SWDPp5YSy/XZxMOIQIwBeF1Ad5o7SofTUwJCA3sS61kFyjn
-dc5FZXIhF8siQQ6ME5g4mlRtm8rifOoCWCKR
------END CERTIFICATE-----
-
-ISRG Root X1
-============
------BEGIN CERTIFICATE-----
-MIIFazCCA1OgAwIBAgIRAIIQz7DSQONZRGPgu2OCiwAwDQYJKoZIhvcNAQELBQAwTzELMAkGA1UE
-BhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2VhcmNoIEdyb3VwMRUwEwYDVQQD
-EwxJU1JHIFJvb3QgWDEwHhcNMTUwNjA0MTEwNDM4WhcNMzUwNjA0MTEwNDM4WjBPMQswCQYDVQQG
-EwJVUzEpMCcGA1UEChMgSW50ZXJuZXQgU2VjdXJpdHkgUmVzZWFyY2ggR3JvdXAxFTATBgNVBAMT
-DElTUkcgUm9vdCBYMTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAK3oJHP0FDfzm54r
-Vygch77ct984kIxuPOZXoHj3dcKi/vVqbvYATyjb3miGbESTtrFj/RQSa78f0uoxmyF+0TM8ukj1
-3Xnfs7j/EvEhmkvBioZxaUpmZmyPfjxwv60pIgbz5MDmgK7iS4+3mX6UA5/TR5d8mUgjU+g4rk8K
-b4Mu0UlXjIB0ttov0DiNewNwIRt18jA8+o+u3dpjq+sWT8KOEUt+zwvo/7V3LvSye0rgTBIlDHCN
-Aymg4VMk7BPZ7hm/ELNKjD+Jo2FR3qyHB5T0Y3HsLuJvW5iB4YlcNHlsdu87kGJ55tukmi8mxdAQ
-4Q7e2RCOFvu396j3x+UCB5iPNgiV5+I3lg02dZ77DnKxHZu8A/lJBdiB3QW0KtZB6awBdpUKD9jf
-1b0SHzUvKBds0pjBqAlkd25HN7rOrFleaJ1/ctaJxQZBKT5ZPt0m9STJEadao0xAH0ahmbWnOlFu
-hjuefXKnEgV4We0+UXgVCwOPjdAvBbI+e0ocS3MFEvzG6uBQE3xDk3SzynTnjh8BCNAw1FtxNrQH
-usEwMFxIt4I7mKZ9YIqioymCzLq9gwQbooMDQaHWBfEbwrbwqHyGO0aoSCqI3Haadr8faqU9GY/r
-OPNk3sgrDQoo//fb4hVC1CLQJ13hef4Y53CIrU7m2Ys6xt0nUW7/vGT1M0NPAgMBAAGjQjBAMA4G
-A1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBR5tFnme7bl5AFzgAiIyBpY
-9umbbjANBgkqhkiG9w0BAQsFAAOCAgEAVR9YqbyyqFDQDLHYGmkgJykIrGF1XIpu+ILlaS/V9lZL
-ubhzEFnTIZd+50xx+7LSYK05qAvqFyFWhfFQDlnrzuBZ6brJFe+GnY+EgPbk6ZGQ3BebYhtF8GaV
-0nxvwuo77x/Py9auJ/GpsMiu/X1+mvoiBOv/2X/qkSsisRcOj/KKNFtY2PwByVS5uCbMiogziUwt
-hDyC3+6WVwW6LLv3xLfHTjuCvjHIInNzktHCgKQ5ORAzI4JMPJ+GslWYHb4phowim57iaztXOoJw
-TdwJx4nLCgdNbOhdjsnvzqvHu7UrTkXWStAmzOVyyghqpZXjFaH3pO3JLF+l+/+sKAIuvtd7u+Nx
-e5AW0wdeRlN8NwdCjNPElpzVmbUq4JUagEiuTDkHzsxHpFKVK7q4+63SM1N95R1NbdWhscdCb+ZA
-JzVcoyi3B43njTOQ5yOf+1CceWxG1bQVs5ZufpsMljq4Ui0/1lvh+wjChP4kqKOJ2qxq4RgqsahD
-YVvTH9w7jXbyLeiNdd8XM2w9U/t7y0Ff/9yi0GE44Za4rF2LN9d11TPAmRGunUHBcnWEvgJBQl9n
-JEiU0Zsnvgc/ubhPgXRR4Xq37Z0j4r7g1SgEEzwxA57demyPxgcYxn/eR44/KJ4EBs+lVDR3veyJ
-m+kXQ99b21/+jh5Xos1AnX5iItreGCc=
------END CERTIFICATE-----
-
-AC RAIZ FNMT-RCM
-================
------BEGIN CERTIFICATE-----
-MIIFgzCCA2ugAwIBAgIPXZONMGc2yAYdGsdUhGkHMA0GCSqGSIb3DQEBCwUAMDsxCzAJBgNVBAYT
-AkVTMREwDwYDVQQKDAhGTk1ULVJDTTEZMBcGA1UECwwQQUMgUkFJWiBGTk1ULVJDTTAeFw0wODEw
-MjkxNTU5NTZaFw0zMDAxMDEwMDAwMDBaMDsxCzAJBgNVBAYTAkVTMREwDwYDVQQKDAhGTk1ULVJD
-TTEZMBcGA1UECwwQQUMgUkFJWiBGTk1ULVJDTTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoC
-ggIBALpxgHpMhm5/yBNtwMZ9HACXjywMI7sQmkCpGreHiPibVmr75nuOi5KOpyVdWRHbNi63URcf
-qQgfBBckWKo3Shjf5TnUV/3XwSyRAZHiItQDwFj8d0fsjz50Q7qsNI1NOHZnjrDIbzAzWHFctPVr
-btQBULgTfmxKo0nRIBnuvMApGGWn3v7v3QqQIecaZ5JCEJhfTzC8PhxFtBDXaEAUwED653cXeuYL
-j2VbPNmaUtu1vZ5Gzz3rkQUCwJaydkxNEJY7kvqcfw+Z374jNUUeAlz+taibmSXaXvMiwzn15Cou
-08YfxGyqxRxqAQVKL9LFwag0Jl1mpdICIfkYtwb1TplvqKtMUejPUBjFd8g5CSxJkjKZqLsXF3mw
-WsXmo8RZZUc1g16p6DULmbvkzSDGm0oGObVo/CK67lWMK07q87Hj/LaZmtVC+nFNCM+HHmpxffnT
-tOmlcYF7wk5HlqX2doWjKI/pgG6BU6VtX7hI+cL5NqYuSf+4lsKMB7ObiFj86xsc3i1w4peSMKGJ
-47xVqCfWS+2QrYv6YyVZLag13cqXM7zlzced0ezvXg5KkAYmY6252TUtB7p2ZSysV4999AeU14EC
-ll2jB0nVetBX+RvnU0Z1qrB5QstocQjpYL05ac70r8NWQMetUqIJ5G+GR4of6ygnXYMgrwTJbFaa
-i0b1AgMBAAGjgYMwgYAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYE
-FPd9xf3E6Jobd2Sn9R2gzL+HYJptMD4GA1UdIAQ3MDUwMwYEVR0gADArMCkGCCsGAQUFBwIBFh1o
-dHRwOi8vd3d3LmNlcnQuZm5tdC5lcy9kcGNzLzANBgkqhkiG9w0BAQsFAAOCAgEAB5BK3/MjTvDD
-nFFlm5wioooMhfNzKWtN/gHiqQxjAb8EZ6WdmF/9ARP67Jpi6Yb+tmLSbkyU+8B1RXxlDPiyN8+s
-D8+Nb/kZ94/sHvJwnvDKuO+3/3Y3dlv2bojzr2IyIpMNOmqOFGYMLVN0V2Ue1bLdI4E7pWYjJ2cJ
-j+F3qkPNZVEI7VFY/uY5+ctHhKQV8Xa7pO6kO8Rf77IzlhEYt8llvhjho6Tc+hj507wTmzl6NLrT
-Qfv6MooqtyuGC2mDOL7Nii4LcK2NJpLuHvUBKwrZ1pebbuCoGRw6IYsMHkCtA+fdZn71uSANA+iW
-+YJF1DngoABd15jmfZ5nc8OaKveri6E6FO80vFIOiZiaBECEHX5FaZNXzuvO+FB8TxxuBEOb+dY7
-Ixjp6o7RTUaN8Tvkasq6+yO3m/qZASlaWFot4/nUbQ4mrcFuNLwy+AwF+mWj2zs3gyLp1txyM/1d
-8iC9djwj2ij3+RvrWWTV3F9yfiD8zYm1kGdNYno/Tq0dwzn+evQoFt9B9kiABdcPUXmsEKvU7ANm
-5mqwujGSQkBqvjrTcuFqN1W8rB2Vt2lh8kORdOag0wokRqEIr9baRRmW1FMdW4R58MD3R++Lj8UG
-rp1MYp3/RgT408m2ECVAdf4WqslKYIYvuu8wd+RU4riEmViAqhOLUTpPSPaLtrM=
------END CERTIFICATE-----
-
-Amazon Root CA 1
-================
------BEGIN CERTIFICATE-----
-MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsFADA5MQswCQYD
-VQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSAxMB4XDTE1
-MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpv
-bjEZMBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
-ggEBALJ4gHHKeNXjca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgH
-FzZM9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qwIFAGbHrQ
-gLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6VOujw5H5SNz/0egwLX0t
-dHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L93FcXmn/6pUCyziKrlA4b9v7LWIbxcce
-VOF34GfID5yHI9Y/QCB/IIDEgEw+OyQmjgSubJrIqg0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB
-/zAOBgNVHQ8BAf8EBAMCAYYwHQYDVR0OBBYEFIQYzIU07LwMlJQuCFmcx7IQTgoIMA0GCSqGSIb3
-DQEBCwUAA4IBAQCY8jdaQZChGsV2USggNiMOruYou6r4lK5IpDB/G/wkjUu0yKGX9rbxenDIU5PM
-CCjjmCXPI6T53iHTfIUJrU6adTrCC2qJeHZERxhlbI1Bjjt/msv0tadQ1wUsN+gDS63pYaACbvXy
-8MWy7Vu33PqUXHeeE6V/Uq2V8viTO96LXFvKWlJbYK8U90vvo/ufQJVtMVT8QtPHRh8jrdkPSHCa
-2XV4cdFyQzR1bldZwgJcJmApzyMZFo6IQ6XU5MsI+yMRQ+hDKXJioaldXgjUkK642M4UwtBV8ob2
-xJNDd2ZhwLnoQdeXeGADbkpyrqXRfboQnoZsG4q5WTP468SQvvG5
------END CERTIFICATE-----
-
-Amazon Root CA 2
-================
------BEGIN CERTIFICATE-----
-MIIFQTCCAymgAwIBAgITBmyf0pY1hp8KD+WGePhbJruKNzANBgkqhkiG9w0BAQwFADA5MQswCQYD
-VQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSAyMB4XDTE1
-MDUyNjAwMDAwMFoXDTQwMDUyNjAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpv
-bjEZMBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgMjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoC
-ggIBAK2Wny2cSkxKgXlRmeyKy2tgURO8TW0G/LAIjd0ZEGrHJgw12MBvIITplLGbhQPDW9tK6Mj4
-kHbZW0/jTOgGNk3Mmqw9DJArktQGGWCsN0R5hYGCrVo34A3MnaZMUnbqQ523BNFQ9lXg1dKmSYXp
-N+nKfq5clU1Imj+uIFptiJXZNLhSGkOQsL9sBbm2eLfq0OQ6PBJTYv9K8nu+NQWpEjTj82R0Yiw9
-AElaKP4yRLuH3WUnAnE72kr3H9rN9yFVkE8P7K6C4Z9r2UXTu/Bfh+08LDmG2j/e7HJV63mjrdvd
-fLC6HM783k81ds8P+HgfajZRRidhW+mez/CiVX18JYpvL7TFz4QuK/0NURBs+18bvBt+xa47mAEx
-kv8LV/SasrlX6avvDXbR8O70zoan4G7ptGmh32n2M8ZpLpcTnqWHsFcQgTfJU7O7f/aS0ZzQGPSS
-btqDT6ZjmUyl+17vIWR6IF9sZIUVyzfpYgwLKhbcAS4y2j5L9Z469hdAlO+ekQiG+r5jqFoz7Mt0
-Q5X5bGlSNscpb/xVA1wf+5+9R+vnSUeVC06JIglJ4PVhHvG/LopyboBZ/1c6+XUyo05f7O0oYtlN
-c/LMgRdg7c3r3NunysV+Ar3yVAhU/bQtCSwXVEqY0VThUWcI0u1ufm8/0i2BWSlmy5A5lREedCf+
-3euvAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBSw
-DPBMMPQFWAJI/TPlUq9LhONmUjANBgkqhkiG9w0BAQwFAAOCAgEAqqiAjw54o+Ci1M3m9Zh6O+oA
-A7CXDpO8Wqj2LIxyh6mx/H9z/WNxeKWHWc8w4Q0QshNabYL1auaAn6AFC2jkR2vHat+2/XcycuUY
-+gn0oJMsXdKMdYV2ZZAMA3m3MSNjrXiDCYZohMr/+c8mmpJ5581LxedhpxfL86kSk5Nrp+gvU5LE
-YFiwzAJRGFuFjWJZY7attN6a+yb3ACfAXVU3dJnJUH/jWS5E4ywl7uxMMne0nxrpS10gxdr9HIcW
-xkPo1LsmmkVwXqkLN1PiRnsn/eBG8om3zEK2yygmbtmlyTrIQRNg91CMFa6ybRoVGld45pIq2WWQ
-gj9sAq+uEjonljYE1x2igGOpm/HlurR8FLBOybEfdF849lHqm/osohHUqS0nGkWxr7JOcQ3AWEbW
-aQbLU8uz/mtBzUF+fUwPfHJ5elnNXkoOrJupmHN5fLT0zLm4BwyydFy4x2+IoZCn9Kr5v2c69BoV
-Yh63n749sSmvZ6ES8lgQGVMDMBu4Gon2nL2XA46jCfMdiyHxtN/kHNGfZQIG6lzWE7OE76KlXIx3
-KadowGuuQNKotOrN8I1LOJwZmhsoVLiJkO/KdYE+HvJkJMcYr07/R54H9jVlpNMKVv/1F2Rs76gi
-JUmTtt8AF9pYfl3uxRuw0dFfIRDH+fO6AgonB8Xx1sfT4PsJYGw=
------END CERTIFICATE-----
-
-Amazon Root CA 3
-================
------BEGIN CERTIFICATE-----
-MIIBtjCCAVugAwIBAgITBmyf1XSXNmY/Owua2eiedgPySjAKBggqhkjOPQQDAjA5MQswCQYDVQQG
-EwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSAzMB4XDTE1MDUy
-NjAwMDAwMFoXDTQwMDUyNjAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZ
-MBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgMzBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABCmXp8ZB
-f8ANm+gBG1bG8lKlui2yEujSLtf6ycXYqm0fc4E7O5hrOXwzpcVOho6AF2hiRVd9RFgdszflZwjr
-Zt6jQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBSrttvXBp43
-rDCGB5Fwx5zEGbF4wDAKBggqhkjOPQQDAgNJADBGAiEA4IWSoxe3jfkrBqWTrBqYaGFy+uGh0Psc
-eGCmQ5nFuMQCIQCcAu/xlJyzlvnrxir4tiz+OpAUFteMYyRIHN8wfdVoOw==
------END CERTIFICATE-----
-
-Amazon Root CA 4
-================
------BEGIN CERTIFICATE-----
-MIIB8jCCAXigAwIBAgITBmyf18G7EEwpQ+Vxe3ssyBrBDjAKBggqhkjOPQQDAzA5MQswCQYDVQQG
-EwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24gUm9vdCBDQSA0MB4XDTE1MDUy
-NjAwMDAwMFoXDTQwMDUyNjAwMDAwMFowOTELMAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZ
-MBcGA1UEAxMQQW1hem9uIFJvb3QgQ0EgNDB2MBAGByqGSM49AgEGBSuBBAAiA2IABNKrijdPo1MN
-/sGKe0uoe0ZLY7Bi9i0b2whxIdIA6GO9mif78DluXeo9pcmBqqNbIJhFXRbb/egQbeOc4OO9X4Ri
-83BkM6DLJC9wuoihKqB1+IGuYgbEgds5bimwHvouXKNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNV
-HQ8BAf8EBAMCAYYwHQYDVR0OBBYEFNPsxzplbszh2naaVvuc84ZtV+WBMAoGCCqGSM49BAMDA2gA
-MGUCMDqLIfG9fhGt0O9Yli/W651+kI0rz2ZVwyzjKKlwCkcO8DdZEv8tmZQoTipPNU0zWgIxAOp1
-AE47xDqUEpHJWEadIRNyp4iciuRMStuW1KyLa2tJElMzrdfkviT8tQp21KW8EA==
------END CERTIFICATE-----
-
-LuxTrust Global Root 2
-======================
------BEGIN CERTIFICATE-----
-MIIFwzCCA6ugAwIBAgIUCn6m30tEntpqJIWe5rgV0xZ/u7EwDQYJKoZIhvcNAQELBQAwRjELMAkG
-A1UEBhMCTFUxFjAUBgNVBAoMDUx1eFRydXN0IFMuQS4xHzAdBgNVBAMMFkx1eFRydXN0IEdsb2Jh
-bCBSb290IDIwHhcNMTUwMzA1MTMyMTU3WhcNMzUwMzA1MTMyMTU3WjBGMQswCQYDVQQGEwJMVTEW
-MBQGA1UECgwNTHV4VHJ1c3QgUy5BLjEfMB0GA1UEAwwWTHV4VHJ1c3QgR2xvYmFsIFJvb3QgMjCC
-AiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANeFl78RmOnwYoNMPIf5U2o3C/IPPIfOb9wm
-Kb3FibrJgz337spbxm1Jc7TJRqMbNBM/wYlFV/TZsfs2ZUv7COJIcRHIbjuend+JZTemhfY7RBi2
-xjcwYkSSl2l9QjAk5A0MiWtj3sXh306pFGxT4GHO9hcvHTy95iJMHZP1EMShduxq3sVs35a0VkBC
-wGKSMKEtFZSg0iAGCW5qbeXrt77U8PEVfIvmTroTzEsnXpk8F12PgX8zPU/TPxvsXD/wPEx1bvKm
-1Z3aLQdjAsZy6ZS8TEmVT4hSyNvoaYL4zDRbIvCGp4m9SAptZoFtyMhk+wHh9OHe2Z7d21vUKpkm
-FRseTJIpgp7VkoGSQXAZ96Tlk0u8d2cx3Rz9MXANF5kM+Qw5GSoXtTBxVdUPrljhPS80m8+f9niF
-wpN6cj5mj5wWEWCPnolvZ77gR1o7DJpni89Gxq44o/KnvObWhWszJHAiS8sIm7vI+AIpHb4gDEa/
-a4ebsypmQjVGbKq6rfmYe+lQVRQxv7HaLe2ArWgk+2mr2HETMOZns4dA/Yl+8kPREd8vZS9kzl8U
-ubG/Mb2HeFpZZYiq/FkySIbWTLkpS5XTdvN3JW1CHDiDTf2jX5t/Lax5Gw5CMZdjpPuKadUiDTSQ
-MC6otOBttpSsvItO13D8xTiOZCXhTTmQzsmHhFhxAgMBAAGjgagwgaUwDwYDVR0TAQH/BAUwAwEB
-/zBCBgNVHSAEOzA5MDcGByuBKwEBAQowLDAqBggrBgEFBQcCARYeaHR0cHM6Ly9yZXBvc2l0b3J5
-Lmx1eHRydXN0Lmx1MA4GA1UdDwEB/wQEAwIBBjAfBgNVHSMEGDAWgBT/GCh2+UgFLKGu8SsbK7JT
-+Et8szAdBgNVHQ4EFgQU/xgodvlIBSyhrvErGyuyU/hLfLMwDQYJKoZIhvcNAQELBQADggIBAGoZ
-FO1uecEsh9QNcH7X9njJCwROxLHOk3D+sFTAMs2ZMGQXvw/l4jP9BzZAcg4atmpZ1gDlaCDdLnIN
-H2pkMSCEfUmmWjfrRcmF9dTHF5kH5ptV5AzoqbTOjFu1EVzPig4N1qx3gf4ynCSecs5U89BvolbW
-7MM3LGVYvlcAGvI1+ut7MV3CwRI9loGIlonBWVx65n9wNOeD4rHh4bhY79SV5GCc8JaXcozrhAIu
-ZY+kt9J/Z93I055cqqmkoCUUBpvsT34tC38ddfEz2O3OuHVtPlu5mB0xDVbYQw8wkbIEa91WvpWA
-VWe+2M2D2RjuLg+GLZKecBPs3lHJQ3gCpU3I+V/EkVhGFndadKpAvAefMLmx9xIX3eP/JEAdemrR
-TxgKqpAd60Ae36EeRJIQmvKN4dFLRp7oRUKX6kWZ8+xm1QL68qZKJKrezrnK+T+Tb/mjuuqlPpmt
-/f97mfVl7vBZKGfXkJWkE4SphMHozs51k2MavDzq1WQfLSoSOcbDWjLtR5EWDrw4wVDej8oqkDQc
-7kGUnF4ZLvhFSZl0kbAEb+MEWrGrKqv+x9CWttrhSmQGbmBNvUJO/3jaJMobtNeWOWyu8Q6qp31I
-iyBMz2TWuJdGsE7RKlY6oJO9r4Ak4Ap+58rVyuiFVdw2KuGUaJPHZnJED4AhMmwlxyOAgwrr
------END CERTIFICATE-----
-
-TUBITAK Kamu SM SSL Kok Sertifikasi - Surum 1
-=============================================
------BEGIN CERTIFICATE-----
-MIIEYzCCA0ugAwIBAgIBATANBgkqhkiG9w0BAQsFADCB0jELMAkGA1UEBhMCVFIxGDAWBgNVBAcT
-D0dlYnplIC0gS29jYWVsaTFCMEAGA1UEChM5VHVya2l5ZSBCaWxpbXNlbCB2ZSBUZWtub2xvamlr
-IEFyYXN0aXJtYSBLdXJ1bXUgLSBUVUJJVEFLMS0wKwYDVQQLEyRLYW11IFNlcnRpZmlrYXN5b24g
-TWVya2V6aSAtIEthbXUgU00xNjA0BgNVBAMTLVRVQklUQUsgS2FtdSBTTSBTU0wgS29rIFNlcnRp
-ZmlrYXNpIC0gU3VydW0gMTAeFw0xMzExMjUwODI1NTVaFw00MzEwMjUwODI1NTVaMIHSMQswCQYD
-VQQGEwJUUjEYMBYGA1UEBxMPR2ViemUgLSBLb2NhZWxpMUIwQAYDVQQKEzlUdXJraXllIEJpbGlt
-c2VsIHZlIFRla25vbG9qaWsgQXJhc3Rpcm1hIEt1cnVtdSAtIFRVQklUQUsxLTArBgNVBAsTJEth
-bXUgU2VydGlmaWthc3lvbiBNZXJrZXppIC0gS2FtdSBTTTE2MDQGA1UEAxMtVFVCSVRBSyBLYW11
-IFNNIFNTTCBLb2sgU2VydGlmaWthc2kgLSBTdXJ1bSAxMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
-MIIBCgKCAQEAr3UwM6q7a9OZLBI3hNmNe5eA027n/5tQlT6QlVZC1xl8JoSNkvoBHToP4mQ4t4y8
-6Ij5iySrLqP1N+RAjhgleYN1Hzv/bKjFxlb4tO2KRKOrbEz8HdDc72i9z+SqzvBV96I01INrN3wc
-wv61A+xXzry0tcXtAA9TNypN9E8Mg/uGz8v+jE69h/mniyFXnHrfA2eJLJ2XYacQuFWQfw4tJzh0
-3+f92k4S400VIgLI4OD8D62K18lUUMw7D8oWgITQUVbDjlZ/iSIzL+aFCr2lqBs23tPcLG07xxO9
-WSMs5uWk99gL7eqQQESolbuT1dCANLZGeA4fAJNG4e7p+exPFwIDAQABo0IwQDAdBgNVHQ4EFgQU
-ZT/HiobGPN08VFw1+DrtUgxHV8gwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJ
-KoZIhvcNAQELBQADggEBACo/4fEyjq7hmFxLXs9rHmoJ0iKpEsdeV31zVmSAhHqT5Am5EM2fKifh
-AHe+SMg1qIGf5LgsyX8OsNJLN13qudULXjS99HMpw+0mFZx+CFOKWI3QSyjfwbPfIPP54+M638yc
-lNhOT8NrF7f3cuitZjO1JVOr4PhMqZ398g26rrnZqsZr+ZO7rqu4lzwDGrpDxpa5RXI4s6ehlj2R
-e37AIVNMh+3yC1SVUZPVIqUNivGTDj5UDrDYyU7c8jEyVupk+eq1nRZmQnLzf9OxMUP8pI4X8W0j
-q5Rm+K37DwhuJi1/FwcJsoz7UMCflo3Ptv0AnVoUmr8CRPXBwp8iXqIPoeM=
------END CERTIFICATE-----
-
-GDCA TrustAUTH R5 ROOT
-======================
------BEGIN CERTIFICATE-----
-MIIFiDCCA3CgAwIBAgIIfQmX/vBH6nowDQYJKoZIhvcNAQELBQAwYjELMAkGA1UEBhMCQ04xMjAw
-BgNVBAoMKUdVQU5HIERPTkcgQ0VSVElGSUNBVEUgQVVUSE9SSVRZIENPLixMVEQuMR8wHQYDVQQD
-DBZHRENBIFRydXN0QVVUSCBSNSBST09UMB4XDTE0MTEyNjA1MTMxNVoXDTQwMTIzMTE1NTk1OVow
-YjELMAkGA1UEBhMCQ04xMjAwBgNVBAoMKUdVQU5HIERPTkcgQ0VSVElGSUNBVEUgQVVUSE9SSVRZ
-IENPLixMVEQuMR8wHQYDVQQDDBZHRENBIFRydXN0QVVUSCBSNSBST09UMIICIjANBgkqhkiG9w0B
-AQEFAAOCAg8AMIICCgKCAgEA2aMW8Mh0dHeb7zMNOwZ+Vfy1YI92hhJCfVZmPoiC7XJjDp6L3TQs
-AlFRwxn9WVSEyfFrs0yw6ehGXTjGoqcuEVe6ghWinI9tsJlKCvLriXBjTnnEt1u9ol2x8kECK62p
-OqPseQrsXzrj/e+APK00mxqriCZ7VqKChh/rNYmDf1+uKU49tm7srsHwJ5uu4/Ts765/94Y9cnrr
-pftZTqfrlYwiOXnhLQiPzLyRuEH3FMEjqcOtmkVEs7LXLM3GKeJQEK5cy4KOFxg2fZfmiJqwTTQJ
-9Cy5WmYqsBebnh52nUpmMUHfP/vFBu8btn4aRjb3ZGM74zkYI+dndRTVdVeSN72+ahsmUPI2JgaQ
-xXABZG12ZuGR224HwGGALrIuL4xwp9E7PLOR5G62xDtw8mySlwnNR30YwPO7ng/Wi64HtloPzgsM
-R6flPri9fcebNaBhlzpBdRfMK5Z3KpIhHtmVdiBnaM8Nvd/WHwlqmuLMc3GkL30SgLdTMEZeS1SZ
-D2fJpcjyIMGC7J0R38IC+xo70e0gmu9lZJIQDSri3nDxGGeCjGHeuLzRL5z7D9Ar7Rt2ueQ5Vfj4
-oR24qoAATILnsn8JuLwwoC8N9VKejveSswoAHQBUlwbgsQfZxw9cZX08bVlX5O2ljelAU58VS6Bx
-9hoh49pwBiFYFIeFd3mqgnkCAwEAAaNCMEAwHQYDVR0OBBYEFOLJQJ9NzuiaoXzPDj9lxSmIahlR
-MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEBCwUAA4ICAQDRSVfg
-p8xoWLoBDysZzY2wYUWsEe1jUGn4H3++Fo/9nesLqjJHdtJnJO29fDMylyrHBYZmDRd9FBUb1Ov9
-H5r2XpdptxolpAqzkT9fNqyL7FeoPueBihhXOYV0GkLH6VsTX4/5COmSdI31R9KrO9b7eGZONn35
-6ZLpBN79SWP8bfsUcZNnL0dKt7n/HipzcEYwv1ryL3ml4Y0M2fmyYzeMN2WFcGpcWwlyua1jPLHd
-+PwyvzeG5LuOmCd+uh8W4XAR8gPfJWIyJyYYMoSf/wA6E7qaTfRPuBRwIrHKK5DOKcFw9C+df/KQ
-HtZa37dG/OaG+svgIHZ6uqbL9XzeYqWxi+7egmaKTjowHz+Ay60nugxe19CxVsp3cbK1daFQqUBD
-F8Io2c9Si1vIY9RCPqAzekYu9wogRlR+ak8x8YF+QnQ4ZXMn7sZ8uI7XpTrXmKGcjBBV09tL7ECQ
-8s1uV9JiDnxXk7Gnbc2dg7sq5+W2O3FYrf3RRbxake5TFW/TRQl1brqQXR4EzzffHqhmsYzmIGrv
-/EhOdJhCrylvLmrH+33RZjEizIYAfmaDDEL0vTSSwxrqT8p+ck0LcIymSLumoRT2+1hEmRSuqguT
-aaApJUqlyyvdimYHFngVV3Eb7PVHhPOeMTd61X8kreS8/f3MboPoDKi3QWwH3b08hpcv0g==
------END CERTIFICATE-----
-
-TrustCor RootCert CA-1
-======================
------BEGIN CERTIFICATE-----
-MIIEMDCCAxigAwIBAgIJANqb7HHzA7AZMA0GCSqGSIb3DQEBCwUAMIGkMQswCQYDVQQGEwJQQTEP
-MA0GA1UECAwGUGFuYW1hMRQwEgYDVQQHDAtQYW5hbWEgQ2l0eTEkMCIGA1UECgwbVHJ1c3RDb3Ig
-U3lzdGVtcyBTLiBkZSBSLkwuMScwJQYDVQQLDB5UcnVzdENvciBDZXJ0aWZpY2F0ZSBBdXRob3Jp
-dHkxHzAdBgNVBAMMFlRydXN0Q29yIFJvb3RDZXJ0IENBLTEwHhcNMTYwMjA0MTIzMjE2WhcNMjkx
-MjMxMTcyMzE2WjCBpDELMAkGA1UEBhMCUEExDzANBgNVBAgMBlBhbmFtYTEUMBIGA1UEBwwLUGFu
-YW1hIENpdHkxJDAiBgNVBAoMG1RydXN0Q29yIFN5c3RlbXMgUy4gZGUgUi5MLjEnMCUGA1UECwwe
-VHJ1c3RDb3IgQ2VydGlmaWNhdGUgQXV0aG9yaXR5MR8wHQYDVQQDDBZUcnVzdENvciBSb290Q2Vy
-dCBDQS0xMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAv463leLCJhJrMxnHQFgKq1mq
-jQCj/IDHUHuO1CAmujIS2CNUSSUQIpidRtLByZ5OGy4sDjjzGiVoHKZaBeYei0i/mJZ0PmnK6bV4
-pQa81QBeCQryJ3pS/C3Vseq0iWEk8xoT26nPUu0MJLq5nux+AHT6k61sKZKuUbS701e/s/OojZz0
-JEsq1pme9J7+wH5COucLlVPat2gOkEz7cD+PSiyU8ybdY2mplNgQTsVHCJCZGxdNuWxu72CVEY4h
-gLW9oHPY0LJ3xEXqWib7ZnZ2+AYfYW0PVcWDtxBWcgYHpfOxGgMFZA6dWorWhnAbJN7+KIor0Gqw
-/Hqi3LJ5DotlDwIDAQABo2MwYTAdBgNVHQ4EFgQU7mtJPHo/DeOxCbeKyKsZn3MzUOcwHwYDVR0j
-BBgwFoAU7mtJPHo/DeOxCbeKyKsZn3MzUOcwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
-AYYwDQYJKoZIhvcNAQELBQADggEBACUY1JGPE+6PHh0RU9otRCkZoB5rMZ5NDp6tPVxBb5UrJKF5
-mDo4Nvu7Zp5I/5CQ7z3UuJu0h3U/IJvOcs+hVcFNZKIZBqEHMwwLKeXx6quj7LUKdJDHfXLy11yf
-ke+Ri7fc7Waiz45mO7yfOgLgJ90WmMCV1Aqk5IGadZQ1nJBfiDcGrVmVCrDRZ9MZyonnMlo2HD6C
-qFqTvsbQZJG2z9m2GM/bftJlo6bEjhcxwft+dtvTheNYsnd6djtsL1Ac59v2Z3kf9YKVmgenFK+P
-3CghZwnS1k1aHBkcjndcw5QkPTJrS37UeJSDvjdNzl/HHk484IkzlQsPpTLWPFp5LBk=
------END CERTIFICATE-----
-
-TrustCor RootCert CA-2
-======================
------BEGIN CERTIFICATE-----
-MIIGLzCCBBegAwIBAgIIJaHfyjPLWQIwDQYJKoZIhvcNAQELBQAwgaQxCzAJBgNVBAYTAlBBMQ8w
-DQYDVQQIDAZQYW5hbWExFDASBgNVBAcMC1BhbmFtYSBDaXR5MSQwIgYDVQQKDBtUcnVzdENvciBT
-eXN0ZW1zIFMuIGRlIFIuTC4xJzAlBgNVBAsMHlRydXN0Q29yIENlcnRpZmljYXRlIEF1dGhvcml0
-eTEfMB0GA1UEAwwWVHJ1c3RDb3IgUm9vdENlcnQgQ0EtMjAeFw0xNjAyMDQxMjMyMjNaFw0zNDEy
-MzExNzI2MzlaMIGkMQswCQYDVQQGEwJQQTEPMA0GA1UECAwGUGFuYW1hMRQwEgYDVQQHDAtQYW5h
-bWEgQ2l0eTEkMCIGA1UECgwbVHJ1c3RDb3IgU3lzdGVtcyBTLiBkZSBSLkwuMScwJQYDVQQLDB5U
-cnVzdENvciBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkxHzAdBgNVBAMMFlRydXN0Q29yIFJvb3RDZXJ0
-IENBLTIwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCnIG7CKqJiJJWQdsg4foDSq8Gb
-ZQWU9MEKENUCrO2fk8eHyLAnK0IMPQo+QVqedd2NyuCb7GgypGmSaIwLgQ5WoD4a3SwlFIIvl9Nk
-RvRUqdw6VC0xK5mC8tkq1+9xALgxpL56JAfDQiDyitSSBBtlVkxs1Pu2YVpHI7TYabS3OtB0PAx1
-oYxOdqHp2yqlO/rOsP9+aij9JxzIsekp8VduZLTQwRVtDr4uDkbIXvRR/u8OYzo7cbrPb1nKDOOb
-XUm4TOJXsZiKQlecdu/vvdFoqNL0Cbt3Nb4lggjEFixEIFapRBF37120Hapeaz6LMvYHL1cEksr1
-/p3C6eizjkxLAjHZ5DxIgif3GIJ2SDpxsROhOdUuxTTCHWKF3wP+TfSvPd9cW436cOGlfifHhi5q
-jxLGhF5DUVCcGZt45vz27Ud+ez1m7xMTiF88oWP7+ayHNZ/zgp6kPwqcMWmLmaSISo5uZk3vFsQP
-eSghYA2FFn3XVDjxklb9tTNMg9zXEJ9L/cb4Qr26fHMC4P99zVvh1Kxhe1fVSntb1IVYJ12/+Ctg
-rKAmrhQhJ8Z3mjOAPF5GP/fDsaOGM8boXg25NSyqRsGFAnWAoOsk+xWq5Gd/bnc/9ASKL3x74xdh
-8N0JqSDIvgmk0H5Ew7IwSjiqqewYmgeCK9u4nBit2uBGF6zPXQIDAQABo2MwYTAdBgNVHQ4EFgQU
-2f4hQG6UnrybPZx9mCAZ5YwwYrIwHwYDVR0jBBgwFoAU2f4hQG6UnrybPZx9mCAZ5YwwYrIwDwYD
-VR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAYYwDQYJKoZIhvcNAQELBQADggIBAJ5Fngw7tu/h
-Osh80QA9z+LqBrWyOrsGS2h60COXdKcs8AjYeVrXWoSK2BKaG9l9XE1wxaX5q+WjiYndAfrs3fnp
-kpfbsEZC89NiqpX+MWcUaViQCqoL7jcjx1BRtPV+nuN79+TMQjItSQzL/0kMmx40/W5ulop5A7Zv
-2wnL/V9lFDfhOPXzYRZY5LVtDQsEGz9QLX+zx3oaFoBg+Iof6Rsqxvm6ARppv9JYx1RXCI/hOWB3
-S6xZhBqI8d3LT3jX5+EzLfzuQfogsL7L9ziUwOHQhQ+77Sxzq+3+knYaZH9bDTMJBzN7Bj8RpFxw
-PIXAz+OQqIN3+tvmxYxoZxBnpVIt8MSZj3+/0WvitUfW2dCFmU2Umw9Lje4AWkcdEQOsQRivh7dv
-DDqPys/cA8GiCcjl/YBeyGBCARsaU1q7N6a3vLqE6R5sGtRk2tRD/pOLS/IseRYQ1JMLiI+h2IYU
-RpFHmygk71dSTlxCnKr3Sewn6EAes6aJInKc9Q0ztFijMDvd1GpUk74aTfOTlPf8hAs/hCBcNANE
-xdqtvArBAs8e5ZTZ845b2EzwnexhF7sUMlQMAimTHpKG9n/v55IFDlndmQguLvqcAFLTxWYp5KeX
-RKQOKIETNcX2b2TmQcTVL8w0RSXPQQCWPUouwpaYT05KnJe32x+SMsj/D1Fu1uwJ
------END CERTIFICATE-----
-
-TrustCor ECA-1
-==============
------BEGIN CERTIFICATE-----
-MIIEIDCCAwigAwIBAgIJAISCLF8cYtBAMA0GCSqGSIb3DQEBCwUAMIGcMQswCQYDVQQGEwJQQTEP
-MA0GA1UECAwGUGFuYW1hMRQwEgYDVQQHDAtQYW5hbWEgQ2l0eTEkMCIGA1UECgwbVHJ1c3RDb3Ig
-U3lzdGVtcyBTLiBkZSBSLkwuMScwJQYDVQQLDB5UcnVzdENvciBDZXJ0aWZpY2F0ZSBBdXRob3Jp
-dHkxFzAVBgNVBAMMDlRydXN0Q29yIEVDQS0xMB4XDTE2MDIwNDEyMzIzM1oXDTI5MTIzMTE3Mjgw
-N1owgZwxCzAJBgNVBAYTAlBBMQ8wDQYDVQQIDAZQYW5hbWExFDASBgNVBAcMC1BhbmFtYSBDaXR5
-MSQwIgYDVQQKDBtUcnVzdENvciBTeXN0ZW1zIFMuIGRlIFIuTC4xJzAlBgNVBAsMHlRydXN0Q29y
-IENlcnRpZmljYXRlIEF1dGhvcml0eTEXMBUGA1UEAwwOVHJ1c3RDb3IgRUNBLTEwggEiMA0GCSqG
-SIb3DQEBAQUAA4IBDwAwggEKAoIBAQDPj+ARtZ+odnbb3w9U73NjKYKtR8aja+3+XzP4Q1HpGjOR
-MRegdMTUpwHmspI+ap3tDvl0mEDTPwOABoJA6LHip1GnHYMma6ve+heRK9jGrB6xnhkB1Zem6g23
-xFUfJ3zSCNV2HykVh0A53ThFEXXQmqc04L/NyFIduUd+Dbi7xgz2c1cWWn5DkR9VOsZtRASqnKmc
-p0yJF4OuowReUoCLHhIlERnXDH19MURB6tuvsBzvgdAsxZohmz3tQjtQJvLsznFhBmIhVE5/wZ0+
-fyCMgMsq2JdiyIMzkX2woloPV+g7zPIlstR8L+xNxqE6FXrntl019fZISjZFZtS6mFjBAgMBAAGj
-YzBhMB0GA1UdDgQWBBREnkj1zG1I1KBLf/5ZJC+Dl5mahjAfBgNVHSMEGDAWgBREnkj1zG1I1KBL
-f/5ZJC+Dl5mahjAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjANBgkqhkiG9w0BAQsF
-AAOCAQEABT41XBVwm8nHc2FvcivUwo/yQ10CzsSUuZQRg2dd4mdsdXa/uwyqNsatR5Nj3B5+1t4u
-/ukZMjgDfxT2AHMsWbEhBuH7rBiVDKP/mZb3Kyeb1STMHd3BOuCYRLDE5D53sXOpZCz2HAF8P11F
-hcCF5yWPldwX8zyfGm6wyuMdKulMY/okYWLW2n62HGz1Ah3UKt1VkOsqEUc8Ll50soIipX1TH0Xs
-J5F95yIW6MBoNtjG8U+ARDL54dHRHareqKucBK+tIA5kmE2la8BIWJZpTdwHjFGTot+fDz2LYLSC
-jaoITmJF4PkL0uDgPFveXHEnJcLmA4GLEFPjx1WitJ/X5g==
------END CERTIFICATE-----
-
-SSL.com Root Certification Authority RSA
-========================================
------BEGIN CERTIFICATE-----
-MIIF3TCCA8WgAwIBAgIIeyyb0xaAMpkwDQYJKoZIhvcNAQELBQAwfDELMAkGA1UEBhMCVVMxDjAM
-BgNVBAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYDVQQKDA9TU0wgQ29ycG9yYXRpb24x
-MTAvBgNVBAMMKFNTTC5jb20gUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSBSU0EwHhcNMTYw
-MjEyMTczOTM5WhcNNDEwMjEyMTczOTM5WjB8MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMx
-EDAOBgNVBAcMB0hvdXN0b24xGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjExMC8GA1UEAwwoU1NM
-LmNvbSBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IFJTQTCCAiIwDQYJKoZIhvcNAQEBBQAD
-ggIPADCCAgoCggIBAPkP3aMrfcvQKv7sZ4Wm5y4bunfh4/WvpOz6Sl2RxFdHaxh3a3by/ZPkPQ/C
-Fp4LZsNWlJ4Xg4XOVu/yFv0AYvUiCVToZRdOQbngT0aXqhvIuG5iXmmxX9sqAn78bMrzQdjt0Oj8
-P2FI7bADFB0QDksZ4LtO7IZl/zbzXmcCC52GVWH9ejjt/uIZALdvoVBidXQ8oPrIJZK0bnoix/ge
-oeOy3ZExqysdBP+lSgQ36YWkMyv94tZVNHwZpEpox7Ko07fKoZOI68GXvIz5HdkihCR0xwQ9aqkp
-k8zruFvh/l8lqjRYyMEjVJ0bmBHDOJx+PYZspQ9AhnwC9FwCTyjLrnGfDzrIM/4RJTXq/LrFYD3Z
-fBjVsqnTdXgDciLKOsMf7yzlLqn6niy2UUb9rwPW6mBo6oUWNmuF6R7As93EJNyAKoFBbZQ+yODJ
-gUEAnl6/f8UImKIYLEJAs/lvOCdLToD0PYFH4Ih86hzOtXVcUS4cK38acijnALXRdMbX5J+tB5O2
-UzU1/Dfkw/ZdFr4hc96SCvigY2q8lpJqPvi8ZVWb3vUNiSYE/CUapiVpy8JtynziWV+XrOvvLsi8
-1xtZPCvM8hnIk2snYxnP/Okm+Mpxm3+T/jRnhE6Z6/yzeAkzcLpmpnbtG3PrGqUNxCITIJRWCk4s
-bE6x/c+cCbqiM+2HAgMBAAGjYzBhMB0GA1UdDgQWBBTdBAkHovV6fVJTEpKV7jiAJQ2mWTAPBgNV
-HRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFN0ECQei9Xp9UlMSkpXuOIAlDaZZMA4GA1UdDwEB/wQE
-AwIBhjANBgkqhkiG9w0BAQsFAAOCAgEAIBgRlCn7Jp0cHh5wYfGVcpNxJK1ok1iOMq8bs3AD/CUr
-dIWQPXhq9LmLpZc7tRiRux6n+UBbkflVma8eEdBcHadm47GUBwwyOabqG7B52B2ccETjit3E+ZUf
-ijhDPwGFpUenPUayvOUiaPd7nNgsPgohyC0zrL/FgZkxdMF1ccW+sfAjRfSda/wZY52jvATGGAsl
-u1OJD7OAUN5F7kR/q5R4ZJjT9ijdh9hwZXT7DrkT66cPYakylszeu+1jTBi7qUD3oFRuIIhxdRjq
-erQ0cuAjJ3dctpDqhiVAq+8zD8ufgr6iIPv2tS0a5sKFsXQP+8hlAqRSAUfdSSLBv9jra6x+3uxj
-MxW3IwiPxg+NQVrdjsW5j+VFP3jbutIbQLH+cU0/4IGiul607BXgk90IH37hVZkLId6Tngr75qNJ
-vTYw/ud3sqB1l7UtgYgXZSD32pAAn8lSzDLKNXz1PQ/YK9f1JmzJBjSWFupwWRoyeXkLtoh/D1JI
-Pb9s2KJELtFOt3JY04kTlf5Eq/jXixtunLwsoFvVagCvXzfh1foQC5ichucmj87w7G6KVwuA406y
-wKBjYZC6VWg3dGq2ktufoYYitmUnDuy2n0Jg5GfCtdpBC8TTi2EbvPofkSvXRAdeuims2cXp71NI
-WuuA8ShYIc2wBlX7Jz9TkHCpBB5XJ7k=
------END CERTIFICATE-----
-
-SSL.com Root Certification Authority ECC
-========================================
------BEGIN CERTIFICATE-----
-MIICjTCCAhSgAwIBAgIIdebfy8FoW6gwCgYIKoZIzj0EAwIwfDELMAkGA1UEBhMCVVMxDjAMBgNV
-BAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYDVQQKDA9TU0wgQ29ycG9yYXRpb24xMTAv
-BgNVBAMMKFNTTC5jb20gUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSBFQ0MwHhcNMTYwMjEy
-MTgxNDAzWhcNNDEwMjEyMTgxNDAzWjB8MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMxEDAO
-BgNVBAcMB0hvdXN0b24xGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjExMC8GA1UEAwwoU1NMLmNv
-bSBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IEVDQzB2MBAGByqGSM49AgEGBSuBBAAiA2IA
-BEVuqVDEpiM2nl8ojRfLliJkP9x6jh3MCLOicSS6jkm5BBtHllirLZXI7Z4INcgn64mMU1jrYor+
-8FsPazFSY0E7ic3s7LaNGdM0B9y7xgZ/wkWV7Mt/qCPgCemB+vNH06NjMGEwHQYDVR0OBBYEFILR
-hXMw5zUE044CkvvlpNHEIejNMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUgtGFczDnNQTT
-jgKS++Wk0cQh6M0wDgYDVR0PAQH/BAQDAgGGMAoGCCqGSM49BAMCA2cAMGQCMG/n61kRpGDPYbCW
-e+0F+S8Tkdzt5fxQaxFGRrMcIQBiu77D5+jNB5n5DQtdcj7EqgIwH7y6C+IwJPt8bYBVCpk+gA0z
-5Wajs6O7pdWLjwkspl1+4vAHCGht0nxpbl/f5Wpl
------END CERTIFICATE-----
-
-SSL.com EV Root Certification Authority RSA R2
-==============================================
------BEGIN CERTIFICATE-----
-MIIF6zCCA9OgAwIBAgIIVrYpzTS8ePYwDQYJKoZIhvcNAQELBQAwgYIxCzAJBgNVBAYTAlVTMQ4w
-DAYDVQQIDAVUZXhhczEQMA4GA1UEBwwHSG91c3RvbjEYMBYGA1UECgwPU1NMIENvcnBvcmF0aW9u
-MTcwNQYDVQQDDC5TU0wuY29tIEVWIFJvb3QgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgUlNBIFIy
-MB4XDTE3MDUzMTE4MTQzN1oXDTQyMDUzMDE4MTQzN1owgYIxCzAJBgNVBAYTAlVTMQ4wDAYDVQQI
-DAVUZXhhczEQMA4GA1UEBwwHSG91c3RvbjEYMBYGA1UECgwPU1NMIENvcnBvcmF0aW9uMTcwNQYD
-VQQDDC5TU0wuY29tIEVWIFJvb3QgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgUlNBIFIyMIICIjAN
-BgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAjzZlQOHWTcDXtOlG2mvqM0fNTPl9fb69LT3w23jh
-hqXZuglXaO1XPqDQCEGD5yhBJB/jchXQARr7XnAjssufOePPxU7Gkm0mxnu7s9onnQqG6YE3Bf7w
-cXHswxzpY6IXFJ3vG2fThVUCAtZJycxa4bH3bzKfydQ7iEGonL3Lq9ttewkfokxykNorCPzPPFTO
-Zw+oz12WGQvE43LrrdF9HSfvkusQv1vrO6/PgN3B0pYEW3p+pKk8OHakYo6gOV7qd89dAFmPZiw+
-B6KjBSYRaZfqhbcPlgtLyEDhULouisv3D5oi53+aNxPN8k0TayHRwMwi8qFG9kRpnMphNQcAb9Zh
-CBHqurj26bNg5U257J8UZslXWNvNh2n4ioYSA0e/ZhN2rHd9NCSFg83XqpyQGp8hLH94t2S42Oim
-9HizVcuE0jLEeK6jj2HdzghTreyI/BXkmg3mnxp3zkyPuBQVPWKchjgGAGYS5Fl2WlPAApiiECto
-RHuOec4zSnaqW4EWG7WK2NAAe15itAnWhmMOpgWVSbooi4iTsjQc2KRVbrcc0N6ZVTsj9CLg+Slm
-JuwgUHfbSguPvuUCYHBBXtSuUDkiFCbLsjtzdFVHB3mBOagwE0TlBIqulhMlQg+5U8Sb/M3kHN48
-+qvWBkofZ6aYMBzdLNvcGJVXZsb/XItW9XcCAwEAAaNjMGEwDwYDVR0TAQH/BAUwAwEB/zAfBgNV
-HSMEGDAWgBT5YLvU49U09rj1BoAlp3PbRmmonjAdBgNVHQ4EFgQU+WC71OPVNPa49QaAJadz20Zp
-qJ4wDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEBCwUAA4ICAQBWs47LCp1Jjr+kxJG7ZhcFUZh1
-++VQLHqe8RT6q9OKPv+RKY9ji9i0qVQBDb6Thi/5Sm3HXvVX+cpVHBK+Rw82xd9qt9t1wkclf7nx
-Y/hoLVUE0fKNsKTPvDxeH3jnpaAgcLAExbf3cqfeIg29MyVGjGSSJuM+LmOW2puMPfgYCdcDzH2G
-guDKBAdRUNf/ktUM79qGn5nX67evaOI5JpS6aLe/g9Pqemc9YmeuJeVy6OLk7K4S9ksrPJ/psEDz
-OFSz/bdoyNrGj1E8svuR3Bznm53htw1yj+KkxKl4+esUrMZDBcJlOSgYAsOCsp0FvmXtll9ldDz7
-CTUue5wT/RsPXcdtgTpWD8w74a8CLyKsRspGPKAcTNZEtF4uXBVmCeEmKf7GUmG6sXP/wwyc5Wxq
-lD8UykAWlYTzWamsX0xhk23RO8yilQwipmdnRC652dKKQbNmC1r7fSOl8hqw/96bg5Qu0T/fkreR
-rwU7ZcegbLHNYhLDkBvjJc40vG93drEQw/cFGsDWr3RiSBd3kmmQYRzelYB0VI8YHMPzA9C/pEN1
-hlMYegouCRw2n5H9gooiS9EOUCXdywMMF8mDAAhONU2Ki+3wApRmLER/y5UnlhetCTCstnEXbosX
-9hwJ1C07mKVx01QT2WDz9UtmT/rx7iASjbSsV7FFY6GsdqnC+w==
------END CERTIFICATE-----
-
-SSL.com EV Root Certification Authority ECC
-===========================================
------BEGIN CERTIFICATE-----
-MIIClDCCAhqgAwIBAgIILCmcWxbtBZUwCgYIKoZIzj0EAwIwfzELMAkGA1UEBhMCVVMxDjAMBgNV
-BAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYDVQQKDA9TU0wgQ29ycG9yYXRpb24xNDAy
-BgNVBAMMK1NTTC5jb20gRVYgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSBFQ0MwHhcNMTYw
-MjEyMTgxNTIzWhcNNDEwMjEyMTgxNTIzWjB/MQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4YXMx
-EDAOBgNVBAcMB0hvdXN0b24xGDAWBgNVBAoMD1NTTCBDb3Jwb3JhdGlvbjE0MDIGA1UEAwwrU1NM
-LmNvbSBFViBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IEVDQzB2MBAGByqGSM49AgEGBSuB
-BAAiA2IABKoSR5CYG/vvw0AHgyBO8TCCogbR8pKGYfL2IWjKAMTH6kMAVIbc/R/fALhBYlzccBYy
-3h+Z1MzFB8gIH2EWB1E9fVwHU+M1OIzfzZ/ZLg1KthkuWnBaBu2+8KGwytAJKaNjMGEwHQYDVR0O
-BBYEFFvKXuXe0oGqzagtZFG22XKbl+ZPMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUW8pe
-5d7SgarNqC1kUbbZcpuX5k8wDgYDVR0PAQH/BAQDAgGGMAoGCCqGSM49BAMCA2gAMGUCMQCK5kCJ
-N+vp1RPZytRrJPOwPYdGWBrssd9v+1a6cGvHOMzosYxPD/fxZ3YOg9AeUY8CMD32IygmTMZgh5Mm
-m7I1HrrW9zzRHM76JTymGoEVW/MSD2zuZYrJh6j5B+BimoxcSg==
------END CERTIFICATE-----
-
-GlobalSign Root CA - R6
-=======================
------BEGIN CERTIFICATE-----
-MIIFgzCCA2ugAwIBAgIORea7A4Mzw4VlSOb/RVEwDQYJKoZIhvcNAQEMBQAwTDEgMB4GA1UECxMX
-R2xvYmFsU2lnbiBSb290IENBIC0gUjYxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkds
-b2JhbFNpZ24wHhcNMTQxMjEwMDAwMDAwWhcNMzQxMjEwMDAwMDAwWjBMMSAwHgYDVQQLExdHbG9i
-YWxTaWduIFJvb3QgQ0EgLSBSNjETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFs
-U2lnbjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAJUH6HPKZvnsFMp7PPcNCPG0RQss
-grRIxutbPK6DuEGSMxSkb3/pKszGsIhrxbaJ0cay/xTOURQh7ErdG1rG1ofuTToVBu1kZguSgMpE
-3nOUTvOniX9PeGMIyBJQbUJmL025eShNUhqKGoC3GYEOfsSKvGRMIRxDaNc9PIrFsmbVkJq3MQbF
-vuJtMgamHvm566qjuL++gmNQ0PAYid/kD3n16qIfKtJwLnvnvJO7bVPiSHyMEAc4/2ayd2F+4OqM
-PKq0pPbzlUoSB239jLKJz9CgYXfIWHSw1CM69106yqLbnQneXUQtkPGBzVeS+n68UARjNN9rkxi+
-azayOeSsJDa38O+2HBNXk7besvjihbdzorg1qkXy4J02oW9UivFyVm4uiMVRQkQVlO6jxTiWm05O
-WgtH8wY2SXcwvHE35absIQh1/OZhFj931dmRl4QKbNQCTXTAFO39OfuD8l4UoQSwC+n+7o/hbguy
-CLNhZglqsQY6ZZZZwPA1/cnaKI0aEYdwgQqomnUdnjqGBQCe24DWJfncBZ4nWUx2OVvq+aWh2IMP
-0f/fMBH5hc8zSPXKbWQULHpYT9NLCEnFlWQaYw55PfWzjMpYrZxCRXluDocZXFSxZba/jJvcE+kN
-b7gu3GduyYsRtYQUigAZcIN5kZeR1BonvzceMgfYFGM8KEyvAgMBAAGjYzBhMA4GA1UdDwEB/wQE
-AwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBSubAWjkxPioufi1xzWx/B/yGdToDAfBgNV
-HSMEGDAWgBSubAWjkxPioufi1xzWx/B/yGdToDANBgkqhkiG9w0BAQwFAAOCAgEAgyXt6NH9lVLN
-nsAEoJFp5lzQhN7craJP6Ed41mWYqVuoPId8AorRbrcWc+ZfwFSY1XS+wc3iEZGtIxg93eFyRJa0
-lV7Ae46ZeBZDE1ZXs6KzO7V33EByrKPrmzU+sQghoefEQzd5Mr6155wsTLxDKZmOMNOsIeDjHfrY
-BzN2VAAiKrlNIC5waNrlU/yDXNOd8v9EDERm8tLjvUYAGm0CuiVdjaExUd1URhxN25mW7xocBFym
-Fe944Hn+Xds+qkxV/ZoVqW/hpvvfcDDpw+5CRu3CkwWJ+n1jez/QcYF8AOiYrg54NMMl+68KnyBr
-3TsTjxKM4kEaSHpzoHdpx7Zcf4LIHv5YGygrqGytXm3ABdJ7t+uA/iU3/gKbaKxCXcPu9czc8FB1
-0jZpnOZ7BN9uBmm23goJSFmH63sUYHpkqmlD75HHTOwY3WzvUy2MmeFe8nI+z1TIvWfspA9MRf/T
-uTAjB0yPEL+GltmZWrSZVxykzLsViVO6LAUP5MSeGbEYNNVMnbrt9x+vJJUEeKgDu+6B5dpffItK
-oZB0JaezPkvILFa9x8jvOOJckvB595yEunQtYQEgfn7R8k8HWV+LLUNS60YMlOH1Zkd5d9VUWx+t
-JDfLRVpOoERIyNiwmcUVhAn21klJwGW45hpxbqCo8YLoRT5s1gLXCmeDBVrJpBA=
------END CERTIFICATE-----
-
-OISTE WISeKey Global Root GC CA
-===============================
------BEGIN CERTIFICATE-----
-MIICaTCCAe+gAwIBAgIQISpWDK7aDKtARb8roi066jAKBggqhkjOPQQDAzBtMQswCQYDVQQGEwJD
-SDEQMA4GA1UEChMHV0lTZUtleTEiMCAGA1UECxMZT0lTVEUgRm91bmRhdGlvbiBFbmRvcnNlZDEo
-MCYGA1UEAxMfT0lTVEUgV0lTZUtleSBHbG9iYWwgUm9vdCBHQyBDQTAeFw0xNzA1MDkwOTQ4MzRa
-Fw00MjA1MDkwOTU4MzNaMG0xCzAJBgNVBAYTAkNIMRAwDgYDVQQKEwdXSVNlS2V5MSIwIAYDVQQL
-ExlPSVNURSBGb3VuZGF0aW9uIEVuZG9yc2VkMSgwJgYDVQQDEx9PSVNURSBXSVNlS2V5IEdsb2Jh
-bCBSb290IEdDIENBMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAETOlQwMYPchi82PG6s4nieUqjFqdr
-VCTbUf/q9Akkwwsin8tqJ4KBDdLArzHkdIJuyiXZjHWd8dvQmqJLIX4Wp2OQ0jnUsYd4XxiWD1Ab
-NTcPasbc2RNNpI6QN+a9WzGRo1QwUjAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAd
-BgNVHQ4EFgQUSIcUrOPDnpBgOtfKie7TrYy0UGYwEAYJKwYBBAGCNxUBBAMCAQAwCgYIKoZIzj0E
-AwMDaAAwZQIwJsdpW9zV57LnyAyMjMPdeYwbY9XJUpROTYJKcx6ygISpJcBMWm1JKWB4E+J+SOtk
-AjEA2zQgMgj/mkkCtojeFK9dbJlxjRo/i9fgojaGHAeCOnZT/cKi7e97sIBPWA9LUzm9
------END CERTIFICATE-----
-<?php
-
-if (PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg') {
-    echo 'Warning: Composer should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL;
-}
-
-setlocale(LC_ALL, 'C');
-require __DIR__.'/../src/bootstrap.php';
-
-use Composer\Console\Application;
-use Composer\XdebugHandler\XdebugHandler;
-
-error_reporting(-1);
-
-// Restart without xdebug
-$xdebug = new XdebugHandler('Composer', '--ansi');
-$xdebug->check();
-unset($xdebug);
-
-if (function_exists('ini_set')) {
-    @ini_set('display_errors', 1);
-
-    $memoryInBytes = function ($value) {
-        $unit = strtolower(substr($value, -1, 1));
-        $value = (int) $value;
-        switch($unit) {
-            case 'g':
-                $value *= 1024;
-                // no break (cumulative multiplier)
-            case 'm':
-                $value *= 1024;
-                // no break (cumulative multiplier)
-            case 'k':
-                $value *= 1024;
-        }
-
-        return $value;
-    };
-
-    $memoryLimit = trim(ini_get('memory_limit'));
-    // Increase memory_limit if it is lower than 1.5GB
-    if ($memoryLimit != -1 && $memoryInBytes($memoryLimit) < 1024 * 1024 * 1536) {
-        @ini_set('memory_limit', '1536M');
-    }
-    // Set user defined memory limit
-    if ($memoryLimit = getenv('COMPOSER_MEMORY_LIMIT')) {
-        @ini_set('memory_limit', $memoryLimit);
-    }
-    unset($memoryInBytes, $memoryLimit);
-}
-
-putenv('COMPOSER_BINARY='.realpath($_SERVER['argv'][0]));
-
-// run the command application
-$application = new Application();
-$application->run();
-
-Copyright (c) Nils Adermann, Jordi Boggiano
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
-dÝ>q[Ko6ÐýBç°oj[   GBMB
Index: src/webapp/mapservice/codegen/code_generator
===================================================================
--- src/webapp/mapservice/codegen/code_generator	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/code_generator	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+DIR=`dirname "$0"`
+
+echo "Preparing symlinks"
+cd ${DIR}/../src-gen/openapi_server/
+if [ ! -L server_impl ]; then
+	ln -s ../../src/server_impl/
+fi
+
+echo "Copying static files"
+cp -a ../../src/templates ./
+cp -a ../../src/static ./
+mkdir -p static/css/
+mkdir -p static/js/
+mkdir -p static/resources/
+cp -a ../../../common/css/* static/css/
+cp -a ../../../common/js/* static/js/
+cp -a ../../../common/resources/* static/resources/
+cp -a ../../../../icon/gnuboat-256-256-transparent.png static/resources/
+
+cd ../../
+codegen/openapi-generator-cli generate -i openapi.yaml -g python-flask -t codegen/templates/ -o src-gen
+
+cd src-gen/
+python3 -m openapi_server
Index: src/webapp/mapservice/codegen/openapi-generator-cli
===================================================================
--- src/webapp/mapservice/codegen/openapi-generator-cli	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/openapi-generator-cli	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,64 @@
+#!/usr/bin/env bash
+####
+# Save as openapi-generator-cli on your PATH. chmod u+x. Enjoy.
+#
+# This script will query github on every invocation to pull the latest released version
+# of openapi-generator.
+#
+# If you want repeatable executions, you can explicitly set a version via
+#    OPENAPI_GENERATOR_VERSION
+# e.g. (in Bash)
+#    export OPENAPI_GENERATOR_VERSION=3.1.0
+#    openapi-generator-cli.sh
+# or
+#    OPENAPI_GENERATOR_VERSION=3.1.0 openapi-generator-cli.sh
+#
+# This is also helpful, for example, if you want want to evaluate a SNAPSHOT version.
+#
+# NOTE: Jars are downloaded on demand from maven into the same directory as this script
+# for every 'latest' version pulled from github. Consider putting this under its own directory.
+####
+set -o pipefail
+
+for cmd in {mvn,jq,curl}; do
+  if ! command -v ${cmd} > /dev/null; then
+  >&2 echo "This script requires '${cmd}' to be installed."
+    exit 1
+  fi
+done
+
+function latest.tag {
+  local uri="https://api.github.com/repos/${1}/releases"
+  local ver=$(curl -s ${uri} | jq -r 'first(.[]|select(.prerelease==false)).tag_name')
+  if [[ $ver == v* ]]; then
+    ver=${ver:1}
+  fi
+  echo $ver
+}
+
+ghrepo=openapitools/openapi-generator
+groupid=org.openapitools
+artifactid=openapi-generator-cli
+ver=${OPENAPI_GENERATOR_VERSION:-$(latest.tag $ghrepo)}
+
+jar=${artifactid}-${ver}.jar
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+
+if [ ! -f ${DIR}/${jar} ]; then
+  repo="central::default::https://repo1.maven.org/maven2/"
+  if [[ ${ver} =~ ^.*-SNAPSHOT$ ]]; then
+      repo="central::default::https://oss.sonatype.org/content/repositories/snapshots"
+  fi
+  mvn org.apache.maven.plugins:maven-dependency-plugin:2.9:get \
+    -DremoteRepositories=${repo} \
+    -Dartifact=${groupid}:${artifactid}:${ver} \
+    -Dtransitive=false \
+    -Ddest=${DIR}/${jar}
+fi
+
+java -ea                          \
+  ${JAVA_OPTS}                    \
+  -Xms512M                        \
+  -Xmx1024M                       \
+  -server                         \
+  -jar ${DIR}/${jar} "$@"
Index: src/webapp/mapservice/codegen/templates/Dockerfile.mustache
===================================================================
--- src/webapp/mapservice/codegen/templates/Dockerfile.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/templates/Dockerfile.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,31 @@
+{{#supportPython2}}
+FROM python:2-alpine
+{{/supportPython2}}
+{{^supportPython2}}
+FROM python:3-alpine
+{{/supportPython2}}
+
+RUN mkdir -p /usr/src/app
+WORKDIR /usr/src/app
+
+COPY requirements.txt /usr/src/app/
+
+{{#supportPython2}}
+RUN pip install --no-cache-dir -r requirements.txt
+{{/supportPython2}}
+{{^supportPython2}}
+RUN pip3 install --no-cache-dir -r requirements.txt
+{{/supportPython2}}
+
+COPY . /usr/src/app
+
+EXPOSE {{serverPort}}
+
+{{#supportPython2}}
+ENTRYPOINT ["python"]
+{{/supportPython2}}
+{{^supportPython2}}
+ENTRYPOINT ["python3"]
+{{/supportPython2}}
+
+CMD ["-m", "{{packageName}}"]
Index: src/webapp/mapservice/codegen/templates/README.mustache
===================================================================
--- src/webapp/mapservice/codegen/templates/README.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/templates/README.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,60 @@
+# OpenAPI generated server
+
+## Overview
+This server was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the
+[OpenAPI-Spec](https://openapis.org) from a remote server, you can easily generate a server stub.  This
+is an example of building a OpenAPI-enabled Flask server.
+
+This example uses the [Connexion](https://github.com/zalando/connexion) library on top of Flask.
+
+## Requirements
+{{#supportPython2}}
+Python 2.7+
+{{/supportPython2}}
+{{^supportPython2}}
+Python 3.5.2+
+{{/supportPython2}}
+
+## Usage
+To run the server, please execute the following from the root directory:
+
+```
+{{#supportPython2}}
+pip install -r requirements.txt
+python -m {{packageName}}
+{{/supportPython2}}
+{{^supportPython2}}
+pip3 install -r requirements.txt
+python3 -m {{packageName}}
+{{/supportPython2}}
+```
+
+and open your browser to here:
+
+```
+http://localhost:{{serverPort}}{{contextPath}}/ui/
+```
+
+Your OpenAPI definition lives here:
+
+```
+http://localhost:{{serverPort}}{{contextPath}}/openapi.json
+```
+
+To launch the integration tests, use tox:
+```
+sudo pip install tox
+tox
+```
+
+## Running with Docker
+
+To run the server on a Docker container, please execute the following from the root directory:
+
+```bash
+# building the image
+docker build -t {{packageName}} .
+
+# starting up a container
+docker run -p {{serverPort}}:{{serverPort}} {{packageName}}
+```
Index: src/webapp/mapservice/codegen/templates/__init__model.mustache
===================================================================
--- src/webapp/mapservice/codegen/templates/__init__model.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/templates/__init__model.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,7 @@
+# coding: utf-8
+
+# flake8: noqa
+from __future__ import absolute_import
+# import models into model package
+{{#models}}{{#model}}from {{modelPackage}}.{{classFilename}} import {{classname}}{{/model}}
+{{/models}}
Index: src/webapp/mapservice/codegen/templates/__init__test.mustache
===================================================================
--- src/webapp/mapservice/codegen/templates/__init__test.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/templates/__init__test.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,16 @@
+import logging
+
+import connexion
+from flask_testing import TestCase
+
+from {{packageName}}.encoder import JSONEncoder
+
+
+class BaseTestCase(TestCase):
+
+    def create_app(self):
+        logging.getLogger('connexion.operation').setLevel('ERROR')
+        app = connexion.App(__name__, specification_dir='../openapi/')
+        app.app.json_encoder = JSONEncoder
+        app.add_api('openapi.yaml')
+        return app.app
Index: src/webapp/mapservice/codegen/templates/__main__.mustache
===================================================================
--- src/webapp/mapservice/codegen/templates/__main__.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/templates/__main__.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,38 @@
+{{#supportPython2}}
+#!/usr/bin/env python
+{{/supportPython2}}
+{{^supportPython2}}
+#!/usr/bin/env python3
+{{/supportPython2}}
+
+import connexion
+from flask_cors import CORS
+from flask import render_template
+
+from {{packageName}} import encoder
+
+from {{packageName}}.server_impl.database.Model import db, User, ApiKey, db_test_setup
+
+app = connexion.App(__name__, specification_dir='./openapi/')
+application = app.app
+CORS(application)
+
+@application.before_first_request
+def create_database():
+	db_test_setup()
+
+@application.route("/mapservice/")
+def index():
+	return render_template('index.html')
+	
+def main():
+	application.json_encoder = encoder.JSONEncoder
+	app.add_api('openapi.yaml', arguments={'title': '{{appName}}'}, validate_responses=True)
+	application.config.from_object('{{packageName}}.server_impl.Config.DevelopmentConfig')
+
+	db.init_app(application)
+
+	app.run(port={{serverPort}})
+
+if __name__ == '__main__':
+	main()
Index: src/webapp/mapservice/codegen/templates/base_model_.mustache
===================================================================
--- src/webapp/mapservice/codegen/templates/base_model_.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/templates/base_model_.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,73 @@
+import pprint
+
+import six
+{{^supportPython2}}
+import typing
+{{/supportPython2}}
+
+from {{packageName}} import util
+{{^supportPython2}}
+
+T = typing.TypeVar('T')
+{{/supportPython2}}
+
+
+class Model(object):
+    # openapiTypes: The key is attribute name and the
+    # value is attribute type.
+    openapi_types = {}
+
+    # attributeMap: The key is attribute name and the
+    # value is json key in definition.
+    attribute_map = {}
+
+    @classmethod
+    def from_dict(cls{{^supportPython2}}: typing.Type[T]{{/supportPython2}}, dikt){{^supportPython2}} -> T{{/supportPython2}}:
+        """Returns the dict as a model"""
+        return util.deserialize_model(dikt, cls)
+
+    def to_dict(self):
+        """Returns the model properties as a dict
+
+        :rtype: dict
+        """
+        result = {}
+
+        for attr, _ in six.iteritems(self.openapi_types):
+            value = getattr(self, attr)
+            if isinstance(value, list):
+                result[attr] = list(map(
+                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+                    value
+                ))
+            elif hasattr(value, "to_dict"):
+                result[attr] = value.to_dict()
+            elif isinstance(value, dict):
+                result[attr] = dict(map(
+                    lambda item: (item[0], item[1].to_dict())
+                    if hasattr(item[1], "to_dict") else item,
+                    value.items()
+                ))
+            else:
+                result[attr] = value
+
+        return result
+
+    def to_str(self):
+        """Returns the string representation of the model
+
+        :rtype: str
+        """
+        return pprint.pformat(self.to_dict())
+
+    def __repr__(self):
+        """For `print` and `pprint`"""
+        return self.to_str()
+
+    def __eq__(self, other):
+        """Returns true if both objects are equal"""
+        return self.__dict__ == other.__dict__
+
+    def __ne__(self, other):
+        """Returns true if both objects are not equal"""
+        return not self == other
Index: src/webapp/mapservice/codegen/templates/controller.mustache
===================================================================
--- src/webapp/mapservice/codegen/templates/controller.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/templates/controller.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,113 @@
+import connexion
+import six
+
+{{#imports}}{{import}}  # noqa: E501
+{{/imports}}
+from {{packageName}} import util
+{{#operations}}
+{{#operation}}
+
+from {{packageName}}.server_impl.controllers import {{classname}}
+
+def {{operationId}}({{#allParams}}{{paramName}}{{^required}}=None{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}):  # noqa: E501
+    """{{#summary}}{{.}}{{/summary}}{{^summary}}{{operationId}}{{/summary}}
+
+    {{#notes}}{{.}}{{/notes}} # noqa: E501
+
+    {{#allParams}}
+    :param {{paramName}}: {{description}}
+        {{^isContainer}}
+            {{#isPrimitiveType}}
+    :type {{paramName}}: {{>param_type}}
+            {{/isPrimitiveType}}
+            {{#isUuid}}
+    :type {{paramName}}: {{>param_type}}
+            {{/isUuid}}
+            {{^isPrimitiveType}}
+                {{#isFile}}
+    :type {{paramName}}: werkzeug.datastructures.FileStorage
+                {{/isFile}}
+                {{^isFile}}
+                    {{^isUuid}}
+    :type {{paramName}}: dict | bytes
+                    {{/isUuid}}
+                {{/isFile}}
+            {{/isPrimitiveType}}
+        {{/isContainer}}
+        {{#isListContainer}}
+            {{#items}}
+                {{#isPrimitiveType}}
+    :type {{paramName}}: List[{{>param_type}}]
+                {{/isPrimitiveType}}
+                {{^isPrimitiveType}}
+    :type {{paramName}}: list | bytes
+                {{/isPrimitiveType}}
+            {{/items}}
+        {{/isListContainer}}
+        {{#isMapContainer}}
+            {{#items}}
+                {{#isPrimitiveType}}
+    :type {{paramName}}: Dict[str, {{>param_type}}]
+                {{/isPrimitiveType}}
+                {{^isPrimitiveType}}
+    :type {{paramName}}: dict | bytes
+                {{/isPrimitiveType}}
+            {{/items}}
+        {{/isMapContainer}}
+    {{/allParams}}
+
+    :rtype: {{#returnType}}{{.}}{{/returnType}}{{^returnType}}None{{/returnType}}
+    """
+    {{#allParams}}
+        {{^isContainer}}
+            {{#isDate}}
+    {{paramName}} = util.deserialize_date({{paramName}})
+            {{/isDate}}
+            {{#isDateTime}}
+    {{paramName}} = util.deserialize_datetime({{paramName}})
+            {{/isDateTime}}
+            {{^isPrimitiveType}}
+                {{^isFile}}
+                    {{^isUuid}}
+    if connexion.request.is_json:
+        {{paramName}} = {{baseType}}.from_dict(connexion.request.get_json())  # noqa: E501
+                    {{/isUuid}}
+                {{/isFile}}
+            {{/isPrimitiveType}}
+        {{/isContainer}}
+        {{#isListContainer}}
+            {{#items}}
+                {{#isDate}}
+    if connexion.request.is_json:
+        {{paramName}} = [util.deserialize_date(s) for s in connexion.request.get_json()]  # noqa: E501
+                {{/isDate}}
+                {{#isDateTime}}
+    if connexion.request.is_json:
+        {{paramName}} = [util.deserialize_datetime(s) for s in connexion.request.get_json()]  # noqa: E501
+                {{/isDateTime}}
+                {{#complexType}}
+    if connexion.request.is_json:
+        {{paramName}} = [{{complexType}}.from_dict(d) for d in connexion.request.get_json()]  # noqa: E501
+                {{/complexType}}
+            {{/items}}
+        {{/isListContainer}}
+        {{#isMapContainer}}
+            {{#items}}
+                {{#isDate}}
+    if connexion.request.is_json:
+        {{paramName}} = {k: util.deserialize_date(v) for k, v in six.iteritems(connexion.request.get_json())}  # noqa: E501
+                {{/isDate}}
+                {{#isDateTime}}
+    if connexion.request.is_json:
+        {{paramName}} = {k: util.deserialize_datetime(v) for k, v in six.iteritems(connexion.request.get_json())}  # noqa: E501
+                {{/isDateTime}}
+                {{#complexType}}
+    if connexion.request.is_json:
+        {{paramName}} = {k: {{baseType}}.from_dict(v) for k, v in six.iteritems(connexion.request.get_json())}  # noqa: E501
+                {{/complexType}}
+            {{/items}}
+        {{/isMapContainer}}
+    {{/allParams}}
+    return {{classname}}.{{operationId}}({{#allParams}}{{paramName}}{{^required}}={{paramName}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
+{{/operation}}
+{{/operations}}
Index: src/webapp/mapservice/codegen/templates/controller_test.mustache
===================================================================
--- src/webapp/mapservice/codegen/templates/controller_test.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/templates/controller_test.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+from __future__ import absolute_import
+import unittest
+
+from flask import json
+from six import BytesIO
+
+{{#imports}}{{import}}  # noqa: E501
+{{/imports}}
+from {{packageName}}.test import BaseTestCase
+
+
+class {{#operations}}Test{{classname}}(BaseTestCase):
+    """{{classname}} integration test stubs"""
+
+    {{#operation}}
+    {{#vendorExtensions.x-skip-test}}
+    @unittest.skip("{{reason}}")
+    {{/vendorExtensions.x-skip-test}}
+    def test_{{operationId}}(self):
+        """Test case for {{{operationId}}}
+
+        {{{summary}}}
+        """
+        {{#bodyParam}}
+        {{paramName}} = {{{example}}}
+        {{/bodyParam}}
+        {{#queryParams}}
+        {{#-first}}query_string = [{{/-first}}{{^-first}}                {{/-first}}('{{paramName}}', {{{example}}}){{#hasMore}},{{/hasMore}}{{#-last}}]{{/-last}}
+        {{/queryParams}}
+        headers = { {{#vendorExtensions.x-prefered-produce}}
+            'Accept': '{{mediaType}}',{{/vendorExtensions.x-prefered-produce}}{{#vendorExtensions.x-prefered-consume}}
+            'Content-Type': '{{mediaType}}',{{/vendorExtensions.x-prefered-consume}}{{#headerParams}}
+            '{{paramName}}': {{{example}}},{{/headerParams}}{{#authMethods}}
+            {{#isOAuth}}'Authorization': 'Bearer special-key',{{/isOAuth}}{{#isApiKey}}'{{name}}': 'special-key',{{/isApiKey}}{{#isBasicBasic}}'Authorization': 'BasicZm9vOmJhcg==',{{/isBasicBasic}}{{#isBasicBearer}}'Authorization': 'Bearer special-key',{{/isBasicBearer}}{{/authMethods}}
+        }
+        {{#formParams}}
+        {{#-first}}data = dict({{/-first}}{{^-first}}            {{/-first}}{{paramName}}={{{example}}}{{#hasMore}},{{/hasMore}}{{#-last}}){{/-last}}
+        {{/formParams}}
+        response = self.client.open(
+            '{{#contextPath}}{{{.}}}{{/contextPath}}{{{path}}}'{{#pathParams}}{{#-first}}.format({{/-first}}{{paramName}}={{{example}}}{{#hasMore}}, {{/hasMore}}{{^hasMore}}){{/hasMore}}{{/pathParams}},
+            method='{{httpMethod}}',
+            headers=headers{{#bodyParam}},
+            data=json.dumps({{paramName}}){{^consumes}},
+            content_type='application/json'{{/consumes}}{{/bodyParam}}{{#formParams}}{{#-first}},
+            data=data{{/-first}}{{/formParams}}{{#consumes}}{{#-first}},
+            content_type='{{{mediaType}}}'{{/-first}}{{/consumes}}{{#queryParams}}{{#-first}},
+            query_string=query_string{{/-first}}{{/queryParams}})
+        self.assert200(response,
+                       'Response body is : ' + response.data.decode('utf-8'))
+
+   {{/operation}}
+{{/operations}}
+
+if __name__ == '__main__':
+    unittest.main()
Index: src/webapp/mapservice/codegen/templates/dockerignore.mustache
===================================================================
--- src/webapp/mapservice/codegen/templates/dockerignore.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/templates/dockerignore.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,72 @@
+.travis.yaml
+.openapi-generator-ignore
+README.md
+tox.ini
+git_push.sh
+test-requirements.txt
+setup.py
+
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+*$py.class
+
+# C extensions
+*.so
+
+# Distribution / packaging
+.Python
+env/
+build/
+develop-eggs/
+dist/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+*.egg-info/
+.installed.cfg
+*.egg
+
+# PyInstaller
+#  Usually these files are written by a python script from a template
+#  before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+.coverage
+.coverage.*
+.cache
+nosetests.xml
+coverage.xml
+*,cover
+.hypothesis/
+venv/
+.python-version
+
+# Translations
+*.mo
+*.pot
+
+# Django stuff:
+*.log
+
+# Sphinx documentation
+docs/_build/
+
+# PyBuilder
+target/
+
+#Ipython Notebook
+.ipynb_checkpoints
Index: src/webapp/mapservice/codegen/templates/encoder.mustache
===================================================================
--- src/webapp/mapservice/codegen/templates/encoder.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/templates/encoder.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,20 @@
+from connexion.apps.flask_app import FlaskJSONEncoder
+import six
+
+from {{modelPackage}}.base_model_ import Model
+
+
+class JSONEncoder(FlaskJSONEncoder):
+    include_nulls = False
+
+    def default(self, o):
+        if isinstance(o, Model):
+            dikt = {}
+            for attr, _ in six.iteritems(o.openapi_types):
+                value = getattr(o, attr)
+                if value is None and not self.include_nulls:
+                    continue
+                attr = o.attribute_map[attr]
+                dikt[attr] = value
+            return dikt
+        return FlaskJSONEncoder.default(self, o)
Index: src/webapp/mapservice/codegen/templates/git_push.sh.mustache
===================================================================
--- src/webapp/mapservice/codegen/templates/git_push.sh.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/templates/git_push.sh.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,52 @@
+#!/bin/sh
+# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
+#
+# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update"
+
+git_user_id=$1
+git_repo_id=$2
+release_note=$3
+
+if [ "$git_user_id" = "" ]; then
+    git_user_id="{{{gitUserId}}}"
+    echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
+fi
+
+if [ "$git_repo_id" = "" ]; then
+    git_repo_id="{{{gitRepoId}}}"
+    echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
+fi
+
+if [ "$release_note" = "" ]; then
+    release_note="{{{releaseNote}}}"
+    echo "[INFO] No command line input provided. Set \$release_note to $release_note"
+fi
+
+# Initialize the local directory as a Git repository
+git init
+
+# Adds the files in the local repository and stages them for commit.
+git add .
+
+# Commits the tracked changes and prepares them to be pushed to a remote repository.
+git commit -m "$release_note"
+
+# Sets the new remote
+git_remote=`git remote`
+if [ "$git_remote" = "" ]; then # git remote not defined
+
+    if [ "$GIT_TOKEN" = "" ]; then
+        echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
+        git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
+    else
+        git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
+    fi
+
+fi
+
+git pull origin master
+
+# Pushes (Forces) the changes in the local repository up to the remote repository
+echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
+git push origin master 2>&1 | grep -v 'To https'
+
Index: src/webapp/mapservice/codegen/templates/gitignore.mustache
===================================================================
--- src/webapp/mapservice/codegen/templates/gitignore.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/templates/gitignore.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,64 @@
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+*$py.class
+
+# C extensions
+*.so
+
+# Distribution / packaging
+.Python
+env/
+build/
+develop-eggs/
+dist/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+*.egg-info/
+.installed.cfg
+*.egg
+
+# PyInstaller
+#  Usually these files are written by a python script from a template
+#  before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+.coverage
+.coverage.*
+.cache
+nosetests.xml
+coverage.xml
+*,cover
+.hypothesis/
+venv/
+.python-version
+
+# Translations
+*.mo
+*.pot
+
+# Django stuff:
+*.log
+
+# Sphinx documentation
+docs/_build/
+
+# PyBuilder
+target/
+
+#Ipython Notebook
+.ipynb_checkpoints
Index: src/webapp/mapservice/codegen/templates/model.mustache
===================================================================
--- src/webapp/mapservice/codegen/templates/model.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/templates/model.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,169 @@
+# coding: utf-8
+
+from __future__ import absolute_import
+from datetime import date, datetime  # noqa: F401
+
+from typing import List, Dict  # noqa: F401
+
+from {{modelPackage}}.base_model_ import Model
+{{#models}}
+{{#model}}
+{{#pyImports}}
+{{import}}
+{{/pyImports}}
+{{/model}}
+{{/models}}
+from {{packageName}} import util
+
+{{#imports}}
+{{{import}}}  # noqa: E501
+{{/imports}}
+
+{{#models}}
+{{#model}}
+class {{classname}}(Model):
+    """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+
+    Do not edit the class manually.
+    """{{#allowableValues}}
+
+    """
+    allowed enum values
+    """
+{{#enumVars}}
+    {{name}} = {{{value}}}{{^-last}}
+{{/-last}}
+{{/enumVars}}{{/allowableValues}}
+
+    def __init__(self{{#vars}}, {{name}}={{#defaultValue}}{{{defaultValue}}}{{/defaultValue}}{{^defaultValue}}None{{/defaultValue}}{{/vars}}):  # noqa: E501
+        """{{classname}} - a model defined in OpenAPI
+
+        {{#vars}}
+        :param {{name}}: The {{name}} of this {{classname}}.  # noqa: E501
+        :type {{name}}: {{dataType}}
+        {{/vars}}
+        """
+        self.openapi_types = {
+{{#vars}}
+            '{{name}}': {{{dataType}}}{{#hasMore}},{{/hasMore}}
+{{/vars}}
+        }
+
+        self.attribute_map = {
+{{#vars}}
+            '{{name}}': '{{baseName}}'{{#hasMore}},{{/hasMore}}
+{{/vars}}
+        }
+{{#vars}}{{#-first}}
+{{/-first}}
+        self._{{name}} = {{name}}
+{{/vars}}
+
+    @classmethod
+    def from_dict(cls, dikt){{^supportPython2}} -> '{{classname}}'{{/supportPython2}}:
+        """Returns the dict as a model
+
+        :param dikt: A dict.
+        :type: dict
+        :return: The {{name}} of this {{classname}}.  # noqa: E501
+        :rtype: {{classname}}
+        """
+        return util.deserialize_model(dikt, cls){{#vars}}{{#-first}}
+
+{{/-first}}
+    @property
+    def {{name}}(self):
+        """Gets the {{name}} of this {{classname}}.
+
+        {{#description}}
+        {{{description}}}  # noqa: E501
+        {{/description}}
+
+        :return: The {{name}} of this {{classname}}.
+        :rtype: {{dataType}}
+        """
+        return self._{{name}}
+
+    @{{name}}.setter
+    def {{name}}(self, {{name}}):
+        """Sets the {{name}} of this {{classname}}.
+
+        {{#description}}
+        {{{description}}}  # noqa: E501
+        {{/description}}
+
+        :param {{name}}: The {{name}} of this {{classname}}.
+        :type {{name}}: {{dataType}}
+        """
+{{#isEnum}}
+        allowed_values = [{{#allowableValues}}{{#values}}"{{{this}}}"{{^-last}}, {{/-last}}{{/values}}{{/allowableValues}}]  # noqa: E501
+{{#isContainer}}
+{{#isListContainer}}
+        if not set({{{name}}}).issubset(set(allowed_values)):
+            raise ValueError(
+                "Invalid values for `{{{name}}}` [{0}], must be a subset of [{1}]"  # noqa: E501
+                .format(", ".join(map(str, set({{{name}}}) - set(allowed_values))),  # noqa: E501
+                        ", ".join(map(str, allowed_values)))
+            )
+{{/isListContainer}}
+{{#isMapContainer}}
+        if not set({{{name}}}.keys()).issubset(set(allowed_values)):
+            raise ValueError(
+                "Invalid keys in `{{{name}}}` [{0}], must be a subset of [{1}]"  # noqa: E501
+                .format(", ".join(map(str, set({{{name}}}.keys()) - set(allowed_values))),  # noqa: E501
+                        ", ".join(map(str, allowed_values)))
+            )
+{{/isMapContainer}}
+{{/isContainer}}
+{{^isContainer}}
+        if {{{name}}} not in allowed_values:
+            raise ValueError(
+                "Invalid value for `{{{name}}}` ({0}), must be one of {1}"
+                .format({{{name}}}, allowed_values)
+            )
+{{/isContainer}}
+{{/isEnum}}
+{{^isEnum}}
+{{#required}}
+        if {{name}} is None:
+            raise ValueError("Invalid value for `{{name}}`, must not be `None`")  # noqa: E501
+{{/required}}
+{{#hasValidation}}
+{{#maxLength}}
+        if {{name}} is not None and len({{name}}) > {{maxLength}}:
+            raise ValueError("Invalid value for `{{name}}`, length must be less than or equal to `{{maxLength}}`")  # noqa: E501
+{{/maxLength}}
+{{#minLength}}
+        if {{name}} is not None and len({{name}}) < {{minLength}}:
+            raise ValueError("Invalid value for `{{name}}`, length must be greater than or equal to `{{minLength}}`")  # noqa: E501
+{{/minLength}}
+{{#maximum}}
+        if {{name}} is not None and {{name}} >{{#exclusiveMaximum}}={{/exclusiveMaximum}} {{maximum}}:  # noqa: E501
+            raise ValueError("Invalid value for `{{name}}`, must be a value less than {{^exclusiveMaximum}}or equal to {{/exclusiveMaximum}}`{{maximum}}`")  # noqa: E501
+{{/maximum}}
+{{#minimum}}
+        if {{name}} is not None and {{name}} <{{#exclusiveMinimum}}={{/exclusiveMinimum}} {{minimum}}:  # noqa: E501
+            raise ValueError("Invalid value for `{{name}}`, must be a value greater than {{^exclusiveMinimum}}or equal to {{/exclusiveMinimum}}`{{minimum}}`")  # noqa: E501
+{{/minimum}}
+{{#pattern}}
+        if {{name}} is not None and not re.search(r'{{{vendorExtensions.x-regex}}}', {{name}}{{#vendorExtensions.x-modifiers}}{{#-first}}, flags={{/-first}}re.{{.}}{{^-last}} | {{/-last}}{{/vendorExtensions.x-modifiers}}):  # noqa: E501
+            raise ValueError("Invalid value for `{{name}}`, must be a follow pattern or equal to `{{{pattern}}}`")  # noqa: E501
+{{/pattern}}
+{{#maxItems}}
+        if {{name}} is not None and len({{name}}) > {{maxItems}}:
+            raise ValueError("Invalid value for `{{name}}`, number of items must be less than or equal to `{{maxItems}}`")  # noqa: E501
+{{/maxItems}}
+{{#minItems}}
+        if {{name}} is not None and len({{name}}) < {{minItems}}:
+            raise ValueError("Invalid value for `{{name}}`, number of items must be greater than or equal to `{{minItems}}`")  # noqa: E501
+{{/minItems}}
+{{/hasValidation}}
+{{/isEnum}}
+
+        self._{{name}} = {{name}}{{^-last}}
+
+{{/-last}}
+{{/vars}}
+
+{{/model}}
+{{/models}}
Index: src/webapp/mapservice/codegen/templates/openapi.mustache
===================================================================
--- src/webapp/mapservice/codegen/templates/openapi.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/templates/openapi.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,1 @@
+{{{openapi-yaml}}}
Index: src/webapp/mapservice/codegen/templates/param_type.mustache
===================================================================
--- src/webapp/mapservice/codegen/templates/param_type.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/templates/param_type.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,1 @@
+{{#isString}}str{{/isString}}{{#isInteger}}int{{/isInteger}}{{#isLong}}int{{/isLong}}{{#isFloat}}float{{/isFloat}}{{#isDouble}}float{{/isDouble}}{{#isByteArray}}str{{/isByteArray}}{{#isBinary}}str{{/isBinary}}{{#isBoolean}}bool{{/isBoolean}}{{#isDate}}str{{/isDate}}{{#isDateTime}}str{{/isDateTime}}
Index: src/webapp/mapservice/codegen/templates/requirements.mustache
===================================================================
--- src/webapp/mapservice/codegen/templates/requirements.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/templates/requirements.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,7 @@
+connexion == 2.0.2
+swagger-ui-bundle == 0.0.2
+python_dateutil == 2.6.0
+{{#supportPython2}}
+typing == 3.5.2.2
+{{/supportPython2}}
+setuptools >= 21.0.0
Index: src/webapp/mapservice/codegen/templates/security_controller_.mustache
===================================================================
--- src/webapp/mapservice/codegen/templates/security_controller_.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/templates/security_controller_.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,90 @@
+from typing import List
+
+{{#authMethods}}
+{{#isOAuth}}
+
+def info_from_{{name}}(token):
+    """
+    Validate and decode token.
+    Returned value will be passed in 'token_info' parameter of your operation function, if there is one.
+    'sub' or 'uid' will be set in 'user' parameter of your operation function, if there is one.
+    'scope' or 'scopes' will be passed to scope validation function.
+
+    :param token Token provided by Authorization header
+    :type token: str
+    :return: Decoded token information or None if token is invalid
+    :rtype: dict | None
+    """
+    return {'scopes': ['read:pets', 'write:pets'], 'uid': 'user_id'}
+
+
+def validate_scope_{{name}}(required_scopes, token_scopes):
+    """
+    Validate required scopes are included in token scope
+
+    :param required_scopes Required scope to access called API
+    :type required_scopes: List[str]
+    :param token_scopes Scope present in token
+    :type token_scopes: List[str]
+    :return: True if access to called API is allowed
+    :rtype: bool
+    """
+    return set(required_scopes).issubset(set(token_scopes))
+
+{{/isOAuth}}
+{{#isApiKey}}
+
+def info_from_{{name}}(api_key, required_scopes):
+    """
+    Check and retrieve authentication information from api_key.
+    Returned value will be passed in 'token_info' parameter of your operation function, if there is one.
+    'sub' or 'uid' will be set in 'user' parameter of your operation function, if there is one.
+
+    :param api_key API key provided by Authorization header
+    :type api_key: str
+    :param required_scopes Always None. Used for other authentication method
+    :type required_scopes: None
+    :return: Information attached to provided api_key or None if api_key is invalid or does not allow access to called API
+    :rtype: dict | None
+    """
+    return {'uid': 'user_id'}
+
+{{/isApiKey}}
+{{#isBasicBasic}}
+
+def info_from_{{name}}(username, password, required_scopes):
+    """
+    Check and retrieve authentication information from basic auth.
+    Returned value will be passed in 'token_info' parameter of your operation function, if there is one.
+    'sub' or 'uid' will be set in 'user' parameter of your operation function, if there is one.
+
+    :param username login provided by Authorization header
+    :type username: str
+    :param password password provided by Authorization header
+    :type password: str
+    :param required_scopes Always None. Used for other authentication method
+    :type required_scopes: None
+    :return: Information attached to user or None if credentials are invalid or does not allow access to called API
+    :rtype: dict | None
+    """
+    return {'uid': 'user_id'}
+
+{{/isBasicBasic}}
+{{#isBasicBearer}}
+
+def info_from_{{name}}(token):
+    """
+    Check and retrieve authentication information from custom bearer token.
+    Returned value will be passed in 'token_info' parameter of your operation function, if there is one.
+    'sub' or 'uid' will be set in 'user' parameter of your operation function, if there is one.
+
+    :param token Token provided by Authorization header
+    :type token: str
+    :return: Decoded token information or None if token is invalid
+    :rtype: dict | None
+    """
+    return {'uid': 'user_id'}
+
+{{/isBasicBearer}}
+{{/authMethods}}
+
Index: src/webapp/mapservice/codegen/templates/setup.mustache
===================================================================
--- src/webapp/mapservice/codegen/templates/setup.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/templates/setup.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,40 @@
+# coding: utf-8
+
+import sys
+from setuptools import setup, find_packages
+
+NAME = "{{packageName}}"
+VERSION = "{{packageVersion}}"
+{{#apiInfo}}{{#apis}}{{^hasMore}}
+# To install the library, run the following
+#
+# python setup.py install
+#
+# prerequisite: setuptools
+# http://pypi.python.org/pypi/setuptools
+
+REQUIRES = [
+    "connexion==2.0.0",
+    "swagger-ui-bundle==0.0.2",
+    "python_dateutil==2.6.0"{{#supportPython2}},
+    "typing==3.5.2.2"{{/supportPython2}}
+]
+
+setup(
+    name=NAME,
+    version=VERSION,
+    description="{{appName}}",
+    author_email="{{infoEmail}}",
+    url="{{packageUrl}}",
+    keywords=["OpenAPI", "{{appName}}"],
+    install_requires=REQUIRES,
+    packages=find_packages(),
+    package_data={'': ['openapi/openapi.yaml']},
+    include_package_data=True,
+    entry_points={
+        'console_scripts': ['{{packageName}}={{packageName}}.__main__:main']},
+    long_description="""\
+    {{appDescription}}
+    """
+)
+{{/hasMore}}{{/apis}}{{/apiInfo}}
Index: src/webapp/mapservice/codegen/templates/test-requirements.mustache
===================================================================
--- src/webapp/mapservice/codegen/templates/test-requirements.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/templates/test-requirements.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,6 @@
+flask_testing==0.6.1
+coverage>=4.0.3
+nose>=1.3.7
+pluggy>=0.3.1
+py>=1.4.31
+randomize>=0.13
Index: src/webapp/mapservice/codegen/templates/tox.mustache
===================================================================
--- src/webapp/mapservice/codegen/templates/tox.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/templates/tox.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,10 @@
+[tox]
+envlist = {{#supportPython2}}py27, {{/supportPython2}}py3
+
+[testenv]
+deps=-r{toxinidir}/requirements.txt
+     -r{toxinidir}/test-requirements.txt
+
+commands=
+   nosetests \
+      []
Index: src/webapp/mapservice/codegen/templates/travis.mustache
===================================================================
--- src/webapp/mapservice/codegen/templates/travis.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/templates/travis.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,16 @@
+# ref: https://docs.travis-ci.com/user/languages/python
+language: python
+python:
+{{#supportPython2}}
+  - "2.7"
+{{/supportPython2}}
+  - "3.2"
+  - "3.3"
+  - "3.4"
+  - "3.5"
+  #- "3.5-dev" # 3.5 development branch
+  #- "nightly" # points to the latest development branch e.g. 3.6-dev
+# command to install dependencies
+install: "pip install -r requirements.txt"
+# command to run tests
+script: nosetests
Index: src/webapp/mapservice/codegen/templates/util.mustache
===================================================================
--- src/webapp/mapservice/codegen/templates/util.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/codegen/templates/util.mustache	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,141 @@
+import datetime
+
+import six
+import typing
+
+
+def _deserialize(data, klass):
+    """Deserializes dict, list, str into an object.
+
+    :param data: dict, list or str.
+    :param klass: class literal, or string of class name.
+
+    :return: object.
+    """
+    if data is None:
+        return None
+
+    if klass in six.integer_types or klass in (float, str, bool):
+        return _deserialize_primitive(data, klass)
+    elif klass == object:
+        return _deserialize_object(data)
+    elif klass == datetime.date:
+        return deserialize_date(data)
+    elif klass == datetime.datetime:
+        return deserialize_datetime(data)
+    elif type(klass) == typing.GenericMeta:
+        if klass.__extra__ == list:
+            return _deserialize_list(data, klass.__args__[0])
+        if klass.__extra__ == dict:
+            return _deserialize_dict(data, klass.__args__[1])
+    else:
+        return deserialize_model(data, klass)
+
+
+def _deserialize_primitive(data, klass):
+    """Deserializes to primitive type.
+
+    :param data: data to deserialize.
+    :param klass: class literal.
+
+    :return: int, long, float, str, bool.
+    :rtype: int | long | float | str | bool
+    """
+    try:
+        value = klass(data)
+    except UnicodeEncodeError:
+        value = six.u(data)
+    except TypeError:
+        value = data
+    return value
+
+
+def _deserialize_object(value):
+    """Return an original value.
+
+    :return: object.
+    """
+    return value
+
+
+def deserialize_date(string):
+    """Deserializes string to date.
+
+    :param string: str.
+    :type string: str
+    :return: date.
+    :rtype: date
+    """
+    try:
+        from dateutil.parser import parse
+        return parse(string).date()
+    except ImportError:
+        return string
+
+
+def deserialize_datetime(string):
+    """Deserializes string to datetime.
+
+    The string should be in iso8601 datetime format.
+
+    :param string: str.
+    :type string: str
+    :return: datetime.
+    :rtype: datetime
+    """
+    try:
+        from dateutil.parser import parse
+        return parse(string)
+    except ImportError:
+        return string
+
+
+def deserialize_model(data, klass):
+    """Deserializes list or dict to model.
+
+    :param data: dict, list.
+    :type data: dict | list
+    :param klass: class literal.
+    :return: model object.
+    """
+    instance = klass()
+
+    if not instance.openapi_types:
+        return data
+
+    for attr, attr_type in six.iteritems(instance.openapi_types):
+        if data is not None \
+                and instance.attribute_map[attr] in data \
+                and isinstance(data, (list, dict)):
+            value = data[instance.attribute_map[attr]]
+            setattr(instance, attr, _deserialize(value, attr_type))
+
+    return instance
+
+
+def _deserialize_list(data, boxed_type):
+    """Deserializes a list and its elements.
+
+    :param data: list to deserialize.
+    :type data: list
+    :param boxed_type: class literal.
+
+    :return: deserialized list.
+    :rtype: list
+    """
+    return [_deserialize(sub_data, boxed_type)
+            for sub_data in data]
+
+
+def _deserialize_dict(data, boxed_type):
+    """Deserializes a dict and its elements.
+
+    :param data: dict to deserialize.
+    :type data: dict
+    :param boxed_type: class literal.
+
+    :return: deserialized dict.
+    :rtype: dict
+    """
+    return {k: _deserialize(v, boxed_type)
+            for k, v in six.iteritems(data)}
Index: src/webapp/mapservice/openapi.yaml
===================================================================
--- src/webapp/mapservice/openapi.yaml	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/openapi.yaml	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,294 @@
+openapi: 3.0.0
+info:
+  title: GNUBoat Mapservice API
+  contact:
+    name: EngSaS - Engineering Solutions and Services Langenbach
+    url: 'http://www.engsas.com'
+    email: info@engsas.de
+  license:
+    name: GPL 3
+    url: 'https://www.gnu.org/licenses/gpl-3.0.en.html'
+  version: v1
+  description: API to upload log files with water depth to GNUBoat server
+servers:
+  - url: 'https://gnuboat.engsas.com/mapservice/{version}'
+    description: The production API server
+    variables:
+      version:
+        default: v1
+  - url: 'http://localhost:8080/mapservice/{version}'
+    description: The local flask development url
+    variables:
+      version:
+        default: v1
+paths:
+  /waters:
+    get:
+      description: Returns all waters
+      tags:
+        - waters
+      summary: Find waters by id
+      operationId: watersGet
+      parameters:
+        - name: name
+          in: header
+          schema:
+            $ref: '#/components/schemas/item_name'
+        - name: manager
+          in: header
+          schema:
+            $ref: '#/components/schemas/username'
+        - $ref: '#/components/parameters/orderBy'
+        - $ref: '#/components/parameters/offset'
+        - $ref: '#/components/parameters/limit'
+      responses:
+        '200':
+          description: OK
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/waters'
+              examples:
+                Waters:
+                  $ref: '#/components/examples/waters'
+    post:
+      description: Adds a new water to the database
+      tags:
+        - waters
+      summary: Add a new water
+      security:
+        - basicAuth: []
+        - apiKeyAuth: []
+      requestBody:
+        description: item id of water is going to be ignored
+        content:
+          application/json:
+            schema:
+              $ref: '#/components/schemas/WaterCreation'
+            examples:
+              Water:
+                $ref: '#/components/examples/WaterCreation'
+      responses:
+        '201':
+          description: Water created
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/Water'
+              examples:
+                Water:
+                  $ref: '#/components/examples/Water'
+        '400':
+          $ref: '#/components/responses/BadRequest'
+        '401':
+          $ref: '#/components/responses/Unauthorized'
+  '/waters/{id}':
+    get:
+      description: Returns the water identified by id
+      tags:
+        - waters
+      summary: Represents a water
+      operationId: waterGetById
+      parameters:
+        - name: id
+          in: path
+          description: Item ID
+          required: true
+          schema:
+            $ref: '#/components/schemas/item_id'
+      responses:
+        '200':
+          description: OK
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/Water'
+              examples:
+                Water:
+                  $ref: '#/components/examples/Water'
+        '404':
+          $ref: '#/components/responses/NotFound'
+components:
+  securitySchemes:
+    basicAuth:
+      type: http
+      scheme: basic
+      x-basicInfoFunc: openapi_server.server_impl.security.Security.auth_basic
+    apiKeyAuth:
+      type: apiKey
+      in: header
+      name: X-API-KEY
+      x-apikeyInfoFunc: openapi_server.server_impl.security.Security.auth_api
+  schemas:
+    username:
+      title: Username
+      type: string
+    item_id:
+      title: Item ID
+      type: integer
+      format: int32
+    item_name:
+      title: Item Name
+      type: string
+    osm_type:
+      maxLength: 1
+      minLength: 1
+      type: string
+    Water:
+      title: Water
+      type: object
+      properties:
+        water_id:
+          $ref: '#/components/schemas/item_id'
+        name:
+          $ref: '#/components/schemas/item_name'
+        manager:
+          $ref: '#/components/schemas/username'
+        osm_id:
+          $ref: '#/components/schemas/item_id'
+        osm_type:
+          $ref: '#/components/schemas/osm_type'
+        osm_class:
+          $ref: '#/components/schemas/osm_type'
+      required:
+        - water_id
+        - name
+    WaterCreation:
+      title: Water
+      type: object
+      properties:
+        name:
+          $ref: '#/components/schemas/item_name'
+        osm_id:
+          $ref: '#/components/schemas/item_id'
+        osm_type:
+          $ref: '#/components/schemas/osm_type'
+      required:
+        - name
+    waters:
+      title: waters
+      type: array
+      items:
+        $ref: '#/components/schemas/Water'
+    order:
+      title: order
+      enum:
+        - desc
+        - asc
+      type: string
+      default: asc
+      description: |
+        Sort order:
+          * `asc` - Ascending, from A to Z
+          * `desc` - Descending, from Z to A
+      example: asc
+    HttpError:
+      title: HTTP Error Response Object
+      type: object
+      properties:
+        code:
+          type: integer
+        message:
+          type: string
+      required:
+        - code
+        - message
+  parameters:
+    orderBy:
+      name: orderBy
+      in: query
+      description: 'Order by field: name'
+      schema:
+        type: string
+        default: name
+    order:
+      name: order
+      in: query
+      description: Order
+      schema:
+        $ref: '#/components/schemas/order'
+    offset:
+      name: offset
+      in: query
+      description: >-
+        Skip over a number of elements by specifying an offset value for the
+        query
+      schema:
+        type: integer
+        format: int32
+        default: 0
+        example: 0
+    limit:
+      name: limit
+      in: query
+      description: Limit the number of elements on the response
+      style: form
+      explode: true
+      schema:
+        type: integer
+        format: int32
+        default: 10
+        example: 10
+  examples:
+    Water:
+      value:
+        water_id: 1
+        name: Mississippi
+        osm_id: 1756854
+        osm_type: R
+        link: 'http://gnuboat.engsas.com/mapservice/v1/waters/1'
+      summary: A water example object
+    WaterCreation:
+      value:
+        name: Mississippi
+        osm_id: 1756854
+        osm_type: R
+      summary: A water example object for creation of a water
+    waters:
+      value:
+        - water_id: 1
+          name: Mississippi
+          osm_id: 1756854
+          osm_type: R
+          link: 'http://gnuboat.engsas.com/mapservice/v1/waters/1'
+        - water_id: 2
+          name: Bodensee
+          link: 'http://gnuboat.engsas.com/mapservice/v1/waters/2'
+      summary: A sample list with waters
+    HttpError:
+      value:
+        code: 404
+        message: Water with id 999999 not found
+  responses:
+    BadRequest:
+      description: Bad Request (400)
+      content:
+        application/json:
+          schema:
+            $ref: '#/components/schemas/HttpError'
+          examples:
+            HttpError:
+              $ref: '#/components/examples/HttpError'
+    Unauthorized:
+      description: Unauthorized (401) acces to resource
+      content:
+        application/json:
+          schema:
+            $ref: '#/components/schemas/HttpError'
+          examples:
+            HttpError:
+              $ref: '#/components/examples/HttpError'
+    NotFound:
+      description: Water with given Id not found
+      content:
+        application/json:
+          schema:
+            $ref: '#/components/schemas/HttpError'
+          examples:
+            HttpError:
+              $ref: '#/components/examples/HttpError'
+tags:
+  - name: waters
+    description: >-
+      A water is a river (like Mississippi, lake (Lake Ontario), or a sea (North
+      Sea)
Index: src/webapp/mapservice/src-gen/.dockerignore
===================================================================
--- src/webapp/mapservice/src-gen/.dockerignore	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/.dockerignore	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,72 @@
+.travis.yaml
+.openapi-generator-ignore
+README.md
+tox.ini
+git_push.sh
+test-requirements.txt
+setup.py
+
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+*$py.class
+
+# C extensions
+*.so
+
+# Distribution / packaging
+.Python
+env/
+build/
+develop-eggs/
+dist/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+*.egg-info/
+.installed.cfg
+*.egg
+
+# PyInstaller
+#  Usually these files are written by a python script from a template
+#  before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+.coverage
+.coverage.*
+.cache
+nosetests.xml
+coverage.xml
+*,cover
+.hypothesis/
+venv/
+.python-version
+
+# Translations
+*.mo
+*.pot
+
+# Django stuff:
+*.log
+
+# Sphinx documentation
+docs/_build/
+
+# PyBuilder
+target/
+
+#Ipython Notebook
+.ipynb_checkpoints
Index: src/webapp/mapservice/src-gen/.gitignore
===================================================================
--- src/webapp/mapservice/src-gen/.gitignore	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/.gitignore	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,64 @@
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+*$py.class
+
+# C extensions
+*.so
+
+# Distribution / packaging
+.Python
+env/
+build/
+develop-eggs/
+dist/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+*.egg-info/
+.installed.cfg
+*.egg
+
+# PyInstaller
+#  Usually these files are written by a python script from a template
+#  before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+.coverage
+.coverage.*
+.cache
+nosetests.xml
+coverage.xml
+*,cover
+.hypothesis/
+venv/
+.python-version
+
+# Translations
+*.mo
+*.pot
+
+# Django stuff:
+*.log
+
+# Sphinx documentation
+docs/_build/
+
+# PyBuilder
+target/
+
+#Ipython Notebook
+.ipynb_checkpoints
Index: src/webapp/mapservice/src-gen/.openapi-generator-ignore
===================================================================
--- src/webapp/mapservice/src-gen/.openapi-generator-ignore	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/.openapi-generator-ignore	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,23 @@
+# OpenAPI Generator Ignore
+# Generated by openapi-generator https://github.com/openapitools/openapi-generator
+
+# Use this file to prevent files from being overwritten by the generator.
+# The patterns follow closely to .gitignore or .dockerignore.
+
+# As an example, the C# client generator defines ApiClient.cs.
+# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
+#ApiClient.cs
+
+# You can match any string of characters against a directory, file or extension with a single asterisk (*):
+#foo/*/qux
+# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
+
+# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
+#foo/**/qux
+# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
+
+# You can also negate patterns with an exclamation (!).
+# For example, you can ignore all files in a docs folder with the file extension .md:
+#docs/*.md
+# Then explicitly reverse the ignore rule for a single file:
+#!docs/README.md
Index: src/webapp/mapservice/src-gen/.openapi-generator/VERSION
===================================================================
--- src/webapp/mapservice/src-gen/.openapi-generator/VERSION	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/.openapi-generator/VERSION	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,1 @@
+3.3.4
Index: src/webapp/mapservice/src-gen/.travis.yml
===================================================================
--- src/webapp/mapservice/src-gen/.travis.yml	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/.travis.yml	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,13 @@
+# ref: https://docs.travis-ci.com/user/languages/python
+language: python
+python:
+  - "3.2"
+  - "3.3"
+  - "3.4"
+  - "3.5"
+  #- "3.5-dev" # 3.5 development branch
+  #- "nightly" # points to the latest development branch e.g. 3.6-dev
+# command to install dependencies
+install: "pip install -r requirements.txt"
+# command to run tests
+script: nosetests
Index: src/webapp/mapservice/src-gen/Dockerfile
===================================================================
--- src/webapp/mapservice/src-gen/Dockerfile	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/Dockerfile	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,16 @@
+FROM python:3-alpine
+
+RUN mkdir -p /usr/src/app
+WORKDIR /usr/src/app
+
+COPY requirements.txt /usr/src/app/
+
+RUN pip3 install --no-cache-dir -r requirements.txt
+
+COPY . /usr/src/app
+
+EXPOSE 8080
+
+ENTRYPOINT ["python3"]
+
+CMD ["-m", "openapi_server"]
Index: src/webapp/mapservice/src-gen/README.md
===================================================================
--- src/webapp/mapservice/src-gen/README.md	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/README.md	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,49 @@
+# OpenAPI generated server
+
+## Overview
+This server was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the
+[OpenAPI-Spec](https://openapis.org) from a remote server, you can easily generate a server stub.  This
+is an example of building a OpenAPI-enabled Flask server.
+
+This example uses the [Connexion](https://github.com/zalando/connexion) library on top of Flask.
+
+## Requirements
+Python 3.5.2+
+
+## Usage
+To run the server, please execute the following from the root directory:
+
+```
+pip3 install -r requirements.txt
+python3 -m openapi_server
+```
+
+and open your browser to here:
+
+```
+http://localhost:8080/mapservice/v1/ui/
+```
+
+Your OpenAPI definition lives here:
+
+```
+http://localhost:8080/mapservice/v1/openapi.json
+```
+
+To launch the integration tests, use tox:
+```
+sudo pip install tox
+tox
+```
+
+## Running with Docker
+
+To run the server on a Docker container, please execute the following from the root directory:
+
+```bash
+# building the image
+docker build -t openapi_server .
+
+# starting up a container
+docker run -p 8080:8080 openapi_server
+```
Index: src/webapp/mapservice/src-gen/git_push.sh
===================================================================
--- src/webapp/mapservice/src-gen/git_push.sh	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/git_push.sh	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,52 @@
+#!/bin/sh
+# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
+#
+# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update"
+
+git_user_id=$1
+git_repo_id=$2
+release_note=$3
+
+if [ "$git_user_id" = "" ]; then
+    git_user_id="GIT_USER_ID"
+    echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
+fi
+
+if [ "$git_repo_id" = "" ]; then
+    git_repo_id="GIT_REPO_ID"
+    echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
+fi
+
+if [ "$release_note" = "" ]; then
+    release_note="Minor update"
+    echo "[INFO] No command line input provided. Set \$release_note to $release_note"
+fi
+
+# Initialize the local directory as a Git repository
+git init
+
+# Adds the files in the local repository and stages them for commit.
+git add .
+
+# Commits the tracked changes and prepares them to be pushed to a remote repository.
+git commit -m "$release_note"
+
+# Sets the new remote
+git_remote=`git remote`
+if [ "$git_remote" = "" ]; then # git remote not defined
+
+    if [ "$GIT_TOKEN" = "" ]; then
+        echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
+        git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
+    else
+        git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
+    fi
+
+fi
+
+git pull origin master
+
+# Pushes (Forces) the changes in the local repository up to the remote repository
+echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
+git push origin master 2>&1 | grep -v 'To https'
+
Index: src/webapp/mapservice/src-gen/openapi_server/__main__.py
===================================================================
--- src/webapp/mapservice/src-gen/openapi_server/__main__.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/openapi_server/__main__.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,33 @@
+#!/usr/bin/env python3
+
+import connexion
+from flask_cors import CORS
+from flask import render_template
+
+from openapi_server import encoder
+
+from openapi_server.server_impl.database.Model import db, User, ApiKey, db_test_setup
+
+app = connexion.App(__name__, specification_dir='./openapi/')
+application = app.app
+CORS(application)
+
+@application.before_first_request
+def create_database():
+	db_test_setup()
+
+@application.route("/mapservice/")
+def index():
+	return render_template('index.html')
+	
+def main():
+	application.json_encoder = encoder.JSONEncoder
+	app.add_api('openapi.yaml', arguments={'title': 'GNUBoat Mapservice API'}, validate_responses=True)
+	application.config.from_object('openapi_server.server_impl.Config.DevelopmentConfig')
+
+	db.init_app(application)
+
+	app.run(port=8080)
+
+if __name__ == '__main__':
+	main()
Index: src/webapp/mapservice/src-gen/openapi_server/controllers/waters_controller.py
===================================================================
--- src/webapp/mapservice/src-gen/openapi_server/controllers/waters_controller.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/openapi_server/controllers/waters_controller.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,59 @@
+import connexion
+import six
+
+from openapi_server.models.http_error import HttpError  # noqa: E501
+from openapi_server.models.water import Water  # noqa: E501
+from openapi_server.models.water_creation import WaterCreation  # noqa: E501
+from openapi_server import util
+
+from openapi_server.server_impl.controllers import WatersController
+
+def water_get_by_id(id):  # noqa: E501
+    """Represents a water
+
+    Returns the water identified by id # noqa: E501
+
+    :param id: Item ID
+    :type id: int
+
+    :rtype: Water
+    """
+    return WatersController.water_get_by_id(id)
+
+from openapi_server.server_impl.controllers import WatersController
+
+def waters_get(name=None, manager=None, order_by=None, offset=None, limit=None):  # noqa: E501
+    """Find waters by id
+
+    Returns all waters # noqa: E501
+
+    :param name: 
+    :type name: str
+    :param manager: 
+    :type manager: str
+    :param order_by: Order by field: name
+    :type order_by: str
+    :param offset: Skip over a number of elements by specifying an offset value for the query
+    :type offset: int
+    :param limit: Limit the number of elements on the response
+    :type limit: int
+
+    :rtype: List[Water]
+    """
+    return WatersController.waters_get(name=name, manager=manager, order_by=order_by, offset=offset, limit=limit)
+
+from openapi_server.server_impl.controllers import WatersController
+
+def waters_post(water_creation=None):  # noqa: E501
+    """Add a new water
+
+    Adds a new water to the database # noqa: E501
+
+    :param water_creation: item id of water is going to be ignored
+    :type water_creation: dict | bytes
+
+    :rtype: Water
+    """
+    if connexion.request.is_json:
+        water_creation = WaterCreation.from_dict(connexion.request.get_json())  # noqa: E501
+    return WatersController.waters_post(water_creation=water_creation)
Index: src/webapp/mapservice/src-gen/openapi_server/encoder.py
===================================================================
--- src/webapp/mapservice/src-gen/openapi_server/encoder.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/openapi_server/encoder.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,20 @@
+from connexion.apps.flask_app import FlaskJSONEncoder
+import six
+
+from openapi_server.models.base_model_ import Model
+
+
+class JSONEncoder(FlaskJSONEncoder):
+    include_nulls = False
+
+    def default(self, o):
+        if isinstance(o, Model):
+            dikt = {}
+            for attr, _ in six.iteritems(o.openapi_types):
+                value = getattr(o, attr)
+                if value is None and not self.include_nulls:
+                    continue
+                attr = o.attribute_map[attr]
+                dikt[attr] = value
+            return dikt
+        return FlaskJSONEncoder.default(self, o)
Index: src/webapp/mapservice/src-gen/openapi_server/models/__init__.py
===================================================================
--- src/webapp/mapservice/src-gen/openapi_server/models/__init__.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/openapi_server/models/__init__.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,9 @@
+# coding: utf-8
+
+# flake8: noqa
+from __future__ import absolute_import
+# import models into model package
+from openapi_server.models.http_error import HttpError
+from openapi_server.models.order import Order
+from openapi_server.models.water import Water
+from openapi_server.models.water_creation import WaterCreation
Index: src/webapp/mapservice/src-gen/openapi_server/models/base_model_.py
===================================================================
--- src/webapp/mapservice/src-gen/openapi_server/models/base_model_.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/openapi_server/models/base_model_.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,69 @@
+import pprint
+
+import six
+import typing
+
+from openapi_server import util
+
+T = typing.TypeVar('T')
+
+
+class Model(object):
+    # openapiTypes: The key is attribute name and the
+    # value is attribute type.
+    openapi_types = {}
+
+    # attributeMap: The key is attribute name and the
+    # value is json key in definition.
+    attribute_map = {}
+
+    @classmethod
+    def from_dict(cls: typing.Type[T], dikt) -> T:
+        """Returns the dict as a model"""
+        return util.deserialize_model(dikt, cls)
+
+    def to_dict(self):
+        """Returns the model properties as a dict
+
+        :rtype: dict
+        """
+        result = {}
+
+        for attr, _ in six.iteritems(self.openapi_types):
+            value = getattr(self, attr)
+            if isinstance(value, list):
+                result[attr] = list(map(
+                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+                    value
+                ))
+            elif hasattr(value, "to_dict"):
+                result[attr] = value.to_dict()
+            elif isinstance(value, dict):
+                result[attr] = dict(map(
+                    lambda item: (item[0], item[1].to_dict())
+                    if hasattr(item[1], "to_dict") else item,
+                    value.items()
+                ))
+            else:
+                result[attr] = value
+
+        return result
+
+    def to_str(self):
+        """Returns the string representation of the model
+
+        :rtype: str
+        """
+        return pprint.pformat(self.to_dict())
+
+    def __repr__(self):
+        """For `print` and `pprint`"""
+        return self.to_str()
+
+    def __eq__(self, other):
+        """Returns true if both objects are equal"""
+        return self.__dict__ == other.__dict__
+
+    def __ne__(self, other):
+        """Returns true if both objects are not equal"""
+        return not self == other
Index: src/webapp/mapservice/src-gen/openapi_server/models/http_error.py
===================================================================
--- src/webapp/mapservice/src-gen/openapi_server/models/http_error.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/openapi_server/models/http_error.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+from __future__ import absolute_import
+from datetime import date, datetime  # noqa: F401
+
+from typing import List, Dict  # noqa: F401
+
+from openapi_server.models.base_model_ import Model
+from openapi_server import util
+
+
+class HttpError(Model):
+    """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+
+    Do not edit the class manually.
+    """
+
+    def __init__(self, code=None, message=None):  # noqa: E501
+        """HttpError - a model defined in OpenAPI
+
+        :param code: The code of this HttpError.  # noqa: E501
+        :type code: int
+        :param message: The message of this HttpError.  # noqa: E501
+        :type message: str
+        """
+        self.openapi_types = {
+            'code': int,
+            'message': str
+        }
+
+        self.attribute_map = {
+            'code': 'code',
+            'message': 'message'
+        }
+
+        self._code = code
+        self._message = message
+
+    @classmethod
+    def from_dict(cls, dikt) -> 'HttpError':
+        """Returns the dict as a model
+
+        :param dikt: A dict.
+        :type: dict
+        :return: The HttpError of this HttpError.  # noqa: E501
+        :rtype: HttpError
+        """
+        return util.deserialize_model(dikt, cls)
+
+    @property
+    def code(self):
+        """Gets the code of this HttpError.
+
+
+        :return: The code of this HttpError.
+        :rtype: int
+        """
+        return self._code
+
+    @code.setter
+    def code(self, code):
+        """Sets the code of this HttpError.
+
+
+        :param code: The code of this HttpError.
+        :type code: int
+        """
+        if code is None:
+            raise ValueError("Invalid value for `code`, must not be `None`")  # noqa: E501
+
+        self._code = code
+
+    @property
+    def message(self):
+        """Gets the message of this HttpError.
+
+
+        :return: The message of this HttpError.
+        :rtype: str
+        """
+        return self._message
+
+    @message.setter
+    def message(self, message):
+        """Sets the message of this HttpError.
+
+
+        :param message: The message of this HttpError.
+        :type message: str
+        """
+        if message is None:
+            raise ValueError("Invalid value for `message`, must not be `None`")  # noqa: E501
+
+        self._message = message
Index: src/webapp/mapservice/src-gen/openapi_server/models/order.py
===================================================================
--- src/webapp/mapservice/src-gen/openapi_server/models/order.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/openapi_server/models/order.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+from __future__ import absolute_import
+from datetime import date, datetime  # noqa: F401
+
+from typing import List, Dict  # noqa: F401
+
+from openapi_server.models.base_model_ import Model
+from openapi_server import util
+
+
+class Order(Model):
+    """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+
+    Do not edit the class manually.
+    """
+
+    """
+    allowed enum values
+    """
+    DESC = "desc"
+    ASC = "asc"
+
+    def __init__(self):  # noqa: E501
+        """Order - a model defined in OpenAPI
+
+        """
+        self.openapi_types = {
+        }
+
+        self.attribute_map = {
+        }
+
+    @classmethod
+    def from_dict(cls, dikt) -> 'Order':
+        """Returns the dict as a model
+
+        :param dikt: A dict.
+        :type: dict
+        :return: The order of this Order.  # noqa: E501
+        :rtype: Order
+        """
+        return util.deserialize_model(dikt, cls)
Index: src/webapp/mapservice/src-gen/openapi_server/models/water.py
===================================================================
--- src/webapp/mapservice/src-gen/openapi_server/models/water.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/openapi_server/models/water.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,206 @@
+# coding: utf-8
+
+from __future__ import absolute_import
+from datetime import date, datetime  # noqa: F401
+
+from typing import List, Dict  # noqa: F401
+
+from openapi_server.models.base_model_ import Model
+from openapi_server import util
+
+
+class Water(Model):
+    """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+
+    Do not edit the class manually.
+    """
+
+    def __init__(self, water_id=None, name=None, manager=None, osm_id=None, osm_type=None, osm_class=None):  # noqa: E501
+        """Water - a model defined in OpenAPI
+
+        :param water_id: The water_id of this Water.  # noqa: E501
+        :type water_id: int
+        :param name: The name of this Water.  # noqa: E501
+        :type name: str
+        :param manager: The manager of this Water.  # noqa: E501
+        :type manager: str
+        :param osm_id: The osm_id of this Water.  # noqa: E501
+        :type osm_id: int
+        :param osm_type: The osm_type of this Water.  # noqa: E501
+        :type osm_type: str
+        :param osm_class: The osm_class of this Water.  # noqa: E501
+        :type osm_class: str
+        """
+        self.openapi_types = {
+            'water_id': int,
+            'name': str,
+            'manager': str,
+            'osm_id': int,
+            'osm_type': str,
+            'osm_class': str
+        }
+
+        self.attribute_map = {
+            'water_id': 'water_id',
+            'name': 'name',
+            'manager': 'manager',
+            'osm_id': 'osm_id',
+            'osm_type': 'osm_type',
+            'osm_class': 'osm_class'
+        }
+
+        self._water_id = water_id
+        self._name = name
+        self._manager = manager
+        self._osm_id = osm_id
+        self._osm_type = osm_type
+        self._osm_class = osm_class
+
+    @classmethod
+    def from_dict(cls, dikt) -> 'Water':
+        """Returns the dict as a model
+
+        :param dikt: A dict.
+        :type: dict
+        :return: The Water of this Water.  # noqa: E501
+        :rtype: Water
+        """
+        return util.deserialize_model(dikt, cls)
+
+    @property
+    def water_id(self):
+        """Gets the water_id of this Water.
+
+
+        :return: The water_id of this Water.
+        :rtype: int
+        """
+        return self._water_id
+
+    @water_id.setter
+    def water_id(self, water_id):
+        """Sets the water_id of this Water.
+
+
+        :param water_id: The water_id of this Water.
+        :type water_id: int
+        """
+        if water_id is None:
+            raise ValueError("Invalid value for `water_id`, must not be `None`")  # noqa: E501
+
+        self._water_id = water_id
+
+    @property
+    def name(self):
+        """Gets the name of this Water.
+
+
+        :return: The name of this Water.
+        :rtype: str
+        """
+        return self._name
+
+    @name.setter
+    def name(self, name):
+        """Sets the name of this Water.
+
+
+        :param name: The name of this Water.
+        :type name: str
+        """
+        if name is None:
+            raise ValueError("Invalid value for `name`, must not be `None`")  # noqa: E501
+
+        self._name = name
+
+    @property
+    def manager(self):
+        """Gets the manager of this Water.
+
+
+        :return: The manager of this Water.
+        :rtype: str
+        """
+        return self._manager
+
+    @manager.setter
+    def manager(self, manager):
+        """Sets the manager of this Water.
+
+
+        :param manager: The manager of this Water.
+        :type manager: str
+        """
+
+        self._manager = manager
+
+    @property
+    def osm_id(self):
+        """Gets the osm_id of this Water.
+
+
+        :return: The osm_id of this Water.
+        :rtype: int
+        """
+        return self._osm_id
+
+    @osm_id.setter
+    def osm_id(self, osm_id):
+        """Sets the osm_id of this Water.
+
+
+        :param osm_id: The osm_id of this Water.
+        :type osm_id: int
+        """
+
+        self._osm_id = osm_id
+
+    @property
+    def osm_type(self):
+        """Gets the osm_type of this Water.
+
+
+        :return: The osm_type of this Water.
+        :rtype: str
+        """
+        return self._osm_type
+
+    @osm_type.setter
+    def osm_type(self, osm_type):
+        """Sets the osm_type of this Water.
+
+
+        :param osm_type: The osm_type of this Water.
+        :type osm_type: str
+        """
+        if osm_type is not None and len(osm_type) > 1:
+            raise ValueError("Invalid value for `osm_type`, length must be less than or equal to `1`")  # noqa: E501
+        if osm_type is not None and len(osm_type) < 1:
+            raise ValueError("Invalid value for `osm_type`, length must be greater than or equal to `1`")  # noqa: E501
+
+        self._osm_type = osm_type
+
+    @property
+    def osm_class(self):
+        """Gets the osm_class of this Water.
+
+
+        :return: The osm_class of this Water.
+        :rtype: str
+        """
+        return self._osm_class
+
+    @osm_class.setter
+    def osm_class(self, osm_class):
+        """Sets the osm_class of this Water.
+
+
+        :param osm_class: The osm_class of this Water.
+        :type osm_class: str
+        """
+        if osm_class is not None and len(osm_class) > 1:
+            raise ValueError("Invalid value for `osm_class`, length must be less than or equal to `1`")  # noqa: E501
+        if osm_class is not None and len(osm_class) < 1:
+            raise ValueError("Invalid value for `osm_class`, length must be greater than or equal to `1`")  # noqa: E501
+
+        self._osm_class = osm_class
Index: src/webapp/mapservice/src-gen/openapi_server/models/water_creation.py
===================================================================
--- src/webapp/mapservice/src-gen/openapi_server/models/water_creation.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/openapi_server/models/water_creation.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,122 @@
+# coding: utf-8
+
+from __future__ import absolute_import
+from datetime import date, datetime  # noqa: F401
+
+from typing import List, Dict  # noqa: F401
+
+from openapi_server.models.base_model_ import Model
+from openapi_server import util
+
+
+class WaterCreation(Model):
+    """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+
+    Do not edit the class manually.
+    """
+
+    def __init__(self, name=None, osm_id=None, osm_type=None):  # noqa: E501
+        """WaterCreation - a model defined in OpenAPI
+
+        :param name: The name of this WaterCreation.  # noqa: E501
+        :type name: str
+        :param osm_id: The osm_id of this WaterCreation.  # noqa: E501
+        :type osm_id: int
+        :param osm_type: The osm_type of this WaterCreation.  # noqa: E501
+        :type osm_type: str
+        """
+        self.openapi_types = {
+            'name': str,
+            'osm_id': int,
+            'osm_type': str
+        }
+
+        self.attribute_map = {
+            'name': 'name',
+            'osm_id': 'osm_id',
+            'osm_type': 'osm_type'
+        }
+
+        self._name = name
+        self._osm_id = osm_id
+        self._osm_type = osm_type
+
+    @classmethod
+    def from_dict(cls, dikt) -> 'WaterCreation':
+        """Returns the dict as a model
+
+        :param dikt: A dict.
+        :type: dict
+        :return: The WaterCreation of this WaterCreation.  # noqa: E501
+        :rtype: WaterCreation
+        """
+        return util.deserialize_model(dikt, cls)
+
+    @property
+    def name(self):
+        """Gets the name of this WaterCreation.
+
+
+        :return: The name of this WaterCreation.
+        :rtype: str
+        """
+        return self._name
+
+    @name.setter
+    def name(self, name):
+        """Sets the name of this WaterCreation.
+
+
+        :param name: The name of this WaterCreation.
+        :type name: str
+        """
+        if name is None:
+            raise ValueError("Invalid value for `name`, must not be `None`")  # noqa: E501
+
+        self._name = name
+
+    @property
+    def osm_id(self):
+        """Gets the osm_id of this WaterCreation.
+
+
+        :return: The osm_id of this WaterCreation.
+        :rtype: int
+        """
+        return self._osm_id
+
+    @osm_id.setter
+    def osm_id(self, osm_id):
+        """Sets the osm_id of this WaterCreation.
+
+
+        :param osm_id: The osm_id of this WaterCreation.
+        :type osm_id: int
+        """
+
+        self._osm_id = osm_id
+
+    @property
+    def osm_type(self):
+        """Gets the osm_type of this WaterCreation.
+
+
+        :return: The osm_type of this WaterCreation.
+        :rtype: str
+        """
+        return self._osm_type
+
+    @osm_type.setter
+    def osm_type(self, osm_type):
+        """Sets the osm_type of this WaterCreation.
+
+
+        :param osm_type: The osm_type of this WaterCreation.
+        :type osm_type: str
+        """
+        if osm_type is not None and len(osm_type) > 1:
+            raise ValueError("Invalid value for `osm_type`, length must be less than or equal to `1`")  # noqa: E501
+        if osm_type is not None and len(osm_type) < 1:
+            raise ValueError("Invalid value for `osm_type`, length must be greater than or equal to `1`")  # noqa: E501
+
+        self._osm_type = osm_type
Index: src/webapp/mapservice/src-gen/openapi_server/openapi/openapi.yaml
===================================================================
--- src/webapp/mapservice/src-gen/openapi_server/openapi/openapi.yaml	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/openapi_server/openapi/openapi.yaml	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,388 @@
+openapi: 3.0.0
+info:
+  contact:
+    email: info@engsas.de
+    name: EngSaS - Engineering Solutions and Services Langenbach
+    url: http://www.engsas.com
+  description: API to upload log files with water depth to GNUBoat server
+  license:
+    name: GPL 3
+    url: https://www.gnu.org/licenses/gpl-3.0.en.html
+  title: GNUBoat Mapservice API
+  version: v1
+servers:
+- description: The production API server
+  url: https://gnuboat.engsas.com/mapservice/{version}
+  variables:
+    version:
+      default: v1
+- description: The local flask development url
+  url: http://localhost:8080/mapservice/{version}
+  variables:
+    version:
+      default: v1
+tags:
+- description: A water is a river (like Mississippi, lake (Lake Ontario), or a sea (North Sea)
+  name: waters
+paths:
+  /waters:
+    get:
+      description: Returns all waters
+      operationId: waters_get
+      parameters:
+      - explode: false
+        in: header
+        name: name
+        required: false
+        schema:
+          $ref: '#/components/schemas/item_name'
+        style: simple
+      - explode: false
+        in: header
+        name: manager
+        required: false
+        schema:
+          $ref: '#/components/schemas/username'
+        style: simple
+      - description: 'Order by field: name'
+        explode: true
+        in: query
+        name: orderBy
+        required: false
+        schema:
+          default: name
+          type: string
+        style: form
+      - description: Skip over a number of elements by specifying an offset value for the query
+        explode: true
+        in: query
+        name: offset
+        required: false
+        schema:
+          default: 0
+          example: 0
+          format: int32
+          type: integer
+        style: form
+      - description: Limit the number of elements on the response
+        explode: true
+        in: query
+        name: limit
+        required: false
+        schema:
+          default: 10
+          example: 10
+          format: int32
+          type: integer
+        style: form
+      responses:
+        200:
+          content:
+            application/json:
+              examples:
+                Waters:
+                  $ref: '#/components/examples/waters'
+              schema:
+                $ref: '#/components/schemas/waters'
+          description: OK
+      summary: Find waters by id
+      tags:
+      - waters
+      x-openapi-router-controller: openapi_server.controllers.waters_controller
+    post:
+      description: Adds a new water to the database
+      operationId: waters_post
+      requestBody:
+        content:
+          application/json:
+            examples:
+              Water:
+                $ref: '#/components/examples/WaterCreation'
+            schema:
+              $ref: '#/components/schemas/WaterCreation'
+        description: item id of water is going to be ignored
+      responses:
+        201:
+          content:
+            application/json:
+              examples:
+                Water:
+                  $ref: '#/components/examples/Water'
+              schema:
+                $ref: '#/components/schemas/Water'
+          description: Water created
+        400:
+          content:
+            application/json:
+              examples:
+                HttpError:
+                  $ref: '#/components/examples/HttpError'
+              schema:
+                $ref: '#/components/schemas/HttpError'
+          description: Bad Request (400)
+        401:
+          content:
+            application/json:
+              examples:
+                HttpError:
+                  $ref: '#/components/examples/HttpError'
+              schema:
+                $ref: '#/components/schemas/HttpError'
+          description: Unauthorized (401) acces to resource
+      security:
+      - basicAuth: []
+      - apiKeyAuth: []
+      summary: Add a new water
+      tags:
+      - waters
+      x-openapi-router-controller: openapi_server.controllers.waters_controller
+  /waters/{id}:
+    get:
+      description: Returns the water identified by id
+      operationId: water_get_by_id
+      parameters:
+      - description: Item ID
+        explode: false
+        in: path
+        name: id
+        required: true
+        schema:
+          $ref: '#/components/schemas/item_id'
+        style: simple
+      responses:
+        200:
+          content:
+            application/json:
+              examples:
+                Water:
+                  $ref: '#/components/examples/Water'
+              schema:
+                $ref: '#/components/schemas/Water'
+          description: OK
+        404:
+          content:
+            application/json:
+              examples:
+                HttpError:
+                  $ref: '#/components/examples/HttpError'
+              schema:
+                $ref: '#/components/schemas/HttpError'
+          description: Water with given Id not found
+      summary: Represents a water
+      tags:
+      - waters
+      x-openapi-router-controller: openapi_server.controllers.waters_controller
+components:
+  examples:
+    Water:
+      summary: A water example object
+      value:
+        water_id: 1
+        name: Mississippi
+        osm_id: 1756854
+        osm_type: R
+        link: http://gnuboat.engsas.com/mapservice/v1/waters/1
+    WaterCreation:
+      summary: A water example object for creation of a water
+      value:
+        name: Mississippi
+        osm_id: 1756854
+        osm_type: R
+    waters:
+      summary: A sample list with waters
+      value:
+      - water_id: 1
+        name: Mississippi
+        osm_id: 1756854
+        osm_type: R
+        link: http://gnuboat.engsas.com/mapservice/v1/waters/1
+      - water_id: 2
+        name: Bodensee
+        link: http://gnuboat.engsas.com/mapservice/v1/waters/2
+    HttpError:
+      value:
+        code: 404
+        message: Water with id 999999 not found
+  parameters:
+    orderBy:
+      description: 'Order by field: name'
+      explode: true
+      in: query
+      name: orderBy
+      required: false
+      schema:
+        default: name
+        type: string
+      style: form
+    order:
+      description: Order
+      explode: true
+      in: query
+      name: order
+      required: false
+      schema:
+        $ref: '#/components/schemas/order'
+      style: form
+    offset:
+      description: Skip over a number of elements by specifying an offset value for the query
+      explode: true
+      in: query
+      name: offset
+      required: false
+      schema:
+        default: 0
+        example: 0
+        format: int32
+        type: integer
+      style: form
+    limit:
+      description: Limit the number of elements on the response
+      explode: true
+      in: query
+      name: limit
+      required: false
+      schema:
+        default: 10
+        example: 10
+        format: int32
+        type: integer
+      style: form
+  responses:
+    BadRequest:
+      content:
+        application/json:
+          examples:
+            HttpError:
+              $ref: '#/components/examples/HttpError'
+          schema:
+            $ref: '#/components/schemas/HttpError'
+      description: Bad Request (400)
+    Unauthorized:
+      content:
+        application/json:
+          examples:
+            HttpError:
+              $ref: '#/components/examples/HttpError'
+          schema:
+            $ref: '#/components/schemas/HttpError'
+      description: Unauthorized (401) acces to resource
+    NotFound:
+      content:
+        application/json:
+          examples:
+            HttpError:
+              $ref: '#/components/examples/HttpError'
+          schema:
+            $ref: '#/components/schemas/HttpError'
+      description: Water with given Id not found
+  schemas:
+    username:
+      title: Username
+      type: string
+    item_id:
+      format: int32
+      title: Item ID
+      type: integer
+    item_name:
+      title: Item Name
+      type: string
+    osm_type:
+      maxLength: 1
+      minLength: 1
+      type: string
+    Water:
+      example:
+        osm_id: 6
+        osm_type: osm_type
+        manager: manager
+        name: name
+        water_id: 0
+        osm_class: osm_class
+      properties:
+        water_id:
+          format: int32
+          title: Item ID
+          type: integer
+        name:
+          title: Item Name
+          type: string
+        manager:
+          title: Username
+          type: string
+        osm_id:
+          format: int32
+          title: Item ID
+          type: integer
+        osm_type:
+          maxLength: 1
+          minLength: 1
+          type: string
+        osm_class:
+          maxLength: 1
+          minLength: 1
+          type: string
+      required:
+      - name
+      - water_id
+      title: Water
+      type: object
+    WaterCreation:
+      example:
+        osm_id: 0
+        osm_type: osm_type
+        name: name
+      properties:
+        name:
+          title: Item Name
+          type: string
+        osm_id:
+          format: int32
+          title: Item ID
+          type: integer
+        osm_type:
+          maxLength: 1
+          minLength: 1
+          type: string
+      required:
+      - name
+      title: Water
+      type: object
+    waters:
+      items:
+        $ref: '#/components/schemas/Water'
+      title: waters
+      type: array
+    order:
+      default: asc
+      description: |
+        Sort order:
+          * `asc` - Ascending, from A to Z
+          * `desc` - Descending, from Z to A
+      enum:
+      - desc
+      - asc
+      example: asc
+      title: order
+      type: string
+    HttpError:
+      properties:
+        code:
+          format: int32
+          type: integer
+        message:
+          type: string
+      required:
+      - code
+      - message
+      title: HTTP Error Response Object
+      type: object
+  securitySchemes:
+    basicAuth:
+      scheme: basic
+      type: http
+      x-basicInfoFunc: openapi_server.server_impl.security.Security.auth_basic
+    apiKeyAuth:
+      in: header
+      name: X-API-KEY
+      type: apiKey
+      x-apikeyInfoFunc: openapi_server.server_impl.security.Security.auth_api
Index: src/webapp/mapservice/src-gen/openapi_server/server_impl
===================================================================
--- src/webapp/mapservice/src-gen/openapi_server/server_impl	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/openapi_server/server_impl	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,1 @@
+../../src/server_impl/
Index: src/webapp/mapservice/src-gen/openapi_server/static/css/GnuBoat.Colors.css
===================================================================
--- src/webapp/mapservice/src-gen/openapi_server/static/css/GnuBoat.Colors.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/openapi_server/static/css/GnuBoat.Colors.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,34 @@
+/*
+    Copyright (C) 2018 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+:root {
+	--gnuboat-turquois-dark: #347C7C;
+	--gnuboat-turquois-middle: #93C0C0;
+	--gnuboat-turquois-light: #BCD9D9;
+	--gnuboat-green-dark: #45A545;
+	--gnuboat-green-middle: #ACDFAC;
+	--gnuboat-green-light: #CCECCC;
+	--gnuboat-red: #8C1C00;
+	
+	--gnuboat-primary-dark: var(--gnuboat-turquois-dark);
+	--gnuboat-primary-middle: var(--gnuboat-turquois-middle);
+	--gnuboat-primary-light: var(--gnuboat-turquois-light);
+	--gnuboat-secondary-dark: var(--gnuboat-green-dark);
+	--gnuboat-secondary-middle: var(--gnuboat-green-middle);
+	--gnuboat-secondary-light: var(--gnuboat-green-light);
+	--gnuboat-warning: var(--gnuboat-red);
+}
Index: src/webapp/mapservice/src-gen/openapi_server/static/css/GnuBoat.css
===================================================================
--- src/webapp/mapservice/src-gen/openapi_server/static/css/GnuBoat.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/openapi_server/static/css/GnuBoat.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,61 @@
+/*
+    Copyright (C) 2016 - 2019 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+@import url("GnuBoat.Colors.css");
+
+.l-box {
+	padding: 1em;
+}
+
+.leaflet-top {
+	top: 2.5em;
+}
+
+.map-middle {
+	right: 50%;
+}
+
+#logo {
+	height: auto;
+	width: 6em;
+}
+
+#message .error {
+	font-weight: bold;
+	color: var(--gnuboat-warning);
+}
+
+#message .info {
+	font-weight: bold;
+	color: var(--gnuboat-primary-dark);
+}
+
+.viewportGeometry {
+	width: -webkit-calc(100vw - 3em);
+	width:    -moz-calc(100vw - 3em);
+	width:         calc(100vw - 3em);
+	height: -webkit-calc(100vh - 3em);
+	height:    -moz-calc(100vh - 3em);
+	height:         calc(100vh - 3em);
+}
+
+#mapViewport {
+	border: 1px solid var(--gnuboat-primary-light);
+	margin-top: 1.5em;
+	margin-left: 1.5em;
+	background-color: white;
+}
Index: src/webapp/mapservice/src-gen/openapi_server/static/css/side-menu.css
===================================================================
--- src/webapp/mapservice/src-gen/openapi_server/static/css/side-menu.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/openapi_server/static/css/side-menu.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,268 @@
+/*
+    Copyright (C) 2017 - 2019 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+@import url("GnuBoat.Colors.css");
+
+body {
+    color: #777;
+}
+
+.pure-img-responsive {
+    max-width: 100%;
+    height: auto;
+}
+
+/*
+Add transition to containers so they can push in and out.
+*/
+#layout,
+#menu,
+.menu-link {
+    -webkit-transition: all 0.2s ease-out;
+    -moz-transition: all 0.2s ease-out;
+    -ms-transition: all 0.2s ease-out;
+    -o-transition: all 0.2s ease-out;
+    transition: all 0.2s ease-out;
+}
+
+/*
+This is the parent `<div>` that contains the menu and the content area.
+*/
+#layout {
+    position: relative;
+    left: 0;
+    padding-left: 0;
+}
+    #layout.active #menu {
+        left: 150px;
+        width: 150px;
+    }
+
+    #layout.active .menu-link {
+        left: 150px;
+    }
+/*
+The content `<div>` is where all your content goes.
+*/
+.content {
+    margin: 0 auto;
+    padding: 0 2em;
+    max-width: 800px;
+    margin-bottom: 50px;
+    line-height: 1.6em;
+}
+
+.header {
+     margin: 0;
+     color: #333;
+     text-align: center;
+     padding: 2.5em 2em 0;
+     border-bottom: 1px solid #eee;
+ }
+    .header h1 {
+        margin: 0.2em 0;
+        font-size: 3em;
+        font-weight: 300;
+    }
+     .header h2 {
+        font-weight: 300;
+        color: #ccc;
+        padding: 0;
+        margin-top: 0;
+    }
+
+.content-subhead {
+    margin: 50px 0 20px 0;
+    font-weight: 300;
+    color: #888;
+}
+
+
+
+/*
+The `#menu` `<div>` is the parent `<div>` that contains the `.pure-menu` that
+appears on the left side of the page.
+*/
+
+#menu {
+    margin-left: -150px; /* "#menu" width */
+    width: 150px;
+    position: fixed;
+    top: 0;
+    left: 0;
+    bottom: 0;
+    z-index: 2000; /* so the menu or its navicon stays above all content */
+    background: var(--gnuboat-primary-dark);
+    overflow-y: auto;
+    -webkit-overflow-scrolling: touch;
+}
+    /*
+    All anchors inside the menu should be styled like this.
+    */
+    #menu a {
+        color: #fff;
+        border: none;
+        padding: 0.6em 0 0.6em 0.6em;
+    }
+
+    /*
+    Remove all background/borders, since we are applying them to #menu.
+    */
+     #menu .pure-menu,
+     #menu .pure-menu ul {
+        border: none;
+        background: transparent;
+    }
+
+    /*
+    Add that light border to separate items into groups.
+    */
+    #menu .pure-menu ul,
+    #menu .pure-menu .menu-item-divided {
+        border-top: 1px solid var(--gnuboat-primary-light);
+    }
+        /*
+        Change color of the anchor links on hover/focus.
+        */
+        #menu .pure-menu li a:hover,
+        #menu .pure-menu li a:focus {
+            background: var(--gnuboat-primary-light);
+        }
+
+    /*
+    This styles the selected menu item `<li>`.
+    */
+    #menu .pure-menu-selected,
+    #menu .pure-menu-heading {
+        background: var(--gnuboat-secondary-dark);
+    }
+        /*
+        This styles a link within a selected menu item `<li>`.
+        */
+        #menu .pure-menu-selected a {
+            color: #fff;
+        }
+
+    /*
+    This styles the menu heading.
+    */
+    #menu .pure-menu-heading {
+        font-size: 110%;
+        color: #fff;
+        margin: 0;
+    }
+
+/* -- Dynamic Button For Responsive Menu -------------------------------------*/
+
+/*
+The button to open/close the Menu is custom-made and not part of Pure. Here's
+how it works:
+*/
+
+/*
+`.menu-link` represents the responsive menu toggle that shows/hides on
+small screens.
+*/
+.menu-link {
+    position: fixed;
+    display: block; /* show this only on small screens */
+    top: 0;
+    left: 0; /* "#menu width" */
+    background: #000;
+    background: rgba(0,0,0,0.7);
+    font-size: 10px; /* change this value to increase/decrease button size */
+    z-index: 10;
+    width: 2em;
+    height: auto;
+    padding: 2.1em 1.6em;
+	z-index: 1500;
+}
+
+    .menu-link:hover,
+    .menu-link:focus {
+        background: #000;
+    }
+
+    .menu-link span {
+        position: relative;
+        display: block;
+    }
+
+    .menu-link span,
+    .menu-link span:before,
+    .menu-link span:after {
+        background-color: #fff;
+        width: 100%;
+        height: 0.2em;
+    }
+
+        .menu-link span:before,
+        .menu-link span:after {
+            position: absolute;
+            margin-top: -0.6em;
+            content: " ";
+        }
+
+        .menu-link span:after {
+            margin-top: 0.6em;
+        }
+
+
+/* -- Responsive Styles (Media Queries) ------------------------------------- */
+
+/*
+Hides the menu at `48em`, but modify this based on your app's needs.
+*/
+@media (min-width: 99999em) {
+
+    .header,
+    .content {
+        padding-left: 2em;
+        padding-right: 2em;
+    }
+
+    #layout {
+        padding-left: 150px; /* left col width "#menu" */
+        left: 0;
+    }
+    #menu {
+        left: 150px;
+    }
+
+    .menu-link {
+        position: fixed;
+        left: 150px;
+        display: none;
+    }
+
+    #layout.active .menu-link {
+        left: 150px;
+    }
+}
+
+@media (max-width: 99999em) {
+    /* Only apply this when the window is small. Otherwise, the following
+    case results in extra padding on the left:
+        * Make the window small.
+        * Tap the menu to trigger the active state.
+        * Make the window large again.
+    */
+    #layout.active {
+        position: relative;
+        left: 150px;
+    }
+}
Index: src/webapp/mapservice/src-gen/openapi_server/static/index.html
===================================================================
--- src/webapp/mapservice/src-gen/openapi_server/static/index.html	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/openapi_server/static/index.html	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,130 @@
+<!--
+    Copyright (C) 2016 - 2019 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+-->
+<!DOCTYPE HTML>
+<html>
+	<head profile="http://www.w3.org/2005/10/profile">
+		<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+		<meta name="viewport" content="width=device-width, initial-scale=1.0">
+		<link rel="icon" type="image/png" href="resources/gnuboat-256-256-transparent.png"/>
+		<title>GNUBoat Web Application</title>
+		
+		<link rel="stylesheet" href="lib/css/pure/pure-min.css" type="text/css"/>
+		<!--[if lte IE 8]>
+		<link rel="stylesheet" content="text/css" href="lib/css/pure/grids-responsive-old-ie-min.css">
+		<![endif]-->
+		<!--[if gt IE 8]><!-->
+		<link rel="stylesheet" content="text/css" href="lib/css/pure/grids-responsive-min.css">
+		<!--<![endif]-->
+		<link rel="stylesheet" content="text/css" href="lib/css/leaflet/leaflet.css"/>
+		
+		<script src="lib/js/jquery-3.2.1.min.js" type="text/javascript"></script>
+		<script src="lib/js/jquery.validate.min.js" type="text/javascript"></script>
+		<script src="lib/js/leaflet.js" type="text/javascript"></script>
+		<!--<script src="lib/js/leaflet.hotline.min.js" type="text/javascript"></script>-->
+		
+		<link rel="stylesheet" href="css/GnuBoat.css" type="text/css"/>
+		<link rel="stylesheet" href="css/side-menu.css" type="text/css"/>
+		<script language="javascript" src="js/GnuBoat.js" type="text/javascript"></script>
+		<script language="javascript" src="js/GnuBoat.Webserver.js" type="text/javascript"></script>
+		<script language="javascript" type="text/javascript">
+			var active = 'active';
+			var layout = null;
+			var menu = null;
+			var menuLink = null;
+			var content = null;
+
+			function toggleAll() {
+				layout.toggleClass(active);
+				menu.toggleClass(active);
+				menuLink.toggleClass(active);
+			}
+
+			$(document).ready(function () {
+				layout   = $("#layout");
+				menu     = $("#menu");
+				menuLink = $("#menuLink");
+				content  = $("#main");
+
+				menuLink.click(function () {
+					toggleAll();
+				});
+
+				content.click(function() {
+					if (menu.hasClass(active)) {
+						toggleAll();
+					}
+				});
+				
+				GnuBoat.Webserver.initialize();
+				GnuBoat.Webserver.setServer("http://localhost:8080/mapservice/v1/");
+			});
+		</script>
+	</head>
+	<body>
+		<div id="layout" class="">
+			<a id="menuLink" class="menu-link" href="#menu"><!-- Hamburger icon --><span></span></a>
+			<div id="menu" class="">
+				<div class="pure-menu">
+					<a class="pure-menu-heading" href="#">GNUBoat</a>
+					<ul class="pure-menu-list">
+						<li class="pure-menu-item"><a id="linkMap" class="pure-menu-link" href="#map">Map</a></li>
+						<li class="pure-menu-item"><a class="pure-menu-link" href="#upload">Upload</a></li>
+						<li class="pure-menu-item"><a id="linkMyGnuboat" class="pure-menu-link" href="#mygnuboat">My GnuBoat</a></li>
+					</ul>
+				</div>
+			</div>
+			<div id="main">
+				<!--<div class="content">-->
+				<a name="map"></a>
+				<div id="mapViewport" class="viewportGeometry">
+					<div class="leaflet-top map-middle">
+						<div class="leaflet-control">
+							<img id="logo" src="resources/gnuboat-256-256-transparent.png" />
+						</div>
+					</div>
+				</div>
+				<!--</div>-->
+				<div class="content">
+					<a name="mygnuboat"></a>
+					<div id="login">
+						<form id="loginForm" class="pure-form pure-form-aligned">
+							<fieldset>
+								<legend>Login</legend>
+								<div class="pure-control-group">
+									<label for="loginUsername">Username:</label>
+									<input id="loginUsername" type="text" name="loginUsername" value="" required>
+								</div>
+								<div class="pure-control-group">
+									<label for="loginPassword">Password:</label>
+									<input id="loginPassword" type="password" name="loginPassword" value="" required>
+								</div>
+								<input type="submit" class="pure-button pure-button-primary" name="loginButton" value="Login"/>
+							</fieldset>
+						</form>
+					</div>
+					<div id="myWaters">
+						<h2 class="content-subhead">My Waters</h2>
+						<form id="myWatersForm" class="pure-form">
+							<div class="pure-control-group">
+								<select id="myWatersSelect" class="pure-input-1"></select>
+							</div>
+						</form>
+					</div>
+				</div>
+			</div>
+	</body>
+</html>
Index: src/webapp/mapservice/src-gen/openapi_server/static/js/GnuBoat.Webserver.js
===================================================================
--- src/webapp/mapservice/src-gen/openapi_server/static/js/GnuBoat.Webserver.js	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/openapi_server/static/js/GnuBoat.Webserver.js	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,147 @@
+/*
+
+    Copyright (C) 2018 - 2019 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+    MA 02110-1301  USA.
+
+*/
+
+/** @namespace GnuBoat JavaScript namespace */
+var GnuBoat = GnuBoat || {};
+/** @namespace GnuBoat Webserver JavaScript namespace */
+GnuBoat.Webserver = GnuBoat.Webserver || {};
+
+GnuBoat.Webserver.initialize = function()
+{
+	GnuBoat.Webserver.private.mapSetup();
+	$("#loginForm").validate({
+		rules: {
+			loginUsername: {
+				required: true
+			},
+			loginPassword: {
+				required: true
+			}
+		},
+		submitHandler: function(form){
+			GnuBoat.Webserver.login(form);
+		}
+	});
+	
+	$("#login").hide();
+	$("#myWaters").hide();
+	$("#linkMyGnuboat").click(function(){ $("#mapViewport").hide(); GnuBoat.Webserver.loginCheck(); });
+	$("#linkMap").click(function(){ $("#mapViewport").show(); });
+}
+
+/**
+ * @brief Sets the webservice base url, used by any other functions
+ */
+GnuBoat.Webserver.setServer = function(baseUrl)
+{
+	if(baseUrl.slice(-1) != "/")
+		baseUrl += "/";
+	GnuBoat.Webserver.private.serverBaseUrl = baseUrl;
+}
+
+GnuBoat.Webserver.private = {
+	loggedin: false,
+	map: null,
+	mapSetup: function ()
+	{
+		GnuBoat.Webserver.private.map = L.map('mapViewport').setView([48.43, 10.04], 17);
+		
+		var layer_openstreetmap = L.tileLayer(
+			'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
+			{ attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>, <a href="http://www.openseamap.org">OpenSeaMap</a>, <a href="http://gnuboat.engsas.de">GNUBoat</a> contributors'}
+		).addTo(GnuBoat.Webserver.private.map);
+		var layer_openseamap = L.tileLayer(
+			'http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png',
+			{attribute: '&copy; <a href="http://www.openseamap.org">OpenSeaMap</a> contributors'}
+		).addTo(GnuBoat.Webserver.private.map);
+		
+		// add GNUBoat layers
+		var layer_gnuboat_accuracy_low = L.tileLayer(
+			'./tiles/gnuboat_10_100/{z}/{x}/{y}.png',
+			{tms: true, opacity: 0.5, zIndex: 98, attribute: '&copy; <a href="http://gnuboat.engsas.de">GNUBoat</a> contributors'}
+		);
+		var layer_gnuboat_accuracy_high = L.tileLayer(
+			'./tiles/gnuboat_100_100/{z}/{x}/{y}.png',
+			{tms: true, opacity: 0.5, zIndex: 98, attribute: '&copy; <a href="http://gnuboat.engsas.de">GNUBoat</a> contributors'}
+		).addTo(GnuBoat.Webserver.private.map);
+		
+		// add layer control
+		var baselayers = {
+			"Map": layer_openstreetmap,
+		};
+		// overlays
+		var overlays = {"Seamarks": layer_openseamap,
+			"GNUBoat Low Accuracy": layer_gnuboat_accuracy_low,
+			"GNUBoat High Accuracy": layer_gnuboat_accuracy_high,
+		};
+		GnuBoat.Webserver.private.mapControl = L.control.layers(
+			baselayers, overlays,
+			{hideSingleBase: true, sortLayers: true, }
+		).addTo(GnuBoat.Webserver.private.map);
+		
+		// add scale
+		L.control.scale().addTo(GnuBoat.Webserver.private.map);
+	}
+};
+
+GnuBoat.Webserver.login = function(form)
+{
+	Cookies.set('username', $("#loginUsername").val());
+	Cookies.set('password', $("#loginPassword").val());
+	GnuBoat.Webserver.private.loggedin = false;
+	
+	// getting my waters
+	$.ajax({
+		headers: {
+// 			manager: Cookies.get('username')
+			manager: "bla"
+		},
+		dataType: "json",
+		url: GnuBoat.Webserver.private.serverBaseUrl +'waters',
+	}).done(function(data) {
+		GnuBoat.Webserver.private.loggedin = true;
+		GnuBoat.Webserver.loginCheck();
+		
+		$("#myWatersDiv").empty();
+		if(data.length < 1){
+			$("<p>No Waters found!</p>").appendTo("#myWatersDiv");
+		}
+		else{
+			$('<select id="myWatersSelect" class="pure-input-1"></select>').appendTo("#myWatersDiv");
+			data.forEach(function(value, index){
+				$("<option value=\""+ value.water_id +"\">"+ value.name +"</option>").appendTo("#myWatersSelect");
+			})
+		}
+		$("#myWaters").show();
+	}).fail(function() {
+		alert('request failed');
+	});
+};
+
+GnuBoat.Webserver.loginCheck = function()
+{
+	console.log([Cookies.get('username'), Cookies.get('username') == undefined, Cookies.get('password'), Cookies.get('password') == undefined, GnuBoat.Webserver.private.loggedin]);
+	if(Cookies.get('username') == undefined || Cookies.get('password') == undefined || !GnuBoat.Webserver.private.loggedin){
+		$("#login").show();
+		return;
+	}
+	$("#login").hide();
+};
Index: src/webapp/mapservice/src-gen/openapi_server/static/js/GnuBoat.js
===================================================================
--- src/webapp/mapservice/src-gen/openapi_server/static/js/GnuBoat.js	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/openapi_server/static/js/GnuBoat.js	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,33 @@
+/*
+
+    Copyright (C) 2016 - 2018 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+    MA 02110-1301  USA.
+
+*/
+
+/** @namespace GnuBoat JavaScript namespace */
+var GnuBoat = GnuBoat || {};
+
+/**
+ * @brief Used to display user messages
+ */
+GnuBoat.displayMessage = function(text)
+{
+	$("#message").empty();
+	$(text).appendTo("#message");
+	location.hash = "#messages";
+}
Index: src/webapp/mapservice/src-gen/openapi_server/templates/index.html
===================================================================
--- src/webapp/mapservice/src-gen/openapi_server/templates/index.html	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/openapi_server/templates/index.html	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,131 @@
+<!--
+    Copyright (C) 2016 - 2019 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+-->
+<!DOCTYPE HTML>
+<html>
+	<head profile="http://www.w3.org/2005/10/profile">
+		<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+		<meta name="viewport" content="width=device-width, initial-scale=1.0">
+		<link rel="icon" type="image/png" href="{{ url_for('static', filename = 'resources/gnuboat-256-256-transparent.png') }}"/>
+		<title>GNUBoat Web Application</title>
+		
+		<link rel="stylesheet" href="{{ url_for('static', filename = 'lib/css/pure/pure-min.css') }}" type="text/css"/>
+		<!--[if lte IE 8]>
+		<link rel="stylesheet" content="text/css" href="lib/css/pure/grids-responsive-old-ie-min.css">
+		<![endif]-->
+		<!--[if gt IE 8]><!-->
+		<link rel="stylesheet" content="text/css" href="{{ url_for('static', filename = 'lib/css/pure/grids-responsive-min.css') }}">
+		<!--<![endif]-->
+		<link rel="stylesheet" content="text/css" href="{{ url_for('static', filename = 'lib/css/leaflet/leaflet.css') }}"/>
+		
+		<script src="{{ url_for('static', filename = 'lib/js/jquery-3.2.1.min.js') }}" type="text/javascript"></script>
+		<script src="{{ url_for('static', filename = 'lib/js/jquery.validate.min.js') }}" type="text/javascript"></script>
+		<script src="{{ url_for('static', filename = 'lib/js/leaflet.js') }}" type="text/javascript"></script>
+		<script src="{{ url_for('static', filename = 'lib/js/js.cookie.js') }}"></script>
+		<!--<script src="lib/js/leaflet.hotline.min.js" type="text/javascript"></script>-->
+		
+		<link rel="stylesheet" href="{{ url_for('static', filename = 'css/GnuBoat.css') }}" type="text/css"/>
+		<link rel="stylesheet" href="{{ url_for('static', filename = 'css/side-menu.css') }}" type="text/css"/>
+		<script language="javascript" src="{{ url_for('static', filename = 'js/GnuBoat.js') }}" type="text/javascript"></script>
+		<script language="javascript" src="{{ url_for('static', filename = 'js/GnuBoat.Webserver.js') }}" type="text/javascript"></script>
+		<script language="javascript" type="text/javascript">
+			var active = 'active';
+			var layout = null;
+			var menu = null;
+			var menuLink = null;
+			var content = null;
+
+			function toggleAll() {
+				layout.toggleClass(active);
+				menu.toggleClass(active);
+				menuLink.toggleClass(active);
+			}
+
+			$(document).ready(function () {
+				layout   = $("#layout");
+				menu     = $("#menu");
+				menuLink = $("#menuLink");
+				content  = $("#main");
+
+				menuLink.click(function () {
+					toggleAll();
+				});
+
+				content.click(function() {
+					if (menu.hasClass(active)) {
+						toggleAll();
+					}
+				});
+				
+				GnuBoat.Webserver.initialize();
+				GnuBoat.Webserver.setServer("v1/");
+			});
+		</script>
+	</head>
+	<body>
+		<div id="layout" class="">
+			<a id="menuLink" class="menu-link" href="#menu"><!-- Hamburger icon --><span></span></a>
+			<div id="menu" class="">
+				<div class="pure-menu">
+					<a class="pure-menu-heading" href="#">GNUBoat</a>
+					<ul class="pure-menu-list">
+						<li class="pure-menu-item"><a id="linkMap" class="pure-menu-link" href="#map">Map</a></li>
+						<li class="pure-menu-item"><a class="pure-menu-link" href="#upload">Upload</a></li>
+						<li class="pure-menu-item"><a id="linkMyGnuboat" class="pure-menu-link" href="#mygnuboat">My GnuBoat</a></li>
+					</ul>
+				</div>
+			</div>
+			<div id="main">
+				<!--<div class="content">-->
+				<a name="map"></a>
+				<div id="mapViewport" class="viewportGeometry">
+					<div class="leaflet-top map-middle">
+						<div class="leaflet-control">
+							<img id="logo" src="{{ url_for('static', filename = 'resources/gnuboat-256-256-transparent.png') }}" />
+						</div>
+					</div>
+				</div>
+				<!--</div>-->
+				<div class="content">
+					<a name="mygnuboat"></a>
+					<div id="login">
+						<form id="loginForm" class="pure-form pure-form-aligned">
+							<fieldset>
+								<legend>Login</legend>
+								<div class="pure-control-group">
+									<label for="loginUsername">Username:</label>
+									<input id="loginUsername" type="text" name="loginUsername" value="" required>
+								</div>
+								<div class="pure-control-group">
+									<label for="loginPassword">Password:</label>
+									<input id="loginPassword" type="password" name="loginPassword" value="" required>
+								</div>
+								<input type="submit" class="pure-button pure-button-primary" name="loginButton" value="Login"/>
+							</fieldset>
+						</form>
+					</div>
+					<div id="myWaters">
+						<h2 class="content-subhead">My Waters</h2>
+						<form id="myWatersForm" class="pure-form">
+							<div id="myWatersDiv" class="pure-control-group">
+								
+							</div>
+						</form>
+					</div>
+				</div>
+			</div>
+	</body>
+</html>
Index: src/webapp/mapservice/src-gen/openapi_server/test/__init__.py
===================================================================
--- src/webapp/mapservice/src-gen/openapi_server/test/__init__.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/openapi_server/test/__init__.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,16 @@
+import logging
+
+import connexion
+from flask_testing import TestCase
+
+from openapi_server.encoder import JSONEncoder
+
+
+class BaseTestCase(TestCase):
+
+    def create_app(self):
+        logging.getLogger('connexion.operation').setLevel('ERROR')
+        app = connexion.App(__name__, specification_dir='../openapi/')
+        app.app.json_encoder = JSONEncoder
+        app.add_api('openapi.yaml')
+        return app.app
Index: src/webapp/mapservice/src-gen/openapi_server/test/test_default_controller.py
===================================================================
--- src/webapp/mapservice/src-gen/openapi_server/test/test_default_controller.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/openapi_server/test/test_default_controller.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,32 @@
+# coding: utf-8
+
+from __future__ import absolute_import
+import unittest
+
+from flask import json
+from six import BytesIO
+
+from openapi_server.models.water import Water  # noqa: E501
+from openapi_server.test import BaseTestCase
+
+
+class TestDefaultController(BaseTestCase):
+    """DefaultController integration test stubs"""
+
+    def test_water_get_by_id(self):
+        """Test case for water_get_by_id
+
+        Represents a water
+        """
+        headers = { 
+        }
+        response = self.client.open(
+            '/mapservice/v1/waters/{id}'.format(id=56),
+            method='GET',
+            headers=headers)
+        self.assert200(response,
+                       'Response body is : ' + response.data.decode('utf-8'))
+
+
+if __name__ == '__main__':
+    unittest.main()
Index: src/webapp/mapservice/src-gen/openapi_server/test/test_waters_controller.py
===================================================================
--- src/webapp/mapservice/src-gen/openapi_server/test/test_waters_controller.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/openapi_server/test/test_waters_controller.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,34 @@
+# coding: utf-8
+
+from __future__ import absolute_import
+
+from flask import json
+from six import BytesIO
+
+from openapi_server.models.order import Order  # noqa: E501
+from openapi_server.test import BaseTestCase
+
+
+class TestWatersController(BaseTestCase):
+    """WatersController integration test stubs"""
+
+    def test_waters_get(self):
+        """Test case for waters_get
+
+        Waters_GET
+        """
+        query_string = [('order_by', 'order_by_example'),
+                        ('order', Order()),
+                        ('offset', 0),
+                        ('limit', 10)]
+        response = self.client.open(
+            '/mapservice/v1/waters',
+            method='GET',
+            query_string=query_string)
+        self.assert200(response,
+                       'Response body is : ' + response.data.decode('utf-8'))
+
+
+if __name__ == '__main__':
+    import unittest
+    unittest.main()
Index: src/webapp/mapservice/src-gen/openapi_server/util.py
===================================================================
--- src/webapp/mapservice/src-gen/openapi_server/util.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/openapi_server/util.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,141 @@
+import datetime
+
+import six
+import typing
+
+
+def _deserialize(data, klass):
+    """Deserializes dict, list, str into an object.
+
+    :param data: dict, list or str.
+    :param klass: class literal, or string of class name.
+
+    :return: object.
+    """
+    if data is None:
+        return None
+
+    if klass in six.integer_types or klass in (float, str, bool):
+        return _deserialize_primitive(data, klass)
+    elif klass == object:
+        return _deserialize_object(data)
+    elif klass == datetime.date:
+        return deserialize_date(data)
+    elif klass == datetime.datetime:
+        return deserialize_datetime(data)
+    elif type(klass) == typing.GenericMeta:
+        if klass.__extra__ == list:
+            return _deserialize_list(data, klass.__args__[0])
+        if klass.__extra__ == dict:
+            return _deserialize_dict(data, klass.__args__[1])
+    else:
+        return deserialize_model(data, klass)
+
+
+def _deserialize_primitive(data, klass):
+    """Deserializes to primitive type.
+
+    :param data: data to deserialize.
+    :param klass: class literal.
+
+    :return: int, long, float, str, bool.
+    :rtype: int | long | float | str | bool
+    """
+    try:
+        value = klass(data)
+    except UnicodeEncodeError:
+        value = six.u(data)
+    except TypeError:
+        value = data
+    return value
+
+
+def _deserialize_object(value):
+    """Return an original value.
+
+    :return: object.
+    """
+    return value
+
+
+def deserialize_date(string):
+    """Deserializes string to date.
+
+    :param string: str.
+    :type string: str
+    :return: date.
+    :rtype: date
+    """
+    try:
+        from dateutil.parser import parse
+        return parse(string).date()
+    except ImportError:
+        return string
+
+
+def deserialize_datetime(string):
+    """Deserializes string to datetime.
+
+    The string should be in iso8601 datetime format.
+
+    :param string: str.
+    :type string: str
+    :return: datetime.
+    :rtype: datetime
+    """
+    try:
+        from dateutil.parser import parse
+        return parse(string)
+    except ImportError:
+        return string
+
+
+def deserialize_model(data, klass):
+    """Deserializes list or dict to model.
+
+    :param data: dict, list.
+    :type data: dict | list
+    :param klass: class literal.
+    :return: model object.
+    """
+    instance = klass()
+
+    if not instance.openapi_types:
+        return data
+
+    for attr, attr_type in six.iteritems(instance.openapi_types):
+        if data is not None \
+                and instance.attribute_map[attr] in data \
+                and isinstance(data, (list, dict)):
+            value = data[instance.attribute_map[attr]]
+            setattr(instance, attr, _deserialize(value, attr_type))
+
+    return instance
+
+
+def _deserialize_list(data, boxed_type):
+    """Deserializes a list and its elements.
+
+    :param data: list to deserialize.
+    :type data: list
+    :param boxed_type: class literal.
+
+    :return: deserialized list.
+    :rtype: list
+    """
+    return [_deserialize(sub_data, boxed_type)
+            for sub_data in data]
+
+
+def _deserialize_dict(data, boxed_type):
+    """Deserializes a dict and its elements.
+
+    :param data: dict to deserialize.
+    :type data: dict
+    :param boxed_type: class literal.
+
+    :return: deserialized dict.
+    :rtype: dict
+    """
+    return {k: _deserialize(v, boxed_type)
+            for k, v in six.iteritems(data)}
Index: src/webapp/mapservice/src-gen/requirements.txt
===================================================================
--- src/webapp/mapservice/src-gen/requirements.txt	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/requirements.txt	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,4 @@
+connexion == 2.0.2
+swagger-ui-bundle == 0.0.2
+python_dateutil == 2.6.0
+setuptools >= 21.0.0
Index: src/webapp/mapservice/src-gen/setup.py
===================================================================
--- src/webapp/mapservice/src-gen/setup.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/setup.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,39 @@
+# coding: utf-8
+
+import sys
+from setuptools import setup, find_packages
+
+NAME = "openapi_server"
+VERSION = "1.0.0"
+
+# To install the library, run the following
+#
+# python setup.py install
+#
+# prerequisite: setuptools
+# http://pypi.python.org/pypi/setuptools
+
+REQUIRES = [
+    "connexion==2.0.0",
+    "swagger-ui-bundle==0.0.2",
+    "python_dateutil==2.6.0"
+]
+
+setup(
+    name=NAME,
+    version=VERSION,
+    description="GNUBoat Mapservice API",
+    author_email="info@engsas.de",
+    url="",
+    keywords=["OpenAPI", "GNUBoat Mapservice API"],
+    install_requires=REQUIRES,
+    packages=find_packages(),
+    package_data={'': ['openapi/openapi.yaml']},
+    include_package_data=True,
+    entry_points={
+        'console_scripts': ['openapi_server=openapi_server.__main__:main']},
+    long_description="""\
+    API to upload log files with water depth to GNUBoat server
+    """
+)
+
Index: src/webapp/mapservice/src-gen/test-requirements.txt
===================================================================
--- src/webapp/mapservice/src-gen/test-requirements.txt	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/test-requirements.txt	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,6 @@
+flask_testing==0.6.1
+coverage>=4.0.3
+nose>=1.3.7
+pluggy>=0.3.1
+py>=1.4.31
+randomize>=0.13
Index: src/webapp/mapservice/src-gen/tox.ini
===================================================================
--- src/webapp/mapservice/src-gen/tox.ini	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src-gen/tox.ini	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,10 @@
+[tox]
+envlist = py3
+
+[testenv]
+deps=-r{toxinidir}/requirements.txt
+     -r{toxinidir}/test-requirements.txt
+
+commands=
+   nosetests \
+      []
Index: src/webapp/mapservice/src/server_impl/Config.py
===================================================================
--- src/webapp/mapservice/src/server_impl/Config.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/server_impl/Config.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,13 @@
+class Config(object):
+	DEBUG = False
+	TESTING = False
+	SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/test.db'
+
+class ProductionConfig(Config):
+	SQLALCHEMY_DATABASE_URI = 'mysql://gnuboat:gnuboat@localhost/gnuboat_mapservice'
+
+class DevelopmentConfig(Config):
+	DEBUG = True
+
+class TestingConfig(Config):
+	TESTING = True
Index: src/webapp/mapservice/src/server_impl/controllers/WatersController.py
===================================================================
--- src/webapp/mapservice/src/server_impl/controllers/WatersController.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/server_impl/controllers/WatersController.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,30 @@
+import connexion
+
+from ..database.Model import User, Water
+
+def waters_get(name=None, manager=None, order_by=None, offset=None, limit=None):
+	query = None
+	manager = User.query.filter_by(username=manager).all()
+	if len(manager) == 1 and name is not None:
+		query = Water.query.filter_by(name = name, manager = manager[0])
+	elif len(manager) == 1:
+		query = Water.query.filter_by(manager = manager[0])
+	elif name is not None:
+		query = Water.query.filter_by(name = name)
+	else:
+		query = Water.query
+	
+	result = []
+	for water in query:
+		result.append(water.to_dict())
+	return result
+
+def water_get_by_id(id):
+	return {
+		'water_id': id,
+		'name': 'Mississippi'
+	}
+
+def waters_post(water):
+	print(connexion.context['user'])
+	return water
Index: src/webapp/mapservice/src/server_impl/database/Model.py
===================================================================
--- src/webapp/mapservice/src/server_impl/database/Model.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/server_impl/database/Model.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,73 @@
+from flask_sqlalchemy import SQLAlchemy
+from sqlalchemy import inspect
+
+db = SQLAlchemy()
+
+class User(db.Model):
+	__tablename__ = "users"
+	
+	id = db.Column(db.Integer, primary_key=True, autoincrement=True)
+	username = db.Column(db.String(255), nullable=False, unique=True)
+	password = db.Column(db.String(255), nullable=False)
+	email = db.Column(db.String(255), nullable=False)
+	first_name = db.Column(db.String(255))
+	last_name = db.Column(db.String(255))
+
+class ApiKey(db.Model):
+	__tablename__ = "apikeys"
+
+	id = db.Column(db.Integer, primary_key=True, autoincrement=True)
+	user_id = db.Column(db.BigInteger, db.ForeignKey('users.id'))
+	key = db.Column(db.String(255), nullable=False)
+	user = db.relationship("User", backref=db.backref("apikeys", uselist=False), lazy=True)
+	
+class Water(db.Model):
+	__tablename__ = "waters"
+	
+	id = db.Column(db.Integer, primary_key=True, autoincrement=True)
+	name = db.Column(db.String(255), nullable=False)
+	manager_id = db.Column(db.Integer, db.ForeignKey('users.id'))
+	osm_id = db.Column(db.BigInteger)
+	osm_type = db.Column(db.String(255))
+	osm_class = db.Column(db.String(255))
+	manager = db.relationship("User", backref=db.backref("waters", uselist=False), lazy=True)
+	
+	def to_dict(obj):
+		result = { 'water_id': obj.id, 'name': obj.name}
+		if obj.manager:
+			result['manager'] = obj.manager.username
+		if obj.osm_id:
+			result['osm_id'] = obj.osm_id
+		if obj.osm_type:
+			result['osm_type'] = obj.osm_type
+		if obj.osm_class:
+			result['osm_class'] = obj.osm_class
+		return result
+
+#class Gauge(db.Model):
+	#__tablename__ = "gauges"
+	
+	#id = db.Column(db.Integer, primary_key=True, autoincrement=True)
+	#name = db.Column(db.String(255), nullable=False)
+	#manager_id = db.Column(db.Integer, db.ForeignKey('users.id'))
+	#location = POINT
+	#water_id = db.Column(db.Integer, db.ForeignKey('waters.id'))
+	#comment = db.Column(db.String(255))
+	#osm_id = db.Column(db.Integer)
+	#osm_type = db.Column(db.String(255))
+	#osm_class = db.Column(db.String(255))
+	#manager = db.relationship("User", backref=db.backref("users", order_by=username), lazy=True)
+	#waters = db.relationship("Water", backref=db.backref("waters", order_by=label), lazy=True)
+
+def db_test_setup():
+	db.create_all()
+	
+	test_user = User(username='test', password='testpass', email='example@example.org')
+	if len(ApiKey.query.filter_by(key='test_key').all()) < 1:
+		test_key = ApiKey(user=test_user, key='test_key')
+		db.session.add(test_key)
+	if len(Water.query.filter_by(name='Mississippi').all()) < 1:
+		mississippi = Water(name='Mississippi', manager=test_user)
+		db.session.add(mississippi)
+	db.session.commit()
+
Index: src/webapp/mapservice/src/server_impl/security/Security.py
===================================================================
--- src/webapp/mapservice/src/server_impl/security/Security.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/server_impl/security/Security.py	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,24 @@
+from ..database.Model import ApiKey, User
+
+def auth_basic(username, password, required_scopes=None):
+	if username == 'admin' and password == 'secret':
+		return {'sub': 'admin'}
+
+	# optional: raise exception for custom error response
+	return None
+
+def auth_api(apikey, required_scopes=None):
+	keys = ApiKey.query.filter_by(key=apikey).all()
+	if len(keys) != 1:
+		return None
+	
+	key_db = keys[0]
+	if apikey == key_db.key:
+		return {'sub': key_db.user.username }
+
+	# optional: raise exception for custom error response
+	return None
+
+
+def get_secret(user) -> str:
+	return "You are {user} and the secret is 'wbevuec'".format(user=user)
Index: src/webapp/mapservice/src/static/css/GnuBoat.css
===================================================================
--- src/webapp/mapservice/src/static/css/GnuBoat.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/css/GnuBoat.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,61 @@
+/*
+    Copyright (C) 2016 - 2019 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+@import url("GnuBoat.Colors.css");
+
+.l-box {
+	padding: 1em;
+}
+
+.leaflet-top {
+	top: 2.5em;
+}
+
+.map-middle {
+	right: 50%;
+}
+
+#logo {
+	height: auto;
+	width: 6em;
+}
+
+#message .error {
+	font-weight: bold;
+	color: var(--gnuboat-warning);
+}
+
+#message .info {
+	font-weight: bold;
+	color: var(--gnuboat-primary-dark);
+}
+
+.viewportGeometry {
+	width: -webkit-calc(100vw - 3em);
+	width:    -moz-calc(100vw - 3em);
+	width:         calc(100vw - 3em);
+	height: -webkit-calc(100vh - 3em);
+	height:    -moz-calc(100vh - 3em);
+	height:         calc(100vh - 3em);
+}
+
+#mapViewport {
+	border: 1px solid var(--gnuboat-primary-light);
+	margin-top: 1.5em;
+	margin-left: 1.5em;
+	background-color: white;
+}
Index: src/webapp/mapservice/src/static/js/GnuBoat.Webserver.js
===================================================================
--- src/webapp/mapservice/src/static/js/GnuBoat.Webserver.js	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/js/GnuBoat.Webserver.js	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,147 @@
+/*
+
+    Copyright (C) 2018 - 2019 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+    MA 02110-1301  USA.
+
+*/
+
+/** @namespace GnuBoat JavaScript namespace */
+var GnuBoat = GnuBoat || {};
+/** @namespace GnuBoat Webserver JavaScript namespace */
+GnuBoat.Webserver = GnuBoat.Webserver || {};
+
+GnuBoat.Webserver.initialize = function()
+{
+	GnuBoat.Webserver.private.mapSetup();
+	$("#loginForm").validate({
+		rules: {
+			loginUsername: {
+				required: true
+			},
+			loginPassword: {
+				required: true
+			}
+		},
+		submitHandler: function(form){
+			GnuBoat.Webserver.login(form);
+		}
+	});
+	
+	$("#login").hide();
+	$("#myWaters").hide();
+	$("#linkMyGnuboat").click(function(){ $("#mapViewport").hide(); GnuBoat.Webserver.loginCheck(); });
+	$("#linkMap").click(function(){ $("#mapViewport").show(); });
+}
+
+/**
+ * @brief Sets the webservice base url, used by any other functions
+ */
+GnuBoat.Webserver.setServer = function(baseUrl)
+{
+	if(baseUrl.slice(-1) != "/")
+		baseUrl += "/";
+	GnuBoat.Webserver.private.serverBaseUrl = baseUrl;
+}
+
+GnuBoat.Webserver.private = {
+	loggedin: false,
+	map: null,
+	mapSetup: function ()
+	{
+		GnuBoat.Webserver.private.map = L.map('mapViewport').setView([48.43, 10.04], 17);
+		
+		var layer_openstreetmap = L.tileLayer(
+			'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
+			{ attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>, <a href="http://www.openseamap.org">OpenSeaMap</a>, <a href="http://gnuboat.engsas.de">GNUBoat</a> contributors'}
+		).addTo(GnuBoat.Webserver.private.map);
+		var layer_openseamap = L.tileLayer(
+			'http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png',
+			{attribute: '&copy; <a href="http://www.openseamap.org">OpenSeaMap</a> contributors'}
+		).addTo(GnuBoat.Webserver.private.map);
+		
+		// add GNUBoat layers
+		var layer_gnuboat_accuracy_low = L.tileLayer(
+			'./tiles/gnuboat_10_100/{z}/{x}/{y}.png',
+			{tms: true, opacity: 0.5, zIndex: 98, attribute: '&copy; <a href="http://gnuboat.engsas.de">GNUBoat</a> contributors'}
+		);
+		var layer_gnuboat_accuracy_high = L.tileLayer(
+			'./tiles/gnuboat_100_100/{z}/{x}/{y}.png',
+			{tms: true, opacity: 0.5, zIndex: 98, attribute: '&copy; <a href="http://gnuboat.engsas.de">GNUBoat</a> contributors'}
+		).addTo(GnuBoat.Webserver.private.map);
+		
+		// add layer control
+		var baselayers = {
+			"Map": layer_openstreetmap,
+		};
+		// overlays
+		var overlays = {"Seamarks": layer_openseamap,
+			"GNUBoat Low Accuracy": layer_gnuboat_accuracy_low,
+			"GNUBoat High Accuracy": layer_gnuboat_accuracy_high,
+		};
+		GnuBoat.Webserver.private.mapControl = L.control.layers(
+			baselayers, overlays,
+			{hideSingleBase: true, sortLayers: true, }
+		).addTo(GnuBoat.Webserver.private.map);
+		
+		// add scale
+		L.control.scale().addTo(GnuBoat.Webserver.private.map);
+	}
+};
+
+GnuBoat.Webserver.login = function(form)
+{
+	Cookies.set('username', $("#loginUsername").val());
+	Cookies.set('password', $("#loginPassword").val());
+	GnuBoat.Webserver.private.loggedin = false;
+	
+	// getting my waters
+	$.ajax({
+		headers: {
+// 			manager: Cookies.get('username')
+			manager: "bla"
+		},
+		dataType: "json",
+		url: GnuBoat.Webserver.private.serverBaseUrl +'waters',
+	}).done(function(data) {
+		GnuBoat.Webserver.private.loggedin = true;
+		GnuBoat.Webserver.loginCheck();
+		
+		$("#myWatersDiv").empty();
+		if(data.length < 1){
+			$("<p>No Waters found!</p>").appendTo("#myWatersDiv");
+		}
+		else{
+			$('<select id="myWatersSelect" class="pure-input-1"></select>').appendTo("#myWatersDiv");
+			data.forEach(function(value, index){
+				$("<option value=\""+ value.water_id +"\">"+ value.name +"</option>").appendTo("#myWatersSelect");
+			})
+		}
+		$("#myWaters").show();
+	}).fail(function() {
+		alert('request failed');
+	});
+};
+
+GnuBoat.Webserver.loginCheck = function()
+{
+	console.log([Cookies.get('username'), Cookies.get('username') == undefined, Cookies.get('password'), Cookies.get('password') == undefined, GnuBoat.Webserver.private.loggedin]);
+	if(Cookies.get('username') == undefined || Cookies.get('password') == undefined || !GnuBoat.Webserver.private.loggedin){
+		$("#login").show();
+		return;
+	}
+	$("#login").hide();
+};
Index: src/webapp/mapservice/src/static/lib/css/leaflet/leaflet.css
===================================================================
--- src/webapp/mapservice/src/static/lib/css/leaflet/leaflet.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/css/leaflet/leaflet.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,631 @@
+/* required styles */
+
+.leaflet-pane,
+.leaflet-tile,
+.leaflet-marker-icon,
+.leaflet-marker-shadow,
+.leaflet-tile-container,
+.leaflet-pane > svg,
+.leaflet-pane > canvas,
+.leaflet-zoom-box,
+.leaflet-image-layer,
+.leaflet-layer {
+	position: absolute;
+	left: 0;
+	top: 0;
+	}
+.leaflet-container {
+	overflow: hidden;
+	}
+.leaflet-tile,
+.leaflet-marker-icon,
+.leaflet-marker-shadow {
+	-webkit-user-select: none;
+	   -moz-user-select: none;
+	        user-select: none;
+	  -webkit-user-drag: none;
+	}
+/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
+.leaflet-safari .leaflet-tile {
+	image-rendering: -webkit-optimize-contrast;
+	}
+/* hack that prevents hw layers "stretching" when loading new tiles */
+.leaflet-safari .leaflet-tile-container {
+	width: 1600px;
+	height: 1600px;
+	-webkit-transform-origin: 0 0;
+	}
+.leaflet-marker-icon,
+.leaflet-marker-shadow {
+	display: block;
+	}
+/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
+/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
+.leaflet-container .leaflet-overlay-pane svg,
+.leaflet-container .leaflet-marker-pane img,
+.leaflet-container .leaflet-shadow-pane img,
+.leaflet-container .leaflet-tile-pane img,
+.leaflet-container img.leaflet-image-layer {
+	max-width: none !important;
+	}
+
+.leaflet-container.leaflet-touch-zoom {
+	-ms-touch-action: pan-x pan-y;
+	touch-action: pan-x pan-y;
+	}
+.leaflet-container.leaflet-touch-drag {
+	-ms-touch-action: pinch-zoom;
+	}
+.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
+	-ms-touch-action: none;
+	touch-action: none;
+}
+.leaflet-container {
+	-webkit-tap-highlight-color: transparent;
+}
+.leaflet-container a {
+	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
+}
+.leaflet-tile {
+	filter: inherit;
+	visibility: hidden;
+	}
+.leaflet-tile-loaded {
+	visibility: inherit;
+	}
+.leaflet-zoom-box {
+	width: 0;
+	height: 0;
+	-moz-box-sizing: border-box;
+	     box-sizing: border-box;
+	z-index: 800;
+	}
+/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
+.leaflet-overlay-pane svg {
+	-moz-user-select: none;
+	}
+
+.leaflet-pane         { z-index: 400; }
+
+.leaflet-tile-pane    { z-index: 200; }
+.leaflet-overlay-pane { z-index: 400; }
+.leaflet-shadow-pane  { z-index: 500; }
+.leaflet-marker-pane  { z-index: 600; }
+.leaflet-tooltip-pane   { z-index: 650; }
+.leaflet-popup-pane   { z-index: 700; }
+
+.leaflet-map-pane canvas { z-index: 100; }
+.leaflet-map-pane svg    { z-index: 200; }
+
+.leaflet-vml-shape {
+	width: 1px;
+	height: 1px;
+	}
+.lvml {
+	behavior: url(#default#VML);
+	display: inline-block;
+	position: absolute;
+	}
+
+
+/* control positioning */
+
+.leaflet-control {
+	position: relative;
+	z-index: 800;
+	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
+	pointer-events: auto;
+	}
+.leaflet-top,
+.leaflet-bottom {
+	position: absolute;
+	z-index: 1000;
+	pointer-events: none;
+	}
+.leaflet-top {
+	top: 0;
+	}
+.leaflet-right {
+	right: 0;
+	}
+.leaflet-bottom {
+	bottom: 0;
+	}
+.leaflet-left {
+	left: 0;
+	}
+.leaflet-control {
+	float: left;
+	clear: both;
+	}
+.leaflet-right .leaflet-control {
+	float: right;
+	}
+.leaflet-top .leaflet-control {
+	margin-top: 10px;
+	}
+.leaflet-bottom .leaflet-control {
+	margin-bottom: 10px;
+	}
+.leaflet-left .leaflet-control {
+	margin-left: 10px;
+	}
+.leaflet-right .leaflet-control {
+	margin-right: 10px;
+	}
+
+
+/* zoom and fade animations */
+
+.leaflet-fade-anim .leaflet-tile {
+	will-change: opacity;
+	}
+.leaflet-fade-anim .leaflet-popup {
+	opacity: 0;
+	-webkit-transition: opacity 0.2s linear;
+	   -moz-transition: opacity 0.2s linear;
+	     -o-transition: opacity 0.2s linear;
+	        transition: opacity 0.2s linear;
+	}
+.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
+	opacity: 1;
+	}
+.leaflet-zoom-animated {
+	-webkit-transform-origin: 0 0;
+	    -ms-transform-origin: 0 0;
+	        transform-origin: 0 0;
+	}
+.leaflet-zoom-anim .leaflet-zoom-animated {
+	will-change: transform;
+	}
+.leaflet-zoom-anim .leaflet-zoom-animated {
+	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
+	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
+	     -o-transition:      -o-transform 0.25s cubic-bezier(0,0,0.25,1);
+	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
+	}
+.leaflet-zoom-anim .leaflet-tile,
+.leaflet-pan-anim .leaflet-tile {
+	-webkit-transition: none;
+	   -moz-transition: none;
+	     -o-transition: none;
+	        transition: none;
+	}
+
+.leaflet-zoom-anim .leaflet-zoom-hide {
+	visibility: hidden;
+	}
+
+
+/* cursors */
+
+.leaflet-interactive {
+	cursor: pointer;
+	}
+.leaflet-grab {
+	cursor: -webkit-grab;
+	cursor:    -moz-grab;
+	}
+.leaflet-crosshair,
+.leaflet-crosshair .leaflet-interactive {
+	cursor: crosshair;
+	}
+.leaflet-popup-pane,
+.leaflet-control {
+	cursor: auto;
+	}
+.leaflet-dragging .leaflet-grab,
+.leaflet-dragging .leaflet-grab .leaflet-interactive,
+.leaflet-dragging .leaflet-marker-draggable {
+	cursor: move;
+	cursor: -webkit-grabbing;
+	cursor:    -moz-grabbing;
+	}
+
+/* marker & overlays interactivity */
+.leaflet-marker-icon,
+.leaflet-marker-shadow,
+.leaflet-image-layer,
+.leaflet-pane > svg path,
+.leaflet-tile-container {
+	pointer-events: none;
+	}
+
+.leaflet-marker-icon.leaflet-interactive,
+.leaflet-image-layer.leaflet-interactive,
+.leaflet-pane > svg path.leaflet-interactive {
+	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
+	pointer-events: auto;
+	}
+
+/* visual tweaks */
+
+.leaflet-container {
+	background: #ddd;
+	outline: 0;
+	}
+.leaflet-container a {
+	color: #0078A8;
+	}
+.leaflet-container a.leaflet-active {
+	outline: 2px solid orange;
+	}
+.leaflet-zoom-box {
+	border: 2px dotted #38f;
+	background: rgba(255,255,255,0.5);
+	}
+
+
+/* general typography */
+.leaflet-container {
+	font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
+	}
+
+
+/* general toolbar styles */
+
+.leaflet-bar {
+	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
+	border-radius: 4px;
+	}
+.leaflet-bar a,
+.leaflet-bar a:hover {
+	background-color: #fff;
+	border-bottom: 1px solid #ccc;
+	width: 26px;
+	height: 26px;
+	line-height: 26px;
+	display: block;
+	text-align: center;
+	text-decoration: none;
+	color: black;
+	}
+.leaflet-bar a,
+.leaflet-control-layers-toggle {
+	background-position: 50% 50%;
+	background-repeat: no-repeat;
+	display: block;
+	}
+.leaflet-bar a:hover {
+	background-color: #f4f4f4;
+	}
+.leaflet-bar a:first-child {
+	border-top-left-radius: 4px;
+	border-top-right-radius: 4px;
+	}
+.leaflet-bar a:last-child {
+	border-bottom-left-radius: 4px;
+	border-bottom-right-radius: 4px;
+	border-bottom: none;
+	}
+.leaflet-bar a.leaflet-disabled {
+	cursor: default;
+	background-color: #f4f4f4;
+	color: #bbb;
+	}
+
+.leaflet-touch .leaflet-bar a {
+	width: 30px;
+	height: 30px;
+	line-height: 30px;
+	}
+.leaflet-touch .leaflet-bar a:first-child {
+	border-top-left-radius: 2px;
+	border-top-right-radius: 2px;
+	}
+.leaflet-touch .leaflet-bar a:last-child {
+	border-bottom-left-radius: 2px;
+	border-bottom-right-radius: 2px;
+	}
+
+/* zoom control */
+
+.leaflet-control-zoom-in,
+.leaflet-control-zoom-out {
+	font: bold 18px 'Lucida Console', Monaco, monospace;
+	text-indent: 1px;
+	}
+
+.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
+	font-size: 22px;
+	}
+
+
+/* layers control */
+
+.leaflet-control-layers {
+	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
+	background: #fff;
+	border-radius: 5px;
+	}
+.leaflet-control-layers-toggle {
+	background-image: url(images/layers.png);
+	width: 36px;
+	height: 36px;
+	}
+.leaflet-retina .leaflet-control-layers-toggle {
+	background-image: url(images/layers-2x.png);
+	background-size: 26px 26px;
+	}
+.leaflet-touch .leaflet-control-layers-toggle {
+	width: 44px;
+	height: 44px;
+	}
+.leaflet-control-layers .leaflet-control-layers-list,
+.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
+	display: none;
+	}
+.leaflet-control-layers-expanded .leaflet-control-layers-list {
+	display: block;
+	position: relative;
+	}
+.leaflet-control-layers-expanded {
+	padding: 6px 10px 6px 6px;
+	color: #333;
+	background: #fff;
+	}
+.leaflet-control-layers-scrollbar {
+	overflow-y: scroll;
+	padding-right: 5px;
+	}
+.leaflet-control-layers-selector {
+	margin-top: 2px;
+	position: relative;
+	top: 1px;
+	}
+.leaflet-control-layers label {
+	display: block;
+	}
+.leaflet-control-layers-separator {
+	height: 0;
+	border-top: 1px solid #ddd;
+	margin: 5px -10px 5px -6px;
+	}
+
+/* Default icon URLs */
+.leaflet-default-icon-path {
+	background-image: url(images/marker-icon.png);
+	}
+
+
+/* attribution and scale controls */
+
+.leaflet-container .leaflet-control-attribution {
+	background: #fff;
+	background: rgba(255, 255, 255, 0.7);
+	margin: 0;
+	}
+.leaflet-control-attribution,
+.leaflet-control-scale-line {
+	padding: 0 5px;
+	color: #333;
+	}
+.leaflet-control-attribution a {
+	text-decoration: none;
+	}
+.leaflet-control-attribution a:hover {
+	text-decoration: underline;
+	}
+.leaflet-container .leaflet-control-attribution,
+.leaflet-container .leaflet-control-scale {
+	font-size: 11px;
+	}
+.leaflet-left .leaflet-control-scale {
+	margin-left: 5px;
+	}
+.leaflet-bottom .leaflet-control-scale {
+	margin-bottom: 5px;
+	}
+.leaflet-control-scale-line {
+	border: 2px solid #777;
+	border-top: none;
+	line-height: 1.1;
+	padding: 2px 5px 1px;
+	font-size: 11px;
+	white-space: nowrap;
+	overflow: hidden;
+	-moz-box-sizing: border-box;
+	     box-sizing: border-box;
+
+	background: #fff;
+	background: rgba(255, 255, 255, 0.5);
+	}
+.leaflet-control-scale-line:not(:first-child) {
+	border-top: 2px solid #777;
+	border-bottom: none;
+	margin-top: -2px;
+	}
+.leaflet-control-scale-line:not(:first-child):not(:last-child) {
+	border-bottom: 2px solid #777;
+	}
+
+.leaflet-touch .leaflet-control-attribution,
+.leaflet-touch .leaflet-control-layers,
+.leaflet-touch .leaflet-bar {
+	box-shadow: none;
+	}
+.leaflet-touch .leaflet-control-layers,
+.leaflet-touch .leaflet-bar {
+	border: 2px solid rgba(0,0,0,0.2);
+	background-clip: padding-box;
+	}
+
+
+/* popup */
+
+.leaflet-popup {
+	position: absolute;
+	text-align: center;
+	margin-bottom: 20px;
+	}
+.leaflet-popup-content-wrapper {
+	padding: 1px;
+	text-align: left;
+	border-radius: 12px;
+	}
+.leaflet-popup-content {
+	margin: 13px 19px;
+	line-height: 1.4;
+	}
+.leaflet-popup-content p {
+	margin: 18px 0;
+	}
+.leaflet-popup-tip-container {
+	width: 40px;
+	height: 20px;
+	position: absolute;
+	left: 50%;
+	margin-left: -20px;
+	overflow: hidden;
+	pointer-events: none;
+	}
+.leaflet-popup-tip {
+	width: 17px;
+	height: 17px;
+	padding: 1px;
+
+	margin: -10px auto 0;
+
+	-webkit-transform: rotate(45deg);
+	   -moz-transform: rotate(45deg);
+	    -ms-transform: rotate(45deg);
+	     -o-transform: rotate(45deg);
+	        transform: rotate(45deg);
+	}
+.leaflet-popup-content-wrapper,
+.leaflet-popup-tip {
+	background: white;
+	color: #333;
+	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
+	}
+.leaflet-container a.leaflet-popup-close-button {
+	position: absolute;
+	top: 0;
+	right: 0;
+	padding: 4px 4px 0 0;
+	border: none;
+	text-align: center;
+	width: 18px;
+	height: 14px;
+	font: 16px/14px Tahoma, Verdana, sans-serif;
+	color: #c3c3c3;
+	text-decoration: none;
+	font-weight: bold;
+	background: transparent;
+	}
+.leaflet-container a.leaflet-popup-close-button:hover {
+	color: #999;
+	}
+.leaflet-popup-scrolled {
+	overflow: auto;
+	border-bottom: 1px solid #ddd;
+	border-top: 1px solid #ddd;
+	}
+
+.leaflet-oldie .leaflet-popup-content-wrapper {
+	zoom: 1;
+	}
+.leaflet-oldie .leaflet-popup-tip {
+	width: 24px;
+	margin: 0 auto;
+
+	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
+	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
+	}
+.leaflet-oldie .leaflet-popup-tip-container {
+	margin-top: -1px;
+	}
+
+.leaflet-oldie .leaflet-control-zoom,
+.leaflet-oldie .leaflet-control-layers,
+.leaflet-oldie .leaflet-popup-content-wrapper,
+.leaflet-oldie .leaflet-popup-tip {
+	border: 1px solid #999;
+	}
+
+
+/* div icon */
+
+.leaflet-div-icon {
+	background: #fff;
+	border: 1px solid #666;
+	}
+
+
+/* Tooltip */
+/* Base styles for the element that has a tooltip */
+.leaflet-tooltip {
+	position: absolute;
+	padding: 6px;
+	background-color: #fff;
+	border: 1px solid #fff;
+	border-radius: 3px;
+	color: #222;
+	white-space: nowrap;
+	-webkit-user-select: none;
+	-moz-user-select: none;
+	-ms-user-select: none;
+	user-select: none;
+	pointer-events: none;
+	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
+	}
+.leaflet-tooltip.leaflet-clickable {
+	cursor: pointer;
+	pointer-events: auto;
+	}
+.leaflet-tooltip-top:before,
+.leaflet-tooltip-bottom:before,
+.leaflet-tooltip-left:before,
+.leaflet-tooltip-right:before {
+	position: absolute;
+	pointer-events: none;
+	border: 6px solid transparent;
+	background: transparent;
+	content: "";
+	}
+
+/* Directions */
+
+.leaflet-tooltip-bottom {
+	margin-top: 6px;
+}
+.leaflet-tooltip-top {
+	margin-top: -6px;
+}
+.leaflet-tooltip-bottom:before,
+.leaflet-tooltip-top:before {
+	left: 50%;
+	margin-left: -6px;
+	}
+.leaflet-tooltip-top:before {
+	bottom: 0;
+	margin-bottom: -12px;
+	border-top-color: #fff;
+	}
+.leaflet-tooltip-bottom:before {
+	top: 0;
+	margin-top: -12px;
+	margin-left: -6px;
+	border-bottom-color: #fff;
+	}
+.leaflet-tooltip-left {
+	margin-left: -6px;
+}
+.leaflet-tooltip-right {
+	margin-left: 6px;
+}
+.leaflet-tooltip-left:before,
+.leaflet-tooltip-right:before {
+	top: 50%;
+	margin-top: -6px;
+	}
+.leaflet-tooltip-left:before {
+	right: 0;
+	margin-right: -12px;
+	border-left-color: #fff;
+	}
+.leaflet-tooltip-right:before {
+	left: 0;
+	margin-left: -12px;
+	border-right-color: #fff;
+	}
Index: src/webapp/mapservice/src/static/lib/css/pure/base-context-min.css
===================================================================
--- src/webapp/mapservice/src/static/lib/css/pure/base-context-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/css/pure/base-context-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,11 @@
+/*!
+Pure v1.0.0
+Copyright 2013 Yahoo!
+Licensed under the BSD License.
+https://github.com/yahoo/pure/blob/master/LICENSE.md
+*/
+/*!
+normalize.css v^3.0 | MIT License | git.io/normalize
+Copyright (c) Nicolas Gallagher and Jonathan Neal
+*/
+/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */.pure{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;margin:0}.pure article,.pure aside,.pure details,.pure figcaption,.pure figure,.pure footer,.pure header,.pure hgroup,.pure main,.pure menu,.pure nav,.pure section,.pure summary{display:block}.pure audio,.pure canvas,.pure progress,.pure video{display:inline-block;vertical-align:baseline}.pure audio:not([controls]){display:none;height:0}.pure [hidden],.pure template{display:none}.pure a{background-color:transparent}.pure a:active,.pure a:hover{outline:0}.pure abbr[title]{border-bottom:1px dotted}.pure b,.pure strong{font-weight:700}.pure dfn{font-style:italic}.pure h1{font-size:2em;margin:.67em 0}.pure mark{background:#ff0;color:#000}.pure small{font-size:80%}.pure sub,.pure sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.pure sup{top:-.5em}.pure sub{bottom:-.25em}.pure img{border:0}.pure svg:not(:root){overflow:hidden}.pure figure{margin:1em 40px}.pure hr{box-sizing:content-box;height:0}.pure pre{overflow:auto}.pure code,.pure kbd,.pure pre,.pure samp{font-family:monospace,monospace;font-size:1em}.pure button,.pure input,.pure optgroup,.pure select,.pure textarea{color:inherit;font:inherit;margin:0}.pure button{overflow:visible}.pure button,.pure select{text-transform:none}.pure button,.pure input[type=button],.pure input[type=reset],.pure input[type=submit]{-webkit-appearance:button;cursor:pointer}.pure button[disabled],.pure input[disabled]{cursor:default}.pure button::-moz-focus-inner,.pure input::-moz-focus-inner{border:0;padding:0}.pure input{line-height:normal}.pure input[type=checkbox],.pure input[type=radio]{box-sizing:border-box;padding:0}.pure input[type=number]::-webkit-inner-spin-button,.pure input[type=number]::-webkit-outer-spin-button{height:auto}.pure input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}.pure input[type=search]::-webkit-search-cancel-button,.pure input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.pure fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}.pure legend{border:0;padding:0}.pure textarea{overflow:auto}.pure optgroup{font-weight:700}.pure table{border-collapse:collapse;border-spacing:0}.pure td,.pure th{padding:0}.pure .hidden,.pure [hidden]{display:none!important}.pure .pure-img{max-width:100%;height:auto;display:block}
Index: src/webapp/mapservice/src/static/lib/css/pure/base-min.css
===================================================================
--- src/webapp/mapservice/src/static/lib/css/pure/base-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/css/pure/base-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,11 @@
+/*!
+Pure v1.0.0
+Copyright 2013 Yahoo!
+Licensed under the BSD License.
+https://github.com/yahoo/pure/blob/master/LICENSE.md
+*/
+/*!
+normalize.css v^3.0 | MIT License | git.io/normalize
+Copyright (c) Nicolas Gallagher and Jonathan Neal
+*/
+/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */img,legend{border:0}legend,td,th{padding:0}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,optgroup,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre,textarea{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}table{border-collapse:collapse;border-spacing:0}.hidden,[hidden]{display:none!important}.pure-img{max-width:100%;height:auto;display:block}
Index: src/webapp/mapservice/src/static/lib/css/pure/buttons-core-min.css
===================================================================
--- src/webapp/mapservice/src/static/lib/css/pure/buttons-core-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/css/pure/buttons-core-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,7 @@
+/*!
+Pure v1.0.0
+Copyright 2013 Yahoo!
+Licensed under the BSD License.
+https://github.com/yahoo/pure/blob/master/LICENSE.md
+*/
+.pure-button{display:inline-block;zoom:1;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-group{letter-spacing:-.31em;text-rendering:optimizespeed}.opera-only :-o-prefocus,.pure-button-group{word-spacing:-.43em}.pure-button-group .pure-button{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}
Index: src/webapp/mapservice/src/static/lib/css/pure/buttons-min.css
===================================================================
--- src/webapp/mapservice/src/static/lib/css/pure/buttons-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/css/pure/buttons-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,7 @@
+/*!
+Pure v1.0.0
+Copyright 2013 Yahoo!
+Licensed under the BSD License.
+https://github.com/yahoo/pure/blob/master/LICENSE.md
+*/
+.pure-button{display:inline-block;zoom:1;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-group{letter-spacing:-.31em;text-rendering:optimizespeed}.opera-only :-o-prefocus,.pure-button-group{word-spacing:-.43em}.pure-button{font-family:inherit;font-size:100%;padding:.5em 1em;color:#444;color:rgba(0,0,0,.8);border:1px solid #999;border:transparent;background-color:#E6E6E6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:focus,.pure-button:hover{filter:alpha(opacity=90);background-image:-webkit-linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1));background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.pure-button:focus{outline:0}.pure-button-active,.pure-button:active{box-shadow:0 0 0 1px rgba(0,0,0,.15) inset,0 0 6px rgba(0,0,0,.2) inset;border-color:#000\9}.pure-button-disabled,.pure-button-disabled:active,.pure-button-disabled:focus,.pure-button-disabled:hover,.pure-button[disabled]{border:none;background-image:none;filter:alpha(opacity=40);opacity:.4;cursor:not-allowed;box-shadow:none;pointer-events:none}.pure-button-hidden{display:none}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#0078e7;color:#fff}.pure-button-group .pure-button{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto;margin:0;border-radius:0;border-right:1px solid #111;border-right:1px solid rgba(0,0,0,.2)}.pure-button-group .pure-button:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}.pure-button-group .pure-button:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:none}
Index: src/webapp/mapservice/src/static/lib/css/pure/forms-min.css
===================================================================
--- src/webapp/mapservice/src/static/lib/css/pure/forms-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/css/pure/forms-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,7 @@
+/*!
+Pure v1.0.0
+Copyright 2013 Yahoo!
+Licensed under the BSD License.
+https://github.com/yahoo/pure/blob/master/LICENSE.md
+*/
+.pure-form input[type=text],.pure-form input[type=number],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=color],.pure-form input[type=password],.pure-form input[type=email],.pure-form input[type=url],.pure-form input[type=date],.pure-form input[type=month],.pure-form input[type=time],.pure-form input[type=datetime],.pure-form input[type=datetime-local],.pure-form input[type=week],.pure-form select,.pure-form textarea{padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;vertical-align:middle;box-sizing:border-box}.pure-form input:not([type]){padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;box-sizing:border-box}.pure-form input[type=color]{padding:.2em .5em}.pure-form input:not([type]):focus,.pure-form input[type=text]:focus,.pure-form input[type=number]:focus,.pure-form input[type=search]:focus,.pure-form input[type=tel]:focus,.pure-form input[type=color]:focus,.pure-form input[type=password]:focus,.pure-form input[type=email]:focus,.pure-form input[type=url]:focus,.pure-form input[type=date]:focus,.pure-form input[type=month]:focus,.pure-form input[type=time]:focus,.pure-form input[type=datetime]:focus,.pure-form input[type=datetime-local]:focus,.pure-form input[type=week]:focus,.pure-form select:focus,.pure-form textarea:focus{outline:0;border-color:#129FEA}.pure-form input[type=file]:focus,.pure-form input[type=radio]:focus,.pure-form input[type=checkbox]:focus{outline:#129FEA auto 1px}.pure-form .pure-checkbox,.pure-form .pure-radio{margin:.5em 0;display:block}.pure-form input:not([type])[disabled],.pure-form input[type=text][disabled],.pure-form input[type=number][disabled],.pure-form input[type=search][disabled],.pure-form input[type=tel][disabled],.pure-form input[type=color][disabled],.pure-form input[type=password][disabled],.pure-form input[type=email][disabled],.pure-form input[type=url][disabled],.pure-form input[type=date][disabled],.pure-form input[type=month][disabled],.pure-form input[type=time][disabled],.pure-form input[type=datetime][disabled],.pure-form input[type=datetime-local][disabled],.pure-form input[type=week][disabled],.pure-form select[disabled],.pure-form textarea[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input[readonly],.pure-form select[readonly],.pure-form textarea[readonly]{background-color:#eee;color:#777;border-color:#ccc}.pure-form input:focus:invalid,.pure-form select:focus:invalid,.pure-form textarea:focus:invalid{color:#b94a48;border-color:#e9322d}.pure-form input[type=file]:focus:invalid:focus,.pure-form input[type=radio]:focus:invalid:focus,.pure-form input[type=checkbox]:focus:invalid:focus{outline-color:#e9322d}.pure-form select{height:2.25em;border:1px solid #ccc;background-color:#fff}.pure-form select[multiple]{height:auto}.pure-form label{margin:.5em 0 .2em}.pure-form fieldset{margin:0;padding:.35em 0 .75em;border:0}.pure-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.pure-form-stacked input:not([type]),.pure-form-stacked input[type=text],.pure-form-stacked input[type=number],.pure-form-stacked input[type=search],.pure-form-stacked input[type=tel],.pure-form-stacked input[type=color],.pure-form-stacked input[type=file],.pure-form-stacked input[type=password],.pure-form-stacked input[type=email],.pure-form-stacked input[type=url],.pure-form-stacked input[type=date],.pure-form-stacked input[type=month],.pure-form-stacked input[type=time],.pure-form-stacked input[type=datetime],.pure-form-stacked input[type=datetime-local],.pure-form-stacked input[type=week],.pure-form-stacked label,.pure-form-stacked select,.pure-form-stacked textarea{display:block;margin:.25em 0}.pure-form-aligned .pure-help-inline,.pure-form-aligned input,.pure-form-aligned select,.pure-form-aligned textarea,.pure-form-message-inline{display:inline-block;vertical-align:middle}.pure-form-aligned textarea{vertical-align:top}.pure-form-aligned .pure-control-group{margin-bottom:.5em}.pure-form-aligned .pure-control-group label{text-align:right;display:inline-block;vertical-align:middle;width:10em;margin:0 1em 0 0}.pure-form-aligned .pure-controls{margin:1.5em 0 0 11em}.pure-form .pure-input-rounded,.pure-form input.pure-input-rounded{border-radius:2em;padding:.5em 1em}.pure-form .pure-group fieldset{margin-bottom:10px}.pure-form .pure-group input,.pure-form .pure-group textarea{display:block;padding:10px;margin:0 0 -1px;border-radius:0;position:relative;top:-1px}.pure-form .pure-group input:focus,.pure-form .pure-group textarea:focus{z-index:3}.pure-form .pure-group input:first-child,.pure-form .pure-group textarea:first-child{top:1px;border-radius:4px 4px 0 0;margin:0}.pure-form .pure-group input:first-child:last-child,.pure-form .pure-group textarea:first-child:last-child{top:1px;border-radius:4px;margin:0}.pure-form .pure-group input:last-child,.pure-form .pure-group textarea:last-child{top:-2px;border-radius:0 0 4px 4px;margin:0}.pure-form .pure-group button{margin:.35em 0}.pure-form .pure-input-1{width:100%}.pure-form .pure-input-3-4{width:75%}.pure-form .pure-input-2-3{width:66%}.pure-form .pure-input-1-2{width:50%}.pure-form .pure-input-1-3{width:33%}.pure-form .pure-input-1-4{width:25%}.pure-form .pure-help-inline,.pure-form-message-inline{display:inline-block;padding-left:.3em;color:#666;vertical-align:middle;font-size:.875em}.pure-form-message{display:block;color:#666;font-size:.875em}@media only screen and (max-width :480px){.pure-form button[type=submit]{margin:.7em 0 0}.pure-form input:not([type]),.pure-form input[type=text],.pure-form input[type=number],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=color],.pure-form input[type=password],.pure-form input[type=email],.pure-form input[type=url],.pure-form input[type=date],.pure-form input[type=month],.pure-form input[type=time],.pure-form input[type=datetime],.pure-form input[type=datetime-local],.pure-form input[type=week],.pure-form label{margin-bottom:.3em;display:block}.pure-group input:not([type]),.pure-group input[type=text],.pure-group input[type=number],.pure-group input[type=search],.pure-group input[type=tel],.pure-group input[type=color],.pure-group input[type=password],.pure-group input[type=email],.pure-group input[type=url],.pure-group input[type=date],.pure-group input[type=month],.pure-group input[type=time],.pure-group input[type=datetime],.pure-group input[type=datetime-local],.pure-group input[type=week]{margin-bottom:0}.pure-form-aligned .pure-control-group label{margin-bottom:.3em;text-align:left;display:block;width:100%}.pure-form-aligned .pure-controls{margin:1.5em 0 0}.pure-form .pure-help-inline,.pure-form-message,.pure-form-message-inline{display:block;font-size:.75em;padding:.2em 0 .8em}}
Index: src/webapp/mapservice/src/static/lib/css/pure/forms-nr-min.css
===================================================================
--- src/webapp/mapservice/src/static/lib/css/pure/forms-nr-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/css/pure/forms-nr-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,7 @@
+/*!
+Pure v1.0.0
+Copyright 2013 Yahoo!
+Licensed under the BSD License.
+https://github.com/yahoo/pure/blob/master/LICENSE.md
+*/
+.pure-form input[type=text],.pure-form input[type=number],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=color],.pure-form input[type=password],.pure-form input[type=email],.pure-form input[type=url],.pure-form input[type=date],.pure-form input[type=month],.pure-form input[type=time],.pure-form input[type=datetime],.pure-form input[type=datetime-local],.pure-form input[type=week],.pure-form select,.pure-form textarea{padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;vertical-align:middle;box-sizing:border-box}.pure-form input:not([type]){padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;box-sizing:border-box}.pure-form input[type=color]{padding:.2em .5em}.pure-form input:not([type]):focus,.pure-form input[type=text]:focus,.pure-form input[type=number]:focus,.pure-form input[type=search]:focus,.pure-form input[type=tel]:focus,.pure-form input[type=color]:focus,.pure-form input[type=password]:focus,.pure-form input[type=email]:focus,.pure-form input[type=url]:focus,.pure-form input[type=date]:focus,.pure-form input[type=month]:focus,.pure-form input[type=time]:focus,.pure-form input[type=datetime]:focus,.pure-form input[type=datetime-local]:focus,.pure-form input[type=week]:focus,.pure-form select:focus,.pure-form textarea:focus{outline:0;border-color:#129FEA}.pure-form input[type=file]:focus,.pure-form input[type=radio]:focus,.pure-form input[type=checkbox]:focus{outline:#129FEA auto 1px}.pure-form .pure-checkbox,.pure-form .pure-radio{margin:.5em 0;display:block}.pure-form input:not([type])[disabled],.pure-form input[type=text][disabled],.pure-form input[type=number][disabled],.pure-form input[type=search][disabled],.pure-form input[type=tel][disabled],.pure-form input[type=color][disabled],.pure-form input[type=password][disabled],.pure-form input[type=email][disabled],.pure-form input[type=url][disabled],.pure-form input[type=date][disabled],.pure-form input[type=month][disabled],.pure-form input[type=time][disabled],.pure-form input[type=datetime][disabled],.pure-form input[type=datetime-local][disabled],.pure-form input[type=week][disabled],.pure-form select[disabled],.pure-form textarea[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input[readonly],.pure-form select[readonly],.pure-form textarea[readonly]{background-color:#eee;color:#777;border-color:#ccc}.pure-form input:focus:invalid,.pure-form select:focus:invalid,.pure-form textarea:focus:invalid{color:#b94a48;border-color:#e9322d}.pure-form input[type=file]:focus:invalid:focus,.pure-form input[type=radio]:focus:invalid:focus,.pure-form input[type=checkbox]:focus:invalid:focus{outline-color:#e9322d}.pure-form select{height:2.25em;border:1px solid #ccc;background-color:#fff}.pure-form select[multiple]{height:auto}.pure-form label{margin:.5em 0 .2em}.pure-form fieldset{margin:0;padding:.35em 0 .75em;border:0}.pure-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.pure-form-stacked input:not([type]),.pure-form-stacked input[type=text],.pure-form-stacked input[type=number],.pure-form-stacked input[type=search],.pure-form-stacked input[type=tel],.pure-form-stacked input[type=color],.pure-form-stacked input[type=file],.pure-form-stacked input[type=password],.pure-form-stacked input[type=email],.pure-form-stacked input[type=url],.pure-form-stacked input[type=date],.pure-form-stacked input[type=month],.pure-form-stacked input[type=time],.pure-form-stacked input[type=datetime],.pure-form-stacked input[type=datetime-local],.pure-form-stacked input[type=week],.pure-form-stacked label,.pure-form-stacked select,.pure-form-stacked textarea{display:block;margin:.25em 0}.pure-form-aligned .pure-help-inline,.pure-form-aligned input,.pure-form-aligned select,.pure-form-aligned textarea,.pure-form-message-inline{display:inline-block;vertical-align:middle}.pure-form-aligned textarea{vertical-align:top}.pure-form-aligned .pure-control-group{margin-bottom:.5em}.pure-form-aligned .pure-control-group label{text-align:right;display:inline-block;vertical-align:middle;width:10em;margin:0 1em 0 0}.pure-form-aligned .pure-controls{margin:1.5em 0 0 11em}.pure-form .pure-input-rounded,.pure-form input.pure-input-rounded{border-radius:2em;padding:.5em 1em}.pure-form .pure-group fieldset{margin-bottom:10px}.pure-form .pure-group input,.pure-form .pure-group textarea{display:block;padding:10px;margin:0 0 -1px;border-radius:0;position:relative;top:-1px}.pure-form .pure-group input:focus,.pure-form .pure-group textarea:focus{z-index:3}.pure-form .pure-group input:first-child,.pure-form .pure-group textarea:first-child{top:1px;border-radius:4px 4px 0 0;margin:0}.pure-form .pure-group input:first-child:last-child,.pure-form .pure-group textarea:first-child:last-child{top:1px;border-radius:4px;margin:0}.pure-form .pure-group input:last-child,.pure-form .pure-group textarea:last-child{top:-2px;border-radius:0 0 4px 4px;margin:0}.pure-form .pure-group button{margin:.35em 0}.pure-form .pure-input-1{width:100%}.pure-form .pure-input-3-4{width:75%}.pure-form .pure-input-2-3{width:66%}.pure-form .pure-input-1-2{width:50%}.pure-form .pure-input-1-3{width:33%}.pure-form .pure-input-1-4{width:25%}.pure-form .pure-help-inline,.pure-form-message-inline{display:inline-block;padding-left:.3em;color:#666;vertical-align:middle;font-size:.875em}.pure-form-message{display:block;color:#666;font-size:.875em}
Index: src/webapp/mapservice/src/static/lib/css/pure/grids-core-min.css
===================================================================
--- src/webapp/mapservice/src/static/lib/css/pure/grids-core-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/css/pure/grids-core-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,7 @@
+/*!
+Pure v1.0.0
+Copyright 2013 Yahoo!
+Licensed under the BSD License.
+https://github.com/yahoo/pure/blob/master/LICENSE.md
+*/
+.pure-g{letter-spacing:-.31em;text-rendering:optimizespeed;font-family:FreeSans,Arimo,"Droid Sans",Helvetica,Arial,sans-serif;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-align-content:flex-start;-ms-flex-line-pack:start;align-content:flex-start}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){table .pure-g{display:block}}.opera-only :-o-prefocus,.pure-g{word-spacing:-.43em}.pure-u{display:inline-block;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-g [class*=pure-u]{font-family:sans-serif}
Index: src/webapp/mapservice/src/static/lib/css/pure/grids-min.css
===================================================================
--- src/webapp/mapservice/src/static/lib/css/pure/grids-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/css/pure/grids-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,7 @@
+/*!
+Pure v1.0.0
+Copyright 2013 Yahoo!
+Licensed under the BSD License.
+https://github.com/yahoo/pure/blob/master/LICENSE.md
+*/
+.pure-g{letter-spacing:-.31em;text-rendering:optimizespeed;font-family:FreeSans,Arimo,"Droid Sans",Helvetica,Arial,sans-serif;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-align-content:flex-start;-ms-flex-line-pack:start;align-content:flex-start}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){table .pure-g{display:block}}.opera-only :-o-prefocus,.pure-g{word-spacing:-.43em}.pure-u,.pure-u-1,.pure-u-1-1,.pure-u-1-12,.pure-u-1-2,.pure-u-1-24,.pure-u-1-3,.pure-u-1-4,.pure-u-1-5,.pure-u-1-6,.pure-u-1-8,.pure-u-10-24,.pure-u-11-12,.pure-u-11-24,.pure-u-12-24,.pure-u-13-24,.pure-u-14-24,.pure-u-15-24,.pure-u-16-24,.pure-u-17-24,.pure-u-18-24,.pure-u-19-24,.pure-u-2-24,.pure-u-2-3,.pure-u-2-5,.pure-u-20-24,.pure-u-21-24,.pure-u-22-24,.pure-u-23-24,.pure-u-24-24,.pure-u-3-24,.pure-u-3-4,.pure-u-3-5,.pure-u-3-8,.pure-u-4-24,.pure-u-4-5,.pure-u-5-12,.pure-u-5-24,.pure-u-5-5,.pure-u-5-6,.pure-u-5-8,.pure-u-6-24,.pure-u-7-12,.pure-u-7-24,.pure-u-7-8,.pure-u-8-24,.pure-u-9-24{display:inline-block;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-g [class*=pure-u]{font-family:sans-serif}.pure-u-1-24{width:4.1667%}.pure-u-1-12,.pure-u-2-24{width:8.3333%}.pure-u-1-8,.pure-u-3-24{width:12.5%}.pure-u-1-6,.pure-u-4-24{width:16.6667%}.pure-u-1-5{width:20%}.pure-u-5-24{width:20.8333%}.pure-u-1-4,.pure-u-6-24{width:25%}.pure-u-7-24{width:29.1667%}.pure-u-1-3,.pure-u-8-24{width:33.3333%}.pure-u-3-8,.pure-u-9-24{width:37.5%}.pure-u-2-5{width:40%}.pure-u-10-24,.pure-u-5-12{width:41.6667%}.pure-u-11-24{width:45.8333%}.pure-u-1-2,.pure-u-12-24{width:50%}.pure-u-13-24{width:54.1667%}.pure-u-14-24,.pure-u-7-12{width:58.3333%}.pure-u-3-5{width:60%}.pure-u-15-24,.pure-u-5-8{width:62.5%}.pure-u-16-24,.pure-u-2-3{width:66.6667%}.pure-u-17-24{width:70.8333%}.pure-u-18-24,.pure-u-3-4{width:75%}.pure-u-19-24{width:79.1667%}.pure-u-4-5{width:80%}.pure-u-20-24,.pure-u-5-6{width:83.3333%}.pure-u-21-24,.pure-u-7-8{width:87.5%}.pure-u-11-12,.pure-u-22-24{width:91.6667%}.pure-u-23-24{width:95.8333%}.pure-u-1,.pure-u-1-1,.pure-u-24-24,.pure-u-5-5{width:100%}
Index: src/webapp/mapservice/src/static/lib/css/pure/grids-responsive-min.css
===================================================================
--- src/webapp/mapservice/src/static/lib/css/pure/grids-responsive-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/css/pure/grids-responsive-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,7 @@
+/*!
+Pure v1.0.0
+Copyright 2013 Yahoo!
+Licensed under the BSD License.
+https://github.com/yahoo/pure/blob/master/LICENSE.md
+*/
+@media screen and (min-width:35.5em){.pure-u-sm-1,.pure-u-sm-1-1,.pure-u-sm-1-12,.pure-u-sm-1-2,.pure-u-sm-1-24,.pure-u-sm-1-3,.pure-u-sm-1-4,.pure-u-sm-1-5,.pure-u-sm-1-6,.pure-u-sm-1-8,.pure-u-sm-10-24,.pure-u-sm-11-12,.pure-u-sm-11-24,.pure-u-sm-12-24,.pure-u-sm-13-24,.pure-u-sm-14-24,.pure-u-sm-15-24,.pure-u-sm-16-24,.pure-u-sm-17-24,.pure-u-sm-18-24,.pure-u-sm-19-24,.pure-u-sm-2-24,.pure-u-sm-2-3,.pure-u-sm-2-5,.pure-u-sm-20-24,.pure-u-sm-21-24,.pure-u-sm-22-24,.pure-u-sm-23-24,.pure-u-sm-24-24,.pure-u-sm-3-24,.pure-u-sm-3-4,.pure-u-sm-3-5,.pure-u-sm-3-8,.pure-u-sm-4-24,.pure-u-sm-4-5,.pure-u-sm-5-12,.pure-u-sm-5-24,.pure-u-sm-5-5,.pure-u-sm-5-6,.pure-u-sm-5-8,.pure-u-sm-6-24,.pure-u-sm-7-12,.pure-u-sm-7-24,.pure-u-sm-7-8,.pure-u-sm-8-24,.pure-u-sm-9-24{display:inline-block;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-sm-1-24{width:4.1667%}.pure-u-sm-1-12,.pure-u-sm-2-24{width:8.3333%}.pure-u-sm-1-8,.pure-u-sm-3-24{width:12.5%}.pure-u-sm-1-6,.pure-u-sm-4-24{width:16.6667%}.pure-u-sm-1-5{width:20%}.pure-u-sm-5-24{width:20.8333%}.pure-u-sm-1-4,.pure-u-sm-6-24{width:25%}.pure-u-sm-7-24{width:29.1667%}.pure-u-sm-1-3,.pure-u-sm-8-24{width:33.3333%}.pure-u-sm-3-8,.pure-u-sm-9-24{width:37.5%}.pure-u-sm-2-5{width:40%}.pure-u-sm-10-24,.pure-u-sm-5-12{width:41.6667%}.pure-u-sm-11-24{width:45.8333%}.pure-u-sm-1-2,.pure-u-sm-12-24{width:50%}.pure-u-sm-13-24{width:54.1667%}.pure-u-sm-14-24,.pure-u-sm-7-12{width:58.3333%}.pure-u-sm-3-5{width:60%}.pure-u-sm-15-24,.pure-u-sm-5-8{width:62.5%}.pure-u-sm-16-24,.pure-u-sm-2-3{width:66.6667%}.pure-u-sm-17-24{width:70.8333%}.pure-u-sm-18-24,.pure-u-sm-3-4{width:75%}.pure-u-sm-19-24{width:79.1667%}.pure-u-sm-4-5{width:80%}.pure-u-sm-20-24,.pure-u-sm-5-6{width:83.3333%}.pure-u-sm-21-24,.pure-u-sm-7-8{width:87.5%}.pure-u-sm-11-12,.pure-u-sm-22-24{width:91.6667%}.pure-u-sm-23-24{width:95.8333%}.pure-u-sm-1,.pure-u-sm-1-1,.pure-u-sm-24-24,.pure-u-sm-5-5{width:100%}}@media screen and (min-width:48em){.pure-u-md-1,.pure-u-md-1-1,.pure-u-md-1-12,.pure-u-md-1-2,.pure-u-md-1-24,.pure-u-md-1-3,.pure-u-md-1-4,.pure-u-md-1-5,.pure-u-md-1-6,.pure-u-md-1-8,.pure-u-md-10-24,.pure-u-md-11-12,.pure-u-md-11-24,.pure-u-md-12-24,.pure-u-md-13-24,.pure-u-md-14-24,.pure-u-md-15-24,.pure-u-md-16-24,.pure-u-md-17-24,.pure-u-md-18-24,.pure-u-md-19-24,.pure-u-md-2-24,.pure-u-md-2-3,.pure-u-md-2-5,.pure-u-md-20-24,.pure-u-md-21-24,.pure-u-md-22-24,.pure-u-md-23-24,.pure-u-md-24-24,.pure-u-md-3-24,.pure-u-md-3-4,.pure-u-md-3-5,.pure-u-md-3-8,.pure-u-md-4-24,.pure-u-md-4-5,.pure-u-md-5-12,.pure-u-md-5-24,.pure-u-md-5-5,.pure-u-md-5-6,.pure-u-md-5-8,.pure-u-md-6-24,.pure-u-md-7-12,.pure-u-md-7-24,.pure-u-md-7-8,.pure-u-md-8-24,.pure-u-md-9-24{display:inline-block;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-md-1-24{width:4.1667%}.pure-u-md-1-12,.pure-u-md-2-24{width:8.3333%}.pure-u-md-1-8,.pure-u-md-3-24{width:12.5%}.pure-u-md-1-6,.pure-u-md-4-24{width:16.6667%}.pure-u-md-1-5{width:20%}.pure-u-md-5-24{width:20.8333%}.pure-u-md-1-4,.pure-u-md-6-24{width:25%}.pure-u-md-7-24{width:29.1667%}.pure-u-md-1-3,.pure-u-md-8-24{width:33.3333%}.pure-u-md-3-8,.pure-u-md-9-24{width:37.5%}.pure-u-md-2-5{width:40%}.pure-u-md-10-24,.pure-u-md-5-12{width:41.6667%}.pure-u-md-11-24{width:45.8333%}.pure-u-md-1-2,.pure-u-md-12-24{width:50%}.pure-u-md-13-24{width:54.1667%}.pure-u-md-14-24,.pure-u-md-7-12{width:58.3333%}.pure-u-md-3-5{width:60%}.pure-u-md-15-24,.pure-u-md-5-8{width:62.5%}.pure-u-md-16-24,.pure-u-md-2-3{width:66.6667%}.pure-u-md-17-24{width:70.8333%}.pure-u-md-18-24,.pure-u-md-3-4{width:75%}.pure-u-md-19-24{width:79.1667%}.pure-u-md-4-5{width:80%}.pure-u-md-20-24,.pure-u-md-5-6{width:83.3333%}.pure-u-md-21-24,.pure-u-md-7-8{width:87.5%}.pure-u-md-11-12,.pure-u-md-22-24{width:91.6667%}.pure-u-md-23-24{width:95.8333%}.pure-u-md-1,.pure-u-md-1-1,.pure-u-md-24-24,.pure-u-md-5-5{width:100%}}@media screen and (min-width:64em){.pure-u-lg-1,.pure-u-lg-1-1,.pure-u-lg-1-12,.pure-u-lg-1-2,.pure-u-lg-1-24,.pure-u-lg-1-3,.pure-u-lg-1-4,.pure-u-lg-1-5,.pure-u-lg-1-6,.pure-u-lg-1-8,.pure-u-lg-10-24,.pure-u-lg-11-12,.pure-u-lg-11-24,.pure-u-lg-12-24,.pure-u-lg-13-24,.pure-u-lg-14-24,.pure-u-lg-15-24,.pure-u-lg-16-24,.pure-u-lg-17-24,.pure-u-lg-18-24,.pure-u-lg-19-24,.pure-u-lg-2-24,.pure-u-lg-2-3,.pure-u-lg-2-5,.pure-u-lg-20-24,.pure-u-lg-21-24,.pure-u-lg-22-24,.pure-u-lg-23-24,.pure-u-lg-24-24,.pure-u-lg-3-24,.pure-u-lg-3-4,.pure-u-lg-3-5,.pure-u-lg-3-8,.pure-u-lg-4-24,.pure-u-lg-4-5,.pure-u-lg-5-12,.pure-u-lg-5-24,.pure-u-lg-5-5,.pure-u-lg-5-6,.pure-u-lg-5-8,.pure-u-lg-6-24,.pure-u-lg-7-12,.pure-u-lg-7-24,.pure-u-lg-7-8,.pure-u-lg-8-24,.pure-u-lg-9-24{display:inline-block;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-lg-1-24{width:4.1667%}.pure-u-lg-1-12,.pure-u-lg-2-24{width:8.3333%}.pure-u-lg-1-8,.pure-u-lg-3-24{width:12.5%}.pure-u-lg-1-6,.pure-u-lg-4-24{width:16.6667%}.pure-u-lg-1-5{width:20%}.pure-u-lg-5-24{width:20.8333%}.pure-u-lg-1-4,.pure-u-lg-6-24{width:25%}.pure-u-lg-7-24{width:29.1667%}.pure-u-lg-1-3,.pure-u-lg-8-24{width:33.3333%}.pure-u-lg-3-8,.pure-u-lg-9-24{width:37.5%}.pure-u-lg-2-5{width:40%}.pure-u-lg-10-24,.pure-u-lg-5-12{width:41.6667%}.pure-u-lg-11-24{width:45.8333%}.pure-u-lg-1-2,.pure-u-lg-12-24{width:50%}.pure-u-lg-13-24{width:54.1667%}.pure-u-lg-14-24,.pure-u-lg-7-12{width:58.3333%}.pure-u-lg-3-5{width:60%}.pure-u-lg-15-24,.pure-u-lg-5-8{width:62.5%}.pure-u-lg-16-24,.pure-u-lg-2-3{width:66.6667%}.pure-u-lg-17-24{width:70.8333%}.pure-u-lg-18-24,.pure-u-lg-3-4{width:75%}.pure-u-lg-19-24{width:79.1667%}.pure-u-lg-4-5{width:80%}.pure-u-lg-20-24,.pure-u-lg-5-6{width:83.3333%}.pure-u-lg-21-24,.pure-u-lg-7-8{width:87.5%}.pure-u-lg-11-12,.pure-u-lg-22-24{width:91.6667%}.pure-u-lg-23-24{width:95.8333%}.pure-u-lg-1,.pure-u-lg-1-1,.pure-u-lg-24-24,.pure-u-lg-5-5{width:100%}}@media screen and (min-width:80em){.pure-u-xl-1,.pure-u-xl-1-1,.pure-u-xl-1-12,.pure-u-xl-1-2,.pure-u-xl-1-24,.pure-u-xl-1-3,.pure-u-xl-1-4,.pure-u-xl-1-5,.pure-u-xl-1-6,.pure-u-xl-1-8,.pure-u-xl-10-24,.pure-u-xl-11-12,.pure-u-xl-11-24,.pure-u-xl-12-24,.pure-u-xl-13-24,.pure-u-xl-14-24,.pure-u-xl-15-24,.pure-u-xl-16-24,.pure-u-xl-17-24,.pure-u-xl-18-24,.pure-u-xl-19-24,.pure-u-xl-2-24,.pure-u-xl-2-3,.pure-u-xl-2-5,.pure-u-xl-20-24,.pure-u-xl-21-24,.pure-u-xl-22-24,.pure-u-xl-23-24,.pure-u-xl-24-24,.pure-u-xl-3-24,.pure-u-xl-3-4,.pure-u-xl-3-5,.pure-u-xl-3-8,.pure-u-xl-4-24,.pure-u-xl-4-5,.pure-u-xl-5-12,.pure-u-xl-5-24,.pure-u-xl-5-5,.pure-u-xl-5-6,.pure-u-xl-5-8,.pure-u-xl-6-24,.pure-u-xl-7-12,.pure-u-xl-7-24,.pure-u-xl-7-8,.pure-u-xl-8-24,.pure-u-xl-9-24{display:inline-block;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-xl-1-24{width:4.1667%}.pure-u-xl-1-12,.pure-u-xl-2-24{width:8.3333%}.pure-u-xl-1-8,.pure-u-xl-3-24{width:12.5%}.pure-u-xl-1-6,.pure-u-xl-4-24{width:16.6667%}.pure-u-xl-1-5{width:20%}.pure-u-xl-5-24{width:20.8333%}.pure-u-xl-1-4,.pure-u-xl-6-24{width:25%}.pure-u-xl-7-24{width:29.1667%}.pure-u-xl-1-3,.pure-u-xl-8-24{width:33.3333%}.pure-u-xl-3-8,.pure-u-xl-9-24{width:37.5%}.pure-u-xl-2-5{width:40%}.pure-u-xl-10-24,.pure-u-xl-5-12{width:41.6667%}.pure-u-xl-11-24{width:45.8333%}.pure-u-xl-1-2,.pure-u-xl-12-24{width:50%}.pure-u-xl-13-24{width:54.1667%}.pure-u-xl-14-24,.pure-u-xl-7-12{width:58.3333%}.pure-u-xl-3-5{width:60%}.pure-u-xl-15-24,.pure-u-xl-5-8{width:62.5%}.pure-u-xl-16-24,.pure-u-xl-2-3{width:66.6667%}.pure-u-xl-17-24{width:70.8333%}.pure-u-xl-18-24,.pure-u-xl-3-4{width:75%}.pure-u-xl-19-24{width:79.1667%}.pure-u-xl-4-5{width:80%}.pure-u-xl-20-24,.pure-u-xl-5-6{width:83.3333%}.pure-u-xl-21-24,.pure-u-xl-7-8{width:87.5%}.pure-u-xl-11-12,.pure-u-xl-22-24{width:91.6667%}.pure-u-xl-23-24{width:95.8333%}.pure-u-xl-1,.pure-u-xl-1-1,.pure-u-xl-24-24,.pure-u-xl-5-5{width:100%}}
Index: src/webapp/mapservice/src/static/lib/css/pure/grids-responsive-old-ie-min.css
===================================================================
--- src/webapp/mapservice/src/static/lib/css/pure/grids-responsive-old-ie-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/css/pure/grids-responsive-old-ie-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,7 @@
+/*!
+Pure v1.0.0
+Copyright 2013 Yahoo!
+Licensed under the BSD License.
+https://github.com/yahoo/pure/blob/master/LICENSE.md
+*/
+.pure-u-lg-1,.pure-u-lg-1-1,.pure-u-lg-1-12,.pure-u-lg-1-2,.pure-u-lg-1-24,.pure-u-lg-1-3,.pure-u-lg-1-4,.pure-u-lg-1-5,.pure-u-lg-1-6,.pure-u-lg-1-8,.pure-u-lg-10-24,.pure-u-lg-11-12,.pure-u-lg-11-24,.pure-u-lg-12-24,.pure-u-lg-13-24,.pure-u-lg-14-24,.pure-u-lg-15-24,.pure-u-lg-16-24,.pure-u-lg-17-24,.pure-u-lg-18-24,.pure-u-lg-19-24,.pure-u-lg-2-24,.pure-u-lg-2-3,.pure-u-lg-2-5,.pure-u-lg-20-24,.pure-u-lg-21-24,.pure-u-lg-22-24,.pure-u-lg-23-24,.pure-u-lg-24-24,.pure-u-lg-3-24,.pure-u-lg-3-4,.pure-u-lg-3-5,.pure-u-lg-3-8,.pure-u-lg-4-24,.pure-u-lg-4-5,.pure-u-lg-5-12,.pure-u-lg-5-24,.pure-u-lg-5-5,.pure-u-lg-5-6,.pure-u-lg-5-8,.pure-u-lg-6-24,.pure-u-lg-7-12,.pure-u-lg-7-24,.pure-u-lg-7-8,.pure-u-lg-8-24,.pure-u-lg-9-24,.pure-u-md-1,.pure-u-md-1-1,.pure-u-md-1-12,.pure-u-md-1-2,.pure-u-md-1-24,.pure-u-md-1-3,.pure-u-md-1-4,.pure-u-md-1-5,.pure-u-md-1-6,.pure-u-md-1-8,.pure-u-md-10-24,.pure-u-md-11-12,.pure-u-md-11-24,.pure-u-md-12-24,.pure-u-md-13-24,.pure-u-md-14-24,.pure-u-md-15-24,.pure-u-md-16-24,.pure-u-md-17-24,.pure-u-md-18-24,.pure-u-md-19-24,.pure-u-md-2-24,.pure-u-md-2-3,.pure-u-md-2-5,.pure-u-md-20-24,.pure-u-md-21-24,.pure-u-md-22-24,.pure-u-md-23-24,.pure-u-md-24-24,.pure-u-md-3-24,.pure-u-md-3-4,.pure-u-md-3-5,.pure-u-md-3-8,.pure-u-md-4-24,.pure-u-md-4-5,.pure-u-md-5-12,.pure-u-md-5-24,.pure-u-md-5-5,.pure-u-md-5-6,.pure-u-md-5-8,.pure-u-md-6-24,.pure-u-md-7-12,.pure-u-md-7-24,.pure-u-md-7-8,.pure-u-md-8-24,.pure-u-md-9-24,.pure-u-sm-1,.pure-u-sm-1-1,.pure-u-sm-1-12,.pure-u-sm-1-2,.pure-u-sm-1-24,.pure-u-sm-1-3,.pure-u-sm-1-4,.pure-u-sm-1-5,.pure-u-sm-1-6,.pure-u-sm-1-8,.pure-u-sm-10-24,.pure-u-sm-11-12,.pure-u-sm-11-24,.pure-u-sm-12-24,.pure-u-sm-13-24,.pure-u-sm-14-24,.pure-u-sm-15-24,.pure-u-sm-16-24,.pure-u-sm-17-24,.pure-u-sm-18-24,.pure-u-sm-19-24,.pure-u-sm-2-24,.pure-u-sm-2-3,.pure-u-sm-2-5,.pure-u-sm-20-24,.pure-u-sm-21-24,.pure-u-sm-22-24,.pure-u-sm-23-24,.pure-u-sm-24-24,.pure-u-sm-3-24,.pure-u-sm-3-4,.pure-u-sm-3-5,.pure-u-sm-3-8,.pure-u-sm-4-24,.pure-u-sm-4-5,.pure-u-sm-5-12,.pure-u-sm-5-24,.pure-u-sm-5-5,.pure-u-sm-5-6,.pure-u-sm-5-8,.pure-u-sm-6-24,.pure-u-sm-7-12,.pure-u-sm-7-24,.pure-u-sm-7-8,.pure-u-sm-8-24,.pure-u-sm-9-24{display:inline-block;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-sm-1-24{width:4.1667%}.pure-u-sm-1-12,.pure-u-sm-2-24{width:8.3333%}.pure-u-sm-1-8,.pure-u-sm-3-24{width:12.5%}.pure-u-sm-1-6,.pure-u-sm-4-24{width:16.6667%}.pure-u-sm-1-5{width:20%}.pure-u-sm-5-24{width:20.8333%}.pure-u-sm-1-4,.pure-u-sm-6-24{width:25%}.pure-u-sm-7-24{width:29.1667%}.pure-u-sm-1-3,.pure-u-sm-8-24{width:33.3333%}.pure-u-sm-3-8,.pure-u-sm-9-24{width:37.5%}.pure-u-sm-2-5{width:40%}.pure-u-sm-10-24,.pure-u-sm-5-12{width:41.6667%}.pure-u-sm-11-24{width:45.8333%}.pure-u-sm-1-2,.pure-u-sm-12-24{width:50%}.pure-u-sm-13-24{width:54.1667%}.pure-u-sm-14-24,.pure-u-sm-7-12{width:58.3333%}.pure-u-sm-3-5{width:60%}.pure-u-sm-15-24,.pure-u-sm-5-8{width:62.5%}.pure-u-sm-16-24,.pure-u-sm-2-3{width:66.6667%}.pure-u-sm-17-24{width:70.8333%}.pure-u-sm-18-24,.pure-u-sm-3-4{width:75%}.pure-u-sm-19-24{width:79.1667%}.pure-u-sm-4-5{width:80%}.pure-u-sm-20-24,.pure-u-sm-5-6{width:83.3333%}.pure-u-sm-21-24,.pure-u-sm-7-8{width:87.5%}.pure-u-sm-11-12,.pure-u-sm-22-24{width:91.6667%}.pure-u-sm-23-24{width:95.8333%}.pure-u-sm-1,.pure-u-sm-1-1,.pure-u-sm-24-24,.pure-u-sm-5-5{width:100%}.pure-u-md-1-24{width:4.1667%}.pure-u-md-1-12,.pure-u-md-2-24{width:8.3333%}.pure-u-md-1-8,.pure-u-md-3-24{width:12.5%}.pure-u-md-1-6,.pure-u-md-4-24{width:16.6667%}.pure-u-md-1-5{width:20%}.pure-u-md-5-24{width:20.8333%}.pure-u-md-1-4,.pure-u-md-6-24{width:25%}.pure-u-md-7-24{width:29.1667%}.pure-u-md-1-3,.pure-u-md-8-24{width:33.3333%}.pure-u-md-3-8,.pure-u-md-9-24{width:37.5%}.pure-u-md-2-5{width:40%}.pure-u-md-10-24,.pure-u-md-5-12{width:41.6667%}.pure-u-md-11-24{width:45.8333%}.pure-u-md-1-2,.pure-u-md-12-24{width:50%}.pure-u-md-13-24{width:54.1667%}.pure-u-md-14-24,.pure-u-md-7-12{width:58.3333%}.pure-u-md-3-5{width:60%}.pure-u-md-15-24,.pure-u-md-5-8{width:62.5%}.pure-u-md-16-24,.pure-u-md-2-3{width:66.6667%}.pure-u-md-17-24{width:70.8333%}.pure-u-md-18-24,.pure-u-md-3-4{width:75%}.pure-u-md-19-24{width:79.1667%}.pure-u-md-4-5{width:80%}.pure-u-md-20-24,.pure-u-md-5-6{width:83.3333%}.pure-u-md-21-24,.pure-u-md-7-8{width:87.5%}.pure-u-md-11-12,.pure-u-md-22-24{width:91.6667%}.pure-u-md-23-24{width:95.8333%}.pure-u-md-1,.pure-u-md-1-1,.pure-u-md-24-24,.pure-u-md-5-5{width:100%}.pure-u-lg-1-24{width:4.1667%}.pure-u-lg-1-12,.pure-u-lg-2-24{width:8.3333%}.pure-u-lg-1-8,.pure-u-lg-3-24{width:12.5%}.pure-u-lg-1-6,.pure-u-lg-4-24{width:16.6667%}.pure-u-lg-1-5{width:20%}.pure-u-lg-5-24{width:20.8333%}.pure-u-lg-1-4,.pure-u-lg-6-24{width:25%}.pure-u-lg-7-24{width:29.1667%}.pure-u-lg-1-3,.pure-u-lg-8-24{width:33.3333%}.pure-u-lg-3-8,.pure-u-lg-9-24{width:37.5%}.pure-u-lg-2-5{width:40%}.pure-u-lg-10-24,.pure-u-lg-5-12{width:41.6667%}.pure-u-lg-11-24{width:45.8333%}.pure-u-lg-1-2,.pure-u-lg-12-24{width:50%}.pure-u-lg-13-24{width:54.1667%}.pure-u-lg-14-24,.pure-u-lg-7-12{width:58.3333%}.pure-u-lg-3-5{width:60%}.pure-u-lg-15-24,.pure-u-lg-5-8{width:62.5%}.pure-u-lg-16-24,.pure-u-lg-2-3{width:66.6667%}.pure-u-lg-17-24{width:70.8333%}.pure-u-lg-18-24,.pure-u-lg-3-4{width:75%}.pure-u-lg-19-24{width:79.1667%}.pure-u-lg-4-5{width:80%}.pure-u-lg-20-24,.pure-u-lg-5-6{width:83.3333%}.pure-u-lg-21-24,.pure-u-lg-7-8{width:87.5%}.pure-u-lg-11-12,.pure-u-lg-22-24{width:91.6667%}.pure-u-lg-23-24{width:95.8333%}.pure-u-lg-1,.pure-u-lg-1-1,.pure-u-lg-24-24,.pure-u-lg-5-5{width:100%}
Index: src/webapp/mapservice/src/static/lib/css/pure/grids-units-min.css
===================================================================
--- src/webapp/mapservice/src/static/lib/css/pure/grids-units-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/css/pure/grids-units-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,7 @@
+/*!
+Pure v1.0.0
+Copyright 2013 Yahoo!
+Licensed under the BSD License.
+https://github.com/yahoo/pure/blob/master/LICENSE.md
+*/
+.pure-u-1,.pure-u-1-1,.pure-u-1-12,.pure-u-1-2,.pure-u-1-24,.pure-u-1-3,.pure-u-1-4,.pure-u-1-5,.pure-u-1-6,.pure-u-1-8,.pure-u-10-24,.pure-u-11-12,.pure-u-11-24,.pure-u-12-24,.pure-u-13-24,.pure-u-14-24,.pure-u-15-24,.pure-u-16-24,.pure-u-17-24,.pure-u-18-24,.pure-u-19-24,.pure-u-2-24,.pure-u-2-3,.pure-u-2-5,.pure-u-20-24,.pure-u-21-24,.pure-u-22-24,.pure-u-23-24,.pure-u-24-24,.pure-u-3-24,.pure-u-3-4,.pure-u-3-5,.pure-u-3-8,.pure-u-4-24,.pure-u-4-5,.pure-u-5-12,.pure-u-5-24,.pure-u-5-5,.pure-u-5-6,.pure-u-5-8,.pure-u-6-24,.pure-u-7-12,.pure-u-7-24,.pure-u-7-8,.pure-u-8-24,.pure-u-9-24{display:inline-block;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-1-24{width:4.1667%}.pure-u-1-12,.pure-u-2-24{width:8.3333%}.pure-u-1-8,.pure-u-3-24{width:12.5%}.pure-u-1-6,.pure-u-4-24{width:16.6667%}.pure-u-1-5{width:20%}.pure-u-5-24{width:20.8333%}.pure-u-1-4,.pure-u-6-24{width:25%}.pure-u-7-24{width:29.1667%}.pure-u-1-3,.pure-u-8-24{width:33.3333%}.pure-u-3-8,.pure-u-9-24{width:37.5%}.pure-u-2-5{width:40%}.pure-u-10-24,.pure-u-5-12{width:41.6667%}.pure-u-11-24{width:45.8333%}.pure-u-1-2,.pure-u-12-24{width:50%}.pure-u-13-24{width:54.1667%}.pure-u-14-24,.pure-u-7-12{width:58.3333%}.pure-u-3-5{width:60%}.pure-u-15-24,.pure-u-5-8{width:62.5%}.pure-u-16-24,.pure-u-2-3{width:66.6667%}.pure-u-17-24{width:70.8333%}.pure-u-18-24,.pure-u-3-4{width:75%}.pure-u-19-24{width:79.1667%}.pure-u-4-5{width:80%}.pure-u-20-24,.pure-u-5-6{width:83.3333%}.pure-u-21-24,.pure-u-7-8{width:87.5%}.pure-u-11-12,.pure-u-22-24{width:91.6667%}.pure-u-23-24{width:95.8333%}.pure-u-1,.pure-u-1-1,.pure-u-24-24,.pure-u-5-5{width:100%}
Index: src/webapp/mapservice/src/static/lib/css/pure/menus-core-min.css
===================================================================
--- src/webapp/mapservice/src/static/lib/css/pure/menus-core-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/css/pure/menus-core-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,7 @@
+/*!
+Pure v1.0.0
+Copyright 2013 Yahoo!
+Licensed under the BSD License.
+https://github.com/yahoo/pure/blob/master/LICENSE.md
+*/
+.pure-menu{box-sizing:border-box}.pure-menu-fixed{position:fixed;left:0;top:0;z-index:3}.pure-menu-item,.pure-menu-list{position:relative}.pure-menu-list{list-style:none;margin:0;padding:0}.pure-menu-item{padding:0;margin:0;height:100%}.pure-menu-heading,.pure-menu-link{display:block;text-decoration:none;white-space:nowrap}
Index: src/webapp/mapservice/src/static/lib/css/pure/menus-dropdown-min.css
===================================================================
--- src/webapp/mapservice/src/static/lib/css/pure/menus-dropdown-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/css/pure/menus-dropdown-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,7 @@
+/*!
+Pure v1.0.0
+Copyright 2013 Yahoo!
+Licensed under the BSD License.
+https://github.com/yahoo/pure/blob/master/LICENSE.md
+*/
+.pure-menu-item .pure-menu-item{display:block}.pure-menu-children{display:none;position:absolute;left:100%;top:0;margin:0;padding:0;z-index:3}.pure-menu-horizontal .pure-menu-children{left:0;top:auto;width:inherit}.pure-menu-active>.pure-menu-children,.pure-menu-allow-hover:hover>.pure-menu-children{display:block;position:absolute}.pure-menu-has-children>.pure-menu-link:after{padding-left:.5em;content:"\25B8";font-size:small}.pure-menu-horizontal .pure-menu-has-children>.pure-menu-link:after{content:"\25BE"}
Index: src/webapp/mapservice/src/static/lib/css/pure/menus-horizontal-min.css
===================================================================
--- src/webapp/mapservice/src/static/lib/css/pure/menus-horizontal-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/css/pure/menus-horizontal-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,7 @@
+/*!
+Pure v1.0.0
+Copyright 2013 Yahoo!
+Licensed under the BSD License.
+https://github.com/yahoo/pure/blob/master/LICENSE.md
+*/
+.pure-menu-horizontal{width:100%;white-space:nowrap}.pure-menu-horizontal .pure-menu-list{display:inline-block}.pure-menu-horizontal .pure-menu-heading,.pure-menu-horizontal .pure-menu-item,.pure-menu-horizontal .pure-menu-separator{display:inline-block;zoom:1;vertical-align:middle}
Index: src/webapp/mapservice/src/static/lib/css/pure/menus-min.css
===================================================================
--- src/webapp/mapservice/src/static/lib/css/pure/menus-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/css/pure/menus-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,7 @@
+/*!
+Pure v1.0.0
+Copyright 2013 Yahoo!
+Licensed under the BSD License.
+https://github.com/yahoo/pure/blob/master/LICENSE.md
+*/
+.pure-menu{box-sizing:border-box}.pure-menu-fixed{position:fixed;left:0;top:0;z-index:3}.pure-menu-item,.pure-menu-list{position:relative}.pure-menu-list{list-style:none;margin:0;padding:0}.pure-menu-item{padding:0;margin:0;height:100%}.pure-menu-heading,.pure-menu-link{display:block;text-decoration:none;white-space:nowrap}.pure-menu-horizontal{width:100%;white-space:nowrap}.pure-menu-horizontal .pure-menu-list{display:inline-block}.pure-menu-horizontal .pure-menu-heading,.pure-menu-horizontal .pure-menu-item,.pure-menu-horizontal .pure-menu-separator{display:inline-block;zoom:1;vertical-align:middle}.pure-menu-item .pure-menu-item{display:block}.pure-menu-children{display:none;position:absolute;left:100%;top:0;margin:0;padding:0;z-index:3}.pure-menu-horizontal .pure-menu-children{left:0;top:auto;width:inherit}.pure-menu-active>.pure-menu-children,.pure-menu-allow-hover:hover>.pure-menu-children{display:block;position:absolute}.pure-menu-has-children>.pure-menu-link:after{padding-left:.5em;content:"\25B8";font-size:small}.pure-menu-horizontal .pure-menu-has-children>.pure-menu-link:after{content:"\25BE"}.pure-menu-scrollable{overflow-y:scroll;overflow-x:hidden}.pure-menu-scrollable .pure-menu-list{display:block}.pure-menu-horizontal.pure-menu-scrollable .pure-menu-list{display:inline-block}.pure-menu-horizontal.pure-menu-scrollable{white-space:nowrap;overflow-y:hidden;overflow-x:auto;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;padding:.5em 0}.pure-menu-horizontal.pure-menu-scrollable::-webkit-scrollbar{display:none}.pure-menu-horizontal .pure-menu-children .pure-menu-separator,.pure-menu-separator{background-color:#ccc;height:1px;margin:.3em 0}.pure-menu-horizontal .pure-menu-separator{width:1px;height:1.3em;margin:0 .3em}.pure-menu-horizontal .pure-menu-children .pure-menu-separator{display:block;width:auto}.pure-menu-heading{text-transform:uppercase;color:#565d64}.pure-menu-link{color:#777}.pure-menu-children{background-color:#fff}.pure-menu-disabled,.pure-menu-heading,.pure-menu-link{padding:.5em 1em}.pure-menu-disabled{opacity:.5}.pure-menu-disabled .pure-menu-link:hover{background-color:transparent}.pure-menu-active>.pure-menu-link,.pure-menu-link:focus,.pure-menu-link:hover{background-color:#eee}.pure-menu-selected .pure-menu-link,.pure-menu-selected .pure-menu-link:visited{color:#000}
Index: src/webapp/mapservice/src/static/lib/css/pure/menus-scrollable-min.css
===================================================================
--- src/webapp/mapservice/src/static/lib/css/pure/menus-scrollable-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/css/pure/menus-scrollable-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,7 @@
+/*!
+Pure v1.0.0
+Copyright 2013 Yahoo!
+Licensed under the BSD License.
+https://github.com/yahoo/pure/blob/master/LICENSE.md
+*/
+.pure-menu-scrollable{overflow-y:scroll;overflow-x:hidden}.pure-menu-scrollable .pure-menu-list{display:block}.pure-menu-horizontal.pure-menu-scrollable .pure-menu-list{display:inline-block}.pure-menu-horizontal.pure-menu-scrollable{white-space:nowrap;overflow-y:hidden;overflow-x:auto;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;padding:.5em 0}.pure-menu-horizontal.pure-menu-scrollable::-webkit-scrollbar{display:none}
Index: src/webapp/mapservice/src/static/lib/css/pure/menus-skin-min.css
===================================================================
--- src/webapp/mapservice/src/static/lib/css/pure/menus-skin-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/css/pure/menus-skin-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,7 @@
+/*!
+Pure v1.0.0
+Copyright 2013 Yahoo!
+Licensed under the BSD License.
+https://github.com/yahoo/pure/blob/master/LICENSE.md
+*/
+.pure-menu-horizontal .pure-menu-children .pure-menu-separator,.pure-menu-separator{background-color:#ccc;height:1px;margin:.3em 0}.pure-menu-horizontal .pure-menu-separator{width:1px;height:1.3em;margin:0 .3em}.pure-menu-horizontal .pure-menu-children .pure-menu-separator{display:block;width:auto}.pure-menu-heading{text-transform:uppercase;color:#565d64}.pure-menu-link{color:#777}.pure-menu-children{background-color:#fff}.pure-menu-disabled,.pure-menu-heading,.pure-menu-link{padding:.5em 1em}.pure-menu-disabled{opacity:.5}.pure-menu-disabled .pure-menu-link:hover{background-color:transparent}.pure-menu-active>.pure-menu-link,.pure-menu-link:focus,.pure-menu-link:hover{background-color:#eee}.pure-menu-selected .pure-menu-link,.pure-menu-selected .pure-menu-link:visited{color:#000}
Index: src/webapp/mapservice/src/static/lib/css/pure/pure-min.css
===================================================================
--- src/webapp/mapservice/src/static/lib/css/pure/pure-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/css/pure/pure-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,11 @@
+/*!
+Pure v1.0.0
+Copyright 2013 Yahoo!
+Licensed under the BSD License.
+https://github.com/yahoo/pure/blob/master/LICENSE.md
+*/
+/*!
+normalize.css v^3.0 | MIT License | git.io/normalize
+Copyright (c) Nicolas Gallagher and Jonathan Neal
+*/
+/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */.pure-button:focus,a:active,a:hover{outline:0}.pure-table,table{border-collapse:collapse;border-spacing:0}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}abbr[title]{border-bottom:1px dotted}b,optgroup,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre,textarea{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}.pure-button,input{line-height:normal}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}.pure-button,.pure-form input:not([type]),.pure-menu{box-sizing:border-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend,td,th{padding:0}legend{border:0}.hidden,[hidden]{display:none!important}.pure-img{max-width:100%;height:auto;display:block}.pure-g{letter-spacing:-.31em;text-rendering:optimizespeed;font-family:FreeSans,Arimo,"Droid Sans",Helvetica,Arial,sans-serif;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-align-content:flex-start;-ms-flex-line-pack:start;align-content:flex-start}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){table .pure-g{display:block}}.opera-only :-o-prefocus,.pure-g{word-spacing:-.43em}.pure-u,.pure-u-1,.pure-u-1-1,.pure-u-1-12,.pure-u-1-2,.pure-u-1-24,.pure-u-1-3,.pure-u-1-4,.pure-u-1-5,.pure-u-1-6,.pure-u-1-8,.pure-u-10-24,.pure-u-11-12,.pure-u-11-24,.pure-u-12-24,.pure-u-13-24,.pure-u-14-24,.pure-u-15-24,.pure-u-16-24,.pure-u-17-24,.pure-u-18-24,.pure-u-19-24,.pure-u-2-24,.pure-u-2-3,.pure-u-2-5,.pure-u-20-24,.pure-u-21-24,.pure-u-22-24,.pure-u-23-24,.pure-u-24-24,.pure-u-3-24,.pure-u-3-4,.pure-u-3-5,.pure-u-3-8,.pure-u-4-24,.pure-u-4-5,.pure-u-5-12,.pure-u-5-24,.pure-u-5-5,.pure-u-5-6,.pure-u-5-8,.pure-u-6-24,.pure-u-7-12,.pure-u-7-24,.pure-u-7-8,.pure-u-8-24,.pure-u-9-24{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto;display:inline-block;zoom:1}.pure-g [class*=pure-u]{font-family:sans-serif}.pure-u-1-24{width:4.1667%}.pure-u-1-12,.pure-u-2-24{width:8.3333%}.pure-u-1-8,.pure-u-3-24{width:12.5%}.pure-u-1-6,.pure-u-4-24{width:16.6667%}.pure-u-1-5{width:20%}.pure-u-5-24{width:20.8333%}.pure-u-1-4,.pure-u-6-24{width:25%}.pure-u-7-24{width:29.1667%}.pure-u-1-3,.pure-u-8-24{width:33.3333%}.pure-u-3-8,.pure-u-9-24{width:37.5%}.pure-u-2-5{width:40%}.pure-u-10-24,.pure-u-5-12{width:41.6667%}.pure-u-11-24{width:45.8333%}.pure-u-1-2,.pure-u-12-24{width:50%}.pure-u-13-24{width:54.1667%}.pure-u-14-24,.pure-u-7-12{width:58.3333%}.pure-u-3-5{width:60%}.pure-u-15-24,.pure-u-5-8{width:62.5%}.pure-u-16-24,.pure-u-2-3{width:66.6667%}.pure-u-17-24{width:70.8333%}.pure-u-18-24,.pure-u-3-4{width:75%}.pure-u-19-24{width:79.1667%}.pure-u-4-5{width:80%}.pure-u-20-24,.pure-u-5-6{width:83.3333%}.pure-u-21-24,.pure-u-7-8{width:87.5%}.pure-u-11-12,.pure-u-22-24{width:91.6667%}.pure-u-23-24{width:95.8333%}.pure-u-1,.pure-u-1-1,.pure-u-24-24,.pure-u-5-5{width:100%}.pure-button{display:inline-block;zoom:1;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-group{letter-spacing:-.31em;text-rendering:optimizespeed}.opera-only :-o-prefocus,.pure-button-group{word-spacing:-.43em}.pure-button{font-family:inherit;font-size:100%;padding:.5em 1em;color:#444;color:rgba(0,0,0,.8);border:1px solid #999;border:transparent;background-color:#E6E6E6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:focus,.pure-button:hover{filter:alpha(opacity=90);background-image:-webkit-linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1));background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.pure-button-active,.pure-button:active{box-shadow:0 0 0 1px rgba(0,0,0,.15) inset,0 0 6px rgba(0,0,0,.2) inset;border-color:#000\9}.pure-button-disabled,.pure-button-disabled:active,.pure-button-disabled:focus,.pure-button-disabled:hover,.pure-button[disabled]{border:none;background-image:none;filter:alpha(opacity=40);opacity:.4;cursor:not-allowed;box-shadow:none;pointer-events:none}.pure-button-hidden{display:none}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#0078e7;color:#fff}.pure-button-group .pure-button{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto;margin:0;border-radius:0;border-right:1px solid #111;border-right:1px solid rgba(0,0,0,.2)}.pure-button-group .pure-button:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}.pure-button-group .pure-button:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:none}.pure-form input[type=password],.pure-form input[type=email],.pure-form input[type=url],.pure-form input[type=date],.pure-form input[type=month],.pure-form input[type=time],.pure-form input[type=datetime],.pure-form input[type=datetime-local],.pure-form input[type=week],.pure-form input[type=tel],.pure-form input[type=color],.pure-form input[type=number],.pure-form input[type=search],.pure-form input[type=text],.pure-form select,.pure-form textarea{padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;vertical-align:middle;box-sizing:border-box}.pure-form input:not([type]){padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px}.pure-form input[type=color]{padding:.2em .5em}.pure-form input:not([type]):focus,.pure-form input[type=password]:focus,.pure-form input[type=email]:focus,.pure-form input[type=url]:focus,.pure-form input[type=date]:focus,.pure-form input[type=month]:focus,.pure-form input[type=time]:focus,.pure-form input[type=datetime]:focus,.pure-form input[type=datetime-local]:focus,.pure-form input[type=week]:focus,.pure-form input[type=tel]:focus,.pure-form input[type=color]:focus,.pure-form input[type=number]:focus,.pure-form input[type=search]:focus,.pure-form input[type=text]:focus,.pure-form select:focus,.pure-form textarea:focus{outline:0;border-color:#129FEA}.pure-form input[type=file]:focus,.pure-form input[type=checkbox]:focus,.pure-form input[type=radio]:focus{outline:#129FEA auto 1px}.pure-form .pure-checkbox,.pure-form .pure-radio{margin:.5em 0;display:block}.pure-form input:not([type])[disabled],.pure-form input[type=password][disabled],.pure-form input[type=email][disabled],.pure-form input[type=url][disabled],.pure-form input[type=date][disabled],.pure-form input[type=month][disabled],.pure-form input[type=time][disabled],.pure-form input[type=datetime][disabled],.pure-form input[type=datetime-local][disabled],.pure-form input[type=week][disabled],.pure-form input[type=tel][disabled],.pure-form input[type=color][disabled],.pure-form input[type=number][disabled],.pure-form input[type=search][disabled],.pure-form input[type=text][disabled],.pure-form select[disabled],.pure-form textarea[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input[readonly],.pure-form select[readonly],.pure-form textarea[readonly]{background-color:#eee;color:#777;border-color:#ccc}.pure-form input:focus:invalid,.pure-form select:focus:invalid,.pure-form textarea:focus:invalid{color:#b94a48;border-color:#e9322d}.pure-form input[type=file]:focus:invalid:focus,.pure-form input[type=checkbox]:focus:invalid:focus,.pure-form input[type=radio]:focus:invalid:focus{outline-color:#e9322d}.pure-form select{height:2.25em;border:1px solid #ccc;background-color:#fff}.pure-form select[multiple]{height:auto}.pure-form label{margin:.5em 0 .2em}.pure-form fieldset{margin:0;padding:.35em 0 .75em;border:0}.pure-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.pure-form-stacked input:not([type]),.pure-form-stacked input[type=password],.pure-form-stacked input[type=email],.pure-form-stacked input[type=url],.pure-form-stacked input[type=date],.pure-form-stacked input[type=month],.pure-form-stacked input[type=time],.pure-form-stacked input[type=datetime],.pure-form-stacked input[type=datetime-local],.pure-form-stacked input[type=week],.pure-form-stacked input[type=tel],.pure-form-stacked input[type=color],.pure-form-stacked input[type=file],.pure-form-stacked input[type=number],.pure-form-stacked input[type=search],.pure-form-stacked input[type=text],.pure-form-stacked label,.pure-form-stacked select,.pure-form-stacked textarea{display:block;margin:.25em 0}.pure-form-aligned .pure-help-inline,.pure-form-aligned input,.pure-form-aligned select,.pure-form-aligned textarea,.pure-form-message-inline{display:inline-block;vertical-align:middle}.pure-form-aligned textarea{vertical-align:top}.pure-form-aligned .pure-control-group{margin-bottom:.5em}.pure-form-aligned .pure-control-group label{text-align:right;display:inline-block;vertical-align:middle;width:10em;margin:0 1em 0 0}.pure-form-aligned .pure-controls{margin:1.5em 0 0 11em}.pure-form .pure-input-rounded,.pure-form input.pure-input-rounded{border-radius:2em;padding:.5em 1em}.pure-form .pure-group fieldset{margin-bottom:10px}.pure-form .pure-group input,.pure-form .pure-group textarea{display:block;padding:10px;margin:0 0 -1px;border-radius:0;position:relative;top:-1px}.pure-form .pure-group input:focus,.pure-form .pure-group textarea:focus{z-index:3}.pure-form .pure-group input:first-child,.pure-form .pure-group textarea:first-child{top:1px;border-radius:4px 4px 0 0;margin:0}.pure-form .pure-group input:first-child:last-child,.pure-form .pure-group textarea:first-child:last-child{top:1px;border-radius:4px;margin:0}.pure-form .pure-group input:last-child,.pure-form .pure-group textarea:last-child{top:-2px;border-radius:0 0 4px 4px;margin:0}.pure-form .pure-group button{margin:.35em 0}.pure-form .pure-input-1{width:100%}.pure-form .pure-input-3-4{width:75%}.pure-form .pure-input-2-3{width:66%}.pure-form .pure-input-1-2{width:50%}.pure-form .pure-input-1-3{width:33%}.pure-form .pure-input-1-4{width:25%}.pure-form .pure-help-inline,.pure-form-message-inline{display:inline-block;padding-left:.3em;color:#666;vertical-align:middle;font-size:.875em}.pure-form-message{display:block;color:#666;font-size:.875em}@media only screen and (max-width :480px){.pure-form button[type=submit]{margin:.7em 0 0}.pure-form input:not([type]),.pure-form input[type=password],.pure-form input[type=email],.pure-form input[type=url],.pure-form input[type=date],.pure-form input[type=month],.pure-form input[type=time],.pure-form input[type=datetime],.pure-form input[type=datetime-local],.pure-form input[type=week],.pure-form input[type=tel],.pure-form input[type=color],.pure-form input[type=number],.pure-form input[type=search],.pure-form input[type=text],.pure-form label{margin-bottom:.3em;display:block}.pure-group input:not([type]),.pure-group input[type=password],.pure-group input[type=email],.pure-group input[type=url],.pure-group input[type=date],.pure-group input[type=month],.pure-group input[type=time],.pure-group input[type=datetime],.pure-group input[type=datetime-local],.pure-group input[type=week],.pure-group input[type=tel],.pure-group input[type=color],.pure-group input[type=number],.pure-group input[type=search],.pure-group input[type=text]{margin-bottom:0}.pure-form-aligned .pure-control-group label{margin-bottom:.3em;text-align:left;display:block;width:100%}.pure-form-aligned .pure-controls{margin:1.5em 0 0}.pure-form .pure-help-inline,.pure-form-message,.pure-form-message-inline{display:block;font-size:.75em;padding:.2em 0 .8em}}.pure-menu-fixed{position:fixed;left:0;top:0;z-index:3}.pure-menu-item,.pure-menu-list{position:relative}.pure-menu-list{list-style:none;margin:0;padding:0}.pure-menu-item{padding:0;margin:0;height:100%}.pure-menu-heading,.pure-menu-link{display:block;text-decoration:none;white-space:nowrap}.pure-menu-horizontal{width:100%;white-space:nowrap}.pure-menu-horizontal .pure-menu-list{display:inline-block}.pure-menu-horizontal .pure-menu-heading,.pure-menu-horizontal .pure-menu-item,.pure-menu-horizontal .pure-menu-separator{display:inline-block;zoom:1;vertical-align:middle}.pure-menu-item .pure-menu-item{display:block}.pure-menu-children{display:none;position:absolute;left:100%;top:0;margin:0;padding:0;z-index:3}.pure-menu-horizontal .pure-menu-children{left:0;top:auto;width:inherit}.pure-menu-active>.pure-menu-children,.pure-menu-allow-hover:hover>.pure-menu-children{display:block;position:absolute}.pure-menu-has-children>.pure-menu-link:after{padding-left:.5em;content:"\25B8";font-size:small}.pure-menu-horizontal .pure-menu-has-children>.pure-menu-link:after{content:"\25BE"}.pure-menu-scrollable{overflow-y:scroll;overflow-x:hidden}.pure-menu-scrollable .pure-menu-list{display:block}.pure-menu-horizontal.pure-menu-scrollable .pure-menu-list{display:inline-block}.pure-menu-horizontal.pure-menu-scrollable{white-space:nowrap;overflow-y:hidden;overflow-x:auto;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;padding:.5em 0}.pure-menu-horizontal.pure-menu-scrollable::-webkit-scrollbar{display:none}.pure-menu-horizontal .pure-menu-children .pure-menu-separator,.pure-menu-separator{background-color:#ccc;height:1px;margin:.3em 0}.pure-menu-horizontal .pure-menu-separator{width:1px;height:1.3em;margin:0 .3em}.pure-menu-horizontal .pure-menu-children .pure-menu-separator{display:block;width:auto}.pure-menu-heading{text-transform:uppercase;color:#565d64}.pure-menu-link{color:#777}.pure-menu-children{background-color:#fff}.pure-menu-disabled,.pure-menu-heading,.pure-menu-link{padding:.5em 1em}.pure-menu-disabled{opacity:.5}.pure-menu-disabled .pure-menu-link:hover{background-color:transparent}.pure-menu-active>.pure-menu-link,.pure-menu-link:focus,.pure-menu-link:hover{background-color:#eee}.pure-menu-selected .pure-menu-link,.pure-menu-selected .pure-menu-link:visited{color:#000}.pure-table{empty-cells:show;border:1px solid #cbcbcb}.pure-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.pure-table td,.pure-table th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;font-size:inherit;margin:0;overflow:visible;padding:.5em 1em}.pure-table td:first-child,.pure-table th:first-child{border-left-width:0}.pure-table thead{background-color:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}.pure-table td{background-color:transparent}.pure-table-odd td,.pure-table-striped tr:nth-child(2n-1) td{background-color:#f2f2f2}.pure-table-bordered td{border-bottom:1px solid #cbcbcb}.pure-table-bordered tbody>tr:last-child>td{border-bottom-width:0}.pure-table-horizontal td,.pure-table-horizontal th{border-width:0 0 1px;border-bottom:1px solid #cbcbcb}.pure-table-horizontal tbody>tr:last-child>td{border-bottom-width:0}
Index: src/webapp/mapservice/src/static/lib/css/pure/pure-nr-min.css
===================================================================
--- src/webapp/mapservice/src/static/lib/css/pure/pure-nr-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/css/pure/pure-nr-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,11 @@
+/*!
+Pure v1.0.0
+Copyright 2013 Yahoo!
+Licensed under the BSD License.
+https://github.com/yahoo/pure/blob/master/LICENSE.md
+*/
+/*!
+normalize.css v^3.0 | MIT License | git.io/normalize
+Copyright (c) Nicolas Gallagher and Jonathan Neal
+*/
+/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */.pure-button:focus,a:active,a:hover{outline:0}.pure-table,table{border-collapse:collapse;border-spacing:0}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}abbr[title]{border-bottom:1px dotted}b,optgroup,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre,textarea{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}.pure-button,input{line-height:normal}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}.pure-button,.pure-form input:not([type]),.pure-menu{box-sizing:border-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend,td,th{padding:0}legend{border:0}.hidden,[hidden]{display:none!important}.pure-img{max-width:100%;height:auto;display:block}.pure-g{letter-spacing:-.31em;text-rendering:optimizespeed;font-family:FreeSans,Arimo,"Droid Sans",Helvetica,Arial,sans-serif;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-align-content:flex-start;-ms-flex-line-pack:start;align-content:flex-start}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){table .pure-g{display:block}}.opera-only :-o-prefocus,.pure-g{word-spacing:-.43em}.pure-u,.pure-u-1,.pure-u-1-1,.pure-u-1-12,.pure-u-1-2,.pure-u-1-24,.pure-u-1-3,.pure-u-1-4,.pure-u-1-5,.pure-u-1-6,.pure-u-1-8,.pure-u-10-24,.pure-u-11-12,.pure-u-11-24,.pure-u-12-24,.pure-u-13-24,.pure-u-14-24,.pure-u-15-24,.pure-u-16-24,.pure-u-17-24,.pure-u-18-24,.pure-u-19-24,.pure-u-2-24,.pure-u-2-3,.pure-u-2-5,.pure-u-20-24,.pure-u-21-24,.pure-u-22-24,.pure-u-23-24,.pure-u-24-24,.pure-u-3-24,.pure-u-3-4,.pure-u-3-5,.pure-u-3-8,.pure-u-4-24,.pure-u-4-5,.pure-u-5-12,.pure-u-5-24,.pure-u-5-5,.pure-u-5-6,.pure-u-5-8,.pure-u-6-24,.pure-u-7-12,.pure-u-7-24,.pure-u-7-8,.pure-u-8-24,.pure-u-9-24{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto;display:inline-block;zoom:1}.pure-g [class*=pure-u]{font-family:sans-serif}.pure-u-1-24{width:4.1667%}.pure-u-1-12,.pure-u-2-24{width:8.3333%}.pure-u-1-8,.pure-u-3-24{width:12.5%}.pure-u-1-6,.pure-u-4-24{width:16.6667%}.pure-u-1-5{width:20%}.pure-u-5-24{width:20.8333%}.pure-u-1-4,.pure-u-6-24{width:25%}.pure-u-7-24{width:29.1667%}.pure-u-1-3,.pure-u-8-24{width:33.3333%}.pure-u-3-8,.pure-u-9-24{width:37.5%}.pure-u-2-5{width:40%}.pure-u-10-24,.pure-u-5-12{width:41.6667%}.pure-u-11-24{width:45.8333%}.pure-u-1-2,.pure-u-12-24{width:50%}.pure-u-13-24{width:54.1667%}.pure-u-14-24,.pure-u-7-12{width:58.3333%}.pure-u-3-5{width:60%}.pure-u-15-24,.pure-u-5-8{width:62.5%}.pure-u-16-24,.pure-u-2-3{width:66.6667%}.pure-u-17-24{width:70.8333%}.pure-u-18-24,.pure-u-3-4{width:75%}.pure-u-19-24{width:79.1667%}.pure-u-4-5{width:80%}.pure-u-20-24,.pure-u-5-6{width:83.3333%}.pure-u-21-24,.pure-u-7-8{width:87.5%}.pure-u-11-12,.pure-u-22-24{width:91.6667%}.pure-u-23-24{width:95.8333%}.pure-u-1,.pure-u-1-1,.pure-u-24-24,.pure-u-5-5{width:100%}.pure-button{display:inline-block;zoom:1;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-group{letter-spacing:-.31em;text-rendering:optimizespeed}.opera-only :-o-prefocus,.pure-button-group{word-spacing:-.43em}.pure-button{font-family:inherit;font-size:100%;padding:.5em 1em;color:#444;color:rgba(0,0,0,.8);border:1px solid #999;border:transparent;background-color:#E6E6E6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:focus,.pure-button:hover{filter:alpha(opacity=90);background-image:-webkit-linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1));background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.pure-button-active,.pure-button:active{box-shadow:0 0 0 1px rgba(0,0,0,.15) inset,0 0 6px rgba(0,0,0,.2) inset;border-color:#000\9}.pure-button-disabled,.pure-button-disabled:active,.pure-button-disabled:focus,.pure-button-disabled:hover,.pure-button[disabled]{border:none;background-image:none;filter:alpha(opacity=40);opacity:.4;cursor:not-allowed;box-shadow:none;pointer-events:none}.pure-button-hidden{display:none}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#0078e7;color:#fff}.pure-button-group .pure-button{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto;margin:0;border-radius:0;border-right:1px solid #111;border-right:1px solid rgba(0,0,0,.2)}.pure-button-group .pure-button:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}.pure-button-group .pure-button:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:none}.pure-form input[type=password],.pure-form input[type=email],.pure-form input[type=url],.pure-form input[type=date],.pure-form input[type=month],.pure-form input[type=time],.pure-form input[type=datetime],.pure-form input[type=datetime-local],.pure-form input[type=week],.pure-form input[type=tel],.pure-form input[type=color],.pure-form input[type=number],.pure-form input[type=search],.pure-form input[type=text],.pure-form select,.pure-form textarea{padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;vertical-align:middle;box-sizing:border-box}.pure-form input:not([type]){padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px}.pure-form input[type=color]{padding:.2em .5em}.pure-form input:not([type]):focus,.pure-form input[type=password]:focus,.pure-form input[type=email]:focus,.pure-form input[type=url]:focus,.pure-form input[type=date]:focus,.pure-form input[type=month]:focus,.pure-form input[type=time]:focus,.pure-form input[type=datetime]:focus,.pure-form input[type=datetime-local]:focus,.pure-form input[type=week]:focus,.pure-form input[type=tel]:focus,.pure-form input[type=color]:focus,.pure-form input[type=number]:focus,.pure-form input[type=search]:focus,.pure-form input[type=text]:focus,.pure-form select:focus,.pure-form textarea:focus{outline:0;border-color:#129FEA}.pure-form input[type=file]:focus,.pure-form input[type=checkbox]:focus,.pure-form input[type=radio]:focus{outline:#129FEA auto 1px}.pure-form .pure-checkbox,.pure-form .pure-radio{margin:.5em 0;display:block}.pure-form input:not([type])[disabled],.pure-form input[type=password][disabled],.pure-form input[type=email][disabled],.pure-form input[type=url][disabled],.pure-form input[type=date][disabled],.pure-form input[type=month][disabled],.pure-form input[type=time][disabled],.pure-form input[type=datetime][disabled],.pure-form input[type=datetime-local][disabled],.pure-form input[type=week][disabled],.pure-form input[type=tel][disabled],.pure-form input[type=color][disabled],.pure-form input[type=number][disabled],.pure-form input[type=search][disabled],.pure-form input[type=text][disabled],.pure-form select[disabled],.pure-form textarea[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input[readonly],.pure-form select[readonly],.pure-form textarea[readonly]{background-color:#eee;color:#777;border-color:#ccc}.pure-form input:focus:invalid,.pure-form select:focus:invalid,.pure-form textarea:focus:invalid{color:#b94a48;border-color:#e9322d}.pure-form input[type=file]:focus:invalid:focus,.pure-form input[type=checkbox]:focus:invalid:focus,.pure-form input[type=radio]:focus:invalid:focus{outline-color:#e9322d}.pure-form select{height:2.25em;border:1px solid #ccc;background-color:#fff}.pure-form select[multiple]{height:auto}.pure-form label{margin:.5em 0 .2em}.pure-form fieldset{margin:0;padding:.35em 0 .75em;border:0}.pure-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.pure-form-stacked input:not([type]),.pure-form-stacked input[type=password],.pure-form-stacked input[type=email],.pure-form-stacked input[type=url],.pure-form-stacked input[type=date],.pure-form-stacked input[type=month],.pure-form-stacked input[type=time],.pure-form-stacked input[type=datetime],.pure-form-stacked input[type=datetime-local],.pure-form-stacked input[type=week],.pure-form-stacked input[type=tel],.pure-form-stacked input[type=color],.pure-form-stacked input[type=file],.pure-form-stacked input[type=number],.pure-form-stacked input[type=search],.pure-form-stacked input[type=text],.pure-form-stacked label,.pure-form-stacked select,.pure-form-stacked textarea{display:block;margin:.25em 0}.pure-form-aligned .pure-help-inline,.pure-form-aligned input,.pure-form-aligned select,.pure-form-aligned textarea,.pure-form-message-inline{display:inline-block;vertical-align:middle}.pure-form-aligned textarea{vertical-align:top}.pure-form-aligned .pure-control-group{margin-bottom:.5em}.pure-form-aligned .pure-control-group label{text-align:right;display:inline-block;vertical-align:middle;width:10em;margin:0 1em 0 0}.pure-form-aligned .pure-controls{margin:1.5em 0 0 11em}.pure-form .pure-input-rounded,.pure-form input.pure-input-rounded{border-radius:2em;padding:.5em 1em}.pure-form .pure-group fieldset{margin-bottom:10px}.pure-form .pure-group input,.pure-form .pure-group textarea{display:block;padding:10px;margin:0 0 -1px;border-radius:0;position:relative;top:-1px}.pure-form .pure-group input:focus,.pure-form .pure-group textarea:focus{z-index:3}.pure-form .pure-group input:first-child,.pure-form .pure-group textarea:first-child{top:1px;border-radius:4px 4px 0 0;margin:0}.pure-form .pure-group input:first-child:last-child,.pure-form .pure-group textarea:first-child:last-child{top:1px;border-radius:4px;margin:0}.pure-form .pure-group input:last-child,.pure-form .pure-group textarea:last-child{top:-2px;border-radius:0 0 4px 4px;margin:0}.pure-form .pure-group button{margin:.35em 0}.pure-form .pure-input-1{width:100%}.pure-form .pure-input-3-4{width:75%}.pure-form .pure-input-2-3{width:66%}.pure-form .pure-input-1-2{width:50%}.pure-form .pure-input-1-3{width:33%}.pure-form .pure-input-1-4{width:25%}.pure-form .pure-help-inline,.pure-form-message-inline{display:inline-block;padding-left:.3em;color:#666;vertical-align:middle;font-size:.875em}.pure-form-message{display:block;color:#666;font-size:.875em}.pure-menu-fixed{position:fixed;left:0;top:0;z-index:3}.pure-menu-item,.pure-menu-list{position:relative}.pure-menu-list{list-style:none;margin:0;padding:0}.pure-menu-item{padding:0;margin:0;height:100%}.pure-menu-heading,.pure-menu-link{display:block;text-decoration:none;white-space:nowrap}.pure-menu-horizontal{width:100%;white-space:nowrap}.pure-menu-horizontal .pure-menu-list{display:inline-block}.pure-menu-horizontal .pure-menu-heading,.pure-menu-horizontal .pure-menu-item,.pure-menu-horizontal .pure-menu-separator{display:inline-block;zoom:1;vertical-align:middle}.pure-menu-item .pure-menu-item{display:block}.pure-menu-children{display:none;position:absolute;left:100%;top:0;margin:0;padding:0;z-index:3}.pure-menu-horizontal .pure-menu-children{left:0;top:auto;width:inherit}.pure-menu-active>.pure-menu-children,.pure-menu-allow-hover:hover>.pure-menu-children{display:block;position:absolute}.pure-menu-has-children>.pure-menu-link:after{padding-left:.5em;content:"\25B8";font-size:small}.pure-menu-horizontal .pure-menu-has-children>.pure-menu-link:after{content:"\25BE"}.pure-menu-scrollable{overflow-y:scroll;overflow-x:hidden}.pure-menu-scrollable .pure-menu-list{display:block}.pure-menu-horizontal.pure-menu-scrollable .pure-menu-list{display:inline-block}.pure-menu-horizontal.pure-menu-scrollable{white-space:nowrap;overflow-y:hidden;overflow-x:auto;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;padding:.5em 0}.pure-menu-horizontal.pure-menu-scrollable::-webkit-scrollbar{display:none}.pure-menu-horizontal .pure-menu-children .pure-menu-separator,.pure-menu-separator{background-color:#ccc;height:1px;margin:.3em 0}.pure-menu-horizontal .pure-menu-separator{width:1px;height:1.3em;margin:0 .3em}.pure-menu-horizontal .pure-menu-children .pure-menu-separator{display:block;width:auto}.pure-menu-heading{text-transform:uppercase;color:#565d64}.pure-menu-link{color:#777}.pure-menu-children{background-color:#fff}.pure-menu-disabled,.pure-menu-heading,.pure-menu-link{padding:.5em 1em}.pure-menu-disabled{opacity:.5}.pure-menu-disabled .pure-menu-link:hover{background-color:transparent}.pure-menu-active>.pure-menu-link,.pure-menu-link:focus,.pure-menu-link:hover{background-color:#eee}.pure-menu-selected .pure-menu-link,.pure-menu-selected .pure-menu-link:visited{color:#000}.pure-table{empty-cells:show;border:1px solid #cbcbcb}.pure-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.pure-table td,.pure-table th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;font-size:inherit;margin:0;overflow:visible;padding:.5em 1em}.pure-table td:first-child,.pure-table th:first-child{border-left-width:0}.pure-table thead{background-color:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}.pure-table td{background-color:transparent}.pure-table-odd td,.pure-table-striped tr:nth-child(2n-1) td{background-color:#f2f2f2}.pure-table-bordered td{border-bottom:1px solid #cbcbcb}.pure-table-bordered tbody>tr:last-child>td{border-bottom-width:0}.pure-table-horizontal td,.pure-table-horizontal th{border-width:0 0 1px;border-bottom:1px solid #cbcbcb}.pure-table-horizontal tbody>tr:last-child>td{border-bottom-width:0}
Index: src/webapp/mapservice/src/static/lib/css/pure/tables-min.css
===================================================================
--- src/webapp/mapservice/src/static/lib/css/pure/tables-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/css/pure/tables-min.css	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,7 @@
+/*!
+Pure v1.0.0
+Copyright 2013 Yahoo!
+Licensed under the BSD License.
+https://github.com/yahoo/pure/blob/master/LICENSE.md
+*/
+.pure-table{border-collapse:collapse;border-spacing:0;empty-cells:show;border:1px solid #cbcbcb}.pure-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.pure-table td,.pure-table th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;font-size:inherit;margin:0;overflow:visible;padding:.5em 1em}.pure-table td:first-child,.pure-table th:first-child{border-left-width:0}.pure-table thead{background-color:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}.pure-table td{background-color:transparent}.pure-table-odd td,.pure-table-striped tr:nth-child(2n-1) td{background-color:#f2f2f2}.pure-table-bordered td{border-bottom:1px solid #cbcbcb}.pure-table-bordered tbody>tr:last-child>td{border-bottom-width:0}.pure-table-horizontal td,.pure-table-horizontal th{border-width:0 0 1px;border-bottom:1px solid #cbcbcb}.pure-table-horizontal tbody>tr:last-child>td{border-bottom-width:0}
Index: src/webapp/mapservice/src/static/lib/js/jquery-3.2.1.min.js
===================================================================
--- src/webapp/mapservice/src/static/lib/js/jquery-3.2.1.min.js	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/js/jquery-3.2.1.min.js	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,4 @@
+/*! jQuery v3.2.1 | (c) JS Foundation and other contributors | jquery.org/license */
+!function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){"use strict";var c=[],d=a.document,e=Object.getPrototypeOf,f=c.slice,g=c.concat,h=c.push,i=c.indexOf,j={},k=j.toString,l=j.hasOwnProperty,m=l.toString,n=m.call(Object),o={};function p(a,b){b=b||d;var c=b.createElement("script");c.text=a,b.head.appendChild(c).parentNode.removeChild(c)}var q="3.2.1",r=function(a,b){return new r.fn.init(a,b)},s=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,t=/^-ms-/,u=/-([a-z])/g,v=function(a,b){return b.toUpperCase()};r.fn=r.prototype={jquery:q,constructor:r,length:0,toArray:function(){return f.call(this)},get:function(a){return null==a?f.call(this):a<0?this[a+this.length]:this[a]},pushStack:function(a){var b=r.merge(this.constructor(),a);return b.prevObject=this,b},each:function(a){return r.each(this,a)},map:function(a){return this.pushStack(r.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(f.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(a<0?b:0);return this.pushStack(c>=0&&c<b?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:h,sort:c.sort,splice:c.splice},r.extend=r.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||r.isFunction(g)||(g={}),h===i&&(g=this,h--);h<i;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(r.isPlainObject(d)||(e=Array.isArray(d)))?(e?(e=!1,f=c&&Array.isArray(c)?c:[]):f=c&&r.isPlainObject(c)?c:{},g[b]=r.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},r.extend({expando:"jQuery"+(q+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===r.type(a)},isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=r.type(a);return("number"===b||"string"===b)&&!isNaN(a-parseFloat(a))},isPlainObject:function(a){var b,c;return!(!a||"[object Object]"!==k.call(a))&&(!(b=e(a))||(c=l.call(b,"constructor")&&b.constructor,"function"==typeof c&&m.call(c)===n))},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?j[k.call(a)]||"object":typeof a},globalEval:function(a){p(a)},camelCase:function(a){return a.replace(t,"ms-").replace(u,v)},each:function(a,b){var c,d=0;if(w(a)){for(c=a.length;d<c;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(s,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(w(Object(a))?r.merge(c,"string"==typeof a?[a]:a):h.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:i.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;d<c;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;f<g;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,f=0,h=[];if(w(a))for(d=a.length;f<d;f++)e=b(a[f],f,c),null!=e&&h.push(e);else for(f in a)e=b(a[f],f,c),null!=e&&h.push(e);return g.apply([],h)},guid:1,proxy:function(a,b){var c,d,e;if("string"==typeof b&&(c=a[b],b=a,a=c),r.isFunction(a))return d=f.call(arguments,2),e=function(){return a.apply(b||this,d.concat(f.call(arguments)))},e.guid=a.guid=a.guid||r.guid++,e},now:Date.now,support:o}),"function"==typeof Symbol&&(r.fn[Symbol.iterator]=c[Symbol.iterator]),r.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){j["[object "+b+"]"]=b.toLowerCase()});function w(a){var b=!!a&&"length"in a&&a.length,c=r.type(a);return"function"!==c&&!r.isWindow(a)&&("array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a)}var x=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",M="\\["+K+"*("+L+")(?:"+K+"*([*^$|!~]?=)"+K+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+K+"*\\]",N=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",O=new RegExp(K+"+","g"),P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(N),U=new RegExp("^"+L+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),aa=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:d<0?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ba=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ca=function(a,b){return b?"\0"===a?"\ufffd":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},da=function(){m()},ea=ta(function(a){return a.disabled===!0&&("form"in a||"label"in a)},{dir:"parentNode",next:"legend"});try{G.apply(D=H.call(v.childNodes),v.childNodes),D[v.childNodes.length].nodeType}catch(fa){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s=b&&b.ownerDocument,w=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==w&&9!==w&&11!==w)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==w&&(l=Z.exec(a)))if(f=l[1]){if(9===w){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(s&&(j=s.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(l[2])return G.apply(d,b.getElementsByTagName(a)),d;if((f=l[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==w)s=b,r=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(ba,ca):b.setAttribute("id",k=u),o=g(a),h=o.length;while(h--)o[h]="#"+k+" "+sa(o[h]);r=o.join(","),s=$.test(a)&&qa(b.parentNode)||b}if(r)try{return G.apply(d,s.querySelectorAll(r)),d}catch(x){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(P,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return function(b){return"form"in b?b.parentNode&&b.disabled===!1?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&ea(b)===a:b.disabled===a:"label"in b&&b.disabled===a}}function pa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function qa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),v!==n&&(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(n.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){return a.getAttribute("id")===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}}):(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c,d,e,f=b.getElementById(a);if(f){if(c=f.getAttributeNode("id"),c&&c.value===a)return[f];e=b.getElementsByName(a),d=0;while(f=e[d++])if(c=f.getAttributeNode("id"),c&&c.value===a)return[f]}return[]}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){if("undefined"!=typeof b.getElementsByClassName&&p)return b.getElementsByClassName(a)},r=[],q=[],(c.qsa=Y.test(n.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){a.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+K+"*[*^$|!~]?="),2!==a.querySelectorAll(":enabled").length&&q.push(":enabled",":disabled"),o.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Y.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"*"),s.call(a,"[s!='']:x"),r.push("!=",N)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Y.test(o.compareDocumentPosition),t=b||Y.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?I(k,a)-I(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?I(k,a)-I(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?la(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(S,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.escape=function(a){return(a+"").replace(ba,ca)},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(_,aa),a[3]=(a[3]||a[4]||a[5]||"").replace(_,aa),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return V.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&T.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(_,aa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:!b||(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(O," ")+" ").indexOf(c)>-1:"|="===b&&(e===c||e.slice(0,c.length+1)===c+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(P,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(_,aa),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return U.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(_,aa).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:oa(!1),disabled:oa(!0),checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:pa(function(){return[0]}),last:pa(function(a,b){return[b-1]}),eq:pa(function(a,b,c){return[c<0?c+b:c]}),even:pa(function(a,b){for(var c=0;c<b;c+=2)a.push(c);return a}),odd:pa(function(a,b){for(var c=1;c<b;c+=2)a.push(c);return a}),lt:pa(function(a,b,c){for(var d=c<0?c+b:c;--d>=0;)a.push(d);return a}),gt:pa(function(a,b,c){for(var d=c<0?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=ma(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=na(b);function ra(){}ra.prototype=d.filters=d.pseudos,d.setFilters=new ra,g=ga.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=Q.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=R.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(P," ")}),h=h.slice(c.length));for(g in d.filter)!(e=V[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?ga.error(a):z(a,i).slice(0)};function sa(a){for(var b=0,c=a.length,d="";b<c;b++)d+=a[b].value;return d}function ta(a,b,c){var d=b.dir,e=b.next,f=e||d,g=c&&"parentNode"===f,h=x++;return b.first?function(b,c,e){while(b=b[d])if(1===b.nodeType||g)return a(b,c,e);return!1}:function(b,c,i){var j,k,l,m=[w,h];if(i){while(b=b[d])if((1===b.nodeType||g)&&a(b,c,i))return!0}else while(b=b[d])if(1===b.nodeType||g)if(l=b[u]||(b[u]={}),k=l[b.uniqueID]||(l[b.uniqueID]={}),e&&e===b.nodeName.toLowerCase())b=b[d]||b;else{if((j=k[f])&&j[0]===w&&j[1]===h)return m[2]=j[2];if(k[f]=m,m[2]=a(b,c,i))return!0}return!1}}function ua(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function va(a,b,c){for(var d=0,e=b.length;d<e;d++)ga(a,b[d],c);return c}function wa(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;h<i;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function xa(a,b,c,d,e,f){return d&&!d[u]&&(d=xa(d)),e&&!e[u]&&(e=xa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||va(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:wa(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=wa(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=wa(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ya(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ta(function(a){return a===b},h,!0),l=ta(function(a){return I(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];i<f;i++)if(c=d.relative[a[i].type])m=[ta(ua(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;e<f;e++)if(d.relative[a[e].type])break;return xa(i>1&&ua(m),i>1&&sa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(P,"$1"),c,i<e&&ya(a.slice(i,e)),e<f&&ya(a=a.slice(e)),e<f&&sa(a))}m.push(c)}return ua(m)}function za(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=E.call(i));u=wa(u)}G.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&ga.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=ya(b[c]),f[u]?d.push(f):e.push(f);f=A(a,za(e,d)),f.selector=a}return f},i=ga.select=function(a,b,c,e){var f,i,j,k,l,m="function"==typeof a&&a,n=!e&&g(a=m.selector||a);if(c=c||[],1===n.length){if(i=n[0]=n[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&9===b.nodeType&&p&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(_,aa),b)||[])[0],!b)return c;m&&(b=b.parentNode),a=a.slice(i.shift().value.length)}f=V.needsContext.test(a)?0:i.length;while(f--){if(j=i[f],d.relative[k=j.type])break;if((l=d.find[k])&&(e=l(j.matches[0].replace(_,aa),$.test(i[0].type)&&qa(b.parentNode)||b))){if(i.splice(f,1),a=e.length&&sa(i),!a)return G.apply(c,e),c;break}}}return(m||h(a,n))(e,b,!p,c,!b||$.test(a)&&qa(b.parentNode)||b),c},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("fieldset"))}),ja(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(J,function(a,b,c){var d;if(!c)return a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);r.find=x,r.expr=x.selectors,r.expr[":"]=r.expr.pseudos,r.uniqueSort=r.unique=x.uniqueSort,r.text=x.getText,r.isXMLDoc=x.isXML,r.contains=x.contains,r.escapeSelector=x.escape;var y=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&r(a).is(c))break;d.push(a)}return d},z=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},A=r.expr.match.needsContext;function B(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()}var C=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,D=/^.[^:#\[\.,]*$/;function E(a,b,c){return r.isFunction(b)?r.grep(a,function(a,d){return!!b.call(a,d,a)!==c}):b.nodeType?r.grep(a,function(a){return a===b!==c}):"string"!=typeof b?r.grep(a,function(a){return i.call(b,a)>-1!==c}):D.test(b)?r.filter(b,a,c):(b=r.filter(b,a),r.grep(a,function(a){return i.call(b,a)>-1!==c&&1===a.nodeType}))}r.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?r.find.matchesSelector(d,a)?[d]:[]:r.find.matches(a,r.grep(b,function(a){return 1===a.nodeType}))},r.fn.extend({find:function(a){var b,c,d=this.length,e=this;if("string"!=typeof a)return this.pushStack(r(a).filter(function(){for(b=0;b<d;b++)if(r.contains(e[b],this))return!0}));for(c=this.pushStack([]),b=0;b<d;b++)r.find(a,e[b],c);return d>1?r.uniqueSort(c):c},filter:function(a){return this.pushStack(E(this,a||[],!1))},not:function(a){return this.pushStack(E(this,a||[],!0))},is:function(a){return!!E(this,"string"==typeof a&&A.test(a)?r(a):a||[],!1).length}});var F,G=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,H=r.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||F,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:G.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof r?b[0]:b,r.merge(this,r.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),C.test(e[1])&&r.isPlainObject(b))for(e in b)r.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&(this[0]=f,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):r.isFunction(a)?void 0!==c.ready?c.ready(a):a(r):r.makeArray(a,this)};H.prototype=r.fn,F=r(d);var I=/^(?:parents|prev(?:Until|All))/,J={children:!0,contents:!0,next:!0,prev:!0};r.fn.extend({has:function(a){var b=r(a,this),c=b.length;return this.filter(function(){for(var a=0;a<c;a++)if(r.contains(this,b[a]))return!0})},closest:function(a,b){var c,d=0,e=this.length,f=[],g="string"!=typeof a&&r(a);if(!A.test(a))for(;d<e;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&r.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?r.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?i.call(r(a),this[0]):i.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(r.uniqueSort(r.merge(this.get(),r(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function K(a,b){while((a=a[b])&&1!==a.nodeType);return a}r.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return y(a,"parentNode")},parentsUntil:function(a,b,c){return y(a,"parentNode",c)},next:function(a){return K(a,"nextSibling")},prev:function(a){return K(a,"previousSibling")},nextAll:function(a){return y(a,"nextSibling")},prevAll:function(a){return y(a,"previousSibling")},nextUntil:function(a,b,c){return y(a,"nextSibling",c)},prevUntil:function(a,b,c){return y(a,"previousSibling",c)},siblings:function(a){return z((a.parentNode||{}).firstChild,a)},children:function(a){return z(a.firstChild)},contents:function(a){return B(a,"iframe")?a.contentDocument:(B(a,"template")&&(a=a.content||a),r.merge([],a.childNodes))}},function(a,b){r.fn[a]=function(c,d){var e=r.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=r.filter(d,e)),this.length>1&&(J[a]||r.uniqueSort(e),I.test(a)&&e.reverse()),this.pushStack(e)}});var L=/[^\x20\t\r\n\f]+/g;function M(a){var b={};return r.each(a.match(L)||[],function(a,c){b[c]=!0}),b}r.Callbacks=function(a){a="string"==typeof a?M(a):r.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=e||a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h<f.length)f[h].apply(c[0],c[1])===!1&&a.stopOnFalse&&(h=f.length,c=!1)}a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},j={add:function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){r.each(b,function(b,c){r.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&"string"!==r.type(c)&&d(c)})}(arguments),c&&!b&&i()),this},remove:function(){return r.each(arguments,function(a,b){var c;while((c=r.inArray(b,f,c))>-1)f.splice(c,1),c<=h&&h--}),this},has:function(a){return a?r.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||b||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j};function N(a){return a}function O(a){throw a}function P(a,b,c,d){var e;try{a&&r.isFunction(e=a.promise)?e.call(a).done(b).fail(c):a&&r.isFunction(e=a.then)?e.call(a,b,c):b.apply(void 0,[a].slice(d))}catch(a){c.apply(void 0,[a])}}r.extend({Deferred:function(b){var c=[["notify","progress",r.Callbacks("memory"),r.Callbacks("memory"),2],["resolve","done",r.Callbacks("once memory"),r.Callbacks("once memory"),0,"resolved"],["reject","fail",r.Callbacks("once memory"),r.Callbacks("once memory"),1,"rejected"]],d="pending",e={state:function(){return d},always:function(){return f.done(arguments).fail(arguments),this},"catch":function(a){return e.then(null,a)},pipe:function(){var a=arguments;return r.Deferred(function(b){r.each(c,function(c,d){var e=r.isFunction(a[d[4]])&&a[d[4]];f[d[1]](function(){var a=e&&e.apply(this,arguments);a&&r.isFunction(a.promise)?a.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[d[0]+"With"](this,e?[a]:arguments)})}),a=null}).promise()},then:function(b,d,e){var f=0;function g(b,c,d,e){return function(){var h=this,i=arguments,j=function(){var a,j;if(!(b<f)){if(a=d.apply(h,i),a===c.promise())throw new TypeError("Thenable self-resolution");j=a&&("object"==typeof a||"function"==typeof a)&&a.then,r.isFunction(j)?e?j.call(a,g(f,c,N,e),g(f,c,O,e)):(f++,j.call(a,g(f,c,N,e),g(f,c,O,e),g(f,c,N,c.notifyWith))):(d!==N&&(h=void 0,i=[a]),(e||c.resolveWith)(h,i))}},k=e?j:function(){try{j()}catch(a){r.Deferred.exceptionHook&&r.Deferred.exceptionHook(a,k.stackTrace),b+1>=f&&(d!==O&&(h=void 0,i=[a]),c.rejectWith(h,i))}};b?k():(r.Deferred.getStackHook&&(k.stackTrace=r.Deferred.getStackHook()),a.setTimeout(k))}}return r.Deferred(function(a){c[0][3].add(g(0,a,r.isFunction(e)?e:N,a.notifyWith)),c[1][3].add(g(0,a,r.isFunction(b)?b:N)),c[2][3].add(g(0,a,r.isFunction(d)?d:O))}).promise()},promise:function(a){return null!=a?r.extend(a,e):e}},f={};return r.each(c,function(a,b){var g=b[2],h=b[5];e[b[1]]=g.add,h&&g.add(function(){d=h},c[3-a][2].disable,c[0][2].lock),g.add(b[3].fire),f[b[0]]=function(){return f[b[0]+"With"](this===f?void 0:this,arguments),this},f[b[0]+"With"]=g.fireWith}),e.promise(f),b&&b.call(f,f),f},when:function(a){var b=arguments.length,c=b,d=Array(c),e=f.call(arguments),g=r.Deferred(),h=function(a){return function(c){d[a]=this,e[a]=arguments.length>1?f.call(arguments):c,--b||g.resolveWith(d,e)}};if(b<=1&&(P(a,g.done(h(c)).resolve,g.reject,!b),"pending"===g.state()||r.isFunction(e[c]&&e[c].then)))return g.then();while(c--)P(e[c],h(c),g.reject);return g.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;r.Deferred.exceptionHook=function(b,c){a.console&&a.console.warn&&b&&Q.test(b.name)&&a.console.warn("jQuery.Deferred exception: "+b.message,b.stack,c)},r.readyException=function(b){a.setTimeout(function(){throw b})};var R=r.Deferred();r.fn.ready=function(a){return R.then(a)["catch"](function(a){r.readyException(a)}),this},r.extend({isReady:!1,readyWait:1,ready:function(a){(a===!0?--r.readyWait:r.isReady)||(r.isReady=!0,a!==!0&&--r.readyWait>0||R.resolveWith(d,[r]))}}),r.ready.then=R.then;function S(){d.removeEventListener("DOMContentLoaded",S),
+a.removeEventListener("load",S),r.ready()}"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(r.ready):(d.addEventListener("DOMContentLoaded",S),a.addEventListener("load",S));var T=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===r.type(c)){e=!0;for(h in c)T(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,r.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(r(a),c)})),b))for(;h<i;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},U=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function V(){this.expando=r.expando+V.uid++}V.uid=1,V.prototype={cache:function(a){var b=a[this.expando];return b||(b={},U(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[r.camelCase(b)]=c;else for(d in b)e[r.camelCase(d)]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][r.camelCase(b)]},access:function(a,b,c){return void 0===b||b&&"string"==typeof b&&void 0===c?this.get(a,b):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d=a[this.expando];if(void 0!==d){if(void 0!==b){Array.isArray(b)?b=b.map(r.camelCase):(b=r.camelCase(b),b=b in d?[b]:b.match(L)||[]),c=b.length;while(c--)delete d[b[c]]}(void 0===b||r.isEmptyObject(d))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!r.isEmptyObject(b)}};var W=new V,X=new V,Y=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Z=/[A-Z]/g;function $(a){return"true"===a||"false"!==a&&("null"===a?null:a===+a+""?+a:Y.test(a)?JSON.parse(a):a)}function _(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Z,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c=$(c)}catch(e){}X.set(a,b,c)}else c=void 0;return c}r.extend({hasData:function(a){return X.hasData(a)||W.hasData(a)},data:function(a,b,c){return X.access(a,b,c)},removeData:function(a,b){X.remove(a,b)},_data:function(a,b,c){return W.access(a,b,c)},_removeData:function(a,b){W.remove(a,b)}}),r.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=X.get(f),1===f.nodeType&&!W.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=r.camelCase(d.slice(5)),_(f,d,e[d])));W.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){X.set(this,a)}):T(this,function(b){var c;if(f&&void 0===b){if(c=X.get(f,a),void 0!==c)return c;if(c=_(f,a),void 0!==c)return c}else this.each(function(){X.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){X.remove(this,a)})}}),r.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=W.get(a,b),c&&(!d||Array.isArray(c)?d=W.access(a,b,r.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=r.queue(a,b),d=c.length,e=c.shift(),f=r._queueHooks(a,b),g=function(){r.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return W.get(a,c)||W.access(a,c,{empty:r.Callbacks("once memory").add(function(){W.remove(a,[b+"queue",c])})})}}),r.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?r.queue(this[0],a):void 0===b?this:this.each(function(){var c=r.queue(this,a,b);r._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&r.dequeue(this,a)})},dequeue:function(a){return this.each(function(){r.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=r.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=W.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var aa=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ba=new RegExp("^(?:([+-])=|)("+aa+")([a-z%]*)$","i"),ca=["Top","Right","Bottom","Left"],da=function(a,b){return a=b||a,"none"===a.style.display||""===a.style.display&&r.contains(a.ownerDocument,a)&&"none"===r.css(a,"display")},ea=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};function fa(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return r.css(a,b,"")},i=h(),j=c&&c[3]||(r.cssNumber[b]?"":"px"),k=(r.cssNumber[b]||"px"!==j&&+i)&&ba.exec(r.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,r.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var ga={};function ha(a){var b,c=a.ownerDocument,d=a.nodeName,e=ga[d];return e?e:(b=c.body.appendChild(c.createElement(d)),e=r.css(b,"display"),b.parentNode.removeChild(b),"none"===e&&(e="block"),ga[d]=e,e)}function ia(a,b){for(var c,d,e=[],f=0,g=a.length;f<g;f++)d=a[f],d.style&&(c=d.style.display,b?("none"===c&&(e[f]=W.get(d,"display")||null,e[f]||(d.style.display="")),""===d.style.display&&da(d)&&(e[f]=ha(d))):"none"!==c&&(e[f]="none",W.set(d,"display",c)));for(f=0;f<g;f++)null!=e[f]&&(a[f].style.display=e[f]);return a}r.fn.extend({show:function(){return ia(this,!0)},hide:function(){return ia(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){da(this)?r(this).show():r(this).hide()})}});var ja=/^(?:checkbox|radio)$/i,ka=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,la=/^$|\/(?:java|ecma)script/i,ma={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ma.optgroup=ma.option,ma.tbody=ma.tfoot=ma.colgroup=ma.caption=ma.thead,ma.th=ma.td;function na(a,b){var c;return c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[],void 0===b||b&&B(a,b)?r.merge([a],c):c}function oa(a,b){for(var c=0,d=a.length;c<d;c++)W.set(a[c],"globalEval",!b||W.get(b[c],"globalEval"))}var pa=/<|&#?\w+;/;function qa(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createDocumentFragment(),m=[],n=0,o=a.length;n<o;n++)if(f=a[n],f||0===f)if("object"===r.type(f))r.merge(m,f.nodeType?[f]:f);else if(pa.test(f)){g=g||l.appendChild(b.createElement("div")),h=(ka.exec(f)||["",""])[1].toLowerCase(),i=ma[h]||ma._default,g.innerHTML=i[1]+r.htmlPrefilter(f)+i[2],k=i[0];while(k--)g=g.lastChild;r.merge(m,g.childNodes),g=l.firstChild,g.textContent=""}else m.push(b.createTextNode(f));l.textContent="",n=0;while(f=m[n++])if(d&&r.inArray(f,d)>-1)e&&e.push(f);else if(j=r.contains(f.ownerDocument,f),g=na(l.appendChild(f),"script"),j&&oa(g),c){k=0;while(f=g[k++])la.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),o.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",o.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var ra=d.documentElement,sa=/^key/,ta=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ua=/^([^.]*)(?:\.(.+)|)/;function va(){return!0}function wa(){return!1}function xa(){try{return d.activeElement}catch(a){}}function ya(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)ya(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=wa;else if(!e)return a;return 1===f&&(g=e,e=function(a){return r().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=r.guid++)),a.each(function(){r.event.add(this,b,e,d,c)})}r.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=W.get(a);if(q){c.handler&&(f=c,c=f.handler,e=f.selector),e&&r.find.matchesSelector(ra,e),c.guid||(c.guid=r.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return"undefined"!=typeof r&&r.event.triggered!==b.type?r.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(L)||[""],j=b.length;while(j--)h=ua.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=r.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=r.event.special[n]||{},k=r.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&r.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),r.event.global[n]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=W.hasData(a)&&W.get(a);if(q&&(i=q.events)){b=(b||"").match(L)||[""],j=b.length;while(j--)if(h=ua.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){l=r.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||r.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)r.event.remove(a,n+b[j],c,d,!0);r.isEmptyObject(i)&&W.remove(a,"handle events")}},dispatch:function(a){var b=r.event.fix(a),c,d,e,f,g,h,i=new Array(arguments.length),j=(W.get(this,"events")||{})[b.type]||[],k=r.event.special[b.type]||{};for(i[0]=b,c=1;c<arguments.length;c++)i[c]=arguments[c];if(b.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,b)!==!1){h=r.event.handlers.call(this,b,j),c=0;while((f=h[c++])&&!b.isPropagationStopped()){b.currentTarget=f.elem,d=0;while((g=f.handlers[d++])&&!b.isImmediatePropagationStopped())b.rnamespace&&!b.rnamespace.test(g.namespace)||(b.handleObj=g,b.data=g.data,e=((r.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(b.result=e)===!1&&(b.preventDefault(),b.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,b),b.result}},handlers:function(a,b){var c,d,e,f,g,h=[],i=b.delegateCount,j=a.target;if(i&&j.nodeType&&!("click"===a.type&&a.button>=1))for(;j!==this;j=j.parentNode||this)if(1===j.nodeType&&("click"!==a.type||j.disabled!==!0)){for(f=[],g={},c=0;c<i;c++)d=b[c],e=d.selector+" ",void 0===g[e]&&(g[e]=d.needsContext?r(e,this).index(j)>-1:r.find(e,this,null,[j]).length),g[e]&&f.push(d);f.length&&h.push({elem:j,handlers:f})}return j=this,i<b.length&&h.push({elem:j,handlers:b.slice(i)}),h},addProp:function(a,b){Object.defineProperty(r.Event.prototype,a,{enumerable:!0,configurable:!0,get:r.isFunction(b)?function(){if(this.originalEvent)return b(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[a]},set:function(b){Object.defineProperty(this,a,{enumerable:!0,configurable:!0,writable:!0,value:b})}})},fix:function(a){return a[r.expando]?a:new r.Event(a)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==xa()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===xa()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&B(this,"input"))return this.click(),!1},_default:function(a){return B(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}},r.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)},r.Event=function(a,b){return this instanceof r.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?va:wa,this.target=a.target&&3===a.target.nodeType?a.target.parentNode:a.target,this.currentTarget=a.currentTarget,this.relatedTarget=a.relatedTarget):this.type=a,b&&r.extend(this,b),this.timeStamp=a&&a.timeStamp||r.now(),void(this[r.expando]=!0)):new r.Event(a,b)},r.Event.prototype={constructor:r.Event,isDefaultPrevented:wa,isPropagationStopped:wa,isImmediatePropagationStopped:wa,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=va,a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=va,a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=va,a&&!this.isSimulated&&a.stopImmediatePropagation(),this.stopPropagation()}},r.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(a){var b=a.button;return null==a.which&&sa.test(a.type)?null!=a.charCode?a.charCode:a.keyCode:!a.which&&void 0!==b&&ta.test(a.type)?1&b?1:2&b?3:4&b?2:0:a.which}},r.event.addProp),r.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){r.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||r.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),r.fn.extend({on:function(a,b,c,d){return ya(this,a,b,c,d)},one:function(a,b,c,d){return ya(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,r(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=wa),this.each(function(){r.event.remove(this,a,c,b)})}});var za=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Aa=/<script|<style|<link/i,Ba=/checked\s*(?:[^=]|=\s*.checked.)/i,Ca=/^true\/(.*)/,Da=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ea(a,b){return B(a,"table")&&B(11!==b.nodeType?b:b.firstChild,"tr")?r(">tbody",a)[0]||a:a}function Fa(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function Ga(a){var b=Ca.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Ha(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(W.hasData(a)&&(f=W.access(a),g=W.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;c<d;c++)r.event.add(b,e,j[e][c])}X.hasData(a)&&(h=X.access(a),i=r.extend({},h),X.set(b,i))}}function Ia(a,b){var c=b.nodeName.toLowerCase();"input"===c&&ja.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}function Ja(a,b,c,d){b=g.apply([],b);var e,f,h,i,j,k,l=0,m=a.length,n=m-1,q=b[0],s=r.isFunction(q);if(s||m>1&&"string"==typeof q&&!o.checkClone&&Ba.test(q))return a.each(function(e){var f=a.eq(e);s&&(b[0]=q.call(this,e,f.html())),Ja(f,b,c,d)});if(m&&(e=qa(b,a[0].ownerDocument,!1,a,d),f=e.firstChild,1===e.childNodes.length&&(e=f),f||d)){for(h=r.map(na(e,"script"),Fa),i=h.length;l<m;l++)j=e,l!==n&&(j=r.clone(j,!0,!0),i&&r.merge(h,na(j,"script"))),c.call(a[l],j,l);if(i)for(k=h[h.length-1].ownerDocument,r.map(h,Ga),l=0;l<i;l++)j=h[l],la.test(j.type||"")&&!W.access(j,"globalEval")&&r.contains(k,j)&&(j.src?r._evalUrl&&r._evalUrl(j.src):p(j.textContent.replace(Da,""),k))}return a}function Ka(a,b,c){for(var d,e=b?r.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||r.cleanData(na(d)),d.parentNode&&(c&&r.contains(d.ownerDocument,d)&&oa(na(d,"script")),d.parentNode.removeChild(d));return a}r.extend({htmlPrefilter:function(a){return a.replace(za,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=r.contains(a.ownerDocument,a);if(!(o.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||r.isXMLDoc(a)))for(g=na(h),f=na(a),d=0,e=f.length;d<e;d++)Ia(f[d],g[d]);if(b)if(c)for(f=f||na(a),g=g||na(h),d=0,e=f.length;d<e;d++)Ha(f[d],g[d]);else Ha(a,h);return g=na(h,"script"),g.length>0&&oa(g,!i&&na(a,"script")),h},cleanData:function(a){for(var b,c,d,e=r.event.special,f=0;void 0!==(c=a[f]);f++)if(U(c)){if(b=c[W.expando]){if(b.events)for(d in b.events)e[d]?r.event.remove(c,d):r.removeEvent(c,d,b.handle);c[W.expando]=void 0}c[X.expando]&&(c[X.expando]=void 0)}}}),r.fn.extend({detach:function(a){return Ka(this,a,!0)},remove:function(a){return Ka(this,a)},text:function(a){return T(this,function(a){return void 0===a?r.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return Ja(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ea(this,a);b.appendChild(a)}})},prepend:function(){return Ja(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ea(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ja(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ja(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(r.cleanData(na(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null!=a&&a,b=null==b?a:b,this.map(function(){return r.clone(this,a,b)})},html:function(a){return T(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!Aa.test(a)&&!ma[(ka.exec(a)||["",""])[1].toLowerCase()]){a=r.htmlPrefilter(a);try{for(;c<d;c++)b=this[c]||{},1===b.nodeType&&(r.cleanData(na(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ja(this,arguments,function(b){var c=this.parentNode;r.inArray(this,a)<0&&(r.cleanData(na(this)),c&&c.replaceChild(b,this))},a)}}),r.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){r.fn[a]=function(a){for(var c,d=[],e=r(a),f=e.length-1,g=0;g<=f;g++)c=g===f?this:this.clone(!0),r(e[g])[b](c),h.apply(d,c.get());return this.pushStack(d)}});var La=/^margin/,Ma=new RegExp("^("+aa+")(?!px)[a-z%]+$","i"),Na=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)};!function(){function b(){if(i){i.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",i.innerHTML="",ra.appendChild(h);var b=a.getComputedStyle(i);c="1%"!==b.top,g="2px"===b.marginLeft,e="4px"===b.width,i.style.marginRight="50%",f="4px"===b.marginRight,ra.removeChild(h),i=null}}var c,e,f,g,h=d.createElement("div"),i=d.createElement("div");i.style&&(i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",o.clearCloneStyle="content-box"===i.style.backgroundClip,h.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",h.appendChild(i),r.extend(o,{pixelPosition:function(){return b(),c},boxSizingReliable:function(){return b(),e},pixelMarginRight:function(){return b(),f},reliableMarginLeft:function(){return b(),g}}))}();function Oa(a,b,c){var d,e,f,g,h=a.style;return c=c||Na(a),c&&(g=c.getPropertyValue(b)||c[b],""!==g||r.contains(a.ownerDocument,a)||(g=r.style(a,b)),!o.pixelMarginRight()&&Ma.test(g)&&La.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function Pa(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Qa=/^(none|table(?!-c[ea]).+)/,Ra=/^--/,Sa={position:"absolute",visibility:"hidden",display:"block"},Ta={letterSpacing:"0",fontWeight:"400"},Ua=["Webkit","Moz","ms"],Va=d.createElement("div").style;function Wa(a){if(a in Va)return a;var b=a[0].toUpperCase()+a.slice(1),c=Ua.length;while(c--)if(a=Ua[c]+b,a in Va)return a}function Xa(a){var b=r.cssProps[a];return b||(b=r.cssProps[a]=Wa(a)||a),b}function Ya(a,b,c){var d=ba.exec(b);return d?Math.max(0,d[2]-(c||0))+(d[3]||"px"):b}function Za(a,b,c,d,e){var f,g=0;for(f=c===(d?"border":"content")?4:"width"===b?1:0;f<4;f+=2)"margin"===c&&(g+=r.css(a,c+ca[f],!0,e)),d?("content"===c&&(g-=r.css(a,"padding"+ca[f],!0,e)),"margin"!==c&&(g-=r.css(a,"border"+ca[f]+"Width",!0,e))):(g+=r.css(a,"padding"+ca[f],!0,e),"padding"!==c&&(g+=r.css(a,"border"+ca[f]+"Width",!0,e)));return g}function $a(a,b,c){var d,e=Na(a),f=Oa(a,b,e),g="border-box"===r.css(a,"boxSizing",!1,e);return Ma.test(f)?f:(d=g&&(o.boxSizingReliable()||f===a.style[b]),"auto"===f&&(f=a["offset"+b[0].toUpperCase()+b.slice(1)]),f=parseFloat(f)||0,f+Za(a,b,c||(g?"border":"content"),d,e)+"px")}r.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Oa(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=r.camelCase(b),i=Ra.test(b),j=a.style;return i||(b=Xa(h)),g=r.cssHooks[b]||r.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:j[b]:(f=typeof c,"string"===f&&(e=ba.exec(c))&&e[1]&&(c=fa(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(r.cssNumber[h]?"":"px")),o.clearCloneStyle||""!==c||0!==b.indexOf("background")||(j[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i?j.setProperty(b,c):j[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=r.camelCase(b),i=Ra.test(b);return i||(b=Xa(h)),g=r.cssHooks[b]||r.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=Oa(a,b,d)),"normal"===e&&b in Ta&&(e=Ta[b]),""===c||c?(f=parseFloat(e),c===!0||isFinite(f)?f||0:e):e}}),r.each(["height","width"],function(a,b){r.cssHooks[b]={get:function(a,c,d){if(c)return!Qa.test(r.css(a,"display"))||a.getClientRects().length&&a.getBoundingClientRect().width?$a(a,b,d):ea(a,Sa,function(){return $a(a,b,d)})},set:function(a,c,d){var e,f=d&&Na(a),g=d&&Za(a,b,d,"border-box"===r.css(a,"boxSizing",!1,f),f);return g&&(e=ba.exec(c))&&"px"!==(e[3]||"px")&&(a.style[b]=c,c=r.css(a,b)),Ya(a,c,g)}}}),r.cssHooks.marginLeft=Pa(o.reliableMarginLeft,function(a,b){if(b)return(parseFloat(Oa(a,"marginLeft"))||a.getBoundingClientRect().left-ea(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px"}),r.each({margin:"",padding:"",border:"Width"},function(a,b){r.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];d<4;d++)e[a+ca[d]+b]=f[d]||f[d-2]||f[0];return e}},La.test(a)||(r.cssHooks[a+b].set=Ya)}),r.fn.extend({css:function(a,b){return T(this,function(a,b,c){var d,e,f={},g=0;if(Array.isArray(b)){for(d=Na(a),e=b.length;g<e;g++)f[b[g]]=r.css(a,b[g],!1,d);return f}return void 0!==c?r.style(a,b,c):r.css(a,b)},a,b,arguments.length>1)}});function _a(a,b,c,d,e){return new _a.prototype.init(a,b,c,d,e)}r.Tween=_a,_a.prototype={constructor:_a,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||r.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(r.cssNumber[c]?"":"px")},cur:function(){var a=_a.propHooks[this.prop];return a&&a.get?a.get(this):_a.propHooks._default.get(this)},run:function(a){var b,c=_a.propHooks[this.prop];return this.options.duration?this.pos=b=r.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):_a.propHooks._default.set(this),this}},_a.prototype.init.prototype=_a.prototype,_a.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=r.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){r.fx.step[a.prop]?r.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[r.cssProps[a.prop]]&&!r.cssHooks[a.prop]?a.elem[a.prop]=a.now:r.style(a.elem,a.prop,a.now+a.unit)}}},_a.propHooks.scrollTop=_a.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},r.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},r.fx=_a.prototype.init,r.fx.step={};var ab,bb,cb=/^(?:toggle|show|hide)$/,db=/queueHooks$/;function eb(){bb&&(d.hidden===!1&&a.requestAnimationFrame?a.requestAnimationFrame(eb):a.setTimeout(eb,r.fx.interval),r.fx.tick())}function fb(){return a.setTimeout(function(){ab=void 0}),ab=r.now()}function gb(a,b){var c,d=0,e={height:a};for(b=b?1:0;d<4;d+=2-b)c=ca[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function hb(a,b,c){for(var d,e=(kb.tweeners[b]||[]).concat(kb.tweeners["*"]),f=0,g=e.length;f<g;f++)if(d=e[f].call(c,b,a))return d}function ib(a,b,c){var d,e,f,g,h,i,j,k,l="width"in b||"height"in b,m=this,n={},o=a.style,p=a.nodeType&&da(a),q=W.get(a,"fxshow");c.queue||(g=r._queueHooks(a,"fx"),null==g.unqueued&&(g.unqueued=0,h=g.empty.fire,g.empty.fire=function(){g.unqueued||h()}),g.unqueued++,m.always(function(){m.always(function(){g.unqueued--,r.queue(a,"fx").length||g.empty.fire()})}));for(d in b)if(e=b[d],cb.test(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}n[d]=q&&q[d]||r.style(a,d)}if(i=!r.isEmptyObject(b),i||!r.isEmptyObject(n)){l&&1===a.nodeType&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=q&&q.display,null==j&&(j=W.get(a,"display")),k=r.css(a,"display"),"none"===k&&(j?k=j:(ia([a],!0),j=a.style.display||j,k=r.css(a,"display"),ia([a]))),("inline"===k||"inline-block"===k&&null!=j)&&"none"===r.css(a,"float")&&(i||(m.done(function(){o.display=j}),null==j&&(k=o.display,j="none"===k?"":k)),o.display="inline-block")),c.overflow&&(o.overflow="hidden",m.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]})),i=!1;for(d in n)i||(q?"hidden"in q&&(p=q.hidden):q=W.access(a,"fxshow",{display:j}),f&&(q.hidden=!p),p&&ia([a],!0),m.done(function(){p||ia([a]),W.remove(a,"fxshow");for(d in n)r.style(a,d,n[d])})),i=hb(p?q[d]:0,d,m),d in q||(q[d]=i.start,p&&(i.end=i.start,i.start=0))}}function jb(a,b){var c,d,e,f,g;for(c in a)if(d=r.camelCase(c),e=b[d],f=a[c],Array.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=r.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function kb(a,b,c){var d,e,f=0,g=kb.prefilters.length,h=r.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=ab||fb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;g<i;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),f<1&&i?c:(i||h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:r.extend({},b),opts:r.extend(!0,{specialEasing:{},easing:r.easing._default},c),originalProperties:b,originalOptions:c,startTime:ab||fb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=r.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;c<d;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for(jb(k,j.opts.specialEasing);f<g;f++)if(d=kb.prefilters[f].call(j,a,k,j.opts))return r.isFunction(d.stop)&&(r._queueHooks(j.elem,j.opts.queue).stop=r.proxy(d.stop,d)),d;return r.map(k,hb,j),r.isFunction(j.opts.start)&&j.opts.start.call(a,j),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always),r.fx.timer(r.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j}r.Animation=r.extend(kb,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return fa(c.elem,a,ba.exec(b),c),c}]},tweener:function(a,b){r.isFunction(a)?(b=a,a=["*"]):a=a.match(L);for(var c,d=0,e=a.length;d<e;d++)c=a[d],kb.tweeners[c]=kb.tweeners[c]||[],kb.tweeners[c].unshift(b)},prefilters:[ib],prefilter:function(a,b){b?kb.prefilters.unshift(a):kb.prefilters.push(a)}}),r.speed=function(a,b,c){var d=a&&"object"==typeof a?r.extend({},a):{complete:c||!c&&b||r.isFunction(a)&&a,duration:a,easing:c&&b||b&&!r.isFunction(b)&&b};return r.fx.off?d.duration=0:"number"!=typeof d.duration&&(d.duration in r.fx.speeds?d.duration=r.fx.speeds[d.duration]:d.duration=r.fx.speeds._default),null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){r.isFunction(d.old)&&d.old.call(this),d.queue&&r.dequeue(this,d.queue)},d},r.fn.extend({fadeTo:function(a,b,c,d){return this.filter(da).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=r.isEmptyObject(a),f=r.speed(b,c,d),g=function(){var b=kb(this,r.extend({},a),f);(e||W.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=r.timers,g=W.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&db.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||r.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=W.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=r.timers,g=d?d.length:0;for(c.finish=!0,r.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;b<g;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),r.each(["toggle","show","hide"],function(a,b){var c=r.fn[b];r.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(gb(b,!0),a,d,e)}}),r.each({slideDown:gb("show"),slideUp:gb("hide"),slideToggle:gb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){r.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),r.timers=[],r.fx.tick=function(){var a,b=0,c=r.timers;for(ab=r.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||r.fx.stop(),ab=void 0},r.fx.timer=function(a){r.timers.push(a),r.fx.start()},r.fx.interval=13,r.fx.start=function(){bb||(bb=!0,eb())},r.fx.stop=function(){bb=null},r.fx.speeds={slow:600,fast:200,_default:400},r.fn.delay=function(b,c){return b=r.fx?r.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a=d.createElement("input"),b=d.createElement("select"),c=b.appendChild(d.createElement("option"));a.type="checkbox",o.checkOn=""!==a.value,o.optSelected=c.selected,a=d.createElement("input"),a.value="t",a.type="radio",o.radioValue="t"===a.value}();var lb,mb=r.expr.attrHandle;r.fn.extend({attr:function(a,b){return T(this,r.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){r.removeAttr(this,a)})}}),r.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?r.prop(a,b,c):(1===f&&r.isXMLDoc(a)||(e=r.attrHooks[b.toLowerCase()]||(r.expr.match.bool.test(b)?lb:void 0)),void 0!==c?null===c?void r.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=r.find.attr(a,b),
+null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"===b&&B(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d=0,e=b&&b.match(L);if(e&&1===a.nodeType)while(c=e[d++])a.removeAttribute(c)}}),lb={set:function(a,b,c){return b===!1?r.removeAttr(a,c):a.setAttribute(c,c),c}},r.each(r.expr.match.bool.source.match(/\w+/g),function(a,b){var c=mb[b]||r.find.attr;mb[b]=function(a,b,d){var e,f,g=b.toLowerCase();return d||(f=mb[g],mb[g]=e,e=null!=c(a,b,d)?g:null,mb[g]=f),e}});var nb=/^(?:input|select|textarea|button)$/i,ob=/^(?:a|area)$/i;r.fn.extend({prop:function(a,b){return T(this,r.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[r.propFix[a]||a]})}}),r.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&r.isXMLDoc(a)||(b=r.propFix[b]||b,e=r.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=r.find.attr(a,"tabindex");return b?parseInt(b,10):nb.test(a.nodeName)||ob.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),o.optSelected||(r.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),r.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){r.propFix[this.toLowerCase()]=this});function pb(a){var b=a.match(L)||[];return b.join(" ")}function qb(a){return a.getAttribute&&a.getAttribute("class")||""}r.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).addClass(a.call(this,b,qb(this)))});if("string"==typeof a&&a){b=a.match(L)||[];while(c=this[i++])if(e=qb(c),d=1===c.nodeType&&" "+pb(e)+" "){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=pb(d),e!==h&&c.setAttribute("class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).removeClass(a.call(this,b,qb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(L)||[];while(c=this[i++])if(e=qb(c),d=1===c.nodeType&&" "+pb(e)+" "){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=pb(d),e!==h&&c.setAttribute("class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):r.isFunction(a)?this.each(function(c){r(this).toggleClass(a.call(this,c,qb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=r(this),f=a.match(L)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=qb(this),b&&W.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":W.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+pb(qb(c))+" ").indexOf(b)>-1)return!0;return!1}});var rb=/\r/g;r.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=r.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,r(this).val()):a,null==e?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=r.map(e,function(a){return null==a?"":a+""})),b=r.valHooks[this.type]||r.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=r.valHooks[e.type]||r.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(rb,""):null==c?"":c)}}}),r.extend({valHooks:{option:{get:function(a){var b=r.find.attr(a,"value");return null!=b?b:pb(r.text(a))}},select:{get:function(a){var b,c,d,e=a.options,f=a.selectedIndex,g="select-one"===a.type,h=g?null:[],i=g?f+1:e.length;for(d=f<0?i:g?f:0;d<i;d++)if(c=e[d],(c.selected||d===f)&&!c.disabled&&(!c.parentNode.disabled||!B(c.parentNode,"optgroup"))){if(b=r(c).val(),g)return b;h.push(b)}return h},set:function(a,b){var c,d,e=a.options,f=r.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=r.inArray(r.valHooks.option.get(d),f)>-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),r.each(["radio","checkbox"],function(){r.valHooks[this]={set:function(a,b){if(Array.isArray(b))return a.checked=r.inArray(r(a).val(),b)>-1}},o.checkOn||(r.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var sb=/^(?:focusinfocus|focusoutblur)$/;r.extend(r.event,{trigger:function(b,c,e,f){var g,h,i,j,k,m,n,o=[e||d],p=l.call(b,"type")?b.type:b,q=l.call(b,"namespace")?b.namespace.split("."):[];if(h=i=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!sb.test(p+r.event.triggered)&&(p.indexOf(".")>-1&&(q=p.split("."),p=q.shift(),q.sort()),k=p.indexOf(":")<0&&"on"+p,b=b[r.expando]?b:new r.Event(p,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=q.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:r.makeArray(c,[b]),n=r.event.special[p]||{},f||!n.trigger||n.trigger.apply(e,c)!==!1)){if(!f&&!n.noBubble&&!r.isWindow(e)){for(j=n.delegateType||p,sb.test(j+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),i=h;i===(e.ownerDocument||d)&&o.push(i.defaultView||i.parentWindow||a)}g=0;while((h=o[g++])&&!b.isPropagationStopped())b.type=g>1?j:n.bindType||p,m=(W.get(h,"events")||{})[b.type]&&W.get(h,"handle"),m&&m.apply(h,c),m=k&&h[k],m&&m.apply&&U(h)&&(b.result=m.apply(h,c),b.result===!1&&b.preventDefault());return b.type=p,f||b.isDefaultPrevented()||n._default&&n._default.apply(o.pop(),c)!==!1||!U(e)||k&&r.isFunction(e[p])&&!r.isWindow(e)&&(i=e[k],i&&(e[k]=null),r.event.triggered=p,e[p](),r.event.triggered=void 0,i&&(e[k]=i)),b.result}},simulate:function(a,b,c){var d=r.extend(new r.Event,c,{type:a,isSimulated:!0});r.event.trigger(d,null,b)}}),r.fn.extend({trigger:function(a,b){return this.each(function(){r.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];if(c)return r.event.trigger(a,b,c,!0)}}),r.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(a,b){r.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),r.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),o.focusin="onfocusin"in a,o.focusin||r.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){r.event.simulate(b,a.target,r.event.fix(a))};r.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=W.access(d,b);e||d.addEventListener(a,c,!0),W.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=W.access(d,b)-1;e?W.access(d,b,e):(d.removeEventListener(a,c,!0),W.remove(d,b))}}});var tb=a.location,ub=r.now(),vb=/\?/;r.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||r.error("Invalid XML: "+b),c};var wb=/\[\]$/,xb=/\r?\n/g,yb=/^(?:submit|button|image|reset|file)$/i,zb=/^(?:input|select|textarea|keygen)/i;function Ab(a,b,c,d){var e;if(Array.isArray(b))r.each(b,function(b,e){c||wb.test(a)?d(a,e):Ab(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==r.type(b))d(a,b);else for(e in b)Ab(a+"["+e+"]",b[e],c,d)}r.param=function(a,b){var c,d=[],e=function(a,b){var c=r.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(null==c?"":c)};if(Array.isArray(a)||a.jquery&&!r.isPlainObject(a))r.each(a,function(){e(this.name,this.value)});else for(c in a)Ab(c,a[c],b,e);return d.join("&")},r.fn.extend({serialize:function(){return r.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=r.prop(this,"elements");return a?r.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!r(this).is(":disabled")&&zb.test(this.nodeName)&&!yb.test(a)&&(this.checked||!ja.test(a))}).map(function(a,b){var c=r(this).val();return null==c?null:Array.isArray(c)?r.map(c,function(a){return{name:b.name,value:a.replace(xb,"\r\n")}}):{name:b.name,value:c.replace(xb,"\r\n")}}).get()}});var Bb=/%20/g,Cb=/#.*$/,Db=/([?&])_=[^&]*/,Eb=/^(.*?):[ \t]*([^\r\n]*)$/gm,Fb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Gb=/^(?:GET|HEAD)$/,Hb=/^\/\//,Ib={},Jb={},Kb="*/".concat("*"),Lb=d.createElement("a");Lb.href=tb.href;function Mb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(L)||[];if(r.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Nb(a,b,c,d){var e={},f=a===Jb;function g(h){var i;return e[h]=!0,r.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Ob(a,b){var c,d,e=r.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&r.extend(!0,a,d),a}function Pb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}if(f)return f!==i[0]&&i.unshift(f),c[f]}function Qb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}r.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:tb.href,type:"GET",isLocal:Fb.test(tb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Kb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":r.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Ob(Ob(a,r.ajaxSettings),b):Ob(r.ajaxSettings,a)},ajaxPrefilter:Mb(Ib),ajaxTransport:Mb(Jb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m,n,o=r.ajaxSetup({},c),p=o.context||o,q=o.context&&(p.nodeType||p.jquery)?r(p):r.event,s=r.Deferred(),t=r.Callbacks("once memory"),u=o.statusCode||{},v={},w={},x="canceled",y={readyState:0,getResponseHeader:function(a){var b;if(k){if(!h){h={};while(b=Eb.exec(g))h[b[1].toLowerCase()]=b[2]}b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return k?g:null},setRequestHeader:function(a,b){return null==k&&(a=w[a.toLowerCase()]=w[a.toLowerCase()]||a,v[a]=b),this},overrideMimeType:function(a){return null==k&&(o.mimeType=a),this},statusCode:function(a){var b;if(a)if(k)y.always(a[y.status]);else for(b in a)u[b]=[u[b],a[b]];return this},abort:function(a){var b=a||x;return e&&e.abort(b),A(0,b),this}};if(s.promise(y),o.url=((b||o.url||tb.href)+"").replace(Hb,tb.protocol+"//"),o.type=c.method||c.type||o.method||o.type,o.dataTypes=(o.dataType||"*").toLowerCase().match(L)||[""],null==o.crossDomain){j=d.createElement("a");try{j.href=o.url,j.href=j.href,o.crossDomain=Lb.protocol+"//"+Lb.host!=j.protocol+"//"+j.host}catch(z){o.crossDomain=!0}}if(o.data&&o.processData&&"string"!=typeof o.data&&(o.data=r.param(o.data,o.traditional)),Nb(Ib,o,c,y),k)return y;l=r.event&&o.global,l&&0===r.active++&&r.event.trigger("ajaxStart"),o.type=o.type.toUpperCase(),o.hasContent=!Gb.test(o.type),f=o.url.replace(Cb,""),o.hasContent?o.data&&o.processData&&0===(o.contentType||"").indexOf("application/x-www-form-urlencoded")&&(o.data=o.data.replace(Bb,"+")):(n=o.url.slice(f.length),o.data&&(f+=(vb.test(f)?"&":"?")+o.data,delete o.data),o.cache===!1&&(f=f.replace(Db,"$1"),n=(vb.test(f)?"&":"?")+"_="+ub++ +n),o.url=f+n),o.ifModified&&(r.lastModified[f]&&y.setRequestHeader("If-Modified-Since",r.lastModified[f]),r.etag[f]&&y.setRequestHeader("If-None-Match",r.etag[f])),(o.data&&o.hasContent&&o.contentType!==!1||c.contentType)&&y.setRequestHeader("Content-Type",o.contentType),y.setRequestHeader("Accept",o.dataTypes[0]&&o.accepts[o.dataTypes[0]]?o.accepts[o.dataTypes[0]]+("*"!==o.dataTypes[0]?", "+Kb+"; q=0.01":""):o.accepts["*"]);for(m in o.headers)y.setRequestHeader(m,o.headers[m]);if(o.beforeSend&&(o.beforeSend.call(p,y,o)===!1||k))return y.abort();if(x="abort",t.add(o.complete),y.done(o.success),y.fail(o.error),e=Nb(Jb,o,c,y)){if(y.readyState=1,l&&q.trigger("ajaxSend",[y,o]),k)return y;o.async&&o.timeout>0&&(i=a.setTimeout(function(){y.abort("timeout")},o.timeout));try{k=!1,e.send(v,A)}catch(z){if(k)throw z;A(-1,z)}}else A(-1,"No Transport");function A(b,c,d,h){var j,m,n,v,w,x=c;k||(k=!0,i&&a.clearTimeout(i),e=void 0,g=h||"",y.readyState=b>0?4:0,j=b>=200&&b<300||304===b,d&&(v=Pb(o,y,d)),v=Qb(o,v,y,j),j?(o.ifModified&&(w=y.getResponseHeader("Last-Modified"),w&&(r.lastModified[f]=w),w=y.getResponseHeader("etag"),w&&(r.etag[f]=w)),204===b||"HEAD"===o.type?x="nocontent":304===b?x="notmodified":(x=v.state,m=v.data,n=v.error,j=!n)):(n=x,!b&&x||(x="error",b<0&&(b=0))),y.status=b,y.statusText=(c||x)+"",j?s.resolveWith(p,[m,x,y]):s.rejectWith(p,[y,x,n]),y.statusCode(u),u=void 0,l&&q.trigger(j?"ajaxSuccess":"ajaxError",[y,o,j?m:n]),t.fireWith(p,[y,x]),l&&(q.trigger("ajaxComplete",[y,o]),--r.active||r.event.trigger("ajaxStop")))}return y},getJSON:function(a,b,c){return r.get(a,b,c,"json")},getScript:function(a,b){return r.get(a,void 0,b,"script")}}),r.each(["get","post"],function(a,b){r[b]=function(a,c,d,e){return r.isFunction(c)&&(e=e||d,d=c,c=void 0),r.ajax(r.extend({url:a,type:b,dataType:e,data:c,success:d},r.isPlainObject(a)&&a))}}),r._evalUrl=function(a){return r.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},r.fn.extend({wrapAll:function(a){var b;return this[0]&&(r.isFunction(a)&&(a=a.call(this[0])),b=r(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this},wrapInner:function(a){return r.isFunction(a)?this.each(function(b){r(this).wrapInner(a.call(this,b))}):this.each(function(){var b=r(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=r.isFunction(a);return this.each(function(c){r(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){r(this).replaceWith(this.childNodes)}),this}}),r.expr.pseudos.hidden=function(a){return!r.expr.pseudos.visible(a)},r.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},r.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Rb={0:200,1223:204},Sb=r.ajaxSettings.xhr();o.cors=!!Sb&&"withCredentials"in Sb,o.ajax=Sb=!!Sb,r.ajaxTransport(function(b){var c,d;if(o.cors||Sb&&!b.crossDomain)return{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Rb[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}}),r.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),r.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return r.globalEval(a),a}}}),r.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),r.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(e,f){b=r("<script>").prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&f("error"===a.type?404:200,a.type)}),d.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Tb=[],Ub=/(=)\?(?=&|$)|\?\?/;r.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Tb.pop()||r.expando+"_"+ub++;return this[a]=!0,a}}),r.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Ub.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ub.test(b.data)&&"data");if(h||"jsonp"===b.dataTypes[0])return e=b.jsonpCallback=r.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Ub,"$1"+e):b.jsonp!==!1&&(b.url+=(vb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||r.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?r(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Tb.push(e)),g&&r.isFunction(f)&&f(g[0]),g=f=void 0}),"script"}),o.createHTMLDocument=function(){var a=d.implementation.createHTMLDocument("").body;return a.innerHTML="<form></form><form></form>",2===a.childNodes.length}(),r.parseHTML=function(a,b,c){if("string"!=typeof a)return[];"boolean"==typeof b&&(c=b,b=!1);var e,f,g;return b||(o.createHTMLDocument?(b=d.implementation.createHTMLDocument(""),e=b.createElement("base"),e.href=d.location.href,b.head.appendChild(e)):b=d),f=C.exec(a),g=!c&&[],f?[b.createElement(f[1])]:(f=qa([a],b,g),g&&g.length&&r(g).remove(),r.merge([],f.childNodes))},r.fn.load=function(a,b,c){var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=pb(a.slice(h)),a=a.slice(0,h)),r.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&r.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?r("<div>").append(r.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},r.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){r.fn[b]=function(a){return this.on(b,a)}}),r.expr.pseudos.animated=function(a){return r.grep(r.timers,function(b){return a===b.elem}).length},r.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=r.css(a,"position"),l=r(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=r.css(a,"top"),i=r.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),r.isFunction(b)&&(b=b.call(a,c,r.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},r.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){r.offset.setOffset(this,a,b)});var b,c,d,e,f=this[0];if(f)return f.getClientRects().length?(d=f.getBoundingClientRect(),b=f.ownerDocument,c=b.documentElement,e=b.defaultView,{top:d.top+e.pageYOffset-c.clientTop,left:d.left+e.pageXOffset-c.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===r.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),B(a[0],"html")||(d=a.offset()),d={top:d.top+r.css(a[0],"borderTopWidth",!0),left:d.left+r.css(a[0],"borderLeftWidth",!0)}),{top:b.top-d.top-r.css(c,"marginTop",!0),left:b.left-d.left-r.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&"static"===r.css(a,"position"))a=a.offsetParent;return a||ra})}}),r.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;r.fn[a]=function(d){return T(this,function(a,d,e){var f;return r.isWindow(a)?f=a:9===a.nodeType&&(f=a.defaultView),void 0===e?f?f[b]:a[d]:void(f?f.scrollTo(c?f.pageXOffset:e,c?e:f.pageYOffset):a[d]=e)},a,d,arguments.length)}}),r.each(["top","left"],function(a,b){r.cssHooks[b]=Pa(o.pixelPosition,function(a,c){if(c)return c=Oa(a,b),Ma.test(c)?r(a).position()[b]+"px":c})}),r.each({Height:"height",Width:"width"},function(a,b){r.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){r.fn[d]=function(e,f){var g=arguments.length&&(c||"boolean"!=typeof e),h=c||(e===!0||f===!0?"margin":"border");return T(this,function(b,c,e){var f;return r.isWindow(b)?0===d.indexOf("outer")?b["inner"+a]:b.document.documentElement["client"+a]:9===b.nodeType?(f=b.documentElement,Math.max(b.body["scroll"+a],f["scroll"+a],b.body["offset"+a],f["offset"+a],f["client"+a])):void 0===e?r.css(b,c,h):r.style(b,c,e,h)},b,g?e:void 0,g)}})}),r.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}}),r.holdReady=function(a){a?r.readyWait++:r.ready(!0)},r.isArray=Array.isArray,r.parseJSON=JSON.parse,r.nodeName=B,"function"==typeof define&&define.amd&&define("jquery",[],function(){return r});var Vb=a.jQuery,Wb=a.$;return r.noConflict=function(b){return a.$===r&&(a.$=Wb),b&&a.jQuery===r&&(a.jQuery=Vb),r},b||(a.jQuery=a.$=r),r});
Index: src/webapp/mapservice/src/static/lib/js/jquery.validate.min.js
===================================================================
--- src/webapp/mapservice/src/static/lib/js/jquery.validate.min.js	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/js/jquery.validate.min.js	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,4 @@
+/*! jQuery Validation Plugin - v1.16.0 - 12/2/2016
+ * http://jqueryvalidation.org/
+ * Copyright (c) 2016 Jörn Zaefferer; Licensed MIT */
+!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){a.extend(a.fn,{validate:function(b){if(!this.length)return void(b&&b.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var c=a.data(this[0],"validator");return c?c:(this.attr("novalidate","novalidate"),c=new a.validator(b,this[0]),a.data(this[0],"validator",c),c.settings.onsubmit&&(this.on("click.validate",":submit",function(b){c.settings.submitHandler&&(c.submitButton=b.target),a(this).hasClass("cancel")&&(c.cancelSubmit=!0),void 0!==a(this).attr("formnovalidate")&&(c.cancelSubmit=!0)}),this.on("submit.validate",function(b){function d(){var d,e;return!c.settings.submitHandler||(c.submitButton&&(d=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(a(c.submitButton).val()).appendTo(c.currentForm)),e=c.settings.submitHandler.call(c,c.currentForm,b),c.submitButton&&d.remove(),void 0!==e&&e)}return c.settings.debug&&b.preventDefault(),c.cancelSubmit?(c.cancelSubmit=!1,d()):c.form()?c.pendingRequest?(c.formSubmitted=!0,!1):d():(c.focusInvalid(),!1)})),c)},valid:function(){var b,c,d;return a(this[0]).is("form")?b=this.validate().form():(d=[],b=!0,c=a(this[0].form).validate(),this.each(function(){b=c.element(this)&&b,b||(d=d.concat(c.errorList))}),c.errorList=d),b},rules:function(b,c){var d,e,f,g,h,i,j=this[0];if(null!=j&&null!=j.form){if(b)switch(d=a.data(j.form,"validator").settings,e=d.rules,f=a.validator.staticRules(j),b){case"add":a.extend(f,a.validator.normalizeRule(c)),delete f.messages,e[j.name]=f,c.messages&&(d.messages[j.name]=a.extend(d.messages[j.name],c.messages));break;case"remove":return c?(i={},a.each(c.split(/\s/),function(b,c){i[c]=f[c],delete f[c],"required"===c&&a(j).removeAttr("aria-required")}),i):(delete e[j.name],f)}return g=a.validator.normalizeRules(a.extend({},a.validator.classRules(j),a.validator.attributeRules(j),a.validator.dataRules(j),a.validator.staticRules(j)),j),g.required&&(h=g.required,delete g.required,g=a.extend({required:h},g),a(j).attr("aria-required","true")),g.remote&&(h=g.remote,delete g.remote,g=a.extend(g,{remote:h})),g}}}),a.extend(a.expr.pseudos||a.expr[":"],{blank:function(b){return!a.trim(""+a(b).val())},filled:function(b){var c=a(b).val();return null!==c&&!!a.trim(""+c)},unchecked:function(b){return!a(b).prop("checked")}}),a.validator=function(b,c){this.settings=a.extend(!0,{},a.validator.defaults,b),this.currentForm=c,this.init()},a.validator.format=function(b,c){return 1===arguments.length?function(){var c=a.makeArray(arguments);return c.unshift(b),a.validator.format.apply(this,c)}:void 0===c?b:(arguments.length>2&&c.constructor!==Array&&(c=a.makeArray(arguments).slice(1)),c.constructor!==Array&&(c=[c]),a.each(c,function(a,c){b=b.replace(new RegExp("\\{"+a+"\\}","g"),function(){return c})}),b)},a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(a){this.lastActive=a,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(a)))},onfocusout:function(a){this.checkable(a)||!(a.name in this.submitted)&&this.optional(a)||this.element(a)},onkeyup:function(b,c){var d=[16,17,18,20,35,36,37,38,39,40,45,144,225];9===c.which&&""===this.elementValue(b)||a.inArray(c.keyCode,d)!==-1||(b.name in this.submitted||b.name in this.invalid)&&this.element(b)},onclick:function(a){a.name in this.submitted?this.element(a):a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).addClass(c).removeClass(d):a(b).addClass(c).removeClass(d)},unhighlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).removeClass(c).addClass(d):a(b).removeClass(c).addClass(d)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}."),step:a.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function b(b){!this.form&&this.hasAttribute("contenteditable")&&(this.form=a(this).closest("form")[0]);var c=a.data(this.form,"validator"),d="on"+b.type.replace(/^validate/,""),e=c.settings;e[d]&&!a(this).is(e.ignore)&&e[d].call(c,this,b)}this.labelContainer=a(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm),this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var c,d=this.groups={};a.each(this.settings.groups,function(b,c){"string"==typeof c&&(c=c.split(/\s/)),a.each(c,function(a,c){d[c]=b})}),c=this.settings.rules,a.each(c,function(b,d){c[b]=a.validator.normalizeRule(d)}),a(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",b).on("click.validate","select, option, [type='radio'], [type='checkbox']",b),this.settings.invalidHandler&&a(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler),a(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),a.extend(this.submitted,this.errorMap),this.invalid=a.extend({},this.errorMap),this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(b){var c,d,e=this.clean(b),f=this.validationTargetFor(e),g=this,h=!0;return void 0===f?delete this.invalid[e.name]:(this.prepareElement(f),this.currentElements=a(f),d=this.groups[f.name],d&&a.each(this.groups,function(a,b){b===d&&a!==f.name&&(e=g.validationTargetFor(g.clean(g.findByName(a))),e&&e.name in g.invalid&&(g.currentElements.push(e),h=g.check(e)&&h))}),c=this.check(f)!==!1,h=h&&c,c?this.invalid[f.name]=!1:this.invalid[f.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),a(b).attr("aria-invalid",!c)),h},showErrors:function(b){if(b){var c=this;a.extend(this.errorMap,b),this.errorList=a.map(this.errorMap,function(a,b){return{message:a,element:c.findByName(b)[0]}}),this.successList=a.grep(this.successList,function(a){return!(a.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var b=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(b)},resetElements:function(a){var b;if(this.settings.unhighlight)for(b=0;a[b];b++)this.settings.unhighlight.call(this,a[b],this.settings.errorClass,""),this.findByName(a[b].name).removeClass(this.settings.validClass);else a.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b,c=0;for(b in a)a[b]&&c++;return c},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(a){a.not(this.containers).text(""),this.addWrapper(a).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(b){}},findLastActive:function(){var b=this.lastActive;return b&&1===a.grep(this.errorList,function(a){return a.element.name===b.name}).length&&b},elements:function(){var b=this,c={};return a(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var d=this.name||a(this).attr("name");return!d&&b.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=a(this).closest("form")[0]),!(d in c||!b.objectLength(a(this).rules()))&&(c[d]=!0,!0)})},clean:function(b){return a(b)[0]},errors:function(){var b=this.settings.errorClass.split(" ").join(".");return a(this.settings.errorElement+"."+b,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=a([]),this.toHide=a([])},reset:function(){this.resetInternals(),this.currentElements=a([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset(),this.toHide=this.errorsFor(a)},elementValue:function(b){var c,d,e=a(b),f=b.type;return"radio"===f||"checkbox"===f?this.findByName(b.name).filter(":checked").val():"number"===f&&"undefined"!=typeof b.validity?b.validity.badInput?"NaN":e.val():(c=b.hasAttribute("contenteditable")?e.text():e.val(),"file"===f?"C:\\fakepath\\"===c.substr(0,12)?c.substr(12):(d=c.lastIndexOf("/"),d>=0?c.substr(d+1):(d=c.lastIndexOf("\\"),d>=0?c.substr(d+1):c)):"string"==typeof c?c.replace(/\r/g,""):c)},check:function(b){b=this.validationTargetFor(this.clean(b));var c,d,e,f=a(b).rules(),g=a.map(f,function(a,b){return b}).length,h=!1,i=this.elementValue(b);if("function"==typeof f.normalizer){if(i=f.normalizer.call(b,i),"string"!=typeof i)throw new TypeError("The normalizer should return a string value.");delete f.normalizer}for(d in f){e={method:d,parameters:f[d]};try{if(c=a.validator.methods[d].call(this,i,b,e.parameters),"dependency-mismatch"===c&&1===g){h=!0;continue}if(h=!1,"pending"===c)return void(this.toHide=this.toHide.not(this.errorsFor(b)));if(!c)return this.formatAndAdd(b,e),!1}catch(j){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+b.id+", check the '"+e.method+"' method.",j),j instanceof TypeError&&(j.message+=".  Exception occurred when checking element "+b.id+", check the '"+e.method+"' method."),j}}if(!h)return this.objectLength(f)&&this.successList.push(b),!0},customDataMessage:function(b,c){return a(b).data("msg"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase())||a(b).data("msg")},customMessage:function(a,b){var c=this.settings.messages[a];return c&&(c.constructor===String?c:c[b])},findDefined:function(){for(var a=0;a<arguments.length;a++)if(void 0!==arguments[a])return arguments[a]},defaultMessage:function(b,c){"string"==typeof c&&(c={method:c});var d=this.findDefined(this.customMessage(b.name,c.method),this.customDataMessage(b,c.method),!this.settings.ignoreTitle&&b.title||void 0,a.validator.messages[c.method],"<strong>Warning: No message defined for "+b.name+"</strong>"),e=/\$?\{(\d+)\}/g;return"function"==typeof d?d=d.call(this,c.parameters,b):e.test(d)&&(d=a.validator.format(d.replace(e,"{$1}"),c.parameters)),d},formatAndAdd:function(a,b){var c=this.defaultMessage(a,b);this.errorList.push({message:c,element:a,method:b.method}),this.errorMap[a.name]=c,this.submitted[a.name]=c},addWrapper:function(a){return this.settings.wrapper&&(a=a.add(a.parent(this.settings.wrapper))),a},defaultShowErrors:function(){var a,b,c;for(a=0;this.errorList[a];a++)c=this.errorList[a],this.settings.highlight&&this.settings.highlight.call(this,c.element,this.settings.errorClass,this.settings.validClass),this.showLabel(c.element,c.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight)for(a=0,b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(b,c){var d,e,f,g,h=this.errorsFor(b),i=this.idOrName(b),j=a(b).attr("aria-describedby");h.length?(h.removeClass(this.settings.validClass).addClass(this.settings.errorClass),h.html(c)):(h=a("<"+this.settings.errorElement+">").attr("id",i+"-error").addClass(this.settings.errorClass).html(c||""),d=h,this.settings.wrapper&&(d=h.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(d):this.settings.errorPlacement?this.settings.errorPlacement.call(this,d,a(b)):d.insertAfter(b),h.is("label")?h.attr("for",i):0===h.parents("label[for='"+this.escapeCssMeta(i)+"']").length&&(f=h.attr("id"),j?j.match(new RegExp("\\b"+this.escapeCssMeta(f)+"\\b"))||(j+=" "+f):j=f,a(b).attr("aria-describedby",j),e=this.groups[b.name],e&&(g=this,a.each(g.groups,function(b,c){c===e&&a("[name='"+g.escapeCssMeta(b)+"']",g.currentForm).attr("aria-describedby",h.attr("id"))})))),!c&&this.settings.success&&(h.text(""),"string"==typeof this.settings.success?h.addClass(this.settings.success):this.settings.success(h,b)),this.toShow=this.toShow.add(h)},errorsFor:function(b){var c=this.escapeCssMeta(this.idOrName(b)),d=a(b).attr("aria-describedby"),e="label[for='"+c+"'], label[for='"+c+"'] *";return d&&(e=e+", #"+this.escapeCssMeta(d).replace(/\s+/g,", #")),this.errors().filter(e)},escapeCssMeta:function(a){return a.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},validationTargetFor:function(b){return this.checkable(b)&&(b=this.findByName(b.name)),a(b).not(this.settings.ignore)[0]},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(b){return a(this.currentForm).find("[name='"+this.escapeCssMeta(b)+"']")},getLength:function(b,c){switch(c.nodeName.toLowerCase()){case"select":return a("option:selected",c).length;case"input":if(this.checkable(c))return this.findByName(c.name).filter(":checked").length}return b.length},depend:function(a,b){return!this.dependTypes[typeof a]||this.dependTypes[typeof a](a,b)},dependTypes:{"boolean":function(a){return a},string:function(b,c){return!!a(b,c.form).length},"function":function(a,b){return a(b)}},optional:function(b){var c=this.elementValue(b);return!a.validator.methods.required.call(this,c,b)&&"dependency-mismatch"},startRequest:function(b){this.pending[b.name]||(this.pendingRequest++,a(b).addClass(this.settings.pendingClass),this.pending[b.name]=!0)},stopRequest:function(b,c){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[b.name],a(b).removeClass(this.settings.pendingClass),c&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(a(this.currentForm).submit(),this.formSubmitted=!1):!c&&0===this.pendingRequest&&this.formSubmitted&&(a(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(b,c){return c="string"==typeof c&&c||"remote",a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:!0,message:this.defaultMessage(b,{method:c})})},destroy:function(){this.resetForm(),a(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(b,c){b.constructor===String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(b){var c={},d=a(b).attr("class");return d&&a.each(d.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(c,a.validator.classRuleSettings[this])}),c},normalizeAttributeRule:function(a,b,c,d){/min|max|step/.test(c)&&(null===b||/number|range|text/.test(b))&&(d=Number(d),isNaN(d)&&(d=void 0)),d||0===d?a[c]=d:b===c&&"range"!==b&&(a[c]=!0)},attributeRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)"required"===c?(d=b.getAttribute(c),""===d&&(d=!0),d=!!d):d=f.attr(c),this.normalizeAttributeRule(e,g,c,d);return e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)&&delete e.maxlength,e},dataRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)d=f.data("rule"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase()),this.normalizeAttributeRule(e,g,c,d);return e},staticRules:function(b){var c={},d=a.data(b.form,"validator");return d.settings.rules&&(c=a.validator.normalizeRule(d.settings.rules[b.name])||{}),c},normalizeRules:function(b,c){return a.each(b,function(d,e){if(e===!1)return void delete b[d];if(e.param||e.depends){var f=!0;switch(typeof e.depends){case"string":f=!!a(e.depends,c.form).length;break;case"function":f=e.depends.call(c,c)}f?b[d]=void 0===e.param||e.param:(a.data(c.form,"validator").resetElements(a(c)),delete b[d])}}),a.each(b,function(d,e){b[d]=a.isFunction(e)&&"normalizer"!==d?e(c):e}),a.each(["minlength","maxlength"],function(){b[this]&&(b[this]=Number(b[this]))}),a.each(["rangelength","range"],function(){var c;b[this]&&(a.isArray(b[this])?b[this]=[Number(b[this][0]),Number(b[this][1])]:"string"==typeof b[this]&&(c=b[this].replace(/[\[\]]/g,"").split(/[\s,]+/),b[this]=[Number(c[0]),Number(c[1])]))}),a.validator.autoCreateRanges&&(null!=b.min&&null!=b.max&&(b.range=[b.min,b.max],delete b.min,delete b.max),null!=b.minlength&&null!=b.maxlength&&(b.rangelength=[b.minlength,b.maxlength],delete b.minlength,delete b.maxlength)),b},normalizeRule:function(b){if("string"==typeof b){var c={};a.each(b.split(/\s/),function(){c[this]=!0}),b=c}return b},addMethod:function(b,c,d){a.validator.methods[b]=c,a.validator.messages[b]=void 0!==d?d:a.validator.messages[b],c.length<3&&a.validator.addClassRules(b,a.validator.normalizeRule(b))},methods:{required:function(b,c,d){if(!this.depend(d,c))return"dependency-mismatch";if("select"===c.nodeName.toLowerCase()){var e=a(c).val();return e&&e.length>0}return this.checkable(c)?this.getLength(b,c)>0:b.length>0},email:function(a,b){return this.optional(b)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(a)},url:function(a,b){return this.optional(b)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(a)},date:function(a,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(a).toString())},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(a)},number:function(a,b){return this.optional(b)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},minlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d},maxlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e<=d},rangelength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d[0]&&e<=d[1]},min:function(a,b,c){return this.optional(b)||a>=c},max:function(a,b,c){return this.optional(b)||a<=c},range:function(a,b,c){return this.optional(b)||a>=c[0]&&a<=c[1]},step:function(b,c,d){var e,f=a(c).attr("type"),g="Step attribute on input type "+f+" is not supported.",h=["text","number","range"],i=new RegExp("\\b"+f+"\\b"),j=f&&!i.test(h.join()),k=function(a){var b=(""+a).match(/(?:\.(\d+))?$/);return b&&b[1]?b[1].length:0},l=function(a){return Math.round(a*Math.pow(10,e))},m=!0;if(j)throw new Error(g);return e=k(d),(k(b)>e||l(b)%l(d)!==0)&&(m=!1),this.optional(c)||m},equalTo:function(b,c,d){var e=a(d);return this.settings.onfocusout&&e.not(".validate-equalTo-blur").length&&e.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){a(c).valid()}),b===e.val()},remote:function(b,c,d,e){if(this.optional(c))return"dependency-mismatch";e="string"==typeof e&&e||"remote";var f,g,h,i=this.previousValue(c,e);return this.settings.messages[c.name]||(this.settings.messages[c.name]={}),i.originalMessage=i.originalMessage||this.settings.messages[c.name][e],this.settings.messages[c.name][e]=i.message,d="string"==typeof d&&{url:d}||d,h=a.param(a.extend({data:b},d.data)),i.old===h?i.valid:(i.old=h,f=this,this.startRequest(c),g={},g[c.name]=b,a.ajax(a.extend(!0,{mode:"abort",port:"validate"+c.name,dataType:"json",data:g,context:f.currentForm,success:function(a){var d,g,h,j=a===!0||"true"===a;f.settings.messages[c.name][e]=i.originalMessage,j?(h=f.formSubmitted,f.resetInternals(),f.toHide=f.errorsFor(c),f.formSubmitted=h,f.successList.push(c),f.invalid[c.name]=!1,f.showErrors()):(d={},g=a||f.defaultMessage(c,{method:e,parameters:b}),d[c.name]=i.message=g,f.invalid[c.name]=!0,f.showErrors(d)),i.valid=j,f.stopRequest(c,j)}},d)),"pending")}}});var b,c={};return a.ajaxPrefilter?a.ajaxPrefilter(function(a,b,d){var e=a.port;"abort"===a.mode&&(c[e]&&c[e].abort(),c[e]=d)}):(b=a.ajax,a.ajax=function(d){var e=("mode"in d?d:a.ajaxSettings).mode,f=("port"in d?d:a.ajaxSettings).port;return"abort"===e?(c[f]&&c[f].abort(),c[f]=b.apply(this,arguments),c[f]):b.apply(this,arguments)}),a});
Index: src/webapp/mapservice/src/static/lib/js/js.cookie.js
===================================================================
--- src/webapp/mapservice/src/static/lib/js/js.cookie.js	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/js/js.cookie.js	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,165 @@
+/*!
+ * JavaScript Cookie v2.2.0
+ * https://github.com/js-cookie/js-cookie
+ *
+ * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
+ * Released under the MIT license
+ */
+;(function (factory) {
+	var registeredInModuleLoader = false;
+	if (typeof define === 'function' && define.amd) {
+		define(factory);
+		registeredInModuleLoader = true;
+	}
+	if (typeof exports === 'object') {
+		module.exports = factory();
+		registeredInModuleLoader = true;
+	}
+	if (!registeredInModuleLoader) {
+		var OldCookies = window.Cookies;
+		var api = window.Cookies = factory();
+		api.noConflict = function () {
+			window.Cookies = OldCookies;
+			return api;
+		};
+	}
+}(function () {
+	function extend () {
+		var i = 0;
+		var result = {};
+		for (; i < arguments.length; i++) {
+			var attributes = arguments[ i ];
+			for (var key in attributes) {
+				result[key] = attributes[key];
+			}
+		}
+		return result;
+	}
+
+	function init (converter) {
+		function api (key, value, attributes) {
+			var result;
+			if (typeof document === 'undefined') {
+				return;
+			}
+
+			// Write
+
+			if (arguments.length > 1) {
+				attributes = extend({
+					path: '/'
+				}, api.defaults, attributes);
+
+				if (typeof attributes.expires === 'number') {
+					var expires = new Date();
+					expires.setMilliseconds(expires.getMilliseconds() + attributes.expires * 864e+5);
+					attributes.expires = expires;
+				}
+
+				// We're using "expires" because "max-age" is not supported by IE
+				attributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';
+
+				try {
+					result = JSON.stringify(value);
+					if (/^[\{\[]/.test(result)) {
+						value = result;
+					}
+				} catch (e) {}
+
+				if (!converter.write) {
+					value = encodeURIComponent(String(value))
+						.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);
+				} else {
+					value = converter.write(value, key);
+				}
+
+				key = encodeURIComponent(String(key));
+				key = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent);
+				key = key.replace(/[\(\)]/g, escape);
+
+				var stringifiedAttributes = '';
+
+				for (var attributeName in attributes) {
+					if (!attributes[attributeName]) {
+						continue;
+					}
+					stringifiedAttributes += '; ' + attributeName;
+					if (attributes[attributeName] === true) {
+						continue;
+					}
+					stringifiedAttributes += '=' + attributes[attributeName];
+				}
+				return (document.cookie = key + '=' + value + stringifiedAttributes);
+			}
+
+			// Read
+
+			if (!key) {
+				result = {};
+			}
+
+			// To prevent the for loop in the first place assign an empty array
+			// in case there are no cookies at all. Also prevents odd result when
+			// calling "get()"
+			var cookies = document.cookie ? document.cookie.split('; ') : [];
+			var rdecode = /(%[0-9A-Z]{2})+/g;
+			var i = 0;
+
+			for (; i < cookies.length; i++) {
+				var parts = cookies[i].split('=');
+				var cookie = parts.slice(1).join('=');
+
+				if (!this.json && cookie.charAt(0) === '"') {
+					cookie = cookie.slice(1, -1);
+				}
+
+				try {
+					var name = parts[0].replace(rdecode, decodeURIComponent);
+					cookie = converter.read ?
+						converter.read(cookie, name) : converter(cookie, name) ||
+						cookie.replace(rdecode, decodeURIComponent);
+
+					if (this.json) {
+						try {
+							cookie = JSON.parse(cookie);
+						} catch (e) {}
+					}
+
+					if (key === name) {
+						result = cookie;
+						break;
+					}
+
+					if (!key) {
+						result[name] = cookie;
+					}
+				} catch (e) {}
+			}
+
+			return result;
+		}
+
+		api.set = api;
+		api.get = function (key) {
+			return api.call(api, key);
+		};
+		api.getJSON = function () {
+			return api.apply({
+				json: true
+			}, [].slice.call(arguments));
+		};
+		api.defaults = {};
+
+		api.remove = function (key, attributes) {
+			api(key, '', extend(attributes, {
+				expires: -1
+			}));
+		};
+
+		api.withConverter = init;
+
+		return api;
+	}
+
+	return init(function () {});
+}));
Index: src/webapp/mapservice/src/static/lib/js/leaflet.hotline.min.js
===================================================================
--- src/webapp/mapservice/src/static/lib/js/leaflet.hotline.min.js	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/js/leaflet.hotline.min.js	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,6 @@
+/*
+ (c) 2017, iosphere GmbH
+ Leaflet.hotline, a Leaflet plugin for drawing gradients along polylines.
+ https://github.com/iosphere/Leaflet.hotline/
+*/
+!function(t,i){"function"==typeof define&&define.amd?define(["leaflet"],i):"object"==typeof exports?module.exports=i:i(t.L)}(this,function(t){if(t.Hotline)return t;var i=function(t){if(!(this instanceof i))return new i(t);var e={0:"green",.5:"yellow",1:"red"};this._canvas=t="string"==typeof t?document.getElementById(t):t,this._ctx=t.getContext("2d"),this._width=t.width,this._height=t.height,this._weight=5,this._outlineWidth=1,this._outlineColor="black",this._min=0,this._max=1,this._data=[],this.palette(e)};i.prototype={width:function(t){return this._width=t,this},height:function(t){return this._height=t,this},weight:function(t){return this._weight=t,this},outlineWidth:function(t){return this._outlineWidth=t,this},outlineColor:function(t){return this._outlineColor=t,this},palette:function(t){var i=document.createElement("canvas"),e=i.getContext("2d"),n=e.createLinearGradient(0,0,0,256);i.width=1,i.height=256;for(var o in t)n.addColorStop(o,t[o]);return e.fillStyle=n,e.fillRect(0,0,1,256),this._palette=e.getImageData(0,0,1,256).data,this},min:function(t){return this._min=t,this},max:function(t){return this._max=t,this},data:function(t){return this._data=t,this},add:function(t){return this._data.push(t),this},draw:function(){var t=this._ctx;return t.globalCompositeOperation="source-over",t.lineCap="round",this._drawOutline(t),this._drawHotline(t),this},getRGBForValue:function(t){var i=Math.min(Math.max((t-this._min)/((this._max-this._min) || 1),0),.999),e=4*Math.floor(256*i);return[this._palette[e],this._palette[e+1],this._palette[e+2]]},_drawOutline:function(t){var i,e,n,o,h,r,s;if(this._outlineWidth)for(i=0,n=this._data.length;i<n;i++)for(o=this._data[i],t.lineWidth=this._weight+2*this._outlineWidth,e=1,h=o.length;e<h;e++)r=o[e-1],s=o[e],t.strokeStyle=this._outlineColor,t.beginPath(),t.moveTo(r.x,r.y),t.lineTo(s.x,s.y),t.stroke()},_drawHotline:function(t){var i,e,n,o,h,r,s,l,a,u;for(t.lineWidth=this._weight,i=0,n=this._data.length;i<n;i++)for(o=this._data[i],e=1,h=o.length;e<h;e++)r=o[e-1],s=o[e],l=t.createLinearGradient(r.x,r.y,s.x,s.y),a=this.getRGBForValue(r.z),u=this.getRGBForValue(s.z),l.addColorStop(0,"rgb("+a.join(",")+")"),l.addColorStop(1,"rgb("+u.join(",")+")"),t.strokeStyle=l,t.beginPath(),t.moveTo(r.x,r.y),t.lineTo(s.x,s.y),t.stroke()}};var e=t.Canvas.extend({_initContainer:function(){t.Canvas.prototype._initContainer.call(this),this._hotline=new i(this._container)},_update:function(){t.Canvas.prototype._update.call(this),this._hotline.width(this._container.width),this._hotline.height(this._container.height)},_updatePoly:function(t){if(this._drawing){var i=t._parts;i.length&&(this._updateOptions(t),this._hotline.data(i).draw())}},_updateOptions:function(t){null!=t.options.min&&this._hotline.min(t.options.min),null!=t.options.max&&this._hotline.max(t.options.max),null!=t.options.weight&&this._hotline.weight(t.options.weight),null!=t.options.outlineWidth&&this._hotline.outlineWidth(t.options.outlineWidth),null!=t.options.outlineColor&&this._hotline.outlineColor(t.options.outlineColor),t.options.palette&&this._hotline.palette(t.options.palette)}}),n=function(i){return t.Browser.canvas?new e(i):null},o={clipSegment:function(i,e,n,o,h){var r,s,l,a=o?this._lastCode:t.LineUtil._getBitCode(i,n),u=t.LineUtil._getBitCode(e,n);for(this._lastCode=u;;){if(!(a|u))return[i,e];if(a&u)return!1;r=a||u,s=t.LineUtil._getEdgeIntersection(i,e,r,n,h),l=t.LineUtil._getBitCode(s,n),r===a?(s.z=i.z,i=s,a=l):(s.z=e.z,e=s,u=l)}}};return t.Hotline=t.Polyline.extend({statics:{Renderer:e,renderer:n},options:{renderer:n(),min:0,max:1,palette:{0:"green",.5:"yellow",1:"red"},weight:5,outlineColor:"black",outlineWidth:1},getRGBForValue:function(t){return this._renderer._hotline.getRGBForValue(t)},_projectLatlngs:function(i,e,n){var o,h,r=i[0]instanceof t.LatLng,s=i.length;if(r){for(h=[],o=0;o<s;o++)h[o]=this._map.latLngToLayerPoint(i[o]),h[o].z=i[o].alt,n.extend(h[o]);e.push(h)}else for(o=0;o<s;o++)this._projectLatlngs(i[o],e,n)},_clipPoints:function(){if(this.options.noClip)return void(this._parts=this._rings);this._parts=[];var t,i,e,n,h,r,s,l=this._parts,a=this._renderer._bounds;for(t=0,e=0,n=this._rings.length;t<n;t++)for(s=this._rings[t],i=0,h=s.length;i<h-1;i++)r=o.clipSegment(s[i],s[i+1],a,i,!0),r&&(l[e]=l[e]||[],l[e].push(r[0]),r[1]===s[i+1]&&i!==h-2||(l[e].push(r[1]),e++))},_clickTolerance:function(){return this.options.weight/2+this.options.outlineWidth+(t.Browser.touch?10:0)}}),t.hotline=function(i,e){return new t.Hotline(i,e)},t});
Index: src/webapp/mapservice/src/static/lib/js/leaflet.js
===================================================================
--- src/webapp/mapservice/src/static/lib/js/leaflet.js	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/static/lib/js/leaflet.js	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,6 @@
+!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i(t.L=t.L||{})}(this,function(t){"use strict";function i(t){var i,e,n,o;for(e=1,n=arguments.length;e<n;e++){o=arguments[e];for(i in o)t[i]=o[i]}return t}function e(t,i){var e=Array.prototype.slice;if(t.bind)return t.bind.apply(t,e.call(arguments,1));var n=e.call(arguments,2);return function(){return t.apply(i,n.length?n.concat(e.call(arguments)):arguments)}}function n(t){return t._leaflet_id=t._leaflet_id||++di,t._leaflet_id}function o(t,i,e){var n,o,s,r;return r=function(){n=!1,o&&(s.apply(e,o),o=!1)},s=function(){n?o=arguments:(t.apply(e,arguments),setTimeout(r,i),n=!0)}}function s(t,i,e){var n=i[1],o=i[0],s=n-o;return t===n&&e?t:((t-o)%s+s)%s+o}function r(){return!1}function a(t,i){var e=Math.pow(10,i||5);return Math.round(t*e)/e}function h(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function u(t){return h(t).split(/\s+/)}function l(t,i){t.hasOwnProperty("options")||(t.options=t.options?_i(t.options):{});for(var e in i)t.options[e]=i[e];return t.options}function c(t,i,e){var n=[];for(var o in t)n.push(encodeURIComponent(e?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(i&&i.indexOf("?")!==-1?"&":"?")+n.join("&")}function _(t,i){return t.replace(pi,function(t,e){var n=i[e];if(void 0===n)throw new Error("No value provided for variable "+t);return"function"==typeof n&&(n=n(i)),n})}function d(t,i){for(var e=0;e<t.length;e++)if(t[e]===i)return e;return-1}function p(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}function m(t){var i=+new Date,e=Math.max(0,16-(i-gi));return gi=i+e,window.setTimeout(t,e)}function f(t,i,n){return n&&vi===m?void t.call(i):vi.call(window,e(t,i))}function g(t){t&&yi.call(window,t)}function v(){}function y(t){if(L&&L.Mixin){t=mi(t)?t:[t];for(var i=0;i<t.length;i++)t[i]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}function x(t,i,e){this.x=e?Math.round(t):t,this.y=e?Math.round(i):i}function w(t,i,e){return t instanceof x?t:mi(t)?new x(t[0],t[1]):void 0===t||null===t?t:"object"==typeof t&&"x"in t&&"y"in t?new x(t.x,t.y):new x(t,i,e)}function P(t,i){if(t)for(var e=i?[t,i]:t,n=0,o=e.length;n<o;n++)this.extend(e[n])}function b(t,i){return!t||t instanceof P?t:new P(t,i)}function T(t,i){if(t)for(var e=i?[t,i]:t,n=0,o=e.length;n<o;n++)this.extend(e[n])}function z(t,i){return t instanceof T?t:new T(t,i)}function M(t,i,e){if(isNaN(t)||isNaN(i))throw new Error("Invalid LatLng object: ("+t+", "+i+")");this.lat=+t,this.lng=+i,void 0!==e&&(this.alt=+e)}function C(t,i,e){return t instanceof M?t:mi(t)&&"object"!=typeof t[0]?3===t.length?new M(t[0],t[1],t[2]):2===t.length?new M(t[0],t[1]):null:void 0===t||null===t?t:"object"==typeof t&&"lat"in t?new M(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===i?null:new M(t,i,e)}function Z(t,i,e,n){return mi(t)?(this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3])):(this._a=t,this._b=i,this._c=e,void(this._d=n))}function E(t,i,e,n){return new Z(t,i,e,n)}function S(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function k(t,i){var e,n,o,s,r,a,h="";for(e=0,o=t.length;e<o;e++){for(r=t[e],n=0,s=r.length;n<s;n++)a=r[n],h+=(n?"L":"M")+a.x+" "+a.y;h+=i?re?"z":"x":""}return h||"M0 0"}function B(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}function I(t,i,e,n){return"touchstart"===i?O(t,e,n):"touchmove"===i?W(t,e,n):"touchend"===i&&H(t,e,n),this}function A(t,i,e){var n=t["_leaflet_"+i+e];return"touchstart"===i?t.removeEventListener(ue,n,!1):"touchmove"===i?t.removeEventListener(le,n,!1):"touchend"===i&&(t.removeEventListener(ce,n,!1),t.removeEventListener(_e,n,!1)),this}function O(t,i,n){var o=e(function(t){if("mouse"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE){if(!(de.indexOf(t.target.tagName)<0))return;$(t)}j(t,i)});t["_leaflet_touchstart"+n]=o,t.addEventListener(ue,o,!1),me||(document.documentElement.addEventListener(ue,R,!0),document.documentElement.addEventListener(le,D,!0),document.documentElement.addEventListener(ce,N,!0),document.documentElement.addEventListener(_e,N,!0),me=!0)}function R(t){pe[t.pointerId]=t,fe++}function D(t){pe[t.pointerId]&&(pe[t.pointerId]=t)}function N(t){delete pe[t.pointerId],fe--}function j(t,i){t.touches=[];for(var e in pe)t.touches.push(pe[e]);t.changedTouches=[t],i(t)}function W(t,i,e){var n=function(t){(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&"mouse"!==t.pointerType||0!==t.buttons)&&j(t,i)};t["_leaflet_touchmove"+e]=n,t.addEventListener(le,n,!1)}function H(t,i,e){var n=function(t){j(t,i)};t["_leaflet_touchend"+e]=n,t.addEventListener(ce,n,!1),t.addEventListener(_e,n,!1)}function F(t,i,e){function n(t){var i;if(te){if(!Ai||"mouse"===t.pointerType)return;i=fe}else i=t.touches.length;if(!(i>1)){var e=Date.now(),n=e-(s||e);r=t.touches?t.touches[0]:t,a=n>0&&n<=h,s=e}}function o(t){if(a&&!r.cancelBubble){if(te){if(!Ai||"mouse"===t.pointerType)return;var e,n,o={};for(n in r)e=r[n],o[n]=e&&e.bind?e.bind(r):e;r=o}r.type="dblclick",i(r),s=null}}var s,r,a=!1,h=250;return t[ye+ge+e]=n,t[ye+ve+e]=o,t[ye+"dblclick"+e]=i,t.addEventListener(ge,n,!1),t.addEventListener(ve,o,!1),t.addEventListener("dblclick",i,!1),this}function U(t,i){var e=t[ye+ge+i],n=t[ye+ve+i],o=t[ye+"dblclick"+i];return t.removeEventListener(ge,e,!1),t.removeEventListener(ve,n,!1),Ai||t.removeEventListener("dblclick",o,!1),this}function V(t,i,e,n){if("object"==typeof i)for(var o in i)q(t,o,i[o],e);else{i=u(i);for(var s=0,r=i.length;s<r;s++)q(t,i[s],e,n)}return this}function G(t,i,e,n){if("object"==typeof i)for(var o in i)K(t,o,i[o],e);else if(i){i=u(i);for(var s=0,r=i.length;s<r;s++)K(t,i[s],e,n)}else{for(var a in t[xe])K(t,a,t[xe][a]);delete t[xe]}}function q(t,i,e,o){var s=i+n(e)+(o?"_"+n(o):"");if(t[xe]&&t[xe][s])return this;var r=function(i){return e.call(o||t,i||window.event)},a=r;te&&0===i.indexOf("touch")?I(t,i,r,s):!ie||"dblclick"!==i||!F||te&&ji?"addEventListener"in t?"mousewheel"===i?t.addEventListener("onwheel"in t?"wheel":"mousewheel",r,!1):"mouseenter"===i||"mouseleave"===i?(r=function(i){i=i||window.event,ot(t,i)&&a(i)},t.addEventListener("mouseenter"===i?"mouseover":"mouseout",r,!1)):("click"===i&&Ri&&(r=function(t){st(t,a)}),t.addEventListener(i,r,!1)):"attachEvent"in t&&t.attachEvent("on"+i,r):F(t,r,s),t[xe]=t[xe]||{},t[xe][s]=r}function K(t,i,e,o){var s=i+n(e)+(o?"_"+n(o):""),r=t[xe]&&t[xe][s];return r?(te&&0===i.indexOf("touch")?A(t,i,s):ie&&"dblclick"===i&&U?U(t,s):"removeEventListener"in t?"mousewheel"===i?t.removeEventListener("onwheel"in t?"wheel":"mousewheel",r,!1):t.removeEventListener("mouseenter"===i?"mouseover":"mouseleave"===i?"mouseout":i,r,!1):"detachEvent"in t&&t.detachEvent("on"+i,r),void(t[xe][s]=null)):this}function Y(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,nt(t),this}function X(t){return q(t,"mousewheel",Y)}function J(t){return V(t,"mousedown touchstart dblclick",Y),q(t,"click",et),this}function $(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Q(t){return $(t),Y(t),this}function tt(t,i){if(!i)return new x(t.clientX,t.clientY);var e=i.getBoundingClientRect();return new x(t.clientX-e.left-i.clientLeft,t.clientY-e.top-i.clientTop)}function it(t){return Ai?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/we:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function et(t){Le[t.type]=!0}function nt(t){var i=Le[t.type];return Le[t.type]=!1,i}function ot(t,i){var e=i.relatedTarget;if(!e)return!0;try{for(;e&&e!==t;)e=e.parentNode}catch(t){return!1}return e!==t}function st(t,i){var e=t.timeStamp||t.originalEvent&&t.originalEvent.timeStamp,n=zi&&e-zi;return n&&n>100&&n<500||t.target._simulatedClick&&!t._simulated?void Q(t):(zi=e,void i(t))}function rt(t){return"string"==typeof t?document.getElementById(t):t}function at(t,i){var e=t.style[i]||t.currentStyle&&t.currentStyle[i];if((!e||"auto"===e)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);e=n?n[i]:null}return"auto"===e?null:e}function ht(t,i,e){var n=document.createElement(t);return n.className=i||"",e&&e.appendChild(n),n}function ut(t){var i=t.parentNode;i&&i.removeChild(t)}function lt(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ct(t){var i=t.parentNode;i.lastChild!==t&&i.appendChild(t)}function _t(t){var i=t.parentNode;i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function dt(t,i){if(void 0!==t.classList)return t.classList.contains(i);var e=gt(t);return e.length>0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(e)}function pt(t,i){if(void 0!==t.classList)for(var e=u(i),n=0,o=e.length;n<o;n++)t.classList.add(e[n]);else if(!dt(t,i)){var s=gt(t);ft(t,(s?s+" ":"")+i)}}function mt(t,i){void 0!==t.classList?t.classList.remove(i):ft(t,h((" "+gt(t)+" ").replace(" "+i+" "," ")))}function ft(t,i){void 0===t.className.baseVal?t.className=i:t.className.baseVal=i}function gt(t){return void 0===t.className.baseVal?t.className:t.className.baseVal}function vt(t,i){"opacity"in t.style?t.style.opacity=i:"filter"in t.style&&yt(t,i)}function yt(t,i){var e=!1,n="DXImageTransform.Microsoft.Alpha";try{e=t.filters.item(n)}catch(t){if(1===i)return}i=Math.round(100*i),e?(e.Enabled=100!==i,e.Opacity=i):t.style.filter+=" progid:"+n+"(opacity="+i+")"}function xt(t){for(var i=document.documentElement.style,e=0;e<t.length;e++)if(t[e]in i)return t[e];return!1}function wt(t,i,e){var n=i||new x(0,0);t.style[be]=(Gi?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(e?" scale("+e+")":"")}function Lt(t,i){t._leaflet_pos=i,Yi?wt(t,i):(t.style.left=i.x+"px",t.style.top=i.y+"px")}function Pt(t){return t._leaflet_pos||new x(0,0)}function bt(){V(window,"dragstart",$)}function Tt(){G(window,"dragstart",$)}function zt(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(Mt(),Ce=t,Ze=t.style.outline,t.style.outline="none",V(window,"keydown",Mt))}function Mt(){Ce&&(Ce.style.outline=Ze,Ce=void 0,Ze=void 0,G(window,"keydown",Mt))}function Ct(t,i){return new ke(t,i)}function Zt(t,i){if(!i||!t.length)return t.slice();var e=i*i;return t=It(t,e),t=kt(t,e)}function Et(t,i,e){return Math.sqrt(Nt(t,i,e,!0))}function St(t,i,e){return Nt(t,i,e)}function kt(t,i){var e=t.length,n=typeof Uint8Array!=void 0+""?Uint8Array:Array,o=new n(e);o[0]=o[e-1]=1,Bt(t,o,i,0,e-1);var s,r=[];for(s=0;s<e;s++)o[s]&&r.push(t[s]);return r}function Bt(t,i,e,n,o){var s,r,a,h=0;for(r=n+1;r<=o-1;r++)a=Nt(t[r],t[n],t[o],!0),a>h&&(s=r,h=a);h>e&&(i[s]=1,Bt(t,i,e,n,s),Bt(t,i,e,s,o))}function It(t,i){for(var e=[t[0]],n=1,o=0,s=t.length;n<s;n++)Dt(t[n],t[o])>i&&(e.push(t[n]),o=n);return o<s-1&&e.push(t[s-1]),e}function At(t,i,e,n,o){var s,r,a,h=n?Fe:Rt(t,e),u=Rt(i,e);for(Fe=u;;){if(!(h|u))return[t,i];if(h&u)return!1;s=h||u,r=Ot(t,i,s,e,o),a=Rt(r,e),s===h?(t=r,h=a):(i=r,u=a)}}function Ot(t,i,e,n,o){var s,r,a=i.x-t.x,h=i.y-t.y,u=n.min,l=n.max;return 8&e?(s=t.x+a*(l.y-t.y)/h,r=l.y):4&e?(s=t.x+a*(u.y-t.y)/h,r=u.y):2&e?(s=l.x,r=t.y+h*(l.x-t.x)/a):1&e&&(s=u.x,r=t.y+h*(u.x-t.x)/a),new x(s,r,o)}function Rt(t,i){var e=0;return t.x<i.min.x?e|=1:t.x>i.max.x&&(e|=2),t.y<i.min.y?e|=4:t.y>i.max.y&&(e|=8),e}function Dt(t,i){var e=i.x-t.x,n=i.y-t.y;return e*e+n*n}function Nt(t,i,e,n){var o,s=i.x,r=i.y,a=e.x-s,h=e.y-r,u=a*a+h*h;return u>0&&(o=((t.x-s)*a+(t.y-r)*h)/u,o>1?(s=e.x,r=e.y):o>0&&(s+=a*o,r+=h*o)),a=t.x-s,h=t.y-r,n?a*a+h*h:new x(s,r)}function jt(t){return!mi(t[0])||"object"!=typeof t[0][0]&&"undefined"!=typeof t[0][0]}function Wt(t,i,e){var n,o,s,r,a,h,u,l,c,_=[1,4,2,8];for(o=0,u=t.length;o<u;o++)t[o]._code=Rt(t[o],i);for(r=0;r<4;r++){for(l=_[r],n=[],o=0,u=t.length,s=u-1;o<u;s=o++)a=t[o],h=t[s],a._code&l?h._code&l||(c=Ot(h,a,l,i,e),c._code=Rt(c,i),n.push(c)):(h._code&l&&(c=Ot(h,a,l,i,e),c._code=Rt(c,i),n.push(c)),n.push(a));t=n}return t}function Ht(t){return new cn(t)}function Ft(t,i){return new pn(t,i)}function Ut(t,i){return new fn(t,i)}function Vt(t,i,e){return new gn(t,i,e)}function Gt(t,i){return new vn(t,i)}function qt(t,i){return new yn(t,i)}function Kt(t,i){var e,n,o,s,r="Feature"===t.type?t.geometry:t,a=r?r.coordinates:null,h=[],u=i&&i.pointToLayer,l=i&&i.coordsToLatLng||Yt;if(!a&&!r)return null;switch(r.type){case"Point":return e=l(a),u?u(t,e):new pn(e);case"MultiPoint":for(o=0,s=a.length;o<s;o++)e=l(a[o]),h.push(u?u(t,e):new pn(e));return new un(h);case"LineString":case"MultiLineString":return n=Xt(a,"LineString"===r.type?0:1,l),new vn(n,i);case"Polygon":case"MultiPolygon":return n=Xt(a,"Polygon"===r.type?1:2,l),new yn(n,i);case"GeometryCollection":for(o=0,s=r.geometries.length;o<s;o++){var c=Kt({geometry:r.geometries[o],type:"Feature",properties:t.properties},i);c&&h.push(c)}return new un(h);default:throw new Error("Invalid GeoJSON object.")}}function Yt(t){return new M(t[1],t[0],t[2])}function Xt(t,i,e){for(var n,o=[],s=0,r=t.length;s<r;s++)n=i?Xt(t[s],i-1,e):(e||Yt)(t[s]),o.push(n);return o}function Jt(t,i){return i="number"==typeof i?i:6,void 0!==t.alt?[a(t.lng,i),a(t.lat,i),a(t.alt,i)]:[a(t.lng,i),a(t.lat,i)]}function $t(t,i,e,n){for(var o=[],s=0,r=t.length;s<r;s++)o.push(i?$t(t[s],i-1,e,n):Jt(t[s],n));return!i&&e&&o.push(o[0]),o}function Qt(t,e){return t.feature?i({},t.feature,{geometry:e}):ti(e)}function ti(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}function ii(t,i){return new xn(t,i)}function ei(t,i,e){return new Tn(t,i,e)}function ni(t){return new Sn(t)}function oi(t){return new kn(t)}function si(t,i){return new Bn(t,i)}function ri(t,i){return new In(t,i)}function ai(t){return se?new On(t):null}function hi(t){return re||ae?new jn(t):null}function ui(t,i){return new Wn(t,i)}function li(){return window.L=Yn,this}var ci="1.1.0+HEAD.a3a7e04",_i=Object.create||function(){function t(){}return function(i){return t.prototype=i,new t}}(),di=0,pi=/\{ *([\w_\-]+) *\}/g,mi=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},fi="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",gi=0,vi=window.requestAnimationFrame||p("RequestAnimationFrame")||m,yi=window.cancelAnimationFrame||p("CancelAnimationFrame")||p("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)},xi=(Object.freeze||Object)({extend:i,create:_i,bind:e,lastId:di,stamp:n,throttle:o,wrapNum:s,falseFn:r,formatNum:a,trim:h,splitWords:u,setOptions:l,getParamString:c,template:_,isArray:mi,indexOf:d,emptyImageUrl:fi,requestFn:vi,cancelFn:yi,requestAnimFrame:f,cancelAnimFrame:g});v.extend=function(t){var e=function(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},n=e.__super__=this.prototype,o=_i(n);o.constructor=e,e.prototype=o;for(var s in this)this.hasOwnProperty(s)&&"prototype"!==s&&"__super__"!==s&&(e[s]=this[s]);return t.statics&&(i(e,t.statics),delete t.statics),t.includes&&(y(t.includes),i.apply(null,[o].concat(t.includes)),delete t.includes),o.options&&(t.options=i(_i(o.options),t.options)),i(o,t),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){n.callInitHooks&&n.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,i=o._initHooks.length;t<i;t++)o._initHooks[t].call(this)}},e},v.include=function(t){return i(this.prototype,t),this},v.mergeOptions=function(t){return i(this.prototype.options,t),this},v.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1),e="function"==typeof t?t:function(){this[t].apply(this,i)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(e),this};var wi={on:function(t,i,e){if("object"==typeof t)for(var n in t)this._on(n,t[n],i);else{t=u(t);for(var o=0,s=t.length;o<s;o++)this._on(t[o],i,e)}return this},off:function(t,i,e){if(t)if("object"==typeof t)for(var n in t)this._off(n,t[n],i);else{t=u(t);for(var o=0,s=t.length;o<s;o++)this._off(t[o],i,e)}else delete this._events;return this},_on:function(t,i,e){this._events=this._events||{};var n=this._events[t];n||(n=[],this._events[t]=n),e===this&&(e=void 0);for(var o={fn:i,ctx:e},s=n,r=0,a=s.length;r<a;r++)if(s[r].fn===i&&s[r].ctx===e)return;s.push(o)},_off:function(t,i,e){var n,o,s;if(this._events&&(n=this._events[t])){if(!i){for(o=0,s=n.length;o<s;o++)n[o].fn=r;return void delete this._events[t]}if(e===this&&(e=void 0),n)for(o=0,s=n.length;o<s;o++){var a=n[o];if(a.ctx===e&&a.fn===i)return a.fn=r,this._firingCount&&(this._events[t]=n=n.slice()),void n.splice(o,1)}}},fire:function(t,e,n){if(!this.listens(t,n))return this;var o=i({},e,{type:t,target:this});if(this._events){var s=this._events[t];if(s){this._firingCount=this._firingCount+1||1;for(var r=0,a=s.length;r<a;r++){var h=s[r];h.fn.call(h.ctx||this,o)}this._firingCount--}}return n&&this._propagateEvent(o),this},listens:function(t,i){var e=this._events&&this._events[t];if(e&&e.length)return!0;if(i)for(var n in this._eventParents)if(this._eventParents[n].listens(t,i))return!0;return!1},once:function(t,i,n){if("object"==typeof t){for(var o in t)this.once(o,t[o],i);return this}var s=e(function(){this.off(t,i,n).off(t,s,n)},this);return this.on(t,i,n).on(t,s,n)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[n(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[n(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,i({layer:t.target},t),!0)}};wi.addEventListener=wi.on,wi.removeEventListener=wi.clearAllEventListeners=wi.off,wi.addOneTimeEventListener=wi.once,wi.fireEvent=wi.fire,wi.hasEventListeners=wi.listens;var Li=v.extend(wi);x.prototype={clone:function(){return new x(this.x,this.y)},add:function(t){return this.clone()._add(w(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(w(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new x(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new x(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},distanceTo:function(t){t=w(t);var i=t.x-this.x,e=t.y-this.y;return Math.sqrt(i*i+e*e)},equals:function(t){return t=w(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=w(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+a(this.x)+", "+a(this.y)+")"}},P.prototype={extend:function(t){return t=w(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new x((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new x(this.min.x,this.max.y)},getTopRight:function(){return new x(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var i,e;return t="number"==typeof t[0]||t instanceof x?w(t):b(t),t instanceof P?(i=t.min,e=t.max):i=e=t,i.x>=this.min.x&&e.x<=this.max.x&&i.y>=this.min.y&&e.y<=this.max.y},intersects:function(t){t=b(t);var i=this.min,e=this.max,n=t.min,o=t.max,s=o.x>=i.x&&n.x<=e.x,r=o.y>=i.y&&n.y<=e.y;return s&&r},overlaps:function(t){t=b(t);var i=this.min,e=this.max,n=t.min,o=t.max,s=o.x>i.x&&n.x<e.x,r=o.y>i.y&&n.y<e.y;return s&&r},isValid:function(){return!(!this.min||!this.max)}},T.prototype={extend:function(t){var i,e,n=this._southWest,o=this._northEast;if(t instanceof M)i=t,e=t;else{if(!(t instanceof T))return t?this.extend(C(t)||z(t)):this;if(i=t._southWest,e=t._northEast,!i||!e)return this}return n||o?(n.lat=Math.min(i.lat,n.lat),n.lng=Math.min(i.lng,n.lng),o.lat=Math.max(e.lat,o.lat),o.lng=Math.max(e.lng,o.lng)):(this._southWest=new M(i.lat,i.lng),this._northEast=new M(e.lat,e.lng)),this},pad:function(t){var i=this._southWest,e=this._northEast,n=Math.abs(i.lat-e.lat)*t,o=Math.abs(i.lng-e.lng)*t;return new T(new M(i.lat-n,i.lng-o),new M(e.lat+n,e.lng+o))},getCenter:function(){return new M((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new M(this.getNorth(),this.getWest())},getSouthEast:function(){return new M(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof M||"lat"in t?C(t):z(t);var i,e,n=this._southWest,o=this._northEast;return t instanceof T?(i=t.getSouthWest(),e=t.getNorthEast()):i=e=t,i.lat>=n.lat&&e.lat<=o.lat&&i.lng>=n.lng&&e.lng<=o.lng},intersects:function(t){t=z(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=i.lat&&n.lat<=e.lat,r=o.lng>=i.lng&&n.lng<=e.lng;return s&&r},overlaps:function(t){t=z(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>i.lat&&n.lat<e.lat,r=o.lng>i.lng&&n.lng<e.lng;return s&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,i){return!!t&&(t=z(t),this._southWest.equals(t.getSouthWest(),i)&&this._northEast.equals(t.getNorthEast(),i))},isValid:function(){return!(!this._southWest||!this._northEast)}},M.prototype={equals:function(t,i){if(!t)return!1;t=C(t);var e=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return e<=(void 0===i?1e-9:i)},toString:function(t){return"LatLng("+a(this.lat,t)+", "+a(this.lng,t)+")"},distanceTo:function(t){return bi.distance(this,C(t))},wrap:function(){return bi.wrapLatLng(this)},toBounds:function(t){var i=180*t/40075017,e=i/Math.cos(Math.PI/180*this.lat);return z([this.lat-i,this.lng-e],[this.lat+i,this.lng+e])},clone:function(){return new M(this.lat,this.lng,this.alt)}};var Pi={latLngToPoint:function(t,i){var e=this.projection.project(t),n=this.scale(i);return this.transformation._transform(e,n)},pointToLatLng:function(t,i){var e=this.scale(i),n=this.transformation.untransform(t,e);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var i=this.projection.bounds,e=this.scale(t),n=this.transformation.transform(i.min,e),o=this.transformation.transform(i.max,e);return new P(n,o)},infinite:!1,wrapLatLng:function(t){var i=this.wrapLng?s(t.lng,this.wrapLng,!0):t.lng,e=this.wrapLat?s(t.lat,this.wrapLat,!0):t.lat,n=t.alt;return new M(e,i,n)},wrapLatLngBounds:function(t){var i=t.getCenter(),e=this.wrapLatLng(i),n=i.lat-e.lat,o=i.lng-e.lng;if(0===n&&0===o)return t;var s=t.getSouthWest(),r=t.getNorthEast(),a=new M(s.lat-n,s.lng-o),h=new M(r.lat-n,r.lng-o);return new T(a,h)}},bi=i({},Pi,{wrapLng:[-180,180],R:6371e3,distance:function(t,i){var e=Math.PI/180,n=t.lat*e,o=i.lat*e,s=Math.sin(n)*Math.sin(o)+Math.cos(n)*Math.cos(o)*Math.cos((i.lng-t.lng)*e);return this.R*Math.acos(Math.min(s,1))}}),Ti={R:6378137,MAX_LATITUDE:85.0511287798,project:function(t){var i=Math.PI/180,e=this.MAX_LATITUDE,n=Math.max(Math.min(e,t.lat),-e),o=Math.sin(n*i);return new x(this.R*t.lng*i,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var i=180/Math.PI;return new M((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*i,t.x*i/this.R)},bounds:function(){var t=6378137*Math.PI;return new P([-t,-t],[t,t])}()};Z.prototype={transform:function(t,i){return this._transform(t.clone(),i)},_transform:function(t,i){return i=i||1,t.x=i*(this._a*t.x+this._b),t.y=i*(this._c*t.y+this._d),t},untransform:function(t,i){return i=i||1,new x((t.x/i-this._b)/this._a,(t.y/i-this._d)/this._c)}};var zi,Mi,Ci,Zi,Ei=i({},bi,{code:"EPSG:3857",projection:Ti,transformation:function(){var t=.5/(Math.PI*Ti.R);return E(t,.5,-t,.5)}()}),Si=i({},Ei,{code:"EPSG:900913"}),ki=document.documentElement.style,Bi="ActiveXObject"in window,Ii=Bi&&!document.addEventListener,Ai="msLaunchUri"in navigator&&!("documentMode"in document),Oi=B("webkit"),Ri=B("android"),Di=B("android 2")||B("android 3"),Ni=!!window.opera,ji=B("chrome"),Wi=B("gecko")&&!Oi&&!Ni&&!Bi,Hi=!ji&&B("safari"),Fi=B("phantom"),Ui="OTransition"in ki,Vi=0===navigator.platform.indexOf("Win"),Gi=Bi&&"transition"in ki,qi="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Di,Ki="MozPerspective"in ki,Yi=!window.L_DISABLE_3D&&(Gi||qi||Ki)&&!Ui&&!Fi,Xi="undefined"!=typeof orientation||B("mobile"),Ji=Xi&&Oi,$i=Xi&&qi,Qi=!window.PointerEvent&&window.MSPointerEvent,te=!(!window.PointerEvent&&!Qi),ie=!window.L_NO_TOUCH&&(te||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),ee=Xi&&Ni,ne=Xi&&Wi,oe=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,se=function(){return!!document.createElement("canvas").getContext}(),re=!(!document.createElementNS||!S("svg").createSVGRect),ae=!re&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var i=t.firstChild;return i.style.behavior="url(#default#VML)",i&&"object"==typeof i.adj}catch(t){return!1}}(),he=(Object.freeze||Object)({ie:Bi,ielt9:Ii,edge:Ai,webkit:Oi,android:Ri,android23:Di,opera:Ni,chrome:ji,gecko:Wi,safari:Hi,phantom:Fi,opera12:Ui,win:Vi,ie3d:Gi,webkit3d:qi,gecko3d:Ki,any3d:Yi,mobile:Xi,mobileWebkit:Ji,mobileWebkit3d:$i,msPointer:Qi,pointer:te,touch:ie,mobileOpera:ee,mobileGecko:ne,retina:oe,canvas:se,svg:re,vml:ae}),ue=Qi?"MSPointerDown":"pointerdown",le=Qi?"MSPointerMove":"pointermove",ce=Qi?"MSPointerUp":"pointerup",_e=Qi?"MSPointerCancel":"pointercancel",de=["INPUT","SELECT","OPTION"],pe={},me=!1,fe=0,ge=Qi?"MSPointerDown":te?"pointerdown":"touchstart",ve=Qi?"MSPointerUp":te?"pointerup":"touchend",ye="_leaflet_",xe="_leaflet_events",we=Vi&&ji?2*window.devicePixelRatio:Wi?window.devicePixelRatio:1,Le={},Pe=(Object.freeze||Object)({on:V,off:G,stopPropagation:Y,disableScrollPropagation:X,disableClickPropagation:J,preventDefault:$,stop:Q,getMousePosition:tt,getWheelDelta:it,fakeStop:et,skipped:nt,isExternalTarget:ot,addListener:V,removeListener:G}),be=xt(["transform","WebkitTransform","OTransform","MozTransform","msTransform"]),Te=xt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ze="webkitTransition"===Te||"OTransition"===Te?Te+"End":"transitionend";if("onselectstart"in document)Mi=function(){V(window,"selectstart",$)},Ci=function(){G(window,"selectstart",$)};else{var Me=xt(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Mi=function(){if(Me){var t=document.documentElement.style;Zi=t[Me],t[Me]="none"}},Ci=function(){Me&&(document.documentElement.style[Me]=Zi,Zi=void 0)}}var Ce,Ze,Ee=(Object.freeze||Object)({TRANSFORM:be,TRANSITION:Te,TRANSITION_END:ze,get:rt,getStyle:at,create:ht,remove:ut,empty:lt,toFront:ct,toBack:_t,hasClass:dt,addClass:pt,removeClass:mt,setClass:ft,getClass:gt,setOpacity:vt,testProp:xt,setTransform:wt,setPosition:Lt,getPosition:Pt,disableTextSelection:Mi,enableTextSelection:Ci,disableImageDrag:bt,enableImageDrag:Tt,preventOutline:zt,restoreOutline:Mt}),Se=Li.extend({run:function(t,i,e,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=e||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=Pt(t),this._offset=i.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=f(this._animate,this),this._step()},_step:function(t){var i=+new Date-this._startTime,e=1e3*this._duration;i<e?this._runFrame(this._easeOut(i/e),t):(this._runFrame(1),this._complete())},_runFrame:function(t,i){var e=this._startPos.add(this._offset.multiplyBy(t));i&&e._round(),Lt(this._el,e),this.fire("step")},_complete:function(){g(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),ke=Li.extend({options:{crs:Ei,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,i){i=l(this,i),this._initContainer(t),this._initLayout(),this._onResize=e(this._onResize,this),this._initEvents(),i.maxBounds&&this.setMaxBounds(i.maxBounds),void 0!==i.zoom&&(this._zoom=this._limitZoom(i.zoom)),i.center&&void 0!==i.zoom&&this.setView(C(i.center),i.zoom,{reset:!0}),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this.callInitHooks(),this._zoomAnimated=Te&&Yi&&!ee&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),V(this._proxy,ze,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,n){if(e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(C(t),e,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&n!==!0){void 0!==n.animate&&(n.zoom=i({animate:n.animate},n.zoom),n.pan=i({animate:n.animate,duration:n.duration},n.pan));var o=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan);if(o)return clearTimeout(this._sizeTimer),this}return this._resetView(t,e),this},setZoom:function(t,i){return this._loaded?this.setView(this.getCenter(),t,{zoom:i}):(this._zoom=t,this)},zoomIn:function(t,i){return t=t||(Yi?this.options.zoomDelta:1),this.setZoom(this._zoom+t,i)},zoomOut:function(t,i){return t=t||(Yi?this.options.zoomDelta:1),this.setZoom(this._zoom-t,i)},setZoomAround:function(t,i,e){var n=this.getZoomScale(i),o=this.getSize().divideBy(2),s=t instanceof x?t:this.latLngToContainerPoint(t),r=s.subtract(o).multiplyBy(1-1/n),a=this.containerPointToLatLng(o.add(r));return this.setView(a,i,{zoom:e})},_getBoundsCenterZoom:function(t,i){i=i||{},t=t.getBounds?t.getBounds():z(t);var e=w(i.paddingTopLeft||i.padding||[0,0]),n=w(i.paddingBottomRight||i.padding||[0,0]),o=this.getBoundsZoom(t,!1,e.add(n));if(o="number"==typeof i.maxZoom?Math.min(i.maxZoom,o):o,o===1/0)return{center:t.getCenter(),zoom:o};var s=n.subtract(e).divideBy(2),r=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o),h=this.unproject(r.add(a).divideBy(2).add(s),o);return{center:h,zoom:o}},fitBounds:function(t,i){if(t=z(t),!t.isValid())throw new Error("Bounds are not valid.");var e=this._getBoundsCenterZoom(t,i);return this.setView(e.center,e.zoom,i)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,i){return this.setView(t,this._zoom,{pan:i})},panBy:function(t,i){if(t=w(t).round(),i=i||{},!t.x&&!t.y)return this.fire("moveend");if(i.animate!==!0&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Se,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),
+i.noMoveStart||this.fire("movestart"),i.animate!==!1){pt(this._mapPane,"leaflet-pan-anim");var e=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,e,i.duration||.25,i.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,i,e){function n(t){var i=t?-1:1,e=t?g:m,n=g*g-m*m+i*x*x*v*v,o=2*e*x*v,s=n/o,r=Math.sqrt(s*s+1)-s,a=r<1e-9?-18:Math.log(r);return a}function o(t){return(Math.exp(t)-Math.exp(-t))/2}function s(t){return(Math.exp(t)+Math.exp(-t))/2}function r(t){return o(t)/s(t)}function a(t){return m*(s(w)/s(w+y*t))}function h(t){return m*(s(w)*r(w+y*t)-o(w))/x}function u(t){return 1-Math.pow(1-t,1.5)}function l(){var e=(Date.now()-L)/b,n=u(e)*P;e<=1?(this._flyToFrame=f(l,this),this._move(this.unproject(c.add(_.subtract(c).multiplyBy(h(n)/v)),p),this.getScaleZoom(m/a(n),p),{flyTo:!0})):this._move(t,i)._moveEnd(!0)}if(e=e||{},e.animate===!1||!Yi)return this.setView(t,i,e);this._stop();var c=this.project(this.getCenter()),_=this.project(t),d=this.getSize(),p=this._zoom;t=C(t),i=void 0===i?p:i;var m=Math.max(d.x,d.y),g=m*this.getZoomScale(p,i),v=_.distanceTo(c)||1,y=1.42,x=y*y,w=n(0),L=Date.now(),P=(n(1)-w)/y,b=e.duration?1e3*e.duration:1e3*P*.8;return this._moveStart(!0),l.call(this),this},flyToBounds:function(t,i){var e=this._getBoundsCenterZoom(t,i);return this.flyTo(e.center,e.zoom,i)},setMaxBounds:function(t){return t=z(t),t.isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(t){return this.options.minZoom=t,this._loaded&&this.getZoom()<this.options.minZoom?this.setZoom(t):this},setMaxZoom:function(t){return this.options.maxZoom=t,this._loaded&&this.getZoom()>this.options.maxZoom?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;var e=this.getCenter(),n=this._limitCenter(e,this._zoom,z(t));return e.equals(n)||this.panTo(n,i),this._enforcingBounds=!1,this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},t===!0?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),s=n.divideBy(2).round(),r=o.divideBy(2).round(),a=s.subtract(r);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(e(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=e(this._handleGeolocationResponse,this),o=e(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,o,t):navigator.geolocation.getCurrentPosition(n,o,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var i=t.code,e=t.message||(1===i?"permission denied":2===i?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+e+"."})},_handleGeolocationResponse:function(t){var i=t.coords.latitude,e=t.coords.longitude,n=new M(i,e),o=n.toBounds(t.coords.accuracy),s=this._locateOptions;if(s.setView){var r=this.getBoundsZoom(o);this.setView(n,s.maxZoom?Math.min(r,s.maxZoom):r)}var a={latlng:n,bounds:o,timestamp:t.timestamp};for(var h in t.coords)"number"==typeof t.coords[h]&&(a[h]=t.coords[h]);this.fire("locationfound",a)},addHandler:function(t,i){if(!i)return this;var e=this[t]=new i(this);return this._handlers.push(e),this.options[t]&&e.enable(),this},remove:function(){if(this._initEvents(!0),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}ut(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)ut(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){var e="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),n=ht("div",e,i||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),i=this.unproject(t.getBottomLeft()),e=this.unproject(t.getTopRight());return new T(i,e)},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,i,e){t=z(t),e=w(e||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),a=t.getSouthEast(),h=this.getSize().subtract(e),u=b(this.project(a,n),this.project(r,n)).getSize(),l=Yi?this.options.zoomSnap:1,c=h.x/u.x,_=h.y/u.y,d=i?Math.max(c,_):Math.min(c,_);return n=this.getScaleZoom(d,n),l&&(n=Math.round(n/(l/100))*(l/100),n=i?Math.ceil(n/l)*l:Math.floor(n/l)*l),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new x(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){var e=this._getTopLeftPoint(t,i);return new P(e,e.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var e=this.options.crs;return i=void 0===i?this._zoom:i,e.scale(t)/e.scale(i)},getScaleZoom:function(t,i){var e=this.options.crs;i=void 0===i?this._zoom:i;var n=e.zoom(t*e.scale(i));return isNaN(n)?1/0:n},project:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.latLngToPoint(C(t),i)},unproject:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.pointToLatLng(w(t),i)},layerPointToLatLng:function(t){var i=w(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){var i=this.project(C(t))._round();return i._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(C(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(z(t))},distance:function(t,i){return this.options.crs.distance(C(t),C(i))},containerPointToLayerPoint:function(t){return w(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return w(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(w(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(C(t)))},mouseEventToContainerPoint:function(t){return tt(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var i=this._container=rt(t);if(!i)throw new Error("Map container not found.");if(i._leaflet_id)throw new Error("Map container is already initialized.");V(i,"scroll",this._onScroll,this),this._containerId=n(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Yi,pt(t,"leaflet-container"+(ie?" leaflet-touch":"")+(oe?" leaflet-retina":"")+(Ii?" leaflet-oldie":"")+(Hi?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=at(t,"position");"absolute"!==i&&"relative"!==i&&"fixed"!==i&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Lt(this._mapPane,new x(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(pt(t.markerPane,"leaflet-zoom-hide"),pt(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,i){Lt(this._mapPane,new x(0,0));var e=!this._loaded;this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset");var n=this._zoom!==i;this._moveStart(n)._move(t,i)._moveEnd(n),this.fire("viewreset"),e&&this.fire("load")},_moveStart:function(t){return t&&this.fire("zoomstart"),this.fire("movestart")},_move:function(t,i,e){void 0===i&&(i=this._zoom);var n=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(n||e&&e.pinch)&&this.fire("zoom",e),this.fire("move",e)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return g(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Lt(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[n(this._container)]=this;var i=t?G:V;i(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),Yi&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){g(this._resizeRequest),this._resizeRequest=f(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,i){for(var e,o=[],s="mouseout"===i||"mouseover"===i,r=t.target||t.srcElement,a=!1;r;){if(e=this._targets[n(r)],e&&("click"===i||"preclick"===i)&&!t._simulated&&this._draggableMoved(e)){a=!0;break}if(e&&e.listens(i,!0)){if(s&&!ot(r,t))break;if(o.push(e),s)break}if(r===this._container)break;r=r.parentNode}return o.length||a||s||!ot(r,t)||(o=[this]),o},_handleDOMEvent:function(t){if(this._loaded&&!nt(t)){var i=t.type;"mousedown"!==i&&"keypress"!==i||zt(t.target||t.srcElement),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if("click"===t.type){var o=i({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}if(!t._stopped&&(n=(n||[]).concat(this._findEventTargets(t,e)),n.length)){var s=n[0];"contextmenu"===e&&s.listens(e,!0)&&$(t);var r={originalEvent:t};if("keypress"!==t.type){var a=s.options&&"icon"in s.options;r.containerPoint=a?this.latLngToContainerPoint(s.getLatLng()):this.mouseEventToContainerPoint(t),r.layerPoint=this.containerPointToLayerPoint(r.containerPoint),r.latlng=a?s.getLatLng():this.layerPointToLatLng(r.layerPoint)}for(var h=0;h<n.length;h++)if(n[h].fire(e,r,!0),r.originalEvent._stopped||n[h].options.bubblingMouseEvents===!1&&d(this._mouseEvents,e)!==-1)return}},_draggableMoved:function(t){return t=t.dragging&&t.dragging.enabled()?t:this,t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,i=this._handlers.length;t<i;t++)this._handlers[t].disable()},whenReady:function(t,i){return this._loaded?t.call(i||this,{target:this}):this.on("load",t,i),this},_getMapPanePos:function(){return Pt(this._mapPane)||new x(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,i){var e=t&&void 0!==i?this._getNewPixelOrigin(t,i):this.getPixelOrigin();return e.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,i){var e=this.getSize()._divideBy(2);return this.project(t,i)._subtract(e)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,i,e){var n=this._getNewPixelOrigin(e,i);return this.project(t,i)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,i,e){var n=this._getNewPixelOrigin(e,i);return b([this.project(t.getSouthWest(),i)._subtract(n),this.project(t.getNorthWest(),i)._subtract(n),this.project(t.getSouthEast(),i)._subtract(n),this.project(t.getNorthEast(),i)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,i,e){if(!e)return t;var n=this.project(t,i),o=this.getSize().divideBy(2),s=new P(n.subtract(o),n.add(o)),r=this._getBoundsOffset(s,e,i);return r.round().equals([0,0])?t:this.unproject(n.add(r),i)},_limitOffset:function(t,i){if(!i)return t;var e=this.getPixelBounds(),n=new P(e.min.add(t),e.max.add(t));return t.add(this._getBoundsOffset(n,i))},_getBoundsOffset:function(t,i,e){var n=b(this.project(i.getNorthEast(),e),this.project(i.getSouthWest(),e)),o=n.min.subtract(t.min),s=n.max.subtract(t.max),r=this._rebound(o.x,-s.x),a=this._rebound(o.y,-s.y);return new x(r,a)},_rebound:function(t,i){return t+i>0?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),e=this.getMaxZoom(),n=Yi?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(i,Math.min(e,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){mt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,i){var e=this._getCenterOffset(t)._floor();return!((i&&i.animate)!==!0&&!this.getSize().contains(e))&&(this.panBy(e,i),!0)},_createAnimProxy:function(){var t=this._proxy=ht("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var i=be,e=this._proxy.style[i];wt(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),e===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",function(){var t=this.getCenter(),i=this.getZoom();wt(this._proxy,this.project(t,i),this.getZoomScale(i,1))},this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ut(this._proxy),delete this._proxy},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,i,e){if(this._animatingZoom)return!0;if(e=e||{},!this._zoomAnimated||e.animate===!1||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(i),o=this._getCenterOffset(t)._divideBy(1-1/n);return!(e.animate!==!0&&!this.getSize().contains(o))&&(f(function(){this._moveStart(!0)._animateZoom(t,i,!0)},this),!0)},_animateZoom:function(t,i,n,o){n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,pt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:i,noUpdate:o}),setTimeout(e(this._onZoomTransitionEnd,this),250)},_onZoomTransitionEnd:function(){this._animatingZoom&&(mt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),f(function(){this._moveEnd(!0)},this))}}),Be=v.extend({options:{position:"topright"},initialize:function(t){l(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;return i&&i.removeControl(this),this.options.position=t,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var i=this._container=this.onAdd(t),e=this.getPosition(),n=t._controlCorners[e];return pt(i,"leaflet-control"),e.indexOf("bottom")!==-1?n.insertBefore(i,n.firstChild):n.appendChild(i),this},remove:function(){return this._map?(ut(this._container),this.onRemove&&this.onRemove(this._map),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Ie=function(t){return new Be(t)};ke.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){function t(t,o){var s=e+t+" "+e+o;i[t+o]=ht("div",s,n)}var i=this._controlCorners={},e="leaflet-",n=this._controlContainer=ht("div",e+"control-container",this._container);t("top","left"),t("top","right"),t("bottom","left"),t("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ut(this._controlCorners[t]);ut(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ae=Be.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,i,e,n){return e<n?-1:n<e?1:0}},initialize:function(t,i,e){l(this,e),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1;for(var n in t)this._addLayer(t[n],n);for(n in i)this._addLayer(i[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Be.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,i){return this._addLayer(t,i),this._map?this._update():this},addOverlay:function(t,i){return this._addLayer(t,i,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var i=this._getLayer(n(t));return i&&this._layers.splice(this._layers.indexOf(i),1),this._map?this._update():this},expand:function(){pt(this._container,"leaflet-control-layers-expanded"),this._form.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._form.clientHeight?(pt(this._form,"leaflet-control-layers-scrollbar"),this._form.style.height=t+"px"):mt(this._form,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return mt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",i=this._container=ht("div",t),n=this.options.collapsed;i.setAttribute("aria-haspopup",!0),J(i),X(i);var o=this._form=ht("form",t+"-list");n&&(this._map.on("click",this.collapse,this),Ri||V(i,{mouseenter:this.expand,mouseleave:this.collapse},this));var s=this._layersLink=ht("a",t+"-toggle",i);s.href="#",s.title="Layers",ie?(V(s,"click",Q),V(s,"click",this.expand,this)):V(s,"focus",this.expand,this),V(o,"click",function(){setTimeout(e(this._onInputClick,this),0)},this),n||this.expand(),this._baseLayersList=ht("div",t+"-base",o),this._separator=ht("div",t+"-separator",o),this._overlaysList=ht("div",t+"-overlays",o),i.appendChild(o)},_getLayer:function(t){for(var i=0;i<this._layers.length;i++)if(this._layers[i]&&n(this._layers[i].layer)===t)return this._layers[i]},_addLayer:function(t,i,e){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:i,overlay:e}),this.options.sortLayers&&this._layers.sort(L.bind(function(t,i){return this.options.sortFunction(t.layer,i.layer,t.name,i.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;lt(this._baseLayersList),lt(this._overlaysList),this._layerControlInputs=[];var t,i,e,n,o=0;for(e=0;e<this._layers.length;e++)n=this._layers[e],this._addItem(n),i=i||n.overlay,t=t||!n.overlay,o+=n.overlay?0:1;return this.options.hideSingleBase&&(t=t&&o>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=i&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var i=this._getLayer(n(t.target)),e=i.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;e&&this._map.fire(e,i)},_createRadioElement:function(t,i){var e='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(i?' checked="checked"':"")+"/>",n=document.createElement("div");return n.innerHTML=e,n.firstChild},_addItem:function(t){var i,e=document.createElement("label"),o=this._map.hasLayer(t.layer);t.overlay?(i=document.createElement("input"),i.type="checkbox",i.className="leaflet-control-layers-selector",i.defaultChecked=o):i=this._createRadioElement("leaflet-base-layers",o),this._layerControlInputs.push(i),i.layerId=n(t.layer),V(i,"click",this._onInputClick,this);var s=document.createElement("span");s.innerHTML=" "+t.name;var r=document.createElement("div");e.appendChild(r),r.appendChild(i),r.appendChild(s);var a=t.overlay?this._overlaysList:this._baseLayersList;return a.appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){var t,i,e,n=this._layerControlInputs,o=[],s=[];this._handlingClick=!0;for(var r=n.length-1;r>=0;r--)t=n[r],i=this._getLayer(t.layerId).layer,e=this._map.hasLayer(i),t.checked&&!e?o.push(i):!t.checked&&e&&s.push(i);for(r=0;r<s.length;r++)this._map.removeLayer(s[r]);for(r=0;r<o.length;r++)this._map.addLayer(o[r]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,i,e=this._layerControlInputs,n=this._map.getZoom(),o=e.length-1;o>=0;o--)t=e[o],i=this._getLayer(t.layerId).layer,t.disabled=void 0!==i.options.minZoom&&n<i.options.minZoom||void 0!==i.options.maxZoom&&n>i.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),Oe=function(t,i,e){return new Ae(t,i,e)},Re=Be.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"&#x2212;",zoomOutTitle:"Zoom out"},onAdd:function(t){var i="leaflet-control-zoom",e=ht("div",i+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,i+"-in",e,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,i+"-out",e,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),e},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,i,e,n,o){var s=ht("a",e,n);return s.innerHTML=t,s.href="#",s.title=i,s.setAttribute("role","button"),s.setAttribute("aria-label",i),J(s),V(s,"click",Q),V(s,"click",o,this),V(s,"click",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";mt(this._zoomInButton,i),mt(this._zoomOutButton,i),(this._disabled||t._zoom===t.getMinZoom())&&pt(this._zoomOutButton,i),(this._disabled||t._zoom===t.getMaxZoom())&&pt(this._zoomInButton,i)}});ke.mergeOptions({zoomControl:!0}),ke.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Re,this.addControl(this.zoomControl))});var De=function(t){return new Re(t)},Ne=Be.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i="leaflet-control-scale",e=ht("div",i),n=this.options;return this._addScales(n,i+"-line",e),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,e){t.metric&&(this._mScale=ht("div",i,e)),t.imperial&&(this._iScale=ht("div",i,e))},_update:function(){var t=this._map,i=t.getSize().y/2,e=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(e)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var i=this._getRoundNum(t),e=i<1e3?i+" m":i/1e3+" km";this._updateScale(this._mScale,e,i/t)},_updateImperial:function(t){var i,e,n,o=3.2808399*t;o>5280?(i=o/5280,e=this._getRoundNum(i),this._updateScale(this._iScale,e+" mi",e/i)):(n=this._getRoundNum(o),this._updateScale(this._iScale,n+" ft",n/o))},_updateScale:function(t,i,e){t.style.width=Math.round(this.options.maxWidth*e)+"px",t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),e=t/i;return e=e>=10?10:e>=5?5:e>=3?3:e>=2?2:1,i*e}}),je=function(t){return new Ne(t)},We=Be.extend({options:{position:"bottomright",prefix:'<a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){l(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=ht("div","leaflet-control-attribution"),J(this._container);for(var i in t._layers)t._layers[i].getAttribution&&this.addAttribution(t._layers[i].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var i in this._attributions)this._attributions[i]&&t.push(i);var e=[];this.options.prefix&&e.push(this.options.prefix),t.length&&e.push(t.join(", ")),this._container.innerHTML=e.join(" | ")}}});ke.mergeOptions({attributionControl:!0}),ke.addInitHook(function(){this.options.attributionControl&&(new We).addTo(this)});var He=function(t){return new We(t)};Be.Layers=Ae,Be.Zoom=Re,Be.Scale=Ne,Be.Attribution=We,Ie.layers=Oe,Ie.zoom=De,Ie.scale=je,Ie.attribution=He;var Fe,Ue=v.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}}),Ve={Events:wi},Ge=!1,qe=ie?"touchstart mousedown":"mousedown",Ke={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},Ye={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},Xe=Li.extend({options:{clickTolerance:3},initialize:function(t,i,e,n){l(this,n),this._element=t,this._dragStartTarget=i||t,this._preventOutline=e},enable:function(){this._enabled||(V(this._dragStartTarget,qe,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(L.Draggable._dragging===this&&this.finishDrag(),G(this._dragStartTarget,qe,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!dt(this._element,"leaflet-zoom-anim")&&!(Ge||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(Ge=this,this._preventOutline&&zt(this._element),bt(),Mi(),this._moving)))){this.fire("down");var i=t.touches?t.touches[0]:t;this._startPoint=new x(i.clientX,i.clientY),V(document,Ye[t.type],this._onMove,this),V(document,Ke[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled){if(t.touches&&t.touches.length>1)return void(this._moved=!0);var i=t.touches&&1===t.touches.length?t.touches[0]:t,e=new x(i.clientX,i.clientY),n=e.subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||($(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=Pt(this._element).subtract(n),pt(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),pt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,g(this._animRequest),this._lastEvent=t,this._animRequest=f(this._updatePosition,this,!0)))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Lt(this._element,this._newPos),this.fire("drag",t)},_onUp:function(t){!t._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){mt(document.body,"leaflet-dragging"),this._lastTarget&&(mt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null);for(var t in Ye)G(document,Ye[t],this._onMove,this),G(document,Ke[t],this._onUp,this);Tt(),Ci(),this._moved&&this._moving&&(g(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,Ge=!1}}),Je=(Object.freeze||Object)({simplify:Zt,pointToSegmentDistance:Et,closestPointOnSegment:St,clipSegment:At,_getEdgeIntersection:Ot,_getBitCode:Rt,_sqClosestPointOnSegment:Nt,_flat:jt}),$e=(Object.freeze||Object)({clipPolygon:Wt}),Qe={project:function(t){return new x(t.lng,t.lat)},unproject:function(t){return new M(t.y,t.x)},bounds:new P([-180,-90],[180,90])},tn={R:6378137,R_MINOR:6356752.314245179,bounds:new P([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var i=Math.PI/180,e=this.R,n=t.lat*i,o=this.R_MINOR/e,s=Math.sqrt(1-o*o),r=s*Math.sin(n),a=Math.tan(Math.PI/4-n/2)/Math.pow((1-r)/(1+r),s/2);return n=-e*Math.log(Math.max(a,1e-10)),new x(t.lng*i*e,n)},unproject:function(t){for(var i,e=180/Math.PI,n=this.R,o=this.R_MINOR/n,s=Math.sqrt(1-o*o),r=Math.exp(-t.y/n),a=Math.PI/2-2*Math.atan(r),h=0,u=.1;h<15&&Math.abs(u)>1e-7;h++)i=s*Math.sin(a),i=Math.pow((1-i)/(1+i),s/2),u=Math.PI/2-2*Math.atan(r*i)-a,a+=u;return new M(a*e,t.x*e/n)}},en=(Object.freeze||Object)({LonLat:Qe,Mercator:tn,SphericalMercator:Ti}),nn=i({},bi,{code:"EPSG:3395",projection:tn,transformation:function(){var t=.5/(Math.PI*tn.R);return E(t,.5,-t,.5)}()}),on=i({},bi,{code:"EPSG:4326",projection:Qe,transformation:E(1/180,1,-1/180,.5)}),sn=i({},Pi,{projection:Qe,transformation:E(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,i){var e=i.lng-t.lng,n=i.lat-t.lat;return Math.sqrt(e*e+n*n)},infinite:!0});Pi.Earth=bi,Pi.EPSG3395=nn,Pi.EPSG3857=Ei,Pi.EPSG900913=Si,Pi.EPSG4326=on,Pi.Simple=sn;var rn=Li.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane);
+},addInteractiveTarget:function(t){return this._map._targets[n(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[n(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i=t.target;if(i.hasLayer(this)){if(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents){var e=this.getEvents();i.on(e,this),this.once("remove",function(){i.off(e,this)},this)}this.onAdd(i),this.getAttribution&&i.attributionControl&&i.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),i.fire("layeradd",{layer:this})}}});ke.include({addLayer:function(t){var i=n(t);return this._layers[i]?this:(this._layers[i]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var i=n(t);return this._layers[i]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[i],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&n(t)in this._layers},eachLayer:function(t,i){for(var e in this._layers)t.call(i,this._layers[e]);return this},_addLayers:function(t){t=t?mi(t)?t:[t]:[];for(var i=0,e=t.length;i<e;i++)this.addLayer(t[i])},_addZoomLimit:function(t){!isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[n(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var i=n(t);this._zoomBoundLayers[i]&&(delete this._zoomBoundLayers[i],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,i=-(1/0),e=this._getZoomSpan();for(var n in this._zoomBoundLayers){var o=this._zoomBoundLayers[n].options;t=void 0===o.minZoom?t:Math.min(t,o.minZoom),i=void 0===o.maxZoom?i:Math.max(i,o.maxZoom)}this._layersMaxZoom=i===-(1/0)?void 0:i,this._layersMinZoom=t===1/0?void 0:t,e!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var an=rn.extend({initialize:function(t){this._layers={};var i,e;if(t)for(i=0,e=t.length;i<e;i++)this.addLayer(t[i])},addLayer:function(t){var i=this.getLayerId(t);return this._layers[i]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var i=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[i]&&this._map.removeLayer(this._layers[i]),delete this._layers[i],this},hasLayer:function(t){return!!t&&(t in this._layers||this.getLayerId(t)in this._layers)},clearLayers:function(){for(var t in this._layers)this.removeLayer(this._layers[t]);return this},invoke:function(t){var i,e,n=Array.prototype.slice.call(arguments,1);for(i in this._layers)e=this._layers[i],e[t]&&e[t].apply(e,n);return this},onAdd:function(t){for(var i in this._layers)t.addLayer(this._layers[i])},onRemove:function(t){for(var i in this._layers)t.removeLayer(this._layers[i])},eachLayer:function(t,i){for(var e in this._layers)t.call(i,this._layers[e]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];for(var i in this._layers)t.push(this._layers[i]);return t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return n(t)}}),hn=function(t){return new an(t)},un=an.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),an.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),an.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new T;for(var i in this._layers){var e=this._layers[i];t.extend(e.getBounds?e.getBounds():e.getLatLng())}return t}}),ln=function(t){return new un(t)},cn=v.extend({initialize:function(t){l(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,i){var e=this._getIconUrl(t);if(!e){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n=this._createImg(e,i&&"IMG"===i.tagName?i:null);return this._setIconStyles(n,t),n},_setIconStyles:function(t,i){var e=this.options,n=e[i+"Size"];"number"==typeof n&&(n=[n,n]);var o=w(n),s=w("shadow"===i&&e.shadowAnchor||e.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+i+" "+(e.className||""),s&&(t.style.marginLeft=-s.x+"px",t.style.marginTop=-s.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,i){return i=i||document.createElement("img"),i.src=t,i},_getIconUrl:function(t){return oe&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),_n=cn.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return _n.imagePath||(_n.imagePath=this._detectIconPath()),(this.options.imagePath||_n.imagePath)+cn.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=ht("div","leaflet-default-icon-path",document.body),i=at(t,"background-image")||at(t,"backgroundImage");return document.body.removeChild(t),i=null===i||0!==i.indexOf("url")?"":i.replace(/^url\([\"\']?/,"").replace(/marker-icon\.png[\"\']?\)$/,"")}}),dn=Ue.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new Xe(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),pt(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&mt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup().fire("movestart").fire("dragstart")},_onDrag:function(t){var i=this._marker,e=i._shadow,n=Pt(i._icon),o=i._map.layerPointToLatLng(n);e&&Lt(e,n),i._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,i.fire("move",t).fire("drag",t)},_onDragEnd:function(t){delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),pn=rn.extend({options:{icon:new _n,interactive:!0,draggable:!1,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",bubblingMouseEvents:!1},initialize:function(t,i){l(this,i),this._latlng=C(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var i=this._latlng;return this._latlng=C(t),this.update(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),e=t.icon.createIcon(this._icon),n=!1;e!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(e.title=t.title),t.alt&&(e.alt=t.alt)),pt(e,i),t.keyboard&&(e.tabIndex="0"),this._icon=e,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var o=t.icon.createShadow(this._shadow),s=!1;o!==this._shadow&&(this._removeShadow(),s=!0),o&&(pt(o,i),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&s&&this.getPane("shadowPane").appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),ut(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ut(this._shadow),this._shadow=null},_setPos:function(t){Lt(this._icon,t),this._shadow&&Lt(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon.style.zIndex=this._zIndex+t},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(i)},_initInteraction:function(){if(this.options.interactive&&(pt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),dn)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new dn(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;vt(this._icon,t),this._shadow&&vt(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor||[0,0]},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor||[0,0]}}),mn=rn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return l(this,t),this._renderer&&this._renderer._updateStyle(this),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(ie?10:0)}}),fn=mn.extend({options:{fill:!0,radius:10},initialize:function(t,i){l(this,i),this._latlng=C(t),this._radius=this.options.radius},setLatLng:function(t){return this._latlng=C(t),this.redraw(),this.fire("move",{latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var i=t&&t.radius||this._radius;return mn.prototype.setStyle.call(this,t),this.setRadius(i),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,i=this._radiusY||t,e=this._clickTolerance(),n=[t+e,i+e];this._pxBounds=new P(this._point.subtract(n),this._point.add(n))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),gn=fn.extend({initialize:function(t,e,n){if("number"==typeof e&&(e=i({},n,{radius:e})),l(this,e),this._latlng=C(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new T(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:mn.prototype.setStyle,_project:function(){var t=this._latlng.lng,i=this._latlng.lat,e=this._map,n=e.options.crs;if(n.distance===bi.distance){var o=Math.PI/180,s=this._mRadius/bi.R/o,r=e.project([i+s,t]),a=e.project([i-s,t]),h=r.add(a).divideBy(2),u=e.unproject(h).lat,l=Math.acos((Math.cos(s*o)-Math.sin(i*o)*Math.sin(u*o))/(Math.cos(i*o)*Math.cos(u*o)))/o;(isNaN(l)||0===l)&&(l=s/Math.cos(Math.PI/180*i)),this._point=h.subtract(e.getPixelOrigin()),this._radius=isNaN(l)?0:Math.max(Math.round(h.x-e.project([u,t-l]).x),1),this._radiusY=Math.max(Math.round(h.y-r.y),1)}else{var c=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=e.latLngToLayerPoint(this._latlng),this._radius=this._point.x-e.latLngToLayerPoint(c).x}this._updateBounds()}}),vn=mn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,i){l(this,i),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var i,e,n=1/0,o=null,s=Nt,r=0,a=this._parts.length;r<a;r++)for(var h=this._parts[r],u=1,l=h.length;u<l;u++){i=h[u-1],e=h[u];var c=s(t,i,e,!0);c<n&&(n=c,o=s(t,i,e))}return o&&(o.distance=Math.sqrt(n)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,i,e,n,o,s,r,a=this._rings[0],h=a.length;if(!h)return null;for(t=0,i=0;t<h-1;t++)i+=a[t].distanceTo(a[t+1])/2;if(0===i)return this._map.layerPointToLatLng(a[0]);for(t=0,n=0;t<h-1;t++)if(o=a[t],s=a[t+1],e=o.distanceTo(s),n+=e,n>i)return r=(n-i)/e,this._map.layerPointToLatLng([s.x-r*(s.x-o.x),s.y-r*(s.y-o.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,i){return i=i||this._defaultShape(),t=C(t),i.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new T,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return jt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var i=[],e=jt(t),n=0,o=t.length;n<o;n++)e?(i[n]=C(t[n]),this._bounds.extend(i[n])):i[n]=this._convertLatLngs(t[n]);return i},_project:function(){var t=new P;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t);var i=this._clickTolerance(),e=new x(i,i);this._bounds.isValid()&&t.isValid()&&(t.min._subtract(e),t.max._add(e),this._pxBounds=t)},_projectLatlngs:function(t,i,e){var n,o,s=t[0]instanceof M,r=t.length;if(s){for(o=[],n=0;n<r;n++)o[n]=this._map.latLngToLayerPoint(t[n]),e.extend(o[n]);i.push(o)}else for(n=0;n<r;n++)this._projectLatlngs(t[n],i,e)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t)){if(this.options.noClip)return void(this._parts=this._rings);var i,e,n,o,s,r,a,h=this._parts;for(i=0,n=0,o=this._rings.length;i<o;i++)for(a=this._rings[i],e=0,s=a.length;e<s-1;e++)r=At(a[e],a[e+1],t,e,!0),r&&(h[n]=h[n]||[],h[n].push(r[0]),r[1]===a[e+1]&&e!==s-2||(h[n].push(r[1]),n++))}},_simplifyPoints:function(){for(var t=this._parts,i=this.options.smoothFactor,e=0,n=t.length;e<n;e++)t[e]=Zt(t[e],i)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,i){var e,n,o,s,r,a,h=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(e=0,s=this._parts.length;e<s;e++)for(a=this._parts[e],n=0,r=a.length,o=r-1;n<r;o=n++)if((i||0!==n)&&Et(t,a[o],a[n])<=h)return!0;return!1}}),yn=vn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,i,e,n,o,s,r,a,h,u=this._rings[0],l=u.length;if(!l)return null;for(s=r=a=0,t=0,i=l-1;t<l;i=t++)e=u[t],n=u[i],o=e.y*n.x-n.y*e.x,r+=(e.x+n.x)*o,a+=(e.y+n.y)*o,s+=3*o;return h=0===s?u[0]:[r/s,a/s],this._map.layerPointToLatLng(h)},_convertLatLngs:function(t){var i=vn.prototype._convertLatLngs.call(this,t),e=i.length;return e>=2&&i[0]instanceof M&&i[0].equals(i[e-1])&&i.pop(),i},_setLatLngs:function(t){vn.prototype._setLatLngs.call(this,t),jt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return jt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,e=new x(i,i);if(t=new P(t.min.subtract(e),t.max.add(e)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t)){if(this.options.noClip)return void(this._parts=this._rings);for(var n,o=0,s=this._rings.length;o<s;o++)n=Wt(this._rings[o],t,!0),n.length&&this._parts.push(n)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var i,e,n,o,s,r,a,h,u=!1;if(!this._pxBounds.contains(t))return!1;for(o=0,a=this._parts.length;o<a;o++)for(i=this._parts[o],s=0,h=i.length,r=h-1;s<h;r=s++)e=i[s],n=i[r],e.y>t.y!=n.y>t.y&&t.x<(n.x-e.x)*(t.y-e.y)/(n.y-e.y)+e.x&&(u=!u);return u||vn.prototype._containsPoint.call(this,t,!0)}}),xn=un.extend({initialize:function(t,i){l(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i,e,n,o=mi(t)?t:t.features;if(o){for(i=0,e=o.length;i<e;i++)n=o[i],(n.geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var s=this.options;if(s.filter&&!s.filter(t))return this;var r=Kt(t,s);return r?(r.feature=ti(t),r.defaultOptions=r.options,this.resetStyle(r),s.onEachFeature&&s.onEachFeature(t,r),this.addLayer(r)):this},resetStyle:function(t){return t.options=i({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this},setStyle:function(t){return this.eachLayer(function(i){this._setLayerStyle(i,t)},this)},_setLayerStyle:function(t,i){"function"==typeof i&&(i=i(t.feature)),t.setStyle&&t.setStyle(i)}}),wn={toGeoJSON:function(t){return Qt(this,{type:"Point",coordinates:Jt(this.getLatLng(),t)})}};pn.include(wn),gn.include(wn),fn.include(wn),vn.include({toGeoJSON:function(t){var i=!jt(this._latlngs),e=$t(this._latlngs,i?1:0,!1,t);return Qt(this,{type:(i?"Multi":"")+"LineString",coordinates:e})}}),yn.include({toGeoJSON:function(t){var i=!jt(this._latlngs),e=i&&!jt(this._latlngs[0]),n=$t(this._latlngs,e?2:i?1:0,!0,t);return i||(n=[n]),Qt(this,{type:(e?"Multi":"")+"Polygon",coordinates:n})}}),an.include({toMultiPoint:function(t){var i=[];return this.eachLayer(function(e){i.push(e.toGeoJSON(t).geometry.coordinates)}),Qt(this,{type:"MultiPoint",coordinates:i})},toGeoJSON:function(t){var i=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===i)return this.toMultiPoint(t);var e="GeometryCollection"===i,n=[];return this.eachLayer(function(i){if(i.toGeoJSON){var o=i.toGeoJSON(t);if(e)n.push(o.geometry);else{var s=ti(o);"FeatureCollection"===s.type?n.push.apply(n,s.features):n.push(s)}}}),e?Qt(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var Ln=ii,Pn=rn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,i,e){this._url=t,this._bounds=z(i),l(this,e)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(pt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ut(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ct(this._image),this},bringToBack:function(){return this._map&&_t(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=t,this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._image=ht("img","leaflet-image-layer "+(this._zoomAnimated?"leaflet-zoom-animated":"")+(this.options.className||""));t.onselectstart=r,t.onmousemove=r,t.onload=e(this.fire,this,"load"),t.onerror=e(this._overlayOnError,this,"error"),this.options.crossOrigin&&(t.crossOrigin=""),this.options.zIndex&&this._updateZIndex(),t.src=this._url,t.alt=this.options.alt},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),e=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;wt(this._image,e,i)},_reset:function(){var t=this._image,i=new P(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),e=i.getSize();Lt(t,i.min),t.style.width=e.x+"px",t.style.height=e.y+"px"},_updateOpacity:function(){vt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)}}),bn=function(t,i,e){return new Pn(t,i,e)},Tn=Pn.extend({options:{autoplay:!0,loop:!0},_initImage:function(){var t=this._image=ht("video","leaflet-image-layer "+(this._zoomAnimated?"leaflet-zoom-animated":""));t.onselectstart=r,t.onmousemove=r,t.onloadeddata=e(this.fire,this,"load"),mi(this._url)||(this._url=[this._url]),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop;for(var i=0;i<this._url.length;i++){var n=ht("source");n.src=this._url[i],t.appendChild(n)}}}),zn=rn.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,i){l(this,t),this._source=i},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&vt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&vt(this._container,1),this.bringToFront()},onRemove:function(t){t._fadeAnimated?(vt(this._container,0),this._removeTimeout=setTimeout(e(ut,void 0,this._container),200)):ut(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=C(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ct(this._container),this},bringToBack:function(){return this._map&&_t(this._container),this},_updateContent:function(){if(this._content){var t=this._contentNode,i="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof i)t.innerHTML=i;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(i)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),i=w(this.options.offset),e=this._getAnchor();this._zoomAnimated?Lt(this._container,t.add(e)):i=i.add(t).add(e);var n=this._containerBottom=-i.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+i.x;this._container.style.bottom=n+"px",this._container.style.left=o+"px"}},_getAnchor:function(){return[0,0]}}),Mn=zn.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,className:""},openOn:function(t){return t.openPopup(this),this},onAdd:function(t){zn.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof mn||this._source.on("preclick",Y))},onRemove:function(t){zn.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof mn||this._source.off("preclick",Y))},getEvents:function(){var t=zn.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t="leaflet-popup",i=this._container=ht("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),e=this._wrapper=ht("div",t+"-content-wrapper",i);if(this._contentNode=ht("div",t+"-content",e),J(e),X(this._contentNode),V(e,"contextmenu",Y),this._tipContainer=ht("div",t+"-tip-container",i),this._tip=ht("div",t+"-tip",this._tipContainer),this.options.closeButton){var n=this._closeButton=ht("a",t+"-close-button",i);n.href="#close",n.innerHTML="&#215;",V(n,"click",this._onCloseButtonClick,this)}},_updateLayout:function(){var t=this._contentNode,i=t.style;i.width="",i.whiteSpace="nowrap";var e=t.offsetWidth;e=Math.min(e,this.options.maxWidth),e=Math.max(e,this.options.minWidth),i.width=e+1+"px",i.whiteSpace="",i.height="";var n=t.offsetHeight,o=this.options.maxHeight,s="leaflet-popup-scrolled";o&&n>o?(i.height=o+"px",pt(t,s)):mt(t,s),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),e=this._getAnchor();Lt(this._container,i.add(e))},_adjustPan:function(){if(!(!this.options.autoPan||this._map._panAnim&&this._map._panAnim._inProgress)){var t=this._map,i=parseInt(at(this._container,"marginBottom"),10)||0,e=this._container.offsetHeight+i,n=this._containerWidth,o=new x(this._containerLeft,-e-this._containerBottom);o._add(Pt(this._container));var s=t.layerPointToContainerPoint(o),r=w(this.options.autoPanPadding),a=w(this.options.autoPanPaddingTopLeft||r),h=w(this.options.autoPanPaddingBottomRight||r),u=t.getSize(),l=0,c=0;s.x+n+h.x>u.x&&(l=s.x+n-u.x+h.x),s.x-l-a.x<0&&(l=s.x-a.x),s.y+e+h.y>u.y&&(c=s.y+e-u.y+h.y),s.y-c-a.y<0&&(c=s.y-a.y),(l||c)&&t.fire("autopanstart").panBy([l,c])}},_onCloseButtonClick:function(t){this._close(),Q(t)},_getAnchor:function(){return w(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Cn=function(t,i){return new Mn(t,i)};ke.mergeOptions({closePopupOnClick:!0}),ke.include({openPopup:function(t,i,e){return t instanceof Mn||(t=new Mn(e).setContent(t)),i&&t.setLatLng(i),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),rn.include({bindPopup:function(t,i){return t instanceof Mn?(l(t,i),this._popup=t,t._source=this):(this._popup&&!i||(this._popup=new Mn(i,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,i){if(t instanceof rn||(i=t,t=this),t instanceof un)for(var e in this._layers){t=this._layers[e];break}return i||(i=t.getCenter?t.getCenter():t.getLatLng()),this._popup&&this._map&&(this._popup._source=t,this._popup.update(),this._map.openPopup(this._popup,i)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var i=t.layer||t.target;if(this._popup&&this._map)return Q(t),i instanceof mn?void this.openPopup(t.layer||t.target,t.latlng):void(this._map.hasLayer(this._popup)&&this._popup._source===i?this.closePopup():this.openPopup(i,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var Zn=zn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){zn.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){zn.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=zn.prototype.getEvents.call(this);return ie&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip",i=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ht("div",i)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i=this._map,e=this._container,n=i.latLngToContainerPoint(i.getCenter()),o=i.layerPointToContainerPoint(t),s=this.options.direction,r=e.offsetWidth,a=e.offsetHeight,h=w(this.options.offset),u=this._getAnchor();"top"===s?t=t.add(w(-r/2+h.x,-a+h.y+u.y,!0)):"bottom"===s?t=t.subtract(w(r/2-h.x,-h.y,!0)):"center"===s?t=t.subtract(w(r/2+h.x,a/2-u.y+h.y,!0)):"right"===s||"auto"===s&&o.x<n.x?(s="right",t=t.add(w(h.x+u.x,u.y-a/2+h.y,!0))):(s="left",t=t.subtract(w(r+u.x-h.x,a/2-u.y-h.y,!0))),mt(e,"leaflet-tooltip-right"),mt(e,"leaflet-tooltip-left"),mt(e,"leaflet-tooltip-top"),mt(e,"leaflet-tooltip-bottom"),pt(e,"leaflet-tooltip-"+s),Lt(e,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&vt(this._container,t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(i)},_getAnchor:function(){return w(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),En=function(t,i){return new Zn(t,i)};ke.include({openTooltip:function(t,i,e){return t instanceof Zn||(t=new Zn(e).setContent(t)),i&&t.setLatLng(i),this.hasLayer(t)?this:this.addLayer(t)},closeTooltip:function(t){return t&&this.removeLayer(t),this}}),rn.include({bindTooltip:function(t,i){return t instanceof Zn?(l(t,i),this._tooltip=t,t._source=this):(this._tooltip&&!i||(this._tooltip=new Zn(i,this)),this._tooltip.setContent(t)),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),
+this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var i=t?"off":"on",e={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?e.add=this._openTooltip:(e.mouseover=this._openTooltip,e.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(e.mousemove=this._moveTooltip),ie&&(e.click=this._openTooltip)),this[i](e),this._tooltipHandlersAdded=!t}},openTooltip:function(t,i){if(t instanceof rn||(i=t,t=this),t instanceof un)for(var e in this._layers){t=this._layers[e];break}return i||(i=t.getCenter?t.getCenter():t.getLatLng()),this._tooltip&&this._map&&(this._tooltip._source=t,this._tooltip.update(),this._map.openTooltip(this._tooltip,i),this._tooltip.options.interactive&&this._tooltip._container&&(pt(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(mt(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(t){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(t)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){var i=t.layer||t.target;this._tooltip&&this._map&&this.openTooltip(i,this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var i,e,n=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(i=this._map.mouseEventToContainerPoint(t.originalEvent),e=this._map.containerPointToLayerPoint(i),n=this._map.layerPointToLatLng(e)),this._tooltip.setLatLng(n)}});var Sn=cn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var i=t&&"DIV"===t.tagName?t:document.createElement("div"),e=this.options;if(i.innerHTML=e.html!==!1?e.html:"",e.bgPos){var n=w(e.bgPos);i.style.backgroundPosition=-n.x+"px "+-n.y+"px"}return this._setIconStyles(i,"icon"),i},createShadow:function(){return null}});cn.Default=_n;var kn=rn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Xi,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){l(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),ut(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=null},bringToFront:function(){return this._map&&(ct(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(_t(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=o(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof x?t:new x(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var i,e=this.getPane().children,n=-t(-(1/0),1/0),o=0,s=e.length;o<s;o++)i=e[o].style.zIndex,e[o]!==this._container&&i&&(n=t(n,+i));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Ii){vt(this._container,this.options.opacity);var t=+new Date,i=!1,e=!1;for(var n in this._tiles){var o=this._tiles[n];if(o.current&&o.loaded){var s=Math.min(1,(t-o.loaded)/200);vt(o.el,s),s<1?i=!0:(o.active?e=!0:this._onOpaqueTile(o),o.active=!0)}}e&&!this._noPrune&&this._pruneTiles(),i&&(g(this._fadeFrame),this._fadeFrame=f(this._updateOpacity,this))}},_onOpaqueTile:r,_initContainer:function(){this._container||(this._container=ht("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,i=this.options.maxZoom;if(void 0!==t){for(var e in this._levels)this._levels[e].el.children.length||e===t?(this._levels[e].el.style.zIndex=i-Math.abs(t-e),this._onUpdateLevel(e)):(ut(this._levels[e].el),this._removeTilesAtZoom(e),this._onRemoveLevel(e),delete this._levels[e]);var n=this._levels[t],o=this._map;return n||(n=this._levels[t]={},n.el=ht("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=i,n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,o.getCenter(),o.getZoom()),r(n.el.offsetWidth),this._onCreateLevel(n)),this._level=n,n}},_onUpdateLevel:r,_onRemoveLevel:r,_onCreateLevel:r,_pruneTiles:function(){if(this._map){var t,i,e=this._map.getZoom();if(e>this.options.maxZoom||e<this.options.minZoom)return void this._removeAllTiles();for(t in this._tiles)i=this._tiles[t],i.retain=i.current;for(t in this._tiles)if(i=this._tiles[t],i.current&&!i.active){var n=i.coords;this._retainParent(n.x,n.y,n.z,n.z-5)||this._retainChildren(n.x,n.y,n.z,n.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},_removeTilesAtZoom:function(t){for(var i in this._tiles)this._tiles[i].coords.z===t&&this._removeTile(i)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)ut(this._levels[t].el),this._onRemoveLevel(t),delete this._levels[t];this._removeAllTiles(),this._tileZoom=null},_retainParent:function(t,i,e,n){var o=Math.floor(t/2),s=Math.floor(i/2),r=e-1,a=new x(+o,+s);a.z=+r;var h=this._tileCoordsToKey(a),u=this._tiles[h];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),r>n&&this._retainParent(o,s,r,n))},_retainChildren:function(t,i,e,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*i;s<2*i+2;s++){var r=new x(o,s);r.z=e+1;var a=this._tileCoordsToKey(r),h=this._tiles[a];h&&h.active?h.retain=!0:(h&&h.loaded&&(h.retain=!0),e+1<n&&this._retainChildren(o,s,e+1,n))}},_resetView:function(t){var i=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),i,i)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var i=this.options;return void 0!==i.minNativeZoom&&t<i.minNativeZoom?i.minNativeZoom:void 0!==i.maxNativeZoom&&i.maxNativeZoom<t?i.maxNativeZoom:t},_setView:function(t,i,e,n){var o=this._clampZoom(Math.round(i));(void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom)&&(o=void 0);var s=this.options.updateWhenZooming&&o!==this._tileZoom;n&&!s||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),e||this._pruneTiles(),this._noPrune=!!e),this._setZoomTransforms(t,i)},_setZoomTransforms:function(t,i){for(var e in this._levels)this._setZoomTransform(this._levels[e],t,i)},_setZoomTransform:function(t,i,e){var n=this._map.getZoomScale(e,t.zoom),o=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(i,e)).round();Yi?wt(t.el,o,n):Lt(t.el,o)},_resetGrid:function(){var t=this._map,i=t.options.crs,e=this._tileSize=this.getTileSize(),n=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=i.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,i.wrapLng[0]],n).x/e.x),Math.ceil(t.project([0,i.wrapLng[1]],n).x/e.y)],this._wrapY=i.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([i.wrapLat[0],0],n).y/e.x),Math.ceil(t.project([i.wrapLat[1],0],n).y/e.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var i=this._map,e=i._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),n=i.getZoomScale(e,this._tileZoom),o=i.project(t,this._tileZoom).floor(),s=i.getSize().divideBy(2*n);return new P(o.subtract(s),o.add(s))},_update:function(t){var i=this._map;if(i){var e=this._clampZoom(i.getZoom());if(void 0===t&&(t=i.getCenter()),void 0!==this._tileZoom){var n=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(n),s=o.getCenter(),r=[],a=this.options.keepBuffer,h=new P(o.getBottomLeft().subtract([a,-a]),o.getTopRight().add([a,-a]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var l=this._tiles[u].coords;l.z===this._tileZoom&&h.contains(new x(l.x,l.y))||(this._tiles[u].current=!1)}if(Math.abs(e-this._tileZoom)>1)return void this._setView(t,e);for(var c=o.min.y;c<=o.max.y;c++)for(var _=o.min.x;_<=o.max.x;_++){var d=new x(_,c);d.z=this._tileZoom,this._isValidTile(d)&&(this._tiles[this._tileCoordsToKey(d)]||r.push(d))}if(r.sort(function(t,i){return t.distanceTo(s)-i.distanceTo(s)}),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var p=document.createDocumentFragment();for(_=0;_<r.length;_++)this._addTile(r[_],p);this._level.el.appendChild(p)}}}},_isValidTile:function(t){var i=this._map.options.crs;if(!i.infinite){var e=this._globalTileRange;if(!i.wrapLng&&(t.x<e.min.x||t.x>e.max.x)||!i.wrapLat&&(t.y<e.min.y||t.y>e.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return z(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToBounds:function(t){var i=this._map,e=this.getTileSize(),n=t.scaleBy(e),o=n.add(e),s=i.unproject(n,t.z),r=i.unproject(o,t.z),a=new T(s,r);return this.options.noWrap||i.wrapLatLngBounds(a),a},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var i=t.split(":"),e=new x(+i[0],+i[1]);return e.z=+i[2],e},_removeTile:function(t){var i=this._tiles[t];i&&(ut(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){pt(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px",t.style.height=i.y+"px",t.onselectstart=r,t.onmousemove=r,Ii&&this.options.opacity<1&&vt(t,this.options.opacity),Ri&&!Di&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,i){var n=this._getTilePos(t),o=this._tileCoordsToKey(t),s=this.createTile(this._wrapCoords(t),e(this._tileReady,this,t));this._initTile(s),this.createTile.length<2&&f(e(this._tileReady,this,t,null,s)),Lt(s,n),this._tiles[o]={el:s,coords:t,current:!0},i.appendChild(s),this.fire("tileloadstart",{tile:s,coords:t})},_tileReady:function(t,i,n){if(this._map){i&&this.fire("tileerror",{error:i,tile:n,coords:t});var o=this._tileCoordsToKey(t);n=this._tiles[o],n&&(n.loaded=+new Date,this._map._fadeAnimated?(vt(n.el,0),g(this._fadeFrame),this._fadeFrame=f(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),i||(pt(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ii||!this._map._fadeAnimated?f(this._pruneTiles,this):setTimeout(e(this._pruneTiles,this),250)))}},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new x(this._wrapX?s(t.x,this._wrapX):t.x,this._wrapY?s(t.y,this._wrapY):t.y);return i.z=t.z,i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new P(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),Bn=kn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,i){this._url=t,i=l(this,i),i.detectRetina&&oe&&i.maxZoom>0&&(i.tileSize=Math.floor(i.tileSize/2),i.zoomReverse?(i.zoomOffset--,i.minZoom++):(i.zoomOffset++,i.maxZoom--),i.minZoom=Math.max(0,i.minZoom)),"string"==typeof i.subdomains&&(i.subdomains=i.subdomains.split("")),Ri||this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){return this._url=t,i||this.redraw(),this},createTile:function(t,i){var n=document.createElement("img");return V(n,"load",e(this._tileOnLoad,this,i,n)),V(n,"error",e(this._tileOnError,this,i,n)),this.options.crossOrigin&&(n.crossOrigin=""),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:oe?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e["-y"]=n}return _(this._url,i(e,this.options))},_tileOnLoad:function(t,i){Ii?setTimeout(e(t,this,null,i),0):t(null,i)},_tileOnError:function(t,i,e){var n=this.options.errorTileUrl;n&&i.src!==n&&(i.src=n),t(e,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,i=this.options.maxZoom,e=this.options.zoomReverse,n=this.options.zoomOffset;return e&&(t=i-t),t+n},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&(i=this._tiles[t].el,i.onload=r,i.onerror=r,i.complete||(i.src=fi,ut(i)))}}),In=Bn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=i({},this.defaultWmsParams);for(var o in e)o in this.options||(n[o]=e[o]);e=l(this,e),n.width=n.height=e.tileSize*(e.detectRetina&&oe?2:1),this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var i=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[i]=this._crs.code,Bn.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToBounds(t),e=this._crs.project(i.getNorthWest()),n=this._crs.project(i.getSouthEast()),o=(this._wmsVersion>=1.3&&this._crs===on?[n.y,e.x,e.y,n.x]:[e.x,n.y,n.x,e.y]).join(","),s=Bn.prototype.getTileUrl.call(this,t);return s+c(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+o},setParams:function(t,e){return i(this.wmsParams,t),e||this.redraw(),this}});Bn.WMS=In,si.wms=ri;var An=rn.extend({options:{padding:.1},initialize:function(t){l(this,t),n(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&pt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,i){var e=this._map.getZoomScale(i,this._zoom),n=Pt(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,i),r=this._map.project(t,i),a=r.subtract(s),h=o.multiplyBy(-e).add(n).add(o).subtract(a);Yi?wt(this._container,h,e):Lt(this._container,h)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,i=this._map.getSize(),e=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new P(e,e.add(i.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),On=An.extend({getEvents:function(){var t=An.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){An.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");V(t,"mousemove",o(this._onMouseMove,32,this),this),V(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),V(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){delete this._ctx,ut(this._container),G(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var i in this._layers)t=this._layers[i],t._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){this._drawnLayers={},An.prototype._update.call(this);var t=this._bounds,i=this._container,e=t.getSize(),n=oe?2:1;Lt(i,t.min),i.width=n*e.x,i.height=n*e.y,i.style.width=e.x+"px",i.style.height=e.y+"px",oe&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){An.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[n(t)]=t;var i=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=i),this._drawLast=i,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order,e=i.next,n=i.prev;e?e.prev=n:this._drawLast=n,n?n.next=e:this._drawFirst=e,delete t._order,delete this._layers[L.stamp(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(t.options.dashArray){var i,e=t.options.dashArray.split(","),n=[];for(i=0;i<e.length;i++)n.push(Number(e[i]));t.options._dashArray=n}},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||f(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var i=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new P,this._redrawBounds.extend(t._pxBounds.min.subtract([i,i])),this._redrawBounds.extend(t._pxBounds.max.add([i,i]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var i=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,i.x,i.y)}else this._ctx.clearRect(0,0,this._container.width,this._container.height)},_draw:function(){var t,i=this._redrawBounds;if(this._ctx.save(),i){var e=i.getSize();this._ctx.beginPath(),this._ctx.rect(i.min.x,i.min.y,e.x,e.y),this._ctx.clip()}this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!i||t._pxBounds&&t._pxBounds.intersects(i))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,i){if(this._drawing){var e,n,o,s,r=t._parts,a=r.length,h=this._ctx;if(a){for(this._drawnLayers[t._leaflet_id]=t,h.beginPath(),e=0;e<a;e++){for(n=0,o=r[e].length;n<o;n++)s=r[e][n],h[n?"lineTo":"moveTo"](s.x,s.y);i&&h.closePath()}this._fillStroke(h,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var i=t._point,e=this._ctx,n=t._radius,o=(t._radiusY||n)/n;this._drawnLayers[t._leaflet_id]=t,1!==o&&(e.save(),e.scale(1,o)),e.beginPath(),e.arc(i.x,i.y/o,n,0,2*Math.PI,!1),1!==o&&e.restore(),this._fillStroke(e,t)}},_fillStroke:function(t,i){var e=i.options;e.fill&&(t.globalAlpha=e.fillOpacity,t.fillStyle=e.fillColor||e.color,t.fill(e.fillRule||"evenodd")),e.stroke&&0!==e.weight&&(t.setLineDash&&t.setLineDash(i.options&&i.options._dashArray||[]),t.globalAlpha=e.opacity,t.lineWidth=e.weight,t.strokeStyle=e.color,t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.stroke())},_onClick:function(t){for(var i,e,n=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)i=o.layer,i.options.interactive&&i._containsPoint(n)&&!this._map._draggableMoved(i)&&(e=i);e&&(et(t),this._fireEvent([e],t))},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var i=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,i)}},_handleMouseOut:function(t){var i=this._hoveredLayer;i&&(mt(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseout"),this._hoveredLayer=null)},_handleMouseHover:function(t,i){for(var e,n,o=this._drawFirst;o;o=o.next)e=o.layer,e.options.interactive&&e._containsPoint(i)&&(n=e);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(pt(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t)},_fireEvent:function(t,i,e){this._map._fireDOMEvent(i,e||i.type,t)},_bringToFront:function(t){var i=t._order,e=i.next,n=i.prev;e&&(e.prev=n,n?n.next=e:e&&(this._drawFirst=e),i.prev=this._drawLast,this._drawLast.next=i,i.next=null,this._drawLast=i,this._requestRedraw(t))},_bringToBack:function(t){var i=t._order,e=i.next,n=i.prev;n&&(n.next=e,e?e.prev=n:n&&(this._drawLast=n),i.prev=null,i.next=this._drawFirst,this._drawFirst.prev=i,this._drawFirst=i,this._requestRedraw(t))}}),Rn=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),Dn={_initContainer:function(){this._container=ht("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(An.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var i=t._container=Rn("shape");pt(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",t._path=Rn("path"),i.appendChild(t._path),this._updateStyle(t),this._layers[n(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i),t.options.interactive&&t.addInteractiveTarget(i)},_removePath:function(t){var i=t._container;ut(i),t.removeInteractiveTarget(i),delete this._layers[n(t)]},_updateStyle:function(t){var i=t._stroke,e=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(i||(i=t._stroke=Rn("stroke")),o.appendChild(i),i.weight=n.weight+"px",i.color=n.color,i.opacity=n.opacity,n.dashArray?i.dashStyle=mi(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):i.dashStyle="",i.endcap=n.lineCap.replace("butt","flat"),i.joinstyle=n.lineJoin):i&&(o.removeChild(i),t._stroke=null),n.fill?(e||(e=t._fill=Rn("fill")),o.appendChild(e),e.color=n.fillColor||n.color,e.opacity=n.fillOpacity):e&&(o.removeChild(e),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),e=Math.round(t._radius),n=Math.round(t._radiusY||e);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+e+","+n+" 0,23592600")},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){ct(t._container)},_bringToBack:function(t){_t(t._container)}},Nn=ae?Rn:S,jn=An.extend({getEvents:function(){var t=An.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=Nn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Nn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ut(this._container),G(this._container),delete this._container,delete this._rootGroup},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){An.prototype._update.call(this);var t=this._bounds,i=t.getSize(),e=this._container;this._svgSize&&this._svgSize.equals(i)||(this._svgSize=i,e.setAttribute("width",i.x),e.setAttribute("height",i.y)),Lt(e,t.min),e.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" ")),this.fire("update")}},_initPath:function(t){var i=t._path=Nn("path");t.options.className&&pt(i,t.options.className),t.options.interactive&&pt(i,"leaflet-interactive"),this._updateStyle(t),this._layers[n(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ut(t._path),t.removeInteractiveTarget(t._path),delete this._layers[n(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var i=t._path,e=t.options;i&&(e.stroke?(i.setAttribute("stroke",e.color),i.setAttribute("stroke-opacity",e.opacity),i.setAttribute("stroke-width",e.weight),i.setAttribute("stroke-linecap",e.lineCap),i.setAttribute("stroke-linejoin",e.lineJoin),e.dashArray?i.setAttribute("stroke-dasharray",e.dashArray):i.removeAttribute("stroke-dasharray"),e.dashOffset?i.setAttribute("stroke-dashoffset",e.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),e.fill?(i.setAttribute("fill",e.fillColor||e.color),i.setAttribute("fill-opacity",e.fillOpacity),i.setAttribute("fill-rule",e.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(t,i){this._setPath(t,k(t._parts,i))},_updateCircle:function(t){var i=t._point,e=t._radius,n=t._radiusY||e,o="a"+e+","+n+" 0 1,0 ",s=t._empty()?"M0 0":"M"+(i.x-e)+","+i.y+o+2*e+",0 "+o+2*-e+",0 ";this._setPath(t,s)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){ct(t._path)},_bringToBack:function(t){_t(t._path)}});ae&&jn.include(Dn),ke.include({getRenderer:function(t){var i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return i||(i=this._renderer=this.options.preferCanvas&&ai()||hi()),this.hasLayer(i)||this.addLayer(i),i},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var i=this._paneRenderers[t];return void 0===i&&(i=jn&&hi({pane:t})||On&&ai({pane:t}),this._paneRenderers[t]=i),i}});var Wn=yn.extend({initialize:function(t,i){yn.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=z(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});jn.create=Nn,jn.pointsToPath=k,xn.geometryToLayer=Kt,xn.coordsToLatLng=Yt,xn.coordsToLatLngs=Xt,xn.latLngToCoords=Jt,xn.latLngsToCoords=$t,xn.getFeature=Qt,xn.asFeature=ti,ke.mergeOptions({boxZoom:!0});var Hn=Ue.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){V(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){G(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ut(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){return!(!t.shiftKey||1!==t.which&&1!==t.button)&&(this._clearDeferredResetState(),this._resetState(),Mi(),bt(),this._startPoint=this._map.mouseEventToContainerPoint(t),void V(document,{contextmenu:Q,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this))},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=ht("div","leaflet-zoom-box",this._container),pt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var i=new P(this._point,this._startPoint),e=i.getSize();Lt(this._box,i.min),this._box.style.width=e.x+"px",this._box.style.height=e.y+"px"},_finish:function(){this._moved&&(ut(this._box),mt(this._container,"leaflet-crosshair")),Ci(),Tt(),G(document,{contextmenu:Q,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(e(this._resetState,this),0);var i=new T(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});ke.addInitHook("addHandler","boxZoom",Hn),ke.mergeOptions({doubleClickZoom:!0});var Fn=Ue.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,e=i.getZoom(),n=i.options.zoomDelta,o=t.originalEvent.shiftKey?e-n:e+n;"center"===i.options.doubleClickZoom?i.setZoom(o):i.setZoomAround(t.containerPoint,o)}});ke.addInitHook("addHandler","doubleClickZoom",Fn),ke.mergeOptions({dragging:!0,inertia:!Di,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Un=Ue.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new Xe(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}pt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){mt(this._map._container,"leaflet-grab"),mt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var i=z(this._map.options.maxBounds);this._offsetLimit=b(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var i=this._lastTime=+new Date,e=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(e),this._times.push(i),i-this._times[0]>50&&(this._positions.shift(),this._times.shift())}this._map.fire("move",t).fire("drag",t)},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),i=this._offsetLimit;t.x<i.min.x&&(t.x=this._viscousLimit(t.x,i.min.x)),t.y<i.min.y&&(t.y=this._viscousLimit(t.y,i.min.y)),t.x>i.max.x&&(t.x=this._viscousLimit(t.x,i.max.x)),t.y>i.max.y&&(t.y=this._viscousLimit(t.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(t);
+}},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),e=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-i+e)%t+i-e,s=(n+i+e)%t-i-e,r=Math.abs(o+e)<Math.abs(s+e)?o:s;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=r},_onDragEnd:function(t){var i=this._map,e=i.options,n=!e.inertia||this._times.length<2;if(i.fire("dragend",t),n)i.fire("moveend");else{var o=this._lastPos.subtract(this._positions[0]),s=(this._lastTime-this._times[0])/1e3,r=e.easeLinearity,a=o.multiplyBy(r/s),h=a.distanceTo([0,0]),u=Math.min(e.inertiaMaxSpeed,h),l=a.multiplyBy(u/h),c=u/(e.inertiaDeceleration*r),_=l.multiplyBy(-c/2).round();_.x||_.y?(_=i._limitOffset(_,i.options.maxBounds),f(function(){i.panBy(_,{duration:c,easeLinearity:r,noMoveStart:!0,animate:!0})})):i.fire("moveend")}}});ke.addInitHook("addHandler","dragging",Un),ke.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Vn=Ue.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),V(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),G(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,i=document.documentElement,e=t.scrollTop||i.scrollTop,n=t.scrollLeft||i.scrollLeft;this._map._container.focus(),window.scrollTo(n,e)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var i,e,n=this._panKeys={},o=this.keyCodes;for(i=0,e=o.left.length;i<e;i++)n[o.left[i]]=[-1*t,0];for(i=0,e=o.right.length;i<e;i++)n[o.right[i]]=[t,0];for(i=0,e=o.down.length;i<e;i++)n[o.down[i]]=[0,t];for(i=0,e=o.up.length;i<e;i++)n[o.up[i]]=[0,-1*t]},_setZoomDelta:function(t){var i,e,n=this._zoomKeys={},o=this.keyCodes;for(i=0,e=o.zoomIn.length;i<e;i++)n[o.zoomIn[i]]=t;for(i=0,e=o.zoomOut.length;i<e;i++)n[o.zoomOut[i]]=-t},_addHooks:function(){V(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){G(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var i,e=t.keyCode,n=this._map;if(e in this._panKeys){if(n._panAnim&&n._panAnim._inProgress)return;i=this._panKeys[e],t.shiftKey&&(i=w(i).multiplyBy(3)),n.panBy(i),n.options.maxBounds&&n.panInsideBounds(n.options.maxBounds)}else if(e in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e]);else{if(27!==e||!n._popup)return;n.closePopup()}Q(t)}}});ke.addInitHook("addHandler","keyboard",Vn),ke.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Gn=Ue.extend({addHooks:function(){V(this._map._container,"mousewheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){G(this._map._container,"mousewheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var i=it(t),n=this._map.options.wheelDebounceTime;this._delta+=i,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var o=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(e(this._performZoom,this),o),Q(t)},_performZoom:function(){var t=this._map,i=t.getZoom(),e=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,s=e?Math.ceil(o/e)*e:o,r=t._limitZoom(i+(this._delta>0?s:-s))-i;this._delta=0,this._startTime=null,r&&("center"===t.options.scrollWheelZoom?t.setZoom(i+r):t.setZoomAround(this._lastMousePos,i+r))}});ke.addInitHook("addHandler","scrollWheelZoom",Gn),ke.mergeOptions({tap:!0,tapTolerance:15});var qn=Ue.extend({addHooks:function(){V(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){G(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if($(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var i=t.touches[0],n=i.target;this._startPos=this._newPos=new x(i.clientX,i.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&pt(n,"leaflet-active"),this._holdTimeout=setTimeout(e(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",i))},this),1e3),this._simulateEvent("mousedown",i),V(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),G(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var i=t.changedTouches[0],e=i.target;e&&e.tagName&&"a"===e.tagName.toLowerCase()&&mt(e,"leaflet-active"),this._simulateEvent("mouseup",i),this._isTapValid()&&this._simulateEvent("click",i)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var i=t.touches[0];this._newPos=new x(i.clientX,i.clientY),this._simulateEvent("mousemove",i)},_simulateEvent:function(t,i){var e=document.createEvent("MouseEvents");e._simulated=!0,i.target._simulatedClick=!0,e.initMouseEvent(t,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),i.target.dispatchEvent(e)}});ie&&!te&&ke.addInitHook("addHandler","tap",qn),ke.mergeOptions({touchZoom:ie&&!Di,bounceAtZoomLimits:!0});var Kn=Ue.extend({addHooks:function(){pt(this._map._container,"leaflet-touch-zoom"),V(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){mt(this._map._container,"leaflet-touch-zoom"),G(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(t.touches&&2===t.touches.length&&!i._animatingZoom&&!this._zooming){var e=i.mouseEventToContainerPoint(t.touches[0]),n=i.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),"center"!==i.options.touchZoom&&(this._pinchStartLatLng=i.containerPointToLatLng(e.add(n)._divideBy(2))),this._startDist=e.distanceTo(n),this._startZoom=i.getZoom(),this._moved=!1,this._zooming=!0,i._stop(),V(document,"touchmove",this._onTouchMove,this),V(document,"touchend",this._onTouchEnd,this),$(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var i=this._map,n=i.mouseEventToContainerPoint(t.touches[0]),o=i.mouseEventToContainerPoint(t.touches[1]),s=n.distanceTo(o)/this._startDist;if(this._zoom=i.getScaleZoom(s,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&s<1||this._zoom>i.getMaxZoom()&&s>1)&&(this._zoom=i._limitZoom(this._zoom)),"center"===i.options.touchZoom){if(this._center=this._startLatLng,1===s)return}else{var r=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(1===s&&0===r.x&&0===r.y)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}this._moved||(i._moveStart(!0),this._moved=!0),g(this._animRequest);var a=e(i._move,i,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=f(a,this,!0),$(t)}},_onTouchEnd:function(){return this._moved&&this._zooming?(this._zooming=!1,g(this._animRequest),G(document,"touchmove",this._onTouchMove),G(document,"touchend",this._onTouchEnd),void(this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom)))):void(this._zooming=!1)}});ke.addInitHook("addHandler","touchZoom",Kn),ke.BoxZoom=Hn,ke.DoubleClickZoom=Fn,ke.Drag=Un,ke.Keyboard=Vn,ke.ScrollWheelZoom=Gn,ke.Tap=qn,ke.TouchZoom=Kn;var Yn=window.L;window.L=t,t.version=ci,t.noConflict=li,t.Control=Be,t.control=Ie,t.Browser=he,t.Evented=Li,t.Mixin=Ve,t.Util=xi,t.Class=v,t.Handler=Ue,t.extend=i,t.bind=e,t.stamp=n,t.setOptions=l,t.DomEvent=Pe,t.DomUtil=Ee,t.PosAnimation=Se,t.Draggable=Xe,t.LineUtil=Je,t.PolyUtil=$e,t.Point=x,t.point=w,t.Bounds=P,t.bounds=b,t.Transformation=Z,t.transformation=E,t.Projection=en,t.LatLng=M,t.latLng=C,t.LatLngBounds=T,t.latLngBounds=z,t.CRS=Pi,t.GeoJSON=xn,t.geoJSON=ii,t.geoJson=Ln,t.Layer=rn,t.LayerGroup=an,t.layerGroup=hn,t.FeatureGroup=un,t.featureGroup=ln,t.ImageOverlay=Pn,t.imageOverlay=bn,t.VideoOverlay=Tn,t.videoOverlay=ei,t.DivOverlay=zn,t.Popup=Mn,t.popup=Cn,t.Tooltip=Zn,t.tooltip=En,t.Icon=cn,t.icon=Ht,t.DivIcon=Sn,t.divIcon=ni,t.Marker=pn,t.marker=Ft,t.TileLayer=Bn,t.tileLayer=si,t.GridLayer=kn,t.gridLayer=oi,t.SVG=jn,t.svg=hi,t.Renderer=An,t.Canvas=On,t.canvas=ai,t.Path=mn,t.CircleMarker=fn,t.circleMarker=Ut,t.Circle=gn,t.circle=Vt,t.Polyline=vn,t.polyline=Gt,t.Polygon=yn,t.polygon=qt,t.Rectangle=Wn,t.rectangle=ui,t.Map=ke,t.map=Ct});
+//# sourceMappingURL=leaflet.js.map
Index: src/webapp/mapservice/src/templates/index.html
===================================================================
--- src/webapp/mapservice/src/templates/index.html	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
+++ src/webapp/mapservice/src/templates/index.html	(revision 3a89adb7682baa437eedbb87c5e1564511b7ce83)
@@ -0,0 +1,131 @@
+<!--
+    Copyright (C) 2016 - 2019 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+-->
+<!DOCTYPE HTML>
+<html>
+	<head profile="http://www.w3.org/2005/10/profile">
+		<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+		<meta name="viewport" content="width=device-width, initial-scale=1.0">
+		<link rel="icon" type="image/png" href="{{ url_for('static', filename = 'resources/gnuboat-256-256-transparent.png') }}"/>
+		<title>GNUBoat Web Application</title>
+		
+		<link rel="stylesheet" href="{{ url_for('static', filename = 'lib/css/pure/pure-min.css') }}" type="text/css"/>
+		<!--[if lte IE 8]>
+		<link rel="stylesheet" content="text/css" href="lib/css/pure/grids-responsive-old-ie-min.css">
+		<![endif]-->
+		<!--[if gt IE 8]><!-->
+		<link rel="stylesheet" content="text/css" href="{{ url_for('static', filename = 'lib/css/pure/grids-responsive-min.css') }}">
+		<!--<![endif]-->
+		<link rel="stylesheet" content="text/css" href="{{ url_for('static', filename = 'lib/css/leaflet/leaflet.css') }}"/>
+		
+		<script src="{{ url_for('static', filename = 'lib/js/jquery-3.2.1.min.js') }}" type="text/javascript"></script>
+		<script src="{{ url_for('static', filename = 'lib/js/jquery.validate.min.js') }}" type="text/javascript"></script>
+		<script src="{{ url_for('static', filename = 'lib/js/leaflet.js') }}" type="text/javascript"></script>
+		<script src="{{ url_for('static', filename = 'lib/js/js.cookie.js') }}"></script>
+		<!--<script src="lib/js/leaflet.hotline.min.js" type="text/javascript"></script>-->
+		
+		<link rel="stylesheet" href="{{ url_for('static', filename = 'css/GnuBoat.css') }}" type="text/css"/>
+		<link rel="stylesheet" href="{{ url_for('static', filename = 'css/side-menu.css') }}" type="text/css"/>
+		<script language="javascript" src="{{ url_for('static', filename = 'js/GnuBoat.js') }}" type="text/javascript"></script>
+		<script language="javascript" src="{{ url_for('static', filename = 'js/GnuBoat.Webserver.js') }}" type="text/javascript"></script>
+		<script language="javascript" type="text/javascript">
+			var active = 'active';
+			var layout = null;
+			var menu = null;
+			var menuLink = null;
+			var content = null;
+
+			function toggleAll() {
+				layout.toggleClass(active);
+				menu.toggleClass(active);
+				menuLink.toggleClass(active);
+			}
+
+			$(document).ready(function () {
+				layout   = $("#layout");
+				menu     = $("#menu");
+				menuLink = $("#menuLink");
+				content  = $("#main");
+
+				menuLink.click(function () {
+					toggleAll();
+				});
+
+				content.click(function() {
+					if (menu.hasClass(active)) {
+						toggleAll();
+					}
+				});
+				
+				GnuBoat.Webserver.initialize();
+				GnuBoat.Webserver.setServer("v1/");
+			});
+		</script>
+	</head>
+	<body>
+		<div id="layout" class="">
+			<a id="menuLink" class="menu-link" href="#menu"><!-- Hamburger icon --><span></span></a>
+			<div id="menu" class="">
+				<div class="pure-menu">
+					<a class="pure-menu-heading" href="#">GNUBoat</a>
+					<ul class="pure-menu-list">
+						<li class="pure-menu-item"><a id="linkMap" class="pure-menu-link" href="#map">Map</a></li>
+						<li class="pure-menu-item"><a class="pure-menu-link" href="#upload">Upload</a></li>
+						<li class="pure-menu-item"><a id="linkMyGnuboat" class="pure-menu-link" href="#mygnuboat">My GnuBoat</a></li>
+					</ul>
+				</div>
+			</div>
+			<div id="main">
+				<!--<div class="content">-->
+				<a name="map"></a>
+				<div id="mapViewport" class="viewportGeometry">
+					<div class="leaflet-top map-middle">
+						<div class="leaflet-control">
+							<img id="logo" src="{{ url_for('static', filename = 'resources/gnuboat-256-256-transparent.png') }}" />
+						</div>
+					</div>
+				</div>
+				<!--</div>-->
+				<div class="content">
+					<a name="mygnuboat"></a>
+					<div id="login">
+						<form id="loginForm" class="pure-form pure-form-aligned">
+							<fieldset>
+								<legend>Login</legend>
+								<div class="pure-control-group">
+									<label for="loginUsername">Username:</label>
+									<input id="loginUsername" type="text" name="loginUsername" value="" required>
+								</div>
+								<div class="pure-control-group">
+									<label for="loginPassword">Password:</label>
+									<input id="loginPassword" type="password" name="loginPassword" value="" required>
+								</div>
+								<input type="submit" class="pure-button pure-button-primary" name="loginButton" value="Login"/>
+							</fieldset>
+						</form>
+					</div>
+					<div id="myWaters">
+						<h2 class="content-subhead">My Waters</h2>
+						<form id="myWatersForm" class="pure-form">
+							<div id="myWatersDiv" class="pure-control-group">
+								
+							</div>
+						</form>
+					</div>
+				</div>
+			</div>
+	</body>
+</html>
Index: src/webapp/webserver/css/GnuBoat.css
===================================================================
--- src/webapp/webserver/css/GnuBoat.css	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,61 +1,0 @@
-/*
-    Copyright (C) 2016 - 2019 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
-
-    This program is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-
-@import url("GnuBoat.Colors.css");
-
-.l-box {
-	padding: 1em;
-}
-
-.leaflet-top {
-	top: 2.5em;
-}
-
-.map-middle {
-	right: 50%;
-}
-
-#logo {
-	height: auto;
-	width: 6em;
-}
-
-#message .error {
-	font-weight: bold;
-	color: var(--gnuboat-warning);
-}
-
-#message .info {
-	font-weight: bold;
-	color: var(--gnuboat-primary-dark);
-}
-
-.viewportGeometry {
-	width: -webkit-calc(100vw - 3em);
-	width:    -moz-calc(100vw - 3em);
-	width:         calc(100vw - 3em);
-	height: -webkit-calc(100vh - 3em);
-	height:    -moz-calc(100vh - 3em);
-	height:         calc(100vh - 3em);
-}
-
-#mapViewport {
-	border: 1px solid var(--gnuboat-primary-light);
-	margin-top: 1.5em;
-	margin-left: 1.5em;
-	background-color: white;
-}
Index: src/webapp/webserver/index.html
===================================================================
--- src/webapp/webserver/index.html	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,101 +1,0 @@
-<!--
-    Copyright (C) 2016 - 2019 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
-
-    This program is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program.  If not, see <http://www.gnu.org/licenses/>.
--->
-<!DOCTYPE HTML>
-<html>
-	<head profile="http://www.w3.org/2005/10/profile">
-		<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
-		<meta name="viewport" content="width=device-width, initial-scale=1.0">
-		<link rel="icon" type="image/png" href="resources/gnuboat-256-256-transparent.png"/>
-		<title>GNUBoat Web Application</title>
-		
-		<link rel="stylesheet" href="lib/css/pure/pure-min.css" type="text/css"/>
-		<!--[if lte IE 8]>
-		<link rel="stylesheet" content="text/css" href="lib/css/pure/grids-responsive-old-ie-min.css">
-		<![endif]-->
-		<!--[if gt IE 8]><!-->
-		<link rel="stylesheet" content="text/css" href="lib/css/pure/grids-responsive-min.css">
-		<!--<![endif]-->
-		<link rel="stylesheet" content="text/css" href="lib/css/leaflet/leaflet.css"/>
-		
-		<script src="lib/js/jquery-3.2.1.min.js" type="text/javascript"></script>
-		<script src="lib/js/leaflet.js" type="text/javascript"></script>
-		<!--<script src="lib/js/leaflet.hotline.min.js" type="text/javascript"></script>-->
-		
-		<link rel="stylesheet" href="css/GnuBoat.css" type="text/css"/>
-		<link rel="stylesheet" href="css/side-menu.css" type="text/css"/>
-		<script language="javascript" src="js/GnuBoat.js" type="text/javascript"></script>
-		<script language="javascript" src="js/GnuBoat.Webserver.js" type="text/javascript"></script>
-		<script language="javascript" type="text/javascript">
-			var active = 'active';
-			var layout = null;
-			var menu = null;
-			var menuLink = null;
-			var content = null;
-
-			function toggleAll() {
-				layout.toggleClass(active);
-				menu.toggleClass(active);
-				menuLink.toggleClass(active);
-			}
-
-			$(document).ready(function () {
-				layout   = $("#layout");
-				menu     = $("#menu");
-				menuLink = $("#menuLink");
-				content  = $("#main");
-
-				menuLink.click(function () {
-					toggleAll();
-				});
-
-				content.click(function() {
-					if (menu.hasClass(active)) {
-						toggleAll();
-					}
-				});
-				
-				GnuBoat.Webserver.initialize();
-			});
-		</script>
-	</head>
-	<body>
-		<div id="layout" class="">
-			<a id="menuLink" class="menu-link" href="#menu"><!-- Hamburger icon --><span></span></a>
-			<div id="menu" class="">
-				<div class="pure-menu">
-					<a class="pure-menu-heading" href="#">GNUBoat</a>
-					<ul class="pure-menu-list">
-						<li class="pure-menu-item"><a class="pure-menu-link" href="#map">Map</a></li>
-						<li class="pure-menu-item"><a class="pure-menu-link" href="#upload">Upload</a></li>
-						<li class="pure-menu-item"><a class="pure-menu-link" href="#mygnuboat">My GnuBoat</a></li>
-					</ul>
-				</div>
-			</div>
-			<div id="main">
-				<!--<div class="content">-->
-					<a name="map"></a>
-					<div id="mapViewport" class="viewportGeometry">
-						<div class="leaflet-top map-middle">
-							<div class="leaflet-control">
-								<img id="logo" src="resources/gnuboat-256-256-transparent.png" />
-							</div>
-						</div>
-					</div>
-					<!--</div>-->
-			</div>
-	</body>
-</html>
Index: src/webapp/webserver/js/GnuBoat.Webserver.js
===================================================================
--- src/webapp/webserver/js/GnuBoat.Webserver.js	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,74 +1,0 @@
-/*
-
-    Copyright (C) 2018 - 2019 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Lesser General Public
-    License as published by the Free Software Foundation; either
-    version 2.1 of the License, or (at your option) any later version.
-
-    This library is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Lesser General Public License for more details.
-
-    You should have received a copy of the GNU Lesser General Public
-    License along with this library; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
-    MA 02110-1301  USA.
-
-*/
-
-/** @namespace GnuBoat JavaScript namespace */
-var GnuBoat = GnuBoat || {};
-/** @namespace GnuBoat Webserver JavaScript namespace */
-GnuBoat.Webserver = GnuBoat.Webserver || {};
-
-GnuBoat.Webserver.initialize = function()
-{
-	GnuBoat.Webserver.private.mapSetup();
-}
-
-GnuBoat.Webserver.private = {
-	map: null,
-	mapSetup: function ()
-	{
-		GnuBoat.Webserver.private.map = L.map('mapViewport').setView([48.43, 10.04], 17);
-		
-		var layer_openstreetmap = L.tileLayer(
-			'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
-			{ attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>, <a href="http://www.openseamap.org">OpenSeaMap</a>, <a href="http://gnuboat.engsas.de">GNUBoat</a> contributors'}
-		).addTo(GnuBoat.Webserver.private.map);
-		var layer_openseamap = L.tileLayer(
-			'http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png',
-			{attribute: '&copy; <a href="http://www.openseamap.org">OpenSeaMap</a> contributors'}
-		).addTo(GnuBoat.Webserver.private.map);
-		
-		// add GNUBoat layers
-		var layer_gnuboat_accuracy_low = L.tileLayer(
-			'./tiles/gnuboat_10_100/{z}/{x}/{y}.png',
-			{tms: true, opacity: 0.5, zIndex: 98, attribute: '&copy; <a href="http://gnuboat.engsas.de">GNUBoat</a> contributors'}
-		);
-		var layer_gnuboat_accuracy_high = L.tileLayer(
-			'./tiles/gnuboat_100_100/{z}/{x}/{y}.png',
-			{tms: true, opacity: 0.5, zIndex: 98, attribute: '&copy; <a href="http://gnuboat.engsas.de">GNUBoat</a> contributors'}
-		).addTo(GnuBoat.Webserver.private.map);
-		
-		// add layer control
-		var baselayers = {
-			"Map": layer_openstreetmap,
-		};
-		// overlays
-		var overlays = {"Seamarks": layer_openseamap,
-			"GNUBoat Low Accuracy": layer_gnuboat_accuracy_low,
-			"GNUBoat High Accuracy": layer_gnuboat_accuracy_high,
-		};
-		GnuBoat.Webserver.private.mapControl = L.control.layers(
-			baselayers, overlays,
-			{hideSingleBase: true, sortLayers: true, }
-		).addTo(GnuBoat.Webserver.private.map);
-		
-		// add scale
-		L.control.scale().addTo(GnuBoat.Webserver.private.map);
-	}
-}
Index: src/webapp/webserver/lib/css/leaflet/leaflet.css
===================================================================
--- src/webapp/webserver/lib/css/leaflet/leaflet.css	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,631 +1,0 @@
-/* required styles */
-
-.leaflet-pane,
-.leaflet-tile,
-.leaflet-marker-icon,
-.leaflet-marker-shadow,
-.leaflet-tile-container,
-.leaflet-pane > svg,
-.leaflet-pane > canvas,
-.leaflet-zoom-box,
-.leaflet-image-layer,
-.leaflet-layer {
-	position: absolute;
-	left: 0;
-	top: 0;
-	}
-.leaflet-container {
-	overflow: hidden;
-	}
-.leaflet-tile,
-.leaflet-marker-icon,
-.leaflet-marker-shadow {
-	-webkit-user-select: none;
-	   -moz-user-select: none;
-	        user-select: none;
-	  -webkit-user-drag: none;
-	}
-/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
-.leaflet-safari .leaflet-tile {
-	image-rendering: -webkit-optimize-contrast;
-	}
-/* hack that prevents hw layers "stretching" when loading new tiles */
-.leaflet-safari .leaflet-tile-container {
-	width: 1600px;
-	height: 1600px;
-	-webkit-transform-origin: 0 0;
-	}
-.leaflet-marker-icon,
-.leaflet-marker-shadow {
-	display: block;
-	}
-/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
-/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
-.leaflet-container .leaflet-overlay-pane svg,
-.leaflet-container .leaflet-marker-pane img,
-.leaflet-container .leaflet-shadow-pane img,
-.leaflet-container .leaflet-tile-pane img,
-.leaflet-container img.leaflet-image-layer {
-	max-width: none !important;
-	}
-
-.leaflet-container.leaflet-touch-zoom {
-	-ms-touch-action: pan-x pan-y;
-	touch-action: pan-x pan-y;
-	}
-.leaflet-container.leaflet-touch-drag {
-	-ms-touch-action: pinch-zoom;
-	}
-.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
-	-ms-touch-action: none;
-	touch-action: none;
-}
-.leaflet-container {
-	-webkit-tap-highlight-color: transparent;
-}
-.leaflet-container a {
-	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
-}
-.leaflet-tile {
-	filter: inherit;
-	visibility: hidden;
-	}
-.leaflet-tile-loaded {
-	visibility: inherit;
-	}
-.leaflet-zoom-box {
-	width: 0;
-	height: 0;
-	-moz-box-sizing: border-box;
-	     box-sizing: border-box;
-	z-index: 800;
-	}
-/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
-.leaflet-overlay-pane svg {
-	-moz-user-select: none;
-	}
-
-.leaflet-pane         { z-index: 400; }
-
-.leaflet-tile-pane    { z-index: 200; }
-.leaflet-overlay-pane { z-index: 400; }
-.leaflet-shadow-pane  { z-index: 500; }
-.leaflet-marker-pane  { z-index: 600; }
-.leaflet-tooltip-pane   { z-index: 650; }
-.leaflet-popup-pane   { z-index: 700; }
-
-.leaflet-map-pane canvas { z-index: 100; }
-.leaflet-map-pane svg    { z-index: 200; }
-
-.leaflet-vml-shape {
-	width: 1px;
-	height: 1px;
-	}
-.lvml {
-	behavior: url(#default#VML);
-	display: inline-block;
-	position: absolute;
-	}
-
-
-/* control positioning */
-
-.leaflet-control {
-	position: relative;
-	z-index: 800;
-	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
-	pointer-events: auto;
-	}
-.leaflet-top,
-.leaflet-bottom {
-	position: absolute;
-	z-index: 1000;
-	pointer-events: none;
-	}
-.leaflet-top {
-	top: 0;
-	}
-.leaflet-right {
-	right: 0;
-	}
-.leaflet-bottom {
-	bottom: 0;
-	}
-.leaflet-left {
-	left: 0;
-	}
-.leaflet-control {
-	float: left;
-	clear: both;
-	}
-.leaflet-right .leaflet-control {
-	float: right;
-	}
-.leaflet-top .leaflet-control {
-	margin-top: 10px;
-	}
-.leaflet-bottom .leaflet-control {
-	margin-bottom: 10px;
-	}
-.leaflet-left .leaflet-control {
-	margin-left: 10px;
-	}
-.leaflet-right .leaflet-control {
-	margin-right: 10px;
-	}
-
-
-/* zoom and fade animations */
-
-.leaflet-fade-anim .leaflet-tile {
-	will-change: opacity;
-	}
-.leaflet-fade-anim .leaflet-popup {
-	opacity: 0;
-	-webkit-transition: opacity 0.2s linear;
-	   -moz-transition: opacity 0.2s linear;
-	     -o-transition: opacity 0.2s linear;
-	        transition: opacity 0.2s linear;
-	}
-.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
-	opacity: 1;
-	}
-.leaflet-zoom-animated {
-	-webkit-transform-origin: 0 0;
-	    -ms-transform-origin: 0 0;
-	        transform-origin: 0 0;
-	}
-.leaflet-zoom-anim .leaflet-zoom-animated {
-	will-change: transform;
-	}
-.leaflet-zoom-anim .leaflet-zoom-animated {
-	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
-	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
-	     -o-transition:      -o-transform 0.25s cubic-bezier(0,0,0.25,1);
-	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
-	}
-.leaflet-zoom-anim .leaflet-tile,
-.leaflet-pan-anim .leaflet-tile {
-	-webkit-transition: none;
-	   -moz-transition: none;
-	     -o-transition: none;
-	        transition: none;
-	}
-
-.leaflet-zoom-anim .leaflet-zoom-hide {
-	visibility: hidden;
-	}
-
-
-/* cursors */
-
-.leaflet-interactive {
-	cursor: pointer;
-	}
-.leaflet-grab {
-	cursor: -webkit-grab;
-	cursor:    -moz-grab;
-	}
-.leaflet-crosshair,
-.leaflet-crosshair .leaflet-interactive {
-	cursor: crosshair;
-	}
-.leaflet-popup-pane,
-.leaflet-control {
-	cursor: auto;
-	}
-.leaflet-dragging .leaflet-grab,
-.leaflet-dragging .leaflet-grab .leaflet-interactive,
-.leaflet-dragging .leaflet-marker-draggable {
-	cursor: move;
-	cursor: -webkit-grabbing;
-	cursor:    -moz-grabbing;
-	}
-
-/* marker & overlays interactivity */
-.leaflet-marker-icon,
-.leaflet-marker-shadow,
-.leaflet-image-layer,
-.leaflet-pane > svg path,
-.leaflet-tile-container {
-	pointer-events: none;
-	}
-
-.leaflet-marker-icon.leaflet-interactive,
-.leaflet-image-layer.leaflet-interactive,
-.leaflet-pane > svg path.leaflet-interactive {
-	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
-	pointer-events: auto;
-	}
-
-/* visual tweaks */
-
-.leaflet-container {
-	background: #ddd;
-	outline: 0;
-	}
-.leaflet-container a {
-	color: #0078A8;
-	}
-.leaflet-container a.leaflet-active {
-	outline: 2px solid orange;
-	}
-.leaflet-zoom-box {
-	border: 2px dotted #38f;
-	background: rgba(255,255,255,0.5);
-	}
-
-
-/* general typography */
-.leaflet-container {
-	font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
-	}
-
-
-/* general toolbar styles */
-
-.leaflet-bar {
-	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
-	border-radius: 4px;
-	}
-.leaflet-bar a,
-.leaflet-bar a:hover {
-	background-color: #fff;
-	border-bottom: 1px solid #ccc;
-	width: 26px;
-	height: 26px;
-	line-height: 26px;
-	display: block;
-	text-align: center;
-	text-decoration: none;
-	color: black;
-	}
-.leaflet-bar a,
-.leaflet-control-layers-toggle {
-	background-position: 50% 50%;
-	background-repeat: no-repeat;
-	display: block;
-	}
-.leaflet-bar a:hover {
-	background-color: #f4f4f4;
-	}
-.leaflet-bar a:first-child {
-	border-top-left-radius: 4px;
-	border-top-right-radius: 4px;
-	}
-.leaflet-bar a:last-child {
-	border-bottom-left-radius: 4px;
-	border-bottom-right-radius: 4px;
-	border-bottom: none;
-	}
-.leaflet-bar a.leaflet-disabled {
-	cursor: default;
-	background-color: #f4f4f4;
-	color: #bbb;
-	}
-
-.leaflet-touch .leaflet-bar a {
-	width: 30px;
-	height: 30px;
-	line-height: 30px;
-	}
-.leaflet-touch .leaflet-bar a:first-child {
-	border-top-left-radius: 2px;
-	border-top-right-radius: 2px;
-	}
-.leaflet-touch .leaflet-bar a:last-child {
-	border-bottom-left-radius: 2px;
-	border-bottom-right-radius: 2px;
-	}
-
-/* zoom control */
-
-.leaflet-control-zoom-in,
-.leaflet-control-zoom-out {
-	font: bold 18px 'Lucida Console', Monaco, monospace;
-	text-indent: 1px;
-	}
-
-.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
-	font-size: 22px;
-	}
-
-
-/* layers control */
-
-.leaflet-control-layers {
-	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
-	background: #fff;
-	border-radius: 5px;
-	}
-.leaflet-control-layers-toggle {
-	background-image: url(images/layers.png);
-	width: 36px;
-	height: 36px;
-	}
-.leaflet-retina .leaflet-control-layers-toggle {
-	background-image: url(images/layers-2x.png);
-	background-size: 26px 26px;
-	}
-.leaflet-touch .leaflet-control-layers-toggle {
-	width: 44px;
-	height: 44px;
-	}
-.leaflet-control-layers .leaflet-control-layers-list,
-.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
-	display: none;
-	}
-.leaflet-control-layers-expanded .leaflet-control-layers-list {
-	display: block;
-	position: relative;
-	}
-.leaflet-control-layers-expanded {
-	padding: 6px 10px 6px 6px;
-	color: #333;
-	background: #fff;
-	}
-.leaflet-control-layers-scrollbar {
-	overflow-y: scroll;
-	padding-right: 5px;
-	}
-.leaflet-control-layers-selector {
-	margin-top: 2px;
-	position: relative;
-	top: 1px;
-	}
-.leaflet-control-layers label {
-	display: block;
-	}
-.leaflet-control-layers-separator {
-	height: 0;
-	border-top: 1px solid #ddd;
-	margin: 5px -10px 5px -6px;
-	}
-
-/* Default icon URLs */
-.leaflet-default-icon-path {
-	background-image: url(images/marker-icon.png);
-	}
-
-
-/* attribution and scale controls */
-
-.leaflet-container .leaflet-control-attribution {
-	background: #fff;
-	background: rgba(255, 255, 255, 0.7);
-	margin: 0;
-	}
-.leaflet-control-attribution,
-.leaflet-control-scale-line {
-	padding: 0 5px;
-	color: #333;
-	}
-.leaflet-control-attribution a {
-	text-decoration: none;
-	}
-.leaflet-control-attribution a:hover {
-	text-decoration: underline;
-	}
-.leaflet-container .leaflet-control-attribution,
-.leaflet-container .leaflet-control-scale {
-	font-size: 11px;
-	}
-.leaflet-left .leaflet-control-scale {
-	margin-left: 5px;
-	}
-.leaflet-bottom .leaflet-control-scale {
-	margin-bottom: 5px;
-	}
-.leaflet-control-scale-line {
-	border: 2px solid #777;
-	border-top: none;
-	line-height: 1.1;
-	padding: 2px 5px 1px;
-	font-size: 11px;
-	white-space: nowrap;
-	overflow: hidden;
-	-moz-box-sizing: border-box;
-	     box-sizing: border-box;
-
-	background: #fff;
-	background: rgba(255, 255, 255, 0.5);
-	}
-.leaflet-control-scale-line:not(:first-child) {
-	border-top: 2px solid #777;
-	border-bottom: none;
-	margin-top: -2px;
-	}
-.leaflet-control-scale-line:not(:first-child):not(:last-child) {
-	border-bottom: 2px solid #777;
-	}
-
-.leaflet-touch .leaflet-control-attribution,
-.leaflet-touch .leaflet-control-layers,
-.leaflet-touch .leaflet-bar {
-	box-shadow: none;
-	}
-.leaflet-touch .leaflet-control-layers,
-.leaflet-touch .leaflet-bar {
-	border: 2px solid rgba(0,0,0,0.2);
-	background-clip: padding-box;
-	}
-
-
-/* popup */
-
-.leaflet-popup {
-	position: absolute;
-	text-align: center;
-	margin-bottom: 20px;
-	}
-.leaflet-popup-content-wrapper {
-	padding: 1px;
-	text-align: left;
-	border-radius: 12px;
-	}
-.leaflet-popup-content {
-	margin: 13px 19px;
-	line-height: 1.4;
-	}
-.leaflet-popup-content p {
-	margin: 18px 0;
-	}
-.leaflet-popup-tip-container {
-	width: 40px;
-	height: 20px;
-	position: absolute;
-	left: 50%;
-	margin-left: -20px;
-	overflow: hidden;
-	pointer-events: none;
-	}
-.leaflet-popup-tip {
-	width: 17px;
-	height: 17px;
-	padding: 1px;
-
-	margin: -10px auto 0;
-
-	-webkit-transform: rotate(45deg);
-	   -moz-transform: rotate(45deg);
-	    -ms-transform: rotate(45deg);
-	     -o-transform: rotate(45deg);
-	        transform: rotate(45deg);
-	}
-.leaflet-popup-content-wrapper,
-.leaflet-popup-tip {
-	background: white;
-	color: #333;
-	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
-	}
-.leaflet-container a.leaflet-popup-close-button {
-	position: absolute;
-	top: 0;
-	right: 0;
-	padding: 4px 4px 0 0;
-	border: none;
-	text-align: center;
-	width: 18px;
-	height: 14px;
-	font: 16px/14px Tahoma, Verdana, sans-serif;
-	color: #c3c3c3;
-	text-decoration: none;
-	font-weight: bold;
-	background: transparent;
-	}
-.leaflet-container a.leaflet-popup-close-button:hover {
-	color: #999;
-	}
-.leaflet-popup-scrolled {
-	overflow: auto;
-	border-bottom: 1px solid #ddd;
-	border-top: 1px solid #ddd;
-	}
-
-.leaflet-oldie .leaflet-popup-content-wrapper {
-	zoom: 1;
-	}
-.leaflet-oldie .leaflet-popup-tip {
-	width: 24px;
-	margin: 0 auto;
-
-	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
-	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
-	}
-.leaflet-oldie .leaflet-popup-tip-container {
-	margin-top: -1px;
-	}
-
-.leaflet-oldie .leaflet-control-zoom,
-.leaflet-oldie .leaflet-control-layers,
-.leaflet-oldie .leaflet-popup-content-wrapper,
-.leaflet-oldie .leaflet-popup-tip {
-	border: 1px solid #999;
-	}
-
-
-/* div icon */
-
-.leaflet-div-icon {
-	background: #fff;
-	border: 1px solid #666;
-	}
-
-
-/* Tooltip */
-/* Base styles for the element that has a tooltip */
-.leaflet-tooltip {
-	position: absolute;
-	padding: 6px;
-	background-color: #fff;
-	border: 1px solid #fff;
-	border-radius: 3px;
-	color: #222;
-	white-space: nowrap;
-	-webkit-user-select: none;
-	-moz-user-select: none;
-	-ms-user-select: none;
-	user-select: none;
-	pointer-events: none;
-	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
-	}
-.leaflet-tooltip.leaflet-clickable {
-	cursor: pointer;
-	pointer-events: auto;
-	}
-.leaflet-tooltip-top:before,
-.leaflet-tooltip-bottom:before,
-.leaflet-tooltip-left:before,
-.leaflet-tooltip-right:before {
-	position: absolute;
-	pointer-events: none;
-	border: 6px solid transparent;
-	background: transparent;
-	content: "";
-	}
-
-/* Directions */
-
-.leaflet-tooltip-bottom {
-	margin-top: 6px;
-}
-.leaflet-tooltip-top {
-	margin-top: -6px;
-}
-.leaflet-tooltip-bottom:before,
-.leaflet-tooltip-top:before {
-	left: 50%;
-	margin-left: -6px;
-	}
-.leaflet-tooltip-top:before {
-	bottom: 0;
-	margin-bottom: -12px;
-	border-top-color: #fff;
-	}
-.leaflet-tooltip-bottom:before {
-	top: 0;
-	margin-top: -12px;
-	margin-left: -6px;
-	border-bottom-color: #fff;
-	}
-.leaflet-tooltip-left {
-	margin-left: -6px;
-}
-.leaflet-tooltip-right {
-	margin-left: 6px;
-}
-.leaflet-tooltip-left:before,
-.leaflet-tooltip-right:before {
-	top: 50%;
-	margin-top: -6px;
-	}
-.leaflet-tooltip-left:before {
-	right: 0;
-	margin-right: -12px;
-	border-left-color: #fff;
-	}
-.leaflet-tooltip-right:before {
-	left: 0;
-	margin-left: -12px;
-	border-right-color: #fff;
-	}
Index: src/webapp/webserver/lib/css/pure/base-context-min.css
===================================================================
--- src/webapp/webserver/lib/css/pure/base-context-min.css	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,11 +1,0 @@
-/*!
-Pure v1.0.0
-Copyright 2013 Yahoo!
-Licensed under the BSD License.
-https://github.com/yahoo/pure/blob/master/LICENSE.md
-*/
-/*!
-normalize.css v^3.0 | MIT License | git.io/normalize
-Copyright (c) Nicolas Gallagher and Jonathan Neal
-*/
-/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */.pure{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;margin:0}.pure article,.pure aside,.pure details,.pure figcaption,.pure figure,.pure footer,.pure header,.pure hgroup,.pure main,.pure menu,.pure nav,.pure section,.pure summary{display:block}.pure audio,.pure canvas,.pure progress,.pure video{display:inline-block;vertical-align:baseline}.pure audio:not([controls]){display:none;height:0}.pure [hidden],.pure template{display:none}.pure a{background-color:transparent}.pure a:active,.pure a:hover{outline:0}.pure abbr[title]{border-bottom:1px dotted}.pure b,.pure strong{font-weight:700}.pure dfn{font-style:italic}.pure h1{font-size:2em;margin:.67em 0}.pure mark{background:#ff0;color:#000}.pure small{font-size:80%}.pure sub,.pure sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.pure sup{top:-.5em}.pure sub{bottom:-.25em}.pure img{border:0}.pure svg:not(:root){overflow:hidden}.pure figure{margin:1em 40px}.pure hr{box-sizing:content-box;height:0}.pure pre{overflow:auto}.pure code,.pure kbd,.pure pre,.pure samp{font-family:monospace,monospace;font-size:1em}.pure button,.pure input,.pure optgroup,.pure select,.pure textarea{color:inherit;font:inherit;margin:0}.pure button{overflow:visible}.pure button,.pure select{text-transform:none}.pure button,.pure input[type=button],.pure input[type=reset],.pure input[type=submit]{-webkit-appearance:button;cursor:pointer}.pure button[disabled],.pure input[disabled]{cursor:default}.pure button::-moz-focus-inner,.pure input::-moz-focus-inner{border:0;padding:0}.pure input{line-height:normal}.pure input[type=checkbox],.pure input[type=radio]{box-sizing:border-box;padding:0}.pure input[type=number]::-webkit-inner-spin-button,.pure input[type=number]::-webkit-outer-spin-button{height:auto}.pure input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}.pure input[type=search]::-webkit-search-cancel-button,.pure input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.pure fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}.pure legend{border:0;padding:0}.pure textarea{overflow:auto}.pure optgroup{font-weight:700}.pure table{border-collapse:collapse;border-spacing:0}.pure td,.pure th{padding:0}.pure .hidden,.pure [hidden]{display:none!important}.pure .pure-img{max-width:100%;height:auto;display:block}
Index: src/webapp/webserver/lib/css/pure/base-min.css
===================================================================
--- src/webapp/webserver/lib/css/pure/base-min.css	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,11 +1,0 @@
-/*!
-Pure v1.0.0
-Copyright 2013 Yahoo!
-Licensed under the BSD License.
-https://github.com/yahoo/pure/blob/master/LICENSE.md
-*/
-/*!
-normalize.css v^3.0 | MIT License | git.io/normalize
-Copyright (c) Nicolas Gallagher and Jonathan Neal
-*/
-/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */img,legend{border:0}legend,td,th{padding:0}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,optgroup,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre,textarea{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}table{border-collapse:collapse;border-spacing:0}.hidden,[hidden]{display:none!important}.pure-img{max-width:100%;height:auto;display:block}
Index: src/webapp/webserver/lib/css/pure/buttons-core-min.css
===================================================================
--- src/webapp/webserver/lib/css/pure/buttons-core-min.css	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,7 +1,0 @@
-/*!
-Pure v1.0.0
-Copyright 2013 Yahoo!
-Licensed under the BSD License.
-https://github.com/yahoo/pure/blob/master/LICENSE.md
-*/
-.pure-button{display:inline-block;zoom:1;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-group{letter-spacing:-.31em;text-rendering:optimizespeed}.opera-only :-o-prefocus,.pure-button-group{word-spacing:-.43em}.pure-button-group .pure-button{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}
Index: src/webapp/webserver/lib/css/pure/buttons-min.css
===================================================================
--- src/webapp/webserver/lib/css/pure/buttons-min.css	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,7 +1,0 @@
-/*!
-Pure v1.0.0
-Copyright 2013 Yahoo!
-Licensed under the BSD License.
-https://github.com/yahoo/pure/blob/master/LICENSE.md
-*/
-.pure-button{display:inline-block;zoom:1;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-group{letter-spacing:-.31em;text-rendering:optimizespeed}.opera-only :-o-prefocus,.pure-button-group{word-spacing:-.43em}.pure-button{font-family:inherit;font-size:100%;padding:.5em 1em;color:#444;color:rgba(0,0,0,.8);border:1px solid #999;border:transparent;background-color:#E6E6E6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:focus,.pure-button:hover{filter:alpha(opacity=90);background-image:-webkit-linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1));background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.pure-button:focus{outline:0}.pure-button-active,.pure-button:active{box-shadow:0 0 0 1px rgba(0,0,0,.15) inset,0 0 6px rgba(0,0,0,.2) inset;border-color:#000\9}.pure-button-disabled,.pure-button-disabled:active,.pure-button-disabled:focus,.pure-button-disabled:hover,.pure-button[disabled]{border:none;background-image:none;filter:alpha(opacity=40);opacity:.4;cursor:not-allowed;box-shadow:none;pointer-events:none}.pure-button-hidden{display:none}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#0078e7;color:#fff}.pure-button-group .pure-button{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto;margin:0;border-radius:0;border-right:1px solid #111;border-right:1px solid rgba(0,0,0,.2)}.pure-button-group .pure-button:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}.pure-button-group .pure-button:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:none}
Index: src/webapp/webserver/lib/css/pure/forms-min.css
===================================================================
--- src/webapp/webserver/lib/css/pure/forms-min.css	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,7 +1,0 @@
-/*!
-Pure v1.0.0
-Copyright 2013 Yahoo!
-Licensed under the BSD License.
-https://github.com/yahoo/pure/blob/master/LICENSE.md
-*/
-.pure-form input[type=text],.pure-form input[type=number],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=color],.pure-form input[type=password],.pure-form input[type=email],.pure-form input[type=url],.pure-form input[type=date],.pure-form input[type=month],.pure-form input[type=time],.pure-form input[type=datetime],.pure-form input[type=datetime-local],.pure-form input[type=week],.pure-form select,.pure-form textarea{padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;vertical-align:middle;box-sizing:border-box}.pure-form input:not([type]){padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;box-sizing:border-box}.pure-form input[type=color]{padding:.2em .5em}.pure-form input:not([type]):focus,.pure-form input[type=text]:focus,.pure-form input[type=number]:focus,.pure-form input[type=search]:focus,.pure-form input[type=tel]:focus,.pure-form input[type=color]:focus,.pure-form input[type=password]:focus,.pure-form input[type=email]:focus,.pure-form input[type=url]:focus,.pure-form input[type=date]:focus,.pure-form input[type=month]:focus,.pure-form input[type=time]:focus,.pure-form input[type=datetime]:focus,.pure-form input[type=datetime-local]:focus,.pure-form input[type=week]:focus,.pure-form select:focus,.pure-form textarea:focus{outline:0;border-color:#129FEA}.pure-form input[type=file]:focus,.pure-form input[type=radio]:focus,.pure-form input[type=checkbox]:focus{outline:#129FEA auto 1px}.pure-form .pure-checkbox,.pure-form .pure-radio{margin:.5em 0;display:block}.pure-form input:not([type])[disabled],.pure-form input[type=text][disabled],.pure-form input[type=number][disabled],.pure-form input[type=search][disabled],.pure-form input[type=tel][disabled],.pure-form input[type=color][disabled],.pure-form input[type=password][disabled],.pure-form input[type=email][disabled],.pure-form input[type=url][disabled],.pure-form input[type=date][disabled],.pure-form input[type=month][disabled],.pure-form input[type=time][disabled],.pure-form input[type=datetime][disabled],.pure-form input[type=datetime-local][disabled],.pure-form input[type=week][disabled],.pure-form select[disabled],.pure-form textarea[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input[readonly],.pure-form select[readonly],.pure-form textarea[readonly]{background-color:#eee;color:#777;border-color:#ccc}.pure-form input:focus:invalid,.pure-form select:focus:invalid,.pure-form textarea:focus:invalid{color:#b94a48;border-color:#e9322d}.pure-form input[type=file]:focus:invalid:focus,.pure-form input[type=radio]:focus:invalid:focus,.pure-form input[type=checkbox]:focus:invalid:focus{outline-color:#e9322d}.pure-form select{height:2.25em;border:1px solid #ccc;background-color:#fff}.pure-form select[multiple]{height:auto}.pure-form label{margin:.5em 0 .2em}.pure-form fieldset{margin:0;padding:.35em 0 .75em;border:0}.pure-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.pure-form-stacked input:not([type]),.pure-form-stacked input[type=text],.pure-form-stacked input[type=number],.pure-form-stacked input[type=search],.pure-form-stacked input[type=tel],.pure-form-stacked input[type=color],.pure-form-stacked input[type=file],.pure-form-stacked input[type=password],.pure-form-stacked input[type=email],.pure-form-stacked input[type=url],.pure-form-stacked input[type=date],.pure-form-stacked input[type=month],.pure-form-stacked input[type=time],.pure-form-stacked input[type=datetime],.pure-form-stacked input[type=datetime-local],.pure-form-stacked input[type=week],.pure-form-stacked label,.pure-form-stacked select,.pure-form-stacked textarea{display:block;margin:.25em 0}.pure-form-aligned .pure-help-inline,.pure-form-aligned input,.pure-form-aligned select,.pure-form-aligned textarea,.pure-form-message-inline{display:inline-block;vertical-align:middle}.pure-form-aligned textarea{vertical-align:top}.pure-form-aligned .pure-control-group{margin-bottom:.5em}.pure-form-aligned .pure-control-group label{text-align:right;display:inline-block;vertical-align:middle;width:10em;margin:0 1em 0 0}.pure-form-aligned .pure-controls{margin:1.5em 0 0 11em}.pure-form .pure-input-rounded,.pure-form input.pure-input-rounded{border-radius:2em;padding:.5em 1em}.pure-form .pure-group fieldset{margin-bottom:10px}.pure-form .pure-group input,.pure-form .pure-group textarea{display:block;padding:10px;margin:0 0 -1px;border-radius:0;position:relative;top:-1px}.pure-form .pure-group input:focus,.pure-form .pure-group textarea:focus{z-index:3}.pure-form .pure-group input:first-child,.pure-form .pure-group textarea:first-child{top:1px;border-radius:4px 4px 0 0;margin:0}.pure-form .pure-group input:first-child:last-child,.pure-form .pure-group textarea:first-child:last-child{top:1px;border-radius:4px;margin:0}.pure-form .pure-group input:last-child,.pure-form .pure-group textarea:last-child{top:-2px;border-radius:0 0 4px 4px;margin:0}.pure-form .pure-group button{margin:.35em 0}.pure-form .pure-input-1{width:100%}.pure-form .pure-input-3-4{width:75%}.pure-form .pure-input-2-3{width:66%}.pure-form .pure-input-1-2{width:50%}.pure-form .pure-input-1-3{width:33%}.pure-form .pure-input-1-4{width:25%}.pure-form .pure-help-inline,.pure-form-message-inline{display:inline-block;padding-left:.3em;color:#666;vertical-align:middle;font-size:.875em}.pure-form-message{display:block;color:#666;font-size:.875em}@media only screen and (max-width :480px){.pure-form button[type=submit]{margin:.7em 0 0}.pure-form input:not([type]),.pure-form input[type=text],.pure-form input[type=number],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=color],.pure-form input[type=password],.pure-form input[type=email],.pure-form input[type=url],.pure-form input[type=date],.pure-form input[type=month],.pure-form input[type=time],.pure-form input[type=datetime],.pure-form input[type=datetime-local],.pure-form input[type=week],.pure-form label{margin-bottom:.3em;display:block}.pure-group input:not([type]),.pure-group input[type=text],.pure-group input[type=number],.pure-group input[type=search],.pure-group input[type=tel],.pure-group input[type=color],.pure-group input[type=password],.pure-group input[type=email],.pure-group input[type=url],.pure-group input[type=date],.pure-group input[type=month],.pure-group input[type=time],.pure-group input[type=datetime],.pure-group input[type=datetime-local],.pure-group input[type=week]{margin-bottom:0}.pure-form-aligned .pure-control-group label{margin-bottom:.3em;text-align:left;display:block;width:100%}.pure-form-aligned .pure-controls{margin:1.5em 0 0}.pure-form .pure-help-inline,.pure-form-message,.pure-form-message-inline{display:block;font-size:.75em;padding:.2em 0 .8em}}
Index: src/webapp/webserver/lib/css/pure/forms-nr-min.css
===================================================================
--- src/webapp/webserver/lib/css/pure/forms-nr-min.css	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,7 +1,0 @@
-/*!
-Pure v1.0.0
-Copyright 2013 Yahoo!
-Licensed under the BSD License.
-https://github.com/yahoo/pure/blob/master/LICENSE.md
-*/
-.pure-form input[type=text],.pure-form input[type=number],.pure-form input[type=search],.pure-form input[type=tel],.pure-form input[type=color],.pure-form input[type=password],.pure-form input[type=email],.pure-form input[type=url],.pure-form input[type=date],.pure-form input[type=month],.pure-form input[type=time],.pure-form input[type=datetime],.pure-form input[type=datetime-local],.pure-form input[type=week],.pure-form select,.pure-form textarea{padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;vertical-align:middle;box-sizing:border-box}.pure-form input:not([type]){padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;box-sizing:border-box}.pure-form input[type=color]{padding:.2em .5em}.pure-form input:not([type]):focus,.pure-form input[type=text]:focus,.pure-form input[type=number]:focus,.pure-form input[type=search]:focus,.pure-form input[type=tel]:focus,.pure-form input[type=color]:focus,.pure-form input[type=password]:focus,.pure-form input[type=email]:focus,.pure-form input[type=url]:focus,.pure-form input[type=date]:focus,.pure-form input[type=month]:focus,.pure-form input[type=time]:focus,.pure-form input[type=datetime]:focus,.pure-form input[type=datetime-local]:focus,.pure-form input[type=week]:focus,.pure-form select:focus,.pure-form textarea:focus{outline:0;border-color:#129FEA}.pure-form input[type=file]:focus,.pure-form input[type=radio]:focus,.pure-form input[type=checkbox]:focus{outline:#129FEA auto 1px}.pure-form .pure-checkbox,.pure-form .pure-radio{margin:.5em 0;display:block}.pure-form input:not([type])[disabled],.pure-form input[type=text][disabled],.pure-form input[type=number][disabled],.pure-form input[type=search][disabled],.pure-form input[type=tel][disabled],.pure-form input[type=color][disabled],.pure-form input[type=password][disabled],.pure-form input[type=email][disabled],.pure-form input[type=url][disabled],.pure-form input[type=date][disabled],.pure-form input[type=month][disabled],.pure-form input[type=time][disabled],.pure-form input[type=datetime][disabled],.pure-form input[type=datetime-local][disabled],.pure-form input[type=week][disabled],.pure-form select[disabled],.pure-form textarea[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input[readonly],.pure-form select[readonly],.pure-form textarea[readonly]{background-color:#eee;color:#777;border-color:#ccc}.pure-form input:focus:invalid,.pure-form select:focus:invalid,.pure-form textarea:focus:invalid{color:#b94a48;border-color:#e9322d}.pure-form input[type=file]:focus:invalid:focus,.pure-form input[type=radio]:focus:invalid:focus,.pure-form input[type=checkbox]:focus:invalid:focus{outline-color:#e9322d}.pure-form select{height:2.25em;border:1px solid #ccc;background-color:#fff}.pure-form select[multiple]{height:auto}.pure-form label{margin:.5em 0 .2em}.pure-form fieldset{margin:0;padding:.35em 0 .75em;border:0}.pure-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.pure-form-stacked input:not([type]),.pure-form-stacked input[type=text],.pure-form-stacked input[type=number],.pure-form-stacked input[type=search],.pure-form-stacked input[type=tel],.pure-form-stacked input[type=color],.pure-form-stacked input[type=file],.pure-form-stacked input[type=password],.pure-form-stacked input[type=email],.pure-form-stacked input[type=url],.pure-form-stacked input[type=date],.pure-form-stacked input[type=month],.pure-form-stacked input[type=time],.pure-form-stacked input[type=datetime],.pure-form-stacked input[type=datetime-local],.pure-form-stacked input[type=week],.pure-form-stacked label,.pure-form-stacked select,.pure-form-stacked textarea{display:block;margin:.25em 0}.pure-form-aligned .pure-help-inline,.pure-form-aligned input,.pure-form-aligned select,.pure-form-aligned textarea,.pure-form-message-inline{display:inline-block;vertical-align:middle}.pure-form-aligned textarea{vertical-align:top}.pure-form-aligned .pure-control-group{margin-bottom:.5em}.pure-form-aligned .pure-control-group label{text-align:right;display:inline-block;vertical-align:middle;width:10em;margin:0 1em 0 0}.pure-form-aligned .pure-controls{margin:1.5em 0 0 11em}.pure-form .pure-input-rounded,.pure-form input.pure-input-rounded{border-radius:2em;padding:.5em 1em}.pure-form .pure-group fieldset{margin-bottom:10px}.pure-form .pure-group input,.pure-form .pure-group textarea{display:block;padding:10px;margin:0 0 -1px;border-radius:0;position:relative;top:-1px}.pure-form .pure-group input:focus,.pure-form .pure-group textarea:focus{z-index:3}.pure-form .pure-group input:first-child,.pure-form .pure-group textarea:first-child{top:1px;border-radius:4px 4px 0 0;margin:0}.pure-form .pure-group input:first-child:last-child,.pure-form .pure-group textarea:first-child:last-child{top:1px;border-radius:4px;margin:0}.pure-form .pure-group input:last-child,.pure-form .pure-group textarea:last-child{top:-2px;border-radius:0 0 4px 4px;margin:0}.pure-form .pure-group button{margin:.35em 0}.pure-form .pure-input-1{width:100%}.pure-form .pure-input-3-4{width:75%}.pure-form .pure-input-2-3{width:66%}.pure-form .pure-input-1-2{width:50%}.pure-form .pure-input-1-3{width:33%}.pure-form .pure-input-1-4{width:25%}.pure-form .pure-help-inline,.pure-form-message-inline{display:inline-block;padding-left:.3em;color:#666;vertical-align:middle;font-size:.875em}.pure-form-message{display:block;color:#666;font-size:.875em}
Index: src/webapp/webserver/lib/css/pure/grids-core-min.css
===================================================================
--- src/webapp/webserver/lib/css/pure/grids-core-min.css	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,7 +1,0 @@
-/*!
-Pure v1.0.0
-Copyright 2013 Yahoo!
-Licensed under the BSD License.
-https://github.com/yahoo/pure/blob/master/LICENSE.md
-*/
-.pure-g{letter-spacing:-.31em;text-rendering:optimizespeed;font-family:FreeSans,Arimo,"Droid Sans",Helvetica,Arial,sans-serif;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-align-content:flex-start;-ms-flex-line-pack:start;align-content:flex-start}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){table .pure-g{display:block}}.opera-only :-o-prefocus,.pure-g{word-spacing:-.43em}.pure-u{display:inline-block;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-g [class*=pure-u]{font-family:sans-serif}
Index: src/webapp/webserver/lib/css/pure/grids-min.css
===================================================================
--- src/webapp/webserver/lib/css/pure/grids-min.css	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,7 +1,0 @@
-/*!
-Pure v1.0.0
-Copyright 2013 Yahoo!
-Licensed under the BSD License.
-https://github.com/yahoo/pure/blob/master/LICENSE.md
-*/
-.pure-g{letter-spacing:-.31em;text-rendering:optimizespeed;font-family:FreeSans,Arimo,"Droid Sans",Helvetica,Arial,sans-serif;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-align-content:flex-start;-ms-flex-line-pack:start;align-content:flex-start}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){table .pure-g{display:block}}.opera-only :-o-prefocus,.pure-g{word-spacing:-.43em}.pure-u,.pure-u-1,.pure-u-1-1,.pure-u-1-12,.pure-u-1-2,.pure-u-1-24,.pure-u-1-3,.pure-u-1-4,.pure-u-1-5,.pure-u-1-6,.pure-u-1-8,.pure-u-10-24,.pure-u-11-12,.pure-u-11-24,.pure-u-12-24,.pure-u-13-24,.pure-u-14-24,.pure-u-15-24,.pure-u-16-24,.pure-u-17-24,.pure-u-18-24,.pure-u-19-24,.pure-u-2-24,.pure-u-2-3,.pure-u-2-5,.pure-u-20-24,.pure-u-21-24,.pure-u-22-24,.pure-u-23-24,.pure-u-24-24,.pure-u-3-24,.pure-u-3-4,.pure-u-3-5,.pure-u-3-8,.pure-u-4-24,.pure-u-4-5,.pure-u-5-12,.pure-u-5-24,.pure-u-5-5,.pure-u-5-6,.pure-u-5-8,.pure-u-6-24,.pure-u-7-12,.pure-u-7-24,.pure-u-7-8,.pure-u-8-24,.pure-u-9-24{display:inline-block;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-g [class*=pure-u]{font-family:sans-serif}.pure-u-1-24{width:4.1667%}.pure-u-1-12,.pure-u-2-24{width:8.3333%}.pure-u-1-8,.pure-u-3-24{width:12.5%}.pure-u-1-6,.pure-u-4-24{width:16.6667%}.pure-u-1-5{width:20%}.pure-u-5-24{width:20.8333%}.pure-u-1-4,.pure-u-6-24{width:25%}.pure-u-7-24{width:29.1667%}.pure-u-1-3,.pure-u-8-24{width:33.3333%}.pure-u-3-8,.pure-u-9-24{width:37.5%}.pure-u-2-5{width:40%}.pure-u-10-24,.pure-u-5-12{width:41.6667%}.pure-u-11-24{width:45.8333%}.pure-u-1-2,.pure-u-12-24{width:50%}.pure-u-13-24{width:54.1667%}.pure-u-14-24,.pure-u-7-12{width:58.3333%}.pure-u-3-5{width:60%}.pure-u-15-24,.pure-u-5-8{width:62.5%}.pure-u-16-24,.pure-u-2-3{width:66.6667%}.pure-u-17-24{width:70.8333%}.pure-u-18-24,.pure-u-3-4{width:75%}.pure-u-19-24{width:79.1667%}.pure-u-4-5{width:80%}.pure-u-20-24,.pure-u-5-6{width:83.3333%}.pure-u-21-24,.pure-u-7-8{width:87.5%}.pure-u-11-12,.pure-u-22-24{width:91.6667%}.pure-u-23-24{width:95.8333%}.pure-u-1,.pure-u-1-1,.pure-u-24-24,.pure-u-5-5{width:100%}
Index: src/webapp/webserver/lib/css/pure/grids-responsive-min.css
===================================================================
--- src/webapp/webserver/lib/css/pure/grids-responsive-min.css	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,7 +1,0 @@
-/*!
-Pure v1.0.0
-Copyright 2013 Yahoo!
-Licensed under the BSD License.
-https://github.com/yahoo/pure/blob/master/LICENSE.md
-*/
-@media screen and (min-width:35.5em){.pure-u-sm-1,.pure-u-sm-1-1,.pure-u-sm-1-12,.pure-u-sm-1-2,.pure-u-sm-1-24,.pure-u-sm-1-3,.pure-u-sm-1-4,.pure-u-sm-1-5,.pure-u-sm-1-6,.pure-u-sm-1-8,.pure-u-sm-10-24,.pure-u-sm-11-12,.pure-u-sm-11-24,.pure-u-sm-12-24,.pure-u-sm-13-24,.pure-u-sm-14-24,.pure-u-sm-15-24,.pure-u-sm-16-24,.pure-u-sm-17-24,.pure-u-sm-18-24,.pure-u-sm-19-24,.pure-u-sm-2-24,.pure-u-sm-2-3,.pure-u-sm-2-5,.pure-u-sm-20-24,.pure-u-sm-21-24,.pure-u-sm-22-24,.pure-u-sm-23-24,.pure-u-sm-24-24,.pure-u-sm-3-24,.pure-u-sm-3-4,.pure-u-sm-3-5,.pure-u-sm-3-8,.pure-u-sm-4-24,.pure-u-sm-4-5,.pure-u-sm-5-12,.pure-u-sm-5-24,.pure-u-sm-5-5,.pure-u-sm-5-6,.pure-u-sm-5-8,.pure-u-sm-6-24,.pure-u-sm-7-12,.pure-u-sm-7-24,.pure-u-sm-7-8,.pure-u-sm-8-24,.pure-u-sm-9-24{display:inline-block;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-sm-1-24{width:4.1667%}.pure-u-sm-1-12,.pure-u-sm-2-24{width:8.3333%}.pure-u-sm-1-8,.pure-u-sm-3-24{width:12.5%}.pure-u-sm-1-6,.pure-u-sm-4-24{width:16.6667%}.pure-u-sm-1-5{width:20%}.pure-u-sm-5-24{width:20.8333%}.pure-u-sm-1-4,.pure-u-sm-6-24{width:25%}.pure-u-sm-7-24{width:29.1667%}.pure-u-sm-1-3,.pure-u-sm-8-24{width:33.3333%}.pure-u-sm-3-8,.pure-u-sm-9-24{width:37.5%}.pure-u-sm-2-5{width:40%}.pure-u-sm-10-24,.pure-u-sm-5-12{width:41.6667%}.pure-u-sm-11-24{width:45.8333%}.pure-u-sm-1-2,.pure-u-sm-12-24{width:50%}.pure-u-sm-13-24{width:54.1667%}.pure-u-sm-14-24,.pure-u-sm-7-12{width:58.3333%}.pure-u-sm-3-5{width:60%}.pure-u-sm-15-24,.pure-u-sm-5-8{width:62.5%}.pure-u-sm-16-24,.pure-u-sm-2-3{width:66.6667%}.pure-u-sm-17-24{width:70.8333%}.pure-u-sm-18-24,.pure-u-sm-3-4{width:75%}.pure-u-sm-19-24{width:79.1667%}.pure-u-sm-4-5{width:80%}.pure-u-sm-20-24,.pure-u-sm-5-6{width:83.3333%}.pure-u-sm-21-24,.pure-u-sm-7-8{width:87.5%}.pure-u-sm-11-12,.pure-u-sm-22-24{width:91.6667%}.pure-u-sm-23-24{width:95.8333%}.pure-u-sm-1,.pure-u-sm-1-1,.pure-u-sm-24-24,.pure-u-sm-5-5{width:100%}}@media screen and (min-width:48em){.pure-u-md-1,.pure-u-md-1-1,.pure-u-md-1-12,.pure-u-md-1-2,.pure-u-md-1-24,.pure-u-md-1-3,.pure-u-md-1-4,.pure-u-md-1-5,.pure-u-md-1-6,.pure-u-md-1-8,.pure-u-md-10-24,.pure-u-md-11-12,.pure-u-md-11-24,.pure-u-md-12-24,.pure-u-md-13-24,.pure-u-md-14-24,.pure-u-md-15-24,.pure-u-md-16-24,.pure-u-md-17-24,.pure-u-md-18-24,.pure-u-md-19-24,.pure-u-md-2-24,.pure-u-md-2-3,.pure-u-md-2-5,.pure-u-md-20-24,.pure-u-md-21-24,.pure-u-md-22-24,.pure-u-md-23-24,.pure-u-md-24-24,.pure-u-md-3-24,.pure-u-md-3-4,.pure-u-md-3-5,.pure-u-md-3-8,.pure-u-md-4-24,.pure-u-md-4-5,.pure-u-md-5-12,.pure-u-md-5-24,.pure-u-md-5-5,.pure-u-md-5-6,.pure-u-md-5-8,.pure-u-md-6-24,.pure-u-md-7-12,.pure-u-md-7-24,.pure-u-md-7-8,.pure-u-md-8-24,.pure-u-md-9-24{display:inline-block;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-md-1-24{width:4.1667%}.pure-u-md-1-12,.pure-u-md-2-24{width:8.3333%}.pure-u-md-1-8,.pure-u-md-3-24{width:12.5%}.pure-u-md-1-6,.pure-u-md-4-24{width:16.6667%}.pure-u-md-1-5{width:20%}.pure-u-md-5-24{width:20.8333%}.pure-u-md-1-4,.pure-u-md-6-24{width:25%}.pure-u-md-7-24{width:29.1667%}.pure-u-md-1-3,.pure-u-md-8-24{width:33.3333%}.pure-u-md-3-8,.pure-u-md-9-24{width:37.5%}.pure-u-md-2-5{width:40%}.pure-u-md-10-24,.pure-u-md-5-12{width:41.6667%}.pure-u-md-11-24{width:45.8333%}.pure-u-md-1-2,.pure-u-md-12-24{width:50%}.pure-u-md-13-24{width:54.1667%}.pure-u-md-14-24,.pure-u-md-7-12{width:58.3333%}.pure-u-md-3-5{width:60%}.pure-u-md-15-24,.pure-u-md-5-8{width:62.5%}.pure-u-md-16-24,.pure-u-md-2-3{width:66.6667%}.pure-u-md-17-24{width:70.8333%}.pure-u-md-18-24,.pure-u-md-3-4{width:75%}.pure-u-md-19-24{width:79.1667%}.pure-u-md-4-5{width:80%}.pure-u-md-20-24,.pure-u-md-5-6{width:83.3333%}.pure-u-md-21-24,.pure-u-md-7-8{width:87.5%}.pure-u-md-11-12,.pure-u-md-22-24{width:91.6667%}.pure-u-md-23-24{width:95.8333%}.pure-u-md-1,.pure-u-md-1-1,.pure-u-md-24-24,.pure-u-md-5-5{width:100%}}@media screen and (min-width:64em){.pure-u-lg-1,.pure-u-lg-1-1,.pure-u-lg-1-12,.pure-u-lg-1-2,.pure-u-lg-1-24,.pure-u-lg-1-3,.pure-u-lg-1-4,.pure-u-lg-1-5,.pure-u-lg-1-6,.pure-u-lg-1-8,.pure-u-lg-10-24,.pure-u-lg-11-12,.pure-u-lg-11-24,.pure-u-lg-12-24,.pure-u-lg-13-24,.pure-u-lg-14-24,.pure-u-lg-15-24,.pure-u-lg-16-24,.pure-u-lg-17-24,.pure-u-lg-18-24,.pure-u-lg-19-24,.pure-u-lg-2-24,.pure-u-lg-2-3,.pure-u-lg-2-5,.pure-u-lg-20-24,.pure-u-lg-21-24,.pure-u-lg-22-24,.pure-u-lg-23-24,.pure-u-lg-24-24,.pure-u-lg-3-24,.pure-u-lg-3-4,.pure-u-lg-3-5,.pure-u-lg-3-8,.pure-u-lg-4-24,.pure-u-lg-4-5,.pure-u-lg-5-12,.pure-u-lg-5-24,.pure-u-lg-5-5,.pure-u-lg-5-6,.pure-u-lg-5-8,.pure-u-lg-6-24,.pure-u-lg-7-12,.pure-u-lg-7-24,.pure-u-lg-7-8,.pure-u-lg-8-24,.pure-u-lg-9-24{display:inline-block;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-lg-1-24{width:4.1667%}.pure-u-lg-1-12,.pure-u-lg-2-24{width:8.3333%}.pure-u-lg-1-8,.pure-u-lg-3-24{width:12.5%}.pure-u-lg-1-6,.pure-u-lg-4-24{width:16.6667%}.pure-u-lg-1-5{width:20%}.pure-u-lg-5-24{width:20.8333%}.pure-u-lg-1-4,.pure-u-lg-6-24{width:25%}.pure-u-lg-7-24{width:29.1667%}.pure-u-lg-1-3,.pure-u-lg-8-24{width:33.3333%}.pure-u-lg-3-8,.pure-u-lg-9-24{width:37.5%}.pure-u-lg-2-5{width:40%}.pure-u-lg-10-24,.pure-u-lg-5-12{width:41.6667%}.pure-u-lg-11-24{width:45.8333%}.pure-u-lg-1-2,.pure-u-lg-12-24{width:50%}.pure-u-lg-13-24{width:54.1667%}.pure-u-lg-14-24,.pure-u-lg-7-12{width:58.3333%}.pure-u-lg-3-5{width:60%}.pure-u-lg-15-24,.pure-u-lg-5-8{width:62.5%}.pure-u-lg-16-24,.pure-u-lg-2-3{width:66.6667%}.pure-u-lg-17-24{width:70.8333%}.pure-u-lg-18-24,.pure-u-lg-3-4{width:75%}.pure-u-lg-19-24{width:79.1667%}.pure-u-lg-4-5{width:80%}.pure-u-lg-20-24,.pure-u-lg-5-6{width:83.3333%}.pure-u-lg-21-24,.pure-u-lg-7-8{width:87.5%}.pure-u-lg-11-12,.pure-u-lg-22-24{width:91.6667%}.pure-u-lg-23-24{width:95.8333%}.pure-u-lg-1,.pure-u-lg-1-1,.pure-u-lg-24-24,.pure-u-lg-5-5{width:100%}}@media screen and (min-width:80em){.pure-u-xl-1,.pure-u-xl-1-1,.pure-u-xl-1-12,.pure-u-xl-1-2,.pure-u-xl-1-24,.pure-u-xl-1-3,.pure-u-xl-1-4,.pure-u-xl-1-5,.pure-u-xl-1-6,.pure-u-xl-1-8,.pure-u-xl-10-24,.pure-u-xl-11-12,.pure-u-xl-11-24,.pure-u-xl-12-24,.pure-u-xl-13-24,.pure-u-xl-14-24,.pure-u-xl-15-24,.pure-u-xl-16-24,.pure-u-xl-17-24,.pure-u-xl-18-24,.pure-u-xl-19-24,.pure-u-xl-2-24,.pure-u-xl-2-3,.pure-u-xl-2-5,.pure-u-xl-20-24,.pure-u-xl-21-24,.pure-u-xl-22-24,.pure-u-xl-23-24,.pure-u-xl-24-24,.pure-u-xl-3-24,.pure-u-xl-3-4,.pure-u-xl-3-5,.pure-u-xl-3-8,.pure-u-xl-4-24,.pure-u-xl-4-5,.pure-u-xl-5-12,.pure-u-xl-5-24,.pure-u-xl-5-5,.pure-u-xl-5-6,.pure-u-xl-5-8,.pure-u-xl-6-24,.pure-u-xl-7-12,.pure-u-xl-7-24,.pure-u-xl-7-8,.pure-u-xl-8-24,.pure-u-xl-9-24{display:inline-block;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-xl-1-24{width:4.1667%}.pure-u-xl-1-12,.pure-u-xl-2-24{width:8.3333%}.pure-u-xl-1-8,.pure-u-xl-3-24{width:12.5%}.pure-u-xl-1-6,.pure-u-xl-4-24{width:16.6667%}.pure-u-xl-1-5{width:20%}.pure-u-xl-5-24{width:20.8333%}.pure-u-xl-1-4,.pure-u-xl-6-24{width:25%}.pure-u-xl-7-24{width:29.1667%}.pure-u-xl-1-3,.pure-u-xl-8-24{width:33.3333%}.pure-u-xl-3-8,.pure-u-xl-9-24{width:37.5%}.pure-u-xl-2-5{width:40%}.pure-u-xl-10-24,.pure-u-xl-5-12{width:41.6667%}.pure-u-xl-11-24{width:45.8333%}.pure-u-xl-1-2,.pure-u-xl-12-24{width:50%}.pure-u-xl-13-24{width:54.1667%}.pure-u-xl-14-24,.pure-u-xl-7-12{width:58.3333%}.pure-u-xl-3-5{width:60%}.pure-u-xl-15-24,.pure-u-xl-5-8{width:62.5%}.pure-u-xl-16-24,.pure-u-xl-2-3{width:66.6667%}.pure-u-xl-17-24{width:70.8333%}.pure-u-xl-18-24,.pure-u-xl-3-4{width:75%}.pure-u-xl-19-24{width:79.1667%}.pure-u-xl-4-5{width:80%}.pure-u-xl-20-24,.pure-u-xl-5-6{width:83.3333%}.pure-u-xl-21-24,.pure-u-xl-7-8{width:87.5%}.pure-u-xl-11-12,.pure-u-xl-22-24{width:91.6667%}.pure-u-xl-23-24{width:95.8333%}.pure-u-xl-1,.pure-u-xl-1-1,.pure-u-xl-24-24,.pure-u-xl-5-5{width:100%}}
Index: src/webapp/webserver/lib/css/pure/grids-responsive-old-ie-min.css
===================================================================
--- src/webapp/webserver/lib/css/pure/grids-responsive-old-ie-min.css	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,7 +1,0 @@
-/*!
-Pure v1.0.0
-Copyright 2013 Yahoo!
-Licensed under the BSD License.
-https://github.com/yahoo/pure/blob/master/LICENSE.md
-*/
-.pure-u-lg-1,.pure-u-lg-1-1,.pure-u-lg-1-12,.pure-u-lg-1-2,.pure-u-lg-1-24,.pure-u-lg-1-3,.pure-u-lg-1-4,.pure-u-lg-1-5,.pure-u-lg-1-6,.pure-u-lg-1-8,.pure-u-lg-10-24,.pure-u-lg-11-12,.pure-u-lg-11-24,.pure-u-lg-12-24,.pure-u-lg-13-24,.pure-u-lg-14-24,.pure-u-lg-15-24,.pure-u-lg-16-24,.pure-u-lg-17-24,.pure-u-lg-18-24,.pure-u-lg-19-24,.pure-u-lg-2-24,.pure-u-lg-2-3,.pure-u-lg-2-5,.pure-u-lg-20-24,.pure-u-lg-21-24,.pure-u-lg-22-24,.pure-u-lg-23-24,.pure-u-lg-24-24,.pure-u-lg-3-24,.pure-u-lg-3-4,.pure-u-lg-3-5,.pure-u-lg-3-8,.pure-u-lg-4-24,.pure-u-lg-4-5,.pure-u-lg-5-12,.pure-u-lg-5-24,.pure-u-lg-5-5,.pure-u-lg-5-6,.pure-u-lg-5-8,.pure-u-lg-6-24,.pure-u-lg-7-12,.pure-u-lg-7-24,.pure-u-lg-7-8,.pure-u-lg-8-24,.pure-u-lg-9-24,.pure-u-md-1,.pure-u-md-1-1,.pure-u-md-1-12,.pure-u-md-1-2,.pure-u-md-1-24,.pure-u-md-1-3,.pure-u-md-1-4,.pure-u-md-1-5,.pure-u-md-1-6,.pure-u-md-1-8,.pure-u-md-10-24,.pure-u-md-11-12,.pure-u-md-11-24,.pure-u-md-12-24,.pure-u-md-13-24,.pure-u-md-14-24,.pure-u-md-15-24,.pure-u-md-16-24,.pure-u-md-17-24,.pure-u-md-18-24,.pure-u-md-19-24,.pure-u-md-2-24,.pure-u-md-2-3,.pure-u-md-2-5,.pure-u-md-20-24,.pure-u-md-21-24,.pure-u-md-22-24,.pure-u-md-23-24,.pure-u-md-24-24,.pure-u-md-3-24,.pure-u-md-3-4,.pure-u-md-3-5,.pure-u-md-3-8,.pure-u-md-4-24,.pure-u-md-4-5,.pure-u-md-5-12,.pure-u-md-5-24,.pure-u-md-5-5,.pure-u-md-5-6,.pure-u-md-5-8,.pure-u-md-6-24,.pure-u-md-7-12,.pure-u-md-7-24,.pure-u-md-7-8,.pure-u-md-8-24,.pure-u-md-9-24,.pure-u-sm-1,.pure-u-sm-1-1,.pure-u-sm-1-12,.pure-u-sm-1-2,.pure-u-sm-1-24,.pure-u-sm-1-3,.pure-u-sm-1-4,.pure-u-sm-1-5,.pure-u-sm-1-6,.pure-u-sm-1-8,.pure-u-sm-10-24,.pure-u-sm-11-12,.pure-u-sm-11-24,.pure-u-sm-12-24,.pure-u-sm-13-24,.pure-u-sm-14-24,.pure-u-sm-15-24,.pure-u-sm-16-24,.pure-u-sm-17-24,.pure-u-sm-18-24,.pure-u-sm-19-24,.pure-u-sm-2-24,.pure-u-sm-2-3,.pure-u-sm-2-5,.pure-u-sm-20-24,.pure-u-sm-21-24,.pure-u-sm-22-24,.pure-u-sm-23-24,.pure-u-sm-24-24,.pure-u-sm-3-24,.pure-u-sm-3-4,.pure-u-sm-3-5,.pure-u-sm-3-8,.pure-u-sm-4-24,.pure-u-sm-4-5,.pure-u-sm-5-12,.pure-u-sm-5-24,.pure-u-sm-5-5,.pure-u-sm-5-6,.pure-u-sm-5-8,.pure-u-sm-6-24,.pure-u-sm-7-12,.pure-u-sm-7-24,.pure-u-sm-7-8,.pure-u-sm-8-24,.pure-u-sm-9-24{display:inline-block;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-sm-1-24{width:4.1667%}.pure-u-sm-1-12,.pure-u-sm-2-24{width:8.3333%}.pure-u-sm-1-8,.pure-u-sm-3-24{width:12.5%}.pure-u-sm-1-6,.pure-u-sm-4-24{width:16.6667%}.pure-u-sm-1-5{width:20%}.pure-u-sm-5-24{width:20.8333%}.pure-u-sm-1-4,.pure-u-sm-6-24{width:25%}.pure-u-sm-7-24{width:29.1667%}.pure-u-sm-1-3,.pure-u-sm-8-24{width:33.3333%}.pure-u-sm-3-8,.pure-u-sm-9-24{width:37.5%}.pure-u-sm-2-5{width:40%}.pure-u-sm-10-24,.pure-u-sm-5-12{width:41.6667%}.pure-u-sm-11-24{width:45.8333%}.pure-u-sm-1-2,.pure-u-sm-12-24{width:50%}.pure-u-sm-13-24{width:54.1667%}.pure-u-sm-14-24,.pure-u-sm-7-12{width:58.3333%}.pure-u-sm-3-5{width:60%}.pure-u-sm-15-24,.pure-u-sm-5-8{width:62.5%}.pure-u-sm-16-24,.pure-u-sm-2-3{width:66.6667%}.pure-u-sm-17-24{width:70.8333%}.pure-u-sm-18-24,.pure-u-sm-3-4{width:75%}.pure-u-sm-19-24{width:79.1667%}.pure-u-sm-4-5{width:80%}.pure-u-sm-20-24,.pure-u-sm-5-6{width:83.3333%}.pure-u-sm-21-24,.pure-u-sm-7-8{width:87.5%}.pure-u-sm-11-12,.pure-u-sm-22-24{width:91.6667%}.pure-u-sm-23-24{width:95.8333%}.pure-u-sm-1,.pure-u-sm-1-1,.pure-u-sm-24-24,.pure-u-sm-5-5{width:100%}.pure-u-md-1-24{width:4.1667%}.pure-u-md-1-12,.pure-u-md-2-24{width:8.3333%}.pure-u-md-1-8,.pure-u-md-3-24{width:12.5%}.pure-u-md-1-6,.pure-u-md-4-24{width:16.6667%}.pure-u-md-1-5{width:20%}.pure-u-md-5-24{width:20.8333%}.pure-u-md-1-4,.pure-u-md-6-24{width:25%}.pure-u-md-7-24{width:29.1667%}.pure-u-md-1-3,.pure-u-md-8-24{width:33.3333%}.pure-u-md-3-8,.pure-u-md-9-24{width:37.5%}.pure-u-md-2-5{width:40%}.pure-u-md-10-24,.pure-u-md-5-12{width:41.6667%}.pure-u-md-11-24{width:45.8333%}.pure-u-md-1-2,.pure-u-md-12-24{width:50%}.pure-u-md-13-24{width:54.1667%}.pure-u-md-14-24,.pure-u-md-7-12{width:58.3333%}.pure-u-md-3-5{width:60%}.pure-u-md-15-24,.pure-u-md-5-8{width:62.5%}.pure-u-md-16-24,.pure-u-md-2-3{width:66.6667%}.pure-u-md-17-24{width:70.8333%}.pure-u-md-18-24,.pure-u-md-3-4{width:75%}.pure-u-md-19-24{width:79.1667%}.pure-u-md-4-5{width:80%}.pure-u-md-20-24,.pure-u-md-5-6{width:83.3333%}.pure-u-md-21-24,.pure-u-md-7-8{width:87.5%}.pure-u-md-11-12,.pure-u-md-22-24{width:91.6667%}.pure-u-md-23-24{width:95.8333%}.pure-u-md-1,.pure-u-md-1-1,.pure-u-md-24-24,.pure-u-md-5-5{width:100%}.pure-u-lg-1-24{width:4.1667%}.pure-u-lg-1-12,.pure-u-lg-2-24{width:8.3333%}.pure-u-lg-1-8,.pure-u-lg-3-24{width:12.5%}.pure-u-lg-1-6,.pure-u-lg-4-24{width:16.6667%}.pure-u-lg-1-5{width:20%}.pure-u-lg-5-24{width:20.8333%}.pure-u-lg-1-4,.pure-u-lg-6-24{width:25%}.pure-u-lg-7-24{width:29.1667%}.pure-u-lg-1-3,.pure-u-lg-8-24{width:33.3333%}.pure-u-lg-3-8,.pure-u-lg-9-24{width:37.5%}.pure-u-lg-2-5{width:40%}.pure-u-lg-10-24,.pure-u-lg-5-12{width:41.6667%}.pure-u-lg-11-24{width:45.8333%}.pure-u-lg-1-2,.pure-u-lg-12-24{width:50%}.pure-u-lg-13-24{width:54.1667%}.pure-u-lg-14-24,.pure-u-lg-7-12{width:58.3333%}.pure-u-lg-3-5{width:60%}.pure-u-lg-15-24,.pure-u-lg-5-8{width:62.5%}.pure-u-lg-16-24,.pure-u-lg-2-3{width:66.6667%}.pure-u-lg-17-24{width:70.8333%}.pure-u-lg-18-24,.pure-u-lg-3-4{width:75%}.pure-u-lg-19-24{width:79.1667%}.pure-u-lg-4-5{width:80%}.pure-u-lg-20-24,.pure-u-lg-5-6{width:83.3333%}.pure-u-lg-21-24,.pure-u-lg-7-8{width:87.5%}.pure-u-lg-11-12,.pure-u-lg-22-24{width:91.6667%}.pure-u-lg-23-24{width:95.8333%}.pure-u-lg-1,.pure-u-lg-1-1,.pure-u-lg-24-24,.pure-u-lg-5-5{width:100%}
Index: src/webapp/webserver/lib/css/pure/grids-units-min.css
===================================================================
--- src/webapp/webserver/lib/css/pure/grids-units-min.css	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,7 +1,0 @@
-/*!
-Pure v1.0.0
-Copyright 2013 Yahoo!
-Licensed under the BSD License.
-https://github.com/yahoo/pure/blob/master/LICENSE.md
-*/
-.pure-u-1,.pure-u-1-1,.pure-u-1-12,.pure-u-1-2,.pure-u-1-24,.pure-u-1-3,.pure-u-1-4,.pure-u-1-5,.pure-u-1-6,.pure-u-1-8,.pure-u-10-24,.pure-u-11-12,.pure-u-11-24,.pure-u-12-24,.pure-u-13-24,.pure-u-14-24,.pure-u-15-24,.pure-u-16-24,.pure-u-17-24,.pure-u-18-24,.pure-u-19-24,.pure-u-2-24,.pure-u-2-3,.pure-u-2-5,.pure-u-20-24,.pure-u-21-24,.pure-u-22-24,.pure-u-23-24,.pure-u-24-24,.pure-u-3-24,.pure-u-3-4,.pure-u-3-5,.pure-u-3-8,.pure-u-4-24,.pure-u-4-5,.pure-u-5-12,.pure-u-5-24,.pure-u-5-5,.pure-u-5-6,.pure-u-5-8,.pure-u-6-24,.pure-u-7-12,.pure-u-7-24,.pure-u-7-8,.pure-u-8-24,.pure-u-9-24{display:inline-block;zoom:1;letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto}.pure-u-1-24{width:4.1667%}.pure-u-1-12,.pure-u-2-24{width:8.3333%}.pure-u-1-8,.pure-u-3-24{width:12.5%}.pure-u-1-6,.pure-u-4-24{width:16.6667%}.pure-u-1-5{width:20%}.pure-u-5-24{width:20.8333%}.pure-u-1-4,.pure-u-6-24{width:25%}.pure-u-7-24{width:29.1667%}.pure-u-1-3,.pure-u-8-24{width:33.3333%}.pure-u-3-8,.pure-u-9-24{width:37.5%}.pure-u-2-5{width:40%}.pure-u-10-24,.pure-u-5-12{width:41.6667%}.pure-u-11-24{width:45.8333%}.pure-u-1-2,.pure-u-12-24{width:50%}.pure-u-13-24{width:54.1667%}.pure-u-14-24,.pure-u-7-12{width:58.3333%}.pure-u-3-5{width:60%}.pure-u-15-24,.pure-u-5-8{width:62.5%}.pure-u-16-24,.pure-u-2-3{width:66.6667%}.pure-u-17-24{width:70.8333%}.pure-u-18-24,.pure-u-3-4{width:75%}.pure-u-19-24{width:79.1667%}.pure-u-4-5{width:80%}.pure-u-20-24,.pure-u-5-6{width:83.3333%}.pure-u-21-24,.pure-u-7-8{width:87.5%}.pure-u-11-12,.pure-u-22-24{width:91.6667%}.pure-u-23-24{width:95.8333%}.pure-u-1,.pure-u-1-1,.pure-u-24-24,.pure-u-5-5{width:100%}
Index: src/webapp/webserver/lib/css/pure/menus-core-min.css
===================================================================
--- src/webapp/webserver/lib/css/pure/menus-core-min.css	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,7 +1,0 @@
-/*!
-Pure v1.0.0
-Copyright 2013 Yahoo!
-Licensed under the BSD License.
-https://github.com/yahoo/pure/blob/master/LICENSE.md
-*/
-.pure-menu{box-sizing:border-box}.pure-menu-fixed{position:fixed;left:0;top:0;z-index:3}.pure-menu-item,.pure-menu-list{position:relative}.pure-menu-list{list-style:none;margin:0;padding:0}.pure-menu-item{padding:0;margin:0;height:100%}.pure-menu-heading,.pure-menu-link{display:block;text-decoration:none;white-space:nowrap}
Index: src/webapp/webserver/lib/css/pure/menus-dropdown-min.css
===================================================================
--- src/webapp/webserver/lib/css/pure/menus-dropdown-min.css	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,7 +1,0 @@
-/*!
-Pure v1.0.0
-Copyright 2013 Yahoo!
-Licensed under the BSD License.
-https://github.com/yahoo/pure/blob/master/LICENSE.md
-*/
-.pure-menu-item .pure-menu-item{display:block}.pure-menu-children{display:none;position:absolute;left:100%;top:0;margin:0;padding:0;z-index:3}.pure-menu-horizontal .pure-menu-children{left:0;top:auto;width:inherit}.pure-menu-active>.pure-menu-children,.pure-menu-allow-hover:hover>.pure-menu-children{display:block;position:absolute}.pure-menu-has-children>.pure-menu-link:after{padding-left:.5em;content:"\25B8";font-size:small}.pure-menu-horizontal .pure-menu-has-children>.pure-menu-link:after{content:"\25BE"}
Index: src/webapp/webserver/lib/css/pure/menus-horizontal-min.css
===================================================================
--- src/webapp/webserver/lib/css/pure/menus-horizontal-min.css	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,7 +1,0 @@
-/*!
-Pure v1.0.0
-Copyright 2013 Yahoo!
-Licensed under the BSD License.
-https://github.com/yahoo/pure/blob/master/LICENSE.md
-*/
-.pure-menu-horizontal{width:100%;white-space:nowrap}.pure-menu-horizontal .pure-menu-list{display:inline-block}.pure-menu-horizontal .pure-menu-heading,.pure-menu-horizontal .pure-menu-item,.pure-menu-horizontal .pure-menu-separator{display:inline-block;zoom:1;vertical-align:middle}
Index: src/webapp/webserver/lib/css/pure/menus-min.css
===================================================================
--- src/webapp/webserver/lib/css/pure/menus-min.css	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,7 +1,0 @@
-/*!
-Pure v1.0.0
-Copyright 2013 Yahoo!
-Licensed under the BSD License.
-https://github.com/yahoo/pure/blob/master/LICENSE.md
-*/
-.pure-menu{box-sizing:border-box}.pure-menu-fixed{position:fixed;left:0;top:0;z-index:3}.pure-menu-item,.pure-menu-list{position:relative}.pure-menu-list{list-style:none;margin:0;padding:0}.pure-menu-item{padding:0;margin:0;height:100%}.pure-menu-heading,.pure-menu-link{display:block;text-decoration:none;white-space:nowrap}.pure-menu-horizontal{width:100%;white-space:nowrap}.pure-menu-horizontal .pure-menu-list{display:inline-block}.pure-menu-horizontal .pure-menu-heading,.pure-menu-horizontal .pure-menu-item,.pure-menu-horizontal .pure-menu-separator{display:inline-block;zoom:1;vertical-align:middle}.pure-menu-item .pure-menu-item{display:block}.pure-menu-children{display:none;position:absolute;left:100%;top:0;margin:0;padding:0;z-index:3}.pure-menu-horizontal .pure-menu-children{left:0;top:auto;width:inherit}.pure-menu-active>.pure-menu-children,.pure-menu-allow-hover:hover>.pure-menu-children{display:block;position:absolute}.pure-menu-has-children>.pure-menu-link:after{padding-left:.5em;content:"\25B8";font-size:small}.pure-menu-horizontal .pure-menu-has-children>.pure-menu-link:after{content:"\25BE"}.pure-menu-scrollable{overflow-y:scroll;overflow-x:hidden}.pure-menu-scrollable .pure-menu-list{display:block}.pure-menu-horizontal.pure-menu-scrollable .pure-menu-list{display:inline-block}.pure-menu-horizontal.pure-menu-scrollable{white-space:nowrap;overflow-y:hidden;overflow-x:auto;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;padding:.5em 0}.pure-menu-horizontal.pure-menu-scrollable::-webkit-scrollbar{display:none}.pure-menu-horizontal .pure-menu-children .pure-menu-separator,.pure-menu-separator{background-color:#ccc;height:1px;margin:.3em 0}.pure-menu-horizontal .pure-menu-separator{width:1px;height:1.3em;margin:0 .3em}.pure-menu-horizontal .pure-menu-children .pure-menu-separator{display:block;width:auto}.pure-menu-heading{text-transform:uppercase;color:#565d64}.pure-menu-link{color:#777}.pure-menu-children{background-color:#fff}.pure-menu-disabled,.pure-menu-heading,.pure-menu-link{padding:.5em 1em}.pure-menu-disabled{opacity:.5}.pure-menu-disabled .pure-menu-link:hover{background-color:transparent}.pure-menu-active>.pure-menu-link,.pure-menu-link:focus,.pure-menu-link:hover{background-color:#eee}.pure-menu-selected .pure-menu-link,.pure-menu-selected .pure-menu-link:visited{color:#000}
Index: src/webapp/webserver/lib/css/pure/menus-scrollable-min.css
===================================================================
--- src/webapp/webserver/lib/css/pure/menus-scrollable-min.css	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,7 +1,0 @@
-/*!
-Pure v1.0.0
-Copyright 2013 Yahoo!
-Licensed under the BSD License.
-https://github.com/yahoo/pure/blob/master/LICENSE.md
-*/
-.pure-menu-scrollable{overflow-y:scroll;overflow-x:hidden}.pure-menu-scrollable .pure-menu-list{display:block}.pure-menu-horizontal.pure-menu-scrollable .pure-menu-list{display:inline-block}.pure-menu-horizontal.pure-menu-scrollable{white-space:nowrap;overflow-y:hidden;overflow-x:auto;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;padding:.5em 0}.pure-menu-horizontal.pure-menu-scrollable::-webkit-scrollbar{display:none}
Index: src/webapp/webserver/lib/css/pure/menus-skin-min.css
===================================================================
--- src/webapp/webserver/lib/css/pure/menus-skin-min.css	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,7 +1,0 @@
-/*!
-Pure v1.0.0
-Copyright 2013 Yahoo!
-Licensed under the BSD License.
-https://github.com/yahoo/pure/blob/master/LICENSE.md
-*/
-.pure-menu-horizontal .pure-menu-children .pure-menu-separator,.pure-menu-separator{background-color:#ccc;height:1px;margin:.3em 0}.pure-menu-horizontal .pure-menu-separator{width:1px;height:1.3em;margin:0 .3em}.pure-menu-horizontal .pure-menu-children .pure-menu-separator{display:block;width:auto}.pure-menu-heading{text-transform:uppercase;color:#565d64}.pure-menu-link{color:#777}.pure-menu-children{background-color:#fff}.pure-menu-disabled,.pure-menu-heading,.pure-menu-link{padding:.5em 1em}.pure-menu-disabled{opacity:.5}.pure-menu-disabled .pure-menu-link:hover{background-color:transparent}.pure-menu-active>.pure-menu-link,.pure-menu-link:focus,.pure-menu-link:hover{background-color:#eee}.pure-menu-selected .pure-menu-link,.pure-menu-selected .pure-menu-link:visited{color:#000}
Index: src/webapp/webserver/lib/css/pure/pure-min.css
===================================================================
--- src/webapp/webserver/lib/css/pure/pure-min.css	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,11 +1,0 @@
-/*!
-Pure v1.0.0
-Copyright 2013 Yahoo!
-Licensed under the BSD License.
-https://github.com/yahoo/pure/blob/master/LICENSE.md
-*/
-/*!
-normalize.css v^3.0 | MIT License | git.io/normalize
-Copyright (c) Nicolas Gallagher and Jonathan Neal
-*/
-/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */.pure-button:focus,a:active,a:hover{outline:0}.pure-table,table{border-collapse:collapse;border-spacing:0}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}abbr[title]{border-bottom:1px dotted}b,optgroup,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre,textarea{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}.pure-button,input{line-height:normal}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}.pure-button,.pure-form input:not([type]),.pure-menu{box-sizing:border-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend,td,th{padding:0}legend{border:0}.hidden,[hidden]{display:none!important}.pure-img{max-width:100%;height:auto;display:block}.pure-g{letter-spacing:-.31em;text-rendering:optimizespeed;font-family:FreeSans,Arimo,"Droid Sans",Helvetica,Arial,sans-serif;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-align-content:flex-start;-ms-flex-line-pack:start;align-content:flex-start}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){table .pure-g{display:block}}.opera-only :-o-prefocus,.pure-g{word-spacing:-.43em}.pure-u,.pure-u-1,.pure-u-1-1,.pure-u-1-12,.pure-u-1-2,.pure-u-1-24,.pure-u-1-3,.pure-u-1-4,.pure-u-1-5,.pure-u-1-6,.pure-u-1-8,.pure-u-10-24,.pure-u-11-12,.pure-u-11-24,.pure-u-12-24,.pure-u-13-24,.pure-u-14-24,.pure-u-15-24,.pure-u-16-24,.pure-u-17-24,.pure-u-18-24,.pure-u-19-24,.pure-u-2-24,.pure-u-2-3,.pure-u-2-5,.pure-u-20-24,.pure-u-21-24,.pure-u-22-24,.pure-u-23-24,.pure-u-24-24,.pure-u-3-24,.pure-u-3-4,.pure-u-3-5,.pure-u-3-8,.pure-u-4-24,.pure-u-4-5,.pure-u-5-12,.pure-u-5-24,.pure-u-5-5,.pure-u-5-6,.pure-u-5-8,.pure-u-6-24,.pure-u-7-12,.pure-u-7-24,.pure-u-7-8,.pure-u-8-24,.pure-u-9-24{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto;display:inline-block;zoom:1}.pure-g [class*=pure-u]{font-family:sans-serif}.pure-u-1-24{width:4.1667%}.pure-u-1-12,.pure-u-2-24{width:8.3333%}.pure-u-1-8,.pure-u-3-24{width:12.5%}.pure-u-1-6,.pure-u-4-24{width:16.6667%}.pure-u-1-5{width:20%}.pure-u-5-24{width:20.8333%}.pure-u-1-4,.pure-u-6-24{width:25%}.pure-u-7-24{width:29.1667%}.pure-u-1-3,.pure-u-8-24{width:33.3333%}.pure-u-3-8,.pure-u-9-24{width:37.5%}.pure-u-2-5{width:40%}.pure-u-10-24,.pure-u-5-12{width:41.6667%}.pure-u-11-24{width:45.8333%}.pure-u-1-2,.pure-u-12-24{width:50%}.pure-u-13-24{width:54.1667%}.pure-u-14-24,.pure-u-7-12{width:58.3333%}.pure-u-3-5{width:60%}.pure-u-15-24,.pure-u-5-8{width:62.5%}.pure-u-16-24,.pure-u-2-3{width:66.6667%}.pure-u-17-24{width:70.8333%}.pure-u-18-24,.pure-u-3-4{width:75%}.pure-u-19-24{width:79.1667%}.pure-u-4-5{width:80%}.pure-u-20-24,.pure-u-5-6{width:83.3333%}.pure-u-21-24,.pure-u-7-8{width:87.5%}.pure-u-11-12,.pure-u-22-24{width:91.6667%}.pure-u-23-24{width:95.8333%}.pure-u-1,.pure-u-1-1,.pure-u-24-24,.pure-u-5-5{width:100%}.pure-button{display:inline-block;zoom:1;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-group{letter-spacing:-.31em;text-rendering:optimizespeed}.opera-only :-o-prefocus,.pure-button-group{word-spacing:-.43em}.pure-button{font-family:inherit;font-size:100%;padding:.5em 1em;color:#444;color:rgba(0,0,0,.8);border:1px solid #999;border:transparent;background-color:#E6E6E6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:focus,.pure-button:hover{filter:alpha(opacity=90);background-image:-webkit-linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1));background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.pure-button-active,.pure-button:active{box-shadow:0 0 0 1px rgba(0,0,0,.15) inset,0 0 6px rgba(0,0,0,.2) inset;border-color:#000\9}.pure-button-disabled,.pure-button-disabled:active,.pure-button-disabled:focus,.pure-button-disabled:hover,.pure-button[disabled]{border:none;background-image:none;filter:alpha(opacity=40);opacity:.4;cursor:not-allowed;box-shadow:none;pointer-events:none}.pure-button-hidden{display:none}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#0078e7;color:#fff}.pure-button-group .pure-button{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto;margin:0;border-radius:0;border-right:1px solid #111;border-right:1px solid rgba(0,0,0,.2)}.pure-button-group .pure-button:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}.pure-button-group .pure-button:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:none}.pure-form input[type=password],.pure-form input[type=email],.pure-form input[type=url],.pure-form input[type=date],.pure-form input[type=month],.pure-form input[type=time],.pure-form input[type=datetime],.pure-form input[type=datetime-local],.pure-form input[type=week],.pure-form input[type=tel],.pure-form input[type=color],.pure-form input[type=number],.pure-form input[type=search],.pure-form input[type=text],.pure-form select,.pure-form textarea{padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;vertical-align:middle;box-sizing:border-box}.pure-form input:not([type]){padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px}.pure-form input[type=color]{padding:.2em .5em}.pure-form input:not([type]):focus,.pure-form input[type=password]:focus,.pure-form input[type=email]:focus,.pure-form input[type=url]:focus,.pure-form input[type=date]:focus,.pure-form input[type=month]:focus,.pure-form input[type=time]:focus,.pure-form input[type=datetime]:focus,.pure-form input[type=datetime-local]:focus,.pure-form input[type=week]:focus,.pure-form input[type=tel]:focus,.pure-form input[type=color]:focus,.pure-form input[type=number]:focus,.pure-form input[type=search]:focus,.pure-form input[type=text]:focus,.pure-form select:focus,.pure-form textarea:focus{outline:0;border-color:#129FEA}.pure-form input[type=file]:focus,.pure-form input[type=checkbox]:focus,.pure-form input[type=radio]:focus{outline:#129FEA auto 1px}.pure-form .pure-checkbox,.pure-form .pure-radio{margin:.5em 0;display:block}.pure-form input:not([type])[disabled],.pure-form input[type=password][disabled],.pure-form input[type=email][disabled],.pure-form input[type=url][disabled],.pure-form input[type=date][disabled],.pure-form input[type=month][disabled],.pure-form input[type=time][disabled],.pure-form input[type=datetime][disabled],.pure-form input[type=datetime-local][disabled],.pure-form input[type=week][disabled],.pure-form input[type=tel][disabled],.pure-form input[type=color][disabled],.pure-form input[type=number][disabled],.pure-form input[type=search][disabled],.pure-form input[type=text][disabled],.pure-form select[disabled],.pure-form textarea[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input[readonly],.pure-form select[readonly],.pure-form textarea[readonly]{background-color:#eee;color:#777;border-color:#ccc}.pure-form input:focus:invalid,.pure-form select:focus:invalid,.pure-form textarea:focus:invalid{color:#b94a48;border-color:#e9322d}.pure-form input[type=file]:focus:invalid:focus,.pure-form input[type=checkbox]:focus:invalid:focus,.pure-form input[type=radio]:focus:invalid:focus{outline-color:#e9322d}.pure-form select{height:2.25em;border:1px solid #ccc;background-color:#fff}.pure-form select[multiple]{height:auto}.pure-form label{margin:.5em 0 .2em}.pure-form fieldset{margin:0;padding:.35em 0 .75em;border:0}.pure-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.pure-form-stacked input:not([type]),.pure-form-stacked input[type=password],.pure-form-stacked input[type=email],.pure-form-stacked input[type=url],.pure-form-stacked input[type=date],.pure-form-stacked input[type=month],.pure-form-stacked input[type=time],.pure-form-stacked input[type=datetime],.pure-form-stacked input[type=datetime-local],.pure-form-stacked input[type=week],.pure-form-stacked input[type=tel],.pure-form-stacked input[type=color],.pure-form-stacked input[type=file],.pure-form-stacked input[type=number],.pure-form-stacked input[type=search],.pure-form-stacked input[type=text],.pure-form-stacked label,.pure-form-stacked select,.pure-form-stacked textarea{display:block;margin:.25em 0}.pure-form-aligned .pure-help-inline,.pure-form-aligned input,.pure-form-aligned select,.pure-form-aligned textarea,.pure-form-message-inline{display:inline-block;vertical-align:middle}.pure-form-aligned textarea{vertical-align:top}.pure-form-aligned .pure-control-group{margin-bottom:.5em}.pure-form-aligned .pure-control-group label{text-align:right;display:inline-block;vertical-align:middle;width:10em;margin:0 1em 0 0}.pure-form-aligned .pure-controls{margin:1.5em 0 0 11em}.pure-form .pure-input-rounded,.pure-form input.pure-input-rounded{border-radius:2em;padding:.5em 1em}.pure-form .pure-group fieldset{margin-bottom:10px}.pure-form .pure-group input,.pure-form .pure-group textarea{display:block;padding:10px;margin:0 0 -1px;border-radius:0;position:relative;top:-1px}.pure-form .pure-group input:focus,.pure-form .pure-group textarea:focus{z-index:3}.pure-form .pure-group input:first-child,.pure-form .pure-group textarea:first-child{top:1px;border-radius:4px 4px 0 0;margin:0}.pure-form .pure-group input:first-child:last-child,.pure-form .pure-group textarea:first-child:last-child{top:1px;border-radius:4px;margin:0}.pure-form .pure-group input:last-child,.pure-form .pure-group textarea:last-child{top:-2px;border-radius:0 0 4px 4px;margin:0}.pure-form .pure-group button{margin:.35em 0}.pure-form .pure-input-1{width:100%}.pure-form .pure-input-3-4{width:75%}.pure-form .pure-input-2-3{width:66%}.pure-form .pure-input-1-2{width:50%}.pure-form .pure-input-1-3{width:33%}.pure-form .pure-input-1-4{width:25%}.pure-form .pure-help-inline,.pure-form-message-inline{display:inline-block;padding-left:.3em;color:#666;vertical-align:middle;font-size:.875em}.pure-form-message{display:block;color:#666;font-size:.875em}@media only screen and (max-width :480px){.pure-form button[type=submit]{margin:.7em 0 0}.pure-form input:not([type]),.pure-form input[type=password],.pure-form input[type=email],.pure-form input[type=url],.pure-form input[type=date],.pure-form input[type=month],.pure-form input[type=time],.pure-form input[type=datetime],.pure-form input[type=datetime-local],.pure-form input[type=week],.pure-form input[type=tel],.pure-form input[type=color],.pure-form input[type=number],.pure-form input[type=search],.pure-form input[type=text],.pure-form label{margin-bottom:.3em;display:block}.pure-group input:not([type]),.pure-group input[type=password],.pure-group input[type=email],.pure-group input[type=url],.pure-group input[type=date],.pure-group input[type=month],.pure-group input[type=time],.pure-group input[type=datetime],.pure-group input[type=datetime-local],.pure-group input[type=week],.pure-group input[type=tel],.pure-group input[type=color],.pure-group input[type=number],.pure-group input[type=search],.pure-group input[type=text]{margin-bottom:0}.pure-form-aligned .pure-control-group label{margin-bottom:.3em;text-align:left;display:block;width:100%}.pure-form-aligned .pure-controls{margin:1.5em 0 0}.pure-form .pure-help-inline,.pure-form-message,.pure-form-message-inline{display:block;font-size:.75em;padding:.2em 0 .8em}}.pure-menu-fixed{position:fixed;left:0;top:0;z-index:3}.pure-menu-item,.pure-menu-list{position:relative}.pure-menu-list{list-style:none;margin:0;padding:0}.pure-menu-item{padding:0;margin:0;height:100%}.pure-menu-heading,.pure-menu-link{display:block;text-decoration:none;white-space:nowrap}.pure-menu-horizontal{width:100%;white-space:nowrap}.pure-menu-horizontal .pure-menu-list{display:inline-block}.pure-menu-horizontal .pure-menu-heading,.pure-menu-horizontal .pure-menu-item,.pure-menu-horizontal .pure-menu-separator{display:inline-block;zoom:1;vertical-align:middle}.pure-menu-item .pure-menu-item{display:block}.pure-menu-children{display:none;position:absolute;left:100%;top:0;margin:0;padding:0;z-index:3}.pure-menu-horizontal .pure-menu-children{left:0;top:auto;width:inherit}.pure-menu-active>.pure-menu-children,.pure-menu-allow-hover:hover>.pure-menu-children{display:block;position:absolute}.pure-menu-has-children>.pure-menu-link:after{padding-left:.5em;content:"\25B8";font-size:small}.pure-menu-horizontal .pure-menu-has-children>.pure-menu-link:after{content:"\25BE"}.pure-menu-scrollable{overflow-y:scroll;overflow-x:hidden}.pure-menu-scrollable .pure-menu-list{display:block}.pure-menu-horizontal.pure-menu-scrollable .pure-menu-list{display:inline-block}.pure-menu-horizontal.pure-menu-scrollable{white-space:nowrap;overflow-y:hidden;overflow-x:auto;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;padding:.5em 0}.pure-menu-horizontal.pure-menu-scrollable::-webkit-scrollbar{display:none}.pure-menu-horizontal .pure-menu-children .pure-menu-separator,.pure-menu-separator{background-color:#ccc;height:1px;margin:.3em 0}.pure-menu-horizontal .pure-menu-separator{width:1px;height:1.3em;margin:0 .3em}.pure-menu-horizontal .pure-menu-children .pure-menu-separator{display:block;width:auto}.pure-menu-heading{text-transform:uppercase;color:#565d64}.pure-menu-link{color:#777}.pure-menu-children{background-color:#fff}.pure-menu-disabled,.pure-menu-heading,.pure-menu-link{padding:.5em 1em}.pure-menu-disabled{opacity:.5}.pure-menu-disabled .pure-menu-link:hover{background-color:transparent}.pure-menu-active>.pure-menu-link,.pure-menu-link:focus,.pure-menu-link:hover{background-color:#eee}.pure-menu-selected .pure-menu-link,.pure-menu-selected .pure-menu-link:visited{color:#000}.pure-table{empty-cells:show;border:1px solid #cbcbcb}.pure-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.pure-table td,.pure-table th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;font-size:inherit;margin:0;overflow:visible;padding:.5em 1em}.pure-table td:first-child,.pure-table th:first-child{border-left-width:0}.pure-table thead{background-color:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}.pure-table td{background-color:transparent}.pure-table-odd td,.pure-table-striped tr:nth-child(2n-1) td{background-color:#f2f2f2}.pure-table-bordered td{border-bottom:1px solid #cbcbcb}.pure-table-bordered tbody>tr:last-child>td{border-bottom-width:0}.pure-table-horizontal td,.pure-table-horizontal th{border-width:0 0 1px;border-bottom:1px solid #cbcbcb}.pure-table-horizontal tbody>tr:last-child>td{border-bottom-width:0}
Index: src/webapp/webserver/lib/css/pure/pure-nr-min.css
===================================================================
--- src/webapp/webserver/lib/css/pure/pure-nr-min.css	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,11 +1,0 @@
-/*!
-Pure v1.0.0
-Copyright 2013 Yahoo!
-Licensed under the BSD License.
-https://github.com/yahoo/pure/blob/master/LICENSE.md
-*/
-/*!
-normalize.css v^3.0 | MIT License | git.io/normalize
-Copyright (c) Nicolas Gallagher and Jonathan Neal
-*/
-/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */.pure-button:focus,a:active,a:hover{outline:0}.pure-table,table{border-collapse:collapse;border-spacing:0}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}abbr[title]{border-bottom:1px dotted}b,optgroup,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre,textarea{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}.pure-button,input{line-height:normal}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}.pure-button,.pure-form input:not([type]),.pure-menu{box-sizing:border-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend,td,th{padding:0}legend{border:0}.hidden,[hidden]{display:none!important}.pure-img{max-width:100%;height:auto;display:block}.pure-g{letter-spacing:-.31em;text-rendering:optimizespeed;font-family:FreeSans,Arimo,"Droid Sans",Helvetica,Arial,sans-serif;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-align-content:flex-start;-ms-flex-line-pack:start;align-content:flex-start}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){table .pure-g{display:block}}.opera-only :-o-prefocus,.pure-g{word-spacing:-.43em}.pure-u,.pure-u-1,.pure-u-1-1,.pure-u-1-12,.pure-u-1-2,.pure-u-1-24,.pure-u-1-3,.pure-u-1-4,.pure-u-1-5,.pure-u-1-6,.pure-u-1-8,.pure-u-10-24,.pure-u-11-12,.pure-u-11-24,.pure-u-12-24,.pure-u-13-24,.pure-u-14-24,.pure-u-15-24,.pure-u-16-24,.pure-u-17-24,.pure-u-18-24,.pure-u-19-24,.pure-u-2-24,.pure-u-2-3,.pure-u-2-5,.pure-u-20-24,.pure-u-21-24,.pure-u-22-24,.pure-u-23-24,.pure-u-24-24,.pure-u-3-24,.pure-u-3-4,.pure-u-3-5,.pure-u-3-8,.pure-u-4-24,.pure-u-4-5,.pure-u-5-12,.pure-u-5-24,.pure-u-5-5,.pure-u-5-6,.pure-u-5-8,.pure-u-6-24,.pure-u-7-12,.pure-u-7-24,.pure-u-7-8,.pure-u-8-24,.pure-u-9-24{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto;display:inline-block;zoom:1}.pure-g [class*=pure-u]{font-family:sans-serif}.pure-u-1-24{width:4.1667%}.pure-u-1-12,.pure-u-2-24{width:8.3333%}.pure-u-1-8,.pure-u-3-24{width:12.5%}.pure-u-1-6,.pure-u-4-24{width:16.6667%}.pure-u-1-5{width:20%}.pure-u-5-24{width:20.8333%}.pure-u-1-4,.pure-u-6-24{width:25%}.pure-u-7-24{width:29.1667%}.pure-u-1-3,.pure-u-8-24{width:33.3333%}.pure-u-3-8,.pure-u-9-24{width:37.5%}.pure-u-2-5{width:40%}.pure-u-10-24,.pure-u-5-12{width:41.6667%}.pure-u-11-24{width:45.8333%}.pure-u-1-2,.pure-u-12-24{width:50%}.pure-u-13-24{width:54.1667%}.pure-u-14-24,.pure-u-7-12{width:58.3333%}.pure-u-3-5{width:60%}.pure-u-15-24,.pure-u-5-8{width:62.5%}.pure-u-16-24,.pure-u-2-3{width:66.6667%}.pure-u-17-24{width:70.8333%}.pure-u-18-24,.pure-u-3-4{width:75%}.pure-u-19-24{width:79.1667%}.pure-u-4-5{width:80%}.pure-u-20-24,.pure-u-5-6{width:83.3333%}.pure-u-21-24,.pure-u-7-8{width:87.5%}.pure-u-11-12,.pure-u-22-24{width:91.6667%}.pure-u-23-24{width:95.8333%}.pure-u-1,.pure-u-1-1,.pure-u-24-24,.pure-u-5-5{width:100%}.pure-button{display:inline-block;zoom:1;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-group{letter-spacing:-.31em;text-rendering:optimizespeed}.opera-only :-o-prefocus,.pure-button-group{word-spacing:-.43em}.pure-button{font-family:inherit;font-size:100%;padding:.5em 1em;color:#444;color:rgba(0,0,0,.8);border:1px solid #999;border:transparent;background-color:#E6E6E6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:focus,.pure-button:hover{filter:alpha(opacity=90);background-image:-webkit-linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1));background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.pure-button-active,.pure-button:active{box-shadow:0 0 0 1px rgba(0,0,0,.15) inset,0 0 6px rgba(0,0,0,.2) inset;border-color:#000\9}.pure-button-disabled,.pure-button-disabled:active,.pure-button-disabled:focus,.pure-button-disabled:hover,.pure-button[disabled]{border:none;background-image:none;filter:alpha(opacity=40);opacity:.4;cursor:not-allowed;box-shadow:none;pointer-events:none}.pure-button-hidden{display:none}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#0078e7;color:#fff}.pure-button-group .pure-button{letter-spacing:normal;word-spacing:normal;vertical-align:top;text-rendering:auto;margin:0;border-radius:0;border-right:1px solid #111;border-right:1px solid rgba(0,0,0,.2)}.pure-button-group .pure-button:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}.pure-button-group .pure-button:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:none}.pure-form input[type=password],.pure-form input[type=email],.pure-form input[type=url],.pure-form input[type=date],.pure-form input[type=month],.pure-form input[type=time],.pure-form input[type=datetime],.pure-form input[type=datetime-local],.pure-form input[type=week],.pure-form input[type=tel],.pure-form input[type=color],.pure-form input[type=number],.pure-form input[type=search],.pure-form input[type=text],.pure-form select,.pure-form textarea{padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px;vertical-align:middle;box-sizing:border-box}.pure-form input:not([type]){padding:.5em .6em;display:inline-block;border:1px solid #ccc;box-shadow:inset 0 1px 3px #ddd;border-radius:4px}.pure-form input[type=color]{padding:.2em .5em}.pure-form input:not([type]):focus,.pure-form input[type=password]:focus,.pure-form input[type=email]:focus,.pure-form input[type=url]:focus,.pure-form input[type=date]:focus,.pure-form input[type=month]:focus,.pure-form input[type=time]:focus,.pure-form input[type=datetime]:focus,.pure-form input[type=datetime-local]:focus,.pure-form input[type=week]:focus,.pure-form input[type=tel]:focus,.pure-form input[type=color]:focus,.pure-form input[type=number]:focus,.pure-form input[type=search]:focus,.pure-form input[type=text]:focus,.pure-form select:focus,.pure-form textarea:focus{outline:0;border-color:#129FEA}.pure-form input[type=file]:focus,.pure-form input[type=checkbox]:focus,.pure-form input[type=radio]:focus{outline:#129FEA auto 1px}.pure-form .pure-checkbox,.pure-form .pure-radio{margin:.5em 0;display:block}.pure-form input:not([type])[disabled],.pure-form input[type=password][disabled],.pure-form input[type=email][disabled],.pure-form input[type=url][disabled],.pure-form input[type=date][disabled],.pure-form input[type=month][disabled],.pure-form input[type=time][disabled],.pure-form input[type=datetime][disabled],.pure-form input[type=datetime-local][disabled],.pure-form input[type=week][disabled],.pure-form input[type=tel][disabled],.pure-form input[type=color][disabled],.pure-form input[type=number][disabled],.pure-form input[type=search][disabled],.pure-form input[type=text][disabled],.pure-form select[disabled],.pure-form textarea[disabled]{cursor:not-allowed;background-color:#eaeded;color:#cad2d3}.pure-form input[readonly],.pure-form select[readonly],.pure-form textarea[readonly]{background-color:#eee;color:#777;border-color:#ccc}.pure-form input:focus:invalid,.pure-form select:focus:invalid,.pure-form textarea:focus:invalid{color:#b94a48;border-color:#e9322d}.pure-form input[type=file]:focus:invalid:focus,.pure-form input[type=checkbox]:focus:invalid:focus,.pure-form input[type=radio]:focus:invalid:focus{outline-color:#e9322d}.pure-form select{height:2.25em;border:1px solid #ccc;background-color:#fff}.pure-form select[multiple]{height:auto}.pure-form label{margin:.5em 0 .2em}.pure-form fieldset{margin:0;padding:.35em 0 .75em;border:0}.pure-form legend{display:block;width:100%;padding:.3em 0;margin-bottom:.3em;color:#333;border-bottom:1px solid #e5e5e5}.pure-form-stacked input:not([type]),.pure-form-stacked input[type=password],.pure-form-stacked input[type=email],.pure-form-stacked input[type=url],.pure-form-stacked input[type=date],.pure-form-stacked input[type=month],.pure-form-stacked input[type=time],.pure-form-stacked input[type=datetime],.pure-form-stacked input[type=datetime-local],.pure-form-stacked input[type=week],.pure-form-stacked input[type=tel],.pure-form-stacked input[type=color],.pure-form-stacked input[type=file],.pure-form-stacked input[type=number],.pure-form-stacked input[type=search],.pure-form-stacked input[type=text],.pure-form-stacked label,.pure-form-stacked select,.pure-form-stacked textarea{display:block;margin:.25em 0}.pure-form-aligned .pure-help-inline,.pure-form-aligned input,.pure-form-aligned select,.pure-form-aligned textarea,.pure-form-message-inline{display:inline-block;vertical-align:middle}.pure-form-aligned textarea{vertical-align:top}.pure-form-aligned .pure-control-group{margin-bottom:.5em}.pure-form-aligned .pure-control-group label{text-align:right;display:inline-block;vertical-align:middle;width:10em;margin:0 1em 0 0}.pure-form-aligned .pure-controls{margin:1.5em 0 0 11em}.pure-form .pure-input-rounded,.pure-form input.pure-input-rounded{border-radius:2em;padding:.5em 1em}.pure-form .pure-group fieldset{margin-bottom:10px}.pure-form .pure-group input,.pure-form .pure-group textarea{display:block;padding:10px;margin:0 0 -1px;border-radius:0;position:relative;top:-1px}.pure-form .pure-group input:focus,.pure-form .pure-group textarea:focus{z-index:3}.pure-form .pure-group input:first-child,.pure-form .pure-group textarea:first-child{top:1px;border-radius:4px 4px 0 0;margin:0}.pure-form .pure-group input:first-child:last-child,.pure-form .pure-group textarea:first-child:last-child{top:1px;border-radius:4px;margin:0}.pure-form .pure-group input:last-child,.pure-form .pure-group textarea:last-child{top:-2px;border-radius:0 0 4px 4px;margin:0}.pure-form .pure-group button{margin:.35em 0}.pure-form .pure-input-1{width:100%}.pure-form .pure-input-3-4{width:75%}.pure-form .pure-input-2-3{width:66%}.pure-form .pure-input-1-2{width:50%}.pure-form .pure-input-1-3{width:33%}.pure-form .pure-input-1-4{width:25%}.pure-form .pure-help-inline,.pure-form-message-inline{display:inline-block;padding-left:.3em;color:#666;vertical-align:middle;font-size:.875em}.pure-form-message{display:block;color:#666;font-size:.875em}.pure-menu-fixed{position:fixed;left:0;top:0;z-index:3}.pure-menu-item,.pure-menu-list{position:relative}.pure-menu-list{list-style:none;margin:0;padding:0}.pure-menu-item{padding:0;margin:0;height:100%}.pure-menu-heading,.pure-menu-link{display:block;text-decoration:none;white-space:nowrap}.pure-menu-horizontal{width:100%;white-space:nowrap}.pure-menu-horizontal .pure-menu-list{display:inline-block}.pure-menu-horizontal .pure-menu-heading,.pure-menu-horizontal .pure-menu-item,.pure-menu-horizontal .pure-menu-separator{display:inline-block;zoom:1;vertical-align:middle}.pure-menu-item .pure-menu-item{display:block}.pure-menu-children{display:none;position:absolute;left:100%;top:0;margin:0;padding:0;z-index:3}.pure-menu-horizontal .pure-menu-children{left:0;top:auto;width:inherit}.pure-menu-active>.pure-menu-children,.pure-menu-allow-hover:hover>.pure-menu-children{display:block;position:absolute}.pure-menu-has-children>.pure-menu-link:after{padding-left:.5em;content:"\25B8";font-size:small}.pure-menu-horizontal .pure-menu-has-children>.pure-menu-link:after{content:"\25BE"}.pure-menu-scrollable{overflow-y:scroll;overflow-x:hidden}.pure-menu-scrollable .pure-menu-list{display:block}.pure-menu-horizontal.pure-menu-scrollable .pure-menu-list{display:inline-block}.pure-menu-horizontal.pure-menu-scrollable{white-space:nowrap;overflow-y:hidden;overflow-x:auto;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;padding:.5em 0}.pure-menu-horizontal.pure-menu-scrollable::-webkit-scrollbar{display:none}.pure-menu-horizontal .pure-menu-children .pure-menu-separator,.pure-menu-separator{background-color:#ccc;height:1px;margin:.3em 0}.pure-menu-horizontal .pure-menu-separator{width:1px;height:1.3em;margin:0 .3em}.pure-menu-horizontal .pure-menu-children .pure-menu-separator{display:block;width:auto}.pure-menu-heading{text-transform:uppercase;color:#565d64}.pure-menu-link{color:#777}.pure-menu-children{background-color:#fff}.pure-menu-disabled,.pure-menu-heading,.pure-menu-link{padding:.5em 1em}.pure-menu-disabled{opacity:.5}.pure-menu-disabled .pure-menu-link:hover{background-color:transparent}.pure-menu-active>.pure-menu-link,.pure-menu-link:focus,.pure-menu-link:hover{background-color:#eee}.pure-menu-selected .pure-menu-link,.pure-menu-selected .pure-menu-link:visited{color:#000}.pure-table{empty-cells:show;border:1px solid #cbcbcb}.pure-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.pure-table td,.pure-table th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;font-size:inherit;margin:0;overflow:visible;padding:.5em 1em}.pure-table td:first-child,.pure-table th:first-child{border-left-width:0}.pure-table thead{background-color:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}.pure-table td{background-color:transparent}.pure-table-odd td,.pure-table-striped tr:nth-child(2n-1) td{background-color:#f2f2f2}.pure-table-bordered td{border-bottom:1px solid #cbcbcb}.pure-table-bordered tbody>tr:last-child>td{border-bottom-width:0}.pure-table-horizontal td,.pure-table-horizontal th{border-width:0 0 1px;border-bottom:1px solid #cbcbcb}.pure-table-horizontal tbody>tr:last-child>td{border-bottom-width:0}
Index: src/webapp/webserver/lib/css/pure/tables-min.css
===================================================================
--- src/webapp/webserver/lib/css/pure/tables-min.css	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,7 +1,0 @@
-/*!
-Pure v1.0.0
-Copyright 2013 Yahoo!
-Licensed under the BSD License.
-https://github.com/yahoo/pure/blob/master/LICENSE.md
-*/
-.pure-table{border-collapse:collapse;border-spacing:0;empty-cells:show;border:1px solid #cbcbcb}.pure-table caption{color:#000;font:italic 85%/1 arial,sans-serif;padding:1em 0;text-align:center}.pure-table td,.pure-table th{border-left:1px solid #cbcbcb;border-width:0 0 0 1px;font-size:inherit;margin:0;overflow:visible;padding:.5em 1em}.pure-table td:first-child,.pure-table th:first-child{border-left-width:0}.pure-table thead{background-color:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}.pure-table td{background-color:transparent}.pure-table-odd td,.pure-table-striped tr:nth-child(2n-1) td{background-color:#f2f2f2}.pure-table-bordered td{border-bottom:1px solid #cbcbcb}.pure-table-bordered tbody>tr:last-child>td{border-bottom-width:0}.pure-table-horizontal td,.pure-table-horizontal th{border-width:0 0 1px;border-bottom:1px solid #cbcbcb}.pure-table-horizontal tbody>tr:last-child>td{border-bottom-width:0}
Index: src/webapp/webserver/lib/js/jquery-3.2.1.min.js
===================================================================
--- src/webapp/webserver/lib/js/jquery-3.2.1.min.js	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,4 +1,0 @@
-/*! jQuery v3.2.1 | (c) JS Foundation and other contributors | jquery.org/license */
-!function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){"use strict";var c=[],d=a.document,e=Object.getPrototypeOf,f=c.slice,g=c.concat,h=c.push,i=c.indexOf,j={},k=j.toString,l=j.hasOwnProperty,m=l.toString,n=m.call(Object),o={};function p(a,b){b=b||d;var c=b.createElement("script");c.text=a,b.head.appendChild(c).parentNode.removeChild(c)}var q="3.2.1",r=function(a,b){return new r.fn.init(a,b)},s=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,t=/^-ms-/,u=/-([a-z])/g,v=function(a,b){return b.toUpperCase()};r.fn=r.prototype={jquery:q,constructor:r,length:0,toArray:function(){return f.call(this)},get:function(a){return null==a?f.call(this):a<0?this[a+this.length]:this[a]},pushStack:function(a){var b=r.merge(this.constructor(),a);return b.prevObject=this,b},each:function(a){return r.each(this,a)},map:function(a){return this.pushStack(r.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(f.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(a<0?b:0);return this.pushStack(c>=0&&c<b?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:h,sort:c.sort,splice:c.splice},r.extend=r.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||r.isFunction(g)||(g={}),h===i&&(g=this,h--);h<i;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(r.isPlainObject(d)||(e=Array.isArray(d)))?(e?(e=!1,f=c&&Array.isArray(c)?c:[]):f=c&&r.isPlainObject(c)?c:{},g[b]=r.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},r.extend({expando:"jQuery"+(q+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===r.type(a)},isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=r.type(a);return("number"===b||"string"===b)&&!isNaN(a-parseFloat(a))},isPlainObject:function(a){var b,c;return!(!a||"[object Object]"!==k.call(a))&&(!(b=e(a))||(c=l.call(b,"constructor")&&b.constructor,"function"==typeof c&&m.call(c)===n))},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?j[k.call(a)]||"object":typeof a},globalEval:function(a){p(a)},camelCase:function(a){return a.replace(t,"ms-").replace(u,v)},each:function(a,b){var c,d=0;if(w(a)){for(c=a.length;d<c;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(s,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(w(Object(a))?r.merge(c,"string"==typeof a?[a]:a):h.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:i.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;d<c;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;f<g;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,f=0,h=[];if(w(a))for(d=a.length;f<d;f++)e=b(a[f],f,c),null!=e&&h.push(e);else for(f in a)e=b(a[f],f,c),null!=e&&h.push(e);return g.apply([],h)},guid:1,proxy:function(a,b){var c,d,e;if("string"==typeof b&&(c=a[b],b=a,a=c),r.isFunction(a))return d=f.call(arguments,2),e=function(){return a.apply(b||this,d.concat(f.call(arguments)))},e.guid=a.guid=a.guid||r.guid++,e},now:Date.now,support:o}),"function"==typeof Symbol&&(r.fn[Symbol.iterator]=c[Symbol.iterator]),r.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){j["[object "+b+"]"]=b.toLowerCase()});function w(a){var b=!!a&&"length"in a&&a.length,c=r.type(a);return"function"!==c&&!r.isWindow(a)&&("array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a)}var x=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",M="\\["+K+"*("+L+")(?:"+K+"*([*^$|!~]?=)"+K+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+K+"*\\]",N=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",O=new RegExp(K+"+","g"),P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(N),U=new RegExp("^"+L+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),aa=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:d<0?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ba=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ca=function(a,b){return b?"\0"===a?"\ufffd":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},da=function(){m()},ea=ta(function(a){return a.disabled===!0&&("form"in a||"label"in a)},{dir:"parentNode",next:"legend"});try{G.apply(D=H.call(v.childNodes),v.childNodes),D[v.childNodes.length].nodeType}catch(fa){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s=b&&b.ownerDocument,w=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==w&&9!==w&&11!==w)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==w&&(l=Z.exec(a)))if(f=l[1]){if(9===w){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(s&&(j=s.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(l[2])return G.apply(d,b.getElementsByTagName(a)),d;if((f=l[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==w)s=b,r=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(ba,ca):b.setAttribute("id",k=u),o=g(a),h=o.length;while(h--)o[h]="#"+k+" "+sa(o[h]);r=o.join(","),s=$.test(a)&&qa(b.parentNode)||b}if(r)try{return G.apply(d,s.querySelectorAll(r)),d}catch(x){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(P,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return function(b){return"form"in b?b.parentNode&&b.disabled===!1?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&ea(b)===a:b.disabled===a:"label"in b&&b.disabled===a}}function pa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function qa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),v!==n&&(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(n.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){return a.getAttribute("id")===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}}):(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c,d,e,f=b.getElementById(a);if(f){if(c=f.getAttributeNode("id"),c&&c.value===a)return[f];e=b.getElementsByName(a),d=0;while(f=e[d++])if(c=f.getAttributeNode("id"),c&&c.value===a)return[f]}return[]}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){if("undefined"!=typeof b.getElementsByClassName&&p)return b.getElementsByClassName(a)},r=[],q=[],(c.qsa=Y.test(n.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){a.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+K+"*[*^$|!~]?="),2!==a.querySelectorAll(":enabled").length&&q.push(":enabled",":disabled"),o.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Y.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"*"),s.call(a,"[s!='']:x"),r.push("!=",N)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Y.test(o.compareDocumentPosition),t=b||Y.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?I(k,a)-I(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?I(k,a)-I(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?la(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(S,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.escape=function(a){return(a+"").replace(ba,ca)},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(_,aa),a[3]=(a[3]||a[4]||a[5]||"").replace(_,aa),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return V.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&T.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(_,aa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:!b||(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(O," ")+" ").indexOf(c)>-1:"|="===b&&(e===c||e.slice(0,c.length+1)===c+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(P,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(_,aa),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return U.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(_,aa).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:oa(!1),disabled:oa(!0),checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:pa(function(){return[0]}),last:pa(function(a,b){return[b-1]}),eq:pa(function(a,b,c){return[c<0?c+b:c]}),even:pa(function(a,b){for(var c=0;c<b;c+=2)a.push(c);return a}),odd:pa(function(a,b){for(var c=1;c<b;c+=2)a.push(c);return a}),lt:pa(function(a,b,c){for(var d=c<0?c+b:c;--d>=0;)a.push(d);return a}),gt:pa(function(a,b,c){for(var d=c<0?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=ma(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=na(b);function ra(){}ra.prototype=d.filters=d.pseudos,d.setFilters=new ra,g=ga.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=Q.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=R.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(P," ")}),h=h.slice(c.length));for(g in d.filter)!(e=V[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?ga.error(a):z(a,i).slice(0)};function sa(a){for(var b=0,c=a.length,d="";b<c;b++)d+=a[b].value;return d}function ta(a,b,c){var d=b.dir,e=b.next,f=e||d,g=c&&"parentNode"===f,h=x++;return b.first?function(b,c,e){while(b=b[d])if(1===b.nodeType||g)return a(b,c,e);return!1}:function(b,c,i){var j,k,l,m=[w,h];if(i){while(b=b[d])if((1===b.nodeType||g)&&a(b,c,i))return!0}else while(b=b[d])if(1===b.nodeType||g)if(l=b[u]||(b[u]={}),k=l[b.uniqueID]||(l[b.uniqueID]={}),e&&e===b.nodeName.toLowerCase())b=b[d]||b;else{if((j=k[f])&&j[0]===w&&j[1]===h)return m[2]=j[2];if(k[f]=m,m[2]=a(b,c,i))return!0}return!1}}function ua(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function va(a,b,c){for(var d=0,e=b.length;d<e;d++)ga(a,b[d],c);return c}function wa(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;h<i;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function xa(a,b,c,d,e,f){return d&&!d[u]&&(d=xa(d)),e&&!e[u]&&(e=xa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||va(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:wa(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=wa(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=wa(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ya(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ta(function(a){return a===b},h,!0),l=ta(function(a){return I(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];i<f;i++)if(c=d.relative[a[i].type])m=[ta(ua(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;e<f;e++)if(d.relative[a[e].type])break;return xa(i>1&&ua(m),i>1&&sa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(P,"$1"),c,i<e&&ya(a.slice(i,e)),e<f&&ya(a=a.slice(e)),e<f&&sa(a))}m.push(c)}return ua(m)}function za(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=E.call(i));u=wa(u)}G.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&ga.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=ya(b[c]),f[u]?d.push(f):e.push(f);f=A(a,za(e,d)),f.selector=a}return f},i=ga.select=function(a,b,c,e){var f,i,j,k,l,m="function"==typeof a&&a,n=!e&&g(a=m.selector||a);if(c=c||[],1===n.length){if(i=n[0]=n[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&9===b.nodeType&&p&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(_,aa),b)||[])[0],!b)return c;m&&(b=b.parentNode),a=a.slice(i.shift().value.length)}f=V.needsContext.test(a)?0:i.length;while(f--){if(j=i[f],d.relative[k=j.type])break;if((l=d.find[k])&&(e=l(j.matches[0].replace(_,aa),$.test(i[0].type)&&qa(b.parentNode)||b))){if(i.splice(f,1),a=e.length&&sa(i),!a)return G.apply(c,e),c;break}}}return(m||h(a,n))(e,b,!p,c,!b||$.test(a)&&qa(b.parentNode)||b),c},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("fieldset"))}),ja(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(J,function(a,b,c){var d;if(!c)return a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);r.find=x,r.expr=x.selectors,r.expr[":"]=r.expr.pseudos,r.uniqueSort=r.unique=x.uniqueSort,r.text=x.getText,r.isXMLDoc=x.isXML,r.contains=x.contains,r.escapeSelector=x.escape;var y=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&r(a).is(c))break;d.push(a)}return d},z=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},A=r.expr.match.needsContext;function B(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()}var C=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,D=/^.[^:#\[\.,]*$/;function E(a,b,c){return r.isFunction(b)?r.grep(a,function(a,d){return!!b.call(a,d,a)!==c}):b.nodeType?r.grep(a,function(a){return a===b!==c}):"string"!=typeof b?r.grep(a,function(a){return i.call(b,a)>-1!==c}):D.test(b)?r.filter(b,a,c):(b=r.filter(b,a),r.grep(a,function(a){return i.call(b,a)>-1!==c&&1===a.nodeType}))}r.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?r.find.matchesSelector(d,a)?[d]:[]:r.find.matches(a,r.grep(b,function(a){return 1===a.nodeType}))},r.fn.extend({find:function(a){var b,c,d=this.length,e=this;if("string"!=typeof a)return this.pushStack(r(a).filter(function(){for(b=0;b<d;b++)if(r.contains(e[b],this))return!0}));for(c=this.pushStack([]),b=0;b<d;b++)r.find(a,e[b],c);return d>1?r.uniqueSort(c):c},filter:function(a){return this.pushStack(E(this,a||[],!1))},not:function(a){return this.pushStack(E(this,a||[],!0))},is:function(a){return!!E(this,"string"==typeof a&&A.test(a)?r(a):a||[],!1).length}});var F,G=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,H=r.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||F,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:G.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof r?b[0]:b,r.merge(this,r.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),C.test(e[1])&&r.isPlainObject(b))for(e in b)r.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&(this[0]=f,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):r.isFunction(a)?void 0!==c.ready?c.ready(a):a(r):r.makeArray(a,this)};H.prototype=r.fn,F=r(d);var I=/^(?:parents|prev(?:Until|All))/,J={children:!0,contents:!0,next:!0,prev:!0};r.fn.extend({has:function(a){var b=r(a,this),c=b.length;return this.filter(function(){for(var a=0;a<c;a++)if(r.contains(this,b[a]))return!0})},closest:function(a,b){var c,d=0,e=this.length,f=[],g="string"!=typeof a&&r(a);if(!A.test(a))for(;d<e;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&r.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?r.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?i.call(r(a),this[0]):i.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(r.uniqueSort(r.merge(this.get(),r(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function K(a,b){while((a=a[b])&&1!==a.nodeType);return a}r.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return y(a,"parentNode")},parentsUntil:function(a,b,c){return y(a,"parentNode",c)},next:function(a){return K(a,"nextSibling")},prev:function(a){return K(a,"previousSibling")},nextAll:function(a){return y(a,"nextSibling")},prevAll:function(a){return y(a,"previousSibling")},nextUntil:function(a,b,c){return y(a,"nextSibling",c)},prevUntil:function(a,b,c){return y(a,"previousSibling",c)},siblings:function(a){return z((a.parentNode||{}).firstChild,a)},children:function(a){return z(a.firstChild)},contents:function(a){return B(a,"iframe")?a.contentDocument:(B(a,"template")&&(a=a.content||a),r.merge([],a.childNodes))}},function(a,b){r.fn[a]=function(c,d){var e=r.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=r.filter(d,e)),this.length>1&&(J[a]||r.uniqueSort(e),I.test(a)&&e.reverse()),this.pushStack(e)}});var L=/[^\x20\t\r\n\f]+/g;function M(a){var b={};return r.each(a.match(L)||[],function(a,c){b[c]=!0}),b}r.Callbacks=function(a){a="string"==typeof a?M(a):r.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=e||a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h<f.length)f[h].apply(c[0],c[1])===!1&&a.stopOnFalse&&(h=f.length,c=!1)}a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},j={add:function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){r.each(b,function(b,c){r.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&"string"!==r.type(c)&&d(c)})}(arguments),c&&!b&&i()),this},remove:function(){return r.each(arguments,function(a,b){var c;while((c=r.inArray(b,f,c))>-1)f.splice(c,1),c<=h&&h--}),this},has:function(a){return a?r.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||b||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j};function N(a){return a}function O(a){throw a}function P(a,b,c,d){var e;try{a&&r.isFunction(e=a.promise)?e.call(a).done(b).fail(c):a&&r.isFunction(e=a.then)?e.call(a,b,c):b.apply(void 0,[a].slice(d))}catch(a){c.apply(void 0,[a])}}r.extend({Deferred:function(b){var c=[["notify","progress",r.Callbacks("memory"),r.Callbacks("memory"),2],["resolve","done",r.Callbacks("once memory"),r.Callbacks("once memory"),0,"resolved"],["reject","fail",r.Callbacks("once memory"),r.Callbacks("once memory"),1,"rejected"]],d="pending",e={state:function(){return d},always:function(){return f.done(arguments).fail(arguments),this},"catch":function(a){return e.then(null,a)},pipe:function(){var a=arguments;return r.Deferred(function(b){r.each(c,function(c,d){var e=r.isFunction(a[d[4]])&&a[d[4]];f[d[1]](function(){var a=e&&e.apply(this,arguments);a&&r.isFunction(a.promise)?a.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[d[0]+"With"](this,e?[a]:arguments)})}),a=null}).promise()},then:function(b,d,e){var f=0;function g(b,c,d,e){return function(){var h=this,i=arguments,j=function(){var a,j;if(!(b<f)){if(a=d.apply(h,i),a===c.promise())throw new TypeError("Thenable self-resolution");j=a&&("object"==typeof a||"function"==typeof a)&&a.then,r.isFunction(j)?e?j.call(a,g(f,c,N,e),g(f,c,O,e)):(f++,j.call(a,g(f,c,N,e),g(f,c,O,e),g(f,c,N,c.notifyWith))):(d!==N&&(h=void 0,i=[a]),(e||c.resolveWith)(h,i))}},k=e?j:function(){try{j()}catch(a){r.Deferred.exceptionHook&&r.Deferred.exceptionHook(a,k.stackTrace),b+1>=f&&(d!==O&&(h=void 0,i=[a]),c.rejectWith(h,i))}};b?k():(r.Deferred.getStackHook&&(k.stackTrace=r.Deferred.getStackHook()),a.setTimeout(k))}}return r.Deferred(function(a){c[0][3].add(g(0,a,r.isFunction(e)?e:N,a.notifyWith)),c[1][3].add(g(0,a,r.isFunction(b)?b:N)),c[2][3].add(g(0,a,r.isFunction(d)?d:O))}).promise()},promise:function(a){return null!=a?r.extend(a,e):e}},f={};return r.each(c,function(a,b){var g=b[2],h=b[5];e[b[1]]=g.add,h&&g.add(function(){d=h},c[3-a][2].disable,c[0][2].lock),g.add(b[3].fire),f[b[0]]=function(){return f[b[0]+"With"](this===f?void 0:this,arguments),this},f[b[0]+"With"]=g.fireWith}),e.promise(f),b&&b.call(f,f),f},when:function(a){var b=arguments.length,c=b,d=Array(c),e=f.call(arguments),g=r.Deferred(),h=function(a){return function(c){d[a]=this,e[a]=arguments.length>1?f.call(arguments):c,--b||g.resolveWith(d,e)}};if(b<=1&&(P(a,g.done(h(c)).resolve,g.reject,!b),"pending"===g.state()||r.isFunction(e[c]&&e[c].then)))return g.then();while(c--)P(e[c],h(c),g.reject);return g.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;r.Deferred.exceptionHook=function(b,c){a.console&&a.console.warn&&b&&Q.test(b.name)&&a.console.warn("jQuery.Deferred exception: "+b.message,b.stack,c)},r.readyException=function(b){a.setTimeout(function(){throw b})};var R=r.Deferred();r.fn.ready=function(a){return R.then(a)["catch"](function(a){r.readyException(a)}),this},r.extend({isReady:!1,readyWait:1,ready:function(a){(a===!0?--r.readyWait:r.isReady)||(r.isReady=!0,a!==!0&&--r.readyWait>0||R.resolveWith(d,[r]))}}),r.ready.then=R.then;function S(){d.removeEventListener("DOMContentLoaded",S),
-a.removeEventListener("load",S),r.ready()}"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(r.ready):(d.addEventListener("DOMContentLoaded",S),a.addEventListener("load",S));var T=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===r.type(c)){e=!0;for(h in c)T(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,r.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(r(a),c)})),b))for(;h<i;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},U=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function V(){this.expando=r.expando+V.uid++}V.uid=1,V.prototype={cache:function(a){var b=a[this.expando];return b||(b={},U(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[r.camelCase(b)]=c;else for(d in b)e[r.camelCase(d)]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][r.camelCase(b)]},access:function(a,b,c){return void 0===b||b&&"string"==typeof b&&void 0===c?this.get(a,b):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d=a[this.expando];if(void 0!==d){if(void 0!==b){Array.isArray(b)?b=b.map(r.camelCase):(b=r.camelCase(b),b=b in d?[b]:b.match(L)||[]),c=b.length;while(c--)delete d[b[c]]}(void 0===b||r.isEmptyObject(d))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!r.isEmptyObject(b)}};var W=new V,X=new V,Y=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Z=/[A-Z]/g;function $(a){return"true"===a||"false"!==a&&("null"===a?null:a===+a+""?+a:Y.test(a)?JSON.parse(a):a)}function _(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Z,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c=$(c)}catch(e){}X.set(a,b,c)}else c=void 0;return c}r.extend({hasData:function(a){return X.hasData(a)||W.hasData(a)},data:function(a,b,c){return X.access(a,b,c)},removeData:function(a,b){X.remove(a,b)},_data:function(a,b,c){return W.access(a,b,c)},_removeData:function(a,b){W.remove(a,b)}}),r.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=X.get(f),1===f.nodeType&&!W.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=r.camelCase(d.slice(5)),_(f,d,e[d])));W.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){X.set(this,a)}):T(this,function(b){var c;if(f&&void 0===b){if(c=X.get(f,a),void 0!==c)return c;if(c=_(f,a),void 0!==c)return c}else this.each(function(){X.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){X.remove(this,a)})}}),r.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=W.get(a,b),c&&(!d||Array.isArray(c)?d=W.access(a,b,r.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=r.queue(a,b),d=c.length,e=c.shift(),f=r._queueHooks(a,b),g=function(){r.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return W.get(a,c)||W.access(a,c,{empty:r.Callbacks("once memory").add(function(){W.remove(a,[b+"queue",c])})})}}),r.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?r.queue(this[0],a):void 0===b?this:this.each(function(){var c=r.queue(this,a,b);r._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&r.dequeue(this,a)})},dequeue:function(a){return this.each(function(){r.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=r.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=W.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var aa=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ba=new RegExp("^(?:([+-])=|)("+aa+")([a-z%]*)$","i"),ca=["Top","Right","Bottom","Left"],da=function(a,b){return a=b||a,"none"===a.style.display||""===a.style.display&&r.contains(a.ownerDocument,a)&&"none"===r.css(a,"display")},ea=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};function fa(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return r.css(a,b,"")},i=h(),j=c&&c[3]||(r.cssNumber[b]?"":"px"),k=(r.cssNumber[b]||"px"!==j&&+i)&&ba.exec(r.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,r.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var ga={};function ha(a){var b,c=a.ownerDocument,d=a.nodeName,e=ga[d];return e?e:(b=c.body.appendChild(c.createElement(d)),e=r.css(b,"display"),b.parentNode.removeChild(b),"none"===e&&(e="block"),ga[d]=e,e)}function ia(a,b){for(var c,d,e=[],f=0,g=a.length;f<g;f++)d=a[f],d.style&&(c=d.style.display,b?("none"===c&&(e[f]=W.get(d,"display")||null,e[f]||(d.style.display="")),""===d.style.display&&da(d)&&(e[f]=ha(d))):"none"!==c&&(e[f]="none",W.set(d,"display",c)));for(f=0;f<g;f++)null!=e[f]&&(a[f].style.display=e[f]);return a}r.fn.extend({show:function(){return ia(this,!0)},hide:function(){return ia(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){da(this)?r(this).show():r(this).hide()})}});var ja=/^(?:checkbox|radio)$/i,ka=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,la=/^$|\/(?:java|ecma)script/i,ma={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ma.optgroup=ma.option,ma.tbody=ma.tfoot=ma.colgroup=ma.caption=ma.thead,ma.th=ma.td;function na(a,b){var c;return c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[],void 0===b||b&&B(a,b)?r.merge([a],c):c}function oa(a,b){for(var c=0,d=a.length;c<d;c++)W.set(a[c],"globalEval",!b||W.get(b[c],"globalEval"))}var pa=/<|&#?\w+;/;function qa(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createDocumentFragment(),m=[],n=0,o=a.length;n<o;n++)if(f=a[n],f||0===f)if("object"===r.type(f))r.merge(m,f.nodeType?[f]:f);else if(pa.test(f)){g=g||l.appendChild(b.createElement("div")),h=(ka.exec(f)||["",""])[1].toLowerCase(),i=ma[h]||ma._default,g.innerHTML=i[1]+r.htmlPrefilter(f)+i[2],k=i[0];while(k--)g=g.lastChild;r.merge(m,g.childNodes),g=l.firstChild,g.textContent=""}else m.push(b.createTextNode(f));l.textContent="",n=0;while(f=m[n++])if(d&&r.inArray(f,d)>-1)e&&e.push(f);else if(j=r.contains(f.ownerDocument,f),g=na(l.appendChild(f),"script"),j&&oa(g),c){k=0;while(f=g[k++])la.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),o.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",o.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var ra=d.documentElement,sa=/^key/,ta=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ua=/^([^.]*)(?:\.(.+)|)/;function va(){return!0}function wa(){return!1}function xa(){try{return d.activeElement}catch(a){}}function ya(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)ya(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=wa;else if(!e)return a;return 1===f&&(g=e,e=function(a){return r().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=r.guid++)),a.each(function(){r.event.add(this,b,e,d,c)})}r.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=W.get(a);if(q){c.handler&&(f=c,c=f.handler,e=f.selector),e&&r.find.matchesSelector(ra,e),c.guid||(c.guid=r.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return"undefined"!=typeof r&&r.event.triggered!==b.type?r.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(L)||[""],j=b.length;while(j--)h=ua.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=r.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=r.event.special[n]||{},k=r.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&r.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),r.event.global[n]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=W.hasData(a)&&W.get(a);if(q&&(i=q.events)){b=(b||"").match(L)||[""],j=b.length;while(j--)if(h=ua.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){l=r.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||r.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)r.event.remove(a,n+b[j],c,d,!0);r.isEmptyObject(i)&&W.remove(a,"handle events")}},dispatch:function(a){var b=r.event.fix(a),c,d,e,f,g,h,i=new Array(arguments.length),j=(W.get(this,"events")||{})[b.type]||[],k=r.event.special[b.type]||{};for(i[0]=b,c=1;c<arguments.length;c++)i[c]=arguments[c];if(b.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,b)!==!1){h=r.event.handlers.call(this,b,j),c=0;while((f=h[c++])&&!b.isPropagationStopped()){b.currentTarget=f.elem,d=0;while((g=f.handlers[d++])&&!b.isImmediatePropagationStopped())b.rnamespace&&!b.rnamespace.test(g.namespace)||(b.handleObj=g,b.data=g.data,e=((r.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(b.result=e)===!1&&(b.preventDefault(),b.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,b),b.result}},handlers:function(a,b){var c,d,e,f,g,h=[],i=b.delegateCount,j=a.target;if(i&&j.nodeType&&!("click"===a.type&&a.button>=1))for(;j!==this;j=j.parentNode||this)if(1===j.nodeType&&("click"!==a.type||j.disabled!==!0)){for(f=[],g={},c=0;c<i;c++)d=b[c],e=d.selector+" ",void 0===g[e]&&(g[e]=d.needsContext?r(e,this).index(j)>-1:r.find(e,this,null,[j]).length),g[e]&&f.push(d);f.length&&h.push({elem:j,handlers:f})}return j=this,i<b.length&&h.push({elem:j,handlers:b.slice(i)}),h},addProp:function(a,b){Object.defineProperty(r.Event.prototype,a,{enumerable:!0,configurable:!0,get:r.isFunction(b)?function(){if(this.originalEvent)return b(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[a]},set:function(b){Object.defineProperty(this,a,{enumerable:!0,configurable:!0,writable:!0,value:b})}})},fix:function(a){return a[r.expando]?a:new r.Event(a)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==xa()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===xa()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&B(this,"input"))return this.click(),!1},_default:function(a){return B(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}},r.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)},r.Event=function(a,b){return this instanceof r.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?va:wa,this.target=a.target&&3===a.target.nodeType?a.target.parentNode:a.target,this.currentTarget=a.currentTarget,this.relatedTarget=a.relatedTarget):this.type=a,b&&r.extend(this,b),this.timeStamp=a&&a.timeStamp||r.now(),void(this[r.expando]=!0)):new r.Event(a,b)},r.Event.prototype={constructor:r.Event,isDefaultPrevented:wa,isPropagationStopped:wa,isImmediatePropagationStopped:wa,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=va,a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=va,a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=va,a&&!this.isSimulated&&a.stopImmediatePropagation(),this.stopPropagation()}},r.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(a){var b=a.button;return null==a.which&&sa.test(a.type)?null!=a.charCode?a.charCode:a.keyCode:!a.which&&void 0!==b&&ta.test(a.type)?1&b?1:2&b?3:4&b?2:0:a.which}},r.event.addProp),r.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){r.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||r.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),r.fn.extend({on:function(a,b,c,d){return ya(this,a,b,c,d)},one:function(a,b,c,d){return ya(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,r(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=wa),this.each(function(){r.event.remove(this,a,c,b)})}});var za=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Aa=/<script|<style|<link/i,Ba=/checked\s*(?:[^=]|=\s*.checked.)/i,Ca=/^true\/(.*)/,Da=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ea(a,b){return B(a,"table")&&B(11!==b.nodeType?b:b.firstChild,"tr")?r(">tbody",a)[0]||a:a}function Fa(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function Ga(a){var b=Ca.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Ha(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(W.hasData(a)&&(f=W.access(a),g=W.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;c<d;c++)r.event.add(b,e,j[e][c])}X.hasData(a)&&(h=X.access(a),i=r.extend({},h),X.set(b,i))}}function Ia(a,b){var c=b.nodeName.toLowerCase();"input"===c&&ja.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}function Ja(a,b,c,d){b=g.apply([],b);var e,f,h,i,j,k,l=0,m=a.length,n=m-1,q=b[0],s=r.isFunction(q);if(s||m>1&&"string"==typeof q&&!o.checkClone&&Ba.test(q))return a.each(function(e){var f=a.eq(e);s&&(b[0]=q.call(this,e,f.html())),Ja(f,b,c,d)});if(m&&(e=qa(b,a[0].ownerDocument,!1,a,d),f=e.firstChild,1===e.childNodes.length&&(e=f),f||d)){for(h=r.map(na(e,"script"),Fa),i=h.length;l<m;l++)j=e,l!==n&&(j=r.clone(j,!0,!0),i&&r.merge(h,na(j,"script"))),c.call(a[l],j,l);if(i)for(k=h[h.length-1].ownerDocument,r.map(h,Ga),l=0;l<i;l++)j=h[l],la.test(j.type||"")&&!W.access(j,"globalEval")&&r.contains(k,j)&&(j.src?r._evalUrl&&r._evalUrl(j.src):p(j.textContent.replace(Da,""),k))}return a}function Ka(a,b,c){for(var d,e=b?r.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||r.cleanData(na(d)),d.parentNode&&(c&&r.contains(d.ownerDocument,d)&&oa(na(d,"script")),d.parentNode.removeChild(d));return a}r.extend({htmlPrefilter:function(a){return a.replace(za,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=r.contains(a.ownerDocument,a);if(!(o.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||r.isXMLDoc(a)))for(g=na(h),f=na(a),d=0,e=f.length;d<e;d++)Ia(f[d],g[d]);if(b)if(c)for(f=f||na(a),g=g||na(h),d=0,e=f.length;d<e;d++)Ha(f[d],g[d]);else Ha(a,h);return g=na(h,"script"),g.length>0&&oa(g,!i&&na(a,"script")),h},cleanData:function(a){for(var b,c,d,e=r.event.special,f=0;void 0!==(c=a[f]);f++)if(U(c)){if(b=c[W.expando]){if(b.events)for(d in b.events)e[d]?r.event.remove(c,d):r.removeEvent(c,d,b.handle);c[W.expando]=void 0}c[X.expando]&&(c[X.expando]=void 0)}}}),r.fn.extend({detach:function(a){return Ka(this,a,!0)},remove:function(a){return Ka(this,a)},text:function(a){return T(this,function(a){return void 0===a?r.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return Ja(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ea(this,a);b.appendChild(a)}})},prepend:function(){return Ja(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ea(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ja(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ja(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(r.cleanData(na(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null!=a&&a,b=null==b?a:b,this.map(function(){return r.clone(this,a,b)})},html:function(a){return T(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!Aa.test(a)&&!ma[(ka.exec(a)||["",""])[1].toLowerCase()]){a=r.htmlPrefilter(a);try{for(;c<d;c++)b=this[c]||{},1===b.nodeType&&(r.cleanData(na(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ja(this,arguments,function(b){var c=this.parentNode;r.inArray(this,a)<0&&(r.cleanData(na(this)),c&&c.replaceChild(b,this))},a)}}),r.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){r.fn[a]=function(a){for(var c,d=[],e=r(a),f=e.length-1,g=0;g<=f;g++)c=g===f?this:this.clone(!0),r(e[g])[b](c),h.apply(d,c.get());return this.pushStack(d)}});var La=/^margin/,Ma=new RegExp("^("+aa+")(?!px)[a-z%]+$","i"),Na=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)};!function(){function b(){if(i){i.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",i.innerHTML="",ra.appendChild(h);var b=a.getComputedStyle(i);c="1%"!==b.top,g="2px"===b.marginLeft,e="4px"===b.width,i.style.marginRight="50%",f="4px"===b.marginRight,ra.removeChild(h),i=null}}var c,e,f,g,h=d.createElement("div"),i=d.createElement("div");i.style&&(i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",o.clearCloneStyle="content-box"===i.style.backgroundClip,h.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",h.appendChild(i),r.extend(o,{pixelPosition:function(){return b(),c},boxSizingReliable:function(){return b(),e},pixelMarginRight:function(){return b(),f},reliableMarginLeft:function(){return b(),g}}))}();function Oa(a,b,c){var d,e,f,g,h=a.style;return c=c||Na(a),c&&(g=c.getPropertyValue(b)||c[b],""!==g||r.contains(a.ownerDocument,a)||(g=r.style(a,b)),!o.pixelMarginRight()&&Ma.test(g)&&La.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function Pa(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Qa=/^(none|table(?!-c[ea]).+)/,Ra=/^--/,Sa={position:"absolute",visibility:"hidden",display:"block"},Ta={letterSpacing:"0",fontWeight:"400"},Ua=["Webkit","Moz","ms"],Va=d.createElement("div").style;function Wa(a){if(a in Va)return a;var b=a[0].toUpperCase()+a.slice(1),c=Ua.length;while(c--)if(a=Ua[c]+b,a in Va)return a}function Xa(a){var b=r.cssProps[a];return b||(b=r.cssProps[a]=Wa(a)||a),b}function Ya(a,b,c){var d=ba.exec(b);return d?Math.max(0,d[2]-(c||0))+(d[3]||"px"):b}function Za(a,b,c,d,e){var f,g=0;for(f=c===(d?"border":"content")?4:"width"===b?1:0;f<4;f+=2)"margin"===c&&(g+=r.css(a,c+ca[f],!0,e)),d?("content"===c&&(g-=r.css(a,"padding"+ca[f],!0,e)),"margin"!==c&&(g-=r.css(a,"border"+ca[f]+"Width",!0,e))):(g+=r.css(a,"padding"+ca[f],!0,e),"padding"!==c&&(g+=r.css(a,"border"+ca[f]+"Width",!0,e)));return g}function $a(a,b,c){var d,e=Na(a),f=Oa(a,b,e),g="border-box"===r.css(a,"boxSizing",!1,e);return Ma.test(f)?f:(d=g&&(o.boxSizingReliable()||f===a.style[b]),"auto"===f&&(f=a["offset"+b[0].toUpperCase()+b.slice(1)]),f=parseFloat(f)||0,f+Za(a,b,c||(g?"border":"content"),d,e)+"px")}r.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Oa(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=r.camelCase(b),i=Ra.test(b),j=a.style;return i||(b=Xa(h)),g=r.cssHooks[b]||r.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:j[b]:(f=typeof c,"string"===f&&(e=ba.exec(c))&&e[1]&&(c=fa(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(r.cssNumber[h]?"":"px")),o.clearCloneStyle||""!==c||0!==b.indexOf("background")||(j[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i?j.setProperty(b,c):j[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=r.camelCase(b),i=Ra.test(b);return i||(b=Xa(h)),g=r.cssHooks[b]||r.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=Oa(a,b,d)),"normal"===e&&b in Ta&&(e=Ta[b]),""===c||c?(f=parseFloat(e),c===!0||isFinite(f)?f||0:e):e}}),r.each(["height","width"],function(a,b){r.cssHooks[b]={get:function(a,c,d){if(c)return!Qa.test(r.css(a,"display"))||a.getClientRects().length&&a.getBoundingClientRect().width?$a(a,b,d):ea(a,Sa,function(){return $a(a,b,d)})},set:function(a,c,d){var e,f=d&&Na(a),g=d&&Za(a,b,d,"border-box"===r.css(a,"boxSizing",!1,f),f);return g&&(e=ba.exec(c))&&"px"!==(e[3]||"px")&&(a.style[b]=c,c=r.css(a,b)),Ya(a,c,g)}}}),r.cssHooks.marginLeft=Pa(o.reliableMarginLeft,function(a,b){if(b)return(parseFloat(Oa(a,"marginLeft"))||a.getBoundingClientRect().left-ea(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px"}),r.each({margin:"",padding:"",border:"Width"},function(a,b){r.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];d<4;d++)e[a+ca[d]+b]=f[d]||f[d-2]||f[0];return e}},La.test(a)||(r.cssHooks[a+b].set=Ya)}),r.fn.extend({css:function(a,b){return T(this,function(a,b,c){var d,e,f={},g=0;if(Array.isArray(b)){for(d=Na(a),e=b.length;g<e;g++)f[b[g]]=r.css(a,b[g],!1,d);return f}return void 0!==c?r.style(a,b,c):r.css(a,b)},a,b,arguments.length>1)}});function _a(a,b,c,d,e){return new _a.prototype.init(a,b,c,d,e)}r.Tween=_a,_a.prototype={constructor:_a,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||r.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(r.cssNumber[c]?"":"px")},cur:function(){var a=_a.propHooks[this.prop];return a&&a.get?a.get(this):_a.propHooks._default.get(this)},run:function(a){var b,c=_a.propHooks[this.prop];return this.options.duration?this.pos=b=r.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):_a.propHooks._default.set(this),this}},_a.prototype.init.prototype=_a.prototype,_a.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=r.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){r.fx.step[a.prop]?r.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[r.cssProps[a.prop]]&&!r.cssHooks[a.prop]?a.elem[a.prop]=a.now:r.style(a.elem,a.prop,a.now+a.unit)}}},_a.propHooks.scrollTop=_a.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},r.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},r.fx=_a.prototype.init,r.fx.step={};var ab,bb,cb=/^(?:toggle|show|hide)$/,db=/queueHooks$/;function eb(){bb&&(d.hidden===!1&&a.requestAnimationFrame?a.requestAnimationFrame(eb):a.setTimeout(eb,r.fx.interval),r.fx.tick())}function fb(){return a.setTimeout(function(){ab=void 0}),ab=r.now()}function gb(a,b){var c,d=0,e={height:a};for(b=b?1:0;d<4;d+=2-b)c=ca[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function hb(a,b,c){for(var d,e=(kb.tweeners[b]||[]).concat(kb.tweeners["*"]),f=0,g=e.length;f<g;f++)if(d=e[f].call(c,b,a))return d}function ib(a,b,c){var d,e,f,g,h,i,j,k,l="width"in b||"height"in b,m=this,n={},o=a.style,p=a.nodeType&&da(a),q=W.get(a,"fxshow");c.queue||(g=r._queueHooks(a,"fx"),null==g.unqueued&&(g.unqueued=0,h=g.empty.fire,g.empty.fire=function(){g.unqueued||h()}),g.unqueued++,m.always(function(){m.always(function(){g.unqueued--,r.queue(a,"fx").length||g.empty.fire()})}));for(d in b)if(e=b[d],cb.test(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}n[d]=q&&q[d]||r.style(a,d)}if(i=!r.isEmptyObject(b),i||!r.isEmptyObject(n)){l&&1===a.nodeType&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=q&&q.display,null==j&&(j=W.get(a,"display")),k=r.css(a,"display"),"none"===k&&(j?k=j:(ia([a],!0),j=a.style.display||j,k=r.css(a,"display"),ia([a]))),("inline"===k||"inline-block"===k&&null!=j)&&"none"===r.css(a,"float")&&(i||(m.done(function(){o.display=j}),null==j&&(k=o.display,j="none"===k?"":k)),o.display="inline-block")),c.overflow&&(o.overflow="hidden",m.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]})),i=!1;for(d in n)i||(q?"hidden"in q&&(p=q.hidden):q=W.access(a,"fxshow",{display:j}),f&&(q.hidden=!p),p&&ia([a],!0),m.done(function(){p||ia([a]),W.remove(a,"fxshow");for(d in n)r.style(a,d,n[d])})),i=hb(p?q[d]:0,d,m),d in q||(q[d]=i.start,p&&(i.end=i.start,i.start=0))}}function jb(a,b){var c,d,e,f,g;for(c in a)if(d=r.camelCase(c),e=b[d],f=a[c],Array.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=r.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function kb(a,b,c){var d,e,f=0,g=kb.prefilters.length,h=r.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=ab||fb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;g<i;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),f<1&&i?c:(i||h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:r.extend({},b),opts:r.extend(!0,{specialEasing:{},easing:r.easing._default},c),originalProperties:b,originalOptions:c,startTime:ab||fb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=r.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;c<d;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for(jb(k,j.opts.specialEasing);f<g;f++)if(d=kb.prefilters[f].call(j,a,k,j.opts))return r.isFunction(d.stop)&&(r._queueHooks(j.elem,j.opts.queue).stop=r.proxy(d.stop,d)),d;return r.map(k,hb,j),r.isFunction(j.opts.start)&&j.opts.start.call(a,j),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always),r.fx.timer(r.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j}r.Animation=r.extend(kb,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return fa(c.elem,a,ba.exec(b),c),c}]},tweener:function(a,b){r.isFunction(a)?(b=a,a=["*"]):a=a.match(L);for(var c,d=0,e=a.length;d<e;d++)c=a[d],kb.tweeners[c]=kb.tweeners[c]||[],kb.tweeners[c].unshift(b)},prefilters:[ib],prefilter:function(a,b){b?kb.prefilters.unshift(a):kb.prefilters.push(a)}}),r.speed=function(a,b,c){var d=a&&"object"==typeof a?r.extend({},a):{complete:c||!c&&b||r.isFunction(a)&&a,duration:a,easing:c&&b||b&&!r.isFunction(b)&&b};return r.fx.off?d.duration=0:"number"!=typeof d.duration&&(d.duration in r.fx.speeds?d.duration=r.fx.speeds[d.duration]:d.duration=r.fx.speeds._default),null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){r.isFunction(d.old)&&d.old.call(this),d.queue&&r.dequeue(this,d.queue)},d},r.fn.extend({fadeTo:function(a,b,c,d){return this.filter(da).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=r.isEmptyObject(a),f=r.speed(b,c,d),g=function(){var b=kb(this,r.extend({},a),f);(e||W.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=r.timers,g=W.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&db.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||r.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=W.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=r.timers,g=d?d.length:0;for(c.finish=!0,r.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;b<g;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),r.each(["toggle","show","hide"],function(a,b){var c=r.fn[b];r.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(gb(b,!0),a,d,e)}}),r.each({slideDown:gb("show"),slideUp:gb("hide"),slideToggle:gb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){r.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),r.timers=[],r.fx.tick=function(){var a,b=0,c=r.timers;for(ab=r.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||r.fx.stop(),ab=void 0},r.fx.timer=function(a){r.timers.push(a),r.fx.start()},r.fx.interval=13,r.fx.start=function(){bb||(bb=!0,eb())},r.fx.stop=function(){bb=null},r.fx.speeds={slow:600,fast:200,_default:400},r.fn.delay=function(b,c){return b=r.fx?r.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a=d.createElement("input"),b=d.createElement("select"),c=b.appendChild(d.createElement("option"));a.type="checkbox",o.checkOn=""!==a.value,o.optSelected=c.selected,a=d.createElement("input"),a.value="t",a.type="radio",o.radioValue="t"===a.value}();var lb,mb=r.expr.attrHandle;r.fn.extend({attr:function(a,b){return T(this,r.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){r.removeAttr(this,a)})}}),r.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?r.prop(a,b,c):(1===f&&r.isXMLDoc(a)||(e=r.attrHooks[b.toLowerCase()]||(r.expr.match.bool.test(b)?lb:void 0)),void 0!==c?null===c?void r.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=r.find.attr(a,b),
-null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"===b&&B(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d=0,e=b&&b.match(L);if(e&&1===a.nodeType)while(c=e[d++])a.removeAttribute(c)}}),lb={set:function(a,b,c){return b===!1?r.removeAttr(a,c):a.setAttribute(c,c),c}},r.each(r.expr.match.bool.source.match(/\w+/g),function(a,b){var c=mb[b]||r.find.attr;mb[b]=function(a,b,d){var e,f,g=b.toLowerCase();return d||(f=mb[g],mb[g]=e,e=null!=c(a,b,d)?g:null,mb[g]=f),e}});var nb=/^(?:input|select|textarea|button)$/i,ob=/^(?:a|area)$/i;r.fn.extend({prop:function(a,b){return T(this,r.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[r.propFix[a]||a]})}}),r.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&r.isXMLDoc(a)||(b=r.propFix[b]||b,e=r.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=r.find.attr(a,"tabindex");return b?parseInt(b,10):nb.test(a.nodeName)||ob.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),o.optSelected||(r.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),r.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){r.propFix[this.toLowerCase()]=this});function pb(a){var b=a.match(L)||[];return b.join(" ")}function qb(a){return a.getAttribute&&a.getAttribute("class")||""}r.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).addClass(a.call(this,b,qb(this)))});if("string"==typeof a&&a){b=a.match(L)||[];while(c=this[i++])if(e=qb(c),d=1===c.nodeType&&" "+pb(e)+" "){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=pb(d),e!==h&&c.setAttribute("class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).removeClass(a.call(this,b,qb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(L)||[];while(c=this[i++])if(e=qb(c),d=1===c.nodeType&&" "+pb(e)+" "){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=pb(d),e!==h&&c.setAttribute("class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):r.isFunction(a)?this.each(function(c){r(this).toggleClass(a.call(this,c,qb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=r(this),f=a.match(L)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=qb(this),b&&W.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":W.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+pb(qb(c))+" ").indexOf(b)>-1)return!0;return!1}});var rb=/\r/g;r.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=r.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,r(this).val()):a,null==e?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=r.map(e,function(a){return null==a?"":a+""})),b=r.valHooks[this.type]||r.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=r.valHooks[e.type]||r.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(rb,""):null==c?"":c)}}}),r.extend({valHooks:{option:{get:function(a){var b=r.find.attr(a,"value");return null!=b?b:pb(r.text(a))}},select:{get:function(a){var b,c,d,e=a.options,f=a.selectedIndex,g="select-one"===a.type,h=g?null:[],i=g?f+1:e.length;for(d=f<0?i:g?f:0;d<i;d++)if(c=e[d],(c.selected||d===f)&&!c.disabled&&(!c.parentNode.disabled||!B(c.parentNode,"optgroup"))){if(b=r(c).val(),g)return b;h.push(b)}return h},set:function(a,b){var c,d,e=a.options,f=r.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=r.inArray(r.valHooks.option.get(d),f)>-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),r.each(["radio","checkbox"],function(){r.valHooks[this]={set:function(a,b){if(Array.isArray(b))return a.checked=r.inArray(r(a).val(),b)>-1}},o.checkOn||(r.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var sb=/^(?:focusinfocus|focusoutblur)$/;r.extend(r.event,{trigger:function(b,c,e,f){var g,h,i,j,k,m,n,o=[e||d],p=l.call(b,"type")?b.type:b,q=l.call(b,"namespace")?b.namespace.split("."):[];if(h=i=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!sb.test(p+r.event.triggered)&&(p.indexOf(".")>-1&&(q=p.split("."),p=q.shift(),q.sort()),k=p.indexOf(":")<0&&"on"+p,b=b[r.expando]?b:new r.Event(p,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=q.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:r.makeArray(c,[b]),n=r.event.special[p]||{},f||!n.trigger||n.trigger.apply(e,c)!==!1)){if(!f&&!n.noBubble&&!r.isWindow(e)){for(j=n.delegateType||p,sb.test(j+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),i=h;i===(e.ownerDocument||d)&&o.push(i.defaultView||i.parentWindow||a)}g=0;while((h=o[g++])&&!b.isPropagationStopped())b.type=g>1?j:n.bindType||p,m=(W.get(h,"events")||{})[b.type]&&W.get(h,"handle"),m&&m.apply(h,c),m=k&&h[k],m&&m.apply&&U(h)&&(b.result=m.apply(h,c),b.result===!1&&b.preventDefault());return b.type=p,f||b.isDefaultPrevented()||n._default&&n._default.apply(o.pop(),c)!==!1||!U(e)||k&&r.isFunction(e[p])&&!r.isWindow(e)&&(i=e[k],i&&(e[k]=null),r.event.triggered=p,e[p](),r.event.triggered=void 0,i&&(e[k]=i)),b.result}},simulate:function(a,b,c){var d=r.extend(new r.Event,c,{type:a,isSimulated:!0});r.event.trigger(d,null,b)}}),r.fn.extend({trigger:function(a,b){return this.each(function(){r.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];if(c)return r.event.trigger(a,b,c,!0)}}),r.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(a,b){r.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),r.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),o.focusin="onfocusin"in a,o.focusin||r.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){r.event.simulate(b,a.target,r.event.fix(a))};r.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=W.access(d,b);e||d.addEventListener(a,c,!0),W.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=W.access(d,b)-1;e?W.access(d,b,e):(d.removeEventListener(a,c,!0),W.remove(d,b))}}});var tb=a.location,ub=r.now(),vb=/\?/;r.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||r.error("Invalid XML: "+b),c};var wb=/\[\]$/,xb=/\r?\n/g,yb=/^(?:submit|button|image|reset|file)$/i,zb=/^(?:input|select|textarea|keygen)/i;function Ab(a,b,c,d){var e;if(Array.isArray(b))r.each(b,function(b,e){c||wb.test(a)?d(a,e):Ab(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==r.type(b))d(a,b);else for(e in b)Ab(a+"["+e+"]",b[e],c,d)}r.param=function(a,b){var c,d=[],e=function(a,b){var c=r.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(null==c?"":c)};if(Array.isArray(a)||a.jquery&&!r.isPlainObject(a))r.each(a,function(){e(this.name,this.value)});else for(c in a)Ab(c,a[c],b,e);return d.join("&")},r.fn.extend({serialize:function(){return r.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=r.prop(this,"elements");return a?r.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!r(this).is(":disabled")&&zb.test(this.nodeName)&&!yb.test(a)&&(this.checked||!ja.test(a))}).map(function(a,b){var c=r(this).val();return null==c?null:Array.isArray(c)?r.map(c,function(a){return{name:b.name,value:a.replace(xb,"\r\n")}}):{name:b.name,value:c.replace(xb,"\r\n")}}).get()}});var Bb=/%20/g,Cb=/#.*$/,Db=/([?&])_=[^&]*/,Eb=/^(.*?):[ \t]*([^\r\n]*)$/gm,Fb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Gb=/^(?:GET|HEAD)$/,Hb=/^\/\//,Ib={},Jb={},Kb="*/".concat("*"),Lb=d.createElement("a");Lb.href=tb.href;function Mb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(L)||[];if(r.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Nb(a,b,c,d){var e={},f=a===Jb;function g(h){var i;return e[h]=!0,r.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Ob(a,b){var c,d,e=r.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&r.extend(!0,a,d),a}function Pb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}if(f)return f!==i[0]&&i.unshift(f),c[f]}function Qb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}r.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:tb.href,type:"GET",isLocal:Fb.test(tb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Kb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":r.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Ob(Ob(a,r.ajaxSettings),b):Ob(r.ajaxSettings,a)},ajaxPrefilter:Mb(Ib),ajaxTransport:Mb(Jb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m,n,o=r.ajaxSetup({},c),p=o.context||o,q=o.context&&(p.nodeType||p.jquery)?r(p):r.event,s=r.Deferred(),t=r.Callbacks("once memory"),u=o.statusCode||{},v={},w={},x="canceled",y={readyState:0,getResponseHeader:function(a){var b;if(k){if(!h){h={};while(b=Eb.exec(g))h[b[1].toLowerCase()]=b[2]}b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return k?g:null},setRequestHeader:function(a,b){return null==k&&(a=w[a.toLowerCase()]=w[a.toLowerCase()]||a,v[a]=b),this},overrideMimeType:function(a){return null==k&&(o.mimeType=a),this},statusCode:function(a){var b;if(a)if(k)y.always(a[y.status]);else for(b in a)u[b]=[u[b],a[b]];return this},abort:function(a){var b=a||x;return e&&e.abort(b),A(0,b),this}};if(s.promise(y),o.url=((b||o.url||tb.href)+"").replace(Hb,tb.protocol+"//"),o.type=c.method||c.type||o.method||o.type,o.dataTypes=(o.dataType||"*").toLowerCase().match(L)||[""],null==o.crossDomain){j=d.createElement("a");try{j.href=o.url,j.href=j.href,o.crossDomain=Lb.protocol+"//"+Lb.host!=j.protocol+"//"+j.host}catch(z){o.crossDomain=!0}}if(o.data&&o.processData&&"string"!=typeof o.data&&(o.data=r.param(o.data,o.traditional)),Nb(Ib,o,c,y),k)return y;l=r.event&&o.global,l&&0===r.active++&&r.event.trigger("ajaxStart"),o.type=o.type.toUpperCase(),o.hasContent=!Gb.test(o.type),f=o.url.replace(Cb,""),o.hasContent?o.data&&o.processData&&0===(o.contentType||"").indexOf("application/x-www-form-urlencoded")&&(o.data=o.data.replace(Bb,"+")):(n=o.url.slice(f.length),o.data&&(f+=(vb.test(f)?"&":"?")+o.data,delete o.data),o.cache===!1&&(f=f.replace(Db,"$1"),n=(vb.test(f)?"&":"?")+"_="+ub++ +n),o.url=f+n),o.ifModified&&(r.lastModified[f]&&y.setRequestHeader("If-Modified-Since",r.lastModified[f]),r.etag[f]&&y.setRequestHeader("If-None-Match",r.etag[f])),(o.data&&o.hasContent&&o.contentType!==!1||c.contentType)&&y.setRequestHeader("Content-Type",o.contentType),y.setRequestHeader("Accept",o.dataTypes[0]&&o.accepts[o.dataTypes[0]]?o.accepts[o.dataTypes[0]]+("*"!==o.dataTypes[0]?", "+Kb+"; q=0.01":""):o.accepts["*"]);for(m in o.headers)y.setRequestHeader(m,o.headers[m]);if(o.beforeSend&&(o.beforeSend.call(p,y,o)===!1||k))return y.abort();if(x="abort",t.add(o.complete),y.done(o.success),y.fail(o.error),e=Nb(Jb,o,c,y)){if(y.readyState=1,l&&q.trigger("ajaxSend",[y,o]),k)return y;o.async&&o.timeout>0&&(i=a.setTimeout(function(){y.abort("timeout")},o.timeout));try{k=!1,e.send(v,A)}catch(z){if(k)throw z;A(-1,z)}}else A(-1,"No Transport");function A(b,c,d,h){var j,m,n,v,w,x=c;k||(k=!0,i&&a.clearTimeout(i),e=void 0,g=h||"",y.readyState=b>0?4:0,j=b>=200&&b<300||304===b,d&&(v=Pb(o,y,d)),v=Qb(o,v,y,j),j?(o.ifModified&&(w=y.getResponseHeader("Last-Modified"),w&&(r.lastModified[f]=w),w=y.getResponseHeader("etag"),w&&(r.etag[f]=w)),204===b||"HEAD"===o.type?x="nocontent":304===b?x="notmodified":(x=v.state,m=v.data,n=v.error,j=!n)):(n=x,!b&&x||(x="error",b<0&&(b=0))),y.status=b,y.statusText=(c||x)+"",j?s.resolveWith(p,[m,x,y]):s.rejectWith(p,[y,x,n]),y.statusCode(u),u=void 0,l&&q.trigger(j?"ajaxSuccess":"ajaxError",[y,o,j?m:n]),t.fireWith(p,[y,x]),l&&(q.trigger("ajaxComplete",[y,o]),--r.active||r.event.trigger("ajaxStop")))}return y},getJSON:function(a,b,c){return r.get(a,b,c,"json")},getScript:function(a,b){return r.get(a,void 0,b,"script")}}),r.each(["get","post"],function(a,b){r[b]=function(a,c,d,e){return r.isFunction(c)&&(e=e||d,d=c,c=void 0),r.ajax(r.extend({url:a,type:b,dataType:e,data:c,success:d},r.isPlainObject(a)&&a))}}),r._evalUrl=function(a){return r.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},r.fn.extend({wrapAll:function(a){var b;return this[0]&&(r.isFunction(a)&&(a=a.call(this[0])),b=r(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this},wrapInner:function(a){return r.isFunction(a)?this.each(function(b){r(this).wrapInner(a.call(this,b))}):this.each(function(){var b=r(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=r.isFunction(a);return this.each(function(c){r(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){r(this).replaceWith(this.childNodes)}),this}}),r.expr.pseudos.hidden=function(a){return!r.expr.pseudos.visible(a)},r.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},r.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Rb={0:200,1223:204},Sb=r.ajaxSettings.xhr();o.cors=!!Sb&&"withCredentials"in Sb,o.ajax=Sb=!!Sb,r.ajaxTransport(function(b){var c,d;if(o.cors||Sb&&!b.crossDomain)return{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Rb[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}}),r.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),r.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return r.globalEval(a),a}}}),r.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),r.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(e,f){b=r("<script>").prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&f("error"===a.type?404:200,a.type)}),d.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Tb=[],Ub=/(=)\?(?=&|$)|\?\?/;r.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Tb.pop()||r.expando+"_"+ub++;return this[a]=!0,a}}),r.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Ub.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ub.test(b.data)&&"data");if(h||"jsonp"===b.dataTypes[0])return e=b.jsonpCallback=r.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Ub,"$1"+e):b.jsonp!==!1&&(b.url+=(vb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||r.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?r(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Tb.push(e)),g&&r.isFunction(f)&&f(g[0]),g=f=void 0}),"script"}),o.createHTMLDocument=function(){var a=d.implementation.createHTMLDocument("").body;return a.innerHTML="<form></form><form></form>",2===a.childNodes.length}(),r.parseHTML=function(a,b,c){if("string"!=typeof a)return[];"boolean"==typeof b&&(c=b,b=!1);var e,f,g;return b||(o.createHTMLDocument?(b=d.implementation.createHTMLDocument(""),e=b.createElement("base"),e.href=d.location.href,b.head.appendChild(e)):b=d),f=C.exec(a),g=!c&&[],f?[b.createElement(f[1])]:(f=qa([a],b,g),g&&g.length&&r(g).remove(),r.merge([],f.childNodes))},r.fn.load=function(a,b,c){var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=pb(a.slice(h)),a=a.slice(0,h)),r.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&r.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?r("<div>").append(r.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},r.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){r.fn[b]=function(a){return this.on(b,a)}}),r.expr.pseudos.animated=function(a){return r.grep(r.timers,function(b){return a===b.elem}).length},r.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=r.css(a,"position"),l=r(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=r.css(a,"top"),i=r.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),r.isFunction(b)&&(b=b.call(a,c,r.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},r.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){r.offset.setOffset(this,a,b)});var b,c,d,e,f=this[0];if(f)return f.getClientRects().length?(d=f.getBoundingClientRect(),b=f.ownerDocument,c=b.documentElement,e=b.defaultView,{top:d.top+e.pageYOffset-c.clientTop,left:d.left+e.pageXOffset-c.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===r.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),B(a[0],"html")||(d=a.offset()),d={top:d.top+r.css(a[0],"borderTopWidth",!0),left:d.left+r.css(a[0],"borderLeftWidth",!0)}),{top:b.top-d.top-r.css(c,"marginTop",!0),left:b.left-d.left-r.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&"static"===r.css(a,"position"))a=a.offsetParent;return a||ra})}}),r.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;r.fn[a]=function(d){return T(this,function(a,d,e){var f;return r.isWindow(a)?f=a:9===a.nodeType&&(f=a.defaultView),void 0===e?f?f[b]:a[d]:void(f?f.scrollTo(c?f.pageXOffset:e,c?e:f.pageYOffset):a[d]=e)},a,d,arguments.length)}}),r.each(["top","left"],function(a,b){r.cssHooks[b]=Pa(o.pixelPosition,function(a,c){if(c)return c=Oa(a,b),Ma.test(c)?r(a).position()[b]+"px":c})}),r.each({Height:"height",Width:"width"},function(a,b){r.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){r.fn[d]=function(e,f){var g=arguments.length&&(c||"boolean"!=typeof e),h=c||(e===!0||f===!0?"margin":"border");return T(this,function(b,c,e){var f;return r.isWindow(b)?0===d.indexOf("outer")?b["inner"+a]:b.document.documentElement["client"+a]:9===b.nodeType?(f=b.documentElement,Math.max(b.body["scroll"+a],f["scroll"+a],b.body["offset"+a],f["offset"+a],f["client"+a])):void 0===e?r.css(b,c,h):r.style(b,c,e,h)},b,g?e:void 0,g)}})}),r.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}}),r.holdReady=function(a){a?r.readyWait++:r.ready(!0)},r.isArray=Array.isArray,r.parseJSON=JSON.parse,r.nodeName=B,"function"==typeof define&&define.amd&&define("jquery",[],function(){return r});var Vb=a.jQuery,Wb=a.$;return r.noConflict=function(b){return a.$===r&&(a.$=Wb),b&&a.jQuery===r&&(a.jQuery=Vb),r},b||(a.jQuery=a.$=r),r});
Index: src/webapp/webserver/lib/js/leaflet.hotline.min.js
===================================================================
--- src/webapp/webserver/lib/js/leaflet.hotline.min.js	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,6 +1,0 @@
-/*
- (c) 2017, iosphere GmbH
- Leaflet.hotline, a Leaflet plugin for drawing gradients along polylines.
- https://github.com/iosphere/Leaflet.hotline/
-*/
-!function(t,i){"function"==typeof define&&define.amd?define(["leaflet"],i):"object"==typeof exports?module.exports=i:i(t.L)}(this,function(t){if(t.Hotline)return t;var i=function(t){if(!(this instanceof i))return new i(t);var e={0:"green",.5:"yellow",1:"red"};this._canvas=t="string"==typeof t?document.getElementById(t):t,this._ctx=t.getContext("2d"),this._width=t.width,this._height=t.height,this._weight=5,this._outlineWidth=1,this._outlineColor="black",this._min=0,this._max=1,this._data=[],this.palette(e)};i.prototype={width:function(t){return this._width=t,this},height:function(t){return this._height=t,this},weight:function(t){return this._weight=t,this},outlineWidth:function(t){return this._outlineWidth=t,this},outlineColor:function(t){return this._outlineColor=t,this},palette:function(t){var i=document.createElement("canvas"),e=i.getContext("2d"),n=e.createLinearGradient(0,0,0,256);i.width=1,i.height=256;for(var o in t)n.addColorStop(o,t[o]);return e.fillStyle=n,e.fillRect(0,0,1,256),this._palette=e.getImageData(0,0,1,256).data,this},min:function(t){return this._min=t,this},max:function(t){return this._max=t,this},data:function(t){return this._data=t,this},add:function(t){return this._data.push(t),this},draw:function(){var t=this._ctx;return t.globalCompositeOperation="source-over",t.lineCap="round",this._drawOutline(t),this._drawHotline(t),this},getRGBForValue:function(t){var i=Math.min(Math.max((t-this._min)/((this._max-this._min) || 1),0),.999),e=4*Math.floor(256*i);return[this._palette[e],this._palette[e+1],this._palette[e+2]]},_drawOutline:function(t){var i,e,n,o,h,r,s;if(this._outlineWidth)for(i=0,n=this._data.length;i<n;i++)for(o=this._data[i],t.lineWidth=this._weight+2*this._outlineWidth,e=1,h=o.length;e<h;e++)r=o[e-1],s=o[e],t.strokeStyle=this._outlineColor,t.beginPath(),t.moveTo(r.x,r.y),t.lineTo(s.x,s.y),t.stroke()},_drawHotline:function(t){var i,e,n,o,h,r,s,l,a,u;for(t.lineWidth=this._weight,i=0,n=this._data.length;i<n;i++)for(o=this._data[i],e=1,h=o.length;e<h;e++)r=o[e-1],s=o[e],l=t.createLinearGradient(r.x,r.y,s.x,s.y),a=this.getRGBForValue(r.z),u=this.getRGBForValue(s.z),l.addColorStop(0,"rgb("+a.join(",")+")"),l.addColorStop(1,"rgb("+u.join(",")+")"),t.strokeStyle=l,t.beginPath(),t.moveTo(r.x,r.y),t.lineTo(s.x,s.y),t.stroke()}};var e=t.Canvas.extend({_initContainer:function(){t.Canvas.prototype._initContainer.call(this),this._hotline=new i(this._container)},_update:function(){t.Canvas.prototype._update.call(this),this._hotline.width(this._container.width),this._hotline.height(this._container.height)},_updatePoly:function(t){if(this._drawing){var i=t._parts;i.length&&(this._updateOptions(t),this._hotline.data(i).draw())}},_updateOptions:function(t){null!=t.options.min&&this._hotline.min(t.options.min),null!=t.options.max&&this._hotline.max(t.options.max),null!=t.options.weight&&this._hotline.weight(t.options.weight),null!=t.options.outlineWidth&&this._hotline.outlineWidth(t.options.outlineWidth),null!=t.options.outlineColor&&this._hotline.outlineColor(t.options.outlineColor),t.options.palette&&this._hotline.palette(t.options.palette)}}),n=function(i){return t.Browser.canvas?new e(i):null},o={clipSegment:function(i,e,n,o,h){var r,s,l,a=o?this._lastCode:t.LineUtil._getBitCode(i,n),u=t.LineUtil._getBitCode(e,n);for(this._lastCode=u;;){if(!(a|u))return[i,e];if(a&u)return!1;r=a||u,s=t.LineUtil._getEdgeIntersection(i,e,r,n,h),l=t.LineUtil._getBitCode(s,n),r===a?(s.z=i.z,i=s,a=l):(s.z=e.z,e=s,u=l)}}};return t.Hotline=t.Polyline.extend({statics:{Renderer:e,renderer:n},options:{renderer:n(),min:0,max:1,palette:{0:"green",.5:"yellow",1:"red"},weight:5,outlineColor:"black",outlineWidth:1},getRGBForValue:function(t){return this._renderer._hotline.getRGBForValue(t)},_projectLatlngs:function(i,e,n){var o,h,r=i[0]instanceof t.LatLng,s=i.length;if(r){for(h=[],o=0;o<s;o++)h[o]=this._map.latLngToLayerPoint(i[o]),h[o].z=i[o].alt,n.extend(h[o]);e.push(h)}else for(o=0;o<s;o++)this._projectLatlngs(i[o],e,n)},_clipPoints:function(){if(this.options.noClip)return void(this._parts=this._rings);this._parts=[];var t,i,e,n,h,r,s,l=this._parts,a=this._renderer._bounds;for(t=0,e=0,n=this._rings.length;t<n;t++)for(s=this._rings[t],i=0,h=s.length;i<h-1;i++)r=o.clipSegment(s[i],s[i+1],a,i,!0),r&&(l[e]=l[e]||[],l[e].push(r[0]),r[1]===s[i+1]&&i!==h-2||(l[e].push(r[1]),e++))},_clickTolerance:function(){return this.options.weight/2+this.options.outlineWidth+(t.Browser.touch?10:0)}}),t.hotline=function(i,e){return new t.Hotline(i,e)},t});
Index: src/webapp/webserver/lib/js/leaflet.js
===================================================================
--- src/webapp/webserver/lib/js/leaflet.js	(revision cb39a771d37f2a3a7ff4dceaa71ea42cca3552d7)
+++ 	(revision )
@@ -1,6 +1,0 @@
-!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i(t.L=t.L||{})}(this,function(t){"use strict";function i(t){var i,e,n,o;for(e=1,n=arguments.length;e<n;e++){o=arguments[e];for(i in o)t[i]=o[i]}return t}function e(t,i){var e=Array.prototype.slice;if(t.bind)return t.bind.apply(t,e.call(arguments,1));var n=e.call(arguments,2);return function(){return t.apply(i,n.length?n.concat(e.call(arguments)):arguments)}}function n(t){return t._leaflet_id=t._leaflet_id||++di,t._leaflet_id}function o(t,i,e){var n,o,s,r;return r=function(){n=!1,o&&(s.apply(e,o),o=!1)},s=function(){n?o=arguments:(t.apply(e,arguments),setTimeout(r,i),n=!0)}}function s(t,i,e){var n=i[1],o=i[0],s=n-o;return t===n&&e?t:((t-o)%s+s)%s+o}function r(){return!1}function a(t,i){var e=Math.pow(10,i||5);return Math.round(t*e)/e}function h(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function u(t){return h(t).split(/\s+/)}function l(t,i){t.hasOwnProperty("options")||(t.options=t.options?_i(t.options):{});for(var e in i)t.options[e]=i[e];return t.options}function c(t,i,e){var n=[];for(var o in t)n.push(encodeURIComponent(e?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(i&&i.indexOf("?")!==-1?"&":"?")+n.join("&")}function _(t,i){return t.replace(pi,function(t,e){var n=i[e];if(void 0===n)throw new Error("No value provided for variable "+t);return"function"==typeof n&&(n=n(i)),n})}function d(t,i){for(var e=0;e<t.length;e++)if(t[e]===i)return e;return-1}function p(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}function m(t){var i=+new Date,e=Math.max(0,16-(i-gi));return gi=i+e,window.setTimeout(t,e)}function f(t,i,n){return n&&vi===m?void t.call(i):vi.call(window,e(t,i))}function g(t){t&&yi.call(window,t)}function v(){}function y(t){if(L&&L.Mixin){t=mi(t)?t:[t];for(var i=0;i<t.length;i++)t[i]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}function x(t,i,e){this.x=e?Math.round(t):t,this.y=e?Math.round(i):i}function w(t,i,e){return t instanceof x?t:mi(t)?new x(t[0],t[1]):void 0===t||null===t?t:"object"==typeof t&&"x"in t&&"y"in t?new x(t.x,t.y):new x(t,i,e)}function P(t,i){if(t)for(var e=i?[t,i]:t,n=0,o=e.length;n<o;n++)this.extend(e[n])}function b(t,i){return!t||t instanceof P?t:new P(t,i)}function T(t,i){if(t)for(var e=i?[t,i]:t,n=0,o=e.length;n<o;n++)this.extend(e[n])}function z(t,i){return t instanceof T?t:new T(t,i)}function M(t,i,e){if(isNaN(t)||isNaN(i))throw new Error("Invalid LatLng object: ("+t+", "+i+")");this.lat=+t,this.lng=+i,void 0!==e&&(this.alt=+e)}function C(t,i,e){return t instanceof M?t:mi(t)&&"object"!=typeof t[0]?3===t.length?new M(t[0],t[1],t[2]):2===t.length?new M(t[0],t[1]):null:void 0===t||null===t?t:"object"==typeof t&&"lat"in t?new M(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===i?null:new M(t,i,e)}function Z(t,i,e,n){return mi(t)?(this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3])):(this._a=t,this._b=i,this._c=e,void(this._d=n))}function E(t,i,e,n){return new Z(t,i,e,n)}function S(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function k(t,i){var e,n,o,s,r,a,h="";for(e=0,o=t.length;e<o;e++){for(r=t[e],n=0,s=r.length;n<s;n++)a=r[n],h+=(n?"L":"M")+a.x+" "+a.y;h+=i?re?"z":"x":""}return h||"M0 0"}function B(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}function I(t,i,e,n){return"touchstart"===i?O(t,e,n):"touchmove"===i?W(t,e,n):"touchend"===i&&H(t,e,n),this}function A(t,i,e){var n=t["_leaflet_"+i+e];return"touchstart"===i?t.removeEventListener(ue,n,!1):"touchmove"===i?t.removeEventListener(le,n,!1):"touchend"===i&&(t.removeEventListener(ce,n,!1),t.removeEventListener(_e,n,!1)),this}function O(t,i,n){var o=e(function(t){if("mouse"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE){if(!(de.indexOf(t.target.tagName)<0))return;$(t)}j(t,i)});t["_leaflet_touchstart"+n]=o,t.addEventListener(ue,o,!1),me||(document.documentElement.addEventListener(ue,R,!0),document.documentElement.addEventListener(le,D,!0),document.documentElement.addEventListener(ce,N,!0),document.documentElement.addEventListener(_e,N,!0),me=!0)}function R(t){pe[t.pointerId]=t,fe++}function D(t){pe[t.pointerId]&&(pe[t.pointerId]=t)}function N(t){delete pe[t.pointerId],fe--}function j(t,i){t.touches=[];for(var e in pe)t.touches.push(pe[e]);t.changedTouches=[t],i(t)}function W(t,i,e){var n=function(t){(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&"mouse"!==t.pointerType||0!==t.buttons)&&j(t,i)};t["_leaflet_touchmove"+e]=n,t.addEventListener(le,n,!1)}function H(t,i,e){var n=function(t){j(t,i)};t["_leaflet_touchend"+e]=n,t.addEventListener(ce,n,!1),t.addEventListener(_e,n,!1)}function F(t,i,e){function n(t){var i;if(te){if(!Ai||"mouse"===t.pointerType)return;i=fe}else i=t.touches.length;if(!(i>1)){var e=Date.now(),n=e-(s||e);r=t.touches?t.touches[0]:t,a=n>0&&n<=h,s=e}}function o(t){if(a&&!r.cancelBubble){if(te){if(!Ai||"mouse"===t.pointerType)return;var e,n,o={};for(n in r)e=r[n],o[n]=e&&e.bind?e.bind(r):e;r=o}r.type="dblclick",i(r),s=null}}var s,r,a=!1,h=250;return t[ye+ge+e]=n,t[ye+ve+e]=o,t[ye+"dblclick"+e]=i,t.addEventListener(ge,n,!1),t.addEventListener(ve,o,!1),t.addEventListener("dblclick",i,!1),this}function U(t,i){var e=t[ye+ge+i],n=t[ye+ve+i],o=t[ye+"dblclick"+i];return t.removeEventListener(ge,e,!1),t.removeEventListener(ve,n,!1),Ai||t.removeEventListener("dblclick",o,!1),this}function V(t,i,e,n){if("object"==typeof i)for(var o in i)q(t,o,i[o],e);else{i=u(i);for(var s=0,r=i.length;s<r;s++)q(t,i[s],e,n)}return this}function G(t,i,e,n){if("object"==typeof i)for(var o in i)K(t,o,i[o],e);else if(i){i=u(i);for(var s=0,r=i.length;s<r;s++)K(t,i[s],e,n)}else{for(var a in t[xe])K(t,a,t[xe][a]);delete t[xe]}}function q(t,i,e,o){var s=i+n(e)+(o?"_"+n(o):"");if(t[xe]&&t[xe][s])return this;var r=function(i){return e.call(o||t,i||window.event)},a=r;te&&0===i.indexOf("touch")?I(t,i,r,s):!ie||"dblclick"!==i||!F||te&&ji?"addEventListener"in t?"mousewheel"===i?t.addEventListener("onwheel"in t?"wheel":"mousewheel",r,!1):"mouseenter"===i||"mouseleave"===i?(r=function(i){i=i||window.event,ot(t,i)&&a(i)},t.addEventListener("mouseenter"===i?"mouseover":"mouseout",r,!1)):("click"===i&&Ri&&(r=function(t){st(t,a)}),t.addEventListener(i,r,!1)):"attachEvent"in t&&t.attachEvent("on"+i,r):F(t,r,s),t[xe]=t[xe]||{},t[xe][s]=r}function K(t,i,e,o){var s=i+n(e)+(o?"_"+n(o):""),r=t[xe]&&t[xe][s];return r?(te&&0===i.indexOf("touch")?A(t,i,s):ie&&"dblclick"===i&&U?U(t,s):"removeEventListener"in t?"mousewheel"===i?t.removeEventListener("onwheel"in t?"wheel":"mousewheel",r,!1):t.removeEventListener("mouseenter"===i?"mouseover":"mouseleave"===i?"mouseout":i,r,!1):"detachEvent"in t&&t.detachEvent("on"+i,r),void(t[xe][s]=null)):this}function Y(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,nt(t),this}function X(t){return q(t,"mousewheel",Y)}function J(t){return V(t,"mousedown touchstart dblclick",Y),q(t,"click",et),this}function $(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Q(t){return $(t),Y(t),this}function tt(t,i){if(!i)return new x(t.clientX,t.clientY);var e=i.getBoundingClientRect();return new x(t.clientX-e.left-i.clientLeft,t.clientY-e.top-i.clientTop)}function it(t){return Ai?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/we:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function et(t){Le[t.type]=!0}function nt(t){var i=Le[t.type];return Le[t.type]=!1,i}function ot(t,i){var e=i.relatedTarget;if(!e)return!0;try{for(;e&&e!==t;)e=e.parentNode}catch(t){return!1}return e!==t}function st(t,i){var e=t.timeStamp||t.originalEvent&&t.originalEvent.timeStamp,n=zi&&e-zi;return n&&n>100&&n<500||t.target._simulatedClick&&!t._simulated?void Q(t):(zi=e,void i(t))}function rt(t){return"string"==typeof t?document.getElementById(t):t}function at(t,i){var e=t.style[i]||t.currentStyle&&t.currentStyle[i];if((!e||"auto"===e)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);e=n?n[i]:null}return"auto"===e?null:e}function ht(t,i,e){var n=document.createElement(t);return n.className=i||"",e&&e.appendChild(n),n}function ut(t){var i=t.parentNode;i&&i.removeChild(t)}function lt(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ct(t){var i=t.parentNode;i.lastChild!==t&&i.appendChild(t)}function _t(t){var i=t.parentNode;i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function dt(t,i){if(void 0!==t.classList)return t.classList.contains(i);var e=gt(t);return e.length>0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(e)}function pt(t,i){if(void 0!==t.classList)for(var e=u(i),n=0,o=e.length;n<o;n++)t.classList.add(e[n]);else if(!dt(t,i)){var s=gt(t);ft(t,(s?s+" ":"")+i)}}function mt(t,i){void 0!==t.classList?t.classList.remove(i):ft(t,h((" "+gt(t)+" ").replace(" "+i+" "," ")))}function ft(t,i){void 0===t.className.baseVal?t.className=i:t.className.baseVal=i}function gt(t){return void 0===t.className.baseVal?t.className:t.className.baseVal}function vt(t,i){"opacity"in t.style?t.style.opacity=i:"filter"in t.style&&yt(t,i)}function yt(t,i){var e=!1,n="DXImageTransform.Microsoft.Alpha";try{e=t.filters.item(n)}catch(t){if(1===i)return}i=Math.round(100*i),e?(e.Enabled=100!==i,e.Opacity=i):t.style.filter+=" progid:"+n+"(opacity="+i+")"}function xt(t){for(var i=document.documentElement.style,e=0;e<t.length;e++)if(t[e]in i)return t[e];return!1}function wt(t,i,e){var n=i||new x(0,0);t.style[be]=(Gi?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(e?" scale("+e+")":"")}function Lt(t,i){t._leaflet_pos=i,Yi?wt(t,i):(t.style.left=i.x+"px",t.style.top=i.y+"px")}function Pt(t){return t._leaflet_pos||new x(0,0)}function bt(){V(window,"dragstart",$)}function Tt(){G(window,"dragstart",$)}function zt(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(Mt(),Ce=t,Ze=t.style.outline,t.style.outline="none",V(window,"keydown",Mt))}function Mt(){Ce&&(Ce.style.outline=Ze,Ce=void 0,Ze=void 0,G(window,"keydown",Mt))}function Ct(t,i){return new ke(t,i)}function Zt(t,i){if(!i||!t.length)return t.slice();var e=i*i;return t=It(t,e),t=kt(t,e)}function Et(t,i,e){return Math.sqrt(Nt(t,i,e,!0))}function St(t,i,e){return Nt(t,i,e)}function kt(t,i){var e=t.length,n=typeof Uint8Array!=void 0+""?Uint8Array:Array,o=new n(e);o[0]=o[e-1]=1,Bt(t,o,i,0,e-1);var s,r=[];for(s=0;s<e;s++)o[s]&&r.push(t[s]);return r}function Bt(t,i,e,n,o){var s,r,a,h=0;for(r=n+1;r<=o-1;r++)a=Nt(t[r],t[n],t[o],!0),a>h&&(s=r,h=a);h>e&&(i[s]=1,Bt(t,i,e,n,s),Bt(t,i,e,s,o))}function It(t,i){for(var e=[t[0]],n=1,o=0,s=t.length;n<s;n++)Dt(t[n],t[o])>i&&(e.push(t[n]),o=n);return o<s-1&&e.push(t[s-1]),e}function At(t,i,e,n,o){var s,r,a,h=n?Fe:Rt(t,e),u=Rt(i,e);for(Fe=u;;){if(!(h|u))return[t,i];if(h&u)return!1;s=h||u,r=Ot(t,i,s,e,o),a=Rt(r,e),s===h?(t=r,h=a):(i=r,u=a)}}function Ot(t,i,e,n,o){var s,r,a=i.x-t.x,h=i.y-t.y,u=n.min,l=n.max;return 8&e?(s=t.x+a*(l.y-t.y)/h,r=l.y):4&e?(s=t.x+a*(u.y-t.y)/h,r=u.y):2&e?(s=l.x,r=t.y+h*(l.x-t.x)/a):1&e&&(s=u.x,r=t.y+h*(u.x-t.x)/a),new x(s,r,o)}function Rt(t,i){var e=0;return t.x<i.min.x?e|=1:t.x>i.max.x&&(e|=2),t.y<i.min.y?e|=4:t.y>i.max.y&&(e|=8),e}function Dt(t,i){var e=i.x-t.x,n=i.y-t.y;return e*e+n*n}function Nt(t,i,e,n){var o,s=i.x,r=i.y,a=e.x-s,h=e.y-r,u=a*a+h*h;return u>0&&(o=((t.x-s)*a+(t.y-r)*h)/u,o>1?(s=e.x,r=e.y):o>0&&(s+=a*o,r+=h*o)),a=t.x-s,h=t.y-r,n?a*a+h*h:new x(s,r)}function jt(t){return!mi(t[0])||"object"!=typeof t[0][0]&&"undefined"!=typeof t[0][0]}function Wt(t,i,e){var n,o,s,r,a,h,u,l,c,_=[1,4,2,8];for(o=0,u=t.length;o<u;o++)t[o]._code=Rt(t[o],i);for(r=0;r<4;r++){for(l=_[r],n=[],o=0,u=t.length,s=u-1;o<u;s=o++)a=t[o],h=t[s],a._code&l?h._code&l||(c=Ot(h,a,l,i,e),c._code=Rt(c,i),n.push(c)):(h._code&l&&(c=Ot(h,a,l,i,e),c._code=Rt(c,i),n.push(c)),n.push(a));t=n}return t}function Ht(t){return new cn(t)}function Ft(t,i){return new pn(t,i)}function Ut(t,i){return new fn(t,i)}function Vt(t,i,e){return new gn(t,i,e)}function Gt(t,i){return new vn(t,i)}function qt(t,i){return new yn(t,i)}function Kt(t,i){var e,n,o,s,r="Feature"===t.type?t.geometry:t,a=r?r.coordinates:null,h=[],u=i&&i.pointToLayer,l=i&&i.coordsToLatLng||Yt;if(!a&&!r)return null;switch(r.type){case"Point":return e=l(a),u?u(t,e):new pn(e);case"MultiPoint":for(o=0,s=a.length;o<s;o++)e=l(a[o]),h.push(u?u(t,e):new pn(e));return new un(h);case"LineString":case"MultiLineString":return n=Xt(a,"LineString"===r.type?0:1,l),new vn(n,i);case"Polygon":case"MultiPolygon":return n=Xt(a,"Polygon"===r.type?1:2,l),new yn(n,i);case"GeometryCollection":for(o=0,s=r.geometries.length;o<s;o++){var c=Kt({geometry:r.geometries[o],type:"Feature",properties:t.properties},i);c&&h.push(c)}return new un(h);default:throw new Error("Invalid GeoJSON object.")}}function Yt(t){return new M(t[1],t[0],t[2])}function Xt(t,i,e){for(var n,o=[],s=0,r=t.length;s<r;s++)n=i?Xt(t[s],i-1,e):(e||Yt)(t[s]),o.push(n);return o}function Jt(t,i){return i="number"==typeof i?i:6,void 0!==t.alt?[a(t.lng,i),a(t.lat,i),a(t.alt,i)]:[a(t.lng,i),a(t.lat,i)]}function $t(t,i,e,n){for(var o=[],s=0,r=t.length;s<r;s++)o.push(i?$t(t[s],i-1,e,n):Jt(t[s],n));return!i&&e&&o.push(o[0]),o}function Qt(t,e){return t.feature?i({},t.feature,{geometry:e}):ti(e)}function ti(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}function ii(t,i){return new xn(t,i)}function ei(t,i,e){return new Tn(t,i,e)}function ni(t){return new Sn(t)}function oi(t){return new kn(t)}function si(t,i){return new Bn(t,i)}function ri(t,i){return new In(t,i)}function ai(t){return se?new On(t):null}function hi(t){return re||ae?new jn(t):null}function ui(t,i){return new Wn(t,i)}function li(){return window.L=Yn,this}var ci="1.1.0+HEAD.a3a7e04",_i=Object.create||function(){function t(){}return function(i){return t.prototype=i,new t}}(),di=0,pi=/\{ *([\w_\-]+) *\}/g,mi=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},fi="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",gi=0,vi=window.requestAnimationFrame||p("RequestAnimationFrame")||m,yi=window.cancelAnimationFrame||p("CancelAnimationFrame")||p("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)},xi=(Object.freeze||Object)({extend:i,create:_i,bind:e,lastId:di,stamp:n,throttle:o,wrapNum:s,falseFn:r,formatNum:a,trim:h,splitWords:u,setOptions:l,getParamString:c,template:_,isArray:mi,indexOf:d,emptyImageUrl:fi,requestFn:vi,cancelFn:yi,requestAnimFrame:f,cancelAnimFrame:g});v.extend=function(t){var e=function(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},n=e.__super__=this.prototype,o=_i(n);o.constructor=e,e.prototype=o;for(var s in this)this.hasOwnProperty(s)&&"prototype"!==s&&"__super__"!==s&&(e[s]=this[s]);return t.statics&&(i(e,t.statics),delete t.statics),t.includes&&(y(t.includes),i.apply(null,[o].concat(t.includes)),delete t.includes),o.options&&(t.options=i(_i(o.options),t.options)),i(o,t),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){n.callInitHooks&&n.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,i=o._initHooks.length;t<i;t++)o._initHooks[t].call(this)}},e},v.include=function(t){return i(this.prototype,t),this},v.mergeOptions=function(t){return i(this.prototype.options,t),this},v.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1),e="function"==typeof t?t:function(){this[t].apply(this,i)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(e),this};var wi={on:function(t,i,e){if("object"==typeof t)for(var n in t)this._on(n,t[n],i);else{t=u(t);for(var o=0,s=t.length;o<s;o++)this._on(t[o],i,e)}return this},off:function(t,i,e){if(t)if("object"==typeof t)for(var n in t)this._off(n,t[n],i);else{t=u(t);for(var o=0,s=t.length;o<s;o++)this._off(t[o],i,e)}else delete this._events;return this},_on:function(t,i,e){this._events=this._events||{};var n=this._events[t];n||(n=[],this._events[t]=n),e===this&&(e=void 0);for(var o={fn:i,ctx:e},s=n,r=0,a=s.length;r<a;r++)if(s[r].fn===i&&s[r].ctx===e)return;s.push(o)},_off:function(t,i,e){var n,o,s;if(this._events&&(n=this._events[t])){if(!i){for(o=0,s=n.length;o<s;o++)n[o].fn=r;return void delete this._events[t]}if(e===this&&(e=void 0),n)for(o=0,s=n.length;o<s;o++){var a=n[o];if(a.ctx===e&&a.fn===i)return a.fn=r,this._firingCount&&(this._events[t]=n=n.slice()),void n.splice(o,1)}}},fire:function(t,e,n){if(!this.listens(t,n))return this;var o=i({},e,{type:t,target:this});if(this._events){var s=this._events[t];if(s){this._firingCount=this._firingCount+1||1;for(var r=0,a=s.length;r<a;r++){var h=s[r];h.fn.call(h.ctx||this,o)}this._firingCount--}}return n&&this._propagateEvent(o),this},listens:function(t,i){var e=this._events&&this._events[t];if(e&&e.length)return!0;if(i)for(var n in this._eventParents)if(this._eventParents[n].listens(t,i))return!0;return!1},once:function(t,i,n){if("object"==typeof t){for(var o in t)this.once(o,t[o],i);return this}var s=e(function(){this.off(t,i,n).off(t,s,n)},this);return this.on(t,i,n).on(t,s,n)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[n(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[n(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,i({layer:t.target},t),!0)}};wi.addEventListener=wi.on,wi.removeEventListener=wi.clearAllEventListeners=wi.off,wi.addOneTimeEventListener=wi.once,wi.fireEvent=wi.fire,wi.hasEventListeners=wi.listens;var Li=v.extend(wi);x.prototype={clone:function(){return new x(this.x,this.y)},add:function(t){return this.clone()._add(w(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(w(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new x(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new x(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},distanceTo:function(t){t=w(t);var i=t.x-this.x,e=t.y-this.y;return Math.sqrt(i*i+e*e)},equals:function(t){return t=w(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=w(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+a(this.x)+", "+a(this.y)+")"}},P.prototype={extend:function(t){return t=w(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new x((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new x(this.min.x,this.max.y)},getTopRight:function(){return new x(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var i,e;return t="number"==typeof t[0]||t instanceof x?w(t):b(t),t instanceof P?(i=t.min,e=t.max):i=e=t,i.x>=this.min.x&&e.x<=this.max.x&&i.y>=this.min.y&&e.y<=this.max.y},intersects:function(t){t=b(t);var i=this.min,e=this.max,n=t.min,o=t.max,s=o.x>=i.x&&n.x<=e.x,r=o.y>=i.y&&n.y<=e.y;return s&&r},overlaps:function(t){t=b(t);var i=this.min,e=this.max,n=t.min,o=t.max,s=o.x>i.x&&n.x<e.x,r=o.y>i.y&&n.y<e.y;return s&&r},isValid:function(){return!(!this.min||!this.max)}},T.prototype={extend:function(t){var i,e,n=this._southWest,o=this._northEast;if(t instanceof M)i=t,e=t;else{if(!(t instanceof T))return t?this.extend(C(t)||z(t)):this;if(i=t._southWest,e=t._northEast,!i||!e)return this}return n||o?(n.lat=Math.min(i.lat,n.lat),n.lng=Math.min(i.lng,n.lng),o.lat=Math.max(e.lat,o.lat),o.lng=Math.max(e.lng,o.lng)):(this._southWest=new M(i.lat,i.lng),this._northEast=new M(e.lat,e.lng)),this},pad:function(t){var i=this._southWest,e=this._northEast,n=Math.abs(i.lat-e.lat)*t,o=Math.abs(i.lng-e.lng)*t;return new T(new M(i.lat-n,i.lng-o),new M(e.lat+n,e.lng+o))},getCenter:function(){return new M((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new M(this.getNorth(),this.getWest())},getSouthEast:function(){return new M(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof M||"lat"in t?C(t):z(t);var i,e,n=this._southWest,o=this._northEast;return t instanceof T?(i=t.getSouthWest(),e=t.getNorthEast()):i=e=t,i.lat>=n.lat&&e.lat<=o.lat&&i.lng>=n.lng&&e.lng<=o.lng},intersects:function(t){t=z(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=i.lat&&n.lat<=e.lat,r=o.lng>=i.lng&&n.lng<=e.lng;return s&&r},overlaps:function(t){t=z(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>i.lat&&n.lat<e.lat,r=o.lng>i.lng&&n.lng<e.lng;return s&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,i){return!!t&&(t=z(t),this._southWest.equals(t.getSouthWest(),i)&&this._northEast.equals(t.getNorthEast(),i))},isValid:function(){return!(!this._southWest||!this._northEast)}},M.prototype={equals:function(t,i){if(!t)return!1;t=C(t);var e=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return e<=(void 0===i?1e-9:i)},toString:function(t){return"LatLng("+a(this.lat,t)+", "+a(this.lng,t)+")"},distanceTo:function(t){return bi.distance(this,C(t))},wrap:function(){return bi.wrapLatLng(this)},toBounds:function(t){var i=180*t/40075017,e=i/Math.cos(Math.PI/180*this.lat);return z([this.lat-i,this.lng-e],[this.lat+i,this.lng+e])},clone:function(){return new M(this.lat,this.lng,this.alt)}};var Pi={latLngToPoint:function(t,i){var e=this.projection.project(t),n=this.scale(i);return this.transformation._transform(e,n)},pointToLatLng:function(t,i){var e=this.scale(i),n=this.transformation.untransform(t,e);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var i=this.projection.bounds,e=this.scale(t),n=this.transformation.transform(i.min,e),o=this.transformation.transform(i.max,e);return new P(n,o)},infinite:!1,wrapLatLng:function(t){var i=this.wrapLng?s(t.lng,this.wrapLng,!0):t.lng,e=this.wrapLat?s(t.lat,this.wrapLat,!0):t.lat,n=t.alt;return new M(e,i,n)},wrapLatLngBounds:function(t){var i=t.getCenter(),e=this.wrapLatLng(i),n=i.lat-e.lat,o=i.lng-e.lng;if(0===n&&0===o)return t;var s=t.getSouthWest(),r=t.getNorthEast(),a=new M(s.lat-n,s.lng-o),h=new M(r.lat-n,r.lng-o);return new T(a,h)}},bi=i({},Pi,{wrapLng:[-180,180],R:6371e3,distance:function(t,i){var e=Math.PI/180,n=t.lat*e,o=i.lat*e,s=Math.sin(n)*Math.sin(o)+Math.cos(n)*Math.cos(o)*Math.cos((i.lng-t.lng)*e);return this.R*Math.acos(Math.min(s,1))}}),Ti={R:6378137,MAX_LATITUDE:85.0511287798,project:function(t){var i=Math.PI/180,e=this.MAX_LATITUDE,n=Math.max(Math.min(e,t.lat),-e),o=Math.sin(n*i);return new x(this.R*t.lng*i,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var i=180/Math.PI;return new M((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*i,t.x*i/this.R)},bounds:function(){var t=6378137*Math.PI;return new P([-t,-t],[t,t])}()};Z.prototype={transform:function(t,i){return this._transform(t.clone(),i)},_transform:function(t,i){return i=i||1,t.x=i*(this._a*t.x+this._b),t.y=i*(this._c*t.y+this._d),t},untransform:function(t,i){return i=i||1,new x((t.x/i-this._b)/this._a,(t.y/i-this._d)/this._c)}};var zi,Mi,Ci,Zi,Ei=i({},bi,{code:"EPSG:3857",projection:Ti,transformation:function(){var t=.5/(Math.PI*Ti.R);return E(t,.5,-t,.5)}()}),Si=i({},Ei,{code:"EPSG:900913"}),ki=document.documentElement.style,Bi="ActiveXObject"in window,Ii=Bi&&!document.addEventListener,Ai="msLaunchUri"in navigator&&!("documentMode"in document),Oi=B("webkit"),Ri=B("android"),Di=B("android 2")||B("android 3"),Ni=!!window.opera,ji=B("chrome"),Wi=B("gecko")&&!Oi&&!Ni&&!Bi,Hi=!ji&&B("safari"),Fi=B("phantom"),Ui="OTransition"in ki,Vi=0===navigator.platform.indexOf("Win"),Gi=Bi&&"transition"in ki,qi="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Di,Ki="MozPerspective"in ki,Yi=!window.L_DISABLE_3D&&(Gi||qi||Ki)&&!Ui&&!Fi,Xi="undefined"!=typeof orientation||B("mobile"),Ji=Xi&&Oi,$i=Xi&&qi,Qi=!window.PointerEvent&&window.MSPointerEvent,te=!(!window.PointerEvent&&!Qi),ie=!window.L_NO_TOUCH&&(te||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),ee=Xi&&Ni,ne=Xi&&Wi,oe=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,se=function(){return!!document.createElement("canvas").getContext}(),re=!(!document.createElementNS||!S("svg").createSVGRect),ae=!re&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var i=t.firstChild;return i.style.behavior="url(#default#VML)",i&&"object"==typeof i.adj}catch(t){return!1}}(),he=(Object.freeze||Object)({ie:Bi,ielt9:Ii,edge:Ai,webkit:Oi,android:Ri,android23:Di,opera:Ni,chrome:ji,gecko:Wi,safari:Hi,phantom:Fi,opera12:Ui,win:Vi,ie3d:Gi,webkit3d:qi,gecko3d:Ki,any3d:Yi,mobile:Xi,mobileWebkit:Ji,mobileWebkit3d:$i,msPointer:Qi,pointer:te,touch:ie,mobileOpera:ee,mobileGecko:ne,retina:oe,canvas:se,svg:re,vml:ae}),ue=Qi?"MSPointerDown":"pointerdown",le=Qi?"MSPointerMove":"pointermove",ce=Qi?"MSPointerUp":"pointerup",_e=Qi?"MSPointerCancel":"pointercancel",de=["INPUT","SELECT","OPTION"],pe={},me=!1,fe=0,ge=Qi?"MSPointerDown":te?"pointerdown":"touchstart",ve=Qi?"MSPointerUp":te?"pointerup":"touchend",ye="_leaflet_",xe="_leaflet_events",we=Vi&&ji?2*window.devicePixelRatio:Wi?window.devicePixelRatio:1,Le={},Pe=(Object.freeze||Object)({on:V,off:G,stopPropagation:Y,disableScrollPropagation:X,disableClickPropagation:J,preventDefault:$,stop:Q,getMousePosition:tt,getWheelDelta:it,fakeStop:et,skipped:nt,isExternalTarget:ot,addListener:V,removeListener:G}),be=xt(["transform","WebkitTransform","OTransform","MozTransform","msTransform"]),Te=xt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ze="webkitTransition"===Te||"OTransition"===Te?Te+"End":"transitionend";if("onselectstart"in document)Mi=function(){V(window,"selectstart",$)},Ci=function(){G(window,"selectstart",$)};else{var Me=xt(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Mi=function(){if(Me){var t=document.documentElement.style;Zi=t[Me],t[Me]="none"}},Ci=function(){Me&&(document.documentElement.style[Me]=Zi,Zi=void 0)}}var Ce,Ze,Ee=(Object.freeze||Object)({TRANSFORM:be,TRANSITION:Te,TRANSITION_END:ze,get:rt,getStyle:at,create:ht,remove:ut,empty:lt,toFront:ct,toBack:_t,hasClass:dt,addClass:pt,removeClass:mt,setClass:ft,getClass:gt,setOpacity:vt,testProp:xt,setTransform:wt,setPosition:Lt,getPosition:Pt,disableTextSelection:Mi,enableTextSelection:Ci,disableImageDrag:bt,enableImageDrag:Tt,preventOutline:zt,restoreOutline:Mt}),Se=Li.extend({run:function(t,i,e,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=e||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=Pt(t),this._offset=i.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=f(this._animate,this),this._step()},_step:function(t){var i=+new Date-this._startTime,e=1e3*this._duration;i<e?this._runFrame(this._easeOut(i/e),t):(this._runFrame(1),this._complete())},_runFrame:function(t,i){var e=this._startPos.add(this._offset.multiplyBy(t));i&&e._round(),Lt(this._el,e),this.fire("step")},_complete:function(){g(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),ke=Li.extend({options:{crs:Ei,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,i){i=l(this,i),this._initContainer(t),this._initLayout(),this._onResize=e(this._onResize,this),this._initEvents(),i.maxBounds&&this.setMaxBounds(i.maxBounds),void 0!==i.zoom&&(this._zoom=this._limitZoom(i.zoom)),i.center&&void 0!==i.zoom&&this.setView(C(i.center),i.zoom,{reset:!0}),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this.callInitHooks(),this._zoomAnimated=Te&&Yi&&!ee&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),V(this._proxy,ze,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,n){if(e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(C(t),e,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&n!==!0){void 0!==n.animate&&(n.zoom=i({animate:n.animate},n.zoom),n.pan=i({animate:n.animate,duration:n.duration},n.pan));var o=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan);if(o)return clearTimeout(this._sizeTimer),this}return this._resetView(t,e),this},setZoom:function(t,i){return this._loaded?this.setView(this.getCenter(),t,{zoom:i}):(this._zoom=t,this)},zoomIn:function(t,i){return t=t||(Yi?this.options.zoomDelta:1),this.setZoom(this._zoom+t,i)},zoomOut:function(t,i){return t=t||(Yi?this.options.zoomDelta:1),this.setZoom(this._zoom-t,i)},setZoomAround:function(t,i,e){var n=this.getZoomScale(i),o=this.getSize().divideBy(2),s=t instanceof x?t:this.latLngToContainerPoint(t),r=s.subtract(o).multiplyBy(1-1/n),a=this.containerPointToLatLng(o.add(r));return this.setView(a,i,{zoom:e})},_getBoundsCenterZoom:function(t,i){i=i||{},t=t.getBounds?t.getBounds():z(t);var e=w(i.paddingTopLeft||i.padding||[0,0]),n=w(i.paddingBottomRight||i.padding||[0,0]),o=this.getBoundsZoom(t,!1,e.add(n));if(o="number"==typeof i.maxZoom?Math.min(i.maxZoom,o):o,o===1/0)return{center:t.getCenter(),zoom:o};var s=n.subtract(e).divideBy(2),r=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o),h=this.unproject(r.add(a).divideBy(2).add(s),o);return{center:h,zoom:o}},fitBounds:function(t,i){if(t=z(t),!t.isValid())throw new Error("Bounds are not valid.");var e=this._getBoundsCenterZoom(t,i);return this.setView(e.center,e.zoom,i)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,i){return this.setView(t,this._zoom,{pan:i})},panBy:function(t,i){if(t=w(t).round(),i=i||{},!t.x&&!t.y)return this.fire("moveend");if(i.animate!==!0&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Se,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),
-i.noMoveStart||this.fire("movestart"),i.animate!==!1){pt(this._mapPane,"leaflet-pan-anim");var e=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,e,i.duration||.25,i.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,i,e){function n(t){var i=t?-1:1,e=t?g:m,n=g*g-m*m+i*x*x*v*v,o=2*e*x*v,s=n/o,r=Math.sqrt(s*s+1)-s,a=r<1e-9?-18:Math.log(r);return a}function o(t){return(Math.exp(t)-Math.exp(-t))/2}function s(t){return(Math.exp(t)+Math.exp(-t))/2}function r(t){return o(t)/s(t)}function a(t){return m*(s(w)/s(w+y*t))}function h(t){return m*(s(w)*r(w+y*t)-o(w))/x}function u(t){return 1-Math.pow(1-t,1.5)}function l(){var e=(Date.now()-L)/b,n=u(e)*P;e<=1?(this._flyToFrame=f(l,this),this._move(this.unproject(c.add(_.subtract(c).multiplyBy(h(n)/v)),p),this.getScaleZoom(m/a(n),p),{flyTo:!0})):this._move(t,i)._moveEnd(!0)}if(e=e||{},e.animate===!1||!Yi)return this.setView(t,i,e);this._stop();var c=this.project(this.getCenter()),_=this.project(t),d=this.getSize(),p=this._zoom;t=C(t),i=void 0===i?p:i;var m=Math.max(d.x,d.y),g=m*this.getZoomScale(p,i),v=_.distanceTo(c)||1,y=1.42,x=y*y,w=n(0),L=Date.now(),P=(n(1)-w)/y,b=e.duration?1e3*e.duration:1e3*P*.8;return this._moveStart(!0),l.call(this),this},flyToBounds:function(t,i){var e=this._getBoundsCenterZoom(t,i);return this.flyTo(e.center,e.zoom,i)},setMaxBounds:function(t){return t=z(t),t.isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(t){return this.options.minZoom=t,this._loaded&&this.getZoom()<this.options.minZoom?this.setZoom(t):this},setMaxZoom:function(t){return this.options.maxZoom=t,this._loaded&&this.getZoom()>this.options.maxZoom?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;var e=this.getCenter(),n=this._limitCenter(e,this._zoom,z(t));return e.equals(n)||this.panTo(n,i),this._enforcingBounds=!1,this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},t===!0?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),s=n.divideBy(2).round(),r=o.divideBy(2).round(),a=s.subtract(r);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(e(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=e(this._handleGeolocationResponse,this),o=e(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,o,t):navigator.geolocation.getCurrentPosition(n,o,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var i=t.code,e=t.message||(1===i?"permission denied":2===i?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+e+"."})},_handleGeolocationResponse:function(t){var i=t.coords.latitude,e=t.coords.longitude,n=new M(i,e),o=n.toBounds(t.coords.accuracy),s=this._locateOptions;if(s.setView){var r=this.getBoundsZoom(o);this.setView(n,s.maxZoom?Math.min(r,s.maxZoom):r)}var a={latlng:n,bounds:o,timestamp:t.timestamp};for(var h in t.coords)"number"==typeof t.coords[h]&&(a[h]=t.coords[h]);this.fire("locationfound",a)},addHandler:function(t,i){if(!i)return this;var e=this[t]=new i(this);return this._handlers.push(e),this.options[t]&&e.enable(),this},remove:function(){if(this._initEvents(!0),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}ut(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)ut(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){var e="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),n=ht("div",e,i||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),i=this.unproject(t.getBottomLeft()),e=this.unproject(t.getTopRight());return new T(i,e)},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,i,e){t=z(t),e=w(e||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),a=t.getSouthEast(),h=this.getSize().subtract(e),u=b(this.project(a,n),this.project(r,n)).getSize(),l=Yi?this.options.zoomSnap:1,c=h.x/u.x,_=h.y/u.y,d=i?Math.max(c,_):Math.min(c,_);return n=this.getScaleZoom(d,n),l&&(n=Math.round(n/(l/100))*(l/100),n=i?Math.ceil(n/l)*l:Math.floor(n/l)*l),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new x(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){var e=this._getTopLeftPoint(t,i);return new P(e,e.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var e=this.options.crs;return i=void 0===i?this._zoom:i,e.scale(t)/e.scale(i)},getScaleZoom:function(t,i){var e=this.options.crs;i=void 0===i?this._zoom:i;var n=e.zoom(t*e.scale(i));return isNaN(n)?1/0:n},project:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.latLngToPoint(C(t),i)},unproject:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.pointToLatLng(w(t),i)},layerPointToLatLng:function(t){var i=w(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){var i=this.project(C(t))._round();return i._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(C(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(z(t))},distance:function(t,i){return this.options.crs.distance(C(t),C(i))},containerPointToLayerPoint:function(t){return w(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return w(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(w(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(C(t)))},mouseEventToContainerPoint:function(t){return tt(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var i=this._container=rt(t);if(!i)throw new Error("Map container not found.");if(i._leaflet_id)throw new Error("Map container is already initialized.");V(i,"scroll",this._onScroll,this),this._containerId=n(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Yi,pt(t,"leaflet-container"+(ie?" leaflet-touch":"")+(oe?" leaflet-retina":"")+(Ii?" leaflet-oldie":"")+(Hi?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=at(t,"position");"absolute"!==i&&"relative"!==i&&"fixed"!==i&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Lt(this._mapPane,new x(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(pt(t.markerPane,"leaflet-zoom-hide"),pt(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,i){Lt(this._mapPane,new x(0,0));var e=!this._loaded;this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset");var n=this._zoom!==i;this._moveStart(n)._move(t,i)._moveEnd(n),this.fire("viewreset"),e&&this.fire("load")},_moveStart:function(t){return t&&this.fire("zoomstart"),this.fire("movestart")},_move:function(t,i,e){void 0===i&&(i=this._zoom);var n=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(n||e&&e.pinch)&&this.fire("zoom",e),this.fire("move",e)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return g(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Lt(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[n(this._container)]=this;var i=t?G:V;i(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),Yi&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){g(this._resizeRequest),this._resizeRequest=f(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,i){for(var e,o=[],s="mouseout"===i||"mouseover"===i,r=t.target||t.srcElement,a=!1;r;){if(e=this._targets[n(r)],e&&("click"===i||"preclick"===i)&&!t._simulated&&this._draggableMoved(e)){a=!0;break}if(e&&e.listens(i,!0)){if(s&&!ot(r,t))break;if(o.push(e),s)break}if(r===this._container)break;r=r.parentNode}return o.length||a||s||!ot(r,t)||(o=[this]),o},_handleDOMEvent:function(t){if(this._loaded&&!nt(t)){var i=t.type;"mousedown"!==i&&"keypress"!==i||zt(t.target||t.srcElement),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if("click"===t.type){var o=i({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}if(!t._stopped&&(n=(n||[]).concat(this._findEventTargets(t,e)),n.length)){var s=n[0];"contextmenu"===e&&s.listens(e,!0)&&$(t);var r={originalEvent:t};if("keypress"!==t.type){var a=s.options&&"icon"in s.options;r.containerPoint=a?this.latLngToContainerPoint(s.getLatLng()):this.mouseEventToContainerPoint(t),r.layerPoint=this.containerPointToLayerPoint(r.containerPoint),r.latlng=a?s.getLatLng():this.layerPointToLatLng(r.layerPoint)}for(var h=0;h<n.length;h++)if(n[h].fire(e,r,!0),r.originalEvent._stopped||n[h].options.bubblingMouseEvents===!1&&d(this._mouseEvents,e)!==-1)return}},_draggableMoved:function(t){return t=t.dragging&&t.dragging.enabled()?t:this,t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,i=this._handlers.length;t<i;t++)this._handlers[t].disable()},whenReady:function(t,i){return this._loaded?t.call(i||this,{target:this}):this.on("load",t,i),this},_getMapPanePos:function(){return Pt(this._mapPane)||new x(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,i){var e=t&&void 0!==i?this._getNewPixelOrigin(t,i):this.getPixelOrigin();return e.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,i){var e=this.getSize()._divideBy(2);return this.project(t,i)._subtract(e)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,i,e){var n=this._getNewPixelOrigin(e,i);return this.project(t,i)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,i,e){var n=this._getNewPixelOrigin(e,i);return b([this.project(t.getSouthWest(),i)._subtract(n),this.project(t.getNorthWest(),i)._subtract(n),this.project(t.getSouthEast(),i)._subtract(n),this.project(t.getNorthEast(),i)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,i,e){if(!e)return t;var n=this.project(t,i),o=this.getSize().divideBy(2),s=new P(n.subtract(o),n.add(o)),r=this._getBoundsOffset(s,e,i);return r.round().equals([0,0])?t:this.unproject(n.add(r),i)},_limitOffset:function(t,i){if(!i)return t;var e=this.getPixelBounds(),n=new P(e.min.add(t),e.max.add(t));return t.add(this._getBoundsOffset(n,i))},_getBoundsOffset:function(t,i,e){var n=b(this.project(i.getNorthEast(),e),this.project(i.getSouthWest(),e)),o=n.min.subtract(t.min),s=n.max.subtract(t.max),r=this._rebound(o.x,-s.x),a=this._rebound(o.y,-s.y);return new x(r,a)},_rebound:function(t,i){return t+i>0?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),e=this.getMaxZoom(),n=Yi?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(i,Math.min(e,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){mt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,i){var e=this._getCenterOffset(t)._floor();return!((i&&i.animate)!==!0&&!this.getSize().contains(e))&&(this.panBy(e,i),!0)},_createAnimProxy:function(){var t=this._proxy=ht("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var i=be,e=this._proxy.style[i];wt(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),e===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",function(){var t=this.getCenter(),i=this.getZoom();wt(this._proxy,this.project(t,i),this.getZoomScale(i,1))},this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ut(this._proxy),delete this._proxy},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,i,e){if(this._animatingZoom)return!0;if(e=e||{},!this._zoomAnimated||e.animate===!1||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(i),o=this._getCenterOffset(t)._divideBy(1-1/n);return!(e.animate!==!0&&!this.getSize().contains(o))&&(f(function(){this._moveStart(!0)._animateZoom(t,i,!0)},this),!0)},_animateZoom:function(t,i,n,o){n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,pt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:i,noUpdate:o}),setTimeout(e(this._onZoomTransitionEnd,this),250)},_onZoomTransitionEnd:function(){this._animatingZoom&&(mt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),f(function(){this._moveEnd(!0)},this))}}),Be=v.extend({options:{position:"topright"},initialize:function(t){l(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;return i&&i.removeControl(this),this.options.position=t,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var i=this._container=this.onAdd(t),e=this.getPosition(),n=t._controlCorners[e];return pt(i,"leaflet-control"),e.indexOf("bottom")!==-1?n.insertBefore(i,n.firstChild):n.appendChild(i),this},remove:function(){return this._map?(ut(this._container),this.onRemove&&this.onRemove(this._map),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Ie=function(t){return new Be(t)};ke.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){function t(t,o){var s=e+t+" "+e+o;i[t+o]=ht("div",s,n)}var i=this._controlCorners={},e="leaflet-",n=this._controlContainer=ht("div",e+"control-container",this._container);t("top","left"),t("top","right"),t("bottom","left"),t("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ut(this._controlCorners[t]);ut(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ae=Be.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,i,e,n){return e<n?-1:n<e?1:0}},initialize:function(t,i,e){l(this,e),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1;for(var n in t)this._addLayer(t[n],n);for(n in i)this._addLayer(i[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Be.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,i){return this._addLayer(t,i),this._map?this._update():this},addOverlay:function(t,i){return this._addLayer(t,i,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var i=this._getLayer(n(t));return i&&this._layers.splice(this._layers.indexOf(i),1),this._map?this._update():this},expand:function(){pt(this._container,"leaflet-control-layers-expanded"),this._form.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._form.clientHeight?(pt(this._form,"leaflet-control-layers-scrollbar"),this._form.style.height=t+"px"):mt(this._form,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return mt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",i=this._container=ht("div",t),n=this.options.collapsed;i.setAttribute("aria-haspopup",!0),J(i),X(i);var o=this._form=ht("form",t+"-list");n&&(this._map.on("click",this.collapse,this),Ri||V(i,{mouseenter:this.expand,mouseleave:this.collapse},this));var s=this._layersLink=ht("a",t+"-toggle",i);s.href="#",s.title="Layers",ie?(V(s,"click",Q),V(s,"click",this.expand,this)):V(s,"focus",this.expand,this),V(o,"click",function(){setTimeout(e(this._onInputClick,this),0)},this),n||this.expand(),this._baseLayersList=ht("div",t+"-base",o),this._separator=ht("div",t+"-separator",o),this._overlaysList=ht("div",t+"-overlays",o),i.appendChild(o)},_getLayer:function(t){for(var i=0;i<this._layers.length;i++)if(this._layers[i]&&n(this._layers[i].layer)===t)return this._layers[i]},_addLayer:function(t,i,e){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:i,overlay:e}),this.options.sortLayers&&this._layers.sort(L.bind(function(t,i){return this.options.sortFunction(t.layer,i.layer,t.name,i.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;lt(this._baseLayersList),lt(this._overlaysList),this._layerControlInputs=[];var t,i,e,n,o=0;for(e=0;e<this._layers.length;e++)n=this._layers[e],this._addItem(n),i=i||n.overlay,t=t||!n.overlay,o+=n.overlay?0:1;return this.options.hideSingleBase&&(t=t&&o>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=i&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var i=this._getLayer(n(t.target)),e=i.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;e&&this._map.fire(e,i)},_createRadioElement:function(t,i){var e='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(i?' checked="checked"':"")+"/>",n=document.createElement("div");return n.innerHTML=e,n.firstChild},_addItem:function(t){var i,e=document.createElement("label"),o=this._map.hasLayer(t.layer);t.overlay?(i=document.createElement("input"),i.type="checkbox",i.className="leaflet-control-layers-selector",i.defaultChecked=o):i=this._createRadioElement("leaflet-base-layers",o),this._layerControlInputs.push(i),i.layerId=n(t.layer),V(i,"click",this._onInputClick,this);var s=document.createElement("span");s.innerHTML=" "+t.name;var r=document.createElement("div");e.appendChild(r),r.appendChild(i),r.appendChild(s);var a=t.overlay?this._overlaysList:this._baseLayersList;return a.appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){var t,i,e,n=this._layerControlInputs,o=[],s=[];this._handlingClick=!0;for(var r=n.length-1;r>=0;r--)t=n[r],i=this._getLayer(t.layerId).layer,e=this._map.hasLayer(i),t.checked&&!e?o.push(i):!t.checked&&e&&s.push(i);for(r=0;r<s.length;r++)this._map.removeLayer(s[r]);for(r=0;r<o.length;r++)this._map.addLayer(o[r]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,i,e=this._layerControlInputs,n=this._map.getZoom(),o=e.length-1;o>=0;o--)t=e[o],i=this._getLayer(t.layerId).layer,t.disabled=void 0!==i.options.minZoom&&n<i.options.minZoom||void 0!==i.options.maxZoom&&n>i.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),Oe=function(t,i,e){return new Ae(t,i,e)},Re=Be.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"&#x2212;",zoomOutTitle:"Zoom out"},onAdd:function(t){var i="leaflet-control-zoom",e=ht("div",i+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,i+"-in",e,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,i+"-out",e,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),e},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,i,e,n,o){var s=ht("a",e,n);return s.innerHTML=t,s.href="#",s.title=i,s.setAttribute("role","button"),s.setAttribute("aria-label",i),J(s),V(s,"click",Q),V(s,"click",o,this),V(s,"click",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";mt(this._zoomInButton,i),mt(this._zoomOutButton,i),(this._disabled||t._zoom===t.getMinZoom())&&pt(this._zoomOutButton,i),(this._disabled||t._zoom===t.getMaxZoom())&&pt(this._zoomInButton,i)}});ke.mergeOptions({zoomControl:!0}),ke.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Re,this.addControl(this.zoomControl))});var De=function(t){return new Re(t)},Ne=Be.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i="leaflet-control-scale",e=ht("div",i),n=this.options;return this._addScales(n,i+"-line",e),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,e){t.metric&&(this._mScale=ht("div",i,e)),t.imperial&&(this._iScale=ht("div",i,e))},_update:function(){var t=this._map,i=t.getSize().y/2,e=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(e)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var i=this._getRoundNum(t),e=i<1e3?i+" m":i/1e3+" km";this._updateScale(this._mScale,e,i/t)},_updateImperial:function(t){var i,e,n,o=3.2808399*t;o>5280?(i=o/5280,e=this._getRoundNum(i),this._updateScale(this._iScale,e+" mi",e/i)):(n=this._getRoundNum(o),this._updateScale(this._iScale,n+" ft",n/o))},_updateScale:function(t,i,e){t.style.width=Math.round(this.options.maxWidth*e)+"px",t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),e=t/i;return e=e>=10?10:e>=5?5:e>=3?3:e>=2?2:1,i*e}}),je=function(t){return new Ne(t)},We=Be.extend({options:{position:"bottomright",prefix:'<a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){l(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=ht("div","leaflet-control-attribution"),J(this._container);for(var i in t._layers)t._layers[i].getAttribution&&this.addAttribution(t._layers[i].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var i in this._attributions)this._attributions[i]&&t.push(i);var e=[];this.options.prefix&&e.push(this.options.prefix),t.length&&e.push(t.join(", ")),this._container.innerHTML=e.join(" | ")}}});ke.mergeOptions({attributionControl:!0}),ke.addInitHook(function(){this.options.attributionControl&&(new We).addTo(this)});var He=function(t){return new We(t)};Be.Layers=Ae,Be.Zoom=Re,Be.Scale=Ne,Be.Attribution=We,Ie.layers=Oe,Ie.zoom=De,Ie.scale=je,Ie.attribution=He;var Fe,Ue=v.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}}),Ve={Events:wi},Ge=!1,qe=ie?"touchstart mousedown":"mousedown",Ke={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},Ye={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},Xe=Li.extend({options:{clickTolerance:3},initialize:function(t,i,e,n){l(this,n),this._element=t,this._dragStartTarget=i||t,this._preventOutline=e},enable:function(){this._enabled||(V(this._dragStartTarget,qe,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(L.Draggable._dragging===this&&this.finishDrag(),G(this._dragStartTarget,qe,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!dt(this._element,"leaflet-zoom-anim")&&!(Ge||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(Ge=this,this._preventOutline&&zt(this._element),bt(),Mi(),this._moving)))){this.fire("down");var i=t.touches?t.touches[0]:t;this._startPoint=new x(i.clientX,i.clientY),V(document,Ye[t.type],this._onMove,this),V(document,Ke[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled){if(t.touches&&t.touches.length>1)return void(this._moved=!0);var i=t.touches&&1===t.touches.length?t.touches[0]:t,e=new x(i.clientX,i.clientY),n=e.subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||($(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=Pt(this._element).subtract(n),pt(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),pt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,g(this._animRequest),this._lastEvent=t,this._animRequest=f(this._updatePosition,this,!0)))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Lt(this._element,this._newPos),this.fire("drag",t)},_onUp:function(t){!t._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){mt(document.body,"leaflet-dragging"),this._lastTarget&&(mt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null);for(var t in Ye)G(document,Ye[t],this._onMove,this),G(document,Ke[t],this._onUp,this);Tt(),Ci(),this._moved&&this._moving&&(g(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,Ge=!1}}),Je=(Object.freeze||Object)({simplify:Zt,pointToSegmentDistance:Et,closestPointOnSegment:St,clipSegment:At,_getEdgeIntersection:Ot,_getBitCode:Rt,_sqClosestPointOnSegment:Nt,_flat:jt}),$e=(Object.freeze||Object)({clipPolygon:Wt}),Qe={project:function(t){return new x(t.lng,t.lat)},unproject:function(t){return new M(t.y,t.x)},bounds:new P([-180,-90],[180,90])},tn={R:6378137,R_MINOR:6356752.314245179,bounds:new P([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var i=Math.PI/180,e=this.R,n=t.lat*i,o=this.R_MINOR/e,s=Math.sqrt(1-o*o),r=s*Math.sin(n),a=Math.tan(Math.PI/4-n/2)/Math.pow((1-r)/(1+r),s/2);return n=-e*Math.log(Math.max(a,1e-10)),new x(t.lng*i*e,n)},unproject:function(t){for(var i,e=180/Math.PI,n=this.R,o=this.R_MINOR/n,s=Math.sqrt(1-o*o),r=Math.exp(-t.y/n),a=Math.PI/2-2*Math.atan(r),h=0,u=.1;h<15&&Math.abs(u)>1e-7;h++)i=s*Math.sin(a),i=Math.pow((1-i)/(1+i),s/2),u=Math.PI/2-2*Math.atan(r*i)-a,a+=u;return new M(a*e,t.x*e/n)}},en=(Object.freeze||Object)({LonLat:Qe,Mercator:tn,SphericalMercator:Ti}),nn=i({},bi,{code:"EPSG:3395",projection:tn,transformation:function(){var t=.5/(Math.PI*tn.R);return E(t,.5,-t,.5)}()}),on=i({},bi,{code:"EPSG:4326",projection:Qe,transformation:E(1/180,1,-1/180,.5)}),sn=i({},Pi,{projection:Qe,transformation:E(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,i){var e=i.lng-t.lng,n=i.lat-t.lat;return Math.sqrt(e*e+n*n)},infinite:!0});Pi.Earth=bi,Pi.EPSG3395=nn,Pi.EPSG3857=Ei,Pi.EPSG900913=Si,Pi.EPSG4326=on,Pi.Simple=sn;var rn=Li.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane);
-},addInteractiveTarget:function(t){return this._map._targets[n(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[n(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i=t.target;if(i.hasLayer(this)){if(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents){var e=this.getEvents();i.on(e,this),this.once("remove",function(){i.off(e,this)},this)}this.onAdd(i),this.getAttribution&&i.attributionControl&&i.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),i.fire("layeradd",{layer:this})}}});ke.include({addLayer:function(t){var i=n(t);return this._layers[i]?this:(this._layers[i]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var i=n(t);return this._layers[i]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[i],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&n(t)in this._layers},eachLayer:function(t,i){for(var e in this._layers)t.call(i,this._layers[e]);return this},_addLayers:function(t){t=t?mi(t)?t:[t]:[];for(var i=0,e=t.length;i<e;i++)this.addLayer(t[i])},_addZoomLimit:function(t){!isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[n(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var i=n(t);this._zoomBoundLayers[i]&&(delete this._zoomBoundLayers[i],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,i=-(1/0),e=this._getZoomSpan();for(var n in this._zoomBoundLayers){var o=this._zoomBoundLayers[n].options;t=void 0===o.minZoom?t:Math.min(t,o.minZoom),i=void 0===o.maxZoom?i:Math.max(i,o.maxZoom)}this._layersMaxZoom=i===-(1/0)?void 0:i,this._layersMinZoom=t===1/0?void 0:t,e!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var an=rn.extend({initialize:function(t){this._layers={};var i,e;if(t)for(i=0,e=t.length;i<e;i++)this.addLayer(t[i])},addLayer:function(t){var i=this.getLayerId(t);return this._layers[i]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var i=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[i]&&this._map.removeLayer(this._layers[i]),delete this._layers[i],this},hasLayer:function(t){return!!t&&(t in this._layers||this.getLayerId(t)in this._layers)},clearLayers:function(){for(var t in this._layers)this.removeLayer(this._layers[t]);return this},invoke:function(t){var i,e,n=Array.prototype.slice.call(arguments,1);for(i in this._layers)e=this._layers[i],e[t]&&e[t].apply(e,n);return this},onAdd:function(t){for(var i in this._layers)t.addLayer(this._layers[i])},onRemove:function(t){for(var i in this._layers)t.removeLayer(this._layers[i])},eachLayer:function(t,i){for(var e in this._layers)t.call(i,this._layers[e]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];for(var i in this._layers)t.push(this._layers[i]);return t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return n(t)}}),hn=function(t){return new an(t)},un=an.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),an.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),an.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new T;for(var i in this._layers){var e=this._layers[i];t.extend(e.getBounds?e.getBounds():e.getLatLng())}return t}}),ln=function(t){return new un(t)},cn=v.extend({initialize:function(t){l(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,i){var e=this._getIconUrl(t);if(!e){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n=this._createImg(e,i&&"IMG"===i.tagName?i:null);return this._setIconStyles(n,t),n},_setIconStyles:function(t,i){var e=this.options,n=e[i+"Size"];"number"==typeof n&&(n=[n,n]);var o=w(n),s=w("shadow"===i&&e.shadowAnchor||e.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+i+" "+(e.className||""),s&&(t.style.marginLeft=-s.x+"px",t.style.marginTop=-s.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,i){return i=i||document.createElement("img"),i.src=t,i},_getIconUrl:function(t){return oe&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),_n=cn.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return _n.imagePath||(_n.imagePath=this._detectIconPath()),(this.options.imagePath||_n.imagePath)+cn.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=ht("div","leaflet-default-icon-path",document.body),i=at(t,"background-image")||at(t,"backgroundImage");return document.body.removeChild(t),i=null===i||0!==i.indexOf("url")?"":i.replace(/^url\([\"\']?/,"").replace(/marker-icon\.png[\"\']?\)$/,"")}}),dn=Ue.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new Xe(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),pt(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&mt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup().fire("movestart").fire("dragstart")},_onDrag:function(t){var i=this._marker,e=i._shadow,n=Pt(i._icon),o=i._map.layerPointToLatLng(n);e&&Lt(e,n),i._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,i.fire("move",t).fire("drag",t)},_onDragEnd:function(t){delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),pn=rn.extend({options:{icon:new _n,interactive:!0,draggable:!1,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",bubblingMouseEvents:!1},initialize:function(t,i){l(this,i),this._latlng=C(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var i=this._latlng;return this._latlng=C(t),this.update(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),e=t.icon.createIcon(this._icon),n=!1;e!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(e.title=t.title),t.alt&&(e.alt=t.alt)),pt(e,i),t.keyboard&&(e.tabIndex="0"),this._icon=e,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var o=t.icon.createShadow(this._shadow),s=!1;o!==this._shadow&&(this._removeShadow(),s=!0),o&&(pt(o,i),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&s&&this.getPane("shadowPane").appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),ut(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ut(this._shadow),this._shadow=null},_setPos:function(t){Lt(this._icon,t),this._shadow&&Lt(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon.style.zIndex=this._zIndex+t},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(i)},_initInteraction:function(){if(this.options.interactive&&(pt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),dn)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new dn(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;vt(this._icon,t),this._shadow&&vt(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor||[0,0]},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor||[0,0]}}),mn=rn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return l(this,t),this._renderer&&this._renderer._updateStyle(this),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(ie?10:0)}}),fn=mn.extend({options:{fill:!0,radius:10},initialize:function(t,i){l(this,i),this._latlng=C(t),this._radius=this.options.radius},setLatLng:function(t){return this._latlng=C(t),this.redraw(),this.fire("move",{latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var i=t&&t.radius||this._radius;return mn.prototype.setStyle.call(this,t),this.setRadius(i),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,i=this._radiusY||t,e=this._clickTolerance(),n=[t+e,i+e];this._pxBounds=new P(this._point.subtract(n),this._point.add(n))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),gn=fn.extend({initialize:function(t,e,n){if("number"==typeof e&&(e=i({},n,{radius:e})),l(this,e),this._latlng=C(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new T(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:mn.prototype.setStyle,_project:function(){var t=this._latlng.lng,i=this._latlng.lat,e=this._map,n=e.options.crs;if(n.distance===bi.distance){var o=Math.PI/180,s=this._mRadius/bi.R/o,r=e.project([i+s,t]),a=e.project([i-s,t]),h=r.add(a).divideBy(2),u=e.unproject(h).lat,l=Math.acos((Math.cos(s*o)-Math.sin(i*o)*Math.sin(u*o))/(Math.cos(i*o)*Math.cos(u*o)))/o;(isNaN(l)||0===l)&&(l=s/Math.cos(Math.PI/180*i)),this._point=h.subtract(e.getPixelOrigin()),this._radius=isNaN(l)?0:Math.max(Math.round(h.x-e.project([u,t-l]).x),1),this._radiusY=Math.max(Math.round(h.y-r.y),1)}else{var c=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=e.latLngToLayerPoint(this._latlng),this._radius=this._point.x-e.latLngToLayerPoint(c).x}this._updateBounds()}}),vn=mn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,i){l(this,i),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var i,e,n=1/0,o=null,s=Nt,r=0,a=this._parts.length;r<a;r++)for(var h=this._parts[r],u=1,l=h.length;u<l;u++){i=h[u-1],e=h[u];var c=s(t,i,e,!0);c<n&&(n=c,o=s(t,i,e))}return o&&(o.distance=Math.sqrt(n)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,i,e,n,o,s,r,a=this._rings[0],h=a.length;if(!h)return null;for(t=0,i=0;t<h-1;t++)i+=a[t].distanceTo(a[t+1])/2;if(0===i)return this._map.layerPointToLatLng(a[0]);for(t=0,n=0;t<h-1;t++)if(o=a[t],s=a[t+1],e=o.distanceTo(s),n+=e,n>i)return r=(n-i)/e,this._map.layerPointToLatLng([s.x-r*(s.x-o.x),s.y-r*(s.y-o.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,i){return i=i||this._defaultShape(),t=C(t),i.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new T,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return jt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var i=[],e=jt(t),n=0,o=t.length;n<o;n++)e?(i[n]=C(t[n]),this._bounds.extend(i[n])):i[n]=this._convertLatLngs(t[n]);return i},_project:function(){var t=new P;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t);var i=this._clickTolerance(),e=new x(i,i);this._bounds.isValid()&&t.isValid()&&(t.min._subtract(e),t.max._add(e),this._pxBounds=t)},_projectLatlngs:function(t,i,e){var n,o,s=t[0]instanceof M,r=t.length;if(s){for(o=[],n=0;n<r;n++)o[n]=this._map.latLngToLayerPoint(t[n]),e.extend(o[n]);i.push(o)}else for(n=0;n<r;n++)this._projectLatlngs(t[n],i,e)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t)){if(this.options.noClip)return void(this._parts=this._rings);var i,e,n,o,s,r,a,h=this._parts;for(i=0,n=0,o=this._rings.length;i<o;i++)for(a=this._rings[i],e=0,s=a.length;e<s-1;e++)r=At(a[e],a[e+1],t,e,!0),r&&(h[n]=h[n]||[],h[n].push(r[0]),r[1]===a[e+1]&&e!==s-2||(h[n].push(r[1]),n++))}},_simplifyPoints:function(){for(var t=this._parts,i=this.options.smoothFactor,e=0,n=t.length;e<n;e++)t[e]=Zt(t[e],i)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,i){var e,n,o,s,r,a,h=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(e=0,s=this._parts.length;e<s;e++)for(a=this._parts[e],n=0,r=a.length,o=r-1;n<r;o=n++)if((i||0!==n)&&Et(t,a[o],a[n])<=h)return!0;return!1}}),yn=vn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,i,e,n,o,s,r,a,h,u=this._rings[0],l=u.length;if(!l)return null;for(s=r=a=0,t=0,i=l-1;t<l;i=t++)e=u[t],n=u[i],o=e.y*n.x-n.y*e.x,r+=(e.x+n.x)*o,a+=(e.y+n.y)*o,s+=3*o;return h=0===s?u[0]:[r/s,a/s],this._map.layerPointToLatLng(h)},_convertLatLngs:function(t){var i=vn.prototype._convertLatLngs.call(this,t),e=i.length;return e>=2&&i[0]instanceof M&&i[0].equals(i[e-1])&&i.pop(),i},_setLatLngs:function(t){vn.prototype._setLatLngs.call(this,t),jt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return jt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,e=new x(i,i);if(t=new P(t.min.subtract(e),t.max.add(e)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t)){if(this.options.noClip)return void(this._parts=this._rings);for(var n,o=0,s=this._rings.length;o<s;o++)n=Wt(this._rings[o],t,!0),n.length&&this._parts.push(n)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var i,e,n,o,s,r,a,h,u=!1;if(!this._pxBounds.contains(t))return!1;for(o=0,a=this._parts.length;o<a;o++)for(i=this._parts[o],s=0,h=i.length,r=h-1;s<h;r=s++)e=i[s],n=i[r],e.y>t.y!=n.y>t.y&&t.x<(n.x-e.x)*(t.y-e.y)/(n.y-e.y)+e.x&&(u=!u);return u||vn.prototype._containsPoint.call(this,t,!0)}}),xn=un.extend({initialize:function(t,i){l(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i,e,n,o=mi(t)?t:t.features;if(o){for(i=0,e=o.length;i<e;i++)n=o[i],(n.geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var s=this.options;if(s.filter&&!s.filter(t))return this;var r=Kt(t,s);return r?(r.feature=ti(t),r.defaultOptions=r.options,this.resetStyle(r),s.onEachFeature&&s.onEachFeature(t,r),this.addLayer(r)):this},resetStyle:function(t){return t.options=i({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this},setStyle:function(t){return this.eachLayer(function(i){this._setLayerStyle(i,t)},this)},_setLayerStyle:function(t,i){"function"==typeof i&&(i=i(t.feature)),t.setStyle&&t.setStyle(i)}}),wn={toGeoJSON:function(t){return Qt(this,{type:"Point",coordinates:Jt(this.getLatLng(),t)})}};pn.include(wn),gn.include(wn),fn.include(wn),vn.include({toGeoJSON:function(t){var i=!jt(this._latlngs),e=$t(this._latlngs,i?1:0,!1,t);return Qt(this,{type:(i?"Multi":"")+"LineString",coordinates:e})}}),yn.include({toGeoJSON:function(t){var i=!jt(this._latlngs),e=i&&!jt(this._latlngs[0]),n=$t(this._latlngs,e?2:i?1:0,!0,t);return i||(n=[n]),Qt(this,{type:(e?"Multi":"")+"Polygon",coordinates:n})}}),an.include({toMultiPoint:function(t){var i=[];return this.eachLayer(function(e){i.push(e.toGeoJSON(t).geometry.coordinates)}),Qt(this,{type:"MultiPoint",coordinates:i})},toGeoJSON:function(t){var i=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===i)return this.toMultiPoint(t);var e="GeometryCollection"===i,n=[];return this.eachLayer(function(i){if(i.toGeoJSON){var o=i.toGeoJSON(t);if(e)n.push(o.geometry);else{var s=ti(o);"FeatureCollection"===s.type?n.push.apply(n,s.features):n.push(s)}}}),e?Qt(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var Ln=ii,Pn=rn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,i,e){this._url=t,this._bounds=z(i),l(this,e)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(pt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ut(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ct(this._image),this},bringToBack:function(){return this._map&&_t(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=t,this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._image=ht("img","leaflet-image-layer "+(this._zoomAnimated?"leaflet-zoom-animated":"")+(this.options.className||""));t.onselectstart=r,t.onmousemove=r,t.onload=e(this.fire,this,"load"),t.onerror=e(this._overlayOnError,this,"error"),this.options.crossOrigin&&(t.crossOrigin=""),this.options.zIndex&&this._updateZIndex(),t.src=this._url,t.alt=this.options.alt},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),e=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;wt(this._image,e,i)},_reset:function(){var t=this._image,i=new P(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),e=i.getSize();Lt(t,i.min),t.style.width=e.x+"px",t.style.height=e.y+"px"},_updateOpacity:function(){vt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)}}),bn=function(t,i,e){return new Pn(t,i,e)},Tn=Pn.extend({options:{autoplay:!0,loop:!0},_initImage:function(){var t=this._image=ht("video","leaflet-image-layer "+(this._zoomAnimated?"leaflet-zoom-animated":""));t.onselectstart=r,t.onmousemove=r,t.onloadeddata=e(this.fire,this,"load"),mi(this._url)||(this._url=[this._url]),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop;for(var i=0;i<this._url.length;i++){var n=ht("source");n.src=this._url[i],t.appendChild(n)}}}),zn=rn.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,i){l(this,t),this._source=i},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&vt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&vt(this._container,1),this.bringToFront()},onRemove:function(t){t._fadeAnimated?(vt(this._container,0),this._removeTimeout=setTimeout(e(ut,void 0,this._container),200)):ut(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=C(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ct(this._container),this},bringToBack:function(){return this._map&&_t(this._container),this},_updateContent:function(){if(this._content){var t=this._contentNode,i="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof i)t.innerHTML=i;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(i)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),i=w(this.options.offset),e=this._getAnchor();this._zoomAnimated?Lt(this._container,t.add(e)):i=i.add(t).add(e);var n=this._containerBottom=-i.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+i.x;this._container.style.bottom=n+"px",this._container.style.left=o+"px"}},_getAnchor:function(){return[0,0]}}),Mn=zn.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,className:""},openOn:function(t){return t.openPopup(this),this},onAdd:function(t){zn.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof mn||this._source.on("preclick",Y))},onRemove:function(t){zn.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof mn||this._source.off("preclick",Y))},getEvents:function(){var t=zn.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t="leaflet-popup",i=this._container=ht("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),e=this._wrapper=ht("div",t+"-content-wrapper",i);if(this._contentNode=ht("div",t+"-content",e),J(e),X(this._contentNode),V(e,"contextmenu",Y),this._tipContainer=ht("div",t+"-tip-container",i),this._tip=ht("div",t+"-tip",this._tipContainer),this.options.closeButton){var n=this._closeButton=ht("a",t+"-close-button",i);n.href="#close",n.innerHTML="&#215;",V(n,"click",this._onCloseButtonClick,this)}},_updateLayout:function(){var t=this._contentNode,i=t.style;i.width="",i.whiteSpace="nowrap";var e=t.offsetWidth;e=Math.min(e,this.options.maxWidth),e=Math.max(e,this.options.minWidth),i.width=e+1+"px",i.whiteSpace="",i.height="";var n=t.offsetHeight,o=this.options.maxHeight,s="leaflet-popup-scrolled";o&&n>o?(i.height=o+"px",pt(t,s)):mt(t,s),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),e=this._getAnchor();Lt(this._container,i.add(e))},_adjustPan:function(){if(!(!this.options.autoPan||this._map._panAnim&&this._map._panAnim._inProgress)){var t=this._map,i=parseInt(at(this._container,"marginBottom"),10)||0,e=this._container.offsetHeight+i,n=this._containerWidth,o=new x(this._containerLeft,-e-this._containerBottom);o._add(Pt(this._container));var s=t.layerPointToContainerPoint(o),r=w(this.options.autoPanPadding),a=w(this.options.autoPanPaddingTopLeft||r),h=w(this.options.autoPanPaddingBottomRight||r),u=t.getSize(),l=0,c=0;s.x+n+h.x>u.x&&(l=s.x+n-u.x+h.x),s.x-l-a.x<0&&(l=s.x-a.x),s.y+e+h.y>u.y&&(c=s.y+e-u.y+h.y),s.y-c-a.y<0&&(c=s.y-a.y),(l||c)&&t.fire("autopanstart").panBy([l,c])}},_onCloseButtonClick:function(t){this._close(),Q(t)},_getAnchor:function(){return w(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Cn=function(t,i){return new Mn(t,i)};ke.mergeOptions({closePopupOnClick:!0}),ke.include({openPopup:function(t,i,e){return t instanceof Mn||(t=new Mn(e).setContent(t)),i&&t.setLatLng(i),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),rn.include({bindPopup:function(t,i){return t instanceof Mn?(l(t,i),this._popup=t,t._source=this):(this._popup&&!i||(this._popup=new Mn(i,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,i){if(t instanceof rn||(i=t,t=this),t instanceof un)for(var e in this._layers){t=this._layers[e];break}return i||(i=t.getCenter?t.getCenter():t.getLatLng()),this._popup&&this._map&&(this._popup._source=t,this._popup.update(),this._map.openPopup(this._popup,i)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var i=t.layer||t.target;if(this._popup&&this._map)return Q(t),i instanceof mn?void this.openPopup(t.layer||t.target,t.latlng):void(this._map.hasLayer(this._popup)&&this._popup._source===i?this.closePopup():this.openPopup(i,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var Zn=zn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){zn.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){zn.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=zn.prototype.getEvents.call(this);return ie&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip",i=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ht("div",i)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i=this._map,e=this._container,n=i.latLngToContainerPoint(i.getCenter()),o=i.layerPointToContainerPoint(t),s=this.options.direction,r=e.offsetWidth,a=e.offsetHeight,h=w(this.options.offset),u=this._getAnchor();"top"===s?t=t.add(w(-r/2+h.x,-a+h.y+u.y,!0)):"bottom"===s?t=t.subtract(w(r/2-h.x,-h.y,!0)):"center"===s?t=t.subtract(w(r/2+h.x,a/2-u.y+h.y,!0)):"right"===s||"auto"===s&&o.x<n.x?(s="right",t=t.add(w(h.x+u.x,u.y-a/2+h.y,!0))):(s="left",t=t.subtract(w(r+u.x-h.x,a/2-u.y-h.y,!0))),mt(e,"leaflet-tooltip-right"),mt(e,"leaflet-tooltip-left"),mt(e,"leaflet-tooltip-top"),mt(e,"leaflet-tooltip-bottom"),pt(e,"leaflet-tooltip-"+s),Lt(e,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&vt(this._container,t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(i)},_getAnchor:function(){return w(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),En=function(t,i){return new Zn(t,i)};ke.include({openTooltip:function(t,i,e){return t instanceof Zn||(t=new Zn(e).setContent(t)),i&&t.setLatLng(i),this.hasLayer(t)?this:this.addLayer(t)},closeTooltip:function(t){return t&&this.removeLayer(t),this}}),rn.include({bindTooltip:function(t,i){return t instanceof Zn?(l(t,i),this._tooltip=t,t._source=this):(this._tooltip&&!i||(this._tooltip=new Zn(i,this)),this._tooltip.setContent(t)),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),
-this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var i=t?"off":"on",e={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?e.add=this._openTooltip:(e.mouseover=this._openTooltip,e.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(e.mousemove=this._moveTooltip),ie&&(e.click=this._openTooltip)),this[i](e),this._tooltipHandlersAdded=!t}},openTooltip:function(t,i){if(t instanceof rn||(i=t,t=this),t instanceof un)for(var e in this._layers){t=this._layers[e];break}return i||(i=t.getCenter?t.getCenter():t.getLatLng()),this._tooltip&&this._map&&(this._tooltip._source=t,this._tooltip.update(),this._map.openTooltip(this._tooltip,i),this._tooltip.options.interactive&&this._tooltip._container&&(pt(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(mt(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(t){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(t)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){var i=t.layer||t.target;this._tooltip&&this._map&&this.openTooltip(i,this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var i,e,n=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(i=this._map.mouseEventToContainerPoint(t.originalEvent),e=this._map.containerPointToLayerPoint(i),n=this._map.layerPointToLatLng(e)),this._tooltip.setLatLng(n)}});var Sn=cn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var i=t&&"DIV"===t.tagName?t:document.createElement("div"),e=this.options;if(i.innerHTML=e.html!==!1?e.html:"",e.bgPos){var n=w(e.bgPos);i.style.backgroundPosition=-n.x+"px "+-n.y+"px"}return this._setIconStyles(i,"icon"),i},createShadow:function(){return null}});cn.Default=_n;var kn=rn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Xi,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){l(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),ut(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=null},bringToFront:function(){return this._map&&(ct(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(_t(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=o(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof x?t:new x(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var i,e=this.getPane().children,n=-t(-(1/0),1/0),o=0,s=e.length;o<s;o++)i=e[o].style.zIndex,e[o]!==this._container&&i&&(n=t(n,+i));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Ii){vt(this._container,this.options.opacity);var t=+new Date,i=!1,e=!1;for(var n in this._tiles){var o=this._tiles[n];if(o.current&&o.loaded){var s=Math.min(1,(t-o.loaded)/200);vt(o.el,s),s<1?i=!0:(o.active?e=!0:this._onOpaqueTile(o),o.active=!0)}}e&&!this._noPrune&&this._pruneTiles(),i&&(g(this._fadeFrame),this._fadeFrame=f(this._updateOpacity,this))}},_onOpaqueTile:r,_initContainer:function(){this._container||(this._container=ht("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,i=this.options.maxZoom;if(void 0!==t){for(var e in this._levels)this._levels[e].el.children.length||e===t?(this._levels[e].el.style.zIndex=i-Math.abs(t-e),this._onUpdateLevel(e)):(ut(this._levels[e].el),this._removeTilesAtZoom(e),this._onRemoveLevel(e),delete this._levels[e]);var n=this._levels[t],o=this._map;return n||(n=this._levels[t]={},n.el=ht("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=i,n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,o.getCenter(),o.getZoom()),r(n.el.offsetWidth),this._onCreateLevel(n)),this._level=n,n}},_onUpdateLevel:r,_onRemoveLevel:r,_onCreateLevel:r,_pruneTiles:function(){if(this._map){var t,i,e=this._map.getZoom();if(e>this.options.maxZoom||e<this.options.minZoom)return void this._removeAllTiles();for(t in this._tiles)i=this._tiles[t],i.retain=i.current;for(t in this._tiles)if(i=this._tiles[t],i.current&&!i.active){var n=i.coords;this._retainParent(n.x,n.y,n.z,n.z-5)||this._retainChildren(n.x,n.y,n.z,n.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},_removeTilesAtZoom:function(t){for(var i in this._tiles)this._tiles[i].coords.z===t&&this._removeTile(i)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)ut(this._levels[t].el),this._onRemoveLevel(t),delete this._levels[t];this._removeAllTiles(),this._tileZoom=null},_retainParent:function(t,i,e,n){var o=Math.floor(t/2),s=Math.floor(i/2),r=e-1,a=new x(+o,+s);a.z=+r;var h=this._tileCoordsToKey(a),u=this._tiles[h];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),r>n&&this._retainParent(o,s,r,n))},_retainChildren:function(t,i,e,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*i;s<2*i+2;s++){var r=new x(o,s);r.z=e+1;var a=this._tileCoordsToKey(r),h=this._tiles[a];h&&h.active?h.retain=!0:(h&&h.loaded&&(h.retain=!0),e+1<n&&this._retainChildren(o,s,e+1,n))}},_resetView:function(t){var i=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),i,i)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var i=this.options;return void 0!==i.minNativeZoom&&t<i.minNativeZoom?i.minNativeZoom:void 0!==i.maxNativeZoom&&i.maxNativeZoom<t?i.maxNativeZoom:t},_setView:function(t,i,e,n){var o=this._clampZoom(Math.round(i));(void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom)&&(o=void 0);var s=this.options.updateWhenZooming&&o!==this._tileZoom;n&&!s||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),e||this._pruneTiles(),this._noPrune=!!e),this._setZoomTransforms(t,i)},_setZoomTransforms:function(t,i){for(var e in this._levels)this._setZoomTransform(this._levels[e],t,i)},_setZoomTransform:function(t,i,e){var n=this._map.getZoomScale(e,t.zoom),o=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(i,e)).round();Yi?wt(t.el,o,n):Lt(t.el,o)},_resetGrid:function(){var t=this._map,i=t.options.crs,e=this._tileSize=this.getTileSize(),n=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=i.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,i.wrapLng[0]],n).x/e.x),Math.ceil(t.project([0,i.wrapLng[1]],n).x/e.y)],this._wrapY=i.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([i.wrapLat[0],0],n).y/e.x),Math.ceil(t.project([i.wrapLat[1],0],n).y/e.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var i=this._map,e=i._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),n=i.getZoomScale(e,this._tileZoom),o=i.project(t,this._tileZoom).floor(),s=i.getSize().divideBy(2*n);return new P(o.subtract(s),o.add(s))},_update:function(t){var i=this._map;if(i){var e=this._clampZoom(i.getZoom());if(void 0===t&&(t=i.getCenter()),void 0!==this._tileZoom){var n=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(n),s=o.getCenter(),r=[],a=this.options.keepBuffer,h=new P(o.getBottomLeft().subtract([a,-a]),o.getTopRight().add([a,-a]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var l=this._tiles[u].coords;l.z===this._tileZoom&&h.contains(new x(l.x,l.y))||(this._tiles[u].current=!1)}if(Math.abs(e-this._tileZoom)>1)return void this._setView(t,e);for(var c=o.min.y;c<=o.max.y;c++)for(var _=o.min.x;_<=o.max.x;_++){var d=new x(_,c);d.z=this._tileZoom,this._isValidTile(d)&&(this._tiles[this._tileCoordsToKey(d)]||r.push(d))}if(r.sort(function(t,i){return t.distanceTo(s)-i.distanceTo(s)}),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var p=document.createDocumentFragment();for(_=0;_<r.length;_++)this._addTile(r[_],p);this._level.el.appendChild(p)}}}},_isValidTile:function(t){var i=this._map.options.crs;if(!i.infinite){var e=this._globalTileRange;if(!i.wrapLng&&(t.x<e.min.x||t.x>e.max.x)||!i.wrapLat&&(t.y<e.min.y||t.y>e.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return z(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToBounds:function(t){var i=this._map,e=this.getTileSize(),n=t.scaleBy(e),o=n.add(e),s=i.unproject(n,t.z),r=i.unproject(o,t.z),a=new T(s,r);return this.options.noWrap||i.wrapLatLngBounds(a),a},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var i=t.split(":"),e=new x(+i[0],+i[1]);return e.z=+i[2],e},_removeTile:function(t){var i=this._tiles[t];i&&(ut(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){pt(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px",t.style.height=i.y+"px",t.onselectstart=r,t.onmousemove=r,Ii&&this.options.opacity<1&&vt(t,this.options.opacity),Ri&&!Di&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,i){var n=this._getTilePos(t),o=this._tileCoordsToKey(t),s=this.createTile(this._wrapCoords(t),e(this._tileReady,this,t));this._initTile(s),this.createTile.length<2&&f(e(this._tileReady,this,t,null,s)),Lt(s,n),this._tiles[o]={el:s,coords:t,current:!0},i.appendChild(s),this.fire("tileloadstart",{tile:s,coords:t})},_tileReady:function(t,i,n){if(this._map){i&&this.fire("tileerror",{error:i,tile:n,coords:t});var o=this._tileCoordsToKey(t);n=this._tiles[o],n&&(n.loaded=+new Date,this._map._fadeAnimated?(vt(n.el,0),g(this._fadeFrame),this._fadeFrame=f(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),i||(pt(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ii||!this._map._fadeAnimated?f(this._pruneTiles,this):setTimeout(e(this._pruneTiles,this),250)))}},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new x(this._wrapX?s(t.x,this._wrapX):t.x,this._wrapY?s(t.y,this._wrapY):t.y);return i.z=t.z,i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new P(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),Bn=kn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,i){this._url=t,i=l(this,i),i.detectRetina&&oe&&i.maxZoom>0&&(i.tileSize=Math.floor(i.tileSize/2),i.zoomReverse?(i.zoomOffset--,i.minZoom++):(i.zoomOffset++,i.maxZoom--),i.minZoom=Math.max(0,i.minZoom)),"string"==typeof i.subdomains&&(i.subdomains=i.subdomains.split("")),Ri||this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){return this._url=t,i||this.redraw(),this},createTile:function(t,i){var n=document.createElement("img");return V(n,"load",e(this._tileOnLoad,this,i,n)),V(n,"error",e(this._tileOnError,this,i,n)),this.options.crossOrigin&&(n.crossOrigin=""),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:oe?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e["-y"]=n}return _(this._url,i(e,this.options))},_tileOnLoad:function(t,i){Ii?setTimeout(e(t,this,null,i),0):t(null,i)},_tileOnError:function(t,i,e){var n=this.options.errorTileUrl;n&&i.src!==n&&(i.src=n),t(e,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,i=this.options.maxZoom,e=this.options.zoomReverse,n=this.options.zoomOffset;return e&&(t=i-t),t+n},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&(i=this._tiles[t].el,i.onload=r,i.onerror=r,i.complete||(i.src=fi,ut(i)))}}),In=Bn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=i({},this.defaultWmsParams);for(var o in e)o in this.options||(n[o]=e[o]);e=l(this,e),n.width=n.height=e.tileSize*(e.detectRetina&&oe?2:1),this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var i=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[i]=this._crs.code,Bn.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToBounds(t),e=this._crs.project(i.getNorthWest()),n=this._crs.project(i.getSouthEast()),o=(this._wmsVersion>=1.3&&this._crs===on?[n.y,e.x,e.y,n.x]:[e.x,n.y,n.x,e.y]).join(","),s=Bn.prototype.getTileUrl.call(this,t);return s+c(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+o},setParams:function(t,e){return i(this.wmsParams,t),e||this.redraw(),this}});Bn.WMS=In,si.wms=ri;var An=rn.extend({options:{padding:.1},initialize:function(t){l(this,t),n(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&pt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,i){var e=this._map.getZoomScale(i,this._zoom),n=Pt(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,i),r=this._map.project(t,i),a=r.subtract(s),h=o.multiplyBy(-e).add(n).add(o).subtract(a);Yi?wt(this._container,h,e):Lt(this._container,h)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,i=this._map.getSize(),e=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new P(e,e.add(i.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),On=An.extend({getEvents:function(){var t=An.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){An.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");V(t,"mousemove",o(this._onMouseMove,32,this),this),V(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),V(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){delete this._ctx,ut(this._container),G(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var i in this._layers)t=this._layers[i],t._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){this._drawnLayers={},An.prototype._update.call(this);var t=this._bounds,i=this._container,e=t.getSize(),n=oe?2:1;Lt(i,t.min),i.width=n*e.x,i.height=n*e.y,i.style.width=e.x+"px",i.style.height=e.y+"px",oe&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){An.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[n(t)]=t;var i=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=i),this._drawLast=i,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order,e=i.next,n=i.prev;e?e.prev=n:this._drawLast=n,n?n.next=e:this._drawFirst=e,delete t._order,delete this._layers[L.stamp(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(t.options.dashArray){var i,e=t.options.dashArray.split(","),n=[];for(i=0;i<e.length;i++)n.push(Number(e[i]));t.options._dashArray=n}},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||f(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var i=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new P,this._redrawBounds.extend(t._pxBounds.min.subtract([i,i])),this._redrawBounds.extend(t._pxBounds.max.add([i,i]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var i=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,i.x,i.y)}else this._ctx.clearRect(0,0,this._container.width,this._container.height)},_draw:function(){var t,i=this._redrawBounds;if(this._ctx.save(),i){var e=i.getSize();this._ctx.beginPath(),this._ctx.rect(i.min.x,i.min.y,e.x,e.y),this._ctx.clip()}this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!i||t._pxBounds&&t._pxBounds.intersects(i))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,i){if(this._drawing){var e,n,o,s,r=t._parts,a=r.length,h=this._ctx;if(a){for(this._drawnLayers[t._leaflet_id]=t,h.beginPath(),e=0;e<a;e++){for(n=0,o=r[e].length;n<o;n++)s=r[e][n],h[n?"lineTo":"moveTo"](s.x,s.y);i&&h.closePath()}this._fillStroke(h,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var i=t._point,e=this._ctx,n=t._radius,o=(t._radiusY||n)/n;this._drawnLayers[t._leaflet_id]=t,1!==o&&(e.save(),e.scale(1,o)),e.beginPath(),e.arc(i.x,i.y/o,n,0,2*Math.PI,!1),1!==o&&e.restore(),this._fillStroke(e,t)}},_fillStroke:function(t,i){var e=i.options;e.fill&&(t.globalAlpha=e.fillOpacity,t.fillStyle=e.fillColor||e.color,t.fill(e.fillRule||"evenodd")),e.stroke&&0!==e.weight&&(t.setLineDash&&t.setLineDash(i.options&&i.options._dashArray||[]),t.globalAlpha=e.opacity,t.lineWidth=e.weight,t.strokeStyle=e.color,t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.stroke())},_onClick:function(t){for(var i,e,n=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)i=o.layer,i.options.interactive&&i._containsPoint(n)&&!this._map._draggableMoved(i)&&(e=i);e&&(et(t),this._fireEvent([e],t))},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var i=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,i)}},_handleMouseOut:function(t){var i=this._hoveredLayer;i&&(mt(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseout"),this._hoveredLayer=null)},_handleMouseHover:function(t,i){for(var e,n,o=this._drawFirst;o;o=o.next)e=o.layer,e.options.interactive&&e._containsPoint(i)&&(n=e);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(pt(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t)},_fireEvent:function(t,i,e){this._map._fireDOMEvent(i,e||i.type,t)},_bringToFront:function(t){var i=t._order,e=i.next,n=i.prev;e&&(e.prev=n,n?n.next=e:e&&(this._drawFirst=e),i.prev=this._drawLast,this._drawLast.next=i,i.next=null,this._drawLast=i,this._requestRedraw(t))},_bringToBack:function(t){var i=t._order,e=i.next,n=i.prev;n&&(n.next=e,e?e.prev=n:n&&(this._drawLast=n),i.prev=null,i.next=this._drawFirst,this._drawFirst.prev=i,this._drawFirst=i,this._requestRedraw(t))}}),Rn=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),Dn={_initContainer:function(){this._container=ht("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(An.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var i=t._container=Rn("shape");pt(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",t._path=Rn("path"),i.appendChild(t._path),this._updateStyle(t),this._layers[n(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i),t.options.interactive&&t.addInteractiveTarget(i)},_removePath:function(t){var i=t._container;ut(i),t.removeInteractiveTarget(i),delete this._layers[n(t)]},_updateStyle:function(t){var i=t._stroke,e=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(i||(i=t._stroke=Rn("stroke")),o.appendChild(i),i.weight=n.weight+"px",i.color=n.color,i.opacity=n.opacity,n.dashArray?i.dashStyle=mi(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):i.dashStyle="",i.endcap=n.lineCap.replace("butt","flat"),i.joinstyle=n.lineJoin):i&&(o.removeChild(i),t._stroke=null),n.fill?(e||(e=t._fill=Rn("fill")),o.appendChild(e),e.color=n.fillColor||n.color,e.opacity=n.fillOpacity):e&&(o.removeChild(e),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),e=Math.round(t._radius),n=Math.round(t._radiusY||e);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+e+","+n+" 0,23592600")},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){ct(t._container)},_bringToBack:function(t){_t(t._container)}},Nn=ae?Rn:S,jn=An.extend({getEvents:function(){var t=An.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=Nn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Nn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ut(this._container),G(this._container),delete this._container,delete this._rootGroup},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){An.prototype._update.call(this);var t=this._bounds,i=t.getSize(),e=this._container;this._svgSize&&this._svgSize.equals(i)||(this._svgSize=i,e.setAttribute("width",i.x),e.setAttribute("height",i.y)),Lt(e,t.min),e.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" ")),this.fire("update")}},_initPath:function(t){var i=t._path=Nn("path");t.options.className&&pt(i,t.options.className),t.options.interactive&&pt(i,"leaflet-interactive"),this._updateStyle(t),this._layers[n(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ut(t._path),t.removeInteractiveTarget(t._path),delete this._layers[n(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var i=t._path,e=t.options;i&&(e.stroke?(i.setAttribute("stroke",e.color),i.setAttribute("stroke-opacity",e.opacity),i.setAttribute("stroke-width",e.weight),i.setAttribute("stroke-linecap",e.lineCap),i.setAttribute("stroke-linejoin",e.lineJoin),e.dashArray?i.setAttribute("stroke-dasharray",e.dashArray):i.removeAttribute("stroke-dasharray"),e.dashOffset?i.setAttribute("stroke-dashoffset",e.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),e.fill?(i.setAttribute("fill",e.fillColor||e.color),i.setAttribute("fill-opacity",e.fillOpacity),i.setAttribute("fill-rule",e.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(t,i){this._setPath(t,k(t._parts,i))},_updateCircle:function(t){var i=t._point,e=t._radius,n=t._radiusY||e,o="a"+e+","+n+" 0 1,0 ",s=t._empty()?"M0 0":"M"+(i.x-e)+","+i.y+o+2*e+",0 "+o+2*-e+",0 ";this._setPath(t,s)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){ct(t._path)},_bringToBack:function(t){_t(t._path)}});ae&&jn.include(Dn),ke.include({getRenderer:function(t){var i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return i||(i=this._renderer=this.options.preferCanvas&&ai()||hi()),this.hasLayer(i)||this.addLayer(i),i},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var i=this._paneRenderers[t];return void 0===i&&(i=jn&&hi({pane:t})||On&&ai({pane:t}),this._paneRenderers[t]=i),i}});var Wn=yn.extend({initialize:function(t,i){yn.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=z(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});jn.create=Nn,jn.pointsToPath=k,xn.geometryToLayer=Kt,xn.coordsToLatLng=Yt,xn.coordsToLatLngs=Xt,xn.latLngToCoords=Jt,xn.latLngsToCoords=$t,xn.getFeature=Qt,xn.asFeature=ti,ke.mergeOptions({boxZoom:!0});var Hn=Ue.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){V(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){G(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ut(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){return!(!t.shiftKey||1!==t.which&&1!==t.button)&&(this._clearDeferredResetState(),this._resetState(),Mi(),bt(),this._startPoint=this._map.mouseEventToContainerPoint(t),void V(document,{contextmenu:Q,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this))},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=ht("div","leaflet-zoom-box",this._container),pt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var i=new P(this._point,this._startPoint),e=i.getSize();Lt(this._box,i.min),this._box.style.width=e.x+"px",this._box.style.height=e.y+"px"},_finish:function(){this._moved&&(ut(this._box),mt(this._container,"leaflet-crosshair")),Ci(),Tt(),G(document,{contextmenu:Q,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(e(this._resetState,this),0);var i=new T(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});ke.addInitHook("addHandler","boxZoom",Hn),ke.mergeOptions({doubleClickZoom:!0});var Fn=Ue.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,e=i.getZoom(),n=i.options.zoomDelta,o=t.originalEvent.shiftKey?e-n:e+n;"center"===i.options.doubleClickZoom?i.setZoom(o):i.setZoomAround(t.containerPoint,o)}});ke.addInitHook("addHandler","doubleClickZoom",Fn),ke.mergeOptions({dragging:!0,inertia:!Di,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Un=Ue.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new Xe(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}pt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){mt(this._map._container,"leaflet-grab"),mt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var i=z(this._map.options.maxBounds);this._offsetLimit=b(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var i=this._lastTime=+new Date,e=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(e),this._times.push(i),i-this._times[0]>50&&(this._positions.shift(),this._times.shift())}this._map.fire("move",t).fire("drag",t)},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),i=this._offsetLimit;t.x<i.min.x&&(t.x=this._viscousLimit(t.x,i.min.x)),t.y<i.min.y&&(t.y=this._viscousLimit(t.y,i.min.y)),t.x>i.max.x&&(t.x=this._viscousLimit(t.x,i.max.x)),t.y>i.max.y&&(t.y=this._viscousLimit(t.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(t);
-}},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),e=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-i+e)%t+i-e,s=(n+i+e)%t-i-e,r=Math.abs(o+e)<Math.abs(s+e)?o:s;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=r},_onDragEnd:function(t){var i=this._map,e=i.options,n=!e.inertia||this._times.length<2;if(i.fire("dragend",t),n)i.fire("moveend");else{var o=this._lastPos.subtract(this._positions[0]),s=(this._lastTime-this._times[0])/1e3,r=e.easeLinearity,a=o.multiplyBy(r/s),h=a.distanceTo([0,0]),u=Math.min(e.inertiaMaxSpeed,h),l=a.multiplyBy(u/h),c=u/(e.inertiaDeceleration*r),_=l.multiplyBy(-c/2).round();_.x||_.y?(_=i._limitOffset(_,i.options.maxBounds),f(function(){i.panBy(_,{duration:c,easeLinearity:r,noMoveStart:!0,animate:!0})})):i.fire("moveend")}}});ke.addInitHook("addHandler","dragging",Un),ke.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Vn=Ue.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),V(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),G(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,i=document.documentElement,e=t.scrollTop||i.scrollTop,n=t.scrollLeft||i.scrollLeft;this._map._container.focus(),window.scrollTo(n,e)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var i,e,n=this._panKeys={},o=this.keyCodes;for(i=0,e=o.left.length;i<e;i++)n[o.left[i]]=[-1*t,0];for(i=0,e=o.right.length;i<e;i++)n[o.right[i]]=[t,0];for(i=0,e=o.down.length;i<e;i++)n[o.down[i]]=[0,t];for(i=0,e=o.up.length;i<e;i++)n[o.up[i]]=[0,-1*t]},_setZoomDelta:function(t){var i,e,n=this._zoomKeys={},o=this.keyCodes;for(i=0,e=o.zoomIn.length;i<e;i++)n[o.zoomIn[i]]=t;for(i=0,e=o.zoomOut.length;i<e;i++)n[o.zoomOut[i]]=-t},_addHooks:function(){V(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){G(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var i,e=t.keyCode,n=this._map;if(e in this._panKeys){if(n._panAnim&&n._panAnim._inProgress)return;i=this._panKeys[e],t.shiftKey&&(i=w(i).multiplyBy(3)),n.panBy(i),n.options.maxBounds&&n.panInsideBounds(n.options.maxBounds)}else if(e in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e]);else{if(27!==e||!n._popup)return;n.closePopup()}Q(t)}}});ke.addInitHook("addHandler","keyboard",Vn),ke.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Gn=Ue.extend({addHooks:function(){V(this._map._container,"mousewheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){G(this._map._container,"mousewheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var i=it(t),n=this._map.options.wheelDebounceTime;this._delta+=i,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var o=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(e(this._performZoom,this),o),Q(t)},_performZoom:function(){var t=this._map,i=t.getZoom(),e=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,s=e?Math.ceil(o/e)*e:o,r=t._limitZoom(i+(this._delta>0?s:-s))-i;this._delta=0,this._startTime=null,r&&("center"===t.options.scrollWheelZoom?t.setZoom(i+r):t.setZoomAround(this._lastMousePos,i+r))}});ke.addInitHook("addHandler","scrollWheelZoom",Gn),ke.mergeOptions({tap:!0,tapTolerance:15});var qn=Ue.extend({addHooks:function(){V(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){G(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if($(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var i=t.touches[0],n=i.target;this._startPos=this._newPos=new x(i.clientX,i.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&pt(n,"leaflet-active"),this._holdTimeout=setTimeout(e(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",i))},this),1e3),this._simulateEvent("mousedown",i),V(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),G(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var i=t.changedTouches[0],e=i.target;e&&e.tagName&&"a"===e.tagName.toLowerCase()&&mt(e,"leaflet-active"),this._simulateEvent("mouseup",i),this._isTapValid()&&this._simulateEvent("click",i)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var i=t.touches[0];this._newPos=new x(i.clientX,i.clientY),this._simulateEvent("mousemove",i)},_simulateEvent:function(t,i){var e=document.createEvent("MouseEvents");e._simulated=!0,i.target._simulatedClick=!0,e.initMouseEvent(t,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),i.target.dispatchEvent(e)}});ie&&!te&&ke.addInitHook("addHandler","tap",qn),ke.mergeOptions({touchZoom:ie&&!Di,bounceAtZoomLimits:!0});var Kn=Ue.extend({addHooks:function(){pt(this._map._container,"leaflet-touch-zoom"),V(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){mt(this._map._container,"leaflet-touch-zoom"),G(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(t.touches&&2===t.touches.length&&!i._animatingZoom&&!this._zooming){var e=i.mouseEventToContainerPoint(t.touches[0]),n=i.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),"center"!==i.options.touchZoom&&(this._pinchStartLatLng=i.containerPointToLatLng(e.add(n)._divideBy(2))),this._startDist=e.distanceTo(n),this._startZoom=i.getZoom(),this._moved=!1,this._zooming=!0,i._stop(),V(document,"touchmove",this._onTouchMove,this),V(document,"touchend",this._onTouchEnd,this),$(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var i=this._map,n=i.mouseEventToContainerPoint(t.touches[0]),o=i.mouseEventToContainerPoint(t.touches[1]),s=n.distanceTo(o)/this._startDist;if(this._zoom=i.getScaleZoom(s,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&s<1||this._zoom>i.getMaxZoom()&&s>1)&&(this._zoom=i._limitZoom(this._zoom)),"center"===i.options.touchZoom){if(this._center=this._startLatLng,1===s)return}else{var r=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(1===s&&0===r.x&&0===r.y)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}this._moved||(i._moveStart(!0),this._moved=!0),g(this._animRequest);var a=e(i._move,i,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=f(a,this,!0),$(t)}},_onTouchEnd:function(){return this._moved&&this._zooming?(this._zooming=!1,g(this._animRequest),G(document,"touchmove",this._onTouchMove),G(document,"touchend",this._onTouchEnd),void(this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom)))):void(this._zooming=!1)}});ke.addInitHook("addHandler","touchZoom",Kn),ke.BoxZoom=Hn,ke.DoubleClickZoom=Fn,ke.Drag=Un,ke.Keyboard=Vn,ke.ScrollWheelZoom=Gn,ke.Tap=qn,ke.TouchZoom=Kn;var Yn=window.L;window.L=t,t.version=ci,t.noConflict=li,t.Control=Be,t.control=Ie,t.Browser=he,t.Evented=Li,t.Mixin=Ve,t.Util=xi,t.Class=v,t.Handler=Ue,t.extend=i,t.bind=e,t.stamp=n,t.setOptions=l,t.DomEvent=Pe,t.DomUtil=Ee,t.PosAnimation=Se,t.Draggable=Xe,t.LineUtil=Je,t.PolyUtil=$e,t.Point=x,t.point=w,t.Bounds=P,t.bounds=b,t.Transformation=Z,t.transformation=E,t.Projection=en,t.LatLng=M,t.latLng=C,t.LatLngBounds=T,t.latLngBounds=z,t.CRS=Pi,t.GeoJSON=xn,t.geoJSON=ii,t.geoJson=Ln,t.Layer=rn,t.LayerGroup=an,t.layerGroup=hn,t.FeatureGroup=un,t.featureGroup=ln,t.ImageOverlay=Pn,t.imageOverlay=bn,t.VideoOverlay=Tn,t.videoOverlay=ei,t.DivOverlay=zn,t.Popup=Mn,t.popup=Cn,t.Tooltip=Zn,t.tooltip=En,t.Icon=cn,t.icon=Ht,t.DivIcon=Sn,t.divIcon=ni,t.Marker=pn,t.marker=Ft,t.TileLayer=Bn,t.tileLayer=si,t.GridLayer=kn,t.gridLayer=oi,t.SVG=jn,t.svg=hi,t.Renderer=An,t.Canvas=On,t.canvas=ai,t.Path=mn,t.CircleMarker=fn,t.circleMarker=Ut,t.Circle=gn,t.circle=Vt,t.Polyline=vn,t.polyline=Gt,t.Polygon=yn,t.polygon=qt,t.Rectangle=Wn,t.rectangle=ui,t.Map=ke,t.map=Ct});
-//# sourceMappingURL=leaflet.js.map
