codekingpro commited on
Commit
ae01f49
·
verified ·
1 Parent(s): a122127

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. pgsql/pgAdmin 4/python/LICENSE.txt +702 -0
  2. pgsql/pgAdmin 4/python/_asyncio.pyd +0 -0
  3. pgsql/pgAdmin 4/python/_bz2.pyd +0 -0
  4. pgsql/pgAdmin 4/python/_hashlib.pyd +0 -0
  5. pgsql/pgAdmin 4/python/_msi.pyd +0 -0
  6. pgsql/pgAdmin 4/python/_multiprocessing.pyd +0 -0
  7. pgsql/pgAdmin 4/python/_overlapped.pyd +0 -0
  8. pgsql/pgAdmin 4/python/_queue.pyd +0 -0
  9. pgsql/pgAdmin 4/python/_socket.pyd +0 -0
  10. pgsql/pgAdmin 4/python/_uuid.pyd +0 -0
  11. pgsql/pgAdmin 4/python/_zoneinfo.pyd +0 -0
  12. pgsql/pgAdmin 4/python/comerr64.dll +0 -0
  13. pgsql/pgAdmin 4/python/k5sprt64.dll +0 -0
  14. pgsql/pgAdmin 4/python/kinit.exe +0 -0
  15. pgsql/pgAdmin 4/python/libffi-8.dll +0 -0
  16. pgsql/pgAdmin 4/python/python3.dll +0 -0
  17. pgsql/pgAdmin 4/python/python311._pth +6 -0
  18. pgsql/pgAdmin 4/python/select.pyd +0 -0
  19. pgsql/pgAdmin 4/python/vcruntime140_1.dll +0 -0
  20. pgsql/pgAdmin 4/python/winsound.pyd +0 -0
  21. pgsql/pgAdmin 4/runtime/credits.html +0 -0
  22. pgsql/pgAdmin 4/runtime/libwinpthread-1.dll +0 -0
  23. pgsql/pgAdmin 4/runtime/package.json +37 -0
  24. pgsql/pgAdmin 4/runtime/vk_swiftshader_icd.json +1 -0
  25. pgsql/pgAdmin 4/runtime/yarn.lock +1403 -0
  26. pgsql/pgAdmin 4/runtime/zlib1.dll +0 -0
  27. pgsql/pgAdmin 4/web/.editorconfig +33 -0
  28. pgsql/pgAdmin 4/web/.eslintignore +7 -0
  29. pgsql/pgAdmin 4/web/.eslintrc.js +103 -0
  30. pgsql/pgAdmin 4/web/.yarnrc.yml +7 -0
  31. pgsql/pgAdmin 4/web/babel.cfg +8 -0
  32. pgsql/pgAdmin 4/web/babel.config.json +4 -0
  33. pgsql/pgAdmin 4/web/branding.py +28 -0
  34. pgsql/pgAdmin 4/web/config.py +932 -0
  35. pgsql/pgAdmin 4/web/config_distro.py +7 -0
  36. pgsql/pgAdmin 4/web/config_local.py +1 -0
  37. pgsql/pgAdmin 4/web/jest.config.js +57 -0
  38. pgsql/pgAdmin 4/web/migrations/alembic.ini +54 -0
  39. pgsql/pgAdmin 4/web/migrations/env.py +95 -0
  40. pgsql/pgAdmin 4/web/migrations/script.py.mako +33 -0
  41. pgsql/pgAdmin 4/web/package.json +186 -0
  42. pgsql/pgAdmin 4/web/pgAdmin4.py +229 -0
  43. pgsql/pgAdmin 4/web/pgAdmin4.wsgi +36 -0
  44. pgsql/pgAdmin 4/web/pgacloud/pgacloud.py +95 -0
  45. pgsql/pgAdmin 4/web/pgadmin/__init__.py +937 -0
  46. pgsql/pgAdmin 4/web/pgadmin/about/__init__.py +149 -0
  47. pgsql/pgAdmin 4/web/pgadmin/authenticate/__init__.py +341 -0
  48. pgsql/pgAdmin 4/web/pgadmin/authenticate/internal.py +114 -0
  49. pgsql/pgAdmin 4/web/pgadmin/authenticate/kerberos.py +288 -0
  50. pgsql/pgAdmin 4/web/pgadmin/authenticate/ldap.py +316 -0
pgsql/pgAdmin 4/python/LICENSE.txt ADDED
@@ -0,0 +1,702 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ A. HISTORY OF THE SOFTWARE
2
+ ==========================
3
+
4
+ Python was created in the early 1990s by Guido van Rossum at Stichting
5
+ Mathematisch Centrum (CWI, see https://www.cwi.nl) in the Netherlands
6
+ as a successor of a language called ABC. Guido remains Python's
7
+ principal author, although it includes many contributions from others.
8
+
9
+ In 1995, Guido continued his work on Python at the Corporation for
10
+ National Research Initiatives (CNRI, see https://www.cnri.reston.va.us)
11
+ in Reston, Virginia where he released several versions of the
12
+ software.
13
+
14
+ In May 2000, Guido and the Python core development team moved to
15
+ BeOpen.com to form the BeOpen PythonLabs team. In October of the same
16
+ year, the PythonLabs team moved to Digital Creations, which became
17
+ Zope Corporation. In 2001, the Python Software Foundation (PSF, see
18
+ https://www.python.org/psf/) was formed, a non-profit organization
19
+ created specifically to own Python-related Intellectual Property.
20
+ Zope Corporation was a sponsoring member of the PSF.
21
+
22
+ All Python releases are Open Source (see https://opensource.org for
23
+ the Open Source Definition). Historically, most, but not all, Python
24
+ releases have also been GPL-compatible; the table below summarizes
25
+ the various releases.
26
+
27
+ Release Derived Year Owner GPL-
28
+ from compatible? (1)
29
+
30
+ 0.9.0 thru 1.2 1991-1995 CWI yes
31
+ 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes
32
+ 1.6 1.5.2 2000 CNRI no
33
+ 2.0 1.6 2000 BeOpen.com no
34
+ 1.6.1 1.6 2001 CNRI yes (2)
35
+ 2.1 2.0+1.6.1 2001 PSF no
36
+ 2.0.1 2.0+1.6.1 2001 PSF yes
37
+ 2.1.1 2.1+2.0.1 2001 PSF yes
38
+ 2.1.2 2.1.1 2002 PSF yes
39
+ 2.1.3 2.1.2 2002 PSF yes
40
+ 2.2 and above 2.1.1 2001-now PSF yes
41
+
42
+ Footnotes:
43
+
44
+ (1) GPL-compatible doesn't mean that we're distributing Python under
45
+ the GPL. All Python licenses, unlike the GPL, let you distribute
46
+ a modified version without making your changes open source. The
47
+ GPL-compatible licenses make it possible to combine Python with
48
+ other software that is released under the GPL; the others don't.
49
+
50
+ (2) According to Richard Stallman, 1.6.1 is not GPL-compatible,
51
+ because its license has a choice of law clause. According to
52
+ CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1
53
+ is "not incompatible" with the GPL.
54
+
55
+ Thanks to the many outside volunteers who have worked under Guido's
56
+ direction to make these releases possible.
57
+
58
+
59
+ B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON
60
+ ===============================================================
61
+
62
+ Python software and documentation are licensed under the
63
+ Python Software Foundation License Version 2.
64
+
65
+ Starting with Python 3.8.6, examples, recipes, and other code in
66
+ the documentation are dual licensed under the PSF License Version 2
67
+ and the Zero-Clause BSD license.
68
+
69
+ Some software incorporated into Python is under different licenses.
70
+ The licenses are listed with code falling under that license.
71
+
72
+
73
+ PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
74
+ --------------------------------------------
75
+
76
+ 1. This LICENSE AGREEMENT is between the Python Software Foundation
77
+ ("PSF"), and the Individual or Organization ("Licensee") accessing and
78
+ otherwise using this software ("Python") in source or binary form and
79
+ its associated documentation.
80
+
81
+ 2. Subject to the terms and conditions of this License Agreement, PSF hereby
82
+ grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
83
+ analyze, test, perform and/or display publicly, prepare derivative works,
84
+ distribute, and otherwise use Python alone or in any derivative version,
85
+ provided, however, that PSF's License Agreement and PSF's notice of copyright,
86
+ i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
87
+ 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Python Software Foundation;
88
+ All Rights Reserved" are retained in Python alone or in any derivative version
89
+ prepared by Licensee.
90
+
91
+ 3. In the event Licensee prepares a derivative work that is based on
92
+ or incorporates Python or any part thereof, and wants to make
93
+ the derivative work available to others as provided herein, then
94
+ Licensee hereby agrees to include in any such work a brief summary of
95
+ the changes made to Python.
96
+
97
+ 4. PSF is making Python available to Licensee on an "AS IS"
98
+ basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
99
+ IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
100
+ DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
101
+ FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
102
+ INFRINGE ANY THIRD PARTY RIGHTS.
103
+
104
+ 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
105
+ FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
106
+ A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
107
+ OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
108
+
109
+ 6. This License Agreement will automatically terminate upon a material
110
+ breach of its terms and conditions.
111
+
112
+ 7. Nothing in this License Agreement shall be deemed to create any
113
+ relationship of agency, partnership, or joint venture between PSF and
114
+ Licensee. This License Agreement does not grant permission to use PSF
115
+ trademarks or trade name in a trademark sense to endorse or promote
116
+ products or services of Licensee, or any third party.
117
+
118
+ 8. By copying, installing or otherwise using Python, Licensee
119
+ agrees to be bound by the terms and conditions of this License
120
+ Agreement.
121
+
122
+
123
+ BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0
124
+ -------------------------------------------
125
+
126
+ BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1
127
+
128
+ 1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an
129
+ office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the
130
+ Individual or Organization ("Licensee") accessing and otherwise using
131
+ this software in source or binary form and its associated
132
+ documentation ("the Software").
133
+
134
+ 2. Subject to the terms and conditions of this BeOpen Python License
135
+ Agreement, BeOpen hereby grants Licensee a non-exclusive,
136
+ royalty-free, world-wide license to reproduce, analyze, test, perform
137
+ and/or display publicly, prepare derivative works, distribute, and
138
+ otherwise use the Software alone or in any derivative version,
139
+ provided, however, that the BeOpen Python License is retained in the
140
+ Software, alone or in any derivative version prepared by Licensee.
141
+
142
+ 3. BeOpen is making the Software available to Licensee on an "AS IS"
143
+ basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
144
+ IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND
145
+ DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
146
+ FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT
147
+ INFRINGE ANY THIRD PARTY RIGHTS.
148
+
149
+ 4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE
150
+ SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS
151
+ AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY
152
+ DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
153
+
154
+ 5. This License Agreement will automatically terminate upon a material
155
+ breach of its terms and conditions.
156
+
157
+ 6. This License Agreement shall be governed by and interpreted in all
158
+ respects by the law of the State of California, excluding conflict of
159
+ law provisions. Nothing in this License Agreement shall be deemed to
160
+ create any relationship of agency, partnership, or joint venture
161
+ between BeOpen and Licensee. This License Agreement does not grant
162
+ permission to use BeOpen trademarks or trade names in a trademark
163
+ sense to endorse or promote products or services of Licensee, or any
164
+ third party. As an exception, the "BeOpen Python" logos available at
165
+ http://www.pythonlabs.com/logos.html may be used according to the
166
+ permissions granted on that web page.
167
+
168
+ 7. By copying, installing or otherwise using the software, Licensee
169
+ agrees to be bound by the terms and conditions of this License
170
+ Agreement.
171
+
172
+
173
+ CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1
174
+ ---------------------------------------
175
+
176
+ 1. This LICENSE AGREEMENT is between the Corporation for National
177
+ Research Initiatives, having an office at 1895 Preston White Drive,
178
+ Reston, VA 20191 ("CNRI"), and the Individual or Organization
179
+ ("Licensee") accessing and otherwise using Python 1.6.1 software in
180
+ source or binary form and its associated documentation.
181
+
182
+ 2. Subject to the terms and conditions of this License Agreement, CNRI
183
+ hereby grants Licensee a nonexclusive, royalty-free, world-wide
184
+ license to reproduce, analyze, test, perform and/or display publicly,
185
+ prepare derivative works, distribute, and otherwise use Python 1.6.1
186
+ alone or in any derivative version, provided, however, that CNRI's
187
+ License Agreement and CNRI's notice of copyright, i.e., "Copyright (c)
188
+ 1995-2001 Corporation for National Research Initiatives; All Rights
189
+ Reserved" are retained in Python 1.6.1 alone or in any derivative
190
+ version prepared by Licensee. Alternately, in lieu of CNRI's License
191
+ Agreement, Licensee may substitute the following text (omitting the
192
+ quotes): "Python 1.6.1 is made available subject to the terms and
193
+ conditions in CNRI's License Agreement. This Agreement together with
194
+ Python 1.6.1 may be located on the internet using the following
195
+ unique, persistent identifier (known as a handle): 1895.22/1013. This
196
+ Agreement may also be obtained from a proxy server on the internet
197
+ using the following URL: http://hdl.handle.net/1895.22/1013".
198
+
199
+ 3. In the event Licensee prepares a derivative work that is based on
200
+ or incorporates Python 1.6.1 or any part thereof, and wants to make
201
+ the derivative work available to others as provided herein, then
202
+ Licensee hereby agrees to include in any such work a brief summary of
203
+ the changes made to Python 1.6.1.
204
+
205
+ 4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS"
206
+ basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
207
+ IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND
208
+ DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
209
+ FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT
210
+ INFRINGE ANY THIRD PARTY RIGHTS.
211
+
212
+ 5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
213
+ 1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
214
+ A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1,
215
+ OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
216
+
217
+ 6. This License Agreement will automatically terminate upon a material
218
+ breach of its terms and conditions.
219
+
220
+ 7. This License Agreement shall be governed by the federal
221
+ intellectual property law of the United States, including without
222
+ limitation the federal copyright law, and, to the extent such
223
+ U.S. federal law does not apply, by the law of the Commonwealth of
224
+ Virginia, excluding Virginia's conflict of law provisions.
225
+ Notwithstanding the foregoing, with regard to derivative works based
226
+ on Python 1.6.1 that incorporate non-separable material that was
227
+ previously distributed under the GNU General Public License (GPL), the
228
+ law of the Commonwealth of Virginia shall govern this License
229
+ Agreement only as to issues arising under or with respect to
230
+ Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this
231
+ License Agreement shall be deemed to create any relationship of
232
+ agency, partnership, or joint venture between CNRI and Licensee. This
233
+ License Agreement does not grant permission to use CNRI trademarks or
234
+ trade name in a trademark sense to endorse or promote products or
235
+ services of Licensee, or any third party.
236
+
237
+ 8. By clicking on the "ACCEPT" button where indicated, or by copying,
238
+ installing or otherwise using Python 1.6.1, Licensee agrees to be
239
+ bound by the terms and conditions of this License Agreement.
240
+
241
+ ACCEPT
242
+
243
+
244
+ CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2
245
+ --------------------------------------------------
246
+
247
+ Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam,
248
+ The Netherlands. All rights reserved.
249
+
250
+ Permission to use, copy, modify, and distribute this software and its
251
+ documentation for any purpose and without fee is hereby granted,
252
+ provided that the above copyright notice appear in all copies and that
253
+ both that copyright notice and this permission notice appear in
254
+ supporting documentation, and that the name of Stichting Mathematisch
255
+ Centrum or CWI not be used in advertising or publicity pertaining to
256
+ distribution of the software without specific, written prior
257
+ permission.
258
+
259
+ STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
260
+ THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
261
+ FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
262
+ FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
263
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
264
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
265
+ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
266
+
267
+ ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON DOCUMENTATION
268
+ ----------------------------------------------------------------------
269
+
270
+ Permission to use, copy, modify, and/or distribute this software for any
271
+ purpose with or without fee is hereby granted.
272
+
273
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
274
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
275
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
276
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
277
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
278
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
279
+ PERFORMANCE OF THIS SOFTWARE.
280
+
281
+
282
+
283
+ Additional Conditions for this Windows binary build
284
+ ---------------------------------------------------
285
+
286
+ This program is linked with and uses Microsoft Distributable Code,
287
+ copyrighted by Microsoft Corporation. The Microsoft Distributable Code
288
+ is embedded in each .exe, .dll and .pyd file as a result of running
289
+ the code through a linker.
290
+
291
+ If you further distribute programs that include the Microsoft
292
+ Distributable Code, you must comply with the restrictions on
293
+ distribution specified by Microsoft. In particular, you must require
294
+ distributors and external end users to agree to terms that protect the
295
+ Microsoft Distributable Code at least as much as Microsoft's own
296
+ requirements for the Distributable Code. See Microsoft's documentation
297
+ (included in its developer tools and on its website at microsoft.com)
298
+ for specific details.
299
+
300
+ Redistribution of the Windows binary build of the Python interpreter
301
+ complies with this agreement, provided that you do not:
302
+
303
+ - alter any copyright, trademark or patent notice in Microsoft's
304
+ Distributable Code;
305
+
306
+ - use Microsoft's trademarks in your programs' names or in a way that
307
+ suggests your programs come from or are endorsed by Microsoft;
308
+
309
+ - distribute Microsoft's Distributable Code to run on a platform other
310
+ than Microsoft operating systems, run-time technologies or application
311
+ platforms; or
312
+
313
+ - include Microsoft Distributable Code in malicious, deceptive or
314
+ unlawful programs.
315
+
316
+ These restrictions apply only to the Microsoft Distributable Code as
317
+ defined above, not to Python itself or any programs running on the
318
+ Python interpreter. The redistribution of the Python interpreter and
319
+ libraries is governed by the Python Software License included with this
320
+ file, or by other licenses as marked.
321
+
322
+
323
+
324
+ --------------------------------------------------------------------------
325
+
326
+ This program, "bzip2", the associated library "libbzip2", and all
327
+ documentation, are copyright (C) 1996-2019 Julian R Seward. All
328
+ rights reserved.
329
+
330
+ Redistribution and use in source and binary forms, with or without
331
+ modification, are permitted provided that the following conditions
332
+ are met:
333
+
334
+ 1. Redistributions of source code must retain the above copyright
335
+ notice, this list of conditions and the following disclaimer.
336
+
337
+ 2. The origin of this software must not be misrepresented; you must
338
+ not claim that you wrote the original software. If you use this
339
+ software in a product, an acknowledgment in the product
340
+ documentation would be appreciated but is not required.
341
+
342
+ 3. Altered source versions must be plainly marked as such, and must
343
+ not be misrepresented as being the original software.
344
+
345
+ 4. The name of the author may not be used to endorse or promote
346
+ products derived from this software without specific prior written
347
+ permission.
348
+
349
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
350
+ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
351
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
352
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
353
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
354
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
355
+ GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
356
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
357
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
358
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
359
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
360
+
361
+ Julian Seward, jseward@acm.org
362
+ bzip2/libbzip2 version 1.0.8 of 13 July 2019
363
+
364
+ --------------------------------------------------------------------------
365
+
366
+ libffi - Copyright (c) 1996-2022 Anthony Green, Red Hat, Inc and others.
367
+ See source files for details.
368
+
369
+ Permission is hereby granted, free of charge, to any person obtaining
370
+ a copy of this software and associated documentation files (the
371
+ ``Software''), to deal in the Software without restriction, including
372
+ without limitation the rights to use, copy, modify, merge, publish,
373
+ distribute, sublicense, and/or sell copies of the Software, and to
374
+ permit persons to whom the Software is furnished to do so, subject to
375
+ the following conditions:
376
+
377
+ The above copyright notice and this permission notice shall be
378
+ included in all copies or substantial portions of the Software.
379
+
380
+ THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND,
381
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
382
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
383
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
384
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
385
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
386
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
387
+
388
+
389
+ Apache License
390
+ Version 2.0, January 2004
391
+ https://www.apache.org/licenses/
392
+
393
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
394
+
395
+ 1. Definitions.
396
+
397
+ "License" shall mean the terms and conditions for use, reproduction,
398
+ and distribution as defined by Sections 1 through 9 of this document.
399
+
400
+ "Licensor" shall mean the copyright owner or entity authorized by
401
+ the copyright owner that is granting the License.
402
+
403
+ "Legal Entity" shall mean the union of the acting entity and all
404
+ other entities that control, are controlled by, or are under common
405
+ control with that entity. For the purposes of this definition,
406
+ "control" means (i) the power, direct or indirect, to cause the
407
+ direction or management of such entity, whether by contract or
408
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
409
+ outstanding shares, or (iii) beneficial ownership of such entity.
410
+
411
+ "You" (or "Your") shall mean an individual or Legal Entity
412
+ exercising permissions granted by this License.
413
+
414
+ "Source" form shall mean the preferred form for making modifications,
415
+ including but not limited to software source code, documentation
416
+ source, and configuration files.
417
+
418
+ "Object" form shall mean any form resulting from mechanical
419
+ transformation or translation of a Source form, including but
420
+ not limited to compiled object code, generated documentation,
421
+ and conversions to other media types.
422
+
423
+ "Work" shall mean the work of authorship, whether in Source or
424
+ Object form, made available under the License, as indicated by a
425
+ copyright notice that is included in or attached to the work
426
+ (an example is provided in the Appendix below).
427
+
428
+ "Derivative Works" shall mean any work, whether in Source or Object
429
+ form, that is based on (or derived from) the Work and for which the
430
+ editorial revisions, annotations, elaborations, or other modifications
431
+ represent, as a whole, an original work of authorship. For the purposes
432
+ of this License, Derivative Works shall not include works that remain
433
+ separable from, or merely link (or bind by name) to the interfaces of,
434
+ the Work and Derivative Works thereof.
435
+
436
+ "Contribution" shall mean any work of authorship, including
437
+ the original version of the Work and any modifications or additions
438
+ to that Work or Derivative Works thereof, that is intentionally
439
+ submitted to Licensor for inclusion in the Work by the copyright owner
440
+ or by an individual or Legal Entity authorized to submit on behalf of
441
+ the copyright owner. For the purposes of this definition, "submitted"
442
+ means any form of electronic, verbal, or written communication sent
443
+ to the Licensor or its representatives, including but not limited to
444
+ communication on electronic mailing lists, source code control systems,
445
+ and issue tracking systems that are managed by, or on behalf of, the
446
+ Licensor for the purpose of discussing and improving the Work, but
447
+ excluding communication that is conspicuously marked or otherwise
448
+ designated in writing by the copyright owner as "Not a Contribution."
449
+
450
+ "Contributor" shall mean Licensor and any individual or Legal Entity
451
+ on behalf of whom a Contribution has been received by Licensor and
452
+ subsequently incorporated within the Work.
453
+
454
+ 2. Grant of Copyright License. Subject to the terms and conditions of
455
+ this License, each Contributor hereby grants to You a perpetual,
456
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
457
+ copyright license to reproduce, prepare Derivative Works of,
458
+ publicly display, publicly perform, sublicense, and distribute the
459
+ Work and such Derivative Works in Source or Object form.
460
+
461
+ 3. Grant of Patent License. Subject to the terms and conditions of
462
+ this License, each Contributor hereby grants to You a perpetual,
463
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
464
+ (except as stated in this section) patent license to make, have made,
465
+ use, offer to sell, sell, import, and otherwise transfer the Work,
466
+ where such license applies only to those patent claims licensable
467
+ by such Contributor that are necessarily infringed by their
468
+ Contribution(s) alone or by combination of their Contribution(s)
469
+ with the Work to which such Contribution(s) was submitted. If You
470
+ institute patent litigation against any entity (including a
471
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
472
+ or a Contribution incorporated within the Work constitutes direct
473
+ or contributory patent infringement, then any patent licenses
474
+ granted to You under this License for that Work shall terminate
475
+ as of the date such litigation is filed.
476
+
477
+ 4. Redistribution. You may reproduce and distribute copies of the
478
+ Work or Derivative Works thereof in any medium, with or without
479
+ modifications, and in Source or Object form, provided that You
480
+ meet the following conditions:
481
+
482
+ (a) You must give any other recipients of the Work or
483
+ Derivative Works a copy of this License; and
484
+
485
+ (b) You must cause any modified files to carry prominent notices
486
+ stating that You changed the files; and
487
+
488
+ (c) You must retain, in the Source form of any Derivative Works
489
+ that You distribute, all copyright, patent, trademark, and
490
+ attribution notices from the Source form of the Work,
491
+ excluding those notices that do not pertain to any part of
492
+ the Derivative Works; and
493
+
494
+ (d) If the Work includes a "NOTICE" text file as part of its
495
+ distribution, then any Derivative Works that You distribute must
496
+ include a readable copy of the attribution notices contained
497
+ within such NOTICE file, excluding those notices that do not
498
+ pertain to any part of the Derivative Works, in at least one
499
+ of the following places: within a NOTICE text file distributed
500
+ as part of the Derivative Works; within the Source form or
501
+ documentation, if provided along with the Derivative Works; or,
502
+ within a display generated by the Derivative Works, if and
503
+ wherever such third-party notices normally appear. The contents
504
+ of the NOTICE file are for informational purposes only and
505
+ do not modify the License. You may add Your own attribution
506
+ notices within Derivative Works that You distribute, alongside
507
+ or as an addendum to the NOTICE text from the Work, provided
508
+ that such additional attribution notices cannot be construed
509
+ as modifying the License.
510
+
511
+ You may add Your own copyright statement to Your modifications and
512
+ may provide additional or different license terms and conditions
513
+ for use, reproduction, or distribution of Your modifications, or
514
+ for any such Derivative Works as a whole, provided Your use,
515
+ reproduction, and distribution of the Work otherwise complies with
516
+ the conditions stated in this License.
517
+
518
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
519
+ any Contribution intentionally submitted for inclusion in the Work
520
+ by You to the Licensor shall be under the terms and conditions of
521
+ this License, without any additional terms or conditions.
522
+ Notwithstanding the above, nothing herein shall supersede or modify
523
+ the terms of any separate license agreement you may have executed
524
+ with Licensor regarding such Contributions.
525
+
526
+ 6. Trademarks. This License does not grant permission to use the trade
527
+ names, trademarks, service marks, or product names of the Licensor,
528
+ except as required for reasonable and customary use in describing the
529
+ origin of the Work and reproducing the content of the NOTICE file.
530
+
531
+ 7. Disclaimer of Warranty. Unless required by applicable law or
532
+ agreed to in writing, Licensor provides the Work (and each
533
+ Contributor provides its Contributions) on an "AS IS" BASIS,
534
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
535
+ implied, including, without limitation, any warranties or conditions
536
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
537
+ PARTICULAR PURPOSE. You are solely responsible for determining the
538
+ appropriateness of using or redistributing the Work and assume any
539
+ risks associated with Your exercise of permissions under this License.
540
+
541
+ 8. Limitation of Liability. In no event and under no legal theory,
542
+ whether in tort (including negligence), contract, or otherwise,
543
+ unless required by applicable law (such as deliberate and grossly
544
+ negligent acts) or agreed to in writing, shall any Contributor be
545
+ liable to You for damages, including any direct, indirect, special,
546
+ incidental, or consequential damages of any character arising as a
547
+ result of this License or out of the use or inability to use the
548
+ Work (including but not limited to damages for loss of goodwill,
549
+ work stoppage, computer failure or malfunction, or any and all
550
+ other commercial damages or losses), even if such Contributor
551
+ has been advised of the possibility of such damages.
552
+
553
+ 9. Accepting Warranty or Additional Liability. While redistributing
554
+ the Work or Derivative Works thereof, You may choose to offer,
555
+ and charge a fee for, acceptance of support, warranty, indemnity,
556
+ or other liability obligations and/or rights consistent with this
557
+ License. However, in accepting such obligations, You may act only
558
+ on Your own behalf and on Your sole responsibility, not on behalf
559
+ of any other Contributor, and only if You agree to indemnify,
560
+ defend, and hold each Contributor harmless for any liability
561
+ incurred by, or claims asserted against, such Contributor by reason
562
+ of your accepting any such warranty or additional liability.
563
+
564
+ END OF TERMS AND CONDITIONS
565
+
566
+ This software is copyrighted by the Regents of the University of
567
+ California, Sun Microsystems, Inc., Scriptics Corporation, ActiveState
568
+ Corporation and other parties. The following terms apply to all files
569
+ associated with the software unless explicitly disclaimed in
570
+ individual files.
571
+
572
+ The authors hereby grant permission to use, copy, modify, distribute,
573
+ and license this software and its documentation for any purpose, provided
574
+ that existing copyright notices are retained in all copies and that this
575
+ notice is included verbatim in any distributions. No written agreement,
576
+ license, or royalty fee is required for any of the authorized uses.
577
+ Modifications to this software may be copyrighted by their authors
578
+ and need not follow the licensing terms described here, provided that
579
+ the new terms are clearly indicated on the first page of each file where
580
+ they apply.
581
+
582
+ IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY
583
+ FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
584
+ ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY
585
+ DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE
586
+ POSSIBILITY OF SUCH DAMAGE.
587
+
588
+ THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
589
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
590
+ FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE
591
+ IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE
592
+ NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
593
+ MODIFICATIONS.
594
+
595
+ GOVERNMENT USE: If you are acquiring this software on behalf of the
596
+ U.S. government, the Government shall have only "Restricted Rights"
597
+ in the software and related documentation as defined in the Federal
598
+ Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you
599
+ are acquiring the software on behalf of the Department of Defense, the
600
+ software shall be classified as "Commercial Computer Software" and the
601
+ Government shall have only "Restricted Rights" as defined in Clause
602
+ 252.227-7014 (b) (3) of DFARs. Notwithstanding the foregoing, the
603
+ authors grant the U.S. Government and others acting in its behalf
604
+ permission to use and distribute the software in accordance with the
605
+ terms specified in this license.
606
+
607
+ This software is copyrighted by the Regents of the University of
608
+ California, Sun Microsystems, Inc., Scriptics Corporation, ActiveState
609
+ Corporation, Apple Inc. and other parties. The following terms apply to
610
+ all files associated with the software unless explicitly disclaimed in
611
+ individual files.
612
+
613
+ The authors hereby grant permission to use, copy, modify, distribute,
614
+ and license this software and its documentation for any purpose, provided
615
+ that existing copyright notices are retained in all copies and that this
616
+ notice is included verbatim in any distributions. No written agreement,
617
+ license, or royalty fee is required for any of the authorized uses.
618
+ Modifications to this software may be copyrighted by their authors
619
+ and need not follow the licensing terms described here, provided that
620
+ the new terms are clearly indicated on the first page of each file where
621
+ they apply.
622
+
623
+ IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY
624
+ FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
625
+ ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY
626
+ DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE
627
+ POSSIBILITY OF SUCH DAMAGE.
628
+
629
+ THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
630
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
631
+ FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE
632
+ IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE
633
+ NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
634
+ MODIFICATIONS.
635
+
636
+ GOVERNMENT USE: If you are acquiring this software on behalf of the
637
+ U.S. government, the Government shall have only "Restricted Rights"
638
+ in the software and related documentation as defined in the Federal
639
+ Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you
640
+ are acquiring the software on behalf of the Department of Defense, the
641
+ software shall be classified as "Commercial Computer Software" and the
642
+ Government shall have only "Restricted Rights" as defined in Clause
643
+ 252.227-7013 (b) (3) of DFARs. Notwithstanding the foregoing, the
644
+ authors grant the U.S. Government and others acting in its behalf
645
+ permission to use and distribute the software in accordance with the
646
+ terms specified in this license.
647
+
648
+ Copyright (c) 1993-1999 Ioi Kim Lam.
649
+ Copyright (c) 2000-2001 Tix Project Group.
650
+ Copyright (c) 2004 ActiveState
651
+
652
+ This software is copyrighted by the above entities
653
+ and other parties. The following terms apply to all files associated
654
+ with the software unless explicitly disclaimed in individual files.
655
+
656
+ The authors hereby grant permission to use, copy, modify, distribute,
657
+ and license this software and its documentation for any purpose, provided
658
+ that existing copyright notices are retained in all copies and that this
659
+ notice is included verbatim in any distributions. No written agreement,
660
+ license, or royalty fee is required for any of the authorized uses.
661
+ Modifications to this software may be copyrighted by their authors
662
+ and need not follow the licensing terms described here, provided that
663
+ the new terms are clearly indicated on the first page of each file where
664
+ they apply.
665
+
666
+ IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY
667
+ FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
668
+ ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY
669
+ DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE
670
+ POSSIBILITY OF SUCH DAMAGE.
671
+
672
+ THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
673
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
674
+ FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE
675
+ IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE
676
+ NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
677
+ MODIFICATIONS.
678
+
679
+ GOVERNMENT USE: If you are acquiring this software on behalf of the
680
+ U.S. government, the Government shall have only "Restricted Rights"
681
+ in the software and related documentation as defined in the Federal
682
+ Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you
683
+ are acquiring the software on behalf of the Department of Defense, the
684
+ software shall be classified as "Commercial Computer Software" and the
685
+ Government shall have only "Restricted Rights" as defined in Clause
686
+ 252.227-7013 (c) (1) of DFARs. Notwithstanding the foregoing, the
687
+ authors grant the U.S. Government and others acting in its behalf
688
+ permission to use and distribute the software in accordance with the
689
+ terms specified in this license.
690
+
691
+ ----------------------------------------------------------------------
692
+
693
+ Parts of this software are based on the Tcl/Tk software copyrighted by
694
+ the Regents of the University of California, Sun Microsystems, Inc.,
695
+ and other parties. The original license terms of the Tcl/Tk software
696
+ distribution is included in the file docs/license.tcltk.
697
+
698
+ Parts of this software are based on the HTML Library software
699
+ copyrighted by Sun Microsystems, Inc. The original license terms of
700
+ the HTML Library software distribution is included in the file
701
+ docs/license.html_lib.
702
+
pgsql/pgAdmin 4/python/_asyncio.pyd ADDED
Binary file (65.3 kB). View file
 
pgsql/pgAdmin 4/python/_bz2.pyd ADDED
Binary file (84.8 kB). View file
 
pgsql/pgAdmin 4/python/_hashlib.pyd ADDED
Binary file (65.3 kB). View file
 
pgsql/pgAdmin 4/python/_msi.pyd ADDED
Binary file (44.8 kB). View file
 
pgsql/pgAdmin 4/python/_multiprocessing.pyd ADDED
Binary file (34.6 kB). View file
 
pgsql/pgAdmin 4/python/_overlapped.pyd ADDED
Binary file (51.5 kB). View file
 
pgsql/pgAdmin 4/python/_queue.pyd ADDED
Binary file (32 kB). View file
 
pgsql/pgAdmin 4/python/_socket.pyd ADDED
Binary file (79.6 kB). View file
 
pgsql/pgAdmin 4/python/_uuid.pyd ADDED
Binary file (25.4 kB). View file
 
pgsql/pgAdmin 4/python/_zoneinfo.pyd ADDED
Binary file (45.8 kB). View file
 
pgsql/pgAdmin 4/python/comerr64.dll ADDED
Binary file (16.9 kB). View file
 
pgsql/pgAdmin 4/python/k5sprt64.dll ADDED
Binary file (58.4 kB). View file
 
pgsql/pgAdmin 4/python/kinit.exe ADDED
Binary file (28.2 kB). View file
 
pgsql/pgAdmin 4/python/libffi-8.dll ADDED
Binary file (39.7 kB). View file
 
pgsql/pgAdmin 4/python/python3.dll ADDED
Binary file (67.4 kB). View file
 
pgsql/pgAdmin 4/python/python311._pth ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ python311.zip
2
+ .
3
+
4
+ # Uncomment to run site.main() automatically
5
+ #import site
6
+ import site
pgsql/pgAdmin 4/python/select.pyd ADDED
Binary file (30.5 kB). View file
 
pgsql/pgAdmin 4/python/vcruntime140_1.dll ADDED
Binary file (49.5 kB). View file
 
pgsql/pgAdmin 4/python/winsound.pyd ADDED
Binary file (31.5 kB). View file
 
pgsql/pgAdmin 4/runtime/credits.html ADDED
The diff for this file is too large to render. See raw diff
 
pgsql/pgAdmin 4/runtime/libwinpthread-1.dll ADDED
Binary file (52.7 kB). View file
 
pgsql/pgAdmin 4/runtime/package.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pgadmin4",
3
+ "description": "pgAdmin is the most popular and feature rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world.",
4
+ "main": "src/html/pgadmin.html",
5
+ "repository": "https://github.com/postgres/pgadmin4.git",
6
+ "author": "pgAdmin Development Team (https://www.pgadmin.org/)",
7
+ "license": "PostgreSQL",
8
+ "chromium-args": "--disable-popup-blocking --disable-gpu --disable-devtools",
9
+ "user-agent": "Nwjs:%nwver-%osinfo-%chromium_ver",
10
+ "nodejs": true,
11
+ "window": {
12
+ "width": 750,
13
+ "height": 600,
14
+ "toolbar": false,
15
+ "fullscreen": false,
16
+ "frame": false,
17
+ "show": true,
18
+ "position": "center",
19
+ "always-on-top": true,
20
+ "icon": "assets/pgAdmin4.png"
21
+ },
22
+ "icons": {
23
+ "256": "assets/pgAdmin4.png"
24
+ },
25
+ "dependencies": {
26
+ "axios": "^1.6.8",
27
+ "bootstrap": "^4.5.3"
28
+ },
29
+ "devDependencies": {
30
+ "eslint": "^9.0.0",
31
+ "nw": "0.77.0"
32
+ },
33
+ "scripts": {
34
+ "linter": "yarn eslint --no-eslintrc -c .eslintrc.js --ext .js ."
35
+ },
36
+ "packageManager": "yarn@3.6.4"
37
+ }
pgsql/pgAdmin 4/runtime/vk_swiftshader_icd.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"file_format_version": "1.0.0", "ICD": {"library_path": ".\\vk_swiftshader.dll", "api_version": "1.0.5"}}
pgsql/pgAdmin 4/runtime/yarn.lock ADDED
@@ -0,0 +1,1403 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2
+ # yarn lockfile v1
3
+
4
+
5
+ "@eslint-community/eslint-utils@^4.2.0":
6
+ version "4.4.0"
7
+ resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23514e8fb9af1269d5f7788aa556798d61c6b59"
8
+ integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==
9
+ dependencies:
10
+ eslint-visitor-keys "^3.3.0"
11
+
12
+ "@eslint-community/regexpp@^4.6.1":
13
+ version "4.10.0"
14
+ resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.10.0.tgz#548f6de556857c8bb73bbee70c35dc82a2e74d63"
15
+ integrity sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==
16
+
17
+ "@eslint/eslintrc@^3.0.2":
18
+ version "3.0.2"
19
+ resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-3.0.2.tgz#36180f8e85bf34d2fe3ccc2261e8e204a411ab4e"
20
+ integrity sha512-wV19ZEGEMAC1eHgrS7UQPqsdEiCIbTKTasEfcXAigzoXICcqZSjBZEHlZwNVvKg6UBCjSlos84XiLqsRJnIcIg==
21
+ dependencies:
22
+ ajv "^6.12.4"
23
+ debug "^4.3.2"
24
+ espree "^10.0.1"
25
+ globals "^14.0.0"
26
+ ignore "^5.2.0"
27
+ import-fresh "^3.2.1"
28
+ js-yaml "^4.1.0"
29
+ minimatch "^3.1.2"
30
+ strip-json-comments "^3.1.1"
31
+
32
+ "@eslint/js@9.2.0":
33
+ version "9.2.0"
34
+ resolved "https://registry.yarnpkg.com/@eslint/js/-/js-9.2.0.tgz#b0a9123e8e91a3d9a2eed3a04a6ed44fdab639aa"
35
+ integrity sha512-ESiIudvhoYni+MdsI8oD7skpprZ89qKocwRM2KEvhhBJ9nl5MRh7BXU5GTod7Mdygq+AUl+QzId6iWJKR/wABA==
36
+
37
+ "@humanwhocodes/config-array@^0.13.0":
38
+ version "0.13.0"
39
+ resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.13.0.tgz#fb907624df3256d04b9aa2df50d7aa97ec648748"
40
+ integrity sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==
41
+ dependencies:
42
+ "@humanwhocodes/object-schema" "^2.0.3"
43
+ debug "^4.3.1"
44
+ minimatch "^3.0.5"
45
+
46
+ "@humanwhocodes/module-importer@^1.0.1":
47
+ version "1.0.1"
48
+ resolved "https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c"
49
+ integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==
50
+
51
+ "@humanwhocodes/object-schema@^2.0.3":
52
+ version "2.0.3"
53
+ resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz#4a2868d75d6d6963e423bcf90b7fd1be343409d3"
54
+ integrity sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==
55
+
56
+ "@humanwhocodes/retry@^0.2.3":
57
+ version "0.2.4"
58
+ resolved "https://registry.yarnpkg.com/@humanwhocodes/retry/-/retry-0.2.4.tgz#4f3059423823bd8176132ceea9447dee101dfac1"
59
+ integrity sha512-Ttl/jHpxfS3st5sxwICYfk4pOH0WrLI1SpW283GgQL7sCWU7EHIOhX4b4fkIxr3tkfzwg8+FNojtzsIEE7Ecgg==
60
+
61
+ "@nodelib/fs.scandir@2.1.5":
62
+ version "2.1.5"
63
+ resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"
64
+ integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==
65
+ dependencies:
66
+ "@nodelib/fs.stat" "2.0.5"
67
+ run-parallel "^1.1.9"
68
+
69
+ "@nodelib/fs.stat@2.0.5":
70
+ version "2.0.5"
71
+ resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b"
72
+ integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==
73
+
74
+ "@nodelib/fs.walk@^1.2.8":
75
+ version "1.2.8"
76
+ resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a"
77
+ integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==
78
+ dependencies:
79
+ "@nodelib/fs.scandir" "2.1.5"
80
+ fastq "^1.6.0"
81
+
82
+ acorn-jsx@^5.3.2:
83
+ version "5.3.2"
84
+ resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937"
85
+ integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==
86
+
87
+ acorn@^8.11.3:
88
+ version "8.11.3"
89
+ resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.3.tgz#71e0b14e13a4ec160724b38fb7b0f233b1b81d7a"
90
+ integrity sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==
91
+
92
+ ajv@^6.12.4:
93
+ version "6.12.6"
94
+ resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4"
95
+ integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==
96
+ dependencies:
97
+ fast-deep-equal "^3.1.1"
98
+ fast-json-stable-stringify "^2.0.0"
99
+ json-schema-traverse "^0.4.1"
100
+ uri-js "^4.2.2"
101
+
102
+ ansi-regex@^2.0.0:
103
+ version "2.1.1"
104
+ resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
105
+ integrity sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==
106
+
107
+ ansi-regex@^5.0.1:
108
+ version "5.0.1"
109
+ resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304"
110
+ integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==
111
+
112
+ ansi-styles@^2.2.1:
113
+ version "2.2.1"
114
+ resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
115
+ integrity sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==
116
+
117
+ ansi-styles@^4.1.0:
118
+ version "4.3.0"
119
+ resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937"
120
+ integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==
121
+ dependencies:
122
+ color-convert "^2.0.1"
123
+
124
+ argparse@^2.0.1:
125
+ version "2.0.1"
126
+ resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38"
127
+ integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==
128
+
129
+ asynckit@^0.4.0:
130
+ version "0.4.0"
131
+ resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
132
+ integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==
133
+
134
+ axios@^1.6.8:
135
+ version "1.6.8"
136
+ resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.8.tgz#66d294951f5d988a00e87a0ffb955316a619ea66"
137
+ integrity sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==
138
+ dependencies:
139
+ follow-redirects "^1.15.6"
140
+ form-data "^4.0.0"
141
+ proxy-from-env "^1.1.0"
142
+
143
+ balanced-match@^1.0.0:
144
+ version "1.0.2"
145
+ resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee"
146
+ integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==
147
+
148
+ base64-js@^1.3.1:
149
+ version "1.5.1"
150
+ resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a"
151
+ integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==
152
+
153
+ bl@^1.0.0:
154
+ version "1.2.3"
155
+ resolved "https://registry.yarnpkg.com/bl/-/bl-1.2.3.tgz#1e8dd80142eac80d7158c9dccc047fb620e035e7"
156
+ integrity sha512-pvcNpa0UU69UT341rO6AYy4FVAIkUHuZXRIWbq+zHnsVcRzDDjIAhGuuYoi0d//cwIwtt4pkpKycWEfjdV+vww==
157
+ dependencies:
158
+ readable-stream "^2.3.5"
159
+ safe-buffer "^5.1.1"
160
+
161
+ bootstrap@^4.5.3:
162
+ version "4.6.2"
163
+ resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-4.6.2.tgz#8e0cd61611728a5bf65a3a2b8d6ff6c77d5d7479"
164
+ integrity sha512-51Bbp/Uxr9aTuy6ca/8FbFloBUJZLHwnhTcnjIeRn2suQWsWzcuJhGjKDB5eppVte/8oCdOL3VuwxvZDUggwGQ==
165
+
166
+ brace-expansion@^1.1.7:
167
+ version "1.1.11"
168
+ resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
169
+ integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==
170
+ dependencies:
171
+ balanced-match "^1.0.0"
172
+ concat-map "0.0.1"
173
+
174
+ buffer-alloc-unsafe@^1.1.0:
175
+ version "1.1.0"
176
+ resolved "https://registry.yarnpkg.com/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz#bd7dc26ae2972d0eda253be061dba992349c19f0"
177
+ integrity sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==
178
+
179
+ buffer-alloc@^1.2.0:
180
+ version "1.2.0"
181
+ resolved "https://registry.yarnpkg.com/buffer-alloc/-/buffer-alloc-1.2.0.tgz#890dd90d923a873e08e10e5fd51a57e5b7cce0ec"
182
+ integrity sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==
183
+ dependencies:
184
+ buffer-alloc-unsafe "^1.1.0"
185
+ buffer-fill "^1.0.0"
186
+
187
+ buffer-crc32@~0.2.3:
188
+ version "0.2.13"
189
+ resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242"
190
+ integrity sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==
191
+
192
+ buffer-fill@^1.0.0:
193
+ version "1.0.0"
194
+ resolved "https://registry.yarnpkg.com/buffer-fill/-/buffer-fill-1.0.0.tgz#f8f78b76789888ef39f205cd637f68e702122b2c"
195
+ integrity sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==
196
+
197
+ buffer@^5.2.1:
198
+ version "5.7.1"
199
+ resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0"
200
+ integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==
201
+ dependencies:
202
+ base64-js "^1.3.1"
203
+ ieee754 "^1.1.13"
204
+
205
+ callsites@^3.0.0:
206
+ version "3.1.0"
207
+ resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73"
208
+ integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==
209
+
210
+ camelcase@^2.0.1:
211
+ version "2.1.1"
212
+ resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-2.1.1.tgz#7c1d16d679a1bbe59ca02cacecfb011e201f5a1f"
213
+ integrity sha512-DLIsRzJVBQu72meAKPkWQOLcujdXT32hwdfnkI1frSiSRMK1MofjKHf+MEx0SB6fjEFXL8fBDv1dKymBlOp4Qw==
214
+
215
+ capture-stack-trace@^1.0.0:
216
+ version "1.0.2"
217
+ resolved "https://registry.yarnpkg.com/capture-stack-trace/-/capture-stack-trace-1.0.2.tgz#1c43f6b059d4249e7f3f8724f15f048b927d3a8a"
218
+ integrity sha512-X/WM2UQs6VMHUtjUDnZTRI+i1crWteJySFzr9UpGoQa4WQffXVTTXuekjl7TjZRlcF2XfjgITT0HxZ9RnxeT0w==
219
+
220
+ caw@^2.0.0:
221
+ version "2.0.1"
222
+ resolved "https://registry.yarnpkg.com/caw/-/caw-2.0.1.tgz#6c3ca071fc194720883c2dc5da9b074bfc7e9e95"
223
+ integrity sha512-Cg8/ZSBEa8ZVY9HspcGUYaK63d/bN7rqS3CYCzEGUxuYv6UlmcjzDUz2fCFFHyTvUW5Pk0I+3hkA3iXlIj6guA==
224
+ dependencies:
225
+ get-proxy "^2.0.0"
226
+ isurl "^1.0.0-alpha5"
227
+ tunnel-agent "^0.6.0"
228
+ url-to-options "^1.0.1"
229
+
230
+ chalk@^4.0.0:
231
+ version "4.1.2"
232
+ resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01"
233
+ integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==
234
+ dependencies:
235
+ ansi-styles "^4.1.0"
236
+ supports-color "^7.1.0"
237
+
238
+ chalk@~1.1.3:
239
+ version "1.1.3"
240
+ resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
241
+ integrity sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==
242
+ dependencies:
243
+ ansi-styles "^2.2.1"
244
+ escape-string-regexp "^1.0.2"
245
+ has-ansi "^2.0.0"
246
+ strip-ansi "^3.0.0"
247
+ supports-color "^2.0.0"
248
+
249
+ cliui@^3.0.3:
250
+ version "3.2.0"
251
+ resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d"
252
+ integrity sha512-0yayqDxWQbqk3ojkYqUKqaAQ6AfNKeKWRNA8kR0WXzAsdHpP4BIaOmMAG87JGuO6qcobyW4GjxHd9PmhEd+T9w==
253
+ dependencies:
254
+ string-width "^1.0.1"
255
+ strip-ansi "^3.0.1"
256
+ wrap-ansi "^2.0.0"
257
+
258
+ code-point-at@^1.0.0:
259
+ version "1.1.0"
260
+ resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
261
+ integrity sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==
262
+
263
+ color-convert@^2.0.1:
264
+ version "2.0.1"
265
+ resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3"
266
+ integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==
267
+ dependencies:
268
+ color-name "~1.1.4"
269
+
270
+ color-name@~1.1.4:
271
+ version "1.1.4"
272
+ resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
273
+ integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
274
+
275
+ combined-stream@^1.0.8:
276
+ version "1.0.8"
277
+ resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f"
278
+ integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==
279
+ dependencies:
280
+ delayed-stream "~1.0.0"
281
+
282
+ commander@^2.8.1:
283
+ version "2.20.3"
284
+ resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
285
+ integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
286
+
287
+ concat-map@0.0.1:
288
+ version "0.0.1"
289
+ resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
290
+ integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==
291
+
292
+ config-chain@^1.1.11:
293
+ version "1.1.13"
294
+ resolved "https://registry.yarnpkg.com/config-chain/-/config-chain-1.1.13.tgz#fad0795aa6a6cdaff9ed1b68e9dff94372c232f4"
295
+ integrity sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==
296
+ dependencies:
297
+ ini "^1.3.4"
298
+ proto-list "~1.2.1"
299
+
300
+ core-util-is@~1.0.0:
301
+ version "1.0.3"
302
+ resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85"
303
+ integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==
304
+
305
+ create-error-class@^3.0.0:
306
+ version "3.0.2"
307
+ resolved "https://registry.yarnpkg.com/create-error-class/-/create-error-class-3.0.2.tgz#06be7abef947a3f14a30fd610671d401bca8b7b6"
308
+ integrity sha512-gYTKKexFO3kh200H1Nit76sRwRtOY32vQd3jpAQKpLtZqyNsSQNfI4N7o3eP2wUjV35pTWKRYqFUDBvUha/Pkw==
309
+ dependencies:
310
+ capture-stack-trace "^1.0.0"
311
+
312
+ cross-spawn@^7.0.2:
313
+ version "7.0.3"
314
+ resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
315
+ integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==
316
+ dependencies:
317
+ path-key "^3.1.0"
318
+ shebang-command "^2.0.0"
319
+ which "^2.0.1"
320
+
321
+ debug@^4.3.1, debug@^4.3.2:
322
+ version "4.3.4"
323
+ resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865"
324
+ integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==
325
+ dependencies:
326
+ ms "2.1.2"
327
+
328
+ decamelize@^1.1.1:
329
+ version "1.2.0"
330
+ resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
331
+ integrity sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==
332
+
333
+ decompress-tar@^4.0.0, decompress-tar@^4.1.0, decompress-tar@^4.1.1:
334
+ version "4.1.1"
335
+ resolved "https://registry.yarnpkg.com/decompress-tar/-/decompress-tar-4.1.1.tgz#718cbd3fcb16209716e70a26b84e7ba4592e5af1"
336
+ integrity sha512-JdJMaCrGpB5fESVyxwpCx4Jdj2AagLmv3y58Qy4GE6HMVjWz1FeVQk1Ct4Kye7PftcdOo/7U7UKzYBJgqnGeUQ==
337
+ dependencies:
338
+ file-type "^5.2.0"
339
+ is-stream "^1.1.0"
340
+ tar-stream "^1.5.2"
341
+
342
+ decompress-tarbz2@^4.0.0:
343
+ version "4.1.1"
344
+ resolved "https://registry.yarnpkg.com/decompress-tarbz2/-/decompress-tarbz2-4.1.1.tgz#3082a5b880ea4043816349f378b56c516be1a39b"
345
+ integrity sha512-s88xLzf1r81ICXLAVQVzaN6ZmX4A6U4z2nMbOwobxkLoIIfjVMBg7TeguTUXkKeXni795B6y5rnvDw7rxhAq9A==
346
+ dependencies:
347
+ decompress-tar "^4.1.0"
348
+ file-type "^6.1.0"
349
+ is-stream "^1.1.0"
350
+ seek-bzip "^1.0.5"
351
+ unbzip2-stream "^1.0.9"
352
+
353
+ decompress-targz@^4.0.0:
354
+ version "4.1.1"
355
+ resolved "https://registry.yarnpkg.com/decompress-targz/-/decompress-targz-4.1.1.tgz#c09bc35c4d11f3de09f2d2da53e9de23e7ce1eee"
356
+ integrity sha512-4z81Znfr6chWnRDNfFNqLwPvm4db3WuZkqV+UgXQzSngG3CEKdBkw5jrv3axjjL96glyiiKjsxJG3X6WBZwX3w==
357
+ dependencies:
358
+ decompress-tar "^4.1.1"
359
+ file-type "^5.2.0"
360
+ is-stream "^1.1.0"
361
+
362
+ decompress-unzip@^4.0.1:
363
+ version "4.0.1"
364
+ resolved "https://registry.yarnpkg.com/decompress-unzip/-/decompress-unzip-4.0.1.tgz#deaaccdfd14aeaf85578f733ae8210f9b4848f69"
365
+ integrity sha512-1fqeluvxgnn86MOh66u8FjbtJpAFv5wgCT9Iw8rcBqQcCo5tO8eiJw7NNTrvt9n4CRBVq7CstiS922oPgyGLrw==
366
+ dependencies:
367
+ file-type "^3.8.0"
368
+ get-stream "^2.2.0"
369
+ pify "^2.3.0"
370
+ yauzl "^2.4.2"
371
+
372
+ decompress@^4.0.0, decompress@^4.2.0:
373
+ version "4.2.1"
374
+ resolved "https://registry.yarnpkg.com/decompress/-/decompress-4.2.1.tgz#007f55cc6a62c055afa37c07eb6a4ee1b773f118"
375
+ integrity sha512-e48kc2IjU+2Zw8cTb6VZcJQ3lgVbS4uuB1TfCHbiZIP/haNXm+SVyhu+87jts5/3ROpd82GSVCoNs/z8l4ZOaQ==
376
+ dependencies:
377
+ decompress-tar "^4.0.0"
378
+ decompress-tarbz2 "^4.0.0"
379
+ decompress-targz "^4.0.0"
380
+ decompress-unzip "^4.0.1"
381
+ graceful-fs "^4.1.10"
382
+ make-dir "^1.0.0"
383
+ pify "^2.3.0"
384
+ strip-dirs "^2.0.0"
385
+
386
+ deep-is@^0.1.3:
387
+ version "0.1.4"
388
+ resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831"
389
+ integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==
390
+
391
+ delayed-stream@~1.0.0:
392
+ version "1.0.0"
393
+ resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"
394
+ integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==
395
+
396
+ download@^5.0.3:
397
+ version "5.0.3"
398
+ resolved "https://registry.yarnpkg.com/download/-/download-5.0.3.tgz#63537f977f99266a30eb8a2a2fbd1f20b8000f7a"
399
+ integrity sha512-rE0V29BV5FyylK3Uw5hmP90TBuwGHAqPYfaRHW/VHsKe9Xqi7RACVg0k0FokeE+MTWr9mtUy75GyszRACiD3Ow==
400
+ dependencies:
401
+ caw "^2.0.0"
402
+ decompress "^4.0.0"
403
+ filenamify "^2.0.0"
404
+ get-stream "^3.0.0"
405
+ got "^6.3.0"
406
+ mkdirp "^0.5.1"
407
+ pify "^2.3.0"
408
+
409
+ duplexer3@^0.1.4:
410
+ version "0.1.5"
411
+ resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.5.tgz#0b5e4d7bad5de8901ea4440624c8e1d20099217e"
412
+ integrity sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA==
413
+
414
+ end-of-stream@^1.0.0:
415
+ version "1.4.4"
416
+ resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0"
417
+ integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==
418
+ dependencies:
419
+ once "^1.4.0"
420
+
421
+ escape-string-regexp@^1.0.2:
422
+ version "1.0.5"
423
+ resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
424
+ integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==
425
+
426
+ escape-string-regexp@^4.0.0:
427
+ version "4.0.0"
428
+ resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
429
+ integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
430
+
431
+ eslint-scope@^8.0.1:
432
+ version "8.0.1"
433
+ resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-8.0.1.tgz#a9601e4b81a0b9171657c343fb13111688963cfc"
434
+ integrity sha512-pL8XjgP4ZOmmwfFE8mEhSxA7ZY4C+LWyqjQ3o4yWkkmD0qcMT9kkW3zWHOczhWcjTSgqycYAgwSlXvZltv65og==
435
+ dependencies:
436
+ esrecurse "^4.3.0"
437
+ estraverse "^5.2.0"
438
+
439
+ eslint-visitor-keys@^3.3.0:
440
+ version "3.4.3"
441
+ resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800"
442
+ integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==
443
+
444
+ eslint-visitor-keys@^4.0.0:
445
+ version "4.0.0"
446
+ resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz#e3adc021aa038a2a8e0b2f8b0ce8f66b9483b1fb"
447
+ integrity sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==
448
+
449
+ eslint@^9.0.0:
450
+ version "9.2.0"
451
+ resolved "https://registry.yarnpkg.com/eslint/-/eslint-9.2.0.tgz#0700ebc99528753315d78090876911d3cdbf19fe"
452
+ integrity sha512-0n/I88vZpCOzO+PQpt0lbsqmn9AsnsJAQseIqhZFI8ibQT0U1AkEKRxA3EVMos0BoHSXDQvCXY25TUjB5tr8Og==
453
+ dependencies:
454
+ "@eslint-community/eslint-utils" "^4.2.0"
455
+ "@eslint-community/regexpp" "^4.6.1"
456
+ "@eslint/eslintrc" "^3.0.2"
457
+ "@eslint/js" "9.2.0"
458
+ "@humanwhocodes/config-array" "^0.13.0"
459
+ "@humanwhocodes/module-importer" "^1.0.1"
460
+ "@humanwhocodes/retry" "^0.2.3"
461
+ "@nodelib/fs.walk" "^1.2.8"
462
+ ajv "^6.12.4"
463
+ chalk "^4.0.0"
464
+ cross-spawn "^7.0.2"
465
+ debug "^4.3.2"
466
+ escape-string-regexp "^4.0.0"
467
+ eslint-scope "^8.0.1"
468
+ eslint-visitor-keys "^4.0.0"
469
+ espree "^10.0.1"
470
+ esquery "^1.4.2"
471
+ esutils "^2.0.2"
472
+ fast-deep-equal "^3.1.3"
473
+ file-entry-cache "^8.0.0"
474
+ find-up "^5.0.0"
475
+ glob-parent "^6.0.2"
476
+ ignore "^5.2.0"
477
+ imurmurhash "^0.1.4"
478
+ is-glob "^4.0.0"
479
+ is-path-inside "^3.0.3"
480
+ json-stable-stringify-without-jsonify "^1.0.1"
481
+ levn "^0.4.1"
482
+ lodash.merge "^4.6.2"
483
+ minimatch "^3.1.2"
484
+ natural-compare "^1.4.0"
485
+ optionator "^0.9.3"
486
+ strip-ansi "^6.0.1"
487
+ text-table "^0.2.0"
488
+
489
+ espree@^10.0.1:
490
+ version "10.0.1"
491
+ resolved "https://registry.yarnpkg.com/espree/-/espree-10.0.1.tgz#600e60404157412751ba4a6f3a2ee1a42433139f"
492
+ integrity sha512-MWkrWZbJsL2UwnjxTX3gG8FneachS/Mwg7tdGXce011sJd5b0JG54vat5KHnfSBODZ3Wvzd2WnjxyzsRoVv+ww==
493
+ dependencies:
494
+ acorn "^8.11.3"
495
+ acorn-jsx "^5.3.2"
496
+ eslint-visitor-keys "^4.0.0"
497
+
498
+ esquery@^1.4.2:
499
+ version "1.5.0"
500
+ resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.5.0.tgz#6ce17738de8577694edd7361c57182ac8cb0db0b"
501
+ integrity sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==
502
+ dependencies:
503
+ estraverse "^5.1.0"
504
+
505
+ esrecurse@^4.3.0:
506
+ version "4.3.0"
507
+ resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921"
508
+ integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==
509
+ dependencies:
510
+ estraverse "^5.2.0"
511
+
512
+ estraverse@^5.1.0, estraverse@^5.2.0:
513
+ version "5.3.0"
514
+ resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123"
515
+ integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==
516
+
517
+ esutils@^2.0.2:
518
+ version "2.0.3"
519
+ resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"
520
+ integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==
521
+
522
+ fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3:
523
+ version "3.1.3"
524
+ resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
525
+ integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==
526
+
527
+ fast-json-stable-stringify@^2.0.0:
528
+ version "2.1.0"
529
+ resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633"
530
+ integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==
531
+
532
+ fast-levenshtein@^2.0.6:
533
+ version "2.0.6"
534
+ resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"
535
+ integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==
536
+
537
+ fastq@^1.6.0:
538
+ version "1.17.1"
539
+ resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.17.1.tgz#2a523f07a4e7b1e81a42b91b8bf2254107753b47"
540
+ integrity sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==
541
+ dependencies:
542
+ reusify "^1.0.4"
543
+
544
+ fd-slicer@~1.1.0:
545
+ version "1.1.0"
546
+ resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.1.0.tgz#25c7c89cb1f9077f8891bbe61d8f390eae256f1e"
547
+ integrity sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==
548
+ dependencies:
549
+ pend "~1.2.0"
550
+
551
+ file-entry-cache@^8.0.0:
552
+ version "8.0.0"
553
+ resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-8.0.0.tgz#7787bddcf1131bffb92636c69457bbc0edd6d81f"
554
+ integrity sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==
555
+ dependencies:
556
+ flat-cache "^4.0.0"
557
+
558
+ file-exists@^2.0.0:
559
+ version "2.0.0"
560
+ resolved "https://registry.yarnpkg.com/file-exists/-/file-exists-2.0.0.tgz#a24150665150e62d55bc5449281d88d2b0810dca"
561
+ integrity sha512-xiDzGS+oe7RleGLItoPTKVj3DjKHiVANV6dEyWTt3yB08H/AHuyvjh0aZ8jISQ53yhyTWVLsDzhJ5IbvPciBjg==
562
+
563
+ file-type@^3.8.0:
564
+ version "3.9.0"
565
+ resolved "https://registry.yarnpkg.com/file-type/-/file-type-3.9.0.tgz#257a078384d1db8087bc449d107d52a52672b9e9"
566
+ integrity sha512-RLoqTXE8/vPmMuTI88DAzhMYC99I8BWv7zYP4A1puo5HIjEJ5EX48ighy4ZyKMG9EDXxBgW6e++cn7d1xuFghA==
567
+
568
+ file-type@^5.2.0:
569
+ version "5.2.0"
570
+ resolved "https://registry.yarnpkg.com/file-type/-/file-type-5.2.0.tgz#2ddbea7c73ffe36368dfae49dc338c058c2b8ad6"
571
+ integrity sha512-Iq1nJ6D2+yIO4c8HHg4fyVb8mAJieo1Oloy1mLLaB2PvezNedhBVm+QU7g0qM42aiMbRXTxKKwGD17rjKNJYVQ==
572
+
573
+ file-type@^6.1.0:
574
+ version "6.2.0"
575
+ resolved "https://registry.yarnpkg.com/file-type/-/file-type-6.2.0.tgz#e50cd75d356ffed4e306dc4f5bcf52a79903a919"
576
+ integrity sha512-YPcTBDV+2Tm0VqjybVd32MHdlEGAtuxS3VAYsumFokDSMG+ROT5wawGlnHDoz7bfMcMDt9hxuXvXwoKUx2fkOg==
577
+
578
+ filename-reserved-regex@^2.0.0:
579
+ version "2.0.0"
580
+ resolved "https://registry.yarnpkg.com/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz#abf73dfab735d045440abfea2d91f389ebbfa229"
581
+ integrity sha512-lc1bnsSr4L4Bdif8Xb/qrtokGbq5zlsms/CYH8PP+WtCkGNF65DPiQY8vG3SakEdRn8Dlnm+gW/qWKKjS5sZzQ==
582
+
583
+ filenamify@^2.0.0:
584
+ version "2.1.0"
585
+ resolved "https://registry.yarnpkg.com/filenamify/-/filenamify-2.1.0.tgz#88faf495fb1b47abfd612300002a16228c677ee9"
586
+ integrity sha512-ICw7NTT6RsDp2rnYKVd8Fu4cr6ITzGy3+u4vUujPkabyaz+03F24NWEX7fs5fp+kBonlaqPH8fAO2NM+SXt/JA==
587
+ dependencies:
588
+ filename-reserved-regex "^2.0.0"
589
+ strip-outer "^1.0.0"
590
+ trim-repeated "^1.0.0"
591
+
592
+ find-up@^5.0.0:
593
+ version "5.0.0"
594
+ resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc"
595
+ integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==
596
+ dependencies:
597
+ locate-path "^6.0.0"
598
+ path-exists "^4.0.0"
599
+
600
+ flat-cache@^4.0.0:
601
+ version "4.0.1"
602
+ resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-4.0.1.tgz#0ece39fcb14ee012f4b0410bd33dd9c1f011127c"
603
+ integrity sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==
604
+ dependencies:
605
+ flatted "^3.2.9"
606
+ keyv "^4.5.4"
607
+
608
+ flatted@^3.2.9:
609
+ version "3.3.1"
610
+ resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.1.tgz#21db470729a6734d4997002f439cb308987f567a"
611
+ integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==
612
+
613
+ follow-redirects@^1.15.6:
614
+ version "1.15.6"
615
+ resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.6.tgz#7f815c0cda4249c74ff09e95ef97c23b5fd0399b"
616
+ integrity sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==
617
+
618
+ form-data@^4.0.0:
619
+ version "4.0.0"
620
+ resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452"
621
+ integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==
622
+ dependencies:
623
+ asynckit "^0.4.0"
624
+ combined-stream "^1.0.8"
625
+ mime-types "^2.1.12"
626
+
627
+ fs-constants@^1.0.0:
628
+ version "1.0.0"
629
+ resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad"
630
+ integrity sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==
631
+
632
+ fs.realpath@^1.0.0:
633
+ version "1.0.0"
634
+ resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
635
+ integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==
636
+
637
+ get-proxy@^2.0.0:
638
+ version "2.1.0"
639
+ resolved "https://registry.yarnpkg.com/get-proxy/-/get-proxy-2.1.0.tgz#349f2b4d91d44c4d4d4e9cba2ad90143fac5ef93"
640
+ integrity sha512-zmZIaQTWnNQb4R4fJUEp/FC51eZsc6EkErspy3xtIYStaq8EB/hDIWipxsal+E8rz0qD7f2sL/NA9Xee4RInJw==
641
+ dependencies:
642
+ npm-conf "^1.1.0"
643
+
644
+ get-stream@^2.2.0:
645
+ version "2.3.1"
646
+ resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-2.3.1.tgz#5f38f93f346009666ee0150a054167f91bdd95de"
647
+ integrity sha512-AUGhbbemXxrZJRD5cDvKtQxLuYaIbNtDTK8YqupCI393Q2KSTreEsLUN3ZxAWFGiKTzL6nKuzfcIvieflUX9qA==
648
+ dependencies:
649
+ object-assign "^4.0.1"
650
+ pinkie-promise "^2.0.0"
651
+
652
+ get-stream@^3.0.0:
653
+ version "3.0.0"
654
+ resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14"
655
+ integrity sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==
656
+
657
+ glob-parent@^6.0.2:
658
+ version "6.0.2"
659
+ resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3"
660
+ integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==
661
+ dependencies:
662
+ is-glob "^4.0.3"
663
+
664
+ glob@^7.1.3:
665
+ version "7.2.3"
666
+ resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b"
667
+ integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==
668
+ dependencies:
669
+ fs.realpath "^1.0.0"
670
+ inflight "^1.0.4"
671
+ inherits "2"
672
+ minimatch "^3.1.1"
673
+ once "^1.3.0"
674
+ path-is-absolute "^1.0.0"
675
+
676
+ globals@^14.0.0:
677
+ version "14.0.0"
678
+ resolved "https://registry.yarnpkg.com/globals/-/globals-14.0.0.tgz#898d7413c29babcf6bafe56fcadded858ada724e"
679
+ integrity sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==
680
+
681
+ got@^6.3.0:
682
+ version "6.7.1"
683
+ resolved "https://registry.yarnpkg.com/got/-/got-6.7.1.tgz#240cd05785a9a18e561dc1b44b41c763ef1e8db0"
684
+ integrity sha512-Y/K3EDuiQN9rTZhBvPRWMLXIKdeD1Rj0nzunfoi0Yyn5WBEbzxXKU9Ub2X41oZBagVWOBU3MuDonFMgPWQFnwg==
685
+ dependencies:
686
+ create-error-class "^3.0.0"
687
+ duplexer3 "^0.1.4"
688
+ get-stream "^3.0.0"
689
+ is-redirect "^1.0.0"
690
+ is-retry-allowed "^1.0.0"
691
+ is-stream "^1.0.0"
692
+ lowercase-keys "^1.0.0"
693
+ safe-buffer "^5.0.1"
694
+ timed-out "^4.0.0"
695
+ unzip-response "^2.0.1"
696
+ url-parse-lax "^1.0.0"
697
+
698
+ graceful-fs@^4.1.10:
699
+ version "4.2.11"
700
+ resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3"
701
+ integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==
702
+
703
+ has-ansi@^2.0.0:
704
+ version "2.0.0"
705
+ resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91"
706
+ integrity sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==
707
+ dependencies:
708
+ ansi-regex "^2.0.0"
709
+
710
+ has-flag@^4.0.0:
711
+ version "4.0.0"
712
+ resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b"
713
+ integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==
714
+
715
+ has-symbol-support-x@^1.4.1:
716
+ version "1.4.2"
717
+ resolved "https://registry.yarnpkg.com/has-symbol-support-x/-/has-symbol-support-x-1.4.2.tgz#1409f98bc00247da45da67cee0a36f282ff26455"
718
+ integrity sha512-3ToOva++HaW+eCpgqZrCfN51IPB+7bJNVT6CUATzueB5Heb8o6Nam0V3HG5dlDvZU1Gn5QLcbahiKw/XVk5JJw==
719
+
720
+ has-to-string-tag-x@^1.2.0:
721
+ version "1.4.1"
722
+ resolved "https://registry.yarnpkg.com/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz#a045ab383d7b4b2012a00148ab0aa5f290044d4d"
723
+ integrity sha512-vdbKfmw+3LoOYVr+mtxHaX5a96+0f3DljYd8JOqvOLsf5mw2Otda2qCDT9qRqLAhrjyQ0h7ual5nOiASpsGNFw==
724
+ dependencies:
725
+ has-symbol-support-x "^1.4.1"
726
+
727
+ ieee754@^1.1.13:
728
+ version "1.2.1"
729
+ resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352"
730
+ integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==
731
+
732
+ ignore@^5.2.0:
733
+ version "5.3.1"
734
+ resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.1.tgz#5073e554cd42c5b33b394375f538b8593e34d4ef"
735
+ integrity sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==
736
+
737
+ import-fresh@^3.2.1:
738
+ version "3.3.0"
739
+ resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b"
740
+ integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==
741
+ dependencies:
742
+ parent-module "^1.0.0"
743
+ resolve-from "^4.0.0"
744
+
745
+ imurmurhash@^0.1.4:
746
+ version "0.1.4"
747
+ resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"
748
+ integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==
749
+
750
+ inflight@^1.0.4:
751
+ version "1.0.6"
752
+ resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
753
+ integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==
754
+ dependencies:
755
+ once "^1.3.0"
756
+ wrappy "1"
757
+
758
+ inherits@2, inherits@~2.0.3:
759
+ version "2.0.4"
760
+ resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
761
+ integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
762
+
763
+ ini@^1.3.4:
764
+ version "1.3.8"
765
+ resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c"
766
+ integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==
767
+
768
+ invert-kv@^1.0.0:
769
+ version "1.0.0"
770
+ resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6"
771
+ integrity sha512-xgs2NH9AE66ucSq4cNG1nhSFghr5l6tdL15Pk+jl46bmmBapgoaY/AacXyaDznAqmGL99TiLSQgO/XazFSKYeQ==
772
+
773
+ is-extglob@^2.1.1:
774
+ version "2.1.1"
775
+ resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"
776
+ integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==
777
+
778
+ is-fullwidth-code-point@^1.0.0:
779
+ version "1.0.0"
780
+ resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb"
781
+ integrity sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==
782
+ dependencies:
783
+ number-is-nan "^1.0.0"
784
+
785
+ is-glob@^4.0.0, is-glob@^4.0.3:
786
+ version "4.0.3"
787
+ resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084"
788
+ integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==
789
+ dependencies:
790
+ is-extglob "^2.1.1"
791
+
792
+ is-natural-number@^4.0.1:
793
+ version "4.0.1"
794
+ resolved "https://registry.yarnpkg.com/is-natural-number/-/is-natural-number-4.0.1.tgz#ab9d76e1db4ced51e35de0c72ebecf09f734cde8"
795
+ integrity sha512-Y4LTamMe0DDQIIAlaer9eKebAlDSV6huy+TWhJVPlzZh2o4tRP5SQWFlLn5N0To4mDD22/qdOq+veo1cSISLgQ==
796
+
797
+ is-object@^1.0.1:
798
+ version "1.0.2"
799
+ resolved "https://registry.yarnpkg.com/is-object/-/is-object-1.0.2.tgz#a56552e1c665c9e950b4a025461da87e72f86fcf"
800
+ integrity sha512-2rRIahhZr2UWb45fIOuvZGpFtz0TyOZLf32KxBbSoUCeZR495zCKlWUKKUByk3geS2eAs7ZAABt0Y/Rx0GiQGA==
801
+
802
+ is-path-inside@^3.0.3:
803
+ version "3.0.3"
804
+ resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283"
805
+ integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==
806
+
807
+ is-redirect@^1.0.0:
808
+ version "1.0.0"
809
+ resolved "https://registry.yarnpkg.com/is-redirect/-/is-redirect-1.0.0.tgz#1d03dded53bd8db0f30c26e4f95d36fc7c87dc24"
810
+ integrity sha512-cr/SlUEe5zOGmzvj9bUyC4LVvkNVAXu4GytXLNMr1pny+a65MpQ9IJzFHD5vi7FyJgb4qt27+eS3TuQnqB+RQw==
811
+
812
+ is-retry-allowed@^1.0.0:
813
+ version "1.2.0"
814
+ resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz#d778488bd0a4666a3be8a1482b9f2baafedea8b4"
815
+ integrity sha512-RUbUeKwvm3XG2VYamhJL1xFktgjvPzL0Hq8C+6yrWIswDy3BIXGqCxhxkc30N9jqK311gVU137K8Ei55/zVJRg==
816
+
817
+ is-stream@^1.0.0, is-stream@^1.1.0:
818
+ version "1.1.0"
819
+ resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44"
820
+ integrity sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==
821
+
822
+ isarray@~1.0.0:
823
+ version "1.0.0"
824
+ resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
825
+ integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==
826
+
827
+ isexe@^2.0.0:
828
+ version "2.0.0"
829
+ resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
830
+ integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==
831
+
832
+ isurl@^1.0.0-alpha5:
833
+ version "1.0.0"
834
+ resolved "https://registry.yarnpkg.com/isurl/-/isurl-1.0.0.tgz#b27f4f49f3cdaa3ea44a0a5b7f3462e6edc39d67"
835
+ integrity sha512-1P/yWsxPlDtn7QeRD+ULKQPaIaN6yF368GZ2vDfv0AL0NwpStafjWCDDdn0k8wgFMWpVAqG7oJhxHnlud42i9w==
836
+ dependencies:
837
+ has-to-string-tag-x "^1.2.0"
838
+ is-object "^1.0.1"
839
+
840
+ js-yaml@^4.1.0:
841
+ version "4.1.0"
842
+ resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602"
843
+ integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==
844
+ dependencies:
845
+ argparse "^2.0.1"
846
+
847
+ json-buffer@3.0.1:
848
+ version "3.0.1"
849
+ resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13"
850
+ integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==
851
+
852
+ json-schema-traverse@^0.4.1:
853
+ version "0.4.1"
854
+ resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660"
855
+ integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==
856
+
857
+ json-stable-stringify-without-jsonify@^1.0.1:
858
+ version "1.0.1"
859
+ resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651"
860
+ integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==
861
+
862
+ keyv@^4.5.4:
863
+ version "4.5.4"
864
+ resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.4.tgz#a879a99e29452f942439f2a405e3af8b31d4de93"
865
+ integrity sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==
866
+ dependencies:
867
+ json-buffer "3.0.1"
868
+
869
+ lcid@^1.0.0:
870
+ version "1.0.0"
871
+ resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835"
872
+ integrity sha512-YiGkH6EnGrDGqLMITnGjXtGmNtjoXw9SVUzcaos8RBi7Ps0VBylkq+vOcY9QE5poLasPCR849ucFUkl0UzUyOw==
873
+ dependencies:
874
+ invert-kv "^1.0.0"
875
+
876
+ levn@^0.4.1:
877
+ version "0.4.1"
878
+ resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade"
879
+ integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==
880
+ dependencies:
881
+ prelude-ls "^1.2.1"
882
+ type-check "~0.4.0"
883
+
884
+ locate-path@^6.0.0:
885
+ version "6.0.0"
886
+ resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286"
887
+ integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==
888
+ dependencies:
889
+ p-locate "^5.0.0"
890
+
891
+ lodash.merge@^4.6.2:
892
+ version "4.6.2"
893
+ resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a"
894
+ integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==
895
+
896
+ lowercase-keys@^1.0.0:
897
+ version "1.0.1"
898
+ resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f"
899
+ integrity sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==
900
+
901
+ make-dir@^1.0.0:
902
+ version "1.3.0"
903
+ resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c"
904
+ integrity sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==
905
+ dependencies:
906
+ pify "^3.0.0"
907
+
908
+ merge@^1.2.0:
909
+ version "1.2.1"
910
+ resolved "https://registry.yarnpkg.com/merge/-/merge-1.2.1.tgz#38bebf80c3220a8a487b6fcfb3941bb11720c145"
911
+ integrity sha512-VjFo4P5Whtj4vsLzsYBu5ayHhoHJ0UqNm7ibvShmbmoz7tGi0vXaoJbGdB+GmDMLUdg8DpQXEIeVDAe8MaABvQ==
912
+
913
+ mime-db@1.52.0:
914
+ version "1.52.0"
915
+ resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70"
916
+ integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==
917
+
918
+ mime-types@^2.1.12:
919
+ version "2.1.35"
920
+ resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a"
921
+ integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==
922
+ dependencies:
923
+ mime-db "1.52.0"
924
+
925
+ minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2:
926
+ version "3.1.2"
927
+ resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
928
+ integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
929
+ dependencies:
930
+ brace-expansion "^1.1.7"
931
+
932
+ minimist@^1.2.6:
933
+ version "1.2.8"
934
+ resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"
935
+ integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==
936
+
937
+ mkdirp@^0.5.1:
938
+ version "0.5.6"
939
+ resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6"
940
+ integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==
941
+ dependencies:
942
+ minimist "^1.2.6"
943
+
944
+ ms@2.1.2:
945
+ version "2.1.2"
946
+ resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"
947
+ integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
948
+
949
+ natural-compare@^1.4.0:
950
+ version "1.4.0"
951
+ resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
952
+ integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==
953
+
954
+ npm-conf@^1.1.0:
955
+ version "1.1.3"
956
+ resolved "https://registry.yarnpkg.com/npm-conf/-/npm-conf-1.1.3.tgz#256cc47bd0e218c259c4e9550bf413bc2192aff9"
957
+ integrity sha512-Yic4bZHJOt9RCFbRP3GgpqhScOY4HH3V2P8yBj6CeYq118Qr+BLXqT2JvpJ00mryLESpgOxf5XlFv4ZjXxLScw==
958
+ dependencies:
959
+ config-chain "^1.1.11"
960
+ pify "^3.0.0"
961
+
962
+ number-is-nan@^1.0.0:
963
+ version "1.0.1"
964
+ resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d"
965
+ integrity sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==
966
+
967
+ nw@0.77.0:
968
+ version "0.77.0"
969
+ resolved "https://registry.yarnpkg.com/nw/-/nw-0.77.0.tgz#f6fa0f5e68d65e124ca66b9759b87f1fd8291b89"
970
+ integrity sha512-5M+3Nv3/x1VJbzr6fdR/uXaA2M6H3/UHpxTSidmUYFHF2FP4xTTxwLXbb0/WdX+oNXby8XeqiF1bGDqKi7ti1g==
971
+ dependencies:
972
+ chalk "~1.1.3"
973
+ decompress "^4.2.0"
974
+ download "^5.0.3"
975
+ file-exists "^2.0.0"
976
+ merge "^1.2.0"
977
+ progress "^2.0.3"
978
+ rimraf "^2.2.8"
979
+ semver "^5.1.0"
980
+ yargs "^3.2.1"
981
+
982
+ object-assign@^4.0.1:
983
+ version "4.1.1"
984
+ resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
985
+ integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==
986
+
987
+ once@^1.3.0, once@^1.4.0:
988
+ version "1.4.0"
989
+ resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
990
+ integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==
991
+ dependencies:
992
+ wrappy "1"
993
+
994
+ optionator@^0.9.3:
995
+ version "0.9.4"
996
+ resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.4.tgz#7ea1c1a5d91d764fb282139c88fe11e182a3a734"
997
+ integrity sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==
998
+ dependencies:
999
+ deep-is "^0.1.3"
1000
+ fast-levenshtein "^2.0.6"
1001
+ levn "^0.4.1"
1002
+ prelude-ls "^1.2.1"
1003
+ type-check "^0.4.0"
1004
+ word-wrap "^1.2.5"
1005
+
1006
+ os-locale@^1.4.0:
1007
+ version "1.4.0"
1008
+ resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-1.4.0.tgz#20f9f17ae29ed345e8bde583b13d2009803c14d9"
1009
+ integrity sha512-PRT7ZORmwu2MEFt4/fv3Q+mEfN4zetKxufQrkShY2oGvUms9r8otu5HfdyIFHkYXjO7laNsoVGmM2MANfuTA8g==
1010
+ dependencies:
1011
+ lcid "^1.0.0"
1012
+
1013
+ p-limit@^3.0.2:
1014
+ version "3.1.0"
1015
+ resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b"
1016
+ integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==
1017
+ dependencies:
1018
+ yocto-queue "^0.1.0"
1019
+
1020
+ p-locate@^5.0.0:
1021
+ version "5.0.0"
1022
+ resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834"
1023
+ integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==
1024
+ dependencies:
1025
+ p-limit "^3.0.2"
1026
+
1027
+ parent-module@^1.0.0:
1028
+ version "1.0.1"
1029
+ resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2"
1030
+ integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==
1031
+ dependencies:
1032
+ callsites "^3.0.0"
1033
+
1034
+ path-exists@^4.0.0:
1035
+ version "4.0.0"
1036
+ resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3"
1037
+ integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==
1038
+
1039
+ path-is-absolute@^1.0.0:
1040
+ version "1.0.1"
1041
+ resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
1042
+ integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==
1043
+
1044
+ path-key@^3.1.0:
1045
+ version "3.1.1"
1046
+ resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375"
1047
+ integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==
1048
+
1049
+ pend@~1.2.0:
1050
+ version "1.2.0"
1051
+ resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50"
1052
+ integrity sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==
1053
+
1054
+ pify@^2.3.0:
1055
+ version "2.3.0"
1056
+ resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c"
1057
+ integrity sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==
1058
+
1059
+ pify@^3.0.0:
1060
+ version "3.0.0"
1061
+ resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176"
1062
+ integrity sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==
1063
+
1064
+ pinkie-promise@^2.0.0:
1065
+ version "2.0.1"
1066
+ resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa"
1067
+ integrity sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==
1068
+ dependencies:
1069
+ pinkie "^2.0.0"
1070
+
1071
+ pinkie@^2.0.0:
1072
+ version "2.0.4"
1073
+ resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870"
1074
+ integrity sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==
1075
+
1076
+ prelude-ls@^1.2.1:
1077
+ version "1.2.1"
1078
+ resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
1079
+ integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==
1080
+
1081
+ prepend-http@^1.0.1:
1082
+ version "1.0.4"
1083
+ resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc"
1084
+ integrity sha512-PhmXi5XmoyKw1Un4E+opM2KcsJInDvKyuOumcjjw3waw86ZNjHwVUOOWLc4bCzLdcKNaWBH9e99sbWzDQsVaYg==
1085
+
1086
+ process-nextick-args@~2.0.0:
1087
+ version "2.0.1"
1088
+ resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2"
1089
+ integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==
1090
+
1091
+ progress@^2.0.3:
1092
+ version "2.0.3"
1093
+ resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8"
1094
+ integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==
1095
+
1096
+ proto-list@~1.2.1:
1097
+ version "1.2.4"
1098
+ resolved "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849"
1099
+ integrity sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==
1100
+
1101
+ proxy-from-env@^1.1.0:
1102
+ version "1.1.0"
1103
+ resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2"
1104
+ integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==
1105
+
1106
+ punycode@^2.1.0:
1107
+ version "2.3.1"
1108
+ resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5"
1109
+ integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==
1110
+
1111
+ queue-microtask@^1.2.2:
1112
+ version "1.2.3"
1113
+ resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243"
1114
+ integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==
1115
+
1116
+ readable-stream@^2.3.0, readable-stream@^2.3.5:
1117
+ version "2.3.8"
1118
+ resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.8.tgz#91125e8042bba1b9887f49345f6277027ce8be9b"
1119
+ integrity sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==
1120
+ dependencies:
1121
+ core-util-is "~1.0.0"
1122
+ inherits "~2.0.3"
1123
+ isarray "~1.0.0"
1124
+ process-nextick-args "~2.0.0"
1125
+ safe-buffer "~5.1.1"
1126
+ string_decoder "~1.1.1"
1127
+ util-deprecate "~1.0.1"
1128
+
1129
+ resolve-from@^4.0.0:
1130
+ version "4.0.0"
1131
+ resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6"
1132
+ integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==
1133
+
1134
+ reusify@^1.0.4:
1135
+ version "1.0.4"
1136
+ resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76"
1137
+ integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==
1138
+
1139
+ rimraf@^2.2.8:
1140
+ version "2.7.1"
1141
+ resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec"
1142
+ integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==
1143
+ dependencies:
1144
+ glob "^7.1.3"
1145
+
1146
+ run-parallel@^1.1.9:
1147
+ version "1.2.0"
1148
+ resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee"
1149
+ integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==
1150
+ dependencies:
1151
+ queue-microtask "^1.2.2"
1152
+
1153
+ safe-buffer@^5.0.1, safe-buffer@^5.1.1:
1154
+ version "5.2.1"
1155
+ resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"
1156
+ integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==
1157
+
1158
+ safe-buffer@~5.1.0, safe-buffer@~5.1.1:
1159
+ version "5.1.2"
1160
+ resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
1161
+ integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==
1162
+
1163
+ seek-bzip@^1.0.5:
1164
+ version "1.0.6"
1165
+ resolved "https://registry.yarnpkg.com/seek-bzip/-/seek-bzip-1.0.6.tgz#35c4171f55a680916b52a07859ecf3b5857f21c4"
1166
+ integrity sha512-e1QtP3YL5tWww8uKaOCQ18UxIT2laNBXHjV/S2WYCiK4udiv8lkG89KRIoCjUagnAmCBurjF4zEVX2ByBbnCjQ==
1167
+ dependencies:
1168
+ commander "^2.8.1"
1169
+
1170
+ semver@^5.1.0:
1171
+ version "5.7.2"
1172
+ resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8"
1173
+ integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==
1174
+
1175
+ shebang-command@^2.0.0:
1176
+ version "2.0.0"
1177
+ resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea"
1178
+ integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==
1179
+ dependencies:
1180
+ shebang-regex "^3.0.0"
1181
+
1182
+ shebang-regex@^3.0.0:
1183
+ version "3.0.0"
1184
+ resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172"
1185
+ integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==
1186
+
1187
+ string-width@^1.0.1:
1188
+ version "1.0.2"
1189
+ resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3"
1190
+ integrity sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==
1191
+ dependencies:
1192
+ code-point-at "^1.0.0"
1193
+ is-fullwidth-code-point "^1.0.0"
1194
+ strip-ansi "^3.0.0"
1195
+
1196
+ string_decoder@~1.1.1:
1197
+ version "1.1.1"
1198
+ resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8"
1199
+ integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==
1200
+ dependencies:
1201
+ safe-buffer "~5.1.0"
1202
+
1203
+ strip-ansi@^3.0.0, strip-ansi@^3.0.1:
1204
+ version "3.0.1"
1205
+ resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf"
1206
+ integrity sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==
1207
+ dependencies:
1208
+ ansi-regex "^2.0.0"
1209
+
1210
+ strip-ansi@^6.0.1:
1211
+ version "6.0.1"
1212
+ resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
1213
+ integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
1214
+ dependencies:
1215
+ ansi-regex "^5.0.1"
1216
+
1217
+ strip-dirs@^2.0.0:
1218
+ version "2.1.0"
1219
+ resolved "https://registry.yarnpkg.com/strip-dirs/-/strip-dirs-2.1.0.tgz#4987736264fc344cf20f6c34aca9d13d1d4ed6c5"
1220
+ integrity sha512-JOCxOeKLm2CAS73y/U4ZeZPTkE+gNVCzKt7Eox84Iej1LT/2pTWYpZKJuxwQpvX1LiZb1xokNR7RLfuBAa7T3g==
1221
+ dependencies:
1222
+ is-natural-number "^4.0.1"
1223
+
1224
+ strip-json-comments@^3.1.1:
1225
+ version "3.1.1"
1226
+ resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006"
1227
+ integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==
1228
+
1229
+ strip-outer@^1.0.0:
1230
+ version "1.0.1"
1231
+ resolved "https://registry.yarnpkg.com/strip-outer/-/strip-outer-1.0.1.tgz#b2fd2abf6604b9d1e6013057195df836b8a9d631"
1232
+ integrity sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg==
1233
+ dependencies:
1234
+ escape-string-regexp "^1.0.2"
1235
+
1236
+ supports-color@^2.0.0:
1237
+ version "2.0.0"
1238
+ resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
1239
+ integrity sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==
1240
+
1241
+ supports-color@^7.1.0:
1242
+ version "7.2.0"
1243
+ resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da"
1244
+ integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==
1245
+ dependencies:
1246
+ has-flag "^4.0.0"
1247
+
1248
+ tar-stream@^1.5.2:
1249
+ version "1.6.2"
1250
+ resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-1.6.2.tgz#8ea55dab37972253d9a9af90fdcd559ae435c555"
1251
+ integrity sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==
1252
+ dependencies:
1253
+ bl "^1.0.0"
1254
+ buffer-alloc "^1.2.0"
1255
+ end-of-stream "^1.0.0"
1256
+ fs-constants "^1.0.0"
1257
+ readable-stream "^2.3.0"
1258
+ to-buffer "^1.1.1"
1259
+ xtend "^4.0.0"
1260
+
1261
+ text-table@^0.2.0:
1262
+ version "0.2.0"
1263
+ resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"
1264
+ integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==
1265
+
1266
+ through@^2.3.8:
1267
+ version "2.3.8"
1268
+ resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
1269
+ integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==
1270
+
1271
+ timed-out@^4.0.0:
1272
+ version "4.0.1"
1273
+ resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f"
1274
+ integrity sha512-G7r3AhovYtr5YKOWQkta8RKAPb+J9IsO4uVmzjl8AZwfhs8UcUwTiD6gcJYSgOtzyjvQKrKYn41syHbUWMkafA==
1275
+
1276
+ to-buffer@^1.1.1:
1277
+ version "1.1.1"
1278
+ resolved "https://registry.yarnpkg.com/to-buffer/-/to-buffer-1.1.1.tgz#493bd48f62d7c43fcded313a03dcadb2e1213a80"
1279
+ integrity sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg==
1280
+
1281
+ trim-repeated@^1.0.0:
1282
+ version "1.0.0"
1283
+ resolved "https://registry.yarnpkg.com/trim-repeated/-/trim-repeated-1.0.0.tgz#e3646a2ea4e891312bf7eace6cfb05380bc01c21"
1284
+ integrity sha512-pkonvlKk8/ZuR0D5tLW8ljt5I8kmxp2XKymhepUeOdCEfKpZaktSArkLHZt76OB1ZvO9bssUsDty4SWhLvZpLg==
1285
+ dependencies:
1286
+ escape-string-regexp "^1.0.2"
1287
+
1288
+ tunnel-agent@^0.6.0:
1289
+ version "0.6.0"
1290
+ resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd"
1291
+ integrity sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==
1292
+ dependencies:
1293
+ safe-buffer "^5.0.1"
1294
+
1295
+ type-check@^0.4.0, type-check@~0.4.0:
1296
+ version "0.4.0"
1297
+ resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1"
1298
+ integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==
1299
+ dependencies:
1300
+ prelude-ls "^1.2.1"
1301
+
1302
+ unbzip2-stream@^1.0.9:
1303
+ version "1.4.3"
1304
+ resolved "https://registry.yarnpkg.com/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz#b0da04c4371311df771cdc215e87f2130991ace7"
1305
+ integrity sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==
1306
+ dependencies:
1307
+ buffer "^5.2.1"
1308
+ through "^2.3.8"
1309
+
1310
+ unzip-response@^2.0.1:
1311
+ version "2.0.1"
1312
+ resolved "https://registry.yarnpkg.com/unzip-response/-/unzip-response-2.0.1.tgz#d2f0f737d16b0615e72a6935ed04214572d56f97"
1313
+ integrity sha512-N0XH6lqDtFH84JxptQoZYmloF4nzrQqqrAymNj+/gW60AO2AZgOcf4O/nUXJcYfyQkqvMo9lSupBZmmgvuVXlw==
1314
+
1315
+ uri-js@^4.2.2:
1316
+ version "4.4.1"
1317
+ resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e"
1318
+ integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==
1319
+ dependencies:
1320
+ punycode "^2.1.0"
1321
+
1322
+ url-parse-lax@^1.0.0:
1323
+ version "1.0.0"
1324
+ resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-1.0.0.tgz#7af8f303645e9bd79a272e7a14ac68bc0609da73"
1325
+ integrity sha512-BVA4lR5PIviy2PMseNd2jbFQ+jwSwQGdJejf5ctd1rEXt0Ypd7yanUK9+lYechVlN5VaTJGsu2U/3MDDu6KgBA==
1326
+ dependencies:
1327
+ prepend-http "^1.0.1"
1328
+
1329
+ url-to-options@^1.0.1:
1330
+ version "1.0.1"
1331
+ resolved "https://registry.yarnpkg.com/url-to-options/-/url-to-options-1.0.1.tgz#1505a03a289a48cbd7a434efbaeec5055f5633a9"
1332
+ integrity sha512-0kQLIzG4fdk/G5NONku64rSH/x32NOA39LVQqlK8Le6lvTF6GGRJpqaQFGgU+CLwySIqBSMdwYM0sYcW9f6P4A==
1333
+
1334
+ util-deprecate@~1.0.1:
1335
+ version "1.0.2"
1336
+ resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
1337
+ integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==
1338
+
1339
+ which@^2.0.1:
1340
+ version "2.0.2"
1341
+ resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1"
1342
+ integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==
1343
+ dependencies:
1344
+ isexe "^2.0.0"
1345
+
1346
+ window-size@^0.1.4:
1347
+ version "0.1.4"
1348
+ resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.4.tgz#f8e1aa1ee5a53ec5bf151ffa09742a6ad7697876"
1349
+ integrity sha512-2thx4pB0cV3h+Bw7QmMXcEbdmOzv9t0HFplJH/Lz6yu60hXYy5RT8rUu+wlIreVxWsGN20mo+MHeCSfUpQBwPw==
1350
+
1351
+ word-wrap@^1.2.5:
1352
+ version "1.2.5"
1353
+ resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34"
1354
+ integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==
1355
+
1356
+ wrap-ansi@^2.0.0:
1357
+ version "2.1.0"
1358
+ resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85"
1359
+ integrity sha512-vAaEaDM946gbNpH5pLVNR+vX2ht6n0Bt3GXwVB1AuAqZosOvHNF3P7wDnh8KLkSqgUh0uh77le7Owgoz+Z9XBw==
1360
+ dependencies:
1361
+ string-width "^1.0.1"
1362
+ strip-ansi "^3.0.1"
1363
+
1364
+ wrappy@1:
1365
+ version "1.0.2"
1366
+ resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
1367
+ integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==
1368
+
1369
+ xtend@^4.0.0:
1370
+ version "4.0.2"
1371
+ resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54"
1372
+ integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==
1373
+
1374
+ y18n@^3.2.0:
1375
+ version "3.2.2"
1376
+ resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.2.tgz#85c901bd6470ce71fc4bb723ad209b70f7f28696"
1377
+ integrity sha512-uGZHXkHnhF0XeeAPgnKfPv1bgKAYyVvmNL1xlKsPYZPaIHxGti2hHqvOCQv71XMsLxu1QjergkqogUnms5D3YQ==
1378
+
1379
+ yargs@^3.2.1:
1380
+ version "3.32.0"
1381
+ resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.32.0.tgz#03088e9ebf9e756b69751611d2a5ef591482c995"
1382
+ integrity sha512-ONJZiimStfZzhKamYvR/xvmgW3uEkAUFSP91y2caTEPhzF6uP2JfPiVZcq66b/YR0C3uitxSV7+T1x8p5bkmMg==
1383
+ dependencies:
1384
+ camelcase "^2.0.1"
1385
+ cliui "^3.0.3"
1386
+ decamelize "^1.1.1"
1387
+ os-locale "^1.4.0"
1388
+ string-width "^1.0.1"
1389
+ window-size "^0.1.4"
1390
+ y18n "^3.2.0"
1391
+
1392
+ yauzl@^2.4.2:
1393
+ version "2.10.0"
1394
+ resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.10.0.tgz#c7eb17c93e112cb1086fa6d8e51fb0667b79a5f9"
1395
+ integrity sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==
1396
+ dependencies:
1397
+ buffer-crc32 "~0.2.3"
1398
+ fd-slicer "~1.1.0"
1399
+
1400
+ yocto-queue@^0.1.0:
1401
+ version "0.1.0"
1402
+ resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
1403
+ integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
pgsql/pgAdmin 4/runtime/zlib1.dll ADDED
Binary file (89.6 kB). View file
 
pgsql/pgAdmin 4/web/.editorconfig ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # EditorConfig helps developers define and maintain consistent
2
+ # coding styles between different editors and IDEs
3
+ # editorconfig.org
4
+
5
+ root = true
6
+
7
+ # We recommend you to keep these unchanged
8
+ [*]
9
+ indent_style = space
10
+ end_of_line = lf
11
+ charset = utf-8
12
+ trim_trailing_whitespace = true
13
+ insert_final_newline = true
14
+ max_line_length = 80
15
+
16
+ [*.py]
17
+ indent_size = 4
18
+
19
+ [*.js]
20
+ indent_size = 2
21
+
22
+ [*.css]
23
+ indent_size = 2
24
+
25
+ [*.scss]
26
+ indent_size = 2
27
+
28
+ # Matches the exact file package.json
29
+ [{package.json}]
30
+ indent_size = 2
31
+
32
+ [*.md]
33
+ trim_trailing_whitespace = false
pgsql/pgAdmin 4/web/.eslintignore ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ generated
2
+ node_modules
3
+ vendor
4
+ templates/
5
+ templates\
6
+ ycache
7
+ regression/htmlcov
pgsql/pgAdmin 4/web/.eslintrc.js ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /////////////////////////////////////////////////////////////
2
+ //
3
+ // pgAdmin 4 - PostgreSQL Tools
4
+ //
5
+ // Copyright (C) 2013 - 2024, The pgAdmin Development Team
6
+ // This software is released under the PostgreSQL Licence
7
+ //
8
+ //////////////////////////////////////////////////////////////
9
+
10
+ module.exports = {
11
+ 'env': {
12
+ 'browser': true,
13
+ 'es6': true,
14
+ 'amd': true,
15
+ },
16
+ 'extends': [
17
+ 'eslint:recommended',
18
+ 'plugin:react/recommended',
19
+ /* Uncomment the below line to use linter error for React Hooks.
20
+ By Default commented so that builds are generated successfully.
21
+ Once all the errors will be resolved will uncomment it and commit it.
22
+ */
23
+ // "plugin:react-hooks/recommended",
24
+ ],
25
+ 'parser': '@babel/eslint-parser',
26
+ 'parserOptions': {
27
+ 'requireConfigFile': false,
28
+ 'ecmaVersion': 2018,
29
+ 'ecmaFeatures': {
30
+ 'jsx': true,
31
+ },
32
+ 'sourceType': 'module',
33
+ 'babelOptions': {
34
+ 'plugins': [
35
+ '@babel/plugin-syntax-jsx',
36
+ '@babel/plugin-proposal-class-properties',
37
+ ],
38
+ },
39
+ },
40
+ 'plugins': [
41
+ 'react',
42
+ '@babel',
43
+ 'jest'
44
+ ],
45
+ 'overrides': [
46
+ {
47
+ 'files': ['**/*.{ts,tsx}'],
48
+ 'plugins': [
49
+ '@typescript-eslint',
50
+ ],
51
+ 'extends': ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/eslint-recommended'],
52
+ 'parser': '@typescript-eslint/parser',
53
+ 'rules': {
54
+ '@typescript-eslint/no-explicit-any': ['off'],
55
+ '@typescript-eslint/no-this-alias': ['off'],
56
+ }
57
+ },
58
+ {
59
+ 'files': ['**/*{spec,test}.{js,jsx}', './regression/javascript/**/*.{js}'],
60
+ 'extends': ['eslint:recommended'],
61
+ 'env': {
62
+ 'jest': true
63
+ }
64
+ },
65
+ ],
66
+ 'globals': {
67
+ '_': true,
68
+ 'module': true,
69
+ '__dirname': true,
70
+ 'global': true,
71
+ 'jest': true
72
+ },
73
+ 'rules': {
74
+ 'indent': [
75
+ 'error',
76
+ 2,
77
+ ],
78
+ 'linebreak-style': 0,
79
+ 'quotes': [
80
+ 'error',
81
+ 'single',
82
+ ],
83
+ 'semi': [
84
+ 'error',
85
+ 'always',
86
+ ],
87
+ 'comma-dangle': [
88
+ 'error',
89
+ 'only-multiline',
90
+ ],
91
+ 'no-console': ['error', { allow: ['warn', 'error'] }],
92
+ // We need to exclude below for RegEx case
93
+ 'no-useless-escape': 0,
94
+ 'no-prototype-builtins': 0,
95
+ 'no-global-assign': 0,
96
+ 'no-import-assign': 0,
97
+ },
98
+ 'settings': {
99
+ 'react': {
100
+ 'version': 'detect',
101
+ },
102
+ },
103
+ };
pgsql/pgAdmin 4/web/.yarnrc.yml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ checksumBehavior: update
2
+
3
+ logFilters:
4
+ - code: YN0013
5
+ level: discard
6
+
7
+ nodeLinker: node-modules
pgsql/pgAdmin 4/web/babel.cfg ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ [python: **.py]
2
+ [jinja2: **/templates/**.html]
3
+ [jinja2: **/templates/**.sql]
4
+ [ignore: **/vendor/**.js]
5
+ [javascript: **/static/**.js]
6
+ [javascript: **/static/**.jsx]
7
+ [javascript: **/templates/**/js/**.js]
8
+ [jinja2: **/templates/**.js]
pgsql/pgAdmin 4/web/babel.config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "presets": [["@babel/preset-env", {"modules": "commonjs", "useBuiltIns": "usage", "corejs": 3}], "@babel/preset-react", "@babel/preset-typescript"],
3
+ "plugins": ["@babel/plugin-proposal-class-properties", "@babel/proposal-object-rest-spread", "@babel/plugin-transform-runtime"]
4
+ }
pgsql/pgAdmin 4/web/branding.py ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##########################################################################
2
+ #
3
+ # pgAdmin 4 - PostgreSQL Tools
4
+ #
5
+ # Copyright (C) 2013 - 2024, The pgAdmin Development Team
6
+ # This software is released under the PostgreSQL Licence
7
+ #
8
+ ##########################################################################
9
+
10
+ ##########################################################################
11
+ # Application branding
12
+ ##########################################################################
13
+
14
+ # Name of the application to display in the UI
15
+ APP_NAME = 'pgAdmin 4'
16
+ APP_ICON = 'pg-icon'
17
+
18
+ # To help define the configuration directory and data directory
19
+ APP_SHORT_NAME = 'pgadmin4'
20
+ APP_PATH = 'pgadmin'
21
+ APP_WIN_PATH = "pgAdmin"
22
+
23
+ # Copyright string for display in the app
24
+ APP_COPYRIGHT = 'Copyright (C) 2013 - 2024, The pgAdmin Development Team'
25
+
26
+ # User ID (email address) to use for the default user in desktop mode.
27
+ # The default should be fine here, as it's not exposed in the app.
28
+ APP_DEFAULT_EMAIL = 'pgadmin4@pgadmin.org'
pgsql/pgAdmin 4/web/config.py ADDED
@@ -0,0 +1,932 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+
3
+ ##########################################################################
4
+ #
5
+ # pgAdmin 4 - PostgreSQL Tools
6
+ #
7
+ # Copyright (C) 2013 - 2024, The pgAdmin Development Team
8
+ # This software is released under the PostgreSQL Licence
9
+ #
10
+ # config.py - Core application configuration settings
11
+ #
12
+ ##########################################################################
13
+
14
+ import builtins
15
+ import logging
16
+ import os
17
+ import sys
18
+ from collections import OrderedDict
19
+
20
+ # We need to include the root directory in sys.path to ensure that we can
21
+ # find everything we need when running in the standalone runtime.
22
+ root = os.path.dirname(os.path.realpath(__file__))
23
+ if sys.path[0] != root:
24
+ sys.path.insert(0, root)
25
+
26
+ # The config database connection pool size.
27
+ # Setting this to 0 will remove any limit.
28
+ CONFIG_DATABASE_CONNECTION_POOL_SIZE = 5
29
+ # The number of connections allowed to overflow beyond
30
+ # the connection pool size.
31
+ CONFIG_DATABASE_CONNECTION_MAX_OVERFLOW = 100
32
+
33
+ from pgadmin.utils import env, IS_WIN, fs_short_path
34
+ from version import APP_VERSION, APP_RELEASE, APP_REVISION, APP_SUFFIX, \
35
+ APP_VERSION_INT
36
+ from branding import APP_NAME, APP_ICON, APP_COPYRIGHT, APP_PATH, \
37
+ APP_WIN_PATH, APP_SHORT_NAME, APP_DEFAULT_EMAIL
38
+
39
+ ##########################################################################
40
+ # Misc stuff
41
+ ##########################################################################
42
+
43
+ # Path to the online help.
44
+ HELP_PATH = '../../../docs/en_US/_build/html/'
45
+
46
+ # Languages we support in the UI
47
+ LANGUAGES = {
48
+ 'en': 'English',
49
+ 'zh': 'Chinese (Simplified)',
50
+ 'cs': 'Czech',
51
+ 'fr': 'French',
52
+ 'de': 'German',
53
+ 'id': 'Indonesian',
54
+ 'it': 'Italian',
55
+ 'ja': 'Japanese',
56
+ 'ko': 'Korean',
57
+ 'pl': 'Polish',
58
+ 'pt_BR': 'Portuguese (Brazilian)',
59
+ 'ru': 'Russian',
60
+ 'es': 'Spanish',
61
+ }
62
+
63
+ # DO NOT CHANGE UNLESS YOU KNOW WHAT YOU ARE DOING!
64
+ # List of modules to skip when dynamically loading
65
+ MODULE_BLACKLIST = ['test']
66
+
67
+ # DO NOT CHANGE UNLESS YOU KNOW WHAT YOU ARE DOING!
68
+ # List of treeview browser nodes to skip when dynamically loading
69
+ NODE_BLACKLIST = []
70
+
71
+ ##########################################################################
72
+ # Server settings
73
+ ##########################################################################
74
+
75
+ # The server mode determines whether or not we're running on a web server
76
+ # requiring user authentication, or desktop mode which uses an automatic
77
+ # default login.
78
+ #
79
+ # DO NOT DISABLE SERVER MODE IF RUNNING ON A WEBSERVER!!
80
+ #
81
+ # We only set SERVER_MODE if it's not already set. That's to allow the
82
+ # runtime to force it to False.
83
+ #
84
+ # NOTE: If you change the value of SERVER_MODE or DATA_DIR in an included
85
+ # config file, you may also need to redefine any values below that are
86
+ # derived from it, notably various paths such as LOG_FILE, SQLITE_PATH,
87
+ # SESSION_DB_PATH, STORAGE_DIR, KERBEROS_CCACHE_DIR, and
88
+ # AZURE_CREDENTIAL_CACHE_DIR
89
+
90
+ if (not hasattr(builtins, 'SERVER_MODE')) or builtins.SERVER_MODE is None:
91
+ SERVER_MODE = True
92
+ else:
93
+ SERVER_MODE = builtins.SERVER_MODE
94
+
95
+ # HTTP headers to search for CSRF token when it is not provided in the form.
96
+ # Default is ['X-CSRFToken', 'X-CSRF-Token']
97
+ WTF_CSRF_HEADERS = ['X-pgA-CSRFToken']
98
+
99
+ # User ID (email address) to use for the default user in desktop mode.
100
+ # The default should be fine here, as it's not exposed in the app.
101
+ DESKTOP_USER = APP_DEFAULT_EMAIL
102
+
103
+ # This option allows the user to host the application on a LAN
104
+ # Default hosting is on localhost (DEFAULT_SERVER='localhost').
105
+ # To host pgAdmin4 over LAN set DEFAULT_SERVER='0.0.0.0' (or a specific
106
+ # adaptor address.
107
+ #
108
+ # NOTE: This is NOT recommended for production use, only for debugging
109
+ # or testing. Production installations should be run as a WSGI application
110
+ # behind Apache HTTPD.
111
+ DEFAULT_SERVER = '127.0.0.1'
112
+
113
+ # The default port on which the app server will listen if not set in the
114
+ # environment by the runtime
115
+ DEFAULT_SERVER_PORT = 5050
116
+
117
+ # This param is used to override the default web server information about
118
+ # the web technology and the frameworks being used in the application
119
+ # An attacker could use this information to fingerprint underlying operating
120
+ # system and research known exploits for the specific version of
121
+ # software in use
122
+ WEB_SERVER = 'Python'
123
+
124
+ # Enable X-Frame-Option protection.
125
+ # Set to one of "SAMEORIGIN", "ALLOW-FROM origin" or "" to disable.
126
+ # Note that "DENY" is NOT supported (and will be silently ignored).
127
+ # See https://tools.ietf.org/html/rfc7034 for more info.
128
+ X_FRAME_OPTIONS = "SAMEORIGIN"
129
+
130
+ # The Content-Security-Policy header allows you to restrict how resources
131
+ # such as JavaScript, CSS, or pretty much anything that the browser loads.
132
+ # see https://content-security-policy.com/#source_list for more info
133
+ # e.g. "default-src https: data: 'unsafe-inline' 'unsafe-eval';"
134
+ CONTENT_SECURITY_POLICY = "default-src ws: http: data: blob: 'unsafe-inline'" \
135
+ " 'unsafe-eval';"
136
+
137
+ # STRICT_TRANSPORT_SECURITY_ENABLED when set to True will set the
138
+ # Strict-Transport-Security header
139
+ STRICT_TRANSPORT_SECURITY_ENABLED = False
140
+
141
+ # The Strict-Transport-Security header tells the browser to convert all HTTP
142
+ # requests to HTTPS, preventing man-in-the-middle (MITM) attacks.
143
+ # e.g. 'max-age=31536000; includeSubDomains'
144
+ STRICT_TRANSPORT_SECURITY = "max-age=31536000; includeSubDomains"
145
+
146
+ # The X-Content-Type-Options header forces the browser to honor the response
147
+ # content type instead of trying to detect it, which can be abused to
148
+ # generate a cross-site scripting (XSS) attack.
149
+ # e.g. nosniff
150
+ X_CONTENT_TYPE_OPTIONS = "nosniff"
151
+
152
+ # The browser will try to prevent reflected XSS attacks by not loading the
153
+ # page if the request contains something that looks like JavaScript and the
154
+ # response contains the same data. e.g. '1; mode=block'
155
+ X_XSS_PROTECTION = "1; mode=block"
156
+
157
+ # This param is used to validate ALLOWED_HOSTS for the application
158
+ # This will be used to avoid Host Header Injection attack
159
+ # ALLOWED_HOSTS = ['225.0.0.0/8', '226.0.0.0/7', '228.0.0.0/6']
160
+ # ALLOWED_HOSTS = ['127.0.0.1', '192.168.0.1']
161
+ # if ALLOWED_HOSTS= [] then it will accept all ips (and application will be
162
+ # vulnerable to Host Header Injection attack)
163
+ ALLOWED_HOSTS = []
164
+
165
+ # Hashing algorithm used for password storage
166
+ SECURITY_PASSWORD_HASH = 'pbkdf2_sha512'
167
+
168
+ # Minimum password length
169
+ PASSWORD_LENGTH_MIN = 6
170
+
171
+ # Reverse Proxy parameters
172
+ # You must tell the middleware how many proxies set each header
173
+ # so it knows what values to trust.
174
+ # See https://tinyurl.com/yyg7r9av
175
+ # for more information.
176
+
177
+ # Number of values to trust for X-Forwarded-For
178
+ PROXY_X_FOR_COUNT = 1
179
+
180
+ # Number of values to trust for X-Forwarded-Proto.
181
+ PROXY_X_PROTO_COUNT = 1
182
+
183
+ # Number of values to trust for X-Forwarded-Host.
184
+ PROXY_X_HOST_COUNT = 0
185
+
186
+ # Number of values to trust for X-Forwarded-Port.
187
+ PROXY_X_PORT_COUNT = 1
188
+
189
+ # Number of values to trust for X-Forwarded-Prefix.
190
+ PROXY_X_PREFIX_COUNT = 0
191
+
192
+ # NOTE: CSRF_SESSION_KEY, SECRET_KEY and SECURITY_PASSWORD_SALT are no
193
+ # longer part of the main configuration, but are stored in the
194
+ # configuration databases 'keys' table and are auto-generated.
195
+
196
+ # COMPRESSION
197
+ COMPRESS_MIMETYPES = [
198
+ 'text/html', 'text/css', 'text/xml', 'text/javascript',
199
+ 'application/json', 'application/javascript'
200
+ ]
201
+ COMPRESS_LEVEL = 9
202
+ COMPRESS_MIN_SIZE = 500
203
+
204
+ # Set the cache control max age for static files in flask to 1 year
205
+ SEND_FILE_MAX_AGE_DEFAULT = 31556952
206
+
207
+ # This will be added to static urls as url parameter with value as
208
+ # APP_VERSION_INT for cache busting on version upgrade. If the value is set as
209
+ # None or empty string then it will not be added.
210
+ # eg - http:localhost:5050/pgadmin.css?intver=3.13
211
+ APP_VERSION_PARAM = 'ver'
212
+
213
+ # Add the internal version param to below extensions only
214
+ APP_VERSION_EXTN = ('.css', '.js', '.html', '.svg', '.png', '.gif', '.ico')
215
+
216
+ # Data directory for storage of config settings etc. This shouldn't normally
217
+ # need to be changed - it's here as various other settings depend on it.
218
+ # On Windows, we always store data in %APPDATA%\$(APP_WIN_PATH). On other
219
+ # platforms, if we're in server mode we use /var/lib/$(APP_PATH),
220
+ # otherwise ~/.$(APP_PATH)
221
+ if IS_WIN:
222
+ # Use the short path on windows
223
+ DATA_DIR = os.path.realpath(
224
+ os.path.join(fs_short_path(env('APPDATA')), APP_WIN_PATH)
225
+ )
226
+ else:
227
+ if SERVER_MODE:
228
+ DATA_DIR = os.path.join('/var/lib/', APP_PATH)
229
+ else:
230
+ DATA_DIR = os.path.realpath(
231
+ os.path.expanduser('~/' + '.' + APP_PATH + '/')
232
+ )
233
+
234
+ # An optional login banner to show security warnings/disclaimers etc. at
235
+ # login and password recovery etc. HTML may be included for basic formatting,
236
+ # For example:
237
+ # LOGIN_BANNER = "<h4>Authorised Users Only!</h4>" \
238
+ # "Unauthorised use is strictly forbidden."
239
+ LOGIN_BANNER = ""
240
+
241
+ ##########################################################################
242
+ # Log settings
243
+ ##########################################################################
244
+
245
+ # Debug mode?
246
+ DEBUG = False
247
+
248
+ # Application log level - one of:
249
+ # CRITICAL 50
250
+ # ERROR 40
251
+ # WARNING 30
252
+ # SQL 25
253
+ # INFO 20
254
+ # DEBUG 10
255
+ # NOTSET 0
256
+ CONSOLE_LOG_LEVEL = logging.WARNING
257
+ FILE_LOG_LEVEL = logging.WARNING
258
+
259
+ # Log format.
260
+ JSON_LOGGER = False
261
+ CONSOLE_LOG_FORMAT_JSON = OrderedDict([
262
+ ("time", "asctime"),
263
+ ("message", "message"),
264
+ ("level", "levelname")
265
+ ])
266
+
267
+ FILE_LOG_FORMAT_JSON = OrderedDict([
268
+ ("time", "asctime"),
269
+ ("message", "message"),
270
+ ("level", "levelname")
271
+ ])
272
+
273
+
274
+ CONSOLE_LOG_FORMAT = '%(asctime)s: %(levelname)s\t%(name)s:\t%(message)s'
275
+ FILE_LOG_FORMAT = '%(asctime)s: %(levelname)s\t%(name)s:\t%(message)s'
276
+
277
+ # Log file name. This goes in the data directory, except on non-Windows
278
+ # platforms in server mode.
279
+ if SERVER_MODE and not IS_WIN:
280
+ LOG_FILE = os.path.join('/var/log', APP_PATH, APP_SHORT_NAME + '.log')
281
+ else:
282
+ LOG_FILE = os.path.join(DATA_DIR, APP_SHORT_NAME + '.log')
283
+
284
+ # Log rotation setting
285
+ # Log file will be rotated considering values for LOG_ROTATION_SIZE
286
+ # & LOG_ROTATION_AGE. Rotated file will be named in format
287
+ # - LOG_FILE.Y-m-d_H-M-S
288
+ LOG_ROTATION_SIZE = 10 # In MBs
289
+ LOG_ROTATION_AGE = 1440 # In minutes
290
+ LOG_ROTATION_MAX_LOG_FILES = 90 # Maximum number of backups to retain
291
+ ##########################################################################
292
+ # Server Connection Driver Settings
293
+ ##########################################################################
294
+
295
+ # The default driver used for making connection with PostgreSQL
296
+ PG_DEFAULT_DRIVER = 'psycopg3'
297
+
298
+ # Maximum allowed idle time in minutes before which releasing the connection
299
+ # for the particular session. (in minutes)
300
+ MAX_SESSION_IDLE_TIME = 60
301
+
302
+ ##########################################################################
303
+ # External Database Settings
304
+ #
305
+ # All configuration settings are stored by default in the SQLite database.
306
+ # In order to use external databases like PostgreSQL sets the value of
307
+ # CONFIG_DATABASE_URI like below:
308
+ # dialect+driver://username:password@host:port/database
309
+ #
310
+ # PostgreSQL:
311
+ # postgresql://username:password@host:port/database
312
+ # Specify Schema Name
313
+ # postgresql://username:password@host:port/database?options=-csearch_path=pgadmin
314
+ # Using PGPASS file
315
+ # postgresql://username@host:port?options=-csearch_path=pgadmin
316
+ ##########################################################################
317
+ CONFIG_DATABASE_URI = ''
318
+
319
+ ##########################################################################
320
+ # User account and settings storage
321
+ ##########################################################################
322
+
323
+ # The default path to the SQLite database used to store user accounts and
324
+ # settings. This default places the file in the same directory as this
325
+ # config file, but generates an absolute path for use througout the app.
326
+ SQLITE_PATH = env('SQLITE_PATH') or \
327
+ os.path.join(DATA_DIR, APP_SHORT_NAME + '.db')
328
+
329
+ # SQLITE_TIMEOUT will define how long to wait before throwing the error -
330
+ # OperationError due to database lock. On slower system, you may need to change
331
+ # this to some higher value.
332
+ # (Default: 500 milliseconds)
333
+ SQLITE_TIMEOUT = 500
334
+
335
+ # Allow database connection passwords to be saved if the user chooses.
336
+ # Set to False to disable password saving.
337
+ ALLOW_SAVE_PASSWORD = True
338
+
339
+ # Maximum number of history queries stored per user/server/database
340
+ MAX_QUERY_HIST_STORED = 20
341
+
342
+ ##########################################################################
343
+ # Server-side session storage path
344
+ #
345
+ # SESSION_DB_PATH (Default: $HOME/.pgadmin4/sessions)
346
+ ##########################################################################
347
+ #
348
+ # We use SQLite for server-side session storage. There will be one
349
+ # SQLite database object per session created.
350
+ #
351
+ # Specify the path used to store your session objects.
352
+ #
353
+ # If the specified directory does not exist, the setup script will create
354
+ # it with permission mode 700 to keep the session database secure.
355
+ #
356
+ # On certain systems, you can use shared memory (tmpfs) for maximum
357
+ # scalability, for example, on Ubuntu:
358
+ #
359
+ # SESSION_DB_PATH = '/run/shm/pgAdmin4_session'
360
+ #
361
+ ##########################################################################
362
+ SESSION_DB_PATH = os.path.join(DATA_DIR, 'sessions')
363
+
364
+ SESSION_COOKIE_NAME = 'pga4_session'
365
+
366
+ ##########################################################################
367
+ # Mail server settings
368
+ ##########################################################################
369
+
370
+ # These settings are used when running in web server mode for confirming
371
+ # and resetting passwords etc.
372
+ # See: http://pythonhosted.org/Flask-Mail/ for more info
373
+ MAIL_SERVER = 'localhost'
374
+ MAIL_PORT = 25
375
+ MAIL_USE_SSL = False
376
+ MAIL_USE_TLS = False
377
+ MAIL_USERNAME = ''
378
+ MAIL_PASSWORD = ''
379
+ MAIL_DEBUG = False
380
+
381
+ # Flask-Security overrides Flask-Mail's MAIL_DEFAULT_SENDER setting, so
382
+ # that should be set as such:
383
+ SECURITY_EMAIL_SENDER = 'no-reply@localhost'
384
+
385
+ ##########################################################################
386
+ # Mail content settings
387
+ ##########################################################################
388
+
389
+ # These settings define the content of password reset emails
390
+ SECURITY_EMAIL_SUBJECT_PASSWORD_RESET = "Password reset instructions for %s" \
391
+ % APP_NAME
392
+ SECURITY_EMAIL_SUBJECT_PASSWORD_NOTICE = "Your %s password has been reset" \
393
+ % APP_NAME
394
+ SECURITY_EMAIL_SUBJECT_PASSWORD_CHANGE_NOTICE = \
395
+ "Your password for %s has been changed" % APP_NAME
396
+
397
+ ##########################################################################
398
+ # Email address validation
399
+ ##########################################################################
400
+ CHECK_EMAIL_DELIVERABILITY = False
401
+ SECURITY_EMAIL_VALIDATOR_ARGS = \
402
+ {"check_deliverability": CHECK_EMAIL_DELIVERABILITY}
403
+
404
+ ##########################################################################
405
+ # Upgrade checks
406
+ ##########################################################################
407
+
408
+ # Check for new versions of the application?
409
+ UPGRADE_CHECK_ENABLED = True
410
+
411
+ # Where should we get the data from?
412
+ UPGRADE_CHECK_URL = 'https://www.pgadmin.org/versions.json'
413
+
414
+ # What key should we look at in the upgrade data file?
415
+ UPGRADE_CHECK_KEY = 'pgadmin4'
416
+
417
+ # Which CA file should we use?
418
+ # Default to cacert.pem in the same directory as config.py et al.
419
+ CA_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)),
420
+ "cacert.pem")
421
+
422
+ # Check if the detected browser is supported
423
+ CHECK_SUPPORTED_BROWSER = True
424
+
425
+ ##########################################################################
426
+ # Storage Manager storage url config settings
427
+ # If user sets STORAGE_DIR to empty it will show all volumes if platform
428
+ # is Windows, '/' if it is Linux, Mac or any other unix type system.
429
+
430
+ # For example:
431
+ # 1. STORAGE_DIR = get_drive("C") or get_drive() # return C:/ by default
432
+ # where C can be any drive character such as "D", "E", "G" etc
433
+ # 2. Set path manually like
434
+ # STORAGE_DIR = "/path/to/directory/"
435
+ ##########################################################################
436
+ STORAGE_DIR = os.path.join(DATA_DIR, 'storage')
437
+
438
+ ##########################################################################
439
+ # Default locations for binary utilities (pg_dump, pg_restore etc)
440
+ #
441
+ # These are intentionally left empty in the main config file, but are
442
+ # expected to be overridden by packagers in config_distro.py.
443
+ #
444
+ # A default location can be specified for each database driver ID, in
445
+ # a dictionary. Either an absolute or relative path can be specified.
446
+ #
447
+ # Version-specific defaults can also be specified, which will take priority
448
+ # over un-versioned paths.
449
+ #
450
+ # In cases where it may be difficult to know what the working directory
451
+ # is, "$DIR" can be specified. This will be replaced with the path to the
452
+ # top-level pgAdmin4.py file. For example, on macOS we might use:
453
+ #
454
+ # $DIR/../../SharedSupport
455
+ #
456
+ ##########################################################################
457
+ DEFAULT_BINARY_PATHS = {
458
+ "pg": "",
459
+ "pg-12": "",
460
+ "pg-13": "",
461
+ "pg-14": "",
462
+ "pg-15": "",
463
+ "pg-16": "",
464
+ "ppas": "",
465
+ "ppas-12": "",
466
+ "ppas-13": "",
467
+ "ppas-14": "",
468
+ "ppas-15": "",
469
+ "ppas-16": ""
470
+ }
471
+
472
+ ##########################################################################
473
+
474
+ # Admin can specify fixed binary paths to prevent users from changing.
475
+ # It will take precedence over DEFAULT_BINARY_PATHS.
476
+
477
+ FIXED_BINARY_PATHS = {
478
+ "pg": "",
479
+ "pg-12": "",
480
+ "pg-13": "",
481
+ "pg-14": "",
482
+ "pg-15": "",
483
+ "pg-16": "",
484
+ "ppas": "",
485
+ "ppas-12": "",
486
+ "ppas-13": "",
487
+ "ppas-14": "",
488
+ "ppas-15": "",
489
+ "ppas-16": ""
490
+ }
491
+
492
+ ##########################################################################
493
+ # Test settings - used primarily by the regression suite, not for users
494
+ ##########################################################################
495
+
496
+ # The default path for SQLite database for testing
497
+ TEST_SQLITE_PATH = os.path.join(DATA_DIR, 'test_pgadmin4.db')
498
+
499
+ ##########################################################################
500
+ # Allows flask application to response to the each request asynchronously
501
+ ##########################################################################
502
+ THREADED_MODE = True
503
+
504
+ ##########################################################################
505
+ # Do not allow SQLALCHEMY to track modification as it is going to be
506
+ # deprecated in future
507
+ ##########################################################################
508
+ SQLALCHEMY_TRACK_MODIFICATIONS = False
509
+
510
+ ##########################################################################
511
+ # Number of records to fetch in one batch in query tool when query result
512
+ # set is large.
513
+ ##########################################################################
514
+ ON_DEMAND_RECORD_COUNT = 1000
515
+
516
+ ##########################################################################
517
+ # Allow users to display Gravatar image for their username in Server mode
518
+ ##########################################################################
519
+ SHOW_GRAVATAR_IMAGE = True
520
+
521
+ ##########################################################################
522
+ # Set cookie path and options
523
+ ##########################################################################
524
+ COOKIE_DEFAULT_PATH = '/'
525
+ COOKIE_DEFAULT_DOMAIN = None
526
+ SESSION_COOKIE_DOMAIN = None
527
+ SESSION_COOKIE_SAMESITE = 'Lax'
528
+ SESSION_COOKIE_SECURE = False
529
+ SESSION_COOKIE_HTTPONLY = True
530
+
531
+ #########################################################################
532
+ # Skip storing session in files and cache for specific paths
533
+ #########################################################################
534
+ SESSION_SKIP_PATHS = [
535
+ '/misc/ping'
536
+ ]
537
+
538
+ ##########################################################################
539
+ # Session expiration support
540
+ ##########################################################################
541
+ # SESSION_EXPIRATION_TIME is the interval in Days. Session will be
542
+ # expire after the specified number of *days*.
543
+ SESSION_EXPIRATION_TIME = 1
544
+
545
+ # Make SESSION_EXPIRATION_TIME to 1 week in DESKTOP mode
546
+ if not SERVER_MODE:
547
+ SESSION_EXPIRATION_TIME = 7
548
+
549
+ # CHECK_SESSION_FILES_INTERVAL is interval in Hours. Application will check
550
+ # the session files for cleanup after specified number of *hours*.
551
+ CHECK_SESSION_FILES_INTERVAL = 24
552
+
553
+ # USER_INACTIVITY_TIMEOUT is interval in Seconds. If the pgAdmin screen is left
554
+ # unattended for <USER_INACTIVITY_TIMEOUT> seconds then the user will
555
+ # be logged out. When set to 0, the timeout will be disabled.
556
+ # If pgAdmin doesn't detect any activity in the time specified (in seconds),
557
+ # the user will be forcibly logged out from pgAdmin. Set to zero to disable
558
+ # the timeout.
559
+ # Note: This is applicable only for SERVER_MODE=True.
560
+ USER_INACTIVITY_TIMEOUT = 0
561
+
562
+ # OVERRIDE_USER_INACTIVITY_TIMEOUT when set to True will override
563
+ # USER_INACTIVITY_TIMEOUT when long running queries in the Query Tool
564
+ # or Debugger are running. When the queries complete, the inactivity timer
565
+ # will restart in this case. If set to False, user inactivity may cause
566
+ # transactions or in-process debugging sessions to be aborted.
567
+ OVERRIDE_USER_INACTIVITY_TIMEOUT = True
568
+
569
+ ##########################################################################
570
+ # SSH Tunneling supports only for Python 2.7 and 3.4+
571
+ ##########################################################################
572
+ SUPPORT_SSH_TUNNEL = True
573
+ # Allow SSH Tunnel passwords to be saved if the user chooses.
574
+ # Set to False to disable password saving.
575
+ ALLOW_SAVE_TUNNEL_PASSWORD = False
576
+
577
+ ##########################################################################
578
+ # Master password is used to encrypt/decrypt saved server passwords
579
+ # Applicable for desktop mode only
580
+ ##########################################################################
581
+ MASTER_PASSWORD_REQUIRED = True
582
+
583
+ ##########################################################################
584
+
585
+ # pgAdmin encrypts the database connection and ssh tunnel password using a
586
+ # master password or pgAdmin login password (for other authentication sources)
587
+ # before storing it in the pgAdmin configuration database.
588
+ #
589
+ # Below setting is used to allow the user to specify the path to a script
590
+ # or program that will return an encryption key which will be used to
591
+ # encrypt the passwords. This setting is used only in server mode when
592
+ # auth sources are oauth, Kerberos, and webserver.
593
+ #
594
+ # You can pass the current username as an argument to the external script
595
+ # by specifying %u in config value.
596
+ # E.g. - MASTER_PASSWORD_HOOK = '<PATH>/passwdgen_script.sh %u'
597
+ ##########################################################################
598
+ MASTER_PASSWORD_HOOK = None
599
+
600
+ ##########################################################################
601
+
602
+ # Allows pgAdmin4 to create session cookies based on IP address, so even
603
+ # if a cookie is stolen, the attacker will not be able to connect to the
604
+ # server using that stolen cookie.
605
+ # Note: This can cause problems when the server is deployed in dynamic IP
606
+ # address hosting environments, such as Kubernetes or behind load
607
+ # balancers. In such cases, this option should be set to False.
608
+ ##########################################################################
609
+ ENHANCED_COOKIE_PROTECTION = True
610
+
611
+ ##########################################################################
612
+ # External Authentication Sources
613
+ ##########################################################################
614
+
615
+ # Default setting is internal
616
+ # External Supported Sources: ldap, kerberos, oauth2
617
+ # Multiple authentication can be achieved by setting this parameter to
618
+ # ['ldap', 'internal'] or ['oauth2', 'internal'] or
619
+ # ['webserver', 'internal'] etc.
620
+ # pgAdmin will authenticate the user with ldap/oauth2 whatever first in the
621
+ # list, in case of failure the second authentication option will be considered.
622
+
623
+ AUTHENTICATION_SOURCES = ['internal']
624
+
625
+ ##########################################################################
626
+ # MAX_LOGIN_ATTEMPTS which sets the number of failed login attempts that
627
+ # are allowed. If this value is exceeded the account is locked and can be
628
+ # reset by an administrator. By setting the variable to the value zero
629
+ # this feature is deactivated.
630
+ ##########################################################################
631
+ MAX_LOGIN_ATTEMPTS = 3
632
+
633
+ ##########################################################################
634
+ # Only consider password to check the failed login attempts, email is
635
+ # excluded from this check
636
+ LOGIN_ATTEMPT_FIELDS = ['password']
637
+ ##########################################################################
638
+ # LDAP Configuration
639
+ ##########################################################################
640
+
641
+ # After ldap authentication, user will be added into the SQLite database
642
+ # automatically, if set to True.
643
+ # Set it to False, if user should not be added automatically,
644
+ # in this case Admin has to add the user manually in the SQLite database.
645
+ LDAP_AUTO_CREATE_USER = True
646
+
647
+ # Connection timeout
648
+ LDAP_CONNECTION_TIMEOUT = 10
649
+
650
+ # Server connection details (REQUIRED)
651
+ # example: ldap://<ip-address>:<port> or ldap://<hostname>:<port>
652
+ LDAP_SERVER_URI = 'ldap://<ip-address>:<port>'
653
+
654
+ # The LDAP attribute containing user names. In OpenLDAP, this may be 'uid'
655
+ # whilst in AD, 'sAMAccountName' might be appropriate. (REQUIRED)
656
+ LDAP_USERNAME_ATTRIBUTE = '<User-id>'
657
+
658
+ ##########################################################################
659
+ # 3 ways to configure LDAP as follows (Choose anyone):
660
+
661
+ # 1. Dedicated User binding
662
+
663
+ # LDAP Bind User DN Example: cn=username,dc=example,dc=com
664
+ # Set this parameter to allow the connection to bind using a dedicated user.
665
+ # After the connection is made, the pgadmin login user will be further
666
+ # authenticated by the username and password provided
667
+ # at the login screen.
668
+ LDAP_BIND_USER = None
669
+
670
+ # LDAP Bind User Password
671
+ LDAP_BIND_PASSWORD = None
672
+
673
+ # OR ####################
674
+ # 2. Anonymous Binding
675
+
676
+ # Set this parameter to allow the anonymous bind.
677
+ # After the connection is made, the pgadmin login user will be further
678
+ # authenticated by the username and password provided
679
+
680
+ LDAP_ANONYMOUS_BIND = False
681
+
682
+ # OR ####################
683
+ # 3. Bind as pgAdmin user
684
+
685
+ # BaseDN (REQUIRED)
686
+ # AD example:
687
+ # (&(objectClass=user)(memberof=CN=MYGROUP,CN=Users,dc=example,dc=com))
688
+ # OpenLDAP example: CN=Users,dc=example,dc=com
689
+ LDAP_BASE_DN = '<Base-DN>'
690
+
691
+ # Configure the bind format string
692
+ # Default: LDAP_BIND_FORMAT="
693
+ # {LDAP_USERNAME_ATTRIBUTE}={LDAP_USERNAME},{LDAP_BASE_DN}"
694
+ # The current available options are:
695
+ # LDAP_USERNAME_ATTRIBUTE, LDAP_USERNAME, LDAP_BASE_DN
696
+ # Example: LDAP_BIND_FORMAT="myldapuser@sales.example.com"
697
+ # LDAP_BIND_FORMAT="NET\\myldapuser"
698
+ LDAP_BIND_FORMAT = '{LDAP_USERNAME_ATTRIBUTE}={LDAP_USERNAME},{LDAP_BASE_DN}'
699
+
700
+ ##########################################################################
701
+
702
+ # Search ldap for further authentication (REQUIRED)
703
+ # It can be optional while bind as pgAdmin user
704
+ LDAP_SEARCH_BASE_DN = '<Search-Base-DN>'
705
+
706
+ # The LDAP attribute indicates whether the DN (Distinguished Names)
707
+ # are case sensitive or not
708
+ LDAP_DN_CASE_SENSITIVE = False
709
+
710
+ # Filter string for the user search.
711
+ # For OpenLDAP, '(cn=*)' may well be enough.
712
+ # For AD, you might use '(objectClass=user)' (REQUIRED)
713
+ LDAP_SEARCH_FILTER = '(objectclass=*)'
714
+
715
+ # Search scope for users (one of BASE, LEVEL or SUBTREE)
716
+ LDAP_SEARCH_SCOPE = 'SUBTREE'
717
+
718
+ # Use TLS? If the URI scheme is ldaps://, this is ignored.
719
+ LDAP_USE_STARTTLS = False
720
+
721
+ # TLS/SSL certificates. Specify if required, otherwise leave empty
722
+ LDAP_CA_CERT_FILE = ''
723
+ LDAP_CERT_FILE = ''
724
+ LDAP_KEY_FILE = ''
725
+
726
+ ##########################################################################
727
+
728
+ # Some flaky LDAP servers returns malformed schema. If True, no exception
729
+ # will be raised and schema is thrown away but authentication will be done.
730
+ # This parameter should remain False, as recommended.
731
+ LDAP_IGNORE_MALFORMED_SCHEMA = False
732
+
733
+ ##########################################################################
734
+ # Kerberos Configuration
735
+ ##########################################################################
736
+
737
+ KRB_APP_HOST_NAME = DEFAULT_SERVER
738
+
739
+ # If the default_keytab_name is not set in krb5.conf or
740
+ # the KRB_KTNAME environment variable is not set then, explicitly set
741
+ # the Keytab file
742
+
743
+ KRB_KTNAME = '<KRB5_KEYTAB_FILE>'
744
+
745
+ # After kerberos authentication, user will be added into the SQLite database
746
+ # automatically, if set to True.
747
+ # Set it to False, if user should not be added automatically,
748
+ # in this case Admin has to add the user manually in the SQLite database.
749
+
750
+ KRB_AUTO_CREATE_USER = True
751
+
752
+ KERBEROS_CCACHE_DIR = os.path.join(DATA_DIR, 'krbccache')
753
+
754
+ #############################################################################
755
+ # Create local directory to store azure credential cache
756
+ #############################################################################
757
+
758
+ AZURE_CREDENTIAL_CACHE_DIR = os.path.join(DATA_DIR, 'azurecredentialcache')
759
+
760
+ ##########################################################################
761
+ # OAuth2 Configuration
762
+ ##########################################################################
763
+
764
+ # Multiple OAUTH2 providers can be added in the list like [{...},{...}]
765
+ # All parameters are required
766
+
767
+ OAUTH2_CONFIG = [
768
+ {
769
+ # The name of the of the oauth provider, ex: github, google
770
+ 'OAUTH2_NAME': None,
771
+ # The display name, ex: Google
772
+ 'OAUTH2_DISPLAY_NAME': '<Oauth2 Display Name>',
773
+ # Oauth client id
774
+ 'OAUTH2_CLIENT_ID': None,
775
+ # Oauth secret
776
+ 'OAUTH2_CLIENT_SECRET': None,
777
+ # URL to generate a token,
778
+ # Ex: https://github.com/login/oauth/access_token
779
+ 'OAUTH2_TOKEN_URL': None,
780
+ # URL is used for authentication,
781
+ # Ex: https://github.com/login/oauth/authorize
782
+ 'OAUTH2_AUTHORIZATION_URL': None,
783
+ # server metadata url might optional for your provider
784
+ 'OAUTH2_SERVER_METADATA_URL': None,
785
+ # Oauth base url, ex: https://api.github.com/
786
+ 'OAUTH2_API_BASE_URL': None,
787
+ # Name of the Endpoint, ex: user
788
+ 'OAUTH2_USERINFO_ENDPOINT': None,
789
+ # Oauth scope, ex: 'openid email profile'
790
+ # Note that an 'email' claim is required in the resulting profile
791
+ 'OAUTH2_SCOPE': None,
792
+ # The claim which is used for the username. If the value is empty the
793
+ # email is used as username, but if a value is provided,
794
+ # the claim has to exist.
795
+ 'OAUTH2_USERNAME_CLAIM': None,
796
+ # Font-awesome icon, ex: fa-github
797
+ 'OAUTH2_ICON': None,
798
+ # UI button colour, ex: #0000ff
799
+ 'OAUTH2_BUTTON_COLOR': None,
800
+ # The additional claims to check on user ID Token or Userinfo response.
801
+ # This is useful to provide additional authorization checks
802
+ # before allowing access.
803
+ # Example for GitLab: allowing all maintainers teams, and a specific
804
+ # developers group to access pgadmin:
805
+ # 'OAUTH2_ADDITIONAL_CLAIMS': {
806
+ # 'https://gitlab.org/claims/groups/maintainer': [
807
+ # 'kuberheads/applications',
808
+ # 'kuberheads/dba',
809
+ # 'kuberheads/support'
810
+ # ],
811
+ # 'https://gitlab.org/claims/groups/developer': [
812
+ # 'kuberheads/applications/team01'
813
+ # ],
814
+ # }
815
+ # Example for AzureAD:
816
+ # 'OAUTH2_ADDITIONAL_CLAIMS': {
817
+ # 'groups': ["0760b6cf-170e-4a14-91b3-4b78e0739963"],
818
+ # 'wids': ["cf1c38e5-3621-4004-a7cb-879624dced7c"],
819
+ # }
820
+ 'OAUTH2_ADDITIONAL_CLAIMS': None,
821
+ # Set this variable to False to disable SSL certificate verification
822
+ # for OAuth2 provider.
823
+ # This may need to set False, in case of self-signed certificates.
824
+ # Ref: https://github.com/psf/requests/issues/6071
825
+ 'OAUTH2_SSL_CERT_VERIFICATION': True,
826
+ # set this variable to invalidate the session of the oauth2 provider
827
+ # Example for keycloak:
828
+ # 'OAUTH2_LOGOUT_URL':
829
+ # 'https://example.com/realms/master/protocol/openid-connect/logout?post_logout_redirect_uri={redirect_uri}&id_token_hint={id_token}'
830
+ 'OAUTH2_LOGOUT_URL': None
831
+ }
832
+ ]
833
+
834
+ # After Oauth authentication, user will be added into the SQLite database
835
+ # automatically, if set to True.
836
+ # Set it to False, if user should not be added automatically,
837
+ # in this case Admin has to add the user manually in the SQLite database.
838
+
839
+ OAUTH2_AUTO_CREATE_USER = True
840
+
841
+ ##########################################################################
842
+ # Webserver Configuration
843
+ ##########################################################################
844
+
845
+ WEBSERVER_AUTO_CREATE_USER = True
846
+
847
+ # REMOTE_USER variable will be used to check the environment variable
848
+ # is set or not first, if not available,
849
+ # request header will be checked for the same.
850
+ # Possible values: REMOTE_USER, HTTP_X_FORWARDED_USER, X-Forwarded-User
851
+
852
+ WEBSERVER_REMOTE_USER = 'REMOTE_USER'
853
+
854
+ ##########################################################################
855
+ # Two-factor Authentication Configuration
856
+ ##########################################################################
857
+
858
+ # Set it to True, to enable the two-factor authentication
859
+ MFA_ENABLED = True
860
+
861
+ # Set it to True, to ask the users to register forcefully for the
862
+ # two-authentication methods on logged-in.
863
+ MFA_FORCE_REGISTRATION = False
864
+
865
+ # pgAdmin supports Two-factor authentication by either sending an one-time code
866
+ # to an email, or using the TOTP based application like Google Authenticator.
867
+ MFA_SUPPORTED_METHODS = ["email", "authenticator"]
868
+
869
+ # NOTE: Please set the 'Mail server settings' to use 'email' as two-factor
870
+ # authentication method.
871
+
872
+ # Subject for the email verification code
873
+ # Default: <APP_NAME> - Verification Code
874
+ # e.g. pgAdmin 4 - Verification Code
875
+ MFA_EMAIL_SUBJECT = None
876
+
877
+ ##########################################################################
878
+ # PSQL tool settings
879
+ ##########################################################################
880
+ # This will enable PSQL tool in pgAdmin when running in server mode.
881
+ # PSQL is always enabled in Desktop mode, however in server mode it is
882
+ # disabled by default because users can run arbitrary commands on the
883
+ # server through it.
884
+ ENABLE_PSQL = False
885
+
886
+ ##########################################################################
887
+ # ENABLE_BINARY_PATH_BROWSING setting is used to enable the browse button
888
+ # while selecting binary path for the database server in server mode.
889
+ # In Desktop mode it is always enabled and setting is of no use.
890
+ ##########################################################################
891
+ ENABLE_BINARY_PATH_BROWSING = False
892
+
893
+ ##########################################################################
894
+ # In server mode, the SHARED_STORAGE setting is used to enable shared storage.
895
+ # Specify the name, path, and restricted_access values that should be shared
896
+ # between users. When restricted_access is set to True, non-admin users cannot
897
+ # upload/add, delete, or rename files/folders in shared storage, only admins
898
+ # can do that. Users must provide the absolute path to the folder, and the name
899
+ # can be anything they see on the user interface.
900
+ # [{ 'name': 'Shared 1', 'path': '/shared_folder',
901
+ # 'restricted_access': True/False}]
902
+ ##########################################################################
903
+ SHARED_STORAGE = []
904
+
905
+ #############################################################################
906
+ # AUTO_DISCOVER_SERVERS setting is used to enable the pgAdmin to discover the
907
+ # database server automatically on the local machine.
908
+ # When it is set to False, pgAdmin will not discover servers installed on
909
+ # the local machine.
910
+ #############################################################################
911
+ AUTO_DISCOVER_SERVERS = True
912
+
913
+ #############################################################################
914
+ # SERVER_HEARTBEAT_TIMEOUT is used to send the server heartbeat to server
915
+ # from the client. This will resolve the orphan database issue once
916
+ # browser tab is closed.
917
+ #############################################################################
918
+ SERVER_HEARTBEAT_TIMEOUT = 30 # In seconds
919
+
920
+ #############################################################################
921
+ # ENABLE_SERVER_PASS_EXEC_CMD is used to enable/disable Password exec command
922
+ # field in server properties. This is used to specify a shell command to be
923
+ # executed to retrieve a password to be used for server authentication.
924
+ # This setting is applicable only for server mode.
925
+ #############################################################################
926
+ ENABLE_SERVER_PASS_EXEC_CMD = False
927
+
928
+ #############################################################################
929
+ # Patch the default config with custom config and other manipulations
930
+ #############################################################################
931
+ from pgadmin.evaluate_config import evaluate_and_patch_config
932
+ locals().update(evaluate_and_patch_config(locals()))
pgsql/pgAdmin 4/web/config_distro.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ SERVER_MODE = False
2
+ HELP_PATH = '../../../docs/en_US/html/'
3
+ DEFAULT_BINARY_PATHS = {
4
+ 'pg': '$DIR/../runtime',
5
+ 'ppas': ''
6
+ }
7
+ UPGRADE_CHECK_KEY = 'edb-pgadmin4'
pgsql/pgAdmin 4/web/config_local.py ADDED
@@ -0,0 +1 @@
 
 
1
+ # Add any configuration changes to this file.
pgsql/pgAdmin 4/web/jest.config.js ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const webpackShimAlias = require('./webpack.shim').resolveAlias;
2
+
3
+ const webpackAliasToJestModules = ()=>{
4
+ const ret = {
5
+ '\\.svg': '<rootDir>/regression/javascript/__mocks__/svg.js'
6
+ };
7
+ Object.keys(webpackShimAlias).forEach((an)=>{
8
+ // eg - sources: ./pgadmin/static/js/ to '^sources/(.*)$': '<rootDir>/pgadmin/static/js/$1'
9
+ let ap = webpackShimAlias[an].replace(__dirname, '<rootDir>');
10
+ if(ap.endsWith('/') || ap.endsWith('\\')) {
11
+ ret[`^${an}/(.*)$`] = ap + '$1';
12
+ return;
13
+ }
14
+ ret[`^${an}$`] = ap;
15
+ });
16
+
17
+ // Overrides
18
+ ret['^translations$'] = '<rootDir>/regression/javascript/fake_translations';
19
+ ret['^pgadmin.browser.messages$'] = '<rootDir>/regression/javascript/fake_messages';
20
+ ret['^pgadmin.browser.endpoints$'] = '<rootDir>/regression/javascript/fake_endpoints';
21
+ ret['^pgadmin.browser.translations$'] = '<rootDir>/regression/javascript/fake_translations';
22
+ ret['^pgadmin.user_management.current_user$'] = '<rootDir>/regression/javascript/fake_current_user';
23
+ ret['^pgadmin.server.supported_servers$'] = '<rootDir>/regression/javascript/fake_supported_servers';
24
+
25
+ const sources = ret['^sources/(.*)$'];
26
+ delete ret['^sources/(.*)$'];
27
+
28
+ ret['^sources/pgadmin$'] = '<rootDir>/regression/javascript/fake_pgadmin';
29
+ ret['^sources/gettext$'] = '<rootDir>/regression/javascript/fake_gettext';
30
+ ret['^sources/(.*)$'] = sources;
31
+
32
+ // Only for tests
33
+ ret['^pgadmin.schema.dir/(.*)$'] = '<rootDir>/pgadmin/browser/server_groups/servers/databases/schemas/static/js/$1';
34
+ ret['^browser/(.*)$'] = '<rootDir>/pgadmin/browser/static/js/$1';
35
+
36
+ return ret;
37
+ };
38
+
39
+ module.exports = {
40
+ 'roots': ['<rootDir>/pgadmin/', '<rootDir>/regression/javascript'],
41
+ 'moduleFileExtensions': ['js', 'jsx', 'ts', 'tsx'],
42
+ 'moduleNameMapper': webpackAliasToJestModules(),
43
+ 'transform': {
44
+ '^.+\\.(js|jsx|mjs|cjs|ts|tsx)$': 'babel-jest',
45
+ },
46
+ 'setupFilesAfterEnv': [
47
+ '<rootDir>/regression/javascript/setup-jest.js',
48
+ ],
49
+ 'testMatch': [
50
+ '<rootDir>/regression/javascript/**/*{spec,test}.{js,jsx,ts,tsx}'
51
+ ],
52
+ 'testEnvironment': 'jsdom',
53
+ 'transformIgnorePatterns': [
54
+ '[/\\\\]node_modules[/\\\\](?!react-dnd|dnd-core|@react-dnd).+\\.(js|jsx|mjs|cjs|ts|tsx)$',
55
+ '^.+\\.module\\.(css|sass|scss)$'
56
+ ]
57
+ };
pgsql/pgAdmin 4/web/migrations/alembic.ini ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##########################################################################
2
+ #
3
+ # pgAdmin 4 - PostgreSQL Tools
4
+ #
5
+ # Copyright (C) 2013 - 2024, The pgAdmin Development Team
6
+ # This software is released under the PostgreSQL Licence
7
+ #
8
+ ##########################################################################
9
+
10
+ # A generic, single database configuration.
11
+
12
+ [alembic]
13
+ # template used to generate migration files
14
+ # file_template = %%(rev)s_%%(slug)s
15
+
16
+ # set to 'true' to run the environment during
17
+ # the 'revision' command, regardless of autogenerate
18
+ # revision_environment = false
19
+
20
+
21
+ # Logging configuration
22
+ [loggers]
23
+ keys = root,sqlalchemy,alembic
24
+
25
+ [handlers]
26
+ keys = console
27
+
28
+ [formatters]
29
+ keys = generic
30
+
31
+ [logger_root]
32
+ level = WARN
33
+ handlers = console
34
+ qualname =
35
+
36
+ [logger_sqlalchemy]
37
+ level = WARN
38
+ handlers =
39
+ qualname = sqlalchemy.engine
40
+
41
+ [logger_alembic]
42
+ level = INFO
43
+ handlers =
44
+ qualname = alembic
45
+
46
+ [handler_console]
47
+ class = StreamHandler
48
+ args = (sys.stderr,)
49
+ level = NOTSET
50
+ formatter = generic
51
+
52
+ [formatter_generic]
53
+ format = %(levelname)-5.5s [%(name)s] %(message)s
54
+ datefmt = %H:%M:%S
pgsql/pgAdmin 4/web/migrations/env.py ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##########################################################################
2
+ #
3
+ # pgAdmin 4 - PostgreSQL Tools
4
+ #
5
+ # Copyright (C) 2013 - 2024, The pgAdmin Development Team
6
+ # This software is released under the PostgreSQL Licence
7
+ #
8
+ ##########################################################################
9
+
10
+ from alembic import context
11
+ from sqlalchemy import engine_from_config, pool
12
+ import logging
13
+
14
+ # this is the Alembic Config object, which provides
15
+ # access to the values within the .ini file in use.
16
+ config = context.config
17
+
18
+ # Interpret the config file for Python logging.
19
+ # This line sets up loggers basically.
20
+ logger = logging.getLogger('alembic.env')
21
+
22
+ # add your model's MetaData object here
23
+ # for 'autogenerate' support
24
+ # from myapp import mymodel
25
+ # target_metadata = mymodel.Base.metadata
26
+ from flask import current_app
27
+ db_url_escaped = \
28
+ current_app.config.get('SQLALCHEMY_DATABASE_URI').replace('%', '%%')
29
+ config.set_main_option('sqlalchemy.url', db_url_escaped)
30
+ target_metadata = current_app.extensions['migrate'].db.metadata
31
+
32
+ # other values from the config, defined by the needs of env.py,
33
+ # can be acquired:
34
+ # my_important_option = config.get_main_option("my_important_option")
35
+ # ... etc.
36
+
37
+
38
+ def run_migrations_offline():
39
+ """Run migrations in 'offline' mode.
40
+
41
+ This configures the context with just a URL
42
+ and not an Engine, though an Engine is acceptable
43
+ here as well. By skipping the Engine creation
44
+ we don't even need a DBAPI to be available.
45
+
46
+ Calls to context.execute() here emit the given string to the
47
+ script output.
48
+
49
+ """
50
+ url = config.get_main_option("sqlalchemy.url")
51
+ context.configure(url=url)
52
+
53
+ with context.begin_transaction():
54
+ context.run_migrations()
55
+
56
+
57
+ def run_migrations_online():
58
+ """Run migrations in 'online' mode.
59
+
60
+ In this scenario we need to create an Engine
61
+ and associate a connection with the context.
62
+
63
+ """
64
+
65
+ # this callback is used to prevent an auto-migration from being generated
66
+ # when there are no changes to the schema
67
+ # reference: http://alembic.readthedocs.org/en/latest/cookbook.html
68
+ def process_revision_directives(context, revision, directives):
69
+ if getattr(config.cmd_opts, 'autogenerate', False):
70
+ script = directives[0]
71
+ if script.upgrade_ops.is_empty():
72
+ directives[:] = []
73
+ logger.info('No changes in schema detected.')
74
+
75
+ engine = engine_from_config(config.get_section(config.config_ini_section),
76
+ prefix='sqlalchemy.',
77
+ poolclass=pool.NullPool)
78
+
79
+ connection = engine.connect()
80
+ context.configure(connection=connection,
81
+ target_metadata=target_metadata,
82
+ process_revision_directives=process_revision_directives,
83
+ **current_app.extensions['migrate'].configure_args)
84
+
85
+ try:
86
+ with context.begin_transaction():
87
+ context.run_migrations()
88
+ finally:
89
+ connection.close()
90
+
91
+
92
+ if context.is_offline_mode():
93
+ run_migrations_offline()
94
+ else:
95
+ run_migrations_online()
pgsql/pgAdmin 4/web/migrations/script.py.mako ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##########################################################################
2
+ ##
3
+ ## pgAdmin 4 - PostgreSQL Tools
4
+ ##
5
+ ## Copyright (C) 2013 - 2024, The pgAdmin Development Team
6
+ ## This software is released under the PostgreSQL Licence
7
+ ##
8
+ ##########################################################################
9
+
10
+ """${message}
11
+
12
+ Revision ID: ${up_revision}
13
+ Revises: ${down_revision | comma,n}
14
+ Create Date: ${create_date}
15
+
16
+ """
17
+ from pgadmin.model import db
18
+ ${imports if imports else ""}
19
+
20
+ # revision identifiers, used by Alembic.
21
+ revision = ${repr(up_revision)}
22
+ down_revision = ${repr(down_revision)}
23
+ branch_labels = ${repr(branch_labels)}
24
+ depends_on = ${repr(depends_on)}
25
+
26
+
27
+ def upgrade():
28
+ ${upgrades if upgrades else "pass"}
29
+
30
+
31
+ def downgrade():
32
+ # pgAdmin only upgrades, downgrade not implemented.
33
+ ${downgrades if downgrades else "pass"}
pgsql/pgAdmin 4/web/package.json ADDED
@@ -0,0 +1,186 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "//": [
3
+ "IMPORTANT:",
4
+ "If runtime or build time dependencies are changed in this file, the ",
5
+ "committer *must* ensure the DEB and RPM package maintainers are informed ",
6
+ "as soon as possible."
7
+ ],
8
+ "license": "PostgreSQL",
9
+ "devDependencies": {
10
+ "@babel/core": "^7.10.2",
11
+ "@babel/eslint-parser": "^7.21.3",
12
+ "@babel/eslint-plugin": "^7.17.7",
13
+ "@babel/plugin-proposal-object-rest-spread": "^7.10.1",
14
+ "@babel/plugin-syntax-jsx": "^7.16.0",
15
+ "@babel/plugin-transform-runtime": "^7.22.15",
16
+ "@babel/preset-env": "^7.10.2",
17
+ "@babel/preset-typescript": "^7.22.5",
18
+ "@emotion/core": "^10.0.14",
19
+ "@emotion/memoize": "^0.7.5",
20
+ "@emotion/react": "^11.11.3",
21
+ "@emotion/styled": "^11.11.0",
22
+ "@emotion/utils": "^1.0.0",
23
+ "@svgr/webpack": "^8.1.0",
24
+ "@testing-library/jest-dom": "^6.1.2",
25
+ "@testing-library/react": "12",
26
+ "@testing-library/user-event": "^14.4.3",
27
+ "@types/jest": "^29.5.4",
28
+ "@typescript-eslint/eslint-plugin": "^5.59.9",
29
+ "@typescript-eslint/parser": "^5.57.0",
30
+ "autoprefixer": "^10.2.4",
31
+ "axios-mock-adapter": "^1.17.0",
32
+ "babel-loader": "^8.1.0",
33
+ "browserify": "^17.0.0",
34
+ "buffer": "^6.0.3",
35
+ "copy-webpack-plugin": "^11.0.0",
36
+ "cross-env": "^7.0.3",
37
+ "css-loader": "^6.7.2",
38
+ "css-minimizer-webpack-plugin": "^5.0.0",
39
+ "eslint": "^8.37.0",
40
+ "eslint-plugin-jest": "^27.4.0",
41
+ "eslint-plugin-react": "^7.33.2",
42
+ "eslint-plugin-react-hooks": "^4.3.0",
43
+ "exports-loader": "^4.0.0",
44
+ "html-react-parser": "^5.0.6",
45
+ "image-minimizer-webpack-plugin": "^3.8.2",
46
+ "imagemin": "^8.0.1",
47
+ "imagemin-mozjpeg": "^10.0.0",
48
+ "imagemin-optipng": "^8.0.0",
49
+ "imports-loader": "^4.0.1",
50
+ "is-docker": "^2.1.1",
51
+ "jest": "^29.6.4",
52
+ "jest-environment-jsdom": "^29.6.4",
53
+ "loader-utils": "^3.2.1",
54
+ "mini-css-extract-plugin": "^2.7.6",
55
+ "postcss-loader": "^7.1.0",
56
+ "process": "^0.11.10",
57
+ "prop-types": "^15.7.2",
58
+ "resize-observer-polyfill": "^1.5.1",
59
+ "shim-loader": "^1.0.1",
60
+ "style-loader": "^3.3.2",
61
+ "stylis": "^4.0.7",
62
+ "svgo": "^2.7.0",
63
+ "svgo-loader": "^2.2.0",
64
+ "terser-webpack-plugin": "^5.1.1",
65
+ "typescript": "^4.9.5",
66
+ "url-loader": "^4.1.1",
67
+ "webfonts-loader": "^8.0.1",
68
+ "webpack": "^5.88.2",
69
+ "webpack-bundle-analyzer": "^4.8.0",
70
+ "webpack-cli": "^4.5.0",
71
+ "yarn-audit-html": "4.0.0"
72
+ },
73
+ "dependencies": {
74
+ "@babel/plugin-proposal-class-properties": "^7.10.4",
75
+ "@babel/preset-react": "^7.12.13",
76
+ "@codemirror/lang-sql": "^6.6.3",
77
+ "@date-io/core": "^3.0.0",
78
+ "@date-io/date-fns": "3.x",
79
+ "@emotion/sheet": "^1.0.1",
80
+ "@fortawesome/fontawesome-free": "latest",
81
+ "@mui/icons-material": "^5.15.10",
82
+ "@mui/lab": "^5.0.0-alpha.165",
83
+ "@mui/material": "^5.15.10",
84
+ "@mui/styles": "^5.15.10",
85
+ "@mui/x-date-pickers": "^6.19.7",
86
+ "@projectstorm/react-diagrams": "^6.6.1",
87
+ "@simonwep/pickr": "^1.5.1",
88
+ "@szhsin/react-menu": "^2.2.0",
89
+ "@types/classnames": "^2.2.6",
90
+ "@types/react": "^17.0.80",
91
+ "@types/react-dom": "^17.0.25",
92
+ "ajv": "^8.8.2",
93
+ "anti-trojan-source": "^1.4.0",
94
+ "aspen-decorations": "^1.0.2",
95
+ "axios": "^1.6.8",
96
+ "babelify": "~10.0.0",
97
+ "bignumber.js": "^9.0.1",
98
+ "brace": "^0.11.1",
99
+ "browserfs": "^1.4.3",
100
+ "chart.js": "^3.0.0",
101
+ "chartjs-plugin-zoom": "^2.0.1",
102
+ "classnames": "^2.2.6",
103
+ "closest": "^0.0.1",
104
+ "codemirror": "^6.0.1",
105
+ "convert-units": "^2.3.4",
106
+ "cssnano": "^5.0.2",
107
+ "dagre": "^0.8.4",
108
+ "date-fns": "^3.6.0",
109
+ "diff-arrays-of-objects": "^1.1.8",
110
+ "hotkeys-js": "^3.13.3",
111
+ "html-to-image": "^1.11.11",
112
+ "immutability-helper": "^3.0.0",
113
+ "insert-if": "^1.1.0",
114
+ "ip-address": "^7.1.0",
115
+ "json-bignumber": "^1.0.1",
116
+ "jsoneditor": "^9.5.4",
117
+ "leaflet": "^1.5.1",
118
+ "lodash": "4.*",
119
+ "ml-matrix": "^6.5.0",
120
+ "moment": "^2.29.4",
121
+ "moment-timezone": "^0.5.34",
122
+ "notificar": "^1.0.1",
123
+ "notistack": "^2.0.8",
124
+ "path-fx": "^2.0.0",
125
+ "pathfinding": "^0.4.18",
126
+ "paths-js": "^0.4.9",
127
+ "postcss": "^8.4.31",
128
+ "raf": "^3.4.1",
129
+ "rc-dock": "^3.2.9",
130
+ "react": "^17.0.1",
131
+ "react-arborist": "^3.2.0",
132
+ "react-aspen": "^1.1.0",
133
+ "react-checkbox-tree": "^1.7.2",
134
+ "react-data-grid": "https://github.com/pgadmin-org/react-data-grid.git#200d2f5e02de694e3e9ffbe177c279bc40240fb8",
135
+ "react-dnd": "^16.0.1",
136
+ "react-dnd-html5-backend": "^16.0.1",
137
+ "react-dom": "^17.0.1",
138
+ "react-draggable": "^4.4.6",
139
+ "react-dropzone": "^14.2.1",
140
+ "react-frame-component": "^5.2.6",
141
+ "react-leaflet": "^3.2.2",
142
+ "react-new-window": "^1.0.1",
143
+ "react-resize-detector": "^9.1.0",
144
+ "react-rnd": "^10.3.5",
145
+ "react-select": "^5.7.2",
146
+ "react-table": "^7.6.3",
147
+ "react-timer-hook": "^3.0.5",
148
+ "react-virtualized-auto-sizer": "^1.0.6",
149
+ "react-window": "^1.8.5",
150
+ "snapsvg-cjs": "^0.0.6",
151
+ "socket.io-client": "^4.5.0",
152
+ "split.js": "^1.5.10",
153
+ "sql-formatter": "^15.1.2",
154
+ "styled-components": "^5.2.1",
155
+ "uplot": "^1.6.24",
156
+ "uplot-react": "^1.1.4",
157
+ "valid-filename": "^2.0.1",
158
+ "wkx": "^0.5.0",
159
+ "xterm": "^4.11.0",
160
+ "xterm-addon-fit": "^0.5.0",
161
+ "xterm-addon-search": "^0.8.0",
162
+ "xterm-addon-web-links": "^0.4.0",
163
+ "zustand": "^4.4.1"
164
+ },
165
+ "scripts": {
166
+ "linter": "yarn eslint --no-eslintrc -c .eslintrc.js --ext .js --ext .jsx --ext .ts --ext .tsx .",
167
+ "webpacker": "yarn run webpack --config webpack.config.js --progress",
168
+ "webpacker:watch": "yarn run webpack --config webpack.config.js --progress --watch",
169
+ "bundle:watch": "yarn run linter && yarn run webpacker:watch",
170
+ "bundle:dev": "yarn run linter && yarn run webpacker",
171
+ "bundle:analyze": "cross-env NODE_ENV=production ANALYZE=true yarn run bundle:dev",
172
+ "bundle": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=3072 yarn run bundle:dev",
173
+ "test:js-once": "yarn run linter && yarn run jest --maxWorkers=50%",
174
+ "test:js": "yarn run test:js-once --watch",
175
+ "test:js-file": "yarn run test:js-once -t",
176
+ "test:js-coverage": "yarn run test:js-once --collect-coverage",
177
+ "test:feature": "yarn run bundle && python regression/runtests.py --pkg feature_tests",
178
+ "test": "yarn run test:js-once && yarn run bundle && python regression/runtests.py",
179
+ "pep8": "pycodestyle --config=../.pycodestyle ../docs && pycodestyle --config=../.pycodestyle ../pkg && pycodestyle --config=../.pycodestyle ../tools && pycodestyle --config=../.pycodestyle ../web",
180
+ "auditjs-html": "yarn audit --json | yarn run yarn-audit-html --output ../auditjs.html",
181
+ "auditjs": "yarn audit --groups dependencies",
182
+ "auditpy": "safety check --full-report -i 51668 -i 52495",
183
+ "audit": "yarn run auditjs && yarn run auditpy"
184
+ },
185
+ "packageManager": "yarn@3.6.4"
186
+ }
pgsql/pgAdmin 4/web/pgAdmin4.py ADDED
@@ -0,0 +1,229 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##########################################################################
2
+ #
3
+ # pgAdmin 4 - PostgreSQL Tools
4
+ #
5
+ # Copyright (C) 2013 - 2024, The pgAdmin Development Team
6
+ # This software is released under the PostgreSQL Licence
7
+ #
8
+ ##########################################################################
9
+
10
+ """This is the main application entry point for pgAdmin 4. If running on
11
+ a webserver, this will provide the WSGI interface, otherwise, we're going
12
+ to start a web server."""
13
+
14
+ import sys
15
+ if sys.version_info <= (3, 9):
16
+ import select
17
+
18
+ if sys.version_info < (3, 4):
19
+ raise RuntimeError('This application must be run under Python 3.4 '
20
+ 'or later.')
21
+ import builtins
22
+ import os
23
+
24
+ # We need to include the root directory in sys.path to ensure that we can
25
+ # find everything we need when running in the standalone runtime.
26
+ if sys.path[0] != os.path.dirname(os.path.realpath(__file__)):
27
+ sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))
28
+
29
+ # Grab the SERVER_MODE if it's been set by the runtime
30
+ if 'PGADMIN_SERVER_MODE' in os.environ:
31
+ if os.environ['PGADMIN_SERVER_MODE'] == 'OFF':
32
+ builtins.SERVER_MODE = False
33
+ else:
34
+ builtins.SERVER_MODE = True
35
+ else:
36
+ builtins.SERVER_MODE = None
37
+
38
+ if (3, 10) > sys.version_info > (3, 8, 99) and os.name == 'posix':
39
+ # Fix eventlet issue with Python 3.9.
40
+ # Ref: https://github.com/eventlet/eventlet/issues/670
41
+ # This was causing issue in psycopg3
42
+ from eventlet import hubs
43
+ hubs.use_hub("poll")
44
+
45
+ import selectors
46
+ selectors.DefaultSelector = selectors.PollSelector
47
+
48
+ import config
49
+ import setup
50
+ from pgadmin import create_app, socketio
51
+ from pgadmin.utils.constants import INTERNAL
52
+ # Get the config database schema version. We store this in pgadmin.model
53
+ # as it turns out that putting it in the config files isn't a great idea
54
+ from pgadmin.model import SCHEMA_VERSION
55
+
56
+
57
+ ##########################################################################
58
+ # Support reverse proxying
59
+ ##########################################################################
60
+ class ReverseProxied():
61
+ def __init__(self, app):
62
+ self.app = app
63
+ # https://werkzeug.palletsprojects.com/en/0.15.x/middleware/proxy_fix
64
+ try:
65
+ from werkzeug.middleware.proxy_fix import ProxyFix
66
+ self.app = ProxyFix(app,
67
+ x_for=config.PROXY_X_FOR_COUNT,
68
+ x_proto=config.PROXY_X_PROTO_COUNT,
69
+ x_host=config.PROXY_X_HOST_COUNT,
70
+ x_port=config.PROXY_X_PORT_COUNT,
71
+ x_prefix=config.PROXY_X_PREFIX_COUNT
72
+ )
73
+ except ImportError:
74
+ pass
75
+
76
+ def __call__(self, environ, start_response):
77
+ script_name = environ.get("HTTP_X_SCRIPT_NAME", "")
78
+ if script_name:
79
+ environ["SCRIPT_NAME"] = script_name
80
+ path_info = environ["PATH_INFO"]
81
+ if path_info.startswith(script_name):
82
+ environ["PATH_INFO"] = path_info[len(script_name):]
83
+ scheme = environ.get("HTTP_X_SCHEME", "")
84
+ if scheme:
85
+ environ["wsgi.url_scheme"] = scheme
86
+ return self.app(environ, start_response)
87
+
88
+
89
+ ##########################################################################
90
+ # Sanity checks
91
+ ##########################################################################
92
+ config.SETTINGS_SCHEMA_VERSION = SCHEMA_VERSION
93
+
94
+ # Check if the database exists. If it does not, create it.
95
+ setup_db_required = False
96
+ if not os.path.isfile(config.SQLITE_PATH):
97
+ setup_db_required = True
98
+
99
+ ##########################################################################
100
+ # Create the app and configure it. It is created outside main so that
101
+ # it can be imported
102
+ ##########################################################################
103
+ app = create_app()
104
+ app.config['sessions'] = dict()
105
+
106
+ if setup_db_required:
107
+ setup.setup_db(app)
108
+
109
+ # Authentication sources
110
+ if len(config.AUTHENTICATION_SOURCES) > 0:
111
+ # Creating a temporary auth source list removing INTERNAL
112
+ # This change is done to avoid selecting INTERNAL authentication when user
113
+ # mistakenly keeps that the first option.
114
+ auth_source = [x for x in config.AUTHENTICATION_SOURCES
115
+ if x != INTERNAL]
116
+ app.PGADMIN_EXTERNAL_AUTH_SOURCE = auth_source[0] \
117
+ if len(auth_source) > 0 else INTERNAL
118
+ else:
119
+ app.PGADMIN_EXTERNAL_AUTH_SOURCE = INTERNAL
120
+
121
+ # Start the web server. The port number should have already been set by the
122
+ # runtime if we're running in desktop mode, otherwise we'll just use the
123
+ # Flask default.
124
+ app.PGADMIN_RUNTIME = False
125
+ app.logger.debug(
126
+ 'Config server mode: %s', config.SERVER_MODE
127
+ )
128
+ config.EFFECTIVE_SERVER_PORT = None
129
+ if 'PGADMIN_INT_PORT' in os.environ:
130
+ port = os.environ['PGADMIN_INT_PORT']
131
+ app.logger.debug(
132
+ 'Running under the desktop runtime, port: %s',
133
+ port
134
+ )
135
+ config.EFFECTIVE_SERVER_PORT = int(port)
136
+ else:
137
+ app.logger.debug(
138
+ 'Not running under the desktop runtime, port: %s',
139
+ config.DEFAULT_SERVER_PORT
140
+ )
141
+ config.EFFECTIVE_SERVER_PORT = config.DEFAULT_SERVER_PORT
142
+
143
+ # Set the key if appropriate
144
+ if 'PGADMIN_INT_KEY' in os.environ:
145
+ app.PGADMIN_INT_KEY = os.environ['PGADMIN_INT_KEY']
146
+ app.logger.debug("Desktop security key: %s" % app.PGADMIN_INT_KEY)
147
+ app.PGADMIN_RUNTIME = True
148
+ else:
149
+ app.PGADMIN_INT_KEY = ''
150
+
151
+ if not app.PGADMIN_RUNTIME:
152
+ app.wsgi_app = ReverseProxied(app.wsgi_app)
153
+
154
+ app.run_before_app_start()
155
+
156
+
157
+ ##########################################################################
158
+ # The entry point
159
+ ##########################################################################
160
+ def main():
161
+ # Set null device file path to stdout, stdin, stderr if they are None
162
+ for _name in ('stdin', 'stdout', 'stderr'):
163
+ if getattr(sys, _name) is None:
164
+ setattr(sys, _name,
165
+ open(os.devnull, 'r' if _name == 'stdin' else 'w'))
166
+
167
+ # Output a startup message if we're not under the runtime and startup.
168
+ # If we're under WSGI, we don't need to worry about this
169
+ if not app.PGADMIN_RUNTIME:
170
+ print(
171
+ "Starting %s. Please navigate to http://%s:%d in your browser." %
172
+ (config.APP_NAME, config.DEFAULT_SERVER,
173
+ config.EFFECTIVE_SERVER_PORT)
174
+ )
175
+ sys.stdout.flush()
176
+ else:
177
+ # For unknown reason the runtime does not pass the environment
178
+ # variables (i.e. PYTHONHOME, and PYTHONPATH), to the Python
179
+ # sub-processes, leading to failures executing background processes.
180
+ #
181
+ # This has been observed only on windows. On *nix systems, it is likely
182
+ # picking the system python environment, which is good enough to run
183
+ # the process-executor.
184
+ #
185
+ # Setting PYTHONHOME launch them properly.
186
+ from pgadmin.utils import IS_WIN
187
+
188
+ if IS_WIN:
189
+ os.environ['PYTHONHOME'] = sys.prefix
190
+
191
+ # Initialize Flask service only once
192
+ # If `WERKZEUG_RUN_MAIN` is None, i.e: app is initializing for first time
193
+ # so set `use_reloader` = False, thus reload won't call.
194
+ # Reference:
195
+ # https://github.com/pallets/werkzeug/issues/220#issuecomment-11176538
196
+ try:
197
+ if config.DEBUG:
198
+ app.run(
199
+ host=config.DEFAULT_SERVER,
200
+ port=config.EFFECTIVE_SERVER_PORT,
201
+ debug=config.DEBUG,
202
+ use_reloader=(
203
+ (not app.PGADMIN_RUNTIME) and
204
+ os.environ.get("WERKZEUG_RUN_MAIN") is not None
205
+ ),
206
+ threaded=config.THREADED_MODE
207
+ )
208
+ else:
209
+ try:
210
+ socketio.run(
211
+ app,
212
+ debug=config.DEBUG,
213
+ allow_unsafe_werkzeug=True,
214
+ host=config.DEFAULT_SERVER,
215
+ port=config.EFFECTIVE_SERVER_PORT,
216
+ )
217
+ except KeyboardInterrupt:
218
+ print("CLOSE SERVER")
219
+ socketio.stop()
220
+
221
+ except IOError:
222
+ app.logger.error("Error starting the app server: %s", sys.exc_info())
223
+
224
+
225
+ ##########################################################################
226
+ # Server startup
227
+ ##########################################################################
228
+ if __name__ == '__main__':
229
+ main()
pgsql/pgAdmin 4/web/pgAdmin4.wsgi ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##########################################################################
2
+ #
3
+ # pgAdmin 4 - PostgreSQL Tools
4
+ #
5
+ # Copyright (C) 2013 - 2024, The pgAdmin Development Team
6
+ # This software is released under the PostgreSQL Licence
7
+ #
8
+ ##########################################################################
9
+
10
+ import os
11
+ import sys
12
+
13
+ if sys.version_info < (3, 4):
14
+ raise Exception('This application must be run under Python 3.4 or later.')
15
+
16
+ import builtins
17
+
18
+ root = os.path.dirname(os.path.realpath(__file__))
19
+ if sys.path[0] != root:
20
+ sys.path.insert(0, root)
21
+
22
+ # Ensure the global server mode is set.
23
+ builtins.SERVER_MODE = True
24
+
25
+ import config
26
+
27
+ # When running it as a WSGI application, directory for the configuration file
28
+ # must present.
29
+ if not os.path.exists(os.path.dirname(config.SQLITE_PATH)):
30
+ raise Exception(
31
+ """
32
+ Required configuration file is not present!
33
+ Please run setup.py first!"""
34
+ )
35
+
36
+ from pgAdmin4 import app as application
pgsql/pgAdmin 4/web/pgacloud/pgacloud.py ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+
3
+ ##########################################################################
4
+ #
5
+ # pgAdmin 4 - PostgreSQL Tools
6
+ #
7
+ # Copyright (C) 2013 - 2024, The pgAdmin Development Team
8
+ # This software is released under the PostgreSQL Licence
9
+ #
10
+ ##########################################################################
11
+
12
+ import argparse
13
+ import os
14
+ import sys
15
+
16
+
17
+ def load_providers():
18
+ """ Loads all the providers """
19
+ providers = {}
20
+
21
+ path = os.path.dirname(os.path.realpath(__file__))
22
+ modules = os.listdir(path + '/providers')
23
+ sys.path.append(path)
24
+ for filename in modules:
25
+ filename = path + '/providers/' + filename
26
+
27
+ if os.path.isfile(filename):
28
+ basename = os.path.basename(filename)
29
+ _, extension = os.path.splitext(basename)
30
+
31
+ if extension == ".py" and not basename.startswith("_"):
32
+ module = __import__("providers." + basename[:-3],
33
+ fromlist=["providers"])
34
+ provider = module.load()
35
+ providers[basename[:-3]] = provider
36
+
37
+ return providers
38
+
39
+
40
+ def get_args(providers):
41
+ """ Creates the parsers and returns the args """
42
+ # Create the top-level parser
43
+ parser = argparse.ArgumentParser(prog='pgacloud.py')
44
+
45
+ # Create the provider sub-parser
46
+ parsers = parser.add_subparsers(help='provider help', dest='provider')
47
+
48
+ # Load the provider parsers
49
+ for provider in providers:
50
+ providers[provider].init_args(parsers)
51
+
52
+ args = parser.parse_args()
53
+
54
+ return parser, args
55
+
56
+
57
+ def execute_command(providers, parser, args):
58
+ """ Executes the command in the provider """
59
+
60
+ # Switch - for _ in command names. We use - in the CLI syntax for ease of
61
+ # use, but we need an _ in Python function names
62
+ if 'command' in args and args.command is not None:
63
+ args.command = args.command.replace('-', '_')
64
+
65
+ # Figure out what provider the command was for (if any) and call the
66
+ # relevant function. If we don't get a match, print the help
67
+ if args.provider in providers and \
68
+ 'command' in args and \
69
+ args.command is not None:
70
+ command = providers[args.provider].commands()[args.command]
71
+ command(args)
72
+ else:
73
+ # If no provider has been given, display the top level help,
74
+ # otherwise, call the help() method in the provider
75
+ if args.provider is None:
76
+ parser.print_help()
77
+ else:
78
+ command = providers[args.provider].commands()['help']
79
+ command()
80
+
81
+
82
+ def main():
83
+ """ Entry point """
84
+ # Load the providers
85
+ providers = load_providers()
86
+
87
+ # Get the args
88
+ parser, args = get_args(providers)
89
+
90
+ # Execute the command
91
+ execute_command(providers, parser, args)
92
+
93
+
94
+ if __name__ == '__main__':
95
+ main()
pgsql/pgAdmin 4/web/pgadmin/__init__.py ADDED
@@ -0,0 +1,937 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##########################################################################
2
+ #
3
+ # pgAdmin 4 - PostgreSQL Tools
4
+ #
5
+ # Copyright (C) 2013 - 2024, The pgAdmin Development Team
6
+ # This software is released under the PostgreSQL Licence
7
+ #
8
+ ##########################################################################
9
+
10
+ """The main pgAdmin module. This handles the application initialisation tasks,
11
+ such as setup of logging, dynamic loading of modules etc."""
12
+ import logging
13
+ import os
14
+ import sys
15
+ import re
16
+ import ipaddress
17
+ import traceback
18
+ import shutil
19
+
20
+ from types import MethodType
21
+ from collections import defaultdict
22
+ from importlib import import_module
23
+
24
+ from flask import Flask, abort, request, current_app, session, url_for
25
+ from flask_socketio import SocketIO
26
+ from werkzeug.exceptions import HTTPException
27
+ from flask_babel import Babel, gettext
28
+ from flask_babel import gettext as _
29
+ from flask_login import user_logged_in, user_logged_out
30
+ from flask_mail import Mail
31
+ from flask_paranoid import Paranoid
32
+ from flask_security import Security, SQLAlchemyUserDatastore, current_user
33
+ from flask_security.utils import login_user, logout_user
34
+ from flask_migrate import Migrate
35
+ from werkzeug.datastructures import ImmutableDict
36
+ from werkzeug.local import LocalProxy
37
+ from werkzeug.utils import find_modules
38
+ from jinja2 import select_autoescape
39
+
40
+ from pgadmin.model import db, Role, Server, SharedServer, ServerGroup, \
41
+ User, Keys, Version, SCHEMA_VERSION as CURRENT_SCHEMA_VERSION
42
+ from pgadmin.utils import PgAdminModule, driver, KeyManager, heartbeat
43
+ from pgadmin.utils.preferences import Preferences
44
+ from pgadmin.utils.session import create_session_interface, pga_unauthorised
45
+ from pgadmin.utils.versioned_template_loader import VersionedTemplateLoader
46
+ from datetime import timedelta, datetime
47
+ from pgadmin.setup import get_version, set_version, check_db_tables
48
+ from pgadmin.utils.ajax import internal_server_error, make_json_response
49
+ from pgadmin.utils.csrf import pgCSRFProtect
50
+ from pgadmin import authenticate
51
+ from pgadmin.utils.security_headers import SecurityHeaders
52
+ from pgadmin.utils.constants import KERBEROS, OAUTH2, INTERNAL, LDAP, WEBSERVER
53
+ from jsonformatter import JsonFormatter
54
+
55
+ # Explicitly set the mime-types so that a corrupted windows registry will not
56
+ # affect pgAdmin 4 to be load properly. This will avoid the issues that may
57
+ # occur due to security fix of X_CONTENT_TYPE_OPTIONS = "nosniff".
58
+ import mimetypes
59
+
60
+ mimetypes.add_type('application/javascript', '.js')
61
+ mimetypes.add_type('text/css', '.css')
62
+
63
+
64
+ winreg = None
65
+ if os.name == 'nt':
66
+ import winreg
67
+
68
+ socketio = SocketIO(manage_session=False, async_mode='threading',
69
+ logger=False, engineio_logger=False, debug=False,
70
+ ping_interval=25, ping_timeout=120)
71
+
72
+ _INDEX_PATH = 'browser.index'
73
+
74
+
75
+ class PgAdmin(Flask):
76
+ def __init__(self, *args, **kwargs):
77
+ # Set the template loader to a postgres-version-aware loader
78
+ self.jinja_options = ImmutableDict(
79
+ autoescape=select_autoescape(enabled_extensions=('html', 'xml')),
80
+ loader=VersionedTemplateLoader(self)
81
+ )
82
+ self.logout_hooks = []
83
+ self.before_app_start = []
84
+
85
+ super().__init__(*args, **kwargs)
86
+
87
+ def find_submodules(self, basemodule):
88
+ try:
89
+ for module_name in find_modules(basemodule, True):
90
+ if module_name in self.config['MODULE_BLACKLIST']:
91
+ self.logger.info(
92
+ 'Skipping blacklisted module: %s' % module_name
93
+ )
94
+ continue
95
+ self.logger.info(
96
+ 'Examining potential module: %s' % module_name)
97
+ module = import_module(module_name)
98
+ for key in list(module.__dict__.keys()):
99
+ if isinstance(module.__dict__[key], PgAdminModule):
100
+ yield module.__dict__[key]
101
+ except Exception:
102
+ return []
103
+
104
+ @property
105
+ def submodules(self):
106
+ for blueprint in self.blueprints.values():
107
+ if isinstance(blueprint, PgAdminModule):
108
+ yield blueprint
109
+
110
+ @property
111
+ def messages(self):
112
+ messages = dict()
113
+ for module in self.submodules:
114
+ messages.update(getattr(module, "messages", dict()))
115
+ return messages
116
+
117
+ @property
118
+ def exposed_endpoint_url_map(self):
119
+ #############################################################
120
+ # To handle WSGI paths
121
+ # If user has setup application under WSGI alias
122
+ # like 'localhost/pgadmin4' then we have to append '/pgadmin4'
123
+ # into endpoints
124
+ #############################################################
125
+ wsgi_root_path = ''
126
+ if url_for(_INDEX_PATH) != '/browser/':
127
+ wsgi_root_path = url_for(_INDEX_PATH).replace(
128
+ '/browser/', ''
129
+ )
130
+
131
+ def get_full_url_path(url):
132
+ """
133
+ Generate endpoint URL at per WSGI alias
134
+ """
135
+ return wsgi_root_path + url
136
+
137
+ # Fetch all endpoints and their respective url
138
+ for rule in current_app.url_map.iter_rules('static'):
139
+ yield rule.endpoint, get_full_url_path(rule.rule)
140
+
141
+ for module in self.submodules:
142
+ for endpoint in module.exposed_endpoints:
143
+ for rule in current_app.url_map.iter_rules(endpoint):
144
+ yield rule.endpoint, get_full_url_path(rule.rule)
145
+
146
+ yield 'pgadmin.root', wsgi_root_path
147
+
148
+ @property
149
+ def menu_items(self):
150
+ from operator import attrgetter
151
+
152
+ menu_items = defaultdict(list)
153
+ for module in self.submodules:
154
+ for key, value in module.menu_items.items():
155
+ menu_items[key].extend(value)
156
+ menu_items = dict((key, sorted(value, key=attrgetter('priority')))
157
+ for key, value in menu_items.items())
158
+ return menu_items
159
+
160
+ def register_logout_hook(self, module):
161
+ if hasattr(module, 'on_logout') and \
162
+ isinstance(getattr(module, 'on_logout'), MethodType):
163
+ self.logout_hooks.append(module)
164
+
165
+ def register_before_app_start(self, callback):
166
+ self.before_app_start.append(callback)
167
+
168
+ def run_before_app_start(self):
169
+ # call before app starts or is exported
170
+ with self.app_context(), self.test_request_context():
171
+ for callback in self.before_app_start:
172
+ callback()
173
+
174
+
175
+ def _find_blueprint():
176
+ if request.blueprint:
177
+ return current_app.blueprints[request.blueprint]
178
+
179
+
180
+ current_blueprint = LocalProxy(_find_blueprint)
181
+
182
+
183
+ def create_app(app_name=None):
184
+ # Configuration settings
185
+ import config
186
+ if not app_name:
187
+ app_name = config.APP_NAME
188
+
189
+ # Check if app is created for CLI operations or Web
190
+ cli_mode = False
191
+ if app_name.endswith('-cli'):
192
+ cli_mode = True
193
+
194
+ # Only enable password related functionality in server mode.
195
+ if config.SERVER_MODE is True:
196
+ # Some times we need to access these config params where application
197
+ # context is not available (we can't use current_app.config in those
198
+ # cases even with current_app.app_context())
199
+ # So update these params in config itself.
200
+ # And also these updated config values will picked up by application
201
+ # since we are updating config before the application instance is
202
+ # created.
203
+
204
+ config.SECURITY_RECOVERABLE = True
205
+ config.SECURITY_CHANGEABLE = True
206
+ # Now we'll open change password page in dialog
207
+ # we don't want it to redirect to main page after password
208
+ # change operation so we will open the same password change page again.
209
+ config.SECURITY_POST_CHANGE_VIEW = 'browser.change_password'
210
+
211
+ """Create the Flask application, startup logging and dynamically load
212
+ additional modules (blueprints) that are found in this directory."""
213
+ app = PgAdmin(__name__, static_url_path='/static')
214
+ # Removes unwanted whitespace from render_template function
215
+ app.jinja_env.trim_blocks = True
216
+ app.config.from_object(config)
217
+ app.config.update(dict(PROPAGATE_EXCEPTIONS=True))
218
+
219
+ config.SETTINGS_SCHEMA_VERSION = CURRENT_SCHEMA_VERSION
220
+ ##########################################################################
221
+ # Setup logging and log the application startup
222
+ ##########################################################################
223
+
224
+ # We won't care about errors in the logging system, we are more
225
+ # interested in application errors.
226
+ logging.raiseExceptions = False
227
+
228
+ # Add SQL level logging, and set the base logging level
229
+ logging.addLevelName(25, 'SQL')
230
+ app.logger.setLevel(logging.DEBUG)
231
+ app.logger.handlers = []
232
+
233
+ # We also need to update the handler on the webserver in order to see
234
+ # request. Setting the level prevents werkzeug from setting up it's own
235
+ # stream handler thus ensuring all the logging goes through the pgAdmin
236
+ # logger.
237
+ logger = logging.getLogger('werkzeug')
238
+ logger.setLevel(config.CONSOLE_LOG_LEVEL)
239
+
240
+ # Set SQLITE_PATH to TEST_SQLITE_PATH while running test cases
241
+ if (
242
+ 'PGADMIN_TESTING_MODE' in os.environ and
243
+ os.environ['PGADMIN_TESTING_MODE'] == '1'
244
+ ):
245
+ config.SQLITE_PATH = config.TEST_SQLITE_PATH
246
+ config.MASTER_PASSWORD_REQUIRED = False
247
+ config.UPGRADE_CHECK_ENABLED = False
248
+
249
+ if not cli_mode:
250
+ # Ensure the various working directories exist
251
+ from pgadmin.setup import create_app_data_directory
252
+ create_app_data_directory(config)
253
+
254
+ # File logging
255
+ from pgadmin.utils.enhanced_log_rotation import \
256
+ EnhancedRotatingFileHandler
257
+ fh = EnhancedRotatingFileHandler(config.LOG_FILE,
258
+ config.LOG_ROTATION_SIZE,
259
+ config.LOG_ROTATION_AGE,
260
+ config.LOG_ROTATION_MAX_LOG_FILES)
261
+
262
+ fh.setLevel(config.FILE_LOG_LEVEL)
263
+
264
+ if config.JSON_LOGGER:
265
+ json_formatter = JsonFormatter(config.FILE_LOG_FORMAT_JSON)
266
+ fh.setFormatter(json_formatter)
267
+ else:
268
+ fh.setFormatter(logging.Formatter(config.FILE_LOG_FORMAT))
269
+
270
+ app.logger.addHandler(fh)
271
+ logger.addHandler(fh)
272
+
273
+ # Console logging
274
+ ch = logging.StreamHandler()
275
+ ch.setLevel(config.CONSOLE_LOG_LEVEL)
276
+
277
+ if config.JSON_LOGGER:
278
+ json_formatter = JsonFormatter(config.CONSOLE_LOG_FORMAT_JSON)
279
+ ch.setFormatter(json_formatter)
280
+ else:
281
+ ch.setFormatter(logging.Formatter(config.CONSOLE_LOG_FORMAT))
282
+
283
+ app.logger.addHandler(ch)
284
+ logger.addHandler(ch)
285
+
286
+ # Log the startup
287
+ app.logger.info('########################################################')
288
+ app.logger.info('Starting %s v%s...', config.APP_NAME, config.APP_VERSION)
289
+ app.logger.info('########################################################')
290
+ app.logger.debug("Python syspath: %s", sys.path)
291
+
292
+ ##########################################################################
293
+ # Setup i18n
294
+ ##########################################################################
295
+
296
+ # Initialise i18n
297
+ babel = Babel(app)
298
+
299
+ def get_locale():
300
+ """Get the language for the user."""
301
+ language = 'en'
302
+ if config.SERVER_MODE is False:
303
+ # Get the user language preference from the miscellaneous module
304
+ user_id = None
305
+ if current_user and current_user.is_authenticated:
306
+ user_id = current_user.id
307
+ else:
308
+ user = user_datastore.find_user(email=config.DESKTOP_USER)
309
+ if user is not None:
310
+ user_id = user.id
311
+ user_language = Preferences.raw_value(
312
+ 'misc', 'user_language', 'user_language', user_id
313
+ )
314
+ if user_language is not None:
315
+ language = user_language
316
+ else:
317
+ # If language is available in get request then return the same
318
+ # otherwise check the session or cookie
319
+ data = request.form
320
+ if 'language' in data:
321
+ language = data['language'] or language
322
+ setattr(session, 'PGADMIN_LANGUAGE', language)
323
+ elif hasattr(session, 'PGADMIN_LANGUAGE'):
324
+ language = getattr(session, 'PGADMIN_LANGUAGE', language)
325
+ elif hasattr(request.cookies, 'PGADMIN_LANGUAGE'):
326
+ language = getattr(
327
+ request.cookies, 'PGADMIN_LANGUAGE', language
328
+ )
329
+
330
+ return language
331
+
332
+ babel.init_app(app, locale_selector=get_locale)
333
+ ##########################################################################
334
+ # Setup authentication
335
+ ##########################################################################
336
+ if config.CONFIG_DATABASE_URI is not None and \
337
+ len(config.CONFIG_DATABASE_URI) > 0:
338
+ app.config['SQLALCHEMY_DATABASE_URI'] = config.CONFIG_DATABASE_URI
339
+ else:
340
+ app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///{0}?timeout={1}' \
341
+ .format(config.SQLITE_PATH.replace('\\', '/'),
342
+ getattr(config, 'SQLITE_TIMEOUT', 500)
343
+ )
344
+
345
+ # Override USER_DOES_NOT_EXIST and INVALID_PASSWORD messages from flask.
346
+ app.config['SECURITY_MSG_USER_DOES_NOT_EXIST'] = \
347
+ app.config['SECURITY_MSG_INVALID_PASSWORD'] = \
348
+ (gettext("Incorrect username or password."), "error")
349
+ app.config['SECURITY_PASSWORD_LENGTH_MIN'] = config.PASSWORD_LENGTH_MIN
350
+
351
+ # Create database connection object and mailer
352
+ db.init_app(app)
353
+ Migrate(app, db)
354
+
355
+ ##########################################################################
356
+ # Upgrade the schema (if required)
357
+ ##########################################################################
358
+ from config import SQLITE_PATH
359
+ from pgadmin.setup import db_upgrade
360
+
361
+ def backup_db_file():
362
+ """
363
+ Create a backup of the current database file
364
+ and create new database file with default settings.
365
+ """
366
+ backup_file_name = "{0}.{1}".format(
367
+ SQLITE_PATH, datetime.now().strftime('%Y%m%d%H%M%S'))
368
+ os.rename(SQLITE_PATH, backup_file_name)
369
+ app.logger.error('Exception in database migration.')
370
+ app.logger.info('Creating new database file.')
371
+ try:
372
+ db_upgrade(app)
373
+ os.environ[
374
+ 'CORRUPTED_DB_BACKUP_FILE'] = backup_file_name
375
+ app.logger.info('Database migration completed.')
376
+ except Exception:
377
+ app.logger.error('Database migration failed')
378
+ app.logger.error(traceback.format_exc())
379
+ raise RuntimeError('Migration failed')
380
+
381
+ def upgrade_db():
382
+ """
383
+ Execute the migrations.
384
+ """
385
+ try:
386
+ db_upgrade(app)
387
+ os.environ['CORRUPTED_DB_BACKUP_FILE'] = ''
388
+ except Exception:
389
+ app.logger.error('Database migration failed')
390
+ app.logger.error(traceback.format_exc())
391
+ backup_db_file()
392
+
393
+ # check all tables are present in the db.
394
+ is_db_error, invalid_tb_names = check_db_tables()
395
+ if is_db_error:
396
+ app.logger.error(
397
+ 'Table(s) {0} are missing in the'
398
+ ' database'.format(invalid_tb_names))
399
+ backup_db_file()
400
+
401
+ def run_migration_for_sqlite():
402
+ with app.app_context():
403
+ # Run migration for the first time i.e. create database
404
+ # If version not available, user must have aborted. Tables are not
405
+ # created and so its an empty db
406
+ if not os.path.exists(SQLITE_PATH) or get_version() == -1:
407
+ # If running in cli mode then don't try to upgrade, just raise
408
+ # the exception
409
+ if not cli_mode:
410
+ upgrade_db()
411
+ else:
412
+ if not os.path.exists(SQLITE_PATH):
413
+ raise FileNotFoundError(
414
+ 'SQLite database file "' + SQLITE_PATH +
415
+ '" does not exists.')
416
+ raise RuntimeError(
417
+ 'The configuration database file is not valid.')
418
+ else:
419
+ schema_version = get_version()
420
+
421
+ # Run migration if current schema version is greater than the
422
+ # schema version stored in version table
423
+ if CURRENT_SCHEMA_VERSION > schema_version:
424
+ # Take a backup of the old database file.
425
+ try:
426
+ prev_database_file_name = \
427
+ "{0}.prev.bak".format(SQLITE_PATH)
428
+ shutil.copyfile(SQLITE_PATH, prev_database_file_name)
429
+ except Exception as e:
430
+ app.logger.error(e)
431
+
432
+ upgrade_db()
433
+ else:
434
+ # check all tables are present in the db.
435
+ is_db_error, invalid_tb_names = check_db_tables()
436
+ if is_db_error:
437
+ app.logger.error(
438
+ 'Table(s) {0} are missing in the'
439
+ ' database'.format(invalid_tb_names))
440
+ backup_db_file()
441
+
442
+ # Update schema version to the latest
443
+ if CURRENT_SCHEMA_VERSION > schema_version:
444
+ set_version(CURRENT_SCHEMA_VERSION)
445
+ db.session.commit()
446
+
447
+ if os.name != 'nt':
448
+ os.chmod(config.SQLITE_PATH, 0o600)
449
+
450
+ def run_migration_for_others():
451
+ with app.app_context():
452
+ # Run migration for the first time i.e. create database
453
+ # If version not available, user must have aborted. Tables are not
454
+ # created and so its an empty db
455
+ if get_version() == -1:
456
+ db_upgrade(app)
457
+ else:
458
+ schema_version = get_version()
459
+
460
+ # Run migration if current schema version is greater than
461
+ # the schema version stored in version table.
462
+ if CURRENT_SCHEMA_VERSION > schema_version:
463
+ db_upgrade(app)
464
+ # Update schema version to the latest
465
+ set_version(CURRENT_SCHEMA_VERSION)
466
+ db.session.commit()
467
+
468
+ # Run the migration as per specified by the user.
469
+ if config.CONFIG_DATABASE_URI is not None and \
470
+ len(config.CONFIG_DATABASE_URI) > 0:
471
+ run_migration_for_others()
472
+ else:
473
+ run_migration_for_sqlite()
474
+
475
+ Mail(app)
476
+
477
+ # Don't bother paths when running in cli mode
478
+ if not cli_mode:
479
+ from pgadmin.utils import paths
480
+ paths.init_app()
481
+
482
+ # Setup Flask-Security
483
+ user_datastore = SQLAlchemyUserDatastore(db, User, Role)
484
+ security = Security(None, user_datastore)
485
+
486
+ ##########################################################################
487
+ # Setup security
488
+ ##########################################################################
489
+ with app.app_context():
490
+ config.CSRF_SESSION_KEY = Keys.query.filter_by(
491
+ name='CSRF_SESSION_KEY').first().value
492
+ config.SECRET_KEY = Keys.query.filter_by(
493
+ name='SECRET_KEY').first().value
494
+ config.SECURITY_PASSWORD_SALT = Keys.query.filter_by(
495
+ name='SECURITY_PASSWORD_SALT').first().value
496
+
497
+ # Update the app.config with proper security keyes for signing CSRF data,
498
+ # signing cookies, and the SALT for hashing the passwords.
499
+ app.config.update(dict({
500
+ 'CSRF_SESSION_KEY': config.CSRF_SESSION_KEY,
501
+ 'SECRET_KEY': config.SECRET_KEY,
502
+ 'SECURITY_PASSWORD_SALT': config.SECURITY_PASSWORD_SALT,
503
+ 'SESSION_COOKIE_DOMAIN': config.SESSION_COOKIE_DOMAIN,
504
+ # CSRF Token expiration till session expires
505
+ 'WTF_CSRF_TIME_LIMIT': getattr(config, 'CSRF_TIME_LIMIT', None),
506
+ 'WTF_CSRF_METHODS': ['GET', 'POST', 'PUT', 'DELETE'],
507
+ # Disable deliverable check for email addresss
508
+ 'SECURITY_EMAIL_VALIDATOR_ARGS': config.SECURITY_EMAIL_VALIDATOR_ARGS,
509
+ # Disable CSRF for unauthenticated endpoints
510
+ 'SECURITY_CSRF_IGNORE_UNAUTH_ENDPOINTS': True
511
+ }))
512
+
513
+ app.config.update(dict({
514
+ 'INTERNAL': INTERNAL,
515
+ 'LDAP': LDAP,
516
+ 'KERBEROS': KERBEROS,
517
+ 'OAUTH2': OAUTH2,
518
+ 'WEBSERVER': WEBSERVER
519
+ }))
520
+
521
+ security.init_app(app, user_datastore)
522
+
523
+ # register custom unauthorised handler.
524
+ if sys.version_info < (3, 8):
525
+ app.login_manager.unauthorized_handler(pga_unauthorised)
526
+ else:
527
+ # Flask-Security-Too > 5.4.* requires custom unauth handeler
528
+ # to be registeres with it.
529
+ security.unauthn_handler(pga_unauthorised)
530
+
531
+ # Set the permanent session lifetime to the specified value in config file.
532
+ app.permanent_session_lifetime = timedelta(
533
+ days=config.SESSION_EXPIRATION_TIME)
534
+
535
+ if not cli_mode:
536
+ app.session_interface = create_session_interface(
537
+ app, config.SESSION_SKIP_PATHS
538
+ )
539
+
540
+ # Make the Session more secure against XSS & CSRF when running in web mode
541
+ if config.SERVER_MODE and config.ENHANCED_COOKIE_PROTECTION:
542
+ paranoid = Paranoid(app)
543
+ paranoid.redirect_view = _INDEX_PATH
544
+
545
+ ##########################################################################
546
+ # Load all available server drivers
547
+ ##########################################################################
548
+ driver.init_app(app)
549
+ authenticate.init_app(app)
550
+ heartbeat.init_app(app)
551
+
552
+ ##########################################################################
553
+ # Register language to the preferences after login
554
+ ##########################################################################
555
+ @user_logged_in.connect_via(app)
556
+ def register_language(sender, user):
557
+ # After logged in, set the language in the preferences if we get from
558
+ # the login page
559
+ data = request.form
560
+ if 'language' in data:
561
+ language = data['language']
562
+
563
+ # Set the user language preference
564
+ misc_preference = Preferences.module('misc')
565
+ user_languages = misc_preference.preference(
566
+ 'user_language'
567
+ )
568
+
569
+ if user_languages and language:
570
+ language = user_languages.set(language)
571
+
572
+ ##########################################################################
573
+ # Register any local servers we can discover
574
+ ##########################################################################
575
+ @user_logged_in.connect_via(app)
576
+ def on_user_logged_in(sender, user):
577
+
578
+ # If Auto Discover servers is turned off then return from the
579
+ # function.
580
+ if not config.AUTO_DISCOVER_SERVERS:
581
+ return
582
+
583
+ # Keep hold of the user ID
584
+ user_id = user.id
585
+
586
+ # Get the first server group for the user
587
+ servergroup_id = 1
588
+ servergroups = ServerGroup.query.filter_by(
589
+ user_id=user_id
590
+ ).order_by("id")
591
+
592
+ if int(servergroups.count()) > 0:
593
+ servergroup = servergroups.first()
594
+ servergroup_id = servergroup.id
595
+
596
+ '''Add a server to the config database'''
597
+
598
+ def add_server(user_id, servergroup_id, name, superuser, port,
599
+ discovery_id, comment):
600
+ # Create a server object if needed, and store it.
601
+ servers = Server.query.filter_by(
602
+ user_id=user_id,
603
+ discovery_id=svr_discovery_id
604
+ ).order_by("id")
605
+
606
+ if int(servers.count()) > 0:
607
+ return
608
+
609
+ svr = Server(user_id=user_id,
610
+ servergroup_id=servergroup_id,
611
+ name=name,
612
+ host='localhost',
613
+ port=port,
614
+ maintenance_db='postgres',
615
+ username=superuser,
616
+ connection_params={'sslmode': 'prefer',
617
+ 'connect_timeout': 10},
618
+ comment=comment,
619
+ discovery_id=discovery_id)
620
+
621
+ db.session.add(svr)
622
+ db.session.commit()
623
+
624
+ # Figure out what servers are present
625
+ if winreg is not None:
626
+ arch_keys = set()
627
+ proc_arch = os.environ['PROCESSOR_ARCHITECTURE'].lower()
628
+
629
+ try:
630
+ proc_arch64 = os.environ['PROCESSOR_ARCHITEW6432'].lower()
631
+ except Exception:
632
+ proc_arch64 = None
633
+
634
+ if proc_arch == 'x86' and not proc_arch64:
635
+ arch_keys.add(0)
636
+ elif proc_arch == 'x86' or proc_arch == 'amd64':
637
+ arch_keys.add(winreg.KEY_WOW64_32KEY)
638
+ arch_keys.add(winreg.KEY_WOW64_64KEY)
639
+
640
+ for arch_key in arch_keys:
641
+ for server_type in ('PostgreSQL', 'EnterpriseDB'):
642
+ try:
643
+ root_key = winreg.OpenKey(
644
+ winreg.HKEY_LOCAL_MACHINE,
645
+ "SOFTWARE\\" + server_type + "\\Services", 0,
646
+ winreg.KEY_READ | arch_key
647
+ )
648
+ for i in range(0, winreg.QueryInfoKey(root_key)[0]):
649
+ inst_id = winreg.EnumKey(root_key, i)
650
+ inst_key = winreg.OpenKey(root_key, inst_id)
651
+
652
+ svr_name = winreg.QueryValueEx(
653
+ inst_key, 'Display Name'
654
+ )[0]
655
+ svr_superuser = winreg.QueryValueEx(
656
+ inst_key, 'Database Superuser'
657
+ )[0]
658
+ svr_port = winreg.QueryValueEx(inst_key, 'Port')[0]
659
+ svr_discovery_id = inst_id
660
+ svr_comment = gettext(
661
+ "Auto-detected {0} installation with the data "
662
+ "directory at {1}").format(
663
+ winreg.QueryValueEx(
664
+ inst_key, 'Display Name'
665
+ )[0],
666
+ winreg.QueryValueEx(
667
+ inst_key, 'Data Directory'
668
+ )[0])
669
+
670
+ add_server(
671
+ user_id, servergroup_id, svr_name,
672
+ svr_superuser, svr_port,
673
+ svr_discovery_id, svr_comment
674
+ )
675
+
676
+ inst_key.Close()
677
+ except Exception:
678
+ pass
679
+ else:
680
+ # We use the postgres-winreg.ini file on non-Windows
681
+ from configparser import ConfigParser
682
+
683
+ registry = ConfigParser()
684
+
685
+ try:
686
+ registry.read('/etc/postgres-reg.ini')
687
+ sections = registry.sections()
688
+
689
+ # Loop the sections, and get the data from any that are PG or PPAS
690
+ for section in sections:
691
+ if (
692
+ section.startswith('PostgreSQL/') or
693
+ section.startswith('EnterpriseDB/')
694
+ ):
695
+ svr_name = registry.get(section, 'Description')
696
+ svr_superuser = registry.get(section, 'Superuser')
697
+
698
+ # getint function throws exception if value is blank.
699
+ # Ex: Port=
700
+ # In such case we should handle the exception and continue
701
+ # to read the next section of the config file.
702
+ try:
703
+ svr_port = registry.getint(section, 'Port')
704
+ except ValueError:
705
+ continue
706
+
707
+ svr_discovery_id = section
708
+ description = registry.get(section, 'Description')
709
+ data_directory = registry.get(section, 'DataDirectory')
710
+ svr_comment = gettext("Auto-detected {0} installation "
711
+ "with the data directory at {1}"
712
+ ).format(description, data_directory)
713
+ add_server(user_id, servergroup_id, svr_name,
714
+ svr_superuser, svr_port, svr_discovery_id,
715
+ svr_comment)
716
+
717
+ except Exception as e:
718
+ print(str(e))
719
+ db.session.rollback()
720
+
721
+ @user_logged_in.connect_via(app)
722
+ @user_logged_out.connect_via(app)
723
+ def force_session_write(app, user):
724
+ session.force_write = True
725
+
726
+ @user_logged_in.connect_via(app)
727
+ def store_crypt_key(app, user):
728
+ # in desktop mode, master password is used to encrypt/decrypt
729
+ # and is stored in the keyManager memory
730
+ if config.SERVER_MODE and 'password' in request.form:
731
+ current_app.keyManager.set(request.form['password'])
732
+
733
+ @user_logged_out.connect_via(app)
734
+ def current_user_cleanup(app, user):
735
+ from config import PG_DEFAULT_DRIVER
736
+ from pgadmin.utils.driver import get_driver
737
+ from flask import current_app
738
+
739
+ for mdl in current_app.logout_hooks:
740
+ try:
741
+ mdl.on_logout()
742
+ except Exception as e:
743
+ current_app.logger.exception(e)
744
+
745
+ _driver = get_driver(PG_DEFAULT_DRIVER)
746
+ _driver.gc_own()
747
+
748
+ # remove key
749
+ current_app.keyManager.reset()
750
+
751
+ ##########################################################################
752
+ # Load plugin modules
753
+ ##########################################################################
754
+ from .submodules import get_submodules
755
+ for module in get_submodules():
756
+ app.logger.info('Registering blueprint module: %s' % module)
757
+ if app.blueprints.get(module.name) is None:
758
+ app.register_blueprint(module)
759
+ app.register_logout_hook(module)
760
+
761
+ @app.before_request
762
+ def limit_host_addr():
763
+ """
764
+ This function validate the hosts from ALLOWED_HOSTS before allowing
765
+ HTTP request to avoid Host Header Injection attack
766
+ :return: None/JSON response with 403 HTTP status code
767
+ """
768
+ client_host = str(request.host).split(':', maxsplit=1)[0]
769
+ valid = True
770
+ allowed_hosts = config.ALLOWED_HOSTS
771
+
772
+ if len(allowed_hosts) != 0:
773
+ regex = re.compile(
774
+ r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(?:/\d{1,2}|)')
775
+ # Create separate list for ip addresses and host names
776
+ ip_set = list(filter(lambda ip: regex.match(ip), allowed_hosts))
777
+ host_set = list(filter(lambda ip: not regex.match(ip),
778
+ allowed_hosts))
779
+ is_ip = regex.match(client_host)
780
+ if is_ip:
781
+ ip_address = []
782
+ for ip in ip_set:
783
+ ip_address.extend(list(ipaddress.ip_network(ip)))
784
+ valid = ip_address.__contains__(
785
+ ipaddress.ip_address(client_host)
786
+ )
787
+ else:
788
+ valid = host_set.__contains__(client_host)
789
+
790
+ if not valid:
791
+ return make_json_response(
792
+ status=403, success=0,
793
+ errormsg=_("403 FORBIDDEN")
794
+ )
795
+
796
+ ##########################################################################
797
+ # Handle the desktop login
798
+ ##########################################################################
799
+
800
+ @app.before_request
801
+ def before_request():
802
+ """Login the default user if running in desktop mode"""
803
+
804
+ # Check the auth key is valid, if it's set, and we're not in server
805
+ # mode, and it's not a help file request.
806
+
807
+ if not config.SERVER_MODE and app.PGADMIN_INT_KEY != '' and ((
808
+ 'key' not in request.args or
809
+ request.args['key'] != app.PGADMIN_INT_KEY) and
810
+ request.cookies.get('PGADMIN_INT_KEY') != app.PGADMIN_INT_KEY and
811
+ request.endpoint != 'help.static'
812
+ ):
813
+ abort(401)
814
+
815
+ if not config.SERVER_MODE and not current_user.is_authenticated:
816
+ user = user_datastore.find_user(email=config.DESKTOP_USER)
817
+ # Throw an error if we failed to find the desktop user, to give
818
+ # the sysadmin a hint. We'll continue to try to login anyway as
819
+ # that'll through a nice 500 error for us.
820
+ if user is None:
821
+ app.logger.error(
822
+ 'The desktop user %s was not found in the configuration '
823
+ 'database.'
824
+ % config.DESKTOP_USER
825
+ )
826
+ abort(401)
827
+ login_user(user)
828
+ elif config.SERVER_MODE and not current_user.is_authenticated and \
829
+ request.endpoint in ('redirects.index', 'security.login') and \
830
+ app.PGADMIN_EXTERNAL_AUTH_SOURCE in [KERBEROS, WEBSERVER]:
831
+ return authenticate.login()
832
+ # if the server is restarted the in memory key will be lost
833
+ # but the user session may still be active. Logout the user
834
+ # to get the key again when login
835
+ if config.SERVER_MODE and current_user.is_authenticated and \
836
+ app.PGADMIN_EXTERNAL_AUTH_SOURCE not in [
837
+ KERBEROS, OAUTH2, WEBSERVER] and \
838
+ current_app.keyManager.get() is None and \
839
+ request.endpoint not in ('security.login', 'security.logout'):
840
+ logout_user()
841
+
842
+ @app.after_request
843
+ def after_request(response):
844
+ if 'key' in request.args:
845
+ domain = dict()
846
+ if config.COOKIE_DEFAULT_DOMAIN and \
847
+ config.COOKIE_DEFAULT_DOMAIN != 'localhost':
848
+ domain['domain'] = config.COOKIE_DEFAULT_DOMAIN
849
+ response.set_cookie('PGADMIN_INT_KEY', value=request.args['key'],
850
+ path=config.SESSION_COOKIE_PATH,
851
+ secure=config.SESSION_COOKIE_SECURE,
852
+ httponly=config.SESSION_COOKIE_HTTPONLY,
853
+ samesite=config.SESSION_COOKIE_SAMESITE,
854
+ **domain)
855
+
856
+ SecurityHeaders.set_response_headers(response)
857
+ return response
858
+
859
+ ##########################################################################
860
+ # Cache busting
861
+ ##########################################################################
862
+
863
+ # Version number to be added to all static file url requests
864
+ # This is used by url_for function when generating urls
865
+ # This will solve caching issues when application is upgrading
866
+ # This is called - Cache Busting
867
+ @app.url_defaults
868
+ def add_internal_version(endpoint, values):
869
+ extensions = config.APP_VERSION_EXTN
870
+
871
+ # Add the internal version only if it is set
872
+ if config.APP_VERSION_PARAM is not None and \
873
+ config.APP_VERSION_PARAM != '':
874
+ # If there is a filename, add the version
875
+ if 'filename' in values \
876
+ and values['filename'].endswith(extensions):
877
+ values[config.APP_VERSION_PARAM] = config.APP_VERSION_INT
878
+ else:
879
+ # Sometimes there may be direct endpoint for some files
880
+ # There will be only one rule for such endpoints
881
+ urls = [url for url in app.url_map.iter_rules(endpoint)]
882
+ if len(urls) == 1 and urls[0].rule.endswith(extensions):
883
+ values[config.APP_VERSION_PARAM] = \
884
+ config.APP_VERSION_INT
885
+
886
+ # Strip away internal version param before sending further to app as it was
887
+ # required for cache busting only
888
+ @app.url_value_preprocessor
889
+ def strip_version_number(endpoint, values):
890
+ if values and config.APP_VERSION_PARAM in values:
891
+ values.pop(config.APP_VERSION_PARAM)
892
+
893
+ ##########################################################################
894
+ # Minify output. Not required in desktop mode
895
+ ##########################################################################
896
+ if not config.DEBUG and config.SERVER_MODE:
897
+ from flask_compress import Compress
898
+ Compress(app)
899
+
900
+ @app.context_processor
901
+ def inject_blueprint():
902
+ """
903
+ Inject a reference to the current blueprint, if any.
904
+ """
905
+
906
+ return {
907
+ 'current_app': current_app,
908
+ 'current_blueprint': current_blueprint,
909
+ }
910
+
911
+ @app.errorhandler(Exception)
912
+ def all_exception_handler(e):
913
+ current_app.logger.error(e, exc_info=True)
914
+ return internal_server_error(errormsg=str(e))
915
+
916
+ # Exclude HTTPexception from above handler (all_exception_handler)
917
+ # HTTPException are user defined exceptions and those should be returned
918
+ # as is
919
+ @app.errorhandler(HTTPException)
920
+ def http_exception_handler(e):
921
+ current_app.logger.error(e, exc_info=True)
922
+ return e
923
+
924
+ # Intialize the key manager
925
+ app.keyManager = KeyManager()
926
+
927
+ ##########################################################################
928
+ # Protection against CSRF attacks
929
+ ##########################################################################
930
+ with app.app_context():
931
+ pgCSRFProtect.init_app(app)
932
+
933
+ ##########################################################################
934
+ # All done!
935
+ ##########################################################################
936
+ socketio.init_app(app, cors_allowed_origins="*")
937
+ return app
pgsql/pgAdmin 4/web/pgadmin/about/__init__.py ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##########################################################################
2
+ #
3
+ # pgAdmin 4 - PostgreSQL Tools
4
+ #
5
+ # Copyright (C) 2013 - 2024, The pgAdmin Development Team
6
+ # This software is released under the PostgreSQL Licence
7
+ #
8
+ ##########################################################################
9
+
10
+ """A blueprint module implementing the about box."""
11
+
12
+ from flask import Response, render_template, request
13
+ from flask_babel import gettext
14
+ from flask_security import current_user
15
+ from pgadmin.user_login_check import pga_login_required
16
+ from pgadmin.utils import PgAdminModule
17
+ from pgadmin.utils.menu import MenuItem
18
+ from pgadmin.utils.constants import MIMETYPE_APP_JS
19
+ from pgadmin.utils.ajax import make_json_response
20
+ import config
21
+ import httpagentparser
22
+ from pgadmin.model import User
23
+ from user_agents import parse
24
+ import platform
25
+
26
+ MODULE_NAME = 'about'
27
+
28
+
29
+ class AboutModule(PgAdminModule):
30
+ def get_own_menuitems(self):
31
+ appname = config.APP_NAME
32
+
33
+ return {
34
+ 'help_items': [
35
+ MenuItem(
36
+ name='mnu_about',
37
+ priority=999,
38
+ module="pgAdmin.About",
39
+ callback='about_show',
40
+ icon='fa fa-info-circle',
41
+ label=gettext('About %(appname)s', appname=appname)
42
+ )
43
+ ]
44
+ }
45
+
46
+ def get_exposed_url_endpoints(self):
47
+ return ['about.index']
48
+
49
+
50
+ blueprint = AboutModule(MODULE_NAME, __name__, static_url_path='')
51
+
52
+
53
+ ##########################################################################
54
+ # A test page
55
+ ##########################################################################
56
+ @blueprint.route("/", endpoint='index')
57
+ @pga_login_required
58
+ def index():
59
+ """Render the about box."""
60
+ info = {}
61
+ # Get OS , NW.js, Browser details
62
+ browser, os_details, nwjs_version = detect_browser(request)
63
+ admin = is_admin(current_user.email)
64
+
65
+ if nwjs_version:
66
+ info['nwjs'] = nwjs_version
67
+
68
+ if config.SERVER_MODE:
69
+ info['app_mode'] = gettext('Server')
70
+ else:
71
+ info['app_mode'] = gettext('Desktop')
72
+
73
+ info['browser_details'] = browser
74
+ info['version'] = config.APP_VERSION
75
+ info['admin'] = admin
76
+ info['current_user'] = current_user.email
77
+
78
+ if admin:
79
+ settings = ""
80
+ info['os_details'] = os_details
81
+ info['log_file'] = config.LOG_FILE
82
+
83
+ # If external datbase is used do not display SQLITE_PATH
84
+ if not config.CONFIG_DATABASE_URI:
85
+ info['config_db'] = config.SQLITE_PATH
86
+
87
+ for setting in dir(config):
88
+ if not setting.startswith('_') and setting.isupper() and \
89
+ setting not in ['CSRF_SESSION_KEY',
90
+ 'SECRET_KEY',
91
+ 'SECURITY_PASSWORD_SALT',
92
+ 'SECURITY_PASSWORD_HASH',
93
+ 'ALLOWED_HOSTS',
94
+ 'MAIL_PASSWORD',
95
+ 'LDAP_BIND_PASSWORD',
96
+ 'SECURITY_PASSWORD_HASH']:
97
+ if isinstance(getattr(config, setting), str):
98
+ settings = \
99
+ settings + '{} = "{}"\n'.format(
100
+ setting, getattr(config, setting))
101
+ else:
102
+ settings = \
103
+ settings + '{} = {}\n'.format(
104
+ setting, getattr(config, setting))
105
+
106
+ info['settings'] = settings
107
+
108
+ return make_json_response(
109
+ data=info,
110
+ status=200
111
+ )
112
+
113
+
114
+ def is_admin(load_user):
115
+ user = User.query.filter_by(email=load_user).first()
116
+ return user.has_role("Administrator")
117
+
118
+
119
+ def detect_browser(request):
120
+ """This function returns the browser and os details"""
121
+ nwjs_version = None
122
+ agent = request.environ.get('HTTP_USER_AGENT')
123
+ os_details = parse(platform.platform()).ua_string
124
+
125
+ if 'Nwjs' in agent:
126
+ agent = agent.split('-')
127
+ nwjs_version = agent[0].split(':')[1]
128
+ browser = 'Chromium' + ' ' + agent[2]
129
+
130
+ else:
131
+ browser = httpagentparser.detect(agent)
132
+ if not browser:
133
+ browser = agent.split('/')[0]
134
+ else:
135
+ browser = browser['browser']['name'] + ' ' + browser['browser'][
136
+ 'version']
137
+
138
+ return browser, os_details, nwjs_version
139
+
140
+
141
+ @blueprint.route("/about.js")
142
+ @pga_login_required
143
+ def script():
144
+ """render the required javascript"""
145
+ return Response(
146
+ response=render_template("about/about.js", _=gettext),
147
+ status=200,
148
+ mimetype=MIMETYPE_APP_JS
149
+ )
pgsql/pgAdmin 4/web/pgadmin/authenticate/__init__.py ADDED
@@ -0,0 +1,341 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##########################################################################
2
+ #
3
+ # pgAdmin 4 - PostgreSQL Tools
4
+ #
5
+ # Copyright (C) 2013 - 2024, The pgAdmin Development Team
6
+ # This software is released under the PostgreSQL Licence
7
+ #
8
+ ##########################################################################
9
+
10
+ """A blueprint module implementing the Authentication."""
11
+
12
+ import config
13
+ import copy
14
+ import functools
15
+ from threading import Lock
16
+
17
+ from flask import current_app, flash, Response, request, url_for, \
18
+ session, redirect, render_template
19
+ from flask_babel import gettext
20
+ from flask_security.views import _security, _ctx
21
+ from flask_security.utils import logout_user, config_value
22
+
23
+ from flask_login import current_user
24
+ from flask_socketio import disconnect, ConnectionRefusedError
25
+
26
+ from pgadmin.model import db, User
27
+ from pgadmin.utils.constants import KERBEROS, INTERNAL, OAUTH2, LDAP,\
28
+ MessageType
29
+ import pgadmin.utils as pga_utils
30
+ from pgadmin.authenticate.registry import AuthSourceRegistry
31
+
32
+ MODULE_NAME = 'authenticate'
33
+ auth_obj = None
34
+
35
+ _URL_WITH_NEXT_PARAM = "{0}?next={1}"
36
+
37
+
38
+ class AuthLocker:
39
+ """Implementing lock while authentication."""
40
+ lock = Lock()
41
+
42
+ def __enter__(self):
43
+ self.lock.acquire()
44
+ return self
45
+
46
+ def __exit__(self, type, value, traceback):
47
+ if self.lock.locked():
48
+ self.lock.release()
49
+
50
+
51
+ def get_logout_url() -> str:
52
+ """
53
+ Returns the logout url based on the current authentication method.
54
+
55
+ Returns:
56
+ str: logout url
57
+ """
58
+ BROWSER_INDEX = 'browser.index'
59
+ if config.SERVER_MODE and\
60
+ session['auth_source_manager']['current_source'] == \
61
+ KERBEROS:
62
+ return _URL_WITH_NEXT_PARAM.format(url_for(
63
+ 'kerberos.logout'), url_for(BROWSER_INDEX))
64
+ elif config.SERVER_MODE and\
65
+ session['auth_source_manager']['current_source'] == \
66
+ OAUTH2:
67
+ return _URL_WITH_NEXT_PARAM.format(url_for(
68
+ 'oauth2.logout'), url_for(BROWSER_INDEX))
69
+
70
+ return _URL_WITH_NEXT_PARAM.format(
71
+ url_for('security.logout'), url_for(BROWSER_INDEX))
72
+
73
+
74
+ def socket_login_required(f):
75
+ @functools.wraps(f)
76
+ def wrapped(*args, **kwargs):
77
+ if not current_user.is_authenticated:
78
+ disconnect()
79
+ raise ConnectionRefusedError("Unauthorised !")
80
+ else:
81
+ return f(*args, **kwargs)
82
+ return wrapped
83
+
84
+
85
+ class AuthenticateModule(pga_utils.PgAdminModule):
86
+ def get_exposed_url_endpoints(self):
87
+ return ['authenticate.login']
88
+
89
+
90
+ blueprint = AuthenticateModule(MODULE_NAME, __name__, static_url_path='')
91
+
92
+
93
+ @blueprint.route('/login', endpoint='login', methods=['GET', 'POST'])
94
+ def login():
95
+ """
96
+ Entry point for all the authentication sources.
97
+ The user input will be validated and authenticated.
98
+ """
99
+ with AuthLocker():
100
+ return _login()
101
+
102
+
103
+ def _login():
104
+ """
105
+ Internal authentication process locked by a mutex.
106
+ """
107
+ form = _security.forms.get('login_form').cls(request.form)
108
+ if OAUTH2 in config.AUTHENTICATION_SOURCES \
109
+ and 'oauth2_button' in request.form:
110
+ # Sending empty form as oauth2 does not require form attribute
111
+ auth_obj = AuthSourceManager({}, copy.deepcopy(
112
+ config.AUTHENTICATION_SOURCES))
113
+ session['auth_obj'] = auth_obj
114
+ else:
115
+ auth_obj = AuthSourceManager(form, copy.deepcopy(
116
+ config.AUTHENTICATION_SOURCES))
117
+
118
+ session['auth_source_manager'] = None
119
+
120
+ username = form.data['email']
121
+ user = User.query.filter_by(username=username,
122
+ auth_source=INTERNAL).first()
123
+
124
+ if user:
125
+ if user.login_attempts >= config.MAX_LOGIN_ATTEMPTS > 0:
126
+ user.locked = True
127
+ else:
128
+ user.locked = False
129
+ db.session.commit()
130
+
131
+ if user.login_attempts >= config.MAX_LOGIN_ATTEMPTS > 0:
132
+ flash(gettext('Your account is locked. Please contact the '
133
+ 'Administrator.'),
134
+ MessageType.WARNING)
135
+ logout_user()
136
+ return redirect(pga_utils.get_safe_post_logout_redirect())
137
+
138
+ # Validate the user
139
+ if not auth_obj.validate():
140
+ for field in form.errors:
141
+ flash_login_attempt_error = None
142
+ if user and field in config.LOGIN_ATTEMPT_FIELDS:
143
+ if config.MAX_LOGIN_ATTEMPTS > 0:
144
+ user.login_attempts += 1
145
+ left_attempts = \
146
+ config.MAX_LOGIN_ATTEMPTS - user.login_attempts
147
+ if left_attempts > 1:
148
+ flash_login_attempt_error = \
149
+ gettext('{0} more attempts remaining.'.
150
+ format(left_attempts))
151
+ else:
152
+ flash_login_attempt_error = \
153
+ gettext('{0} more attempt remaining.'.
154
+ format(left_attempts))
155
+ db.session.commit()
156
+ for error in form.errors[field]:
157
+ if flash_login_attempt_error:
158
+ error = error + flash_login_attempt_error
159
+ flash_login_attempt_error = None
160
+ flash(error, MessageType.WARNING)
161
+
162
+ return redirect(pga_utils.get_safe_post_logout_redirect())
163
+
164
+ # Authenticate the user
165
+ status, msg = auth_obj.authenticate()
166
+ if status:
167
+ # Login the user
168
+ status, msg = auth_obj.login()
169
+ current_auth_obj = auth_obj.as_dict()
170
+
171
+ if not status:
172
+ if current_auth_obj['current_source'] == \
173
+ KERBEROS:
174
+ return redirect('{0}?next={1}'.format(url_for(
175
+ 'authenticate.kerberos_login'), url_for('browser.index')))
176
+
177
+ flash(msg, MessageType.ERROR)
178
+ return redirect(pga_utils.get_safe_post_logout_redirect())
179
+
180
+ session['auth_source_manager'] = current_auth_obj
181
+
182
+ if user:
183
+ user.login_attempts = 0
184
+ db.session.commit()
185
+
186
+ if 'auth_obj' in session:
187
+ session.pop('auth_obj')
188
+ return redirect(pga_utils.get_safe_post_login_redirect())
189
+
190
+ elif isinstance(msg, Response):
191
+ return msg
192
+ elif 'oauth2_button' in request.form and not isinstance(msg, str):
193
+ return msg
194
+ if 'auth_obj' in session:
195
+ session.pop('auth_obj')
196
+ flash(msg, MessageType.ERROR)
197
+ form_class = _security.forms.get('login_form').cls
198
+ form = form_class()
199
+
200
+ return _security.render_template(
201
+ config_value('LOGIN_USER_TEMPLATE'),
202
+ login_user_form=form, **_ctx('login'))
203
+
204
+
205
+ class AuthSourceManager:
206
+ """This class will manage all the authentication sources.
207
+ """
208
+
209
+ def __init__(self, form, sources):
210
+ self.form = form
211
+ self.auth_sources = sources
212
+ self.source = None
213
+ self.source_friendly_name = INTERNAL
214
+ self.current_source = INTERNAL
215
+ self.update_auth_sources()
216
+
217
+ def as_dict(self):
218
+ """
219
+ Returns the dictionary object representing this object.
220
+ """
221
+
222
+ res = dict()
223
+ res['source_friendly_name'] = self.source_friendly_name
224
+ res['auth_sources'] = self.auth_sources
225
+ res['current_source'] = self.current_source
226
+
227
+ return res
228
+
229
+ def update_auth_sources(self):
230
+ for auth_src in [KERBEROS, OAUTH2]:
231
+ if auth_src in self.auth_sources:
232
+ if 'internal_button' in request.form:
233
+ self.auth_sources.remove(auth_src)
234
+ else:
235
+ if INTERNAL in self.auth_sources:
236
+ self.auth_sources.remove(INTERNAL)
237
+ if LDAP in self.auth_sources:
238
+ self.auth_sources.remove(LDAP)
239
+
240
+ def set_current_source(self, source):
241
+ self.current_source = source
242
+
243
+ @property
244
+ def get_current_source(self):
245
+ return self.current_source
246
+
247
+ def set_source(self, source):
248
+ self.source = source
249
+
250
+ @property
251
+ def get_source(self):
252
+ return self.source
253
+
254
+ def set_source_friendly_name(self, name):
255
+ self.source_friendly_name = name
256
+
257
+ @property
258
+ def get_source_friendly_name(self):
259
+ return self.source_friendly_name
260
+
261
+ def validate(self):
262
+ """Validate through all the sources."""
263
+ err_msg = None
264
+ for src in self.auth_sources:
265
+ source = get_auth_sources(src)
266
+ status, err_msg = source.validate(self.form)
267
+ if status:
268
+ return True
269
+ if err_msg:
270
+ flash(err_msg, MessageType.WARNING)
271
+ return False
272
+
273
+ def authenticate(self):
274
+ """Authenticate through all the sources."""
275
+ status = False
276
+ msg = None
277
+ for src in self.auth_sources:
278
+ source = get_auth_sources(src)
279
+ self.set_source(source)
280
+ current_app.logger.debug(
281
+ "Authentication initiated via source: %s" %
282
+ source.get_source_name())
283
+
284
+ status, msg = source.authenticate(self.form)
285
+
286
+ if status:
287
+ self.set_current_source(source.get_source_name())
288
+ if msg is not None and 'username' in msg:
289
+ self.form._fields['email'].data = msg['username']
290
+ return status, msg
291
+ else:
292
+ current_app.logger.debug(
293
+ "Authentication initiated via source: %s is failed." %
294
+ source.get_source_name())
295
+
296
+ return status, msg
297
+
298
+ def login(self):
299
+ status, msg = self.source.login(self.form)
300
+ if status:
301
+ self.set_source_friendly_name(self.source.get_friendly_name())
302
+ current_app.logger.debug(
303
+ "Authentication and Login successfully done via source : %s" %
304
+ self.source.get_source_name())
305
+
306
+ # Set the login, logout view as per source if available
307
+ current_app.login_manager.login_view = getattr(
308
+ self.source, 'LOGIN_VIEW', 'security.login')
309
+ current_app.login_manager.logout_view = getattr(
310
+ self.source, 'LOGOUT_VIEW', 'security.logout')
311
+
312
+ return status, msg
313
+
314
+
315
+ def get_auth_sources(type):
316
+ """Get the authenticated source object from the registry"""
317
+
318
+ auth_sources = getattr(current_app, '_pgadmin_auth_sources', None)
319
+
320
+ if auth_sources is None or not isinstance(auth_sources, dict):
321
+ auth_sources = dict()
322
+
323
+ if type in auth_sources:
324
+ return auth_sources[type]
325
+
326
+ auth_source = AuthSourceRegistry.get(type)
327
+
328
+ if auth_source is not None:
329
+ auth_sources[type] = auth_source
330
+ setattr(current_app, '_pgadmin_auth_sources', auth_sources)
331
+
332
+ return auth_source
333
+
334
+
335
+ def init_app(app):
336
+ auth_sources = dict()
337
+
338
+ setattr(app, '_pgadmin_auth_sources', auth_sources)
339
+ AuthSourceRegistry.load_modules(app)
340
+
341
+ return auth_sources
pgsql/pgAdmin 4/web/pgadmin/authenticate/internal.py ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##########################################################################
2
+ #
3
+ # pgAdmin 4 - PostgreSQL Tools
4
+ #
5
+ # Copyright (C) 2013 - 2024, The pgAdmin Development Team
6
+ # This software is released under the PostgreSQL Licence
7
+ #
8
+ ##########################################################################
9
+
10
+ """Implements Internal Authentication"""
11
+
12
+ from flask import current_app, flash
13
+ from flask_security import login_user
14
+ from abc import abstractmethod, abstractproperty
15
+ from flask_babel import gettext
16
+
17
+ from .registry import AuthSourceRegistry
18
+ from pgadmin.model import User
19
+ from pgadmin.utils.validation_utils import validate_email
20
+ from pgadmin.utils.constants import INTERNAL
21
+
22
+
23
+ class BaseAuthentication(metaclass=AuthSourceRegistry):
24
+
25
+ DEFAULT_MSG = {
26
+ 'USER_DOES_NOT_EXIST': gettext('Incorrect username or password.'),
27
+ 'LOGIN_FAILED': gettext('Login failed'),
28
+ 'EMAIL_NOT_PROVIDED': gettext('Email/Username not provided'),
29
+ 'PASSWORD_NOT_PROVIDED': gettext('Password not provided'),
30
+ 'INVALID_EMAIL': gettext('Email/Username is not valid')
31
+ }
32
+ LOGIN_VIEW = 'security.login'
33
+ LOGOUT_VIEW = 'security.logout'
34
+
35
+ @abstractmethod
36
+ def get_source_name(self):
37
+ pass
38
+
39
+ @abstractmethod
40
+ def get_friendly_name(self):
41
+ pass
42
+
43
+ @abstractmethod
44
+ def authenticate(self):
45
+ pass
46
+
47
+ def validate(self, form):
48
+ username = form.data['email']
49
+ password = form.data['password']
50
+
51
+ if username is None or username == '':
52
+ form.email.errors = list(form.email.errors)
53
+ form.email.errors.append(gettext(
54
+ self.messages('EMAIL_NOT_PROVIDED')))
55
+ return False, None
56
+ if password is None or password == '':
57
+ form.password.errors = list(form.password.errors)
58
+ form.password.errors.append(
59
+ self.messages('PASSWORD_NOT_PROVIDED'))
60
+ return False, None
61
+
62
+ return True, None
63
+
64
+ def login(self, form):
65
+ username = form.data['email']
66
+ user = getattr(form, 'user', None)
67
+
68
+ if user is None:
69
+ user = User.query.filter_by(username=username).first()
70
+
71
+ if user is None:
72
+ current_app.logger.exception(
73
+ self.messages('USER_DOES_NOT_EXIST'))
74
+ return False, self.messages('USER_DOES_NOT_EXIST')
75
+
76
+ # Login user through flask_security
77
+ status = login_user(user)
78
+ if not status:
79
+ current_app.logger.exception(self.messages('LOGIN_FAILED'))
80
+ return False, self.messages('LOGIN_FAILED')
81
+ current_app.logger.info(
82
+ "Internal user {0} logged in.".format(username))
83
+ return True, None
84
+
85
+ def messages(self, msg_key):
86
+ return self.DEFAULT_MSG[msg_key] if msg_key in self.DEFAULT_MSG\
87
+ else None
88
+
89
+
90
+ class InternalAuthentication(BaseAuthentication):
91
+
92
+ def get_source_name(self):
93
+ return INTERNAL
94
+
95
+ def get_friendly_name(self):
96
+ return gettext("internal")
97
+
98
+ def validate(self, form):
99
+ """User validation"""
100
+ # validate the email id first
101
+ if not validate_email(form.data['email']):
102
+ return False, self.messages('INVALID_EMAIL')
103
+ # Flask security validation
104
+ submit = form.validate_on_submit()
105
+ return submit, None
106
+
107
+ def authenticate(self, form):
108
+ username = form.data['email']
109
+ if form.validate_on_submit():
110
+ user = getattr(form, 'user',
111
+ User.query.filter_by(username=username).first())
112
+ if user and user.is_authenticated:
113
+ return True, None
114
+ return False, self.messages('USER_DOES_NOT_EXIST')
pgsql/pgAdmin 4/web/pgadmin/authenticate/kerberos.py ADDED
@@ -0,0 +1,288 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##########################################################################
2
+ #
3
+ # pgAdmin 4 - PostgreSQL Tools
4
+ #
5
+ # Copyright (C) 2013 - 2024, The pgAdmin Development Team
6
+ # This software is released under the PostgreSQL Licence
7
+ #
8
+ ##########################################################################
9
+
10
+ """A blueprint module implementing the Spnego/Kerberos authentication."""
11
+
12
+ import base64
13
+ from os import environ, path, remove
14
+
15
+ from werkzeug.datastructures import Headers, MultiDict
16
+ from flask_babel import gettext
17
+ from flask import request, Response, session,\
18
+ current_app, render_template, flash, url_for
19
+ from flask_security.views import _security
20
+ from flask_security.utils import logout_user
21
+ from pgadmin.user_login_check import pga_login_required
22
+
23
+ import config
24
+ from pgadmin.model import User
25
+ from pgadmin.tools.user_management import create_user
26
+ from pgadmin.utils.constants import KERBEROS, MessageType
27
+ from pgadmin.utils import PgAdminModule
28
+ from pgadmin.utils.ajax import make_json_response, internal_server_error
29
+
30
+
31
+ from pgadmin.authenticate.internal import BaseAuthentication
32
+ from pgadmin.authenticate import get_auth_sources
33
+ from pgadmin.utils.csrf import pgCSRFProtect
34
+
35
+
36
+ try:
37
+ import gssapi
38
+ KERBEROS_AUTH_AVAILABLE = True
39
+ except ImportError:
40
+ # Do not fail at this time, as this could be a desktop mode.
41
+ # Instead throw the runtime error, when the server attempts
42
+ # to use this authentication method.
43
+ KERBEROS_AUTH_AVAILABLE = False
44
+ except OSError:
45
+ # On Windows, it fails with OSError, when KFW libraries not found.
46
+ # Instead throw the runtime error, when the server attempts
47
+ # to use this authentication method.
48
+ KERBEROS_AUTH_AVAILABLE = False
49
+
50
+ # Set the Kerberos config file
51
+ if config.KRB_KTNAME and config.KRB_KTNAME != '<KRB5_KEYTAB_FILE>':
52
+ environ['KRB5_KTNAME'] = config.KRB_KTNAME
53
+
54
+
55
+ class KerberosModule(PgAdminModule):
56
+ def register(self, app, options):
57
+ # Do not look for the sub_modules,
58
+ # instead call blueprint.register(...) directly
59
+ super().register(app, options)
60
+
61
+ def get_exposed_url_endpoints(self):
62
+ return ['kerberos.login',
63
+ 'kerberos.logout',
64
+ 'kerberos.update_ticket',
65
+ 'kerberos.validate_ticket']
66
+
67
+
68
+ def init_app(app):
69
+ MODULE_NAME = 'kerberos'
70
+
71
+ blueprint = KerberosModule(MODULE_NAME, __name__, static_url_path='')
72
+
73
+ @blueprint.route("/login",
74
+ endpoint="login", methods=["GET"])
75
+ @pgCSRFProtect.exempt
76
+ def kerberos_login():
77
+ logout_user()
78
+ return Response(render_template("browser/kerberos_login.html",
79
+ login_url=url_for('security.login'),
80
+ ))
81
+
82
+ @blueprint.route("/logout",
83
+ endpoint="logout", methods=["GET"])
84
+ @pgCSRFProtect.exempt
85
+ def kerberos_logout():
86
+ logout_user()
87
+ if 'KRB5CCNAME' in session:
88
+ # Remove the credential cache
89
+ cache_file_path = session['KRB5CCNAME'].split(":")[1]
90
+ if path.exists(cache_file_path):
91
+ remove(cache_file_path)
92
+
93
+ return Response(render_template("browser/kerberos_logout.html",
94
+ login_url=url_for('security.login'),
95
+ ))
96
+
97
+ @blueprint.route("/update_ticket",
98
+ endpoint="update_ticket", methods=["GET"])
99
+ @pgCSRFProtect.exempt
100
+ @pga_login_required
101
+ def kerberos_update_ticket():
102
+ """
103
+ Update the kerberos ticket.
104
+ """
105
+ from werkzeug.datastructures import Headers
106
+ headers = Headers()
107
+
108
+ authorization = request.headers.get("Authorization", None)
109
+
110
+ if authorization is None:
111
+ # Send the Negotiate header to the client
112
+ # if Kerberos ticket is not found.
113
+ headers.add('WWW-Authenticate', 'Negotiate')
114
+ return Response("Unauthorised", 401, headers)
115
+ else:
116
+ source = get_auth_sources(KERBEROS)
117
+ auth_header = authorization.split()
118
+ in_token = auth_header[1]
119
+
120
+ # Validate the Kerberos ticket
121
+ status, context = source.negotiate_start(in_token)
122
+ if status:
123
+ return Response("Ticket updated successfully.")
124
+
125
+ return Response(context, 500)
126
+
127
+ @blueprint.route("/validate_ticket",
128
+ endpoint="validate_ticket", methods=["GET"])
129
+ @pgCSRFProtect.exempt
130
+ @pga_login_required
131
+ def kerberos_validate_ticket():
132
+ """
133
+ Return the kerberos ticket lifetime left after getting the
134
+ ticket from the credential cache
135
+ """
136
+ import gssapi
137
+
138
+ try:
139
+ del_creds = gssapi.Credentials(store={
140
+ 'ccache': session['KRB5CCNAME']})
141
+ creds = del_creds.acquire(store={'ccache': session['KRB5CCNAME']})
142
+ except Exception as e:
143
+ current_app.logger.exception(e)
144
+ return internal_server_error(errormsg=str(e))
145
+
146
+ return make_json_response(
147
+ data={'ticket_lifetime': creds.lifetime},
148
+ status=200
149
+ )
150
+
151
+ app.register_blueprint(blueprint)
152
+
153
+
154
+ class KerberosAuthentication(BaseAuthentication):
155
+
156
+ LOGIN_VIEW = 'kerberos.login'
157
+ LOGOUT_VIEW = 'kerberos.logout'
158
+
159
+ def get_source_name(self):
160
+ return KERBEROS
161
+
162
+ def get_friendly_name(self):
163
+ return gettext("kerberos")
164
+
165
+ def validate(self, form):
166
+ return True, None
167
+
168
+ def authenticate(self, frm):
169
+
170
+ if KERBEROS_AUTH_AVAILABLE is not True:
171
+ raise RuntimeError(gettext(
172
+ "Kerberos authentication can't be used as"
173
+ " GSSAPI module couldn't be loaded."
174
+ ))
175
+
176
+ retval = [True, None]
177
+ negotiate = False
178
+ headers = Headers()
179
+ authorization = request.headers.get("Authorization", None)
180
+ form_class = _security.forms.get('login_form').cls
181
+ req_json = request.get_json(silent=True)
182
+
183
+ if req_json:
184
+ form = form_class(MultiDict(req_json))
185
+ else:
186
+ form = form_class()
187
+
188
+ try:
189
+ if authorization is not None:
190
+ auth_header = authorization.split()
191
+ if auth_header[0] == 'Negotiate':
192
+ status, negotiate = self.negotiate_start(auth_header[1])
193
+
194
+ if status:
195
+ # Saving the first 15 characters of the kerberos key
196
+ # to encrypt/decrypt database password
197
+ session['pass_enc_key'] = auth_header[1][0:15]
198
+ # Create user
199
+ retval = self.__auto_create_user(
200
+ str(negotiate.initiator_name))
201
+ elif isinstance(negotiate, Exception):
202
+ flash(gettext(negotiate), MessageType.ERROR)
203
+ retval = [status,
204
+ Response(render_template(
205
+ "security/login_user.html",
206
+ login_user_form=form))]
207
+ else:
208
+ headers.add('WWW-Authenticate', 'Negotiate ' +
209
+ str(base64.b64encode(negotiate), 'utf-8'))
210
+ return False, Response("Success", 200, headers)
211
+ else:
212
+ flash(gettext("Kerberos authentication failed. Couldn't find "
213
+ "kerberos ticket."), MessageType.ERROR)
214
+ headers.add('WWW-Authenticate', 'Negotiate')
215
+ retval = [False,
216
+ Response(render_template(
217
+ "security/login_user.html",
218
+ login_user_form=form), 401, headers)]
219
+ finally:
220
+ if negotiate is not False:
221
+ self.negotiate_end(negotiate)
222
+ return retval
223
+
224
+ def negotiate_start(self, in_token):
225
+ svc_princ = gssapi.Name('HTTP@%s' % config.KRB_APP_HOST_NAME,
226
+ name_type=gssapi.NameType.hostbased_service)
227
+ cname = svc_princ.canonicalize(gssapi.MechType.kerberos)
228
+
229
+ try:
230
+ server_creds = gssapi.Credentials(usage='accept', name=cname)
231
+ context = gssapi.SecurityContext(creds=server_creds)
232
+ out_token = context.step(base64.b64decode(in_token))
233
+ except Exception as e:
234
+ current_app.logger.exception(e)
235
+ return False, e
236
+
237
+ if out_token and not context.complete:
238
+ return False, out_token
239
+ if context.complete:
240
+ deleg_creds = context.delegated_creds
241
+ if not hasattr(deleg_creds, 'name'):
242
+ error_msg = gettext('Delegated credentials not supplied.')
243
+ current_app.logger.error(error_msg)
244
+ return False, Exception(error_msg)
245
+ try:
246
+ cache_file_path = path.join(
247
+ config.KERBEROS_CCACHE_DIR, 'pgadmin_cache_{0}'.format(
248
+ deleg_creds.name)
249
+ )
250
+ CCACHE = 'FILE:{0}'.format(cache_file_path)
251
+ store = {'ccache': CCACHE}
252
+ deleg_creds.store(store, overwrite=True, set_default=True)
253
+ session['KRB5CCNAME'] = CCACHE
254
+ except Exception as e:
255
+ current_app.logger.exception(e)
256
+ return False, e
257
+
258
+ return True, context
259
+ else:
260
+ return False, None
261
+
262
+ def negotiate_end(self, context):
263
+ # Free Delegated Credentials
264
+ del_creds = getattr(context, 'delegated_creds', None)
265
+ if del_creds:
266
+ deleg_creds = context.delegated_creds
267
+ del deleg_creds
268
+
269
+ def __auto_create_user(self, username):
270
+ """Add the kerberos user to the internal SQLite database."""
271
+ username = str(username)
272
+ if config.KRB_AUTO_CREATE_USER:
273
+ user = User.query.filter_by(
274
+ username=username, auth_source=KERBEROS).first()
275
+ if user is None:
276
+ create_msg = ("Creating user {0} with email {1} "
277
+ "from auth source KERBEROS.")
278
+ current_app.logger.info(create_msg.format(username,
279
+ username))
280
+ return create_user({
281
+ 'username': username,
282
+ 'email': username,
283
+ 'role': 2,
284
+ 'active': True,
285
+ 'auth_source': KERBEROS
286
+ })
287
+
288
+ return True, {'username': username}
pgsql/pgAdmin 4/web/pgadmin/authenticate/ldap.py ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##########################################################################
2
+ #
3
+ # pgAdmin 4 - PostgreSQL Tools
4
+ #
5
+ # Copyright (C) 2013 - 2024, The pgAdmin Development Team
6
+ # This software is released under the PostgreSQL Licence
7
+ #
8
+ ##########################################################################
9
+
10
+ """A blueprint module implementing the ldap authentication."""
11
+
12
+ import ssl
13
+ import config
14
+ from ldap3 import Connection, Server, Tls, ALL, ALL_ATTRIBUTES, ANONYMOUS,\
15
+ SIMPLE, AUTO_BIND_TLS_BEFORE_BIND, AUTO_BIND_NO_TLS, set_config_parameter
16
+ from ldap3.core.exceptions import LDAPSocketOpenError, LDAPBindError,\
17
+ LDAPInvalidScopeError, LDAPAttributeError, LDAPInvalidFilterError,\
18
+ LDAPStartTLSError, LDAPSSLConfigurationError
19
+ from flask_babel import gettext
20
+ from urllib.parse import urlparse
21
+
22
+ from .internal import BaseAuthentication
23
+ from pgadmin.model import User, ServerGroup, db, Role
24
+ from flask import current_app
25
+ from pgadmin.tools.user_management import create_user
26
+ from pgadmin.utils.constants import LDAP
27
+ from sqlalchemy import func
28
+ from flask_security import login_user
29
+
30
+ ERROR_SEARCHING_LDAP_DIRECTORY = gettext(
31
+ "Error searching the LDAP directory: {}")
32
+
33
+ ERROR_CONNECTING_LDAP_SERVER = gettext(
34
+ "Error connecting to the LDAP server: {}\n")
35
+
36
+ if config.LDAP_IGNORE_MALFORMED_SCHEMA:
37
+ set_config_parameter('IGNORE_MALFORMED_SCHEMA',
38
+ config.LDAP_IGNORE_MALFORMED_SCHEMA)
39
+
40
+
41
+ class LDAPAuthentication(BaseAuthentication):
42
+ """Ldap Authentication Class"""
43
+
44
+ def get_source_name(self):
45
+ return LDAP
46
+
47
+ def get_friendly_name(self):
48
+ return gettext("ldap")
49
+
50
+ def authenticate(self, form):
51
+ self.username = form.data['email']
52
+ self.password = form.data['password']
53
+ self.dedicated_user = True
54
+ self.start_tls = False
55
+ user_email = None
56
+
57
+ # Check the dedicated ldap user
58
+ self.bind_user = getattr(config, 'LDAP_BIND_USER', None)
59
+ self.bind_pass = getattr(config, 'LDAP_BIND_PASSWORD', None)
60
+
61
+ # Check for the anonymous binding
62
+ self.anonymous_bind = getattr(config, 'LDAP_ANONYMOUS_BIND', False)
63
+
64
+ if self.bind_user and not self.bind_pass:
65
+ return False, gettext(
66
+ "LDAP configuration error: Set the bind password.")
67
+
68
+ # if no dedicated ldap user is configured then use the login
69
+ # username and password
70
+ if not self.bind_user and not self.bind_pass and\
71
+ self.anonymous_bind is False:
72
+
73
+ user_dn = config.LDAP_BIND_FORMAT\
74
+ .format(
75
+ LDAP_USERNAME=self.username,
76
+ LDAP_BASE_DN=config.LDAP_BASE_DN,
77
+ LDAP_USERNAME_ATTRIBUTE=config.LDAP_USERNAME_ATTRIBUTE
78
+ )
79
+
80
+ self.bind_user = user_dn
81
+ self.bind_pass = self.password
82
+ self.dedicated_user = False
83
+
84
+ # Connect ldap server
85
+ status, msg = self.connect()
86
+
87
+ if not status:
88
+ return status, msg
89
+
90
+ status, ldap_user = self.search_ldap_user()
91
+
92
+ if not status:
93
+ return status, ldap_user
94
+
95
+ # If dedicated user is configured
96
+ if self.dedicated_user:
97
+ # Get the user DN from the user ldap entry
98
+ self.bind_user = ldap_user.entry_dn
99
+ self.bind_pass = self.password
100
+ self.anonymous_bind = False
101
+ status, msg = self.connect()
102
+
103
+ if not status:
104
+ return status, msg
105
+
106
+ if 'mail' in ldap_user:
107
+ mail = ldap_user['mail'].value
108
+ if isinstance(mail, list) and len(mail) > 0:
109
+ user_email = mail[0]
110
+ else:
111
+ user_email = ldap_user['mail'].value
112
+
113
+ return self.__auto_create_user(user_email)
114
+
115
+ def connect(self):
116
+ """Setup the connection to the LDAP server and authenticate the user.
117
+ """
118
+ status, server = self._configure_server()
119
+
120
+ if not status:
121
+ return status, server
122
+
123
+ auto_bind = AUTO_BIND_TLS_BEFORE_BIND if self.start_tls \
124
+ else AUTO_BIND_NO_TLS
125
+
126
+ # Create the connection
127
+ try:
128
+ if self.anonymous_bind:
129
+ self.conn = Connection(server,
130
+ auto_bind=auto_bind,
131
+ authentication=ANONYMOUS
132
+ )
133
+ else:
134
+ self.conn = Connection(server,
135
+ user=self.bind_user,
136
+ password=self.bind_pass,
137
+ auto_bind=auto_bind,
138
+ authentication=SIMPLE
139
+ )
140
+
141
+ except LDAPSocketOpenError as e:
142
+ current_app.logger.exception(
143
+ ERROR_CONNECTING_LDAP_SERVER.format(e))
144
+ return False, ERROR_CONNECTING_LDAP_SERVER.format(e.args[0])
145
+ except LDAPBindError as e:
146
+ current_app.logger.exception(
147
+ "Error binding to the LDAP server.")
148
+ return False, gettext("Error binding to the LDAP server: {}\n".
149
+ format(e.args[0]))
150
+ except LDAPStartTLSError as e:
151
+ current_app.logger.exception(
152
+ "Error starting TLS: {}\n".format(e))
153
+ return False, gettext("Error starting TLS: {}\n"
154
+ ).format(e.args[0])
155
+ except Exception as e:
156
+ current_app.logger.exception(
157
+ ERROR_CONNECTING_LDAP_SERVER.format(e))
158
+ return False, ERROR_CONNECTING_LDAP_SERVER.format(e.args[0])
159
+
160
+ return True, None
161
+
162
+ def login(self, form):
163
+ user = getattr(form, 'user', None)
164
+ if user is None:
165
+ if config.LDAP_DN_CASE_SENSITIVE:
166
+ user = User.query.filter_by(username=self.username).first()
167
+ else:
168
+ user = User.query.filter(
169
+ func.lower(User.username) == func.lower(
170
+ self.username)).first()
171
+
172
+ if user is None:
173
+ current_app.logger.exception(
174
+ self.messages('USER_DOES_NOT_EXIST'))
175
+ return False, self.messages('USER_DOES_NOT_EXIST')
176
+
177
+ # Login user through flask_security
178
+ status = login_user(user)
179
+ if not status:
180
+ current_app.logger.exception(self.messages('LOGIN_FAILED'))
181
+ return False, self.messages('LOGIN_FAILED')
182
+ current_app.logger.info(
183
+ "LDAP user {0} logged in.".format(user))
184
+ return True, None
185
+
186
+ def __auto_create_user(self, user_email):
187
+ """Add the ldap user to the internal SQLite database."""
188
+ if config.LDAP_AUTO_CREATE_USER:
189
+ if config.LDAP_DN_CASE_SENSITIVE:
190
+ user = User.query.filter_by(username=self.username).first()
191
+ else:
192
+ user = User.query.filter(
193
+ func.lower(User.username) == func.lower(
194
+ self.username)).first()
195
+
196
+ if user is None:
197
+ create_msg = ("Creating user {0} with email {1} "
198
+ "from auth source LDAP.")
199
+ current_app.logger.info(create_msg.format(self.username,
200
+ user_email))
201
+ return create_user({
202
+ 'username': self.username,
203
+ 'email': user_email,
204
+ 'role': 2,
205
+ 'active': True,
206
+ 'auth_source': LDAP
207
+ })
208
+
209
+ return True, None
210
+
211
+ def __configure_tls(self):
212
+ ca_cert_file = getattr(config, 'LDAP_CA_CERT_FILE', None)
213
+ cert_file = getattr(config, 'LDAP_CERT_FILE', None)
214
+ key_file = getattr(config, 'LDAP_KEY_FILE', None)
215
+ cert_validate = ssl.CERT_NONE
216
+
217
+ if ca_cert_file and cert_file and key_file:
218
+ cert_validate = ssl.CERT_REQUIRED
219
+
220
+ try:
221
+ tls = Tls(
222
+ local_private_key_file=key_file,
223
+ local_certificate_file=cert_file,
224
+ validate=cert_validate,
225
+ version=ssl.PROTOCOL_TLSv1_2,
226
+ ca_certs_file=ca_cert_file)
227
+ except LDAPSSLConfigurationError as e:
228
+ current_app.logger.exception(
229
+ "LDAP configuration error: {}\n".format(e))
230
+ return False, gettext("LDAP configuration error: {}\n").format(
231
+ e.args[0])
232
+ return True, tls
233
+
234
+ def _configure_server(self):
235
+ # Parse the server URI
236
+ uri = getattr(config, 'LDAP_SERVER_URI', None)
237
+
238
+ if uri:
239
+ uri = urlparse(uri)
240
+
241
+ # Create the TLS configuration object if required
242
+ tls = None
243
+
244
+ if isinstance(uri, str):
245
+ return False, gettext(
246
+ "LDAP configuration error: Set the proper LDAP URI.")
247
+
248
+ if uri.scheme == 'ldaps' or config.LDAP_USE_STARTTLS:
249
+ status, tls = self.__configure_tls()
250
+ if not status:
251
+ return status, tls
252
+
253
+ if uri.scheme != 'ldaps' and config.LDAP_USE_STARTTLS:
254
+ self.start_tls = True
255
+
256
+ try:
257
+ # Create the server object
258
+ server = Server(uri.hostname,
259
+ port=uri.port,
260
+ use_ssl=(uri.scheme == 'ldaps'),
261
+ get_info=ALL,
262
+ tls=tls,
263
+ connect_timeout=config.LDAP_CONNECTION_TIMEOUT)
264
+ except ValueError as e:
265
+ return False, "LDAP configuration error: {}.".format(e)
266
+
267
+ return True, server
268
+
269
+ def search_ldap_user(self):
270
+ """Get a list of users from the LDAP server based on config
271
+ search criteria."""
272
+ try:
273
+ search_base_dn = config.LDAP_SEARCH_BASE_DN
274
+ if (not search_base_dn or search_base_dn == '<Search-Base-DN>')\
275
+ and (self.anonymous_bind or self.dedicated_user):
276
+ return False, gettext("LDAP configuration error: "
277
+ "Set the Search Domain.")
278
+ elif not search_base_dn or search_base_dn == '<Search-Base-DN>':
279
+ search_base_dn = config.LDAP_BASE_DN
280
+
281
+ search_filter = "({0}={1})".format(config.LDAP_USERNAME_ATTRIBUTE,
282
+ self.username)
283
+ if config.LDAP_SEARCH_FILTER:
284
+ search_filter = "(&{0}{1})".format(search_filter,
285
+ config.LDAP_SEARCH_FILTER)
286
+
287
+ self.conn.search(search_base=search_base_dn,
288
+ search_filter=search_filter,
289
+ search_scope=config.LDAP_SEARCH_SCOPE,
290
+ attributes=ALL_ATTRIBUTES
291
+ )
292
+
293
+ except LDAPInvalidScopeError as e:
294
+ current_app.logger.exception(
295
+ ERROR_SEARCHING_LDAP_DIRECTORY.format(e.args[0])
296
+ )
297
+ return False, ERROR_SEARCHING_LDAP_DIRECTORY.format(e.args[0])
298
+ except LDAPAttributeError as e:
299
+ current_app.logger.exception(
300
+ ERROR_SEARCHING_LDAP_DIRECTORY.format(e)
301
+ )
302
+ return False, ERROR_SEARCHING_LDAP_DIRECTORY.format(e.args[0])
303
+ except LDAPInvalidFilterError as e:
304
+ current_app.logger.exception(
305
+ ERROR_SEARCHING_LDAP_DIRECTORY.format(e)
306
+ )
307
+ return False, ERROR_SEARCHING_LDAP_DIRECTORY.format(e.args[0])
308
+
309
+ results = len(self.conn.entries)
310
+ if results > 1:
311
+ return False, ERROR_SEARCHING_LDAP_DIRECTORY.format(
312
+ gettext("More than one result found."))
313
+ elif results < 1:
314
+ return False, ERROR_SEARCHING_LDAP_DIRECTORY.format(
315
+ gettext("Could not find the specified user."))
316
+ return True, self.conn.entries[0]