178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson                                 Apache License
378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson                           Version 2.0, January 2004
478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson                        http://www.apache.org/licenses/
578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   1. Definitions.
978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
1078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      "License" shall mean the terms and conditions for use, reproduction,
1178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      and distribution as defined by Sections 1 through 9 of this document.
1278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
1378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      "Licensor" shall mean the copyright owner or entity authorized by
1478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      the copyright owner that is granting the License.
1578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
1678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      "Legal Entity" shall mean the union of the acting entity and all
1778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      other entities that control, are controlled by, or are under common
1878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      control with that entity. For the purposes of this definition,
1978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      "control" means (i) the power, direct or indirect, to cause the
2078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      direction or management of such entity, whether by contract or
2178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      otherwise, or (ii) ownership of fifty percent (50%) or more of the
2278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      outstanding shares, or (iii) beneficial ownership of such entity.
2378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
2478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      "You" (or "Your") shall mean an individual or Legal Entity
2578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      exercising permissions granted by this License.
2678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
2778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      "Source" form shall mean the preferred form for making modifications,
2878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      including but not limited to software source code, documentation
2978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      source, and configuration files.
3078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
3178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      "Object" form shall mean any form resulting from mechanical
3278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      transformation or translation of a Source form, including but
3378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      not limited to compiled object code, generated documentation,
3478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      and conversions to other media types.
3578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
3678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      "Work" shall mean the work of authorship, whether in Source or
3778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      Object form, made available under the License, as indicated by a
3878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      copyright notice that is included in or attached to the work
3978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      (an example is provided in the Appendix below).
4078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
4178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      "Derivative Works" shall mean any work, whether in Source or Object
4278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      form, that is based on (or derived from) the Work and for which the
4378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      editorial revisions, annotations, elaborations, or other modifications
4478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      represent, as a whole, an original work of authorship. For the purposes
4578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      of this License, Derivative Works shall not include works that remain
4678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      separable from, or merely link (or bind by name) to the interfaces of,
4778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      the Work and Derivative Works thereof.
4878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
4978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      "Contribution" shall mean any work of authorship, including
5078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      the original version of the Work and any modifications or additions
5178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      to that Work or Derivative Works thereof, that is intentionally
5278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      submitted to Licensor for inclusion in the Work by the copyright owner
5378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      or by an individual or Legal Entity authorized to submit on behalf of
5478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      the copyright owner. For the purposes of this definition, "submitted"
5578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      means any form of electronic, verbal, or written communication sent
5678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      to the Licensor or its representatives, including but not limited to
5778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      communication on electronic mailing lists, source code control systems,
5878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      and issue tracking systems that are managed by, or on behalf of, the
5978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      Licensor for the purpose of discussing and improving the Work, but
6078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      excluding communication that is conspicuously marked or otherwise
6178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      designated in writing by the copyright owner as "Not a Contribution."
6278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
6378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      "Contributor" shall mean Licensor and any individual or Legal Entity
6478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      on behalf of whom a Contribution has been received by Licensor and
6578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      subsequently incorporated within the Work.
6678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
6778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   2. Grant of Copyright License. Subject to the terms and conditions of
6878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      this License, each Contributor hereby grants to You a perpetual,
6978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
7078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      copyright license to reproduce, prepare Derivative Works of,
7178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      publicly display, publicly perform, sublicense, and distribute the
7278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      Work and such Derivative Works in Source or Object form.
7378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
7478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   3. Grant of Patent License. Subject to the terms and conditions of
7578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      this License, each Contributor hereby grants to You a perpetual,
7678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
7778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      (except as stated in this section) patent license to make, have made,
7878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      use, offer to sell, sell, import, and otherwise transfer the Work,
7978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      where such license applies only to those patent claims licensable
8078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      by such Contributor that are necessarily infringed by their
8178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      Contribution(s) alone or by combination of their Contribution(s)
8278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      with the Work to which such Contribution(s) was submitted. If You
8378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      institute patent litigation against any entity (including a
8478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      cross-claim or counterclaim in a lawsuit) alleging that the Work
8578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      or a Contribution incorporated within the Work constitutes direct
8678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      or contributory patent infringement, then any patent licenses
8778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      granted to You under this License for that Work shall terminate
8878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      as of the date such litigation is filed.
8978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
9078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   4. Redistribution. You may reproduce and distribute copies of the
9178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      Work or Derivative Works thereof in any medium, with or without
9278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      modifications, and in Source or Object form, provided that You
9378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      meet the following conditions:
9478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
9578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      (a) You must give any other recipients of the Work or
9678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson          Derivative Works a copy of this License; and
9778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
9878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      (b) You must cause any modified files to carry prominent notices
9978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson          stating that You changed the files; and
10078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
10178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      (c) You must retain, in the Source form of any Derivative Works
10278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson          that You distribute, all copyright, patent, trademark, and
10378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson          attribution notices from the Source form of the Work,
10478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson          excluding those notices that do not pertain to any part of
10578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson          the Derivative Works; and
10678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
10778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      (d) If the Work includes a "NOTICE" text file as part of its
10878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson          distribution, then any Derivative Works that You distribute must
10978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson          include a readable copy of the attribution notices contained
11078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson          within such NOTICE file, excluding those notices that do not
11178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson          pertain to any part of the Derivative Works, in at least one
11278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson          of the following places: within a NOTICE text file distributed
11378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson          as part of the Derivative Works; within the Source form or
11478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson          documentation, if provided along with the Derivative Works; or,
11578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson          within a display generated by the Derivative Works, if and
11678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson          wherever such third-party notices normally appear. The contents
11778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson          of the NOTICE file are for informational purposes only and
11878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson          do not modify the License. You may add Your own attribution
11978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson          notices within Derivative Works that You distribute, alongside
12078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson          or as an addendum to the NOTICE text from the Work, provided
12178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson          that such additional attribution notices cannot be construed
12278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson          as modifying the License.
12378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
12478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      You may add Your own copyright statement to Your modifications and
12578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      may provide additional or different license terms and conditions
12678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      for use, reproduction, or distribution of Your modifications, or
12778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      for any such Derivative Works as a whole, provided Your use,
12878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      reproduction, and distribution of the Work otherwise complies with
12978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      the conditions stated in this License.
13078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
13178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   5. Submission of Contributions. Unless You explicitly state otherwise,
13278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      any Contribution intentionally submitted for inclusion in the Work
13378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      by You to the Licensor shall be under the terms and conditions of
13478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      this License, without any additional terms or conditions.
13578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      Notwithstanding the above, nothing herein shall supersede or modify
13678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      the terms of any separate license agreement you may have executed
13778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      with Licensor regarding such Contributions.
13878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
13978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   6. Trademarks. This License does not grant permission to use the trade
14078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      names, trademarks, service marks, or product names of the Licensor,
14178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      except as required for reasonable and customary use in describing the
14278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      origin of the Work and reproducing the content of the NOTICE file.
14378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
14478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   7. Disclaimer of Warranty. Unless required by applicable law or
14578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      agreed to in writing, Licensor provides the Work (and each
14678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      Contributor provides its Contributions) on an "AS IS" BASIS,
14778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
14878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      implied, including, without limitation, any warranties or conditions
14978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
15078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      PARTICULAR PURPOSE. You are solely responsible for determining the
15178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      appropriateness of using or redistributing the Work and assume any
15278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      risks associated with Your exercise of permissions under this License.
15378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
15478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   8. Limitation of Liability. In no event and under no legal theory,
15578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      whether in tort (including negligence), contract, or otherwise,
15678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      unless required by applicable law (such as deliberate and grossly
15778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      negligent acts) or agreed to in writing, shall any Contributor be
15878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      liable to You for damages, including any direct, indirect, special,
15978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      incidental, or consequential damages of any character arising as a
16078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      result of this License or out of the use or inability to use the
16178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      Work (including but not limited to damages for loss of goodwill,
16278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      work stoppage, computer failure or malfunction, or any and all
16378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      other commercial damages or losses), even if such Contributor
16478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      has been advised of the possibility of such damages.
16578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
16678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   9. Accepting Warranty or Additional Liability. While redistributing
16778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      the Work or Derivative Works thereof, You may choose to offer,
16878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      and charge a fee for, acceptance of support, warranty, indemnity,
16978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      or other liability obligations and/or rights consistent with this
17078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      License. However, in accepting such obligations, You may act only
17178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      on Your own behalf and on Your sole responsibility, not on behalf
17278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      of any other Contributor, and only if You agree to indemnify,
17378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      defend, and hold each Contributor harmless for any liability
17478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      incurred by, or claims asserted against, such Contributor by reason
17578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      of your accepting any such warranty or additional liability.
17678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
17778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   END OF TERMS AND CONDITIONS
17878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
17978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   APPENDIX: How to apply the Apache License to your work.
18078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
18178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      To apply the Apache License to your work, attach the following
18278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      boilerplate notice, with the fields enclosed by brackets "[]"
18378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      replaced with your own identifying information. (Don't include
18478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      the brackets!)  The text should be enclosed in the appropriate
18578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      comment syntax for the file format. We also recommend that a
18678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      file or class name and description of purpose be included on the
18778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      same "printed page" as the copyright notice for easier
18878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson      identification within third-party archives.
18978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
19078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   Copyright [yyyy] [name of copyright owner]
19178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
19278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   Licensed under the Apache License, Version 2.0 (the "License");
19378c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   you may not use this file except in compliance with the License.
19478c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   You may obtain a copy of the License at
19578c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
19678c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson       http://www.apache.org/licenses/LICENSE-2.0
19778c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson
19878c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   Unless required by applicable law or agreed to in writing, software
19978c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   distributed under the License is distributed on an "AS IS" BASIS,
20078c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20178c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   See the License for the specific language governing permissions and
20278c496fe0fac4c89993109340aec80d1afa3141fIan Parkinson   limitations under the License.
203