├── .editorconfig
├── .gitattributes
├── .github
└── workflows
│ ├── build.yml
│ └── deploy.yml
├── .gitignore
├── .prettierrc
├── LICENSE
├── README-fa.md
├── README.md
├── package-lock.json
├── package.json
├── resources
├── provider-list.txt
└── proxy-list.txt
├── src
├── auth.ts
├── clash.ts
├── collector.ts
├── config.ts
├── helpers.ts
├── interfaces.ts
├── panel.ts
├── qrcode.ts
├── sub.ts
├── trojan.ts
├── variables.ts
├── vless.ts
└── worker.ts
├── tsconfig.json
├── worker-configuration.d.ts
└── wrangler.toml
/.editorconfig:
--------------------------------------------------------------------------------
1 | # http://editorconfig.org
2 | root = true
3 |
4 | [*]
5 | indent_style = tab
6 | tab_width = 2
7 | end_of_line = lf
8 | charset = utf-8
9 | trim_trailing_whitespace = true
10 | insert_final_newline = true
11 |
12 | [*.yml]
13 | indent_style = space
14 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/.github/workflows/build.yml:
--------------------------------------------------------------------------------
1 | name: Build worker.js
2 | on:
3 | push:
4 | branches: ["main"]
5 | release:
6 | types: ["published"]
7 |
8 | jobs:
9 | build:
10 | permissions:
11 | contents: write
12 |
13 | runs-on: ubuntu-latest
14 |
15 | steps:
16 | - name: Checkout code
17 | uses: actions/checkout@v4
18 |
19 | - name: Setup Node.js
20 | uses: actions/setup-node@v4
21 | with:
22 | node-version: "latest"
23 | cache: "npm"
24 |
25 | - name: Install modules
26 | run: npm i wrangler@latest
27 |
28 | - name: Build
29 | run: npx wrangler build
30 |
31 | - name: Add Header
32 | run: cp ${{ github.workspace }}/dist/worker.js ${{ github.workspace }}/dist/worker-original.js && echo -e "/*!\r\n * v2ray Subscription Worker (${{ github.sha }})\r\n * Copyright 2024 Vahid Farid (https://twitter.com/vahidfarid)\r\n * Licensed under GPLv3 (https://github.com/vfarid/v2ray-worker/blob/main/Licence.md)\r\n */\r\n" > ${{ github.workspace }}/dist/worker.js && cat ${{ github.workspace }}/dist/worker-original.js >> ${{ github.workspace }}/dist/worker.js
33 |
34 | - name: Upload to Artifacts
35 | uses: actions/upload-artifact@v4
36 | with:
37 | name: worker
38 | path: ${{ github.workspace }}/dist/worker.js
39 |
40 | - name: Add Release Header
41 | run: echo -e "/*!\r\n * v2ray Subscription Worker ${{ github.event.release.tag_name }}\r\n * Copyright 2024 Vahid Farid (https://twitter.com/vahidfarid)\r\n * Licensed under GPLv3 (https://github.com/vfarid/v2ray-worker/blob/main/Licence.md)\r\n */\r\n" > ${{ github.workspace }}/dist/worker.js && cat ${{ github.workspace }}/dist/worker-original.js >> ${{ github.workspace }}/dist/worker.js
42 |
43 | - name: Upload to GitHub Release
44 | uses: svenstaro/upload-release-action@v2
45 | if: github.event_name == 'release'
46 | with:
47 | repo_token: ${{ secrets.GITHUB_TOKEN }}
48 | file: ${{ github.workspace }}/dist/worker.js
49 | asset_name: worker.js
50 | tag: ${{ github.ref }}
51 | overwrite: true
--------------------------------------------------------------------------------
/.github/workflows/deploy.yml:
--------------------------------------------------------------------------------
1 | name: Deploy Worker
2 | on:
3 | repository_dispatch:
4 |
5 | jobs:
6 | deploy:
7 | runs-on: ubuntu-latest
8 | timeout-minutes: 60
9 |
10 | steps:
11 | - name: Checkout code
12 | uses: actions/checkout@v4
13 |
14 | - name: Setup Node.js
15 | uses: actions/setup-node@v4
16 | with:
17 | node-version: "latest"
18 | cache: "npm"
19 |
20 | - name: Install modules
21 | run: npm i wrangler@latest
22 |
23 | - name: Build
24 | run: npx wrangler build
25 |
26 | - name: Add Header
27 | run: cp ${{ github.workspace }}/dist/worker.js ${{ github.workspace }}/dist/worker-original.js && echo -e "/*!\n * v2ray Subscription Worker (${{ github.sha }})\n * Copyright 2024 Vahid Farid (https://twitter.com/vahidfarid)\n * Licensed under GPLv3 (https://github.com/vfarid/v2ray-worker/blob/main/Licence.md)\n */\n\n$(cat ${{ github.workspace }}/dist/worker.js)" > ${{ github.workspace }}/dist/worker.js
28 |
29 | - name: Deploy
30 | run: sed -i "s/KV_NAME/{{ secrets.KV_NAME }}/g" wrangler.toml && wrangler deploy --api-token ${{ secrets.CF_API_TOKEN }} --account-id ${{ secrets.CF_ACCOUNT_ID }}
31 |
32 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 |
5 | # Dependency directories
6 | node_modules/
7 |
8 | # other
9 | .old
10 | .wrangler
11 | dist/
12 | resources/.local/
13 | package-lock.json
14 |
--------------------------------------------------------------------------------
/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "printWidth": 140,
3 | "singleQuote": true,
4 | "semi": true,
5 | "useTabs": true
6 | }
7 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/README-fa.md:
--------------------------------------------------------------------------------
1 |
2 | ## V2Ray Worker
3 | راهکار جامع کانفیگهای v2ray روی ورکر
4 |
5 | [English version](https://github.com/vfarid/v2ray-worker/blob/main/README.md)
6 |
7 | ### کانال یوتیوب
8 | [ویدیوی آموزشی - اندروید](https://youtu.be/Jb_6jmrKKyo)
9 |
10 | ### کانال تلگرام
11 | [در کانال تلگرام بخوانید](https://t.me/vahidgeek/140)
12 |
13 | ### روش استفاده
14 | برای استفاده از این کد، اسکریپت worker.js را از بخش از آخرین نسخه دانلود کرده و روی یک ورکر جدید آپلود کنید.
15 | برای این کار لازم است ابتدا اکانت کلادفلر خود را ایجاد کرده و یک ورکر جدید بر روی اکانت اضافه کنید. در صورتی که قبلا این کار را انجام ندادهاید، ویدیوهای آموزش بالا را مشاهده نمایید.
16 |
17 | ### کلادفلر KV
18 | در این اسکریپت، برای ذخیرهی اطلاعات پنل کنترل، از KV کلادفلر استفاده شده که لازم است برای بهرهبرداری از تمام قابلیت این ورکر، این بخش را راه اندازی کنید.
19 | برای راه اندازی، دو بخش را باید تنظیم کنید:
20 | - ابتدا در بخش KV در زیرمجموعهی Workers یک Namespace جدید با نام دلخواه اضافه کنید.
21 | - در صفحه اصلی ورکر، قبل از محیط ویرایشگر، به بخش Setting رفته و گزینهی variables را انتخاب کنید. سپس اسکرول کنید تا به بخش KV برسید. در این بخش یک متغیر جدید با نام settings اضافه کرده و نامی که در بخش قبل برای namespace وارد کرده بودید را انتخاب کنید.
22 |
23 | اکنون میتوانید آدس ورکر خود را در بروزر وارد کرده و پنل کنترل را مشاهده کنید. راهنمای استفاده روی پنل کنترل وجود دارد.
24 |
25 | ### Credits
26 | Built-in vless config generator is based on [Zizifn Edge Tunnel](https://github.com/zizifn/edgetunnel), re-written using Typescript.
27 | Built-in trojan config generator is based on [ca110us/epeius](https://github.com/ca110us/epeius/tree/main), re-written using Typescript.
28 | Proxy IPs source: https://rentry.co/CF-proxyIP
29 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # V2Ray Worker
2 | Total solution for v2ray configs over Cloudflare's worker
3 |
4 | [نسخه فارسی](https://github.com/vfarid/v2ray-worker/blob/main/README-fa.md)
5 |
6 | ## How to use
7 |
8 | To be completed...
9 |
10 | ## Deploy
11 | 1. Fork this Repo and enable Github Action
12 | 2. Open CloudFlare and create KV namespace with name `settings` then copy the ID
13 | 3. Go to this forked repo and set secrets with name `KV_NAME` and fill with KV settings ID
14 | 4. Edit this `README.md` file, then find and replace this button url bellow with yours `https://github.com/USER/REPO_NAME` then save it.
15 | 4. then press `Deploy With Workers` and follow the instruction
16 |
17 | [](https://deploy.workers.cloudflare.com/?url=https://github.com/vfarid/v2ray-worker)
18 |
19 | ### Credits
20 | Built-in vless config generator is based on [Zizifn Edge Tunnel](https://github.com/zizifn/edgetunnel), re-written using Typescript.
21 | Built-in trojan config generator is based on [ca110us/epeius](https://github.com/ca110us/epeius/tree/main), re-written using Typescript.
22 | Proxy IPs source: https://rentry.co/CF-proxyIP
23 |
--------------------------------------------------------------------------------
/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "v2ray-worker",
3 | "version": "2.4",
4 | "lockfileVersion": 3,
5 | "requires": true,
6 | "packages": {
7 | "": {
8 | "name": "v2ray-worker",
9 | "version": "2.4",
10 | "dependencies": {
11 | "bcryptjs": "^2.4.3",
12 | "buffer": "^6.0.3",
13 | "crypto-js": "^4.2.0",
14 | "js-yaml": "^4.1.0",
15 | "uuid": "^9.0.1"
16 | },
17 | "devDependencies": {
18 | "@cloudflare/workers-types": "^4.20240529.0",
19 | "@types/bcryptjs": "^2.4.6",
20 | "@types/crypto-js": "^4.2.2",
21 | "@types/js-yaml": "^4.0.9",
22 | "@types/node": "^20.12.13",
23 | "@types/uuid": "^9.0.8",
24 | "typescript": "^5.0.4",
25 | "wrangler": "^3.57.2"
26 | }
27 | },
28 | "node_modules/@cloudflare/kv-asset-handler": {
29 | "version": "0.3.2",
30 | "resolved": "https://registry.npmjs.org/@cloudflare/kv-asset-handler/-/kv-asset-handler-0.3.2.tgz",
31 | "integrity": "sha512-EeEjMobfuJrwoctj7FA1y1KEbM0+Q1xSjobIEyie9k4haVEBB7vkDvsasw1pM3rO39mL2akxIAzLMUAtrMHZhA==",
32 | "dev": true,
33 | "license": "MIT OR Apache-2.0",
34 | "dependencies": {
35 | "mime": "^3.0.0"
36 | },
37 | "engines": {
38 | "node": ">=16.13"
39 | }
40 | },
41 | "node_modules/@cloudflare/workerd-darwin-64": {
42 | "version": "1.20240524.0",
43 | "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-1.20240524.0.tgz",
44 | "integrity": "sha512-ATaXjefbTsrv4mpn4Fdua114RRDXcX5Ky+Mv+f4JTUllgalmqC4CYMN4jxRz9IpJU/fNMN8IEfvUyuJBAcl9Iw==",
45 | "cpu": [
46 | "x64"
47 | ],
48 | "dev": true,
49 | "license": "Apache-2.0",
50 | "optional": true,
51 | "os": [
52 | "darwin"
53 | ],
54 | "engines": {
55 | "node": ">=16"
56 | }
57 | },
58 | "node_modules/@cloudflare/workerd-darwin-arm64": {
59 | "version": "1.20240524.0",
60 | "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-1.20240524.0.tgz",
61 | "integrity": "sha512-wnbsZI4CS0QPCd+wnBHQ40C28A/2Qo4ESi1YhE2735G3UNcc876MWksZhsubd+XH0XPIra6eNFqyw6wRMpQOXA==",
62 | "cpu": [
63 | "arm64"
64 | ],
65 | "dev": true,
66 | "license": "Apache-2.0",
67 | "optional": true,
68 | "os": [
69 | "darwin"
70 | ],
71 | "engines": {
72 | "node": ">=16"
73 | }
74 | },
75 | "node_modules/@cloudflare/workerd-linux-64": {
76 | "version": "1.20240524.0",
77 | "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20240524.0.tgz",
78 | "integrity": "sha512-E8mj+HPBryKwaJAiNsYzXtVjKCL0KvUBZbtxJxlWM4mLSQhT+uwGT3nydb/hFY59rZnQgZslw0oqEWht5TEYiQ==",
79 | "cpu": [
80 | "x64"
81 | ],
82 | "dev": true,
83 | "license": "Apache-2.0",
84 | "optional": true,
85 | "os": [
86 | "linux"
87 | ],
88 | "engines": {
89 | "node": ">=16"
90 | }
91 | },
92 | "node_modules/@cloudflare/workerd-linux-arm64": {
93 | "version": "1.20240524.0",
94 | "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-1.20240524.0.tgz",
95 | "integrity": "sha512-/Fr1W671t2triNCDCBWdStxngnbUfZunZ/2e4kaMLzJDJLYDtYdmvOUCBDzUD4ssqmIMbn9RCQQ0U+CLEoqBqw==",
96 | "cpu": [
97 | "arm64"
98 | ],
99 | "dev": true,
100 | "license": "Apache-2.0",
101 | "optional": true,
102 | "os": [
103 | "linux"
104 | ],
105 | "engines": {
106 | "node": ">=16"
107 | }
108 | },
109 | "node_modules/@cloudflare/workerd-windows-64": {
110 | "version": "1.20240524.0",
111 | "resolved": "https://registry.npmjs.org/@cloudflare/workerd-windows-64/-/workerd-windows-64-1.20240524.0.tgz",
112 | "integrity": "sha512-G+ThDEx57g9mAEKqhWnHaaJgpeGYtyhkmwM/BDpLqPks/rAY5YEfZbY4YL1pNk1kkcZDXGrwIsY8xe9Apf5JdA==",
113 | "cpu": [
114 | "x64"
115 | ],
116 | "dev": true,
117 | "license": "Apache-2.0",
118 | "optional": true,
119 | "os": [
120 | "win32"
121 | ],
122 | "engines": {
123 | "node": ">=16"
124 | }
125 | },
126 | "node_modules/@cloudflare/workers-types": {
127 | "version": "4.20240529.0",
128 | "resolved": "https://registry.npmjs.org/@cloudflare/workers-types/-/workers-types-4.20240529.0.tgz",
129 | "integrity": "sha512-W5obfjAwCNdYk3feUHtDfUxtTU6WIq83k6gmrLLJv+HkgCkOTwwrDNs+3w1Qln0tMj+FQx/fbwxw3ZuHIoyzGg==",
130 | "dev": true,
131 | "license": "MIT OR Apache-2.0"
132 | },
133 | "node_modules/@cspotcode/source-map-support": {
134 | "version": "0.8.1",
135 | "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",
136 | "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==",
137 | "dev": true,
138 | "license": "MIT",
139 | "dependencies": {
140 | "@jridgewell/trace-mapping": "0.3.9"
141 | },
142 | "engines": {
143 | "node": ">=12"
144 | }
145 | },
146 | "node_modules/@esbuild-plugins/node-globals-polyfill": {
147 | "version": "0.2.3",
148 | "resolved": "https://registry.npmjs.org/@esbuild-plugins/node-globals-polyfill/-/node-globals-polyfill-0.2.3.tgz",
149 | "integrity": "sha512-r3MIryXDeXDOZh7ih1l/yE9ZLORCd5e8vWg02azWRGj5SPTuoh69A2AIyn0Z31V/kHBfZ4HgWJ+OK3GTTwLmnw==",
150 | "dev": true,
151 | "license": "ISC",
152 | "peerDependencies": {
153 | "esbuild": "*"
154 | }
155 | },
156 | "node_modules/@esbuild-plugins/node-modules-polyfill": {
157 | "version": "0.2.2",
158 | "resolved": "https://registry.npmjs.org/@esbuild-plugins/node-modules-polyfill/-/node-modules-polyfill-0.2.2.tgz",
159 | "integrity": "sha512-LXV7QsWJxRuMYvKbiznh+U1ilIop3g2TeKRzUxOG5X3YITc8JyyTa90BmLwqqv0YnX4v32CSlG+vsziZp9dMvA==",
160 | "dev": true,
161 | "license": "ISC",
162 | "dependencies": {
163 | "escape-string-regexp": "^4.0.0",
164 | "rollup-plugin-node-polyfills": "^0.2.1"
165 | },
166 | "peerDependencies": {
167 | "esbuild": "*"
168 | }
169 | },
170 | "node_modules/@esbuild/android-arm": {
171 | "version": "0.17.19",
172 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.19.tgz",
173 | "integrity": "sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A==",
174 | "cpu": [
175 | "arm"
176 | ],
177 | "dev": true,
178 | "license": "MIT",
179 | "optional": true,
180 | "os": [
181 | "android"
182 | ],
183 | "engines": {
184 | "node": ">=12"
185 | }
186 | },
187 | "node_modules/@esbuild/android-arm64": {
188 | "version": "0.17.19",
189 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.19.tgz",
190 | "integrity": "sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==",
191 | "cpu": [
192 | "arm64"
193 | ],
194 | "dev": true,
195 | "license": "MIT",
196 | "optional": true,
197 | "os": [
198 | "android"
199 | ],
200 | "engines": {
201 | "node": ">=12"
202 | }
203 | },
204 | "node_modules/@esbuild/android-x64": {
205 | "version": "0.17.19",
206 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.19.tgz",
207 | "integrity": "sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==",
208 | "cpu": [
209 | "x64"
210 | ],
211 | "dev": true,
212 | "license": "MIT",
213 | "optional": true,
214 | "os": [
215 | "android"
216 | ],
217 | "engines": {
218 | "node": ">=12"
219 | }
220 | },
221 | "node_modules/@esbuild/darwin-arm64": {
222 | "version": "0.17.19",
223 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.19.tgz",
224 | "integrity": "sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==",
225 | "cpu": [
226 | "arm64"
227 | ],
228 | "dev": true,
229 | "license": "MIT",
230 | "optional": true,
231 | "os": [
232 | "darwin"
233 | ],
234 | "engines": {
235 | "node": ">=12"
236 | }
237 | },
238 | "node_modules/@esbuild/darwin-x64": {
239 | "version": "0.17.19",
240 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.19.tgz",
241 | "integrity": "sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==",
242 | "cpu": [
243 | "x64"
244 | ],
245 | "dev": true,
246 | "license": "MIT",
247 | "optional": true,
248 | "os": [
249 | "darwin"
250 | ],
251 | "engines": {
252 | "node": ">=12"
253 | }
254 | },
255 | "node_modules/@esbuild/freebsd-arm64": {
256 | "version": "0.17.19",
257 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.19.tgz",
258 | "integrity": "sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==",
259 | "cpu": [
260 | "arm64"
261 | ],
262 | "dev": true,
263 | "license": "MIT",
264 | "optional": true,
265 | "os": [
266 | "freebsd"
267 | ],
268 | "engines": {
269 | "node": ">=12"
270 | }
271 | },
272 | "node_modules/@esbuild/freebsd-x64": {
273 | "version": "0.17.19",
274 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.19.tgz",
275 | "integrity": "sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==",
276 | "cpu": [
277 | "x64"
278 | ],
279 | "dev": true,
280 | "license": "MIT",
281 | "optional": true,
282 | "os": [
283 | "freebsd"
284 | ],
285 | "engines": {
286 | "node": ">=12"
287 | }
288 | },
289 | "node_modules/@esbuild/linux-arm": {
290 | "version": "0.17.19",
291 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.19.tgz",
292 | "integrity": "sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==",
293 | "cpu": [
294 | "arm"
295 | ],
296 | "dev": true,
297 | "license": "MIT",
298 | "optional": true,
299 | "os": [
300 | "linux"
301 | ],
302 | "engines": {
303 | "node": ">=12"
304 | }
305 | },
306 | "node_modules/@esbuild/linux-arm64": {
307 | "version": "0.17.19",
308 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.19.tgz",
309 | "integrity": "sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==",
310 | "cpu": [
311 | "arm64"
312 | ],
313 | "dev": true,
314 | "license": "MIT",
315 | "optional": true,
316 | "os": [
317 | "linux"
318 | ],
319 | "engines": {
320 | "node": ">=12"
321 | }
322 | },
323 | "node_modules/@esbuild/linux-ia32": {
324 | "version": "0.17.19",
325 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.19.tgz",
326 | "integrity": "sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==",
327 | "cpu": [
328 | "ia32"
329 | ],
330 | "dev": true,
331 | "license": "MIT",
332 | "optional": true,
333 | "os": [
334 | "linux"
335 | ],
336 | "engines": {
337 | "node": ">=12"
338 | }
339 | },
340 | "node_modules/@esbuild/linux-loong64": {
341 | "version": "0.17.19",
342 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.19.tgz",
343 | "integrity": "sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==",
344 | "cpu": [
345 | "loong64"
346 | ],
347 | "dev": true,
348 | "license": "MIT",
349 | "optional": true,
350 | "os": [
351 | "linux"
352 | ],
353 | "engines": {
354 | "node": ">=12"
355 | }
356 | },
357 | "node_modules/@esbuild/linux-mips64el": {
358 | "version": "0.17.19",
359 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.19.tgz",
360 | "integrity": "sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==",
361 | "cpu": [
362 | "mips64el"
363 | ],
364 | "dev": true,
365 | "license": "MIT",
366 | "optional": true,
367 | "os": [
368 | "linux"
369 | ],
370 | "engines": {
371 | "node": ">=12"
372 | }
373 | },
374 | "node_modules/@esbuild/linux-ppc64": {
375 | "version": "0.17.19",
376 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.19.tgz",
377 | "integrity": "sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==",
378 | "cpu": [
379 | "ppc64"
380 | ],
381 | "dev": true,
382 | "license": "MIT",
383 | "optional": true,
384 | "os": [
385 | "linux"
386 | ],
387 | "engines": {
388 | "node": ">=12"
389 | }
390 | },
391 | "node_modules/@esbuild/linux-riscv64": {
392 | "version": "0.17.19",
393 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.19.tgz",
394 | "integrity": "sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==",
395 | "cpu": [
396 | "riscv64"
397 | ],
398 | "dev": true,
399 | "license": "MIT",
400 | "optional": true,
401 | "os": [
402 | "linux"
403 | ],
404 | "engines": {
405 | "node": ">=12"
406 | }
407 | },
408 | "node_modules/@esbuild/linux-s390x": {
409 | "version": "0.17.19",
410 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.19.tgz",
411 | "integrity": "sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==",
412 | "cpu": [
413 | "s390x"
414 | ],
415 | "dev": true,
416 | "license": "MIT",
417 | "optional": true,
418 | "os": [
419 | "linux"
420 | ],
421 | "engines": {
422 | "node": ">=12"
423 | }
424 | },
425 | "node_modules/@esbuild/linux-x64": {
426 | "version": "0.17.19",
427 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.19.tgz",
428 | "integrity": "sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==",
429 | "cpu": [
430 | "x64"
431 | ],
432 | "dev": true,
433 | "license": "MIT",
434 | "optional": true,
435 | "os": [
436 | "linux"
437 | ],
438 | "engines": {
439 | "node": ">=12"
440 | }
441 | },
442 | "node_modules/@esbuild/netbsd-x64": {
443 | "version": "0.17.19",
444 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.19.tgz",
445 | "integrity": "sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==",
446 | "cpu": [
447 | "x64"
448 | ],
449 | "dev": true,
450 | "license": "MIT",
451 | "optional": true,
452 | "os": [
453 | "netbsd"
454 | ],
455 | "engines": {
456 | "node": ">=12"
457 | }
458 | },
459 | "node_modules/@esbuild/openbsd-x64": {
460 | "version": "0.17.19",
461 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.19.tgz",
462 | "integrity": "sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==",
463 | "cpu": [
464 | "x64"
465 | ],
466 | "dev": true,
467 | "license": "MIT",
468 | "optional": true,
469 | "os": [
470 | "openbsd"
471 | ],
472 | "engines": {
473 | "node": ">=12"
474 | }
475 | },
476 | "node_modules/@esbuild/sunos-x64": {
477 | "version": "0.17.19",
478 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.19.tgz",
479 | "integrity": "sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==",
480 | "cpu": [
481 | "x64"
482 | ],
483 | "dev": true,
484 | "license": "MIT",
485 | "optional": true,
486 | "os": [
487 | "sunos"
488 | ],
489 | "engines": {
490 | "node": ">=12"
491 | }
492 | },
493 | "node_modules/@esbuild/win32-arm64": {
494 | "version": "0.17.19",
495 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.19.tgz",
496 | "integrity": "sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==",
497 | "cpu": [
498 | "arm64"
499 | ],
500 | "dev": true,
501 | "license": "MIT",
502 | "optional": true,
503 | "os": [
504 | "win32"
505 | ],
506 | "engines": {
507 | "node": ">=12"
508 | }
509 | },
510 | "node_modules/@esbuild/win32-ia32": {
511 | "version": "0.17.19",
512 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.19.tgz",
513 | "integrity": "sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==",
514 | "cpu": [
515 | "ia32"
516 | ],
517 | "dev": true,
518 | "license": "MIT",
519 | "optional": true,
520 | "os": [
521 | "win32"
522 | ],
523 | "engines": {
524 | "node": ">=12"
525 | }
526 | },
527 | "node_modules/@esbuild/win32-x64": {
528 | "version": "0.17.19",
529 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.19.tgz",
530 | "integrity": "sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==",
531 | "cpu": [
532 | "x64"
533 | ],
534 | "dev": true,
535 | "license": "MIT",
536 | "optional": true,
537 | "os": [
538 | "win32"
539 | ],
540 | "engines": {
541 | "node": ">=12"
542 | }
543 | },
544 | "node_modules/@fastify/busboy": {
545 | "version": "2.1.1",
546 | "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.1.tgz",
547 | "integrity": "sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==",
548 | "dev": true,
549 | "license": "MIT",
550 | "engines": {
551 | "node": ">=14"
552 | }
553 | },
554 | "node_modules/@jridgewell/resolve-uri": {
555 | "version": "3.1.2",
556 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
557 | "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
558 | "dev": true,
559 | "license": "MIT",
560 | "engines": {
561 | "node": ">=6.0.0"
562 | }
563 | },
564 | "node_modules/@jridgewell/sourcemap-codec": {
565 | "version": "1.4.15",
566 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz",
567 | "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==",
568 | "dev": true,
569 | "license": "MIT"
570 | },
571 | "node_modules/@jridgewell/trace-mapping": {
572 | "version": "0.3.9",
573 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz",
574 | "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==",
575 | "dev": true,
576 | "license": "MIT",
577 | "dependencies": {
578 | "@jridgewell/resolve-uri": "^3.0.3",
579 | "@jridgewell/sourcemap-codec": "^1.4.10"
580 | }
581 | },
582 | "node_modules/@types/bcryptjs": {
583 | "version": "2.4.6",
584 | "resolved": "https://registry.npmjs.org/@types/bcryptjs/-/bcryptjs-2.4.6.tgz",
585 | "integrity": "sha512-9xlo6R2qDs5uixm0bcIqCeMCE6HiQsIyel9KQySStiyqNl2tnj2mP3DX1Nf56MD6KMenNNlBBsy3LJ7gUEQPXQ==",
586 | "dev": true,
587 | "license": "MIT"
588 | },
589 | "node_modules/@types/crypto-js": {
590 | "version": "4.2.2",
591 | "resolved": "https://registry.npmjs.org/@types/crypto-js/-/crypto-js-4.2.2.tgz",
592 | "integrity": "sha512-sDOLlVbHhXpAUAL0YHDUUwDZf3iN4Bwi4W6a0W0b+QcAezUbRtH4FVb+9J4h+XFPW7l/gQ9F8qC7P+Ec4k8QVQ==",
593 | "dev": true,
594 | "license": "MIT"
595 | },
596 | "node_modules/@types/js-yaml": {
597 | "version": "4.0.9",
598 | "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.9.tgz",
599 | "integrity": "sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==",
600 | "dev": true,
601 | "license": "MIT"
602 | },
603 | "node_modules/@types/node": {
604 | "version": "20.12.13",
605 | "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.13.tgz",
606 | "integrity": "sha512-gBGeanV41c1L171rR7wjbMiEpEI/l5XFQdLLfhr/REwpgDy/4U8y89+i8kRiLzDyZdOkXh+cRaTetUnCYutoXA==",
607 | "dev": true,
608 | "license": "MIT",
609 | "dependencies": {
610 | "undici-types": "~5.26.4"
611 | }
612 | },
613 | "node_modules/@types/node-forge": {
614 | "version": "1.3.11",
615 | "resolved": "https://registry.npmjs.org/@types/node-forge/-/node-forge-1.3.11.tgz",
616 | "integrity": "sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==",
617 | "dev": true,
618 | "license": "MIT",
619 | "dependencies": {
620 | "@types/node": "*"
621 | }
622 | },
623 | "node_modules/@types/uuid": {
624 | "version": "9.0.8",
625 | "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz",
626 | "integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==",
627 | "dev": true,
628 | "license": "MIT"
629 | },
630 | "node_modules/acorn": {
631 | "version": "8.11.3",
632 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz",
633 | "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==",
634 | "dev": true,
635 | "license": "MIT",
636 | "bin": {
637 | "acorn": "bin/acorn"
638 | },
639 | "engines": {
640 | "node": ">=0.4.0"
641 | }
642 | },
643 | "node_modules/acorn-walk": {
644 | "version": "8.3.2",
645 | "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz",
646 | "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==",
647 | "dev": true,
648 | "license": "MIT",
649 | "engines": {
650 | "node": ">=0.4.0"
651 | }
652 | },
653 | "node_modules/anymatch": {
654 | "version": "3.1.3",
655 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
656 | "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
657 | "dev": true,
658 | "license": "ISC",
659 | "dependencies": {
660 | "normalize-path": "^3.0.0",
661 | "picomatch": "^2.0.4"
662 | },
663 | "engines": {
664 | "node": ">= 8"
665 | }
666 | },
667 | "node_modules/argparse": {
668 | "version": "2.0.1",
669 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
670 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
671 | "license": "Python-2.0"
672 | },
673 | "node_modules/as-table": {
674 | "version": "1.0.55",
675 | "resolved": "https://registry.npmjs.org/as-table/-/as-table-1.0.55.tgz",
676 | "integrity": "sha512-xvsWESUJn0JN421Xb9MQw6AsMHRCUknCe0Wjlxvjud80mU4E6hQf1A6NzQKcYNmYw62MfzEtXc+badstZP3JpQ==",
677 | "dev": true,
678 | "license": "MIT",
679 | "dependencies": {
680 | "printable-characters": "^1.0.42"
681 | }
682 | },
683 | "node_modules/base64-js": {
684 | "version": "1.5.1",
685 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
686 | "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
687 | "funding": [
688 | {
689 | "type": "github",
690 | "url": "https://github.com/sponsors/feross"
691 | },
692 | {
693 | "type": "patreon",
694 | "url": "https://www.patreon.com/feross"
695 | },
696 | {
697 | "type": "consulting",
698 | "url": "https://feross.org/support"
699 | }
700 | ],
701 | "license": "MIT"
702 | },
703 | "node_modules/bcryptjs": {
704 | "version": "2.4.3",
705 | "resolved": "https://registry.npmjs.org/bcryptjs/-/bcryptjs-2.4.3.tgz",
706 | "integrity": "sha512-V/Hy/X9Vt7f3BbPJEi8BdVFMByHi+jNXrYkW3huaybV/kQ0KJg0Y6PkEMbn+zeT+i+SiKZ/HMqJGIIt4LZDqNQ==",
707 | "license": "MIT"
708 | },
709 | "node_modules/binary-extensions": {
710 | "version": "2.3.0",
711 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",
712 | "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",
713 | "dev": true,
714 | "license": "MIT",
715 | "engines": {
716 | "node": ">=8"
717 | },
718 | "funding": {
719 | "url": "https://github.com/sponsors/sindresorhus"
720 | }
721 | },
722 | "node_modules/blake3-wasm": {
723 | "version": "2.1.5",
724 | "resolved": "https://registry.npmjs.org/blake3-wasm/-/blake3-wasm-2.1.5.tgz",
725 | "integrity": "sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g==",
726 | "dev": true,
727 | "license": "MIT"
728 | },
729 | "node_modules/braces": {
730 | "version": "3.0.3",
731 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
732 | "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
733 | "dev": true,
734 | "license": "MIT",
735 | "dependencies": {
736 | "fill-range": "^7.1.1"
737 | },
738 | "engines": {
739 | "node": ">=8"
740 | }
741 | },
742 | "node_modules/buffer": {
743 | "version": "6.0.3",
744 | "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz",
745 | "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==",
746 | "funding": [
747 | {
748 | "type": "github",
749 | "url": "https://github.com/sponsors/feross"
750 | },
751 | {
752 | "type": "patreon",
753 | "url": "https://www.patreon.com/feross"
754 | },
755 | {
756 | "type": "consulting",
757 | "url": "https://feross.org/support"
758 | }
759 | ],
760 | "license": "MIT",
761 | "dependencies": {
762 | "base64-js": "^1.3.1",
763 | "ieee754": "^1.2.1"
764 | }
765 | },
766 | "node_modules/capnp-ts": {
767 | "version": "0.7.0",
768 | "resolved": "https://registry.npmjs.org/capnp-ts/-/capnp-ts-0.7.0.tgz",
769 | "integrity": "sha512-XKxXAC3HVPv7r674zP0VC3RTXz+/JKhfyw94ljvF80yynK6VkTnqE3jMuN8b3dUVmmc43TjyxjW4KTsmB3c86g==",
770 | "dev": true,
771 | "license": "MIT",
772 | "dependencies": {
773 | "debug": "^4.3.1",
774 | "tslib": "^2.2.0"
775 | }
776 | },
777 | "node_modules/chokidar": {
778 | "version": "3.6.0",
779 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
780 | "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
781 | "dev": true,
782 | "license": "MIT",
783 | "dependencies": {
784 | "anymatch": "~3.1.2",
785 | "braces": "~3.0.2",
786 | "glob-parent": "~5.1.2",
787 | "is-binary-path": "~2.1.0",
788 | "is-glob": "~4.0.1",
789 | "normalize-path": "~3.0.0",
790 | "readdirp": "~3.6.0"
791 | },
792 | "engines": {
793 | "node": ">= 8.10.0"
794 | },
795 | "funding": {
796 | "url": "https://paulmillr.com/funding/"
797 | },
798 | "optionalDependencies": {
799 | "fsevents": "~2.3.2"
800 | }
801 | },
802 | "node_modules/cookie": {
803 | "version": "0.5.0",
804 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz",
805 | "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==",
806 | "dev": true,
807 | "license": "MIT",
808 | "engines": {
809 | "node": ">= 0.6"
810 | }
811 | },
812 | "node_modules/crypto-js": {
813 | "version": "4.2.0",
814 | "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz",
815 | "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==",
816 | "license": "MIT"
817 | },
818 | "node_modules/data-uri-to-buffer": {
819 | "version": "2.0.2",
820 | "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-2.0.2.tgz",
821 | "integrity": "sha512-ND9qDTLc6diwj+Xe5cdAgVTbLVdXbtxTJRXRhli8Mowuaan+0EJOtdqJ0QCHNSSPyoXGx9HX2/VMnKeC34AChA==",
822 | "dev": true,
823 | "license": "MIT"
824 | },
825 | "node_modules/debug": {
826 | "version": "4.3.5",
827 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.5.tgz",
828 | "integrity": "sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==",
829 | "dev": true,
830 | "license": "MIT",
831 | "dependencies": {
832 | "ms": "2.1.2"
833 | },
834 | "engines": {
835 | "node": ">=6.0"
836 | },
837 | "peerDependenciesMeta": {
838 | "supports-color": {
839 | "optional": true
840 | }
841 | }
842 | },
843 | "node_modules/esbuild": {
844 | "version": "0.17.19",
845 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.19.tgz",
846 | "integrity": "sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==",
847 | "dev": true,
848 | "hasInstallScript": true,
849 | "license": "MIT",
850 | "bin": {
851 | "esbuild": "bin/esbuild"
852 | },
853 | "engines": {
854 | "node": ">=12"
855 | },
856 | "optionalDependencies": {
857 | "@esbuild/android-arm": "0.17.19",
858 | "@esbuild/android-arm64": "0.17.19",
859 | "@esbuild/android-x64": "0.17.19",
860 | "@esbuild/darwin-arm64": "0.17.19",
861 | "@esbuild/darwin-x64": "0.17.19",
862 | "@esbuild/freebsd-arm64": "0.17.19",
863 | "@esbuild/freebsd-x64": "0.17.19",
864 | "@esbuild/linux-arm": "0.17.19",
865 | "@esbuild/linux-arm64": "0.17.19",
866 | "@esbuild/linux-ia32": "0.17.19",
867 | "@esbuild/linux-loong64": "0.17.19",
868 | "@esbuild/linux-mips64el": "0.17.19",
869 | "@esbuild/linux-ppc64": "0.17.19",
870 | "@esbuild/linux-riscv64": "0.17.19",
871 | "@esbuild/linux-s390x": "0.17.19",
872 | "@esbuild/linux-x64": "0.17.19",
873 | "@esbuild/netbsd-x64": "0.17.19",
874 | "@esbuild/openbsd-x64": "0.17.19",
875 | "@esbuild/sunos-x64": "0.17.19",
876 | "@esbuild/win32-arm64": "0.17.19",
877 | "@esbuild/win32-ia32": "0.17.19",
878 | "@esbuild/win32-x64": "0.17.19"
879 | }
880 | },
881 | "node_modules/escape-string-regexp": {
882 | "version": "4.0.0",
883 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
884 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
885 | "dev": true,
886 | "license": "MIT",
887 | "engines": {
888 | "node": ">=10"
889 | },
890 | "funding": {
891 | "url": "https://github.com/sponsors/sindresorhus"
892 | }
893 | },
894 | "node_modules/estree-walker": {
895 | "version": "0.6.1",
896 | "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz",
897 | "integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==",
898 | "dev": true,
899 | "license": "MIT"
900 | },
901 | "node_modules/exit-hook": {
902 | "version": "2.2.1",
903 | "resolved": "https://registry.npmjs.org/exit-hook/-/exit-hook-2.2.1.tgz",
904 | "integrity": "sha512-eNTPlAD67BmP31LDINZ3U7HSF8l57TxOY2PmBJ1shpCvpnxBF93mWCE8YHBnXs8qiUZJc9WDcWIeC3a2HIAMfw==",
905 | "dev": true,
906 | "license": "MIT",
907 | "engines": {
908 | "node": ">=6"
909 | },
910 | "funding": {
911 | "url": "https://github.com/sponsors/sindresorhus"
912 | }
913 | },
914 | "node_modules/fill-range": {
915 | "version": "7.1.1",
916 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
917 | "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
918 | "dev": true,
919 | "license": "MIT",
920 | "dependencies": {
921 | "to-regex-range": "^5.0.1"
922 | },
923 | "engines": {
924 | "node": ">=8"
925 | }
926 | },
927 | "node_modules/fsevents": {
928 | "version": "2.3.3",
929 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
930 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
931 | "dev": true,
932 | "hasInstallScript": true,
933 | "license": "MIT",
934 | "optional": true,
935 | "os": [
936 | "darwin"
937 | ],
938 | "engines": {
939 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
940 | }
941 | },
942 | "node_modules/function-bind": {
943 | "version": "1.1.2",
944 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
945 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
946 | "dev": true,
947 | "license": "MIT",
948 | "funding": {
949 | "url": "https://github.com/sponsors/ljharb"
950 | }
951 | },
952 | "node_modules/get-source": {
953 | "version": "2.0.12",
954 | "resolved": "https://registry.npmjs.org/get-source/-/get-source-2.0.12.tgz",
955 | "integrity": "sha512-X5+4+iD+HoSeEED+uwrQ07BOQr0kEDFMVqqpBuI+RaZBpBpHCuXxo70bjar6f0b0u/DQJsJ7ssurpP0V60Az+w==",
956 | "dev": true,
957 | "license": "Unlicense",
958 | "dependencies": {
959 | "data-uri-to-buffer": "^2.0.0",
960 | "source-map": "^0.6.1"
961 | }
962 | },
963 | "node_modules/glob-parent": {
964 | "version": "5.1.2",
965 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
966 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
967 | "dev": true,
968 | "license": "ISC",
969 | "dependencies": {
970 | "is-glob": "^4.0.1"
971 | },
972 | "engines": {
973 | "node": ">= 6"
974 | }
975 | },
976 | "node_modules/glob-to-regexp": {
977 | "version": "0.4.1",
978 | "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz",
979 | "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==",
980 | "dev": true,
981 | "license": "BSD-2-Clause"
982 | },
983 | "node_modules/hasown": {
984 | "version": "2.0.2",
985 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
986 | "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
987 | "dev": true,
988 | "license": "MIT",
989 | "dependencies": {
990 | "function-bind": "^1.1.2"
991 | },
992 | "engines": {
993 | "node": ">= 0.4"
994 | }
995 | },
996 | "node_modules/ieee754": {
997 | "version": "1.2.1",
998 | "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
999 | "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
1000 | "funding": [
1001 | {
1002 | "type": "github",
1003 | "url": "https://github.com/sponsors/feross"
1004 | },
1005 | {
1006 | "type": "patreon",
1007 | "url": "https://www.patreon.com/feross"
1008 | },
1009 | {
1010 | "type": "consulting",
1011 | "url": "https://feross.org/support"
1012 | }
1013 | ],
1014 | "license": "BSD-3-Clause"
1015 | },
1016 | "node_modules/is-binary-path": {
1017 | "version": "2.1.0",
1018 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
1019 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
1020 | "dev": true,
1021 | "license": "MIT",
1022 | "dependencies": {
1023 | "binary-extensions": "^2.0.0"
1024 | },
1025 | "engines": {
1026 | "node": ">=8"
1027 | }
1028 | },
1029 | "node_modules/is-core-module": {
1030 | "version": "2.13.1",
1031 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz",
1032 | "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==",
1033 | "dev": true,
1034 | "license": "MIT",
1035 | "dependencies": {
1036 | "hasown": "^2.0.0"
1037 | },
1038 | "funding": {
1039 | "url": "https://github.com/sponsors/ljharb"
1040 | }
1041 | },
1042 | "node_modules/is-extglob": {
1043 | "version": "2.1.1",
1044 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
1045 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
1046 | "dev": true,
1047 | "license": "MIT",
1048 | "engines": {
1049 | "node": ">=0.10.0"
1050 | }
1051 | },
1052 | "node_modules/is-glob": {
1053 | "version": "4.0.3",
1054 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
1055 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
1056 | "dev": true,
1057 | "license": "MIT",
1058 | "dependencies": {
1059 | "is-extglob": "^2.1.1"
1060 | },
1061 | "engines": {
1062 | "node": ">=0.10.0"
1063 | }
1064 | },
1065 | "node_modules/is-number": {
1066 | "version": "7.0.0",
1067 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
1068 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
1069 | "dev": true,
1070 | "license": "MIT",
1071 | "engines": {
1072 | "node": ">=0.12.0"
1073 | }
1074 | },
1075 | "node_modules/js-yaml": {
1076 | "version": "4.1.0",
1077 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
1078 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
1079 | "license": "MIT",
1080 | "dependencies": {
1081 | "argparse": "^2.0.1"
1082 | },
1083 | "bin": {
1084 | "js-yaml": "bin/js-yaml.js"
1085 | }
1086 | },
1087 | "node_modules/magic-string": {
1088 | "version": "0.25.9",
1089 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz",
1090 | "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==",
1091 | "dev": true,
1092 | "license": "MIT",
1093 | "dependencies": {
1094 | "sourcemap-codec": "^1.4.8"
1095 | }
1096 | },
1097 | "node_modules/mime": {
1098 | "version": "3.0.0",
1099 | "resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz",
1100 | "integrity": "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==",
1101 | "dev": true,
1102 | "license": "MIT",
1103 | "bin": {
1104 | "mime": "cli.js"
1105 | },
1106 | "engines": {
1107 | "node": ">=10.0.0"
1108 | }
1109 | },
1110 | "node_modules/miniflare": {
1111 | "version": "3.20240524.0",
1112 | "resolved": "https://registry.npmjs.org/miniflare/-/miniflare-3.20240524.0.tgz",
1113 | "integrity": "sha512-RQAfpz7spI6gWlczeUYvJBgGyt0gNR2pYoCydgukCYZ+0bGfJl0yAiNFW62uH7uMZli/4juWPpQOBI5m7URoyA==",
1114 | "dev": true,
1115 | "license": "MIT",
1116 | "dependencies": {
1117 | "@cspotcode/source-map-support": "0.8.1",
1118 | "acorn": "^8.8.0",
1119 | "acorn-walk": "^8.2.0",
1120 | "capnp-ts": "^0.7.0",
1121 | "exit-hook": "^2.2.1",
1122 | "glob-to-regexp": "^0.4.1",
1123 | "stoppable": "^1.1.0",
1124 | "undici": "^5.28.2",
1125 | "workerd": "1.20240524.0",
1126 | "ws": "^8.11.0",
1127 | "youch": "^3.2.2",
1128 | "zod": "^3.20.6"
1129 | },
1130 | "bin": {
1131 | "miniflare": "bootstrap.js"
1132 | },
1133 | "engines": {
1134 | "node": ">=16.13"
1135 | }
1136 | },
1137 | "node_modules/ms": {
1138 | "version": "2.1.2",
1139 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
1140 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
1141 | "dev": true,
1142 | "license": "MIT"
1143 | },
1144 | "node_modules/mustache": {
1145 | "version": "4.2.0",
1146 | "resolved": "https://registry.npmjs.org/mustache/-/mustache-4.2.0.tgz",
1147 | "integrity": "sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==",
1148 | "dev": true,
1149 | "license": "MIT",
1150 | "bin": {
1151 | "mustache": "bin/mustache"
1152 | }
1153 | },
1154 | "node_modules/nanoid": {
1155 | "version": "3.3.7",
1156 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz",
1157 | "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==",
1158 | "dev": true,
1159 | "funding": [
1160 | {
1161 | "type": "github",
1162 | "url": "https://github.com/sponsors/ai"
1163 | }
1164 | ],
1165 | "license": "MIT",
1166 | "bin": {
1167 | "nanoid": "bin/nanoid.cjs"
1168 | },
1169 | "engines": {
1170 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
1171 | }
1172 | },
1173 | "node_modules/node-forge": {
1174 | "version": "1.3.1",
1175 | "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz",
1176 | "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==",
1177 | "dev": true,
1178 | "license": "(BSD-3-Clause OR GPL-2.0)",
1179 | "engines": {
1180 | "node": ">= 6.13.0"
1181 | }
1182 | },
1183 | "node_modules/normalize-path": {
1184 | "version": "3.0.0",
1185 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
1186 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
1187 | "dev": true,
1188 | "license": "MIT",
1189 | "engines": {
1190 | "node": ">=0.10.0"
1191 | }
1192 | },
1193 | "node_modules/path-parse": {
1194 | "version": "1.0.7",
1195 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
1196 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
1197 | "dev": true,
1198 | "license": "MIT"
1199 | },
1200 | "node_modules/path-to-regexp": {
1201 | "version": "6.2.2",
1202 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.2.2.tgz",
1203 | "integrity": "sha512-GQX3SSMokngb36+whdpRXE+3f9V8UzyAorlYvOGx87ufGHehNTn5lCxrKtLyZ4Yl/wEKnNnr98ZzOwwDZV5ogw==",
1204 | "dev": true,
1205 | "license": "MIT"
1206 | },
1207 | "node_modules/picomatch": {
1208 | "version": "2.3.1",
1209 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
1210 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
1211 | "dev": true,
1212 | "license": "MIT",
1213 | "engines": {
1214 | "node": ">=8.6"
1215 | },
1216 | "funding": {
1217 | "url": "https://github.com/sponsors/jonschlinkert"
1218 | }
1219 | },
1220 | "node_modules/printable-characters": {
1221 | "version": "1.0.42",
1222 | "resolved": "https://registry.npmjs.org/printable-characters/-/printable-characters-1.0.42.tgz",
1223 | "integrity": "sha512-dKp+C4iXWK4vVYZmYSd0KBH5F/h1HoZRsbJ82AVKRO3PEo8L4lBS/vLwhVtpwwuYcoIsVY+1JYKR268yn480uQ==",
1224 | "dev": true,
1225 | "license": "Unlicense"
1226 | },
1227 | "node_modules/readdirp": {
1228 | "version": "3.6.0",
1229 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
1230 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
1231 | "dev": true,
1232 | "license": "MIT",
1233 | "dependencies": {
1234 | "picomatch": "^2.2.1"
1235 | },
1236 | "engines": {
1237 | "node": ">=8.10.0"
1238 | }
1239 | },
1240 | "node_modules/resolve": {
1241 | "version": "1.22.8",
1242 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz",
1243 | "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==",
1244 | "dev": true,
1245 | "license": "MIT",
1246 | "dependencies": {
1247 | "is-core-module": "^2.13.0",
1248 | "path-parse": "^1.0.7",
1249 | "supports-preserve-symlinks-flag": "^1.0.0"
1250 | },
1251 | "bin": {
1252 | "resolve": "bin/resolve"
1253 | },
1254 | "funding": {
1255 | "url": "https://github.com/sponsors/ljharb"
1256 | }
1257 | },
1258 | "node_modules/resolve.exports": {
1259 | "version": "2.0.2",
1260 | "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz",
1261 | "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==",
1262 | "dev": true,
1263 | "license": "MIT",
1264 | "engines": {
1265 | "node": ">=10"
1266 | }
1267 | },
1268 | "node_modules/rollup-plugin-inject": {
1269 | "version": "3.0.2",
1270 | "resolved": "https://registry.npmjs.org/rollup-plugin-inject/-/rollup-plugin-inject-3.0.2.tgz",
1271 | "integrity": "sha512-ptg9PQwzs3orn4jkgXJ74bfs5vYz1NCZlSQMBUA0wKcGp5i5pA1AO3fOUEte8enhGUC+iapTCzEWw2jEFFUO/w==",
1272 | "deprecated": "This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.",
1273 | "dev": true,
1274 | "license": "MIT",
1275 | "dependencies": {
1276 | "estree-walker": "^0.6.1",
1277 | "magic-string": "^0.25.3",
1278 | "rollup-pluginutils": "^2.8.1"
1279 | }
1280 | },
1281 | "node_modules/rollup-plugin-node-polyfills": {
1282 | "version": "0.2.1",
1283 | "resolved": "https://registry.npmjs.org/rollup-plugin-node-polyfills/-/rollup-plugin-node-polyfills-0.2.1.tgz",
1284 | "integrity": "sha512-4kCrKPTJ6sK4/gLL/U5QzVT8cxJcofO0OU74tnB19F40cmuAKSzH5/siithxlofFEjwvw1YAhPmbvGNA6jEroA==",
1285 | "dev": true,
1286 | "license": "MIT",
1287 | "dependencies": {
1288 | "rollup-plugin-inject": "^3.0.0"
1289 | }
1290 | },
1291 | "node_modules/rollup-pluginutils": {
1292 | "version": "2.8.2",
1293 | "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz",
1294 | "integrity": "sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==",
1295 | "dev": true,
1296 | "license": "MIT",
1297 | "dependencies": {
1298 | "estree-walker": "^0.6.1"
1299 | }
1300 | },
1301 | "node_modules/selfsigned": {
1302 | "version": "2.4.1",
1303 | "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.4.1.tgz",
1304 | "integrity": "sha512-th5B4L2U+eGLq1TVh7zNRGBapioSORUeymIydxgFpwww9d2qyKvtuPU2jJuHvYAwwqi2Y596QBL3eEqcPEYL8Q==",
1305 | "dev": true,
1306 | "license": "MIT",
1307 | "dependencies": {
1308 | "@types/node-forge": "^1.3.0",
1309 | "node-forge": "^1"
1310 | },
1311 | "engines": {
1312 | "node": ">=10"
1313 | }
1314 | },
1315 | "node_modules/source-map": {
1316 | "version": "0.6.1",
1317 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
1318 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
1319 | "dev": true,
1320 | "license": "BSD-3-Clause",
1321 | "engines": {
1322 | "node": ">=0.10.0"
1323 | }
1324 | },
1325 | "node_modules/sourcemap-codec": {
1326 | "version": "1.4.8",
1327 | "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz",
1328 | "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==",
1329 | "deprecated": "Please use @jridgewell/sourcemap-codec instead",
1330 | "dev": true,
1331 | "license": "MIT"
1332 | },
1333 | "node_modules/stacktracey": {
1334 | "version": "2.1.8",
1335 | "resolved": "https://registry.npmjs.org/stacktracey/-/stacktracey-2.1.8.tgz",
1336 | "integrity": "sha512-Kpij9riA+UNg7TnphqjH7/CzctQ/owJGNbFkfEeve4Z4uxT5+JapVLFXcsurIfN34gnTWZNJ/f7NMG0E8JDzTw==",
1337 | "dev": true,
1338 | "license": "Unlicense",
1339 | "dependencies": {
1340 | "as-table": "^1.0.36",
1341 | "get-source": "^2.0.12"
1342 | }
1343 | },
1344 | "node_modules/stoppable": {
1345 | "version": "1.1.0",
1346 | "resolved": "https://registry.npmjs.org/stoppable/-/stoppable-1.1.0.tgz",
1347 | "integrity": "sha512-KXDYZ9dszj6bzvnEMRYvxgeTHU74QBFL54XKtP3nyMuJ81CFYtABZ3bAzL2EdFUaEwJOBOgENyFj3R7oTzDyyw==",
1348 | "dev": true,
1349 | "license": "MIT",
1350 | "engines": {
1351 | "node": ">=4",
1352 | "npm": ">=6"
1353 | }
1354 | },
1355 | "node_modules/supports-preserve-symlinks-flag": {
1356 | "version": "1.0.0",
1357 | "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
1358 | "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
1359 | "dev": true,
1360 | "license": "MIT",
1361 | "engines": {
1362 | "node": ">= 0.4"
1363 | },
1364 | "funding": {
1365 | "url": "https://github.com/sponsors/ljharb"
1366 | }
1367 | },
1368 | "node_modules/to-regex-range": {
1369 | "version": "5.0.1",
1370 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
1371 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
1372 | "dev": true,
1373 | "license": "MIT",
1374 | "dependencies": {
1375 | "is-number": "^7.0.0"
1376 | },
1377 | "engines": {
1378 | "node": ">=8.0"
1379 | }
1380 | },
1381 | "node_modules/tslib": {
1382 | "version": "2.6.2",
1383 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz",
1384 | "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==",
1385 | "dev": true,
1386 | "license": "0BSD"
1387 | },
1388 | "node_modules/typescript": {
1389 | "version": "5.4.5",
1390 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz",
1391 | "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==",
1392 | "dev": true,
1393 | "license": "Apache-2.0",
1394 | "bin": {
1395 | "tsc": "bin/tsc",
1396 | "tsserver": "bin/tsserver"
1397 | },
1398 | "engines": {
1399 | "node": ">=14.17"
1400 | }
1401 | },
1402 | "node_modules/undici": {
1403 | "version": "5.28.4",
1404 | "resolved": "https://registry.npmjs.org/undici/-/undici-5.28.4.tgz",
1405 | "integrity": "sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==",
1406 | "dev": true,
1407 | "license": "MIT",
1408 | "dependencies": {
1409 | "@fastify/busboy": "^2.0.0"
1410 | },
1411 | "engines": {
1412 | "node": ">=14.0"
1413 | }
1414 | },
1415 | "node_modules/undici-types": {
1416 | "version": "5.26.5",
1417 | "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
1418 | "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
1419 | "dev": true,
1420 | "license": "MIT"
1421 | },
1422 | "node_modules/uuid": {
1423 | "version": "9.0.1",
1424 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",
1425 | "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",
1426 | "funding": [
1427 | "https://github.com/sponsors/broofa",
1428 | "https://github.com/sponsors/ctavan"
1429 | ],
1430 | "license": "MIT",
1431 | "bin": {
1432 | "uuid": "dist/bin/uuid"
1433 | }
1434 | },
1435 | "node_modules/workerd": {
1436 | "version": "1.20240524.0",
1437 | "resolved": "https://registry.npmjs.org/workerd/-/workerd-1.20240524.0.tgz",
1438 | "integrity": "sha512-LWLe5D8PVHBcqturmBbwgI71r7YPpIMYZoVEH6S4G35EqIJ55cb0n3FipoSyraoIfpcCxCFxX1K6WsRHbP3pFA==",
1439 | "dev": true,
1440 | "hasInstallScript": true,
1441 | "license": "Apache-2.0",
1442 | "bin": {
1443 | "workerd": "bin/workerd"
1444 | },
1445 | "engines": {
1446 | "node": ">=16"
1447 | },
1448 | "optionalDependencies": {
1449 | "@cloudflare/workerd-darwin-64": "1.20240524.0",
1450 | "@cloudflare/workerd-darwin-arm64": "1.20240524.0",
1451 | "@cloudflare/workerd-linux-64": "1.20240524.0",
1452 | "@cloudflare/workerd-linux-arm64": "1.20240524.0",
1453 | "@cloudflare/workerd-windows-64": "1.20240524.0"
1454 | }
1455 | },
1456 | "node_modules/wrangler": {
1457 | "version": "3.57.2",
1458 | "resolved": "https://registry.npmjs.org/wrangler/-/wrangler-3.57.2.tgz",
1459 | "integrity": "sha512-QegYf0FW+4prlFKE9iHr1EGrCo8ejcGL9gaqEXrzQ0vbTdazykYbY0I5UpHFLNq2dIF9I/ifEoLRKr636tyHEw==",
1460 | "dev": true,
1461 | "license": "MIT OR Apache-2.0",
1462 | "dependencies": {
1463 | "@cloudflare/kv-asset-handler": "0.3.2",
1464 | "@esbuild-plugins/node-globals-polyfill": "^0.2.3",
1465 | "@esbuild-plugins/node-modules-polyfill": "^0.2.2",
1466 | "blake3-wasm": "^2.1.5",
1467 | "chokidar": "^3.5.3",
1468 | "esbuild": "0.17.19",
1469 | "miniflare": "3.20240524.0",
1470 | "nanoid": "^3.3.3",
1471 | "path-to-regexp": "^6.2.0",
1472 | "resolve": "^1.22.8",
1473 | "resolve.exports": "^2.0.2",
1474 | "selfsigned": "^2.0.1",
1475 | "source-map": "0.6.1",
1476 | "xxhash-wasm": "^1.0.1"
1477 | },
1478 | "bin": {
1479 | "wrangler": "bin/wrangler.js",
1480 | "wrangler2": "bin/wrangler.js"
1481 | },
1482 | "engines": {
1483 | "node": ">=16.17.0"
1484 | },
1485 | "optionalDependencies": {
1486 | "fsevents": "~2.3.2"
1487 | },
1488 | "peerDependencies": {
1489 | "@cloudflare/workers-types": "^4.20240524.0"
1490 | },
1491 | "peerDependenciesMeta": {
1492 | "@cloudflare/workers-types": {
1493 | "optional": true
1494 | }
1495 | }
1496 | },
1497 | "node_modules/ws": {
1498 | "version": "8.17.0",
1499 | "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.0.tgz",
1500 | "integrity": "sha512-uJq6108EgZMAl20KagGkzCKfMEjxmKvZHG7Tlq0Z6nOky7YF7aq4mOx6xK8TJ/i1LeK4Qus7INktacctDgY8Ow==",
1501 | "dev": true,
1502 | "license": "MIT",
1503 | "engines": {
1504 | "node": ">=10.0.0"
1505 | },
1506 | "peerDependencies": {
1507 | "bufferutil": "^4.0.1",
1508 | "utf-8-validate": ">=5.0.2"
1509 | },
1510 | "peerDependenciesMeta": {
1511 | "bufferutil": {
1512 | "optional": true
1513 | },
1514 | "utf-8-validate": {
1515 | "optional": true
1516 | }
1517 | }
1518 | },
1519 | "node_modules/xxhash-wasm": {
1520 | "version": "1.0.2",
1521 | "resolved": "https://registry.npmjs.org/xxhash-wasm/-/xxhash-wasm-1.0.2.tgz",
1522 | "integrity": "sha512-ibF0Or+FivM9lNrg+HGJfVX8WJqgo+kCLDc4vx6xMeTce7Aj+DLttKbxxRR/gNLSAelRc1omAPlJ77N/Jem07A==",
1523 | "dev": true,
1524 | "license": "MIT"
1525 | },
1526 | "node_modules/youch": {
1527 | "version": "3.3.3",
1528 | "resolved": "https://registry.npmjs.org/youch/-/youch-3.3.3.tgz",
1529 | "integrity": "sha512-qSFXUk3UZBLfggAW3dJKg0BMblG5biqSF8M34E06o5CSsZtH92u9Hqmj2RzGiHDi64fhe83+4tENFP2DB6t6ZA==",
1530 | "dev": true,
1531 | "license": "MIT",
1532 | "dependencies": {
1533 | "cookie": "^0.5.0",
1534 | "mustache": "^4.2.0",
1535 | "stacktracey": "^2.1.8"
1536 | }
1537 | },
1538 | "node_modules/zod": {
1539 | "version": "3.23.8",
1540 | "resolved": "https://registry.npmjs.org/zod/-/zod-3.23.8.tgz",
1541 | "integrity": "sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==",
1542 | "dev": true,
1543 | "license": "MIT",
1544 | "funding": {
1545 | "url": "https://github.com/sponsors/colinhacks"
1546 | }
1547 | }
1548 | }
1549 | }
1550 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "v2ray-worker",
3 | "version": "2.4",
4 | "author": {
5 | "name": "Vahid Farid"
6 | },
7 | "private": true,
8 | "scripts": {
9 | "deploy": "wrangler deploy",
10 | "start": "wrangler dev"
11 | },
12 | "devDependencies": {
13 | "@cloudflare/workers-types": "^4.20240529.0",
14 | "@types/bcryptjs": "^2.4.6",
15 | "@types/crypto-js": "^4.2.2",
16 | "@types/js-yaml": "^4.0.9",
17 | "@types/node": "^20.12.13",
18 | "@types/uuid": "^9.0.8",
19 | "typescript": "^5.0.4",
20 | "wrangler": "^3.57.2"
21 | },
22 | "dependencies": {
23 | "bcryptjs": "^2.4.3",
24 | "buffer": "^6.0.3",
25 | "crypto-js": "^4.2.0",
26 | "js-yaml": "^4.1.0",
27 | "uuid": "^9.0.1"
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/resources/provider-list.txt:
--------------------------------------------------------------------------------
1 | https://raw.githubusercontent.com/mahdibland/V2RayAggregator/master/sub/list/00.txt
2 | https://raw.githubusercontent.com/Leon406/SubCrawler/main/sub/share/all4
3 | https://raw.githubusercontent.com/mfuu/v2ray/master/clash.yaml
4 | https://raw.githubusercontent.com/peasoft/NoMoreWalls/master/list.yml
5 | https://raw.githubusercontent.com/a2470982985/getNode/main/clash.yaml
6 | https://raw.githubusercontent.com/mlabalabala/v2ray-node/main/nodefree4clash.txt
7 | https://raw.githubusercontent.com/mahdibland/V2RayAggregator/master/sub/sub_merge.txt
8 | https://raw.githubusercontent.com/mfuu/v2ray/master/v2ray
--------------------------------------------------------------------------------
/resources/proxy-list.txt:
--------------------------------------------------------------------------------
1 | ni.radically.pro,USA
2 | usa.revil.link,USA
3 | 152.67.9.19,IND
4 | 193.123.81.105,UAE
5 | 139.185.34.131,UAE
6 | 43.153.80.208,USA
7 | proxyip.us.hw.090227.xyz,USA
8 | proxyip.digitalocean.hw.090227.xyz,USA
9 | proxyip.oracle.fxxk.dedyn.io,USA
10 | 156.146.53.83,USA
11 | 99.83.209.185,USA
12 | 62.3.12.185,TUR
13 | 192.237.192.175,USA
14 | 72.13.122.137,USA
15 | 140.238.64.65,GBR
16 | 146.70.175.162,NLD
17 | 143.47.227.123,NLD
18 | 132.226.10.65,JPN
19 | 152.70.86.93,JPN
20 | 152.69.178.16,AUS
21 | 192.9.177.204,AUS
22 | 140.238.195.98,AUS
23 | 47.236.203.169,SGP
24 | 8.219.174.142,SGP
25 | ircpipproxy.duckdns.org,UK
26 | ipdb.rr.nu
27 | cdn-all.xn--b6gac.eu.org
28 | cdn.xn--b6gac.eu.org
29 | edgetunnel.anycast.eu.org,SGP
30 | proxyip.aliyun.fxxk.dedyn.io,USA
31 | proxyip.vultr.fxxk.dedyn.io,USA
32 | proxyip.multacom.fxxk.dedyn.io,USA
33 |
--------------------------------------------------------------------------------
/src/auth.ts:
--------------------------------------------------------------------------------
1 | import * as bcrypt from 'bcryptjs'
2 | import { GenerateToken, Delay } from "./helpers"
3 | import { Env } from "./interfaces"
4 | import { version } from "./variables"
5 |
6 | export async function GetLogin(request: Request, env: Env): Promise {
7 | const url: URL = new URL(request.url)
8 | let htmlMessage = ""
9 | const message = url.searchParams.get("message")
10 | if (message == "error") {
11 | htmlMessage = `