UNPKG

9.26 kBPlain TextView Raw
1SPDX:Apache-2.0
2
3Apache License
4
5Version 2.0, January 2004
6
7http://www.apache.org/licenses/
8
9TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
10
111. Definitions.
12
13"License" shall mean the terms and conditions for use, reproduction, and
14distribution as defined by Sections 1 through 9 of this document.
15
16"Licensor" shall mean the copyright owner or entity authorized by the
17copyright owner that is granting the License.
18
19"Legal Entity" shall mean the union of the acting entity and all other
20entities that control, are controlled by, or are under common control
21with that entity. For the purposes of this definition, "control" means
22(i) the power, direct or indirect, to cause the direction or management
23of such entity, whether by contract or otherwise, or (ii) ownership of
24fifty percent (50%) or more of the outstanding shares, or (iii)
25beneficial ownership of such entity.
26
27"You" (or "Your") shall mean an individual or Legal Entity exercising
28permissions granted by this License.
29
30"Source" form shall mean the preferred form for making modifications,
31including but not limited to software source code, documentation source,
32and configuration files.
33
34"Object" form shall mean any form resulting from mechanical
35transformation or translation of a Source form, including but not
36limited to compiled object code, generated documentation, and
37conversions to other media types.
38
39"Work" shall mean the work of authorship, whether in Source or Object
40form, made available under the License, as indicated by a copyright
41notice that is included in or attached to the work (an example is
42provided in the Appendix below).
43
44"Derivative Works" shall mean any work, whether in Source or Object
45form, that is based on (or derived from) the Work and for which the
46editorial revisions, annotations, elaborations, or other modifications
47represent, as a whole, an original work of authorship. For the purposes
48of this License, Derivative Works shall not include works that remain
49separable from, or merely link (or bind by name) to the interfaces of,
50the Work and Derivative Works thereof.
51
52"Contribution" shall mean any work of authorship, including the original
53version of the Work and any modifications or additions to that Work or
54Derivative Works thereof, that is intentionally submitted to Licensor
55for inclusion in the Work by the copyright owner or by an individual or
56Legal Entity authorized to submit on behalf of the copyright owner. For
57the purposes of this definition, "submitted" means any form of
58electronic, verbal, or written communication sent to the Licensor or its
59representatives, including but not limited to communication on
60electronic mailing lists, source code control systems, and issue
61tracking systems that are managed by, or on behalf of, the Licensor for
62the purpose of discussing and improving the Work, but excluding
63communication that is conspicuously marked or otherwise designated in
64writing by the copyright owner as "Not a Contribution."
65
66"Contributor" shall mean Licensor and any individual or Legal Entity on
67behalf of whom a Contribution has been received by Licensor and
68subsequently incorporated within the Work.
69
702. Grant of Copyright License. Subject to the terms and conditions of
71this License, each Contributor hereby grants to You a perpetual,
72worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright
73license to reproduce, prepare Derivative Works of, publicly display,
74publicly perform, sublicense, and distribute the Work and such
75Derivative Works in Source or Object form.
76
773. Grant of Patent License. Subject to the terms and conditions of this
78License, each Contributor hereby grants to You a perpetual, worldwide,
79non-exclusive, no-charge, royalty-free, irrevocable (except as stated in
80this section) patent license to make, have made, use, offer to sell,
81sell, import, and otherwise transfer the Work, where such license
82applies only to those patent claims licensable by such Contributor that
83are necessarily infringed by their Contribution(s) alone or by
84combination of their Contribution(s) with the Work to which such
85Contribution(s) was submitted. If You institute patent litigation
86against any entity (including a cross-claim or counterclaim in a
87lawsuit) alleging that the Work or a Contribution incorporated within
88the Work constitutes direct or contributory patent infringement, then
89any patent licenses granted to You under this License for that Work
90shall terminate as of the date such litigation is filed.
91
924. Redistribution. You may reproduce and distribute copies of the Work
93or Derivative Works thereof in any medium, with or without
94modifications, and in Source or Object form, provided that You meet the
95following conditions:
96
97(a) You must give any other recipients of the Work or Derivative Works a
98copy of this License; and
99
100(b) You must cause any modified files to carry prominent notices stating
101that You changed the files; and
102
103(c) You must retain, in the Source form of any Derivative Works that You
104distribute, all copyright, patent, trademark, and attribution notices
105from the Source form of the Work, excluding those notices that do not
106pertain to any part of the Derivative Works; and
107
108(d) If the Work includes a "NOTICE" text file as part of its
109distribution, then any Derivative Works that You distribute must include
110a readable copy of the attribution notices contained within such NOTICE
111file, excluding those notices that do not pertain to any part of the
112Derivative Works, in at least one of the following places: within a
113NOTICE text file distributed as part of the Derivative Works; within the
114Source form or documentation, if provided along with the Derivative
115Works; or, within a display generated by the Derivative Works, if and
116wherever such third-party notices normally appear. The contents of the
117NOTICE file are for informational purposes only and do not modify the
118License. You may add Your own attribution notices within Derivative
119Works that You distribute, alongside or as an addendum to the NOTICE
120text from the Work, provided that such additional attribution notices
121cannot be construed as modifying the License.
122
123You may add Your own copyright statement to Your modifications and may
124provide additional or different license terms and conditions for use,
125reproduction, or distribution of Your modifications, or for any such
126Derivative Works as a whole, provided Your use, reproduction, and
127distribution of the Work otherwise complies with the conditions stated
128in this License.
129
1305. Submission of Contributions. Unless You explicitly state otherwise,
131any Contribution intentionally submitted for inclusion in the Work by
132You to the Licensor shall be under the terms and conditions of this
133License, without any additional terms or conditions. Notwithstanding the
134above, nothing herein shall supersede or modify the terms of any
135separate license agreement you may have executed with Licensor regarding
136such Contributions.
137
1386. Trademarks. This License does not grant permission to use the trade
139names, trademarks, service marks, or product names of the Licensor,
140except as required for reasonable and customary use in describing the
141origin of the Work and reproducing the content of the NOTICE file.
142
1437. Disclaimer of Warranty. Unless required by applicable law or agreed
144to in writing, Licensor provides the Work (and each Contributor provides
145its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
146OF ANY KIND, either express or implied, including, without limitation,
147any warranties or conditions of TITLE, NON-INFRINGEMENT,
148MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely
149responsible for determining the appropriateness of using or
150redistributing the Work and assume any risks associated with Your
151exercise of permissions under this License.
152
1538. Limitation of Liability. In no event and under no legal theory,
154whether in tort (including negligence), contract, or otherwise, unless
155required by applicable law (such as deliberate and grossly negligent
156acts) or agreed to in writing, shall any Contributor be liable to You
157for damages, including any direct, indirect, special, incidental, or
158consequential damages of any character arising as a result of this
159License or out of the use or inability to use the Work (including but
160not limited to damages for loss of goodwill, work stoppage, computer
161failure or malfunction, or any and all other commercial damages or
162losses), even if such Contributor has been advised of the possibility of
163such damages.
164
1659. Accepting Warranty or Additional Liability. While redistributing the
166Work or Derivative Works thereof, You may choose to offer, and charge a
167fee for, acceptance of support, warranty, indemnity, or other liability
168obligations and/or rights consistent with this License. However, in
169accepting such obligations, You may act only on Your own behalf and on
170Your sole responsibility, not on behalf of any other Contributor, and
171only if You agree to indemnify, defend, and hold each Contributor
172harmless for any liability incurred by, or claims asserted against, such
173Contributor by reason of your accepting any such warranty or additional
174liability.