Commit c1c0e63c8a

c1c0e63c8aa8f1836126e53496f4c09587bccf72

Unsigned

cmc <hello@cleberg.net> · 2026-07-20 05:33 UTC

first public marketplace release

Layout: unified · split

.dev.vars.example added +7
@@ -0,0 +1,7 @@
1GITHUB_APP_ID=
2GITHUB_APP_PRIVATE_KEY=
3GITHUB_WEBHOOK_SECRET=
4GITHUB_APP_CLIENT_ID=
5GITHUB_APP_CLIENT_SECRET=
6SESSION_SECRET=
7ADMIN_TOKEN=
.gitignore added +8
@@ -0,0 +1,8 @@
1node_modules/
2.wrangler/
3.dev.vars
4worker-configuration.d.ts
5dist/
6*.log
7*.cpuprofile
8exports/
CODEOWNERS added +1
@@ -0,0 +1 @@
1* @ccleberg @ekraai2
LICENSE added +674
@@ -0,0 +1,674 @@
1 GNU GENERAL PUBLIC LICENSE
2 Version 3, 29 June 2007
3
4 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
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
11software and other kinds of works.
12
13 The licenses for most software and other practical works are designed
14to take away your freedom to share and change the works. By contrast,
15the GNU General Public License is intended to guarantee your freedom to
16share and change all versions of a program--to make sure it remains free
17software for all its users. We, the Free Software Foundation, use the
18GNU General Public License for most of our software; it applies also to
19any other work released this way by its authors. You can apply it to
20your programs, too.
21
22 When we speak of free software, we are referring to freedom, not
23price. Our General Public Licenses are designed to make sure that you
24have the freedom to distribute copies of free software (and charge for
25them if you wish), that you receive source code or can get it if you
26want it, that you can change the software or use pieces of it in new
27free programs, and that you know you can do these things.
28
29 To protect your rights, we need to prevent others from denying you
30these rights or asking you to surrender the rights. Therefore, you have
31certain responsibilities if you distribute copies of the software, or if
32you modify it: responsibilities to respect the freedom of others.
33
34 For example, if you distribute copies of such a program, whether
35gratis or for a fee, you must pass on to the recipients the same
36freedoms that you received. You must make sure that they, too, receive
37or can get the source code. And you must show them these terms so they
38know 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
42giving you legal permission to copy, distribute and/or modify it.
43
44 For the developers' and authors' protection, the GPL clearly explains
45that there is no warranty for this free software. For both users' and
46authors' sake, the GPL requires that modified versions be marked as
47changed, so that their problems will not be attributed erroneously to
48authors of previous versions.
49
50 Some devices are designed to deny users access to install or run
51modified versions of the software inside them, although the manufacturer
52can do so. This is fundamentally incompatible with the aim of
53protecting users' freedom to change the software. The systematic
54pattern of such abuse occurs in the area of products for individuals to
55use, which is precisely where it is most unacceptable. Therefore, we
56have designed this version of the GPL to prohibit the practice for those
57products. If such problems arise substantially in other domains, we
58stand ready to extend this provision to those domains in future versions
59of the GPL, as needed to protect the freedom of users.
60
61 Finally, every program is threatened constantly by software patents.
62States should not allow patents to restrict development and use of
63software on general-purpose computers, but in those that do, we wish to
64avoid the special danger that patents applied to a free program could
65make it effectively proprietary. To prevent this, the GPL assures that
66patents cannot be used to render the program non-free.
67
68 The precise terms and conditions for copying, distribution and
69modification 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
78works, such as semiconductor masks.
79
80 "The Program" refers to any copyrightable work licensed under this
81License. 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
85in a fashion requiring copyright permission, other than the making of an
86exact copy. The resulting work is called a "modified version" of the
87earlier work or a work "based on" the earlier work.
88
89 A "covered work" means either the unmodified Program or a work based
90on the Program.
91
92 To "propagate" a work means to do anything with it that, without
93permission, would make you directly or secondarily liable for
94infringement under applicable copyright law, except executing it on a
95computer or modifying a private copy. Propagation includes copying,
96distribution (with or without modification), making available to the
97public, and in some countries other activities as well.
98
99 To "convey" a work means any kind of propagation that enables other
100parties to make or receive copies. Mere interaction with a user through
101a computer network, with no transfer of a copy, is not conveying.
102
103 An interactive user interface displays "Appropriate Legal Notices"
104to the extent that it includes a convenient and prominently visible
105feature that (1) displays an appropriate copyright notice, and (2)
106tells the user that there is no warranty for the work (except to the
107extent that warranties are provided), that licensees may convey the
108work under this License, and how to view a copy of this License. If
109the interface presents a list of user commands or options, such as a
110menu, 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
115for making modifications to it. "Object code" means any non-source
116form of a work.
117
118 A "Standard Interface" means an interface that either is an official
119standard defined by a recognized standards body, or, in the case of
120interfaces specified for a particular programming language, one that
121is widely used among developers working in that language.
122
123 The "System Libraries" of an executable work include anything, other
124than the work as a whole, that (a) is included in the normal form of
125packaging a Major Component, but which is not part of that Major
126Component, and (b) serves only to enable use of the work with that
127Major Component, or to implement a Standard Interface for which an
128implementation 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
132produce 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
135the source code needed to generate, install, and (for an executable
136work) run the object code and to modify the work, including scripts to
137control those activities. However, it does not include the work's
138System Libraries, or general-purpose tools or generally available free
139programs which are used unmodified in performing those activities but
140which are not part of the work. For example, Corresponding Source
141includes interface definition files associated with source files for
142the work, and the source code for shared libraries and dynamically
143linked subprograms that the work is specifically designed to require,
144such as by intimate data communication or control flow between those
145subprograms and other parts of the work.
146
147 The Corresponding Source need not include anything that users
148can regenerate automatically from other parts of the Corresponding
149Source.
150
151 The Corresponding Source for a work in source code form is that
152same work.
153
154 2. Basic Permissions.
155
156 All rights granted under this License are granted for the term of
157copyright on the Program, and are irrevocable provided the stated
158conditions are met. This License explicitly affirms your unlimited
159permission to run the unmodified Program. The output from running a
160covered work is covered by this License only if the output, given its
161content, constitutes a covered work. This License acknowledges your
162rights 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
165convey, without conditions so long as your license otherwise remains
166in force. You may convey covered works to others for the sole purpose
167of having them make modifications exclusively for you, or provide you
168with facilities for running those works, provided that you comply with
169the terms of this License in conveying all material for which you do
170not control copyright. Those thus making or running the covered works
171for you must do so exclusively on your behalf, under your direction
172and control, on terms that prohibit them from making any copies of
173your copyrighted material outside their relationship with you.
174
175 Conveying under any other circumstances is permitted solely under
176the conditions stated below. Sublicensing is not allowed; section 10
177makes 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
182measure under any applicable law fulfilling obligations under article
18311 of the WIPO copyright treaty adopted on 20 December 1996, or
184similar laws prohibiting or restricting circumvention of such
185measures.
186
187 When you convey a covered work, you waive any legal power to forbid
188circumvention of technological measures to the extent such circumvention
189is effected by exercising rights under this License with respect to
190the covered work, and you disclaim any intention to limit operation or
191modification of the work as a means of enforcing, against the work's
192users, your or third parties' legal rights to forbid circumvention of
193technological measures.
194
195 4. Conveying Verbatim Copies.
196
197 You may convey verbatim copies of the Program's source code as you
198receive it, in any medium, provided that you conspicuously and
199appropriately publish on each copy an appropriate copyright notice;
200keep intact all notices stating that this License and any
201non-permissive terms added in accord with section 7 apply to the code;
202keep intact all notices of the absence of any warranty; and give all
203recipients 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,
206and 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
211produce it from the Program, in the form of source code under the
212terms 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
236works, which are not by their nature extensions of the covered work,
237and which are not combined with it such as to form a larger program,
238in or on a volume of a storage or distribution medium, is called an
239"aggregate" if the compilation and its resulting copyright are not
240used to limit the access or legal rights of the compilation's users
241beyond what the individual works permit. Inclusion of a covered work
242in an aggregate does not cause this License to apply to the other
243parts 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
248of sections 4 and 5, provided that you also convey the
249machine-readable Corresponding Source under the terms of this License,
250in 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
294from the Corresponding Source as a System Library, need not be
295included in conveying the object code work.
296
297 A "User Product" is either (1) a "consumer product", which means any
298tangible personal property which is normally used for personal, family,
299or household purposes, or (2) anything designed or sold for incorporation
300into a dwelling. In determining whether a product is a consumer product,
301doubtful cases shall be resolved in favor of coverage. For a particular
302product received by a particular user, "normally used" refers to a
303typical or common use of that class of product, regardless of the status
304of the particular user or of the way in which the particular user
305actually uses, or expects or is expected to use, the product. A product
306is a consumer product regardless of whether the product has substantial
307commercial, industrial or non-consumer uses, unless such uses represent
308the only significant mode of use of the product.
309
310 "Installation Information" for a User Product means any methods,
311procedures, authorization keys, or other information required to install
312and execute modified versions of a covered work in that User Product from
313a modified version of its Corresponding Source. The information must
314suffice to ensure that the continued functioning of the modified object
315code is in no case prevented or interfered with solely because
316modification has been made.
317
318 If you convey an object code work under this section in, or with, or
319specifically for use in, a User Product, and the conveying occurs as
320part of a transaction in which the right of possession and use of the
321User Product is transferred to the recipient in perpetuity or for a
322fixed term (regardless of how the transaction is characterized), the
323Corresponding Source conveyed under this section must be accompanied
324by the Installation Information. But this requirement does not apply
325if neither you nor any third party retains the ability to install
326modified object code on the User Product (for example, the work has
327been installed in ROM).
328
329 The requirement to provide Installation Information does not include a
330requirement to continue to provide support service, warranty, or updates
331for a work that has been modified or installed by the recipient, or for
332the User Product in which it has been modified or installed. Access to a
333network may be denied when the modification itself materially and
334adversely affects the operation of the network or violates the rules and
335protocols for communication across the network.
336
337 Corresponding Source conveyed, and Installation Information provided,
338in accord with this section must be in a format that is publicly
339documented (and with an implementation available to the public in
340source code form), and must require no special password or key for
341unpacking, reading or copying.
342
343 7. Additional Terms.
344
345 "Additional permissions" are terms that supplement the terms of this
346License by making exceptions from one or more of its conditions.
347Additional permissions that are applicable to the entire Program shall
348be treated as though they were included in this License, to the extent
349that they are valid under applicable law. If additional permissions
350apply only to part of the Program, that part may be used separately
351under those permissions, but the entire Program remains governed by
352this License without regard to the additional permissions.
353
354 When you convey a copy of a covered work, you may at your option
355remove any additional permissions from that copy, or from any part of
356it. (Additional permissions may be written to require their own
357removal in certain cases when you modify the work.) You may place
358additional permissions on material, added by you to a covered work,
359for which you have or can give appropriate copyright permission.
360
361 Notwithstanding any other provision of this License, for material you
362add to a covered work, you may (if authorized by the copyright holders of
363that 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
389restrictions" within the meaning of section 10. If the Program as you
390received it, or any part of it, contains a notice stating that it is
391governed by this License along with a term that is a further
392restriction, you may remove that term. If a license document contains
393a further restriction but permits relicensing or conveying under this
394License, you may add to a covered work material governed by the terms
395of that license document, provided that the further restriction does
396not survive such relicensing or conveying.
397
398 If you add terms to a covered work in accord with this section, you
399must place, in the relevant source files, a statement of the
400additional terms that apply to those files, or a notice indicating
401where to find the applicable terms.
402
403 Additional terms, permissive or non-permissive, may be stated in the
404form of a separately written license, or stated as exceptions;
405the above requirements apply either way.
406
407 8. Termination.
408
409 You may not propagate or modify a covered work except as expressly
410provided under this License. Any attempt otherwise to propagate or
411modify it is void, and will automatically terminate your rights under
412this License (including any patent licenses granted under the third
413paragraph of section 11).
414
415 However, if you cease all violation of this License, then your
416license from a particular copyright holder is reinstated (a)
417provisionally, unless and until the copyright holder explicitly and
418finally terminates your license, and (b) permanently, if the copyright
419holder fails to notify you of the violation by some reasonable means
420prior to 60 days after the cessation.
421
422 Moreover, your license from a particular copyright holder is
423reinstated permanently if the copyright holder notifies you of the
424violation by some reasonable means, this is the first time you have
425received notice of violation of this License (for any work) from that
426copyright holder, and you cure the violation prior to 30 days after
427your receipt of the notice.
428
429 Termination of your rights under this section does not terminate the
430licenses of parties who have received copies or rights from you under
431this License. If your rights have been terminated and not permanently
432reinstated, you do not qualify to receive new licenses for the same
433material 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
438run a copy of the Program. Ancillary propagation of a covered work
439occurring solely as a consequence of using peer-to-peer transmission
440to receive a copy likewise does not require acceptance. However,
441nothing other than this License grants you permission to propagate or
442modify any covered work. These actions infringe copyright if you do
443not accept this License. Therefore, by modifying or propagating a
444covered 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
449receives a license from the original licensors, to run, modify and
450propagate that work, subject to this License. You are not responsible
451for enforcing compliance by third parties with this License.
452
453 An "entity transaction" is a transaction transferring control of an
454organization, or substantially all assets of one, or subdividing an
455organization, or merging organizations. If propagation of a covered
456work results from an entity transaction, each party to that
457transaction who receives a copy of the work also receives whatever
458licenses to the work the party's predecessor in interest had or could
459give under the previous paragraph, plus a right to possession of the
460Corresponding Source of the work from the predecessor in interest, if
461the predecessor has it or can get it with reasonable efforts.
462
463 You may not impose any further restrictions on the exercise of the
464rights granted or affirmed under this License. For example, you may
465not impose a license fee, royalty, or other charge for exercise of
466rights granted under this License, and you may not initiate litigation
467(including a cross-claim or counterclaim in a lawsuit) alleging that
468any patent claim is infringed by making, using, selling, offering for
469sale, 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
474License of the Program or a work on which the Program is based. The
475work thus licensed is called the contributor's "contributor version".
476
477 A contributor's "essential patent claims" are all patent claims
478owned or controlled by the contributor, whether already acquired or
479hereafter acquired, that would be infringed by some manner, permitted
480by this License, of making, using, or selling its contributor version,
481but do not include claims that would be infringed only as a
482consequence of further modification of the contributor version. For
483purposes of this definition, "control" includes the right to grant
484patent sublicenses in a manner consistent with the requirements of
485this License.
486
487 Each contributor grants you a non-exclusive, worldwide, royalty-free
488patent license under the contributor's essential patent claims, to
489make, use, sell, offer for sale, import and otherwise run, modify and
490propagate the contents of its contributor version.
491
492 In the following three paragraphs, a "patent license" is any express
493agreement or commitment, however denominated, not to enforce a patent
494(such as an express permission to practice a patent or covenant not to
495sue for patent infringement). To "grant" such a patent license to a
496party means to make such an agreement or commitment not to enforce a
497patent against the party.
498
499 If you convey a covered work, knowingly relying on a patent license,
500and the Corresponding Source of the work is not available for anyone
501to copy, free of charge and under the terms of this License, through a
502publicly available network server or other readily accessible means,
503then you must either (1) cause the Corresponding Source to be so
504available, or (2) arrange to deprive yourself of the benefit of the
505patent license for this particular work, or (3) arrange, in a manner
506consistent with the requirements of this License, to extend the patent
507license to downstream recipients. "Knowingly relying" means you have
508actual knowledge that, but for the patent license, your conveying the
509covered work in a country, or your recipient's use of the covered work
510in a country, would infringe one or more identifiable patents in that
511country that you have reason to believe are valid.
512
513 If, pursuant to or in connection with a single transaction or
514arrangement, you convey, or propagate by procuring conveyance of, a
515covered work, and grant a patent license to some of the parties
516receiving the covered work authorizing them to use, propagate, modify
517or convey a specific copy of the covered work, then the patent license
518you grant is automatically extended to all recipients of the covered
519work and works based on it.
520
521 A patent license is "discriminatory" if it does not include within
522the scope of its coverage, prohibits the exercise of, or is
523conditioned on the non-exercise of one or more of the rights that are
524specifically granted under this License. You may not convey a covered
525work if you are a party to an arrangement with a third party that is
526in the business of distributing software, under which you make payment
527to the third party based on the extent of your activity of conveying
528the work, and under which the third party grants, to any of the
529parties who would receive the covered work from you, a discriminatory
530patent license (a) in connection with copies of the covered work
531conveyed by you (or copies made from those copies), or (b) primarily
532for and in connection with specific products or compilations that
533contain the covered work, unless you entered into that arrangement,
534or that patent license was granted, prior to 28 March 2007.
535
536 Nothing in this License shall be construed as excluding or limiting
537any implied license or other defenses to infringement that may
538otherwise 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
543otherwise) that contradict the conditions of this License, they do not
544excuse you from the conditions of this License. If you cannot convey a
545covered work so as to satisfy simultaneously your obligations under this
546License and any other pertinent obligations, then as a consequence you may
547not convey it at all. For example, if you agree to terms that obligate you
548to collect a royalty for further conveying from those to whom you convey
549the Program, the only way you could satisfy both those terms and this
550License 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
555permission to link or combine any covered work with a work licensed
556under version 3 of the GNU Affero General Public License into a single
557combined work, and to convey the resulting work. The terms of this
558License will continue to apply to the part which is the covered work,
559but the special requirements of the GNU Affero General Public License,
560section 13, concerning interaction through a network will apply to the
561combination as such.
562
563 14. Revised Versions of this License.
564
565 The Free Software Foundation may publish revised and/or new versions of
566the GNU General Public License from time to time. Such new versions will
567be similar in spirit to the present version, but may differ in detail to
568address new problems or concerns.
569
570 Each version is given a distinguishing version number. If the
571Program specifies that a certain numbered version of the GNU General
572Public License "or any later version" applies to it, you have the
573option of following the terms and conditions either of that numbered
574version or of any later version published by the Free Software
575Foundation. If the Program does not specify a version number of the
576GNU General Public License, you may choose any version ever published
577by the Free Software Foundation.
578
579 If the Program specifies that a proxy can decide which future
580versions of the GNU General Public License can be used, that proxy's
581public statement of acceptance of a version permanently authorizes you
582to choose that version for the Program.
583
584 Later license versions may give you additional or different
585permissions. However, no additional obligations are imposed on any
586author or copyright holder as a result of your choosing to follow a
587later version.
588
589 15. Disclaimer of Warranty.
590
591 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598ALL 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
603WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610SUCH DAMAGES.
611
612 17. Interpretation of Sections 15 and 16.
613
614 If the disclaimer of warranty and limitation of liability provided
615above cannot be given local legal effect according to their terms,
616reviewing courts shall apply local law that most closely approximates
617an absolute waiver of all civil liability in connection with the
618Program, unless a warranty or assumption of liability accompanies a
619copy 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
626possible use to the public, the best way to achieve this is to make it
627free 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
630to attach them to the start of each source file to most effectively
631state the exclusion of warranty; and each file should have at least
632the "copyright" line and a pointer to where the full notice is found.
633
634 <one line to give the program's name and a brief idea of what it does.>
635 Copyright (C) <year> <name of author>
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 <https://www.gnu.org/licenses/>.
649
650Also 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
653notice like this when it starts in an interactive mode:
654
655 <program> Copyright (C) <year> <name of author>
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
660The hypothetical commands `show w' and `show c' should show the appropriate
661parts of the General Public License. Of course, your program's commands
662might 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,
665if any, to sign a "copyright disclaimer" for the program, if necessary.
666For more information on this, and how to apply and follow the GNU GPL, see
667<https://www.gnu.org/licenses/>.
668
669 The GNU General Public License does not permit incorporating your program
670into proprietary programs. If your program is a subroutine library, you
671may consider it more useful to permit linking proprietary applications with
672the library. If this is what you want to do, use the GNU Lesser General
673Public License instead of this License. But first, please read
674<https://www.gnu.org/licenses/why-not-lgpl.html>.
PRIVACY.md added +144
@@ -0,0 +1,144 @@
1# gh-attest — Privacy Policy
2
3**Effective date:** 2026-07-19
4
5gh-attest ("the App") is a GitHub App operated by Audit Labs ("we",
6"us"). It helps compliance and security teams collect
7point-in-time evidence about the security configuration of their own
8GitHub organization and map it to SOC 2 and ISO 27001 control
9identifiers. This policy explains what the App processes, why, how long
10it is kept, and your choices.
11
12This policy covers the gh-attest App and its dashboard only. It does not
13cover GitHub itself — see GitHub's Privacy Statement for how GitHub
14handles your data.
15
16## What we process
17
18The App processes data only for organizations that have installed it,
19and only within the scope of the permissions granted at installation.
20
21**Organization & installation metadata.** Installation ID, organization
22login, and installation/suspension timestamps.
23
24**Security & access-control signals (the evidence).** As your
25configuration changes and on a periodic re-sync, the App records
26point-in-time "snapshots" of security-relevant state, which may include:
27
28- branch protection and repository ruleset configuration (enabled /
29 disabled);
30- repository, push, and member/team change events;
31- Dependabot, code scanning, and secret scanning alert state.
32
33For audit-trail integrity, each snapshot stores the original GitHub
34webhook payload that produced it. These payloads can contain repository
35names, team names, and the GitHub logins of members whose access
36changed.
37
38**Dashboard sign-in.** When you sign in to the dashboard, the App reads
39your GitHub user ID and login and the list of installations you can
40access, solely to confirm you belong to an organization that installed
41the App. Your GitHub profile is stored only inside a signed, expiring
42session cookie in your browser — it is **not** written to our database.
43
44**Exports.** Evidence exports you generate (CSV or PDF) are stored so
45you can download them, along with metadata about each export job.
46
47## What we do NOT process
48
49- We do **not** store the contents of your source code.
50- We do **not** store GitHub personal access tokens. The App
51 authenticates using short-lived installation access tokens minted per
52 request (valid ~1 hour) and never persisted.
53- We do **not** collect passwords or payment information.
54- We do **not** sell your data or share it with third parties for
55 advertising, and we do **not** aggregate data across organizations.
56
57## How we use it
58
59Solely to provide the App's function: presenting your current security
60posture, mapping it to SOC 2 / ISO 27001 controls, and generating
61point-in-time evidence exports and access-review comparisons for your
62own organization.
63
64## Where it is stored and how it is protected
65
66All data is stored on Cloudflare's platform (D1 and R2) in the
67**European Union**. Both the database and the object storage are created
68under Cloudflare's `eu` jurisdiction, which restricts them to storing and
69running within the EU.
70
71Note that the application code itself runs on Cloudflare Workers, which
72execute at the network edge close to the requesting user. A request made
73from outside the EU is therefore processed outside the EU, even though
74the data it reads and writes is stored within the EU. We do not currently
75use Cloudflare's Regional Services to constrain where request processing
76occurs.
77
78Protections include:
79
80- webhook payloads are verified with HMAC-SHA256 signatures before
81 processing;
82- the GitHub App private key, webhook secret, and session-signing key
83 are stored as encrypted platform secrets, never in source code;
84- authentication uses short-lived installation tokens that are never
85 stored;
86- all stored data is scoped per installation, and the dashboard enforces
87 that a signed-in user can access only their own organization's data.
88
89## Subprocessors
90
91- **Cloudflare, Inc.** — hosting, database (D1), and object storage (R2),
92 under the EU jurisdiction described above.
93
94**GitHub, Inc.** is the system the data comes from. Your organization has
95its own relationship with GitHub, so GitHub is not a subprocessor we
96engage on your behalf.
97
98If we add or replace a subprocessor, we will notify installed
99organizations in advance so they have an opportunity to object.
100
101## Security incidents
102
103If we become aware of a breach affecting your organization's data, we
104will notify you without undue delay and provide the information you need
105to meet your own notification obligations.
106
107## Data retention & deletion
108
109Evidence snapshots are retained for 13 months, export files
110for 90 days, and all data for an organization is deleted when the App
111is uninstalled. You may also request deletion at any time.
112
113## Your choices and rights
114
115**If you administer an installing organization:**
116
117- **Uninstall** the App at any time from your organization's GitHub
118 settings to stop all processing and trigger deletion of your data.
119- **Export** your organization's data as CSV or PDF from the dashboard
120 at any time.
121- **Request deletion** of your organization's data by contacting us.
122- Request a **Data Processing Addendum** if you need one for your own
123 compliance obligations.
124
125**If you are an individual whose GitHub login appears in an
126organization's data:** we hold that data on behalf of that organization,
127which decides how it is used. We have no direct relationship with you
128and cannot verify your identity, so please direct access, correction, or
129deletion requests to the organization. If you contact us, we will refer
130your request to them rather than acting on it ourselves.
131
132Depending on your jurisdiction (e.g., GDPR, CCPA/CPRA), you may have
133additional rights; the organization can exercise them with our
134assistance.
135
136## Contact
137
138privacy@audit-labs.dev — Audit Labs
139
140## Changes
141
142We may update this policy. Material changes will be reflected by the
143effective date above and, where appropriate, communicated to installed
144organizations.
README.md added +95
@@ -0,0 +1,95 @@
1# gh-attest
2
3Turns GitHub security settings into auditor-ready evidence. A GitHub App that
4records branch protection, scanning alerts, and organization access as they
5change, maps them to SOC 2 and ISO 27001 controls, and exports point-in-time
6CSV and PDF evidence packages.
7
8Read-only — it never modifies your repositories, permissions, or membership.
9
10## What it collects
11
12| Signal | Evidence for |
13| --- | --- |
14| Branch protection, repository rulesets | SOC 2 CC8.1 · ISO 27001 A.8.32 |
15| Secret scanning alerts | SOC 2 CC6.6 |
16| Dependabot alerts | SOC 2 CC7.1, CC7.2 |
17| Code scanning alerts | ISO 27001 A.8.28, A.8.29 |
18| Organization / team membership | SOC 2 CC6.2, CC6.3 · ISO 27001 A.5.18 |
19| Repository inventory | ISO 27001 A.5.9 |
20
21Mappings live in `migrations/` and are applied as a join at query time, so a
22mapping can be corrected without re-ingesting history.
23
24## How it works
25
26Webhooks capture changes as they happen; an hourly cron polls for state that
27webhooks never announce (protection that existed before install, and current
28membership). Each observation is stored as a timestamped snapshot in D1.
29Exports render off the request path via a queue, into R2.
30
31**Stack:** Cloudflare Workers · D1 · R2 · Queues. All storage is provisioned
32under Cloudflare's `eu` jurisdiction.
33
34## Endpoints
35
36| Route | Auth | Purpose |
37| --- | --- | --- |
38| `GET /` | session | Dashboard: current posture, exports |
39| `GET /access-review` | session | Membership changes since a date |
40| `POST /exports`, `/resync`, `/switch` | session | Dashboard actions |
41| `GET /exports/:id[/download]` | session | Export status / file |
42| `POST /webhooks/github` | HMAC | App events |
43| `POST /webhooks/marketplace` | HMAC | Marketplace events |
44| `POST /admin/{poll,export,cleanup,purge}` | bearer | Operations |
45
46Session routes are scoped by installation; admin routes require `ADMIN_TOKEN`.
47
48## Development
49
50```sh
51npm install
52cp .dev.vars.example .dev.vars # fill in, see below
53npm run db:migrate:local
54npm run dev
55```
56
57Type checking: `npm run typecheck`. Generate binding types after editing
58`wrangler.jsonc`: `npm run types`.
59
60## Deployment
61
62```sh
63npm run db:migrate:remote
64npm run deploy
65```
66
67Secrets are set with `wrangler secret put <NAME>` — never in `wrangler.jsonc`:
68
69| Secret | Purpose |
70| --- | --- |
71| `GITHUB_APP_ID`, `GITHUB_APP_PRIVATE_KEY` | Mint installation tokens |
72| `GITHUB_WEBHOOK_SECRET` | Verify webhook signatures |
73| `GITHUB_APP_CLIENT_ID`, `GITHUB_APP_CLIENT_SECRET` | Dashboard OAuth |
74| `SESSION_SECRET` | Sign session cookies |
75| `ADMIN_TOKEN` | Bearer for `/admin/*` |
76
77Pipe the private key from its file rather than pasting it:
78`wrangler secret put GITHUB_APP_PRIVATE_KEY < key.pem`
79
80> Cron triggers occasionally stop firing after a deploy. If the hourly poll
81> goes quiet, set `triggers.crons` to `[]`, deploy, restore it, and deploy
82> again — a same-value redeploy does not clear it.
83
84## Data handling
85
86Evidence is retained for 13 months and exports for 90 days; everything for an
87installation is deleted when the App is uninstalled. No source code or access
88tokens are stored. See [PRIVACY.md](PRIVACY.md).
89
90Retention periods are defined in `src/index.ts` and restated in `PRIVACY.md` —
91change both together.
92
93## License
94
95GPL-3.0. See [LICENSE](LICENSE).
migrations/0001_initial.sql added +21
@@ -0,0 +1,21 @@
1CREATE TABLE installations (
2 installation_id INTEGER PRIMARY KEY,
3 org_login TEXT NOT NULL,
4 installed_at TEXT NOT NULL,
5 suspended_at TEXT
6);
7
8CREATE TABLE snapshots (
9 id INTEGER PRIMARY KEY AUTOINCREMENT,
10 installation_id INTEGER NOT NULL,
11 repo TEXT, -- null for org-level facts
12 control_id TEXT, -- e.g. 'SOC2-CC6.1' — nullable until mapping table is built
13 resource TEXT NOT NULL, -- e.g. 'branch_protection', 'secret_scanning_alert', 'member_access'
14 status TEXT NOT NULL, -- e.g. 'enabled', 'disabled', 'open', 'resolved'
15 raw_payload TEXT, -- original JSON, for audit trail / re-mapping later
16 captured_at TEXT NOT NULL,
17 FOREIGN KEY (installation_id) REFERENCES installations(installation_id)
18);
19
20CREATE INDEX idx_snapshots_installation ON snapshots(installation_id, captured_at);
21CREATE INDEX idx_snapshots_control ON snapshots(control_id);
migrations/0002_control_mappings.sql added +62
@@ -0,0 +1,62 @@
1-- snapshots.control_id was a placeholder for a mapping approach we didn't
2-- end up using — mapping happens via a join against control_mappings at
3-- query/export time instead, so re-mapping doesn't require re-ingesting
4-- webhook history.
5DROP INDEX IF EXISTS idx_snapshots_control;
6ALTER TABLE snapshots DROP COLUMN control_id;
7
8CREATE TABLE control_mappings (
9 id INTEGER PRIMARY KEY AUTOINCREMENT,
10 resource TEXT NOT NULL,
11 status TEXT, -- NULL matches any status for this resource
12 framework TEXT NOT NULL, -- 'soc2' | 'iso27001'
13 control_id TEXT NOT NULL, -- e.g. 'CC8.1', 'A.8.32'
14 posture TEXT NOT NULL, -- 'positive' | 'negative' | 'informational'
15 rationale TEXT NOT NULL
16);
17
18CREATE INDEX idx_control_mappings_resource ON control_mappings(resource);
19
20INSERT INTO control_mappings (resource, status, framework, control_id, posture, rationale) VALUES
21 -- branch protection / ruleset present
22 ('branch_protection', 'created', 'soc2', 'CC8.1', 'positive', 'Change management — code changes require review before merge'),
23 ('branch_protection', 'edited', 'soc2', 'CC8.1', 'positive', 'Change management — code changes require review before merge'),
24 ('branch_protection', 'created', 'iso27001', 'A.8.32', 'positive', 'Change management'),
25 ('branch_protection', 'edited', 'iso27001', 'A.8.32', 'positive', 'Change management'),
26 ('repository_ruleset', 'created', 'soc2', 'CC8.1', 'positive', 'Change management — code changes require review before merge'),
27 ('repository_ruleset', 'edited', 'soc2', 'CC8.1', 'positive', 'Change management — code changes require review before merge'),
28 ('repository_ruleset', 'created', 'iso27001', 'A.8.32', 'positive', 'Change management'),
29 ('repository_ruleset', 'edited', 'iso27001', 'A.8.32', 'positive', 'Change management'),
30
31 -- branch protection / ruleset removed
32 ('branch_protection', 'deleted', 'soc2', 'CC8.1', 'negative', 'Change control gap — direct pushes now possible'),
33 ('branch_protection', 'deleted', 'iso27001', 'A.8.32', 'negative', 'Change control gap — direct pushes now possible'),
34 ('repository_ruleset', 'deleted', 'soc2', 'CC8.1', 'negative', 'Change control gap — direct pushes now possible'),
35 ('repository_ruleset', 'deleted', 'iso27001', 'A.8.32', 'negative', 'Change control gap — direct pushes now possible'),
36
37 -- dependabot_alert
38 ('dependabot_alert', NULL, 'soc2', 'CC7.1', 'positive', 'Detection tooling is active'),
39 ('dependabot_alert', 'open', 'soc2', 'CC7.2', 'negative', 'Unremediated known vulnerability'),
40 ('dependabot_alert', 'fixed', 'soc2', 'CC7.2', 'positive', 'Remediated'),
41 ('dependabot_alert', 'dismissed', 'soc2', 'CC7.2', 'positive', 'Remediated (risk accepted)'),
42 ('dependabot_alert', 'auto_dismissed', 'soc2', 'CC7.2', 'positive', 'Remediated (e.g. dependency removed)'),
43
44 -- code_scanning_alert
45 ('code_scanning_alert', NULL, 'iso27001', 'A.8.29', 'positive', 'Security testing in development is active'),
46 ('code_scanning_alert', 'open', 'iso27001', 'A.8.28', 'negative', 'Unremediated finding'),
47 ('code_scanning_alert', 'fixed', 'iso27001', 'A.8.28', 'positive', 'Remediated'),
48 ('code_scanning_alert', 'dismissed', 'iso27001', 'A.8.28', 'positive', 'Remediated (risk accepted)'),
49
50 -- secret_scanning_alert
51 ('secret_scanning_alert', NULL, 'soc2', 'CC6.6', 'positive', 'Leaked-credential detection is active'),
52 ('secret_scanning_alert', 'open', 'soc2', 'CC6.6', 'negative', 'Live credential exposure'),
53 ('secret_scanning_alert', 'resolved', 'soc2', 'CC6.6', 'positive', 'Exposure remediated'),
54
55 -- member_access
56 ('member_access', 'added', 'soc2', 'CC6.2', 'informational', 'Access grant — logged for review'),
57 ('member_access', 'removed', 'soc2', 'CC6.3', 'positive', 'Timely access removal'),
58 ('member_access', 'edited', 'soc2', 'CC6.3', 'informational', 'Access-level change — logged for review'),
59
60 -- team and repository metadata — audit trail, not itself pass/fail
61 ('team', NULL, 'iso27001', 'A.5.18', 'informational', 'Access-rights change, audit trail'),
62 ('repository', NULL, 'iso27001', 'A.5.9', 'informational', 'Asset inventory trail');
migrations/0003_branch_protection_state_vocabulary.sql added +15
@@ -0,0 +1,15 @@
1-- branch_protection / repository_ruleset now report current-state status
2-- (enabled/disabled) instead of the raw webhook action (created/edited/
3-- deleted), so the cron poller can report the same facts for pre-existing
4-- state that the webhook never delivered an event for.
5DELETE FROM control_mappings WHERE resource IN ('branch_protection', 'repository_ruleset');
6
7INSERT INTO control_mappings (resource, status, framework, control_id, posture, rationale) VALUES
8 ('branch_protection', 'enabled', 'soc2', 'CC8.1', 'positive', 'Change management — code changes require review before merge'),
9 ('branch_protection', 'disabled', 'soc2', 'CC8.1', 'negative', 'Change control gap — direct pushes possible'),
10 ('branch_protection', 'enabled', 'iso27001', 'A.8.32', 'positive', 'Change management'),
11 ('branch_protection', 'disabled', 'iso27001', 'A.8.32', 'negative', 'Change control gap — direct pushes possible'),
12 ('repository_ruleset', 'enabled', 'soc2', 'CC8.1', 'positive', 'Change management — code changes require review before merge'),
13 ('repository_ruleset', 'disabled', 'soc2', 'CC8.1', 'negative', 'Change control gap — direct pushes possible'),
14 ('repository_ruleset', 'enabled', 'iso27001', 'A.8.32', 'positive', 'Change management'),
15 ('repository_ruleset', 'disabled', 'iso27001', 'A.8.32', 'negative', 'Change control gap — direct pushes possible');
migrations/0004_exports.sql added +14
@@ -0,0 +1,14 @@
1CREATE TABLE exports (
2 id TEXT PRIMARY KEY, -- uuid
3 installation_id INTEGER NOT NULL,
4 framework TEXT NOT NULL, -- 'soc2' | 'iso27001' | 'all'
5 format TEXT NOT NULL, -- 'csv' | 'pdf'
6 status TEXT NOT NULL, -- 'queued' | 'processing' | 'done' | 'error'
7 r2_key TEXT, -- null until rendered
8 error TEXT, -- populated on failure
9 created_at TEXT NOT NULL,
10 completed_at TEXT,
11 FOREIGN KEY (installation_id) REFERENCES installations(installation_id)
12);
13
14CREATE INDEX idx_exports_installation ON exports(installation_id, created_at);
migrations/0005_access_review.sql added +15
@@ -0,0 +1,15 @@
1-- Access-review facts are org-scoped and about a person or team, not a
2-- repository, so the repo column can't identify them. `subject` holds the
3-- entity the fact is about: a member login, or "team-slug:login" for team
4-- membership.
5ALTER TABLE snapshots ADD COLUMN subject TEXT;
6
7-- Polled access state uses its own resource names so it doesn't collide with
8-- the webhook event trail (`member_access`, `team`), which records changes
9-- rather than current state. These are inventory for access review, so they
10-- are informational rather than pass/fail.
11INSERT INTO control_mappings (resource, status, framework, control_id, posture, rationale) VALUES
12 ('org_member', NULL, 'soc2', 'CC6.2', 'informational', 'Organization access inventory — subject to periodic access review'),
13 ('org_member', NULL, 'iso27001', 'A.5.18', 'informational', 'Access rights inventory'),
14 ('team_member', NULL, 'soc2', 'CC6.3', 'informational', 'Team-based access inventory'),
15 ('team_member', NULL, 'iso27001', 'A.5.18', 'informational', 'Access rights inventory');
package-lock.json added +4583
@@ -0,0 +1,4583 @@
1{
2 "name": "gh-attest",
3 "version": "0.0.1",
4 "lockfileVersion": 3,
5 "requires": true,
6 "packages": {
7 "": {
8 "name": "gh-attest",
9 "version": "0.0.1",
10 "dependencies": {
11 "jose": "^5.9.0",
12 "pdf-lib": "^1.17.1"
13 },
14 "devDependencies": {
15 "@cloudflare/vitest-pool-workers": "^0.8.0",
16 "@types/node": "^22.10.0",
17 "typescript": "^5.7.0",
18 "vitest": "^2.1.0",
19 "wrangler": "^4.0.0"
20 }
21 },
22 "node_modules/@cloudflare/kv-asset-handler": {
23 "version": "0.5.0",
24 "resolved": "https://registry.npmjs.org/@cloudflare/kv-asset-handler/-/kv-asset-handler-0.5.0.tgz",
25 "integrity": "sha512-jxQYkj8dSIzc0cD6cMMNdOc1UVjqSqu8BZdor5s8cGjW2I8BjODt/kWPVdY+u9zj3ms75Q5qaZgnxUad83+eAg==",
26 "dev": true,
27 "license": "MIT OR Apache-2.0",
28 "engines": {
29 "node": ">=22.0.0"
30 }
31 },
32 "node_modules/@cloudflare/vitest-pool-workers": {
33 "version": "0.8.71",
34 "resolved": "https://registry.npmjs.org/@cloudflare/vitest-pool-workers/-/vitest-pool-workers-0.8.71.tgz",
35 "integrity": "sha512-keu2HCLQfRNwbmLBCDXJgCFpANTaYnQpE01fBOo4CNwiWHUT7SZGN7w64RKiSWRHyYppStXBuE5Ng7F42+flpg==",
36 "dev": true,
37 "license": "MIT",
38 "dependencies": {
39 "birpc": "0.2.14",
40 "cjs-module-lexer": "^1.2.3",
41 "devalue": "^5.3.2",
42 "miniflare": "4.20250906.0",
43 "semver": "^7.7.1",
44 "wrangler": "4.35.0",
45 "zod": "^3.22.3"
46 },
47 "peerDependencies": {
48 "@vitest/runner": "2.0.x - 3.2.x",
49 "@vitest/snapshot": "2.0.x - 3.2.x",
50 "vitest": "2.0.x - 3.2.x"
51 }
52 },
53 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@cloudflare/kv-asset-handler": {
54 "version": "0.4.0",
55 "resolved": "https://registry.npmjs.org/@cloudflare/kv-asset-handler/-/kv-asset-handler-0.4.0.tgz",
56 "integrity": "sha512-+tv3z+SPp+gqTIcImN9o0hqE9xyfQjI1XD9pL6NuKjua9B1y7mNYv0S9cP+QEbA4ppVgGZEmKOvHX5G5Ei1CVA==",
57 "dev": true,
58 "license": "MIT OR Apache-2.0",
59 "dependencies": {
60 "mime": "^3.0.0"
61 },
62 "engines": {
63 "node": ">=18.0.0"
64 }
65 },
66 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@cloudflare/unenv-preset": {
67 "version": "2.7.3",
68 "resolved": "https://registry.npmjs.org/@cloudflare/unenv-preset/-/unenv-preset-2.7.3.tgz",
69 "integrity": "sha512-tsQQagBKjvpd9baa6nWVIv399ejiqcrUBBW6SZx6Z22+ymm+Odv5+cFimyuCsD/fC1fQTwfRmwXBNpzvHSeGCw==",
70 "dev": true,
71 "license": "MIT OR Apache-2.0",
72 "peerDependencies": {
73 "unenv": "2.0.0-rc.21",
74 "workerd": "^1.20250828.1"
75 },
76 "peerDependenciesMeta": {
77 "workerd": {
78 "optional": true
79 }
80 }
81 },
82 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/aix-ppc64": {
83 "version": "0.25.4",
84 "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.4.tgz",
85 "integrity": "sha512-1VCICWypeQKhVbE9oW/sJaAmjLxhVqacdkvPLEjwlttjfwENRSClS8EjBz0KzRyFSCPDIkuXW34Je/vk7zdB7Q==",
86 "cpu": [
87 "ppc64"
88 ],
89 "dev": true,
90 "license": "MIT",
91 "optional": true,
92 "os": [
93 "aix"
94 ],
95 "engines": {
96 "node": ">=18"
97 }
98 },
99 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/android-arm": {
100 "version": "0.25.4",
101 "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.4.tgz",
102 "integrity": "sha512-QNdQEps7DfFwE3hXiU4BZeOV68HHzYwGd0Nthhd3uCkkEKK7/R6MTgM0P7H7FAs5pU/DIWsviMmEGxEoxIZ+ZQ==",
103 "cpu": [
104 "arm"
105 ],
106 "dev": true,
107 "license": "MIT",
108 "optional": true,
109 "os": [
110 "android"
111 ],
112 "engines": {
113 "node": ">=18"
114 }
115 },
116 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/android-arm64": {
117 "version": "0.25.4",
118 "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.4.tgz",
119 "integrity": "sha512-bBy69pgfhMGtCnwpC/x5QhfxAz/cBgQ9enbtwjf6V9lnPI/hMyT9iWpR1arm0l3kttTr4L0KSLpKmLp/ilKS9A==",
120 "cpu": [
121 "arm64"
122 ],
123 "dev": true,
124 "license": "MIT",
125 "optional": true,
126 "os": [
127 "android"
128 ],
129 "engines": {
130 "node": ">=18"
131 }
132 },
133 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/android-x64": {
134 "version": "0.25.4",
135 "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.4.tgz",
136 "integrity": "sha512-TVhdVtQIFuVpIIR282btcGC2oGQoSfZfmBdTip2anCaVYcqWlZXGcdcKIUklfX2wj0JklNYgz39OBqh2cqXvcQ==",
137 "cpu": [
138 "x64"
139 ],
140 "dev": true,
141 "license": "MIT",
142 "optional": true,
143 "os": [
144 "android"
145 ],
146 "engines": {
147 "node": ">=18"
148 }
149 },
150 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/darwin-arm64": {
151 "version": "0.25.4",
152 "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.4.tgz",
153 "integrity": "sha512-Y1giCfM4nlHDWEfSckMzeWNdQS31BQGs9/rouw6Ub91tkK79aIMTH3q9xHvzH8d0wDru5Ci0kWB8b3up/nl16g==",
154 "cpu": [
155 "arm64"
156 ],
157 "dev": true,
158 "license": "MIT",
159 "optional": true,
160 "os": [
161 "darwin"
162 ],
163 "engines": {
164 "node": ">=18"
165 }
166 },
167 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/darwin-x64": {
168 "version": "0.25.4",
169 "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.4.tgz",
170 "integrity": "sha512-CJsry8ZGM5VFVeyUYB3cdKpd/H69PYez4eJh1W/t38vzutdjEjtP7hB6eLKBoOdxcAlCtEYHzQ/PJ/oU9I4u0A==",
171 "cpu": [
172 "x64"
173 ],
174 "dev": true,
175 "license": "MIT",
176 "optional": true,
177 "os": [
178 "darwin"
179 ],
180 "engines": {
181 "node": ">=18"
182 }
183 },
184 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/freebsd-arm64": {
185 "version": "0.25.4",
186 "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.4.tgz",
187 "integrity": "sha512-yYq+39NlTRzU2XmoPW4l5Ifpl9fqSk0nAJYM/V/WUGPEFfek1epLHJIkTQM6bBs1swApjO5nWgvr843g6TjxuQ==",
188 "cpu": [
189 "arm64"
190 ],
191 "dev": true,
192 "license": "MIT",
193 "optional": true,
194 "os": [
195 "freebsd"
196 ],
197 "engines": {
198 "node": ">=18"
199 }
200 },
201 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/freebsd-x64": {
202 "version": "0.25.4",
203 "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.4.tgz",
204 "integrity": "sha512-0FgvOJ6UUMflsHSPLzdfDnnBBVoCDtBTVyn/MrWloUNvq/5SFmh13l3dvgRPkDihRxb77Y17MbqbCAa2strMQQ==",
205 "cpu": [
206 "x64"
207 ],
208 "dev": true,
209 "license": "MIT",
210 "optional": true,
211 "os": [
212 "freebsd"
213 ],
214 "engines": {
215 "node": ">=18"
216 }
217 },
218 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/linux-arm": {
219 "version": "0.25.4",
220 "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.4.tgz",
221 "integrity": "sha512-kro4c0P85GMfFYqW4TWOpvmF8rFShbWGnrLqlzp4X1TNWjRY3JMYUfDCtOxPKOIY8B0WC8HN51hGP4I4hz4AaQ==",
222 "cpu": [
223 "arm"
224 ],
225 "dev": true,
226 "license": "MIT",
227 "optional": true,
228 "os": [
229 "linux"
230 ],
231 "engines": {
232 "node": ">=18"
233 }
234 },
235 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/linux-arm64": {
236 "version": "0.25.4",
237 "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.4.tgz",
238 "integrity": "sha512-+89UsQTfXdmjIvZS6nUnOOLoXnkUTB9hR5QAeLrQdzOSWZvNSAXAtcRDHWtqAUtAmv7ZM1WPOOeSxDzzzMogiQ==",
239 "cpu": [
240 "arm64"
241 ],
242 "dev": true,
243 "license": "MIT",
244 "optional": true,
245 "os": [
246 "linux"
247 ],
248 "engines": {
249 "node": ">=18"
250 }
251 },
252 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/linux-ia32": {
253 "version": "0.25.4",
254 "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.4.tgz",
255 "integrity": "sha512-yTEjoapy8UP3rv8dB0ip3AfMpRbyhSN3+hY8mo/i4QXFeDxmiYbEKp3ZRjBKcOP862Ua4b1PDfwlvbuwY7hIGQ==",
256 "cpu": [
257 "ia32"
258 ],
259 "dev": true,
260 "license": "MIT",
261 "optional": true,
262 "os": [
263 "linux"
264 ],
265 "engines": {
266 "node": ">=18"
267 }
268 },
269 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/linux-loong64": {
270 "version": "0.25.4",
271 "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.4.tgz",
272 "integrity": "sha512-NeqqYkrcGzFwi6CGRGNMOjWGGSYOpqwCjS9fvaUlX5s3zwOtn1qwg1s2iE2svBe4Q/YOG1q6875lcAoQK/F4VA==",
273 "cpu": [
274 "loong64"
275 ],
276 "dev": true,
277 "license": "MIT",
278 "optional": true,
279 "os": [
280 "linux"
281 ],
282 "engines": {
283 "node": ">=18"
284 }
285 },
286 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/linux-mips64el": {
287 "version": "0.25.4",
288 "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.4.tgz",
289 "integrity": "sha512-IcvTlF9dtLrfL/M8WgNI/qJYBENP3ekgsHbYUIzEzq5XJzzVEV/fXY9WFPfEEXmu3ck2qJP8LG/p3Q8f7Zc2Xg==",
290 "cpu": [
291 "mips64el"
292 ],
293 "dev": true,
294 "license": "MIT",
295 "optional": true,
296 "os": [
297 "linux"
298 ],
299 "engines": {
300 "node": ">=18"
301 }
302 },
303 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/linux-ppc64": {
304 "version": "0.25.4",
305 "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.4.tgz",
306 "integrity": "sha512-HOy0aLTJTVtoTeGZh4HSXaO6M95qu4k5lJcH4gxv56iaycfz1S8GO/5Jh6X4Y1YiI0h7cRyLi+HixMR+88swag==",
307 "cpu": [
308 "ppc64"
309 ],
310 "dev": true,
311 "license": "MIT",
312 "optional": true,
313 "os": [
314 "linux"
315 ],
316 "engines": {
317 "node": ">=18"
318 }
319 },
320 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/linux-riscv64": {
321 "version": "0.25.4",
322 "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.4.tgz",
323 "integrity": "sha512-i8JUDAufpz9jOzo4yIShCTcXzS07vEgWzyX3NH2G7LEFVgrLEhjwL3ajFE4fZI3I4ZgiM7JH3GQ7ReObROvSUA==",
324 "cpu": [
325 "riscv64"
326 ],
327 "dev": true,
328 "license": "MIT",
329 "optional": true,
330 "os": [
331 "linux"
332 ],
333 "engines": {
334 "node": ">=18"
335 }
336 },
337 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/linux-s390x": {
338 "version": "0.25.4",
339 "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.4.tgz",
340 "integrity": "sha512-jFnu+6UbLlzIjPQpWCNh5QtrcNfMLjgIavnwPQAfoGx4q17ocOU9MsQ2QVvFxwQoWpZT8DvTLooTvmOQXkO51g==",
341 "cpu": [
342 "s390x"
343 ],
344 "dev": true,
345 "license": "MIT",
346 "optional": true,
347 "os": [
348 "linux"
349 ],
350 "engines": {
351 "node": ">=18"
352 }
353 },
354 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/linux-x64": {
355 "version": "0.25.4",
356 "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.4.tgz",
357 "integrity": "sha512-6e0cvXwzOnVWJHq+mskP8DNSrKBr1bULBvnFLpc1KY+d+irZSgZ02TGse5FsafKS5jg2e4pbvK6TPXaF/A6+CA==",
358 "cpu": [
359 "x64"
360 ],
361 "dev": true,
362 "license": "MIT",
363 "optional": true,
364 "os": [
365 "linux"
366 ],
367 "engines": {
368 "node": ">=18"
369 }
370 },
371 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/netbsd-x64": {
372 "version": "0.25.4",
373 "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.4.tgz",
374 "integrity": "sha512-XAg8pIQn5CzhOB8odIcAm42QsOfa98SBeKUdo4xa8OvX8LbMZqEtgeWE9P/Wxt7MlG2QqvjGths+nq48TrUiKw==",
375 "cpu": [
376 "x64"
377 ],
378 "dev": true,
379 "license": "MIT",
380 "optional": true,
381 "os": [
382 "netbsd"
383 ],
384 "engines": {
385 "node": ">=18"
386 }
387 },
388 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/openbsd-x64": {
389 "version": "0.25.4",
390 "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.4.tgz",
391 "integrity": "sha512-xAGGhyOQ9Otm1Xu8NT1ifGLnA6M3sJxZ6ixylb+vIUVzvvd6GOALpwQrYrtlPouMqd/vSbgehz6HaVk4+7Afhw==",
392 "cpu": [
393 "x64"
394 ],
395 "dev": true,
396 "license": "MIT",
397 "optional": true,
398 "os": [
399 "openbsd"
400 ],
401 "engines": {
402 "node": ">=18"
403 }
404 },
405 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/sunos-x64": {
406 "version": "0.25.4",
407 "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.4.tgz",
408 "integrity": "sha512-Mw+tzy4pp6wZEK0+Lwr76pWLjrtjmJyUB23tHKqEDP74R3q95luY/bXqXZeYl4NYlvwOqoRKlInQialgCKy67Q==",
409 "cpu": [
410 "x64"
411 ],
412 "dev": true,
413 "license": "MIT",
414 "optional": true,
415 "os": [
416 "sunos"
417 ],
418 "engines": {
419 "node": ">=18"
420 }
421 },
422 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/win32-arm64": {
423 "version": "0.25.4",
424 "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.4.tgz",
425 "integrity": "sha512-AVUP428VQTSddguz9dO9ngb+E5aScyg7nOeJDrF1HPYu555gmza3bDGMPhmVXL8svDSoqPCsCPjb265yG/kLKQ==",
426 "cpu": [
427 "arm64"
428 ],
429 "dev": true,
430 "license": "MIT",
431 "optional": true,
432 "os": [
433 "win32"
434 ],
435 "engines": {
436 "node": ">=18"
437 }
438 },
439 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/win32-ia32": {
440 "version": "0.25.4",
441 "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.4.tgz",
442 "integrity": "sha512-i1sW+1i+oWvQzSgfRcxxG2k4I9n3O9NRqy8U+uugaT2Dy7kLO9Y7wI72haOahxceMX8hZAzgGou1FhndRldxRg==",
443 "cpu": [
444 "ia32"
445 ],
446 "dev": true,
447 "license": "MIT",
448 "optional": true,
449 "os": [
450 "win32"
451 ],
452 "engines": {
453 "node": ">=18"
454 }
455 },
456 "node_modules/@cloudflare/vitest-pool-workers/node_modules/@esbuild/win32-x64": {
457 "version": "0.25.4",
458 "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.4.tgz",
459 "integrity": "sha512-nOT2vZNw6hJ+z43oP1SPea/G/6AbN6X+bGNhNuq8NtRHy4wsMhw765IKLNmnjek7GvjWBYQ8Q5VBoYTFg9y1UQ==",
460 "cpu": [
461 "x64"
462 ],
463 "dev": true,
464 "license": "MIT",
465 "optional": true,
466 "os": [
467 "win32"
468 ],
469 "engines": {
470 "node": ">=18"
471 }
472 },
473 "node_modules/@cloudflare/vitest-pool-workers/node_modules/esbuild": {
474 "version": "0.25.4",
475 "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.4.tgz",
476 "integrity": "sha512-8pgjLUcUjcgDg+2Q4NYXnPbo/vncAY4UmyaCm0jZevERqCHZIaWwdJHkf8XQtu4AxSKCdvrUbT0XUr1IdZzI8Q==",
477 "dev": true,
478 "hasInstallScript": true,
479 "license": "MIT",
480 "bin": {
481 "esbuild": "bin/esbuild"
482 },
483 "engines": {
484 "node": ">=18"
485 },
486 "optionalDependencies": {
487 "@esbuild/aix-ppc64": "0.25.4",
488 "@esbuild/android-arm": "0.25.4",
489 "@esbuild/android-arm64": "0.25.4",
490 "@esbuild/android-x64": "0.25.4",
491 "@esbuild/darwin-arm64": "0.25.4",
492 "@esbuild/darwin-x64": "0.25.4",
493 "@esbuild/freebsd-arm64": "0.25.4",
494 "@esbuild/freebsd-x64": "0.25.4",
495 "@esbuild/linux-arm": "0.25.4",
496 "@esbuild/linux-arm64": "0.25.4",
497 "@esbuild/linux-ia32": "0.25.4",
498 "@esbuild/linux-loong64": "0.25.4",
499 "@esbuild/linux-mips64el": "0.25.4",
500 "@esbuild/linux-ppc64": "0.25.4",
501 "@esbuild/linux-riscv64": "0.25.4",
502 "@esbuild/linux-s390x": "0.25.4",
503 "@esbuild/linux-x64": "0.25.4",
504 "@esbuild/netbsd-arm64": "0.25.4",
505 "@esbuild/netbsd-x64": "0.25.4",
506 "@esbuild/openbsd-arm64": "0.25.4",
507 "@esbuild/openbsd-x64": "0.25.4",
508 "@esbuild/sunos-x64": "0.25.4",
509 "@esbuild/win32-arm64": "0.25.4",
510 "@esbuild/win32-ia32": "0.25.4",
511 "@esbuild/win32-x64": "0.25.4"
512 }
513 },
514 "node_modules/@cloudflare/vitest-pool-workers/node_modules/unenv": {
515 "version": "2.0.0-rc.21",
516 "resolved": "https://registry.npmjs.org/unenv/-/unenv-2.0.0-rc.21.tgz",
517 "integrity": "sha512-Wj7/AMtE9MRnAXa6Su3Lk0LNCfqDYgfwVjwRFVum9U7wsto1imuHqk4kTm7Jni+5A0Hn7dttL6O/zjvUvoo+8A==",
518 "dev": true,
519 "license": "MIT",
520 "dependencies": {
521 "defu": "^6.1.4",
522 "exsolve": "^1.0.7",
523 "ohash": "^2.0.11",
524 "pathe": "^2.0.3",
525 "ufo": "^1.6.1"
526 }
527 },
528 "node_modules/@cloudflare/vitest-pool-workers/node_modules/wrangler": {
529 "version": "4.35.0",
530 "resolved": "https://registry.npmjs.org/wrangler/-/wrangler-4.35.0.tgz",
531 "integrity": "sha512-HbyXtbrh4Fi3mU8ussY85tVdQ74qpVS1vctUgaPc+bPrXBTqfDLkZ6VRtHAVF/eBhz4SFmhJtCQpN1caY2Ak8A==",
532 "dev": true,
533 "license": "MIT OR Apache-2.0",
534 "dependencies": {
535 "@cloudflare/kv-asset-handler": "0.4.0",
536 "@cloudflare/unenv-preset": "2.7.3",
537 "blake3-wasm": "2.1.5",
538 "esbuild": "0.25.4",
539 "miniflare": "4.20250906.0",
540 "path-to-regexp": "6.3.0",
541 "unenv": "2.0.0-rc.21",
542 "workerd": "1.20250906.0"
543 },
544 "bin": {
545 "wrangler": "bin/wrangler.js",
546 "wrangler2": "bin/wrangler.js"
547 },
548 "engines": {
549 "node": ">=18.0.0"
550 },
551 "optionalDependencies": {
552 "fsevents": "~2.3.2"
553 },
554 "peerDependencies": {
555 "@cloudflare/workers-types": "^4.20250906.0"
556 },
557 "peerDependenciesMeta": {
558 "@cloudflare/workers-types": {
559 "optional": true
560 }
561 }
562 },
563 "node_modules/@cloudflare/workerd-darwin-64": {
564 "version": "1.20250906.0",
565 "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-1.20250906.0.tgz",
566 "integrity": "sha512-E+X/YYH9BmX0ew2j/mAWFif2z05NMNuhCTlNYEGLkqMe99K15UewBqajL9pMcMUKxylnlrEoK3VNxl33DkbnPA==",
567 "cpu": [
568 "x64"
569 ],
570 "dev": true,
571 "license": "Apache-2.0",
572 "optional": true,
573 "os": [
574 "darwin"
575 ],
576 "engines": {
577 "node": ">=16"
578 }
579 },
580 "node_modules/@cloudflare/workerd-darwin-arm64": {
581 "version": "1.20250906.0",
582 "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-1.20250906.0.tgz",
583 "integrity": "sha512-X5apsZ1SFW4FYTM19ISHf8005FJMPfrcf4U5rO0tdj+TeJgQgXuZ57IG0WeW7SpLVeBo8hM6WC8CovZh41AfnA==",
584 "cpu": [
585 "arm64"
586 ],
587 "dev": true,
588 "license": "Apache-2.0",
589 "optional": true,
590 "os": [
591 "darwin"
592 ],
593 "engines": {
594 "node": ">=16"
595 }
596 },
597 "node_modules/@cloudflare/workerd-linux-64": {
598 "version": "1.20250906.0",
599 "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20250906.0.tgz",
600 "integrity": "sha512-rlKzWgsLnlQ5Nt9W69YBJKcmTmZbOGu0edUsenXPmc6wzULUxoQpi7ZE9k3TfTonJx4WoQsQlzCUamRYFsX+0Q==",
601 "cpu": [
602 "x64"
603 ],
604 "dev": true,
605 "license": "Apache-2.0",
606 "optional": true,
607 "os": [
608 "linux"
609 ],
610 "engines": {
611 "node": ">=16"
612 }
613 },
614 "node_modules/@cloudflare/workerd-linux-arm64": {
615 "version": "1.20250906.0",
616 "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-1.20250906.0.tgz",
617 "integrity": "sha512-DdedhiQ+SeLzpg7BpcLrIPEZ33QKioJQ1wvL4X7nuLzEB9rWzS37NNNahQzc1+44rhG4fyiHbXBPOeox4B9XVA==",
618 "cpu": [
619 "arm64"
620 ],
621 "dev": true,
622 "license": "Apache-2.0",
623 "optional": true,
624 "os": [
625 "linux"
626 ],
627 "engines": {
628 "node": ">=16"
629 }
630 },
631 "node_modules/@cloudflare/workerd-windows-64": {
632 "version": "1.20250906.0",
633 "resolved": "https://registry.npmjs.org/@cloudflare/workerd-windows-64/-/workerd-windows-64-1.20250906.0.tgz",
634 "integrity": "sha512-Q8Qjfs8jGVILnZL6vUpQ90q/8MTCYaGR3d1LGxZMBqte8Vr7xF3KFHPEy7tFs0j0mMjnqCYzlofmPNY+9ZaDRg==",
635 "cpu": [
636 "x64"
637 ],
638 "dev": true,
639 "license": "Apache-2.0",
640 "optional": true,
641 "os": [
642 "win32"
643 ],
644 "engines": {
645 "node": ">=16"
646 }
647 },
648 "node_modules/@cspotcode/source-map-support": {
649 "version": "0.8.1",
650 "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",
651 "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==",
652 "dev": true,
653 "license": "MIT",
654 "dependencies": {
655 "@jridgewell/trace-mapping": "0.3.9"
656 },
657 "engines": {
658 "node": ">=12"
659 }
660 },
661 "node_modules/@emnapi/runtime": {
662 "version": "1.11.2",
663 "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.2.tgz",
664 "integrity": "sha512-kyOl3X0DuTiT1h2ft8r2fYO8JYtU9a9Xis/zBSiGArNaagCOWx90N1k2wxp18czFDH+OgcWGb5ZP/XMt3dcyPA==",
665 "dev": true,
666 "license": "MIT",
667 "optional": true,
668 "dependencies": {
669 "tslib": "^2.4.0"
670 }
671 },
672 "node_modules/@esbuild/aix-ppc64": {
673 "version": "0.21.5",
674 "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",
675 "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==",
676 "cpu": [
677 "ppc64"
678 ],
679 "dev": true,
680 "license": "MIT",
681 "optional": true,
682 "os": [
683 "aix"
684 ],
685 "engines": {
686 "node": ">=12"
687 }
688 },
689 "node_modules/@esbuild/android-arm": {
690 "version": "0.21.5",
691 "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz",
692 "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==",
693 "cpu": [
694 "arm"
695 ],
696 "dev": true,
697 "license": "MIT",
698 "optional": true,
699 "os": [
700 "android"
701 ],
702 "engines": {
703 "node": ">=12"
704 }
705 },
706 "node_modules/@esbuild/android-arm64": {
707 "version": "0.21.5",
708 "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz",
709 "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==",
710 "cpu": [
711 "arm64"
712 ],
713 "dev": true,
714 "license": "MIT",
715 "optional": true,
716 "os": [
717 "android"
718 ],
719 "engines": {
720 "node": ">=12"
721 }
722 },
723 "node_modules/@esbuild/android-x64": {
724 "version": "0.21.5",
725 "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz",
726 "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==",
727 "cpu": [
728 "x64"
729 ],
730 "dev": true,
731 "license": "MIT",
732 "optional": true,
733 "os": [
734 "android"
735 ],
736 "engines": {
737 "node": ">=12"
738 }
739 },
740 "node_modules/@esbuild/darwin-arm64": {
741 "version": "0.21.5",
742 "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz",
743 "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==",
744 "cpu": [
745 "arm64"
746 ],
747 "dev": true,
748 "license": "MIT",
749 "optional": true,
750 "os": [
751 "darwin"
752 ],
753 "engines": {
754 "node": ">=12"
755 }
756 },
757 "node_modules/@esbuild/darwin-x64": {
758 "version": "0.21.5",
759 "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz",
760 "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==",
761 "cpu": [
762 "x64"
763 ],
764 "dev": true,
765 "license": "MIT",
766 "optional": true,
767 "os": [
768 "darwin"
769 ],
770 "engines": {
771 "node": ">=12"
772 }
773 },
774 "node_modules/@esbuild/freebsd-arm64": {
775 "version": "0.21.5",
776 "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz",
777 "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==",
778 "cpu": [
779 "arm64"
780 ],
781 "dev": true,
782 "license": "MIT",
783 "optional": true,
784 "os": [
785 "freebsd"
786 ],
787 "engines": {
788 "node": ">=12"
789 }
790 },
791 "node_modules/@esbuild/freebsd-x64": {
792 "version": "0.21.5",
793 "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz",
794 "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==",
795 "cpu": [
796 "x64"
797 ],
798 "dev": true,
799 "license": "MIT",
800 "optional": true,
801 "os": [
802 "freebsd"
803 ],
804 "engines": {
805 "node": ">=12"
806 }
807 },
808 "node_modules/@esbuild/linux-arm": {
809 "version": "0.21.5",
810 "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz",
811 "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==",
812 "cpu": [
813 "arm"
814 ],
815 "dev": true,
816 "license": "MIT",
817 "optional": true,
818 "os": [
819 "linux"
820 ],
821 "engines": {
822 "node": ">=12"
823 }
824 },
825 "node_modules/@esbuild/linux-arm64": {
826 "version": "0.21.5",
827 "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz",
828 "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==",
829 "cpu": [
830 "arm64"
831 ],
832 "dev": true,
833 "license": "MIT",
834 "optional": true,
835 "os": [
836 "linux"
837 ],
838 "engines": {
839 "node": ">=12"
840 }
841 },
842 "node_modules/@esbuild/linux-ia32": {
843 "version": "0.21.5",
844 "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz",
845 "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==",
846 "cpu": [
847 "ia32"
848 ],
849 "dev": true,
850 "license": "MIT",
851 "optional": true,
852 "os": [
853 "linux"
854 ],
855 "engines": {
856 "node": ">=12"
857 }
858 },
859 "node_modules/@esbuild/linux-loong64": {
860 "version": "0.21.5",
861 "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz",
862 "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==",
863 "cpu": [
864 "loong64"
865 ],
866 "dev": true,
867 "license": "MIT",
868 "optional": true,
869 "os": [
870 "linux"
871 ],
872 "engines": {
873 "node": ">=12"
874 }
875 },
876 "node_modules/@esbuild/linux-mips64el": {
877 "version": "0.21.5",
878 "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz",
879 "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==",
880 "cpu": [
881 "mips64el"
882 ],
883 "dev": true,
884 "license": "MIT",
885 "optional": true,
886 "os": [
887 "linux"
888 ],
889 "engines": {
890 "node": ">=12"
891 }
892 },
893 "node_modules/@esbuild/linux-ppc64": {
894 "version": "0.21.5",
895 "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz",
896 "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==",
897 "cpu": [
898 "ppc64"
899 ],
900 "dev": true,
901 "license": "MIT",
902 "optional": true,
903 "os": [
904 "linux"
905 ],
906 "engines": {
907 "node": ">=12"
908 }
909 },
910 "node_modules/@esbuild/linux-riscv64": {
911 "version": "0.21.5",
912 "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz",
913 "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==",
914 "cpu": [
915 "riscv64"
916 ],
917 "dev": true,
918 "license": "MIT",
919 "optional": true,
920 "os": [
921 "linux"
922 ],
923 "engines": {
924 "node": ">=12"
925 }
926 },
927 "node_modules/@esbuild/linux-s390x": {
928 "version": "0.21.5",
929 "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz",
930 "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==",
931 "cpu": [
932 "s390x"
933 ],
934 "dev": true,
935 "license": "MIT",
936 "optional": true,
937 "os": [
938 "linux"
939 ],
940 "engines": {
941 "node": ">=12"
942 }
943 },
944 "node_modules/@esbuild/linux-x64": {
945 "version": "0.21.5",
946 "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz",
947 "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",
948 "cpu": [
949 "x64"
950 ],
951 "dev": true,
952 "license": "MIT",
953 "optional": true,
954 "os": [
955 "linux"
956 ],
957 "engines": {
958 "node": ">=12"
959 }
960 },
961 "node_modules/@esbuild/netbsd-arm64": {
962 "version": "0.25.4",
963 "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.4.tgz",
964 "integrity": "sha512-vUnkBYxZW4hL/ie91hSqaSNjulOnYXE1VSLusnvHg2u3jewJBz3YzB9+oCw8DABeVqZGg94t9tyZFoHma8gWZQ==",
965 "cpu": [
966 "arm64"
967 ],
968 "dev": true,
969 "license": "MIT",
970 "optional": true,
971 "os": [
972 "netbsd"
973 ],
974 "engines": {
975 "node": ">=18"
976 }
977 },
978 "node_modules/@esbuild/netbsd-x64": {
979 "version": "0.21.5",
980 "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz",
981 "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==",
982 "cpu": [
983 "x64"
984 ],
985 "dev": true,
986 "license": "MIT",
987 "optional": true,
988 "os": [
989 "netbsd"
990 ],
991 "engines": {
992 "node": ">=12"
993 }
994 },
995 "node_modules/@esbuild/openbsd-arm64": {
996 "version": "0.25.4",
997 "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.4.tgz",
998 "integrity": "sha512-Ct2WcFEANlFDtp1nVAXSNBPDxyU+j7+tId//iHXU2f/lN5AmO4zLyhDcpR5Cz1r08mVxzt3Jpyt4PmXQ1O6+7A==",
999 "cpu": [
1000 "arm64"
1001 ],
1002 "dev": true,
1003 "license": "MIT",
1004 "optional": true,
1005 "os": [
1006 "openbsd"
1007 ],
1008 "engines": {
1009 "node": ">=18"
1010 }
1011 },
1012 "node_modules/@esbuild/openbsd-x64": {
1013 "version": "0.21.5",
1014 "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz",
1015 "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==",
1016 "cpu": [
1017 "x64"
1018 ],
1019 "dev": true,
1020 "license": "MIT",
1021 "optional": true,
1022 "os": [
1023 "openbsd"
1024 ],
1025 "engines": {
1026 "node": ">=12"
1027 }
1028 },
1029 "node_modules/@esbuild/openharmony-arm64": {
1030 "version": "0.28.1",
1031 "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.1.tgz",
1032 "integrity": "sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg==",
1033 "cpu": [
1034 "arm64"
1035 ],
1036 "dev": true,
1037 "license": "MIT",
1038 "optional": true,
1039 "os": [
1040 "openharmony"
1041 ],
1042 "engines": {
1043 "node": ">=18"
1044 }
1045 },
1046 "node_modules/@esbuild/sunos-x64": {
1047 "version": "0.21.5",
1048 "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz",
1049 "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==",
1050 "cpu": [
1051 "x64"
1052 ],
1053 "dev": true,
1054 "license": "MIT",
1055 "optional": true,
1056 "os": [
1057 "sunos"
1058 ],
1059 "engines": {
1060 "node": ">=12"
1061 }
1062 },
1063 "node_modules/@esbuild/win32-arm64": {
1064 "version": "0.21.5",
1065 "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz",
1066 "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==",
1067 "cpu": [
1068 "arm64"
1069 ],
1070 "dev": true,
1071 "license": "MIT",
1072 "optional": true,
1073 "os": [
1074 "win32"
1075 ],
1076 "engines": {
1077 "node": ">=12"
1078 }
1079 },
1080 "node_modules/@esbuild/win32-ia32": {
1081 "version": "0.21.5",
1082 "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz",
1083 "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==",
1084 "cpu": [
1085 "ia32"
1086 ],
1087 "dev": true,
1088 "license": "MIT",
1089 "optional": true,
1090 "os": [
1091 "win32"
1092 ],
1093 "engines": {
1094 "node": ">=12"
1095 }
1096 },
1097 "node_modules/@esbuild/win32-x64": {
1098 "version": "0.21.5",
1099 "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz",
1100 "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==",
1101 "cpu": [
1102 "x64"
1103 ],
1104 "dev": true,
1105 "license": "MIT",
1106 "optional": true,
1107 "os": [
1108 "win32"
1109 ],
1110 "engines": {
1111 "node": ">=12"
1112 }
1113 },
1114 "node_modules/@img/colour": {
1115 "version": "1.1.0",
1116 "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz",
1117 "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==",
1118 "dev": true,
1119 "license": "MIT",
1120 "engines": {
1121 "node": ">=18"
1122 }
1123 },
1124 "node_modules/@img/sharp-darwin-arm64": {
1125 "version": "0.33.5",
1126 "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.33.5.tgz",
1127 "integrity": "sha512-UT4p+iz/2H4twwAoLCqfA9UH5pI6DggwKEGuaPy7nCVQ8ZsiY5PIcrRvD1DzuY3qYL07NtIQcWnBSY/heikIFQ==",
1128 "cpu": [
1129 "arm64"
1130 ],
1131 "dev": true,
1132 "license": "Apache-2.0",
1133 "optional": true,
1134 "os": [
1135 "darwin"
1136 ],
1137 "engines": {
1138 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
1139 },
1140 "funding": {
1141 "url": "https://opencollective.com/libvips"
1142 },
1143 "optionalDependencies": {
1144 "@img/sharp-libvips-darwin-arm64": "1.0.4"
1145 }
1146 },
1147 "node_modules/@img/sharp-darwin-x64": {
1148 "version": "0.33.5",
1149 "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.33.5.tgz",
1150 "integrity": "sha512-fyHac4jIc1ANYGRDxtiqelIbdWkIuQaI84Mv45KvGRRxSAa7o7d1ZKAOBaYbnepLC1WqxfpimdeWfvqqSGwR2Q==",
1151 "cpu": [
1152 "x64"
1153 ],
1154 "dev": true,
1155 "license": "Apache-2.0",
1156 "optional": true,
1157 "os": [
1158 "darwin"
1159 ],
1160 "engines": {
1161 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
1162 },
1163 "funding": {
1164 "url": "https://opencollective.com/libvips"
1165 },
1166 "optionalDependencies": {
1167 "@img/sharp-libvips-darwin-x64": "1.0.4"
1168 }
1169 },
1170 "node_modules/@img/sharp-libvips-darwin-arm64": {
1171 "version": "1.0.4",
1172 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.0.4.tgz",
1173 "integrity": "sha512-XblONe153h0O2zuFfTAbQYAX2JhYmDHeWikp1LM9Hul9gVPjFY427k6dFEcOL72O01QxQsWi761svJ/ev9xEDg==",
1174 "cpu": [
1175 "arm64"
1176 ],
1177 "dev": true,
1178 "license": "LGPL-3.0-or-later",
1179 "optional": true,
1180 "os": [
1181 "darwin"
1182 ],
1183 "funding": {
1184 "url": "https://opencollective.com/libvips"
1185 }
1186 },
1187 "node_modules/@img/sharp-libvips-darwin-x64": {
1188 "version": "1.0.4",
1189 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.0.4.tgz",
1190 "integrity": "sha512-xnGR8YuZYfJGmWPvmlunFaWJsb9T/AO2ykoP3Fz/0X5XV2aoYBPkX6xqCQvUTKKiLddarLaxpzNe+b1hjeWHAQ==",
1191 "cpu": [
1192 "x64"
1193 ],
1194 "dev": true,
1195 "license": "LGPL-3.0-or-later",
1196 "optional": true,
1197 "os": [
1198 "darwin"
1199 ],
1200 "funding": {
1201 "url": "https://opencollective.com/libvips"
1202 }
1203 },
1204 "node_modules/@img/sharp-libvips-linux-arm": {
1205 "version": "1.0.5",
1206 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.0.5.tgz",
1207 "integrity": "sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g==",
1208 "cpu": [
1209 "arm"
1210 ],
1211 "dev": true,
1212 "libc": [
1213 "glibc"
1214 ],
1215 "license": "LGPL-3.0-or-later",
1216 "optional": true,
1217 "os": [
1218 "linux"
1219 ],
1220 "funding": {
1221 "url": "https://opencollective.com/libvips"
1222 }
1223 },
1224 "node_modules/@img/sharp-libvips-linux-arm64": {
1225 "version": "1.0.4",
1226 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.0.4.tgz",
1227 "integrity": "sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA==",
1228 "cpu": [
1229 "arm64"
1230 ],
1231 "dev": true,
1232 "libc": [
1233 "glibc"
1234 ],
1235 "license": "LGPL-3.0-or-later",
1236 "optional": true,
1237 "os": [
1238 "linux"
1239 ],
1240 "funding": {
1241 "url": "https://opencollective.com/libvips"
1242 }
1243 },
1244 "node_modules/@img/sharp-libvips-linux-ppc64": {
1245 "version": "1.2.4",
1246 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.2.4.tgz",
1247 "integrity": "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==",
1248 "cpu": [
1249 "ppc64"
1250 ],
1251 "dev": true,
1252 "libc": [
1253 "glibc"
1254 ],
1255 "license": "LGPL-3.0-or-later",
1256 "optional": true,
1257 "os": [
1258 "linux"
1259 ],
1260 "funding": {
1261 "url": "https://opencollective.com/libvips"
1262 }
1263 },
1264 "node_modules/@img/sharp-libvips-linux-riscv64": {
1265 "version": "1.2.4",
1266 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.2.4.tgz",
1267 "integrity": "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==",
1268 "cpu": [
1269 "riscv64"
1270 ],
1271 "dev": true,
1272 "libc": [
1273 "glibc"
1274 ],
1275 "license": "LGPL-3.0-or-later",
1276 "optional": true,
1277 "os": [
1278 "linux"
1279 ],
1280 "funding": {
1281 "url": "https://opencollective.com/libvips"
1282 }
1283 },
1284 "node_modules/@img/sharp-libvips-linux-s390x": {
1285 "version": "1.0.4",
1286 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.0.4.tgz",
1287 "integrity": "sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA==",
1288 "cpu": [
1289 "s390x"
1290 ],
1291 "dev": true,
1292 "libc": [
1293 "glibc"
1294 ],
1295 "license": "LGPL-3.0-or-later",
1296 "optional": true,
1297 "os": [
1298 "linux"
1299 ],
1300 "funding": {
1301 "url": "https://opencollective.com/libvips"
1302 }
1303 },
1304 "node_modules/@img/sharp-libvips-linux-x64": {
1305 "version": "1.0.4",
1306 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.0.4.tgz",
1307 "integrity": "sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw==",
1308 "cpu": [
1309 "x64"
1310 ],
1311 "dev": true,
1312 "libc": [
1313 "glibc"
1314 ],
1315 "license": "LGPL-3.0-or-later",
1316 "optional": true,
1317 "os": [
1318 "linux"
1319 ],
1320 "funding": {
1321 "url": "https://opencollective.com/libvips"
1322 }
1323 },
1324 "node_modules/@img/sharp-libvips-linuxmusl-arm64": {
1325 "version": "1.0.4",
1326 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.0.4.tgz",
1327 "integrity": "sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA==",
1328 "cpu": [
1329 "arm64"
1330 ],
1331 "dev": true,
1332 "libc": [
1333 "musl"
1334 ],
1335 "license": "LGPL-3.0-or-later",
1336 "optional": true,
1337 "os": [
1338 "linux"
1339 ],
1340 "funding": {
1341 "url": "https://opencollective.com/libvips"
1342 }
1343 },
1344 "node_modules/@img/sharp-libvips-linuxmusl-x64": {
1345 "version": "1.0.4",
1346 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.0.4.tgz",
1347 "integrity": "sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw==",
1348 "cpu": [
1349 "x64"
1350 ],
1351 "dev": true,
1352 "libc": [
1353 "musl"
1354 ],
1355 "license": "LGPL-3.0-or-later",
1356 "optional": true,
1357 "os": [
1358 "linux"
1359 ],
1360 "funding": {
1361 "url": "https://opencollective.com/libvips"
1362 }
1363 },
1364 "node_modules/@img/sharp-linux-arm": {
1365 "version": "0.33.5",
1366 "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.33.5.tgz",
1367 "integrity": "sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ==",
1368 "cpu": [
1369 "arm"
1370 ],
1371 "dev": true,
1372 "libc": [
1373 "glibc"
1374 ],
1375 "license": "Apache-2.0",
1376 "optional": true,
1377 "os": [
1378 "linux"
1379 ],
1380 "engines": {
1381 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
1382 },
1383 "funding": {
1384 "url": "https://opencollective.com/libvips"
1385 },
1386 "optionalDependencies": {
1387 "@img/sharp-libvips-linux-arm": "1.0.5"
1388 }
1389 },
1390 "node_modules/@img/sharp-linux-arm64": {
1391 "version": "0.33.5",
1392 "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.33.5.tgz",
1393 "integrity": "sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA==",
1394 "cpu": [
1395 "arm64"
1396 ],
1397 "dev": true,
1398 "libc": [
1399 "glibc"
1400 ],
1401 "license": "Apache-2.0",
1402 "optional": true,
1403 "os": [
1404 "linux"
1405 ],
1406 "engines": {
1407 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
1408 },
1409 "funding": {
1410 "url": "https://opencollective.com/libvips"
1411 },
1412 "optionalDependencies": {
1413 "@img/sharp-libvips-linux-arm64": "1.0.4"
1414 }
1415 },
1416 "node_modules/@img/sharp-linux-ppc64": {
1417 "version": "0.34.5",
1418 "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.34.5.tgz",
1419 "integrity": "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==",
1420 "cpu": [
1421 "ppc64"
1422 ],
1423 "dev": true,
1424 "libc": [
1425 "glibc"
1426 ],
1427 "license": "Apache-2.0",
1428 "optional": true,
1429 "os": [
1430 "linux"
1431 ],
1432 "engines": {
1433 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
1434 },
1435 "funding": {
1436 "url": "https://opencollective.com/libvips"
1437 },
1438 "optionalDependencies": {
1439 "@img/sharp-libvips-linux-ppc64": "1.2.4"
1440 }
1441 },
1442 "node_modules/@img/sharp-linux-riscv64": {
1443 "version": "0.34.5",
1444 "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.34.5.tgz",
1445 "integrity": "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==",
1446 "cpu": [
1447 "riscv64"
1448 ],
1449 "dev": true,
1450 "libc": [
1451 "glibc"
1452 ],
1453 "license": "Apache-2.0",
1454 "optional": true,
1455 "os": [
1456 "linux"
1457 ],
1458 "engines": {
1459 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
1460 },
1461 "funding": {
1462 "url": "https://opencollective.com/libvips"
1463 },
1464 "optionalDependencies": {
1465 "@img/sharp-libvips-linux-riscv64": "1.2.4"
1466 }
1467 },
1468 "node_modules/@img/sharp-linux-s390x": {
1469 "version": "0.33.5",
1470 "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.33.5.tgz",
1471 "integrity": "sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q==",
1472 "cpu": [
1473 "s390x"
1474 ],
1475 "dev": true,
1476 "libc": [
1477 "glibc"
1478 ],
1479 "license": "Apache-2.0",
1480 "optional": true,
1481 "os": [
1482 "linux"
1483 ],
1484 "engines": {
1485 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
1486 },
1487 "funding": {
1488 "url": "https://opencollective.com/libvips"
1489 },
1490 "optionalDependencies": {
1491 "@img/sharp-libvips-linux-s390x": "1.0.4"
1492 }
1493 },
1494 "node_modules/@img/sharp-linux-x64": {
1495 "version": "0.33.5",
1496 "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.33.5.tgz",
1497 "integrity": "sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA==",
1498 "cpu": [
1499 "x64"
1500 ],
1501 "dev": true,
1502 "libc": [
1503 "glibc"
1504 ],
1505 "license": "Apache-2.0",
1506 "optional": true,
1507 "os": [
1508 "linux"
1509 ],
1510 "engines": {
1511 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
1512 },
1513 "funding": {
1514 "url": "https://opencollective.com/libvips"
1515 },
1516 "optionalDependencies": {
1517 "@img/sharp-libvips-linux-x64": "1.0.4"
1518 }
1519 },
1520 "node_modules/@img/sharp-linuxmusl-arm64": {
1521 "version": "0.33.5",
1522 "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.33.5.tgz",
1523 "integrity": "sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g==",
1524 "cpu": [
1525 "arm64"
1526 ],
1527 "dev": true,
1528 "libc": [
1529 "musl"
1530 ],
1531 "license": "Apache-2.0",
1532 "optional": true,
1533 "os": [
1534 "linux"
1535 ],
1536 "engines": {
1537 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
1538 },
1539 "funding": {
1540 "url": "https://opencollective.com/libvips"
1541 },
1542 "optionalDependencies": {
1543 "@img/sharp-libvips-linuxmusl-arm64": "1.0.4"
1544 }
1545 },
1546 "node_modules/@img/sharp-linuxmusl-x64": {
1547 "version": "0.33.5",
1548 "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.33.5.tgz",
1549 "integrity": "sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw==",
1550 "cpu": [
1551 "x64"
1552 ],
1553 "dev": true,
1554 "libc": [
1555 "musl"
1556 ],
1557 "license": "Apache-2.0",
1558 "optional": true,
1559 "os": [
1560 "linux"
1561 ],
1562 "engines": {
1563 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
1564 },
1565 "funding": {
1566 "url": "https://opencollective.com/libvips"
1567 },
1568 "optionalDependencies": {
1569 "@img/sharp-libvips-linuxmusl-x64": "1.0.4"
1570 }
1571 },
1572 "node_modules/@img/sharp-wasm32": {
1573 "version": "0.33.5",
1574 "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.33.5.tgz",
1575 "integrity": "sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg==",
1576 "cpu": [
1577 "wasm32"
1578 ],
1579 "dev": true,
1580 "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",
1581 "optional": true,
1582 "dependencies": {
1583 "@emnapi/runtime": "^1.2.0"
1584 },
1585 "engines": {
1586 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
1587 },
1588 "funding": {
1589 "url": "https://opencollective.com/libvips"
1590 }
1591 },
1592 "node_modules/@img/sharp-win32-arm64": {
1593 "version": "0.34.5",
1594 "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.34.5.tgz",
1595 "integrity": "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==",
1596 "cpu": [
1597 "arm64"
1598 ],
1599 "dev": true,
1600 "license": "Apache-2.0 AND LGPL-3.0-or-later",
1601 "optional": true,
1602 "os": [
1603 "win32"
1604 ],
1605 "engines": {
1606 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
1607 },
1608 "funding": {
1609 "url": "https://opencollective.com/libvips"
1610 }
1611 },
1612 "node_modules/@img/sharp-win32-ia32": {
1613 "version": "0.33.5",
1614 "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.33.5.tgz",
1615 "integrity": "sha512-T36PblLaTwuVJ/zw/LaH0PdZkRz5rd3SmMHX8GSmR7vtNSP5Z6bQkExdSK7xGWyxLw4sUknBuugTelgw2faBbQ==",
1616 "cpu": [
1617 "ia32"
1618 ],
1619 "dev": true,
1620 "license": "Apache-2.0 AND LGPL-3.0-or-later",
1621 "optional": true,
1622 "os": [
1623 "win32"
1624 ],
1625 "engines": {
1626 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
1627 },
1628 "funding": {
1629 "url": "https://opencollective.com/libvips"
1630 }
1631 },
1632 "node_modules/@img/sharp-win32-x64": {
1633 "version": "0.33.5",
1634 "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.33.5.tgz",
1635 "integrity": "sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg==",
1636 "cpu": [
1637 "x64"
1638 ],
1639 "dev": true,
1640 "license": "Apache-2.0 AND LGPL-3.0-or-later",
1641 "optional": true,
1642 "os": [
1643 "win32"
1644 ],
1645 "engines": {
1646 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
1647 },
1648 "funding": {
1649 "url": "https://opencollective.com/libvips"
1650 }
1651 },
1652 "node_modules/@jridgewell/resolve-uri": {
1653 "version": "3.1.2",
1654 "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
1655 "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
1656 "dev": true,
1657 "license": "MIT",
1658 "engines": {
1659 "node": ">=6.0.0"
1660 }
1661 },
1662 "node_modules/@jridgewell/sourcemap-codec": {
1663 "version": "1.5.5",
1664 "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
1665 "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
1666 "dev": true,
1667 "license": "MIT"
1668 },
1669 "node_modules/@jridgewell/trace-mapping": {
1670 "version": "0.3.9",
1671 "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz",
1672 "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==",
1673 "dev": true,
1674 "license": "MIT",
1675 "dependencies": {
1676 "@jridgewell/resolve-uri": "^3.0.3",
1677 "@jridgewell/sourcemap-codec": "^1.4.10"
1678 }
1679 },
1680 "node_modules/@pdf-lib/standard-fonts": {
1681 "version": "1.0.0",
1682 "resolved": "https://registry.npmjs.org/@pdf-lib/standard-fonts/-/standard-fonts-1.0.0.tgz",
1683 "integrity": "sha512-hU30BK9IUN/su0Mn9VdlVKsWBS6GyhVfqjwl1FjZN4TxP6cCw0jP2w7V3Hf5uX7M0AZJ16vey9yE0ny7Sa59ZA==",
1684 "license": "MIT",
1685 "dependencies": {
1686 "pako": "^1.0.6"
1687 }
1688 },
1689 "node_modules/@pdf-lib/upng": {
1690 "version": "1.0.1",
1691 "resolved": "https://registry.npmjs.org/@pdf-lib/upng/-/upng-1.0.1.tgz",
1692 "integrity": "sha512-dQK2FUMQtowVP00mtIksrlZhdFXQZPC+taih1q4CvPZ5vqdxR/LKBaFg0oAfzd1GlHZXXSPdQfzQnt+ViGvEIQ==",
1693 "license": "MIT",
1694 "dependencies": {
1695 "pako": "^1.0.10"
1696 }
1697 },
1698 "node_modules/@poppinss/colors": {
1699 "version": "4.1.6",
1700 "resolved": "https://registry.npmjs.org/@poppinss/colors/-/colors-4.1.6.tgz",
1701 "integrity": "sha512-H9xkIdFswbS8n1d6vmRd8+c10t2Qe+rZITbbDHHkQixH5+2x1FDGmi/0K+WgWiqQFKPSlIYB7jlH6Kpfn6Fleg==",
1702 "dev": true,
1703 "license": "MIT",
1704 "dependencies": {
1705 "kleur": "^4.1.5"
1706 }
1707 },
1708 "node_modules/@poppinss/dumper": {
1709 "version": "0.6.5",
1710 "resolved": "https://registry.npmjs.org/@poppinss/dumper/-/dumper-0.6.5.tgz",
1711 "integrity": "sha512-NBdYIb90J7LfOI32dOewKI1r7wnkiH6m920puQ3qHUeZkxNkQiFnXVWoE6YtFSv6QOiPPf7ys6i+HWWecDz7sw==",
1712 "dev": true,
1713 "license": "MIT",
1714 "dependencies": {
1715 "@poppinss/colors": "^4.1.5",
1716 "@sindresorhus/is": "^7.0.2",
1717 "supports-color": "^10.0.0"
1718 }
1719 },
1720 "node_modules/@poppinss/exception": {
1721 "version": "1.2.3",
1722 "resolved": "https://registry.npmjs.org/@poppinss/exception/-/exception-1.2.3.tgz",
1723 "integrity": "sha512-dCED+QRChTVatE9ibtoaxc+WkdzOSjYTKi/+uacHWIsfodVfpsueo3+DKpgU5Px8qXjgmXkSvhXvSCz3fnP9lw==",
1724 "dev": true,
1725 "license": "MIT"
1726 },
1727 "node_modules/@rollup/rollup-android-arm-eabi": {
1728 "version": "4.62.2",
1729 "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.62.2.tgz",
1730 "integrity": "sha512-6o7ZLZK+BeenkZCFNDXqpbjw9bD6nuWonvS/lwQJp7NoVVxm6p3qE7qQ5jGuBjiFsgvqjD8mZAU5oWxTmbOeOg==",
1731 "cpu": [
1732 "arm"
1733 ],
1734 "dev": true,
1735 "license": "MIT",
1736 "optional": true,
1737 "os": [
1738 "android"
1739 ]
1740 },
1741 "node_modules/@rollup/rollup-android-arm64": {
1742 "version": "4.62.2",
1743 "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.62.2.tgz",
1744 "integrity": "sha512-BaH7BllCACHoH1LguOU56UItGfUWjujlO65kS9LAodViaN4bwIKd7oeW/ZHJ/4ljr/7MIiENnNy3HJ0zXv8Zkw==",
1745 "cpu": [
1746 "arm64"
1747 ],
1748 "dev": true,
1749 "license": "MIT",
1750 "optional": true,
1751 "os": [
1752 "android"
1753 ]
1754 },
1755 "node_modules/@rollup/rollup-darwin-arm64": {
1756 "version": "4.62.2",
1757 "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.62.2.tgz",
1758 "integrity": "sha512-v39RCCvj4He82I9sFmk+M1VZ0PLM9sfsLVikjfx2hYBNALhrrOR2D3JjQA6AhlaSOgcR+RzrKY7e1+bT6SUO/A==",
1759 "cpu": [
1760 "arm64"
1761 ],
1762 "dev": true,
1763 "license": "MIT",
1764 "optional": true,
1765 "os": [
1766 "darwin"
1767 ]
1768 },
1769 "node_modules/@rollup/rollup-darwin-x64": {
1770 "version": "4.62.2",
1771 "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.62.2.tgz",
1772 "integrity": "sha512-yl0y2vq3S3lHeuXhEdss6TWfKW8vkujImO12tn4ZkG/4oghr09LvdYm2RElVjokTQiUvDUGXLGsYeLqUMCKpGA==",
1773 "cpu": [
1774 "x64"
1775 ],
1776 "dev": true,
1777 "license": "MIT",
1778 "optional": true,
1779 "os": [
1780 "darwin"
1781 ]
1782 },
1783 "node_modules/@rollup/rollup-freebsd-arm64": {
1784 "version": "4.62.2",
1785 "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.62.2.tgz",
1786 "integrity": "sha512-tT4pvt4qXD+vEoezupCWi+a1F0vvDiksiHc+PxRlYTOH1I6/X4id9jPxTP+Fg+545euaFT1jJVs4CEdHZAU1vw==",
1787 "cpu": [
1788 "arm64"
1789 ],
1790 "dev": true,
1791 "license": "MIT",
1792 "optional": true,
1793 "os": [
1794 "freebsd"
1795 ]
1796 },
1797 "node_modules/@rollup/rollup-freebsd-x64": {
1798 "version": "4.62.2",
1799 "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.62.2.tgz",
1800 "integrity": "sha512-6nU5F2wCW+qvCBhTn1pdIU3bzsIoF7EUwsCDRxilWGprQR6yd508YnH9+OKFCwpfS8pjZqDUmnCAr7exax0XCg==",
1801 "cpu": [
1802 "x64"
1803 ],
1804 "dev": true,
1805 "license": "MIT",
1806 "optional": true,
1807 "os": [
1808 "freebsd"
1809 ]
1810 },
1811 "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
1812 "version": "4.62.2",
1813 "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.62.2.tgz",
1814 "integrity": "sha512-n1GJHPOvpIfhi3TmrCeh6S6URt9BFCt0KQE3qvexyGCTAKpR4Lg+eWvNZEqu7epxwus/8ElT3hacYEucm49SZg==",
1815 "cpu": [
1816 "arm"
1817 ],
1818 "dev": true,
1819 "libc": [
1820 "glibc"
1821 ],
1822 "license": "MIT",
1823 "optional": true,
1824 "os": [
1825 "linux"
1826 ]
1827 },
1828 "node_modules/@rollup/rollup-linux-arm-musleabihf": {
1829 "version": "4.62.2",
1830 "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.62.2.tgz",
1831 "integrity": "sha512-JqgflS8wEB+UXV/vS1RpRbifGBeN4D5lz8D8oOFbFZw4vedvdOgCFAjfBmIMdW3yL10XpQQ0Ambepw6MXrhOnA==",
1832 "cpu": [
1833 "arm"
1834 ],
1835 "dev": true,
1836 "libc": [
1837 "musl"
1838 ],
1839 "license": "MIT",
1840 "optional": true,
1841 "os": [
1842 "linux"
1843 ]
1844 },
1845 "node_modules/@rollup/rollup-linux-arm64-gnu": {
1846 "version": "4.62.2",
1847 "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.62.2.tgz",
1848 "integrity": "sha512-wnFJkogWvN4jm/hQRF2UBaeUmk20j5+DmHvoyWii2b8HJDyvz1MF2OU/6ynXt2KR63rbZLWkFpoytpdc/yBuSA==",
1849 "cpu": [
1850 "arm64"
1851 ],
1852 "dev": true,
1853 "libc": [
1854 "glibc"
1855 ],
1856 "license": "MIT",
1857 "optional": true,
1858 "os": [
1859 "linux"
1860 ]
1861 },
1862 "node_modules/@rollup/rollup-linux-arm64-musl": {
1863 "version": "4.62.2",
1864 "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.62.2.tgz",
1865 "integrity": "sha512-HVu2bp0zhvJ8xHEV9+UUs7S90VadmBSY3LcIMvozbPo4AuMGDWlz3ymHLHZPX4hR67TKTt8Qp5PJ5RBg/i+RMQ==",
1866 "cpu": [
1867 "arm64"
1868 ],
1869 "dev": true,
1870 "libc": [
1871 "musl"
1872 ],
1873 "license": "MIT",
1874 "optional": true,
1875 "os": [
1876 "linux"
1877 ]
1878 },
1879 "node_modules/@rollup/rollup-linux-loong64-gnu": {
1880 "version": "4.62.2",
1881 "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.62.2.tgz",
1882 "integrity": "sha512-mQqqAV8QaoSgr9I2fKDLY2BAVvmKjWoGiu/cSYQonsLvtqwEn1E4QYfnCOcp5zoEqNhsDYin1s6jx/VJmrxlZg==",
1883 "cpu": [
1884 "loong64"
1885 ],
1886 "dev": true,
1887 "libc": [
1888 "glibc"
1889 ],
1890 "license": "MIT",
1891 "optional": true,
1892 "os": [
1893 "linux"
1894 ]
1895 },
1896 "node_modules/@rollup/rollup-linux-loong64-musl": {
1897 "version": "4.62.2",
1898 "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.62.2.tgz",
1899 "integrity": "sha512-IxKLoxCQ2IWi6bT2akyDUBGsOImDKB+sPp4EsTmwFQ/fMwpCKm8uLSSgP/Kx/QYUgKis6SEZ5/Nlhup0DIA0PQ==",
1900 "cpu": [
1901 "loong64"
1902 ],
1903 "dev": true,
1904 "libc": [
1905 "musl"
1906 ],
1907 "license": "MIT",
1908 "optional": true,
1909 "os": [
1910 "linux"
1911 ]
1912 },
1913 "node_modules/@rollup/rollup-linux-ppc64-gnu": {
1914 "version": "4.62.2",
1915 "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.62.2.tgz",
1916 "integrity": "sha512-Mk5ha2RQSgyFfmYYLkBpPnUk8D8FriBxesO1u9O75X0mHgXL1UQcH5Itl2lurWL2tj0RxV9b9tJgipac0hRY9A==",
1917 "cpu": [
1918 "ppc64"
1919 ],
1920 "dev": true,
1921 "libc": [
1922 "glibc"
1923 ],
1924 "license": "MIT",
1925 "optional": true,
1926 "os": [
1927 "linux"
1928 ]
1929 },
1930 "node_modules/@rollup/rollup-linux-ppc64-musl": {
1931 "version": "4.62.2",
1932 "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.62.2.tgz",
1933 "integrity": "sha512-CjvEnqJL/0/TQ3TXX3OPIJ/kmBellrWd4heXUmHeJlTnmwjKpSJzoehLaL6Xk0ZnMHBu9dZuFADNOrtjF4v+2w==",
1934 "cpu": [
1935 "ppc64"
1936 ],
1937 "dev": true,
1938 "libc": [
1939 "musl"
1940 ],
1941 "license": "MIT",
1942 "optional": true,
1943 "os": [
1944 "linux"
1945 ]
1946 },
1947 "node_modules/@rollup/rollup-linux-riscv64-gnu": {
1948 "version": "4.62.2",
1949 "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.62.2.tgz",
1950 "integrity": "sha512-1SiZbzwdkaDURsew/tSOrooKiYy7EQGT6m8ufavAi9NEyQb/6VuIxFXAL1fqa4iZe3g4NbNk4P7J32z2tw5Mgg==",
1951 "cpu": [
1952 "riscv64"
1953 ],
1954 "dev": true,
1955 "libc": [
1956 "glibc"
1957 ],
1958 "license": "MIT",
1959 "optional": true,
1960 "os": [
1961 "linux"
1962 ]
1963 },
1964 "node_modules/@rollup/rollup-linux-riscv64-musl": {
1965 "version": "4.62.2",
1966 "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.62.2.tgz",
1967 "integrity": "sha512-nQts12zJ3NQRoE6uYljOH89v7szzLDvG2JD/vsX+vGXU8w/At1GowTZ5/7qeFQ8m7L55rpR8Okugnuo5bgjy2Q==",
1968 "cpu": [
1969 "riscv64"
1970 ],
1971 "dev": true,
1972 "libc": [
1973 "musl"
1974 ],
1975 "license": "MIT",
1976 "optional": true,
1977 "os": [
1978 "linux"
1979 ]
1980 },
1981 "node_modules/@rollup/rollup-linux-s390x-gnu": {
1982 "version": "4.62.2",
1983 "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.62.2.tgz",
1984 "integrity": "sha512-E9/ll019jhPIJgpzfZoIkBGhcz+kKNgVWYRY0zr9srBdPPFVpvOKW8VaJKUbeK+eZXyQF9ltME+Kk6affeaPgg==",
1985 "cpu": [
1986 "s390x"
1987 ],
1988 "dev": true,
1989 "libc": [
1990 "glibc"
1991 ],
1992 "license": "MIT",
1993 "optional": true,
1994 "os": [
1995 "linux"
1996 ]
1997 },
1998 "node_modules/@rollup/rollup-linux-x64-gnu": {
1999 "version": "4.62.2",
2000 "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.62.2.tgz",
2001 "integrity": "sha512-5BqxR/pshjey51iliyzTD5Xi3EN0aLmQ2lZ3lvefVV9c82BvrLo2/6OT55iifpWBufs6kdwWbuOKS841DrmK9A==",
2002 "cpu": [
2003 "x64"
2004 ],
2005 "dev": true,
2006 "libc": [
2007 "glibc"
2008 ],
2009 "license": "MIT",
2010 "optional": true,
2011 "os": [
2012 "linux"
2013 ]
2014 },
2015 "node_modules/@rollup/rollup-linux-x64-musl": {
2016 "version": "4.62.2",
2017 "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.62.2.tgz",
2018 "integrity": "sha512-uNN83XxQrRAh/w0/pmAfibcwyb6YWt4gP+dpnQKPVJshAloQ785ii8CT8ZCIxkGg9opVsvAlGhFitSm6D1Jjpg==",
2019 "cpu": [
2020 "x64"
2021 ],
2022 "dev": true,
2023 "libc": [
2024 "musl"
2025 ],
2026 "license": "MIT",
2027 "optional": true,
2028 "os": [
2029 "linux"
2030 ]
2031 },
2032 "node_modules/@rollup/rollup-openbsd-x64": {
2033 "version": "4.62.2",
2034 "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.62.2.tgz",
2035 "integrity": "sha512-srjEIxSH3LRnJN6THczDHWQplqEMFiAJrTab0msUryh9kwNpkICf3Ea6q6MN/2cZwRFUNx5w+h6Hpi4QuHS6Zg==",
2036 "cpu": [
2037 "x64"
2038 ],
2039 "dev": true,
2040 "license": "MIT",
2041 "optional": true,
2042 "os": [
2043 "openbsd"
2044 ]
2045 },
2046 "node_modules/@rollup/rollup-openharmony-arm64": {
2047 "version": "4.62.2",
2048 "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.62.2.tgz",
2049 "integrity": "sha512-8hOJnxgbyObnCm5AlRA3A931xX19xq80RjVTKgJOvEKWqJruP/Uf12IbAOaDjjEXYRewwHLfmF0YRIdK3OwKWA==",
2050 "cpu": [
2051 "arm64"
2052 ],
2053 "dev": true,
2054 "license": "MIT",
2055 "optional": true,
2056 "os": [
2057 "openharmony"
2058 ]
2059 },
2060 "node_modules/@rollup/rollup-win32-arm64-msvc": {
2061 "version": "4.62.2",
2062 "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.62.2.tgz",
2063 "integrity": "sha512-mmF4AY1i0hG/bLWUctUq59gtmgaSIRa3cu/A3JFRp/sCNEme2bgDEiDS22P9FbnJB8NJNF4jPJiSP5RHQpUTDg==",
2064 "cpu": [
2065 "arm64"
2066 ],
2067 "dev": true,
2068 "license": "MIT",
2069 "optional": true,
2070 "os": [
2071 "win32"
2072 ]
2073 },
2074 "node_modules/@rollup/rollup-win32-ia32-msvc": {
2075 "version": "4.62.2",
2076 "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.62.2.tgz",
2077 "integrity": "sha512-DZgkknc6jhHrk46V25vbAM0zZkyP0nSDkJB8/dRkLTxv470dOmWDqGoEJl/9A0dFfS7yE3REOwNDxpHwSLSt0Q==",
2078 "cpu": [
2079 "ia32"
2080 ],
2081 "dev": true,
2082 "license": "MIT",
2083 "optional": true,
2084 "os": [
2085 "win32"
2086 ]
2087 },
2088 "node_modules/@rollup/rollup-win32-x64-gnu": {
2089 "version": "4.62.2",
2090 "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.62.2.tgz",
2091 "integrity": "sha512-T6xr6ucWSFto+VGajA8YH26LdpHRuP4YLHEKAtCWvJDOlnmWcDZVCI2Jmjr+IFHDlt2zRaTAKE4tfjTaWLgJBg==",
2092 "cpu": [
2093 "x64"
2094 ],
2095 "dev": true,
2096 "license": "MIT",
2097 "optional": true,
2098 "os": [
2099 "win32"
2100 ]
2101 },
2102 "node_modules/@rollup/rollup-win32-x64-msvc": {
2103 "version": "4.62.2",
2104 "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.62.2.tgz",
2105 "integrity": "sha512-BfzEnDJOt9T8M989/lA37EcJgat01wLRnoi5dQf3QzOH7jzpqTAzdDbVfRljVr5r+jzKqpbHeyOfAaXxAd0PAA==",
2106 "cpu": [
2107 "x64"
2108 ],
2109 "dev": true,
2110 "license": "MIT",
2111 "optional": true,
2112 "os": [
2113 "win32"
2114 ]
2115 },
2116 "node_modules/@sindresorhus/is": {
2117 "version": "7.2.0",
2118 "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-7.2.0.tgz",
2119 "integrity": "sha512-P1Cz1dWaFfR4IR+U13mqqiGsLFf1KbayybWwdd2vfctdV6hDpUkgCY0nKOLLTMSoRd/jJNjtbqzf13K8DCCXQw==",
2120 "dev": true,
2121 "license": "MIT",
2122 "engines": {
2123 "node": ">=18"
2124 },
2125 "funding": {
2126 "url": "https://github.com/sindresorhus/is?sponsor=1"
2127 }
2128 },
2129 "node_modules/@speed-highlight/core": {
2130 "version": "1.2.17",
2131 "resolved": "https://registry.npmjs.org/@speed-highlight/core/-/core-1.2.17.tgz",
2132 "integrity": "sha512-Z92FwKpCtfaW1V0jTU/fh3QzYEZN8wDwrzRIBoADCJfn4mJCNcJN/XegifX7BDrQ8/h9Xh/JnbyMchL0FqXrkg==",
2133 "dev": true,
2134 "license": "CC0-1.0"
2135 },
2136 "node_modules/@types/estree": {
2137 "version": "1.0.9",
2138 "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",
2139 "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==",
2140 "dev": true,
2141 "license": "MIT"
2142 },
2143 "node_modules/@types/node": {
2144 "version": "22.20.1",
2145 "resolved": "https://registry.npmjs.org/@types/node/-/node-22.20.1.tgz",
2146 "integrity": "sha512-EANqOCF9QFyra+4pfxUcX9STKJpCLjMbObVzljIJomAWSnuSIEAvyzEU53GaajbXJEgdh0iEcPL+DGvpUd4k1Q==",
2147 "dev": true,
2148 "license": "MIT",
2149 "dependencies": {
2150 "undici-types": "~6.21.0"
2151 }
2152 },
2153 "node_modules/@vitest/expect": {
2154 "version": "2.1.9",
2155 "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-2.1.9.tgz",
2156 "integrity": "sha512-UJCIkTBenHeKT1TTlKMJWy1laZewsRIzYighyYiJKZreqtdxSos/S1t+ktRMQWu2CKqaarrkeszJx1cgC5tGZw==",
2157 "dev": true,
2158 "license": "MIT",
2159 "dependencies": {
2160 "@vitest/spy": "2.1.9",
2161 "@vitest/utils": "2.1.9",
2162 "chai": "^5.1.2",
2163 "tinyrainbow": "^1.2.0"
2164 },
2165 "funding": {
2166 "url": "https://opencollective.com/vitest"
2167 }
2168 },
2169 "node_modules/@vitest/expect/node_modules/@vitest/pretty-format": {
2170 "version": "2.1.9",
2171 "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.1.9.tgz",
2172 "integrity": "sha512-KhRIdGV2U9HOUzxfiHmY8IFHTdqtOhIzCpd8WRdJiE7D/HUcZVD0EgQCVjm+Q9gkUXWgBvMmTtZgIG48wq7sOQ==",
2173 "dev": true,
2174 "license": "MIT",
2175 "dependencies": {
2176 "tinyrainbow": "^1.2.0"
2177 },
2178 "funding": {
2179 "url": "https://opencollective.com/vitest"
2180 }
2181 },
2182 "node_modules/@vitest/expect/node_modules/@vitest/utils": {
2183 "version": "2.1.9",
2184 "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.1.9.tgz",
2185 "integrity": "sha512-v0psaMSkNJ3A2NMrUEHFRzJtDPFn+/VWZ5WxImB21T9fjucJRmS7xCS3ppEnARb9y11OAzaD+P2Ps+b+BGX5iQ==",
2186 "dev": true,
2187 "license": "MIT",
2188 "dependencies": {
2189 "@vitest/pretty-format": "2.1.9",
2190 "loupe": "^3.1.2",
2191 "tinyrainbow": "^1.2.0"
2192 },
2193 "funding": {
2194 "url": "https://opencollective.com/vitest"
2195 }
2196 },
2197 "node_modules/@vitest/expect/node_modules/tinyrainbow": {
2198 "version": "1.2.0",
2199 "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-1.2.0.tgz",
2200 "integrity": "sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==",
2201 "dev": true,
2202 "license": "MIT",
2203 "engines": {
2204 "node": ">=14.0.0"
2205 }
2206 },
2207 "node_modules/@vitest/mocker": {
2208 "version": "2.1.9",
2209 "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-2.1.9.tgz",
2210 "integrity": "sha512-tVL6uJgoUdi6icpxmdrn5YNo3g3Dxv+IHJBr0GXHaEdTcw3F+cPKnsXFhli6nO+f/6SDKPHEK1UN+k+TQv0Ehg==",
2211 "dev": true,
2212 "license": "MIT",
2213 "dependencies": {
2214 "@vitest/spy": "2.1.9",
2215 "estree-walker": "^3.0.3",
2216 "magic-string": "^0.30.12"
2217 },
2218 "funding": {
2219 "url": "https://opencollective.com/vitest"
2220 },
2221 "peerDependencies": {
2222 "msw": "^2.4.9",
2223 "vite": "^5.0.0"
2224 },
2225 "peerDependenciesMeta": {
2226 "msw": {
2227 "optional": true
2228 },
2229 "vite": {
2230 "optional": true
2231 }
2232 }
2233 },
2234 "node_modules/@vitest/pretty-format": {
2235 "version": "3.2.7",
2236 "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.2.7.tgz",
2237 "integrity": "sha512-KUHlwqVu0sRlhCdyPdQ/wBoTfRahjUky1MubOmYw9fWfIZy1gNoHpuaaQBPAaMaVYdQYHJLurzj8ECCj5OwTqA==",
2238 "dev": true,
2239 "license": "MIT",
2240 "peer": true,
2241 "dependencies": {
2242 "tinyrainbow": "^2.0.0"
2243 },
2244 "funding": {
2245 "url": "https://opencollective.com/vitest"
2246 }
2247 },
2248 "node_modules/@vitest/runner": {
2249 "version": "3.2.7",
2250 "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.2.7.tgz",
2251 "integrity": "sha512-sB9y4ovltoQP+WaUPwmSxO9WIg9Ig694Di5PalVPsYHklAdE027mehpWF2SQSVq+k6sFgaivbTjTJwZLSHbedA==",
2252 "dev": true,
2253 "license": "MIT",
2254 "peer": true,
2255 "dependencies": {
2256 "@vitest/utils": "3.2.7",
2257 "pathe": "^2.0.3",
2258 "strip-literal": "^3.0.0"
2259 },
2260 "funding": {
2261 "url": "https://opencollective.com/vitest"
2262 }
2263 },
2264 "node_modules/@vitest/snapshot": {
2265 "version": "3.2.7",
2266 "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.2.7.tgz",
2267 "integrity": "sha512-7C+MwShwtBSI5Buwoyg3s/iY1eHL9PKAf+O1wVh/TdnjXUtkoL/9YQtre90i4MtNXM6edP1wJ2zOBpfCyhIS7g==",
2268 "dev": true,
2269 "license": "MIT",
2270 "peer": true,
2271 "dependencies": {
2272 "@vitest/pretty-format": "3.2.7",
2273 "magic-string": "^0.30.17",
2274 "pathe": "^2.0.3"
2275 },
2276 "funding": {
2277 "url": "https://opencollective.com/vitest"
2278 }
2279 },
2280 "node_modules/@vitest/spy": {
2281 "version": "2.1.9",
2282 "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-2.1.9.tgz",
2283 "integrity": "sha512-E1B35FwzXXTs9FHNK6bDszs7mtydNi5MIfUWpceJ8Xbfb1gBMscAnwLbEu+B44ed6W3XjL9/ehLPHR1fkf1KLQ==",
2284 "dev": true,
2285 "license": "MIT",
2286 "dependencies": {
2287 "tinyspy": "^3.0.2"
2288 },
2289 "funding": {
2290 "url": "https://opencollective.com/vitest"
2291 }
2292 },
2293 "node_modules/@vitest/utils": {
2294 "version": "3.2.7",
2295 "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.2.7.tgz",
2296 "integrity": "sha512-x6BDOd7dyo3PFLY3I9/HJ25X/6OurhGXk2/B9gOZNPF7XDVjeBK4k01lQE5uvDpbuheErh91qYuE1E2OEjK3Rw==",
2297 "dev": true,
2298 "license": "MIT",
2299 "peer": true,
2300 "dependencies": {
2301 "@vitest/pretty-format": "3.2.7",
2302 "loupe": "^3.1.4",
2303 "tinyrainbow": "^2.0.0"
2304 },
2305 "funding": {
2306 "url": "https://opencollective.com/vitest"
2307 }
2308 },
2309 "node_modules/acorn": {
2310 "version": "8.14.0",
2311 "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz",
2312 "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==",
2313 "dev": true,
2314 "license": "MIT",
2315 "bin": {
2316 "acorn": "bin/acorn"
2317 },
2318 "engines": {
2319 "node": ">=0.4.0"
2320 }
2321 },
2322 "node_modules/acorn-walk": {
2323 "version": "8.3.2",
2324 "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz",
2325 "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==",
2326 "dev": true,
2327 "license": "MIT",
2328 "engines": {
2329 "node": ">=0.4.0"
2330 }
2331 },
2332 "node_modules/assertion-error": {
2333 "version": "2.0.1",
2334 "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",
2335 "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",
2336 "dev": true,
2337 "license": "MIT",
2338 "engines": {
2339 "node": ">=12"
2340 }
2341 },
2342 "node_modules/birpc": {
2343 "version": "0.2.14",
2344 "resolved": "https://registry.npmjs.org/birpc/-/birpc-0.2.14.tgz",
2345 "integrity": "sha512-37FHE8rqsYM5JEKCnXFyHpBCzvgHEExwVVTq+nUmloInU7l8ezD1TpOhKpS8oe1DTYFqEK27rFZVKG43oTqXRA==",
2346 "dev": true,
2347 "license": "MIT",
2348 "funding": {
2349 "url": "https://github.com/sponsors/antfu"
2350 }
2351 },
2352 "node_modules/blake3-wasm": {
2353 "version": "2.1.5",
2354 "resolved": "https://registry.npmjs.org/blake3-wasm/-/blake3-wasm-2.1.5.tgz",
2355 "integrity": "sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g==",
2356 "dev": true,
2357 "license": "MIT"
2358 },
2359 "node_modules/cac": {
2360 "version": "6.7.14",
2361 "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz",
2362 "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==",
2363 "dev": true,
2364 "license": "MIT",
2365 "engines": {
2366 "node": ">=8"
2367 }
2368 },
2369 "node_modules/chai": {
2370 "version": "5.3.3",
2371 "resolved": "https://registry.npmjs.org/chai/-/chai-5.3.3.tgz",
2372 "integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==",
2373 "dev": true,
2374 "license": "MIT",
2375 "dependencies": {
2376 "assertion-error": "^2.0.1",
2377 "check-error": "^2.1.1",
2378 "deep-eql": "^5.0.1",
2379 "loupe": "^3.1.0",
2380 "pathval": "^2.0.0"
2381 },
2382 "engines": {
2383 "node": ">=18"
2384 }
2385 },
2386 "node_modules/check-error": {
2387 "version": "2.1.3",
2388 "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.3.tgz",
2389 "integrity": "sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==",
2390 "dev": true,
2391 "license": "MIT",
2392 "engines": {
2393 "node": ">= 16"
2394 }
2395 },
2396 "node_modules/cjs-module-lexer": {
2397 "version": "1.4.3",
2398 "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz",
2399 "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==",
2400 "dev": true,
2401 "license": "MIT"
2402 },
2403 "node_modules/color": {
2404 "version": "4.2.3",
2405 "resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz",
2406 "integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==",
2407 "dev": true,
2408 "license": "MIT",
2409 "dependencies": {
2410 "color-convert": "^2.0.1",
2411 "color-string": "^1.9.0"
2412 },
2413 "engines": {
2414 "node": ">=12.5.0"
2415 }
2416 },
2417 "node_modules/color-convert": {
2418 "version": "2.0.1",
2419 "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
2420 "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
2421 "dev": true,
2422 "license": "MIT",
2423 "dependencies": {
2424 "color-name": "~1.1.4"
2425 },
2426 "engines": {
2427 "node": ">=7.0.0"
2428 }
2429 },
2430 "node_modules/color-name": {
2431 "version": "1.1.4",
2432 "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
2433 "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
2434 "dev": true,
2435 "license": "MIT"
2436 },
2437 "node_modules/color-string": {
2438 "version": "1.9.1",
2439 "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz",
2440 "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==",
2441 "dev": true,
2442 "license": "MIT",
2443 "dependencies": {
2444 "color-name": "^1.0.0",
2445 "simple-swizzle": "^0.2.2"
2446 }
2447 },
2448 "node_modules/cookie": {
2449 "version": "1.1.1",
2450 "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz",
2451 "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==",
2452 "dev": true,
2453 "license": "MIT",
2454 "engines": {
2455 "node": ">=18"
2456 },
2457 "funding": {
2458 "type": "opencollective",
2459 "url": "https://opencollective.com/express"
2460 }
2461 },
2462 "node_modules/debug": {
2463 "version": "4.4.3",
2464 "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
2465 "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
2466 "dev": true,
2467 "license": "MIT",
2468 "dependencies": {
2469 "ms": "^2.1.3"
2470 },
2471 "engines": {
2472 "node": ">=6.0"
2473 },
2474 "peerDependenciesMeta": {
2475 "supports-color": {
2476 "optional": true
2477 }
2478 }
2479 },
2480 "node_modules/deep-eql": {
2481 "version": "5.0.2",
2482 "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz",
2483 "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==",
2484 "dev": true,
2485 "license": "MIT",
2486 "engines": {
2487 "node": ">=6"
2488 }
2489 },
2490 "node_modules/defu": {
2491 "version": "6.1.7",
2492 "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.7.tgz",
2493 "integrity": "sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==",
2494 "dev": true,
2495 "license": "MIT"
2496 },
2497 "node_modules/detect-libc": {
2498 "version": "2.1.2",
2499 "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
2500 "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
2501 "dev": true,
2502 "license": "Apache-2.0",
2503 "engines": {
2504 "node": ">=8"
2505 }
2506 },
2507 "node_modules/devalue": {
2508 "version": "5.8.1",
2509 "resolved": "https://registry.npmjs.org/devalue/-/devalue-5.8.1.tgz",
2510 "integrity": "sha512-4CXDYRBGqN+57wVJkuXBYmpAVUSg3L6JAQa/DFqm238G73E1wuyc/JhGQJzN7vUf/CMphYau2zXbfWzDR5aTEw==",
2511 "dev": true,
2512 "license": "MIT"
2513 },
2514 "node_modules/error-stack-parser-es": {
2515 "version": "1.0.5",
2516 "resolved": "https://registry.npmjs.org/error-stack-parser-es/-/error-stack-parser-es-1.0.5.tgz",
2517 "integrity": "sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA==",
2518 "dev": true,
2519 "license": "MIT",
2520 "funding": {
2521 "url": "https://github.com/sponsors/antfu"
2522 }
2523 },
2524 "node_modules/es-module-lexer": {
2525 "version": "1.7.0",
2526 "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz",
2527 "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==",
2528 "dev": true,
2529 "license": "MIT"
2530 },
2531 "node_modules/esbuild": {
2532 "version": "0.21.5",
2533 "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",
2534 "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",
2535 "dev": true,
2536 "hasInstallScript": true,
2537 "license": "MIT",
2538 "bin": {
2539 "esbuild": "bin/esbuild"
2540 },
2541 "engines": {
2542 "node": ">=12"
2543 },
2544 "optionalDependencies": {
2545 "@esbuild/aix-ppc64": "0.21.5",
2546 "@esbuild/android-arm": "0.21.5",
2547 "@esbuild/android-arm64": "0.21.5",
2548 "@esbuild/android-x64": "0.21.5",
2549 "@esbuild/darwin-arm64": "0.21.5",
2550 "@esbuild/darwin-x64": "0.21.5",
2551 "@esbuild/freebsd-arm64": "0.21.5",
2552 "@esbuild/freebsd-x64": "0.21.5",
2553 "@esbuild/linux-arm": "0.21.5",
2554 "@esbuild/linux-arm64": "0.21.5",
2555 "@esbuild/linux-ia32": "0.21.5",
2556 "@esbuild/linux-loong64": "0.21.5",
2557 "@esbuild/linux-mips64el": "0.21.5",
2558 "@esbuild/linux-ppc64": "0.21.5",
2559 "@esbuild/linux-riscv64": "0.21.5",
2560 "@esbuild/linux-s390x": "0.21.5",
2561 "@esbuild/linux-x64": "0.21.5",
2562 "@esbuild/netbsd-x64": "0.21.5",
2563 "@esbuild/openbsd-x64": "0.21.5",
2564 "@esbuild/sunos-x64": "0.21.5",
2565 "@esbuild/win32-arm64": "0.21.5",
2566 "@esbuild/win32-ia32": "0.21.5",
2567 "@esbuild/win32-x64": "0.21.5"
2568 }
2569 },
2570 "node_modules/estree-walker": {
2571 "version": "3.0.3",
2572 "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",
2573 "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",
2574 "dev": true,
2575 "license": "MIT",
2576 "dependencies": {
2577 "@types/estree": "^1.0.0"
2578 }
2579 },
2580 "node_modules/exit-hook": {
2581 "version": "2.2.1",
2582 "resolved": "https://registry.npmjs.org/exit-hook/-/exit-hook-2.2.1.tgz",
2583 "integrity": "sha512-eNTPlAD67BmP31LDINZ3U7HSF8l57TxOY2PmBJ1shpCvpnxBF93mWCE8YHBnXs8qiUZJc9WDcWIeC3a2HIAMfw==",
2584 "dev": true,
2585 "license": "MIT",
2586 "engines": {
2587 "node": ">=6"
2588 },
2589 "funding": {
2590 "url": "https://github.com/sponsors/sindresorhus"
2591 }
2592 },
2593 "node_modules/expect-type": {
2594 "version": "1.4.0",
2595 "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz",
2596 "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==",
2597 "dev": true,
2598 "license": "Apache-2.0",
2599 "engines": {
2600 "node": ">=12.0.0"
2601 }
2602 },
2603 "node_modules/exsolve": {
2604 "version": "1.1.0",
2605 "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.1.0.tgz",
2606 "integrity": "sha512-D+42+T12DdIlJM3uepa55qGiL3sYdLBOxIl2ifQCzCHz4c7eiolaHsi3BIqEr7JxBzxv2pYZQX9kw16ziMcEmw==",
2607 "dev": true,
2608 "license": "MIT"
2609 },
2610 "node_modules/fsevents": {
2611 "version": "2.3.3",
2612 "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
2613 "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
2614 "dev": true,
2615 "hasInstallScript": true,
2616 "license": "MIT",
2617 "optional": true,
2618 "os": [
2619 "darwin"
2620 ],
2621 "engines": {
2622 "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
2623 }
2624 },
2625 "node_modules/glob-to-regexp": {
2626 "version": "0.4.1",
2627 "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz",
2628 "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==",
2629 "dev": true,
2630 "license": "BSD-2-Clause"
2631 },
2632 "node_modules/is-arrayish": {
2633 "version": "0.3.4",
2634 "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.4.tgz",
2635 "integrity": "sha512-m6UrgzFVUYawGBh1dUsWR5M2Clqic9RVXC/9f8ceNlv2IcO9j9J/z8UoCLPqtsPBFNzEpfR3xftohbfqDx8EQA==",
2636 "dev": true,
2637 "license": "MIT"
2638 },
2639 "node_modules/jose": {
2640 "version": "5.10.0",
2641 "resolved": "https://registry.npmjs.org/jose/-/jose-5.10.0.tgz",
2642 "integrity": "sha512-s+3Al/p9g32Iq+oqXxkW//7jk2Vig6FF1CFqzVXoTUXt2qz89YWbL+OwS17NFYEvxC35n0FKeGO2LGYSxeM2Gg==",
2643 "license": "MIT",
2644 "funding": {
2645 "url": "https://github.com/sponsors/panva"
2646 }
2647 },
2648 "node_modules/js-tokens": {
2649 "version": "9.0.1",
2650 "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.1.tgz",
2651 "integrity": "sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==",
2652 "dev": true,
2653 "license": "MIT",
2654 "peer": true
2655 },
2656 "node_modules/kleur": {
2657 "version": "4.1.5",
2658 "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz",
2659 "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==",
2660 "dev": true,
2661 "license": "MIT",
2662 "engines": {
2663 "node": ">=6"
2664 }
2665 },
2666 "node_modules/loupe": {
2667 "version": "3.2.1",
2668 "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.2.1.tgz",
2669 "integrity": "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==",
2670 "dev": true,
2671 "license": "MIT"
2672 },
2673 "node_modules/magic-string": {
2674 "version": "0.30.21",
2675 "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
2676 "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",
2677 "dev": true,
2678 "license": "MIT",
2679 "dependencies": {
2680 "@jridgewell/sourcemap-codec": "^1.5.5"
2681 }
2682 },
2683 "node_modules/mime": {
2684 "version": "3.0.0",
2685 "resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz",
2686 "integrity": "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==",
2687 "dev": true,
2688 "license": "MIT",
2689 "bin": {
2690 "mime": "cli.js"
2691 },
2692 "engines": {
2693 "node": ">=10.0.0"
2694 }
2695 },
2696 "node_modules/miniflare": {
2697 "version": "4.20250906.0",
2698 "resolved": "https://registry.npmjs.org/miniflare/-/miniflare-4.20250906.0.tgz",
2699 "integrity": "sha512-T/RWn1sa0ien80s6NjU+Un/tj12gR6wqScZoiLeMJDD4/fK0UXfnbWXJDubnUED8Xjm7RPQ5ESYdE+mhPmMtuQ==",
2700 "dev": true,
2701 "license": "MIT",
2702 "dependencies": {
2703 "@cspotcode/source-map-support": "0.8.1",
2704 "acorn": "8.14.0",
2705 "acorn-walk": "8.3.2",
2706 "exit-hook": "2.2.1",
2707 "glob-to-regexp": "0.4.1",
2708 "sharp": "^0.33.5",
2709 "stoppable": "1.1.0",
2710 "undici": "^7.10.0",
2711 "workerd": "1.20250906.0",
2712 "ws": "8.18.0",
2713 "youch": "4.1.0-beta.10",
2714 "zod": "3.22.3"
2715 },
2716 "bin": {
2717 "miniflare": "bootstrap.js"
2718 },
2719 "engines": {
2720 "node": ">=18.0.0"
2721 }
2722 },
2723 "node_modules/miniflare/node_modules/zod": {
2724 "version": "3.22.3",
2725 "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.3.tgz",
2726 "integrity": "sha512-EjIevzuJRiRPbVH4mGc8nApb/lVLKVpmUhAaR5R5doKGfAnGJ6Gr3CViAVjP+4FWSxCsybeWQdcgCtbX+7oZug==",
2727 "dev": true,
2728 "license": "MIT",
2729 "funding": {
2730 "url": "https://github.com/sponsors/colinhacks"
2731 }
2732 },
2733 "node_modules/ms": {
2734 "version": "2.1.3",
2735 "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
2736 "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
2737 "dev": true,
2738 "license": "MIT"
2739 },
2740 "node_modules/nanoid": {
2741 "version": "3.3.16",
2742 "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.16.tgz",
2743 "integrity": "sha512-bzlKTyNJ7+LdGIIwy8ijFpIqEQIvafahV7eYykJ8Cvh42EdJeODoJ6gUJXpQJvej1BddH8OqTXZNE/KfbWAu8Q==",
2744 "dev": true,
2745 "funding": [
2746 {
2747 "type": "github",
2748 "url": "https://github.com/sponsors/ai"
2749 }
2750 ],
2751 "license": "MIT",
2752 "bin": {
2753 "nanoid": "bin/nanoid.cjs"
2754 },
2755 "engines": {
2756 "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
2757 }
2758 },
2759 "node_modules/ohash": {
2760 "version": "2.0.11",
2761 "resolved": "https://registry.npmjs.org/ohash/-/ohash-2.0.11.tgz",
2762 "integrity": "sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ==",
2763 "dev": true,
2764 "license": "MIT"
2765 },
2766 "node_modules/pako": {
2767 "version": "1.0.11",
2768 "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz",
2769 "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==",
2770 "license": "(MIT AND Zlib)"
2771 },
2772 "node_modules/path-to-regexp": {
2773 "version": "6.3.0",
2774 "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.3.0.tgz",
2775 "integrity": "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==",
2776 "dev": true,
2777 "license": "MIT"
2778 },
2779 "node_modules/pathe": {
2780 "version": "2.0.3",
2781 "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",
2782 "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",
2783 "dev": true,
2784 "license": "MIT"
2785 },
2786 "node_modules/pathval": {
2787 "version": "2.0.1",
2788 "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz",
2789 "integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==",
2790 "dev": true,
2791 "license": "MIT",
2792 "engines": {
2793 "node": ">= 14.16"
2794 }
2795 },
2796 "node_modules/pdf-lib": {
2797 "version": "1.17.1",
2798 "resolved": "https://registry.npmjs.org/pdf-lib/-/pdf-lib-1.17.1.tgz",
2799 "integrity": "sha512-V/mpyJAoTsN4cnP31vc0wfNA1+p20evqqnap0KLoRUN0Yk/p3wN52DOEsL4oBFcLdb76hlpKPtzJIgo67j/XLw==",
2800 "license": "MIT",
2801 "dependencies": {
2802 "@pdf-lib/standard-fonts": "^1.0.0",
2803 "@pdf-lib/upng": "^1.0.1",
2804 "pako": "^1.0.11",
2805 "tslib": "^1.11.1"
2806 }
2807 },
2808 "node_modules/pdf-lib/node_modules/tslib": {
2809 "version": "1.14.1",
2810 "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
2811 "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
2812 "license": "0BSD"
2813 },
2814 "node_modules/picocolors": {
2815 "version": "1.1.1",
2816 "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
2817 "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
2818 "dev": true,
2819 "license": "ISC"
2820 },
2821 "node_modules/postcss": {
2822 "version": "8.5.19",
2823 "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.19.tgz",
2824 "integrity": "sha512-Mz8SaolMd8nB+G13WkORcxQKHZ/NE4xXevtkJHVuG+guo9/wYKlIMTKAqGdEmYOXR2ijPjTYNHssizdaVSUNdQ==",
2825 "dev": true,
2826 "funding": [
2827 {
2828 "type": "opencollective",
2829 "url": "https://opencollective.com/postcss/"
2830 },
2831 {
2832 "type": "tidelift",
2833 "url": "https://tidelift.com/funding/github/npm/postcss"
2834 },
2835 {
2836 "type": "github",
2837 "url": "https://github.com/sponsors/ai"
2838 }
2839 ],
2840 "license": "MIT",
2841 "dependencies": {
2842 "nanoid": "^3.3.12",
2843 "picocolors": "^1.1.1",
2844 "source-map-js": "^1.2.1"
2845 },
2846 "engines": {
2847 "node": "^10 || ^12 || >=14"
2848 }
2849 },
2850 "node_modules/rollup": {
2851 "version": "4.62.2",
2852 "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.62.2.tgz",
2853 "integrity": "sha512-RFnrW4lhXA3s3eqHDZvN654g8OTjzRfqpIRJYczCGB6HzphckVAi/Qh4tbPUbRuDi7s1Llv8g/NspLkttY3gTA==",
2854 "dev": true,
2855 "license": "MIT",
2856 "dependencies": {
2857 "@types/estree": "1.0.9"
2858 },
2859 "bin": {
2860 "rollup": "dist/bin/rollup"
2861 },
2862 "engines": {
2863 "node": ">=18.0.0",
2864 "npm": ">=8.0.0"
2865 },
2866 "optionalDependencies": {
2867 "@rollup/rollup-android-arm-eabi": "4.62.2",
2868 "@rollup/rollup-android-arm64": "4.62.2",
2869 "@rollup/rollup-darwin-arm64": "4.62.2",
2870 "@rollup/rollup-darwin-x64": "4.62.2",
2871 "@rollup/rollup-freebsd-arm64": "4.62.2",
2872 "@rollup/rollup-freebsd-x64": "4.62.2",
2873 "@rollup/rollup-linux-arm-gnueabihf": "4.62.2",
2874 "@rollup/rollup-linux-arm-musleabihf": "4.62.2",
2875 "@rollup/rollup-linux-arm64-gnu": "4.62.2",
2876 "@rollup/rollup-linux-arm64-musl": "4.62.2",
2877 "@rollup/rollup-linux-loong64-gnu": "4.62.2",
2878 "@rollup/rollup-linux-loong64-musl": "4.62.2",
2879 "@rollup/rollup-linux-ppc64-gnu": "4.62.2",
2880 "@rollup/rollup-linux-ppc64-musl": "4.62.2",
2881 "@rollup/rollup-linux-riscv64-gnu": "4.62.2",
2882 "@rollup/rollup-linux-riscv64-musl": "4.62.2",
2883 "@rollup/rollup-linux-s390x-gnu": "4.62.2",
2884 "@rollup/rollup-linux-x64-gnu": "4.62.2",
2885 "@rollup/rollup-linux-x64-musl": "4.62.2",
2886 "@rollup/rollup-openbsd-x64": "4.62.2",
2887 "@rollup/rollup-openharmony-arm64": "4.62.2",
2888 "@rollup/rollup-win32-arm64-msvc": "4.62.2",
2889 "@rollup/rollup-win32-ia32-msvc": "4.62.2",
2890 "@rollup/rollup-win32-x64-gnu": "4.62.2",
2891 "@rollup/rollup-win32-x64-msvc": "4.62.2",
2892 "fsevents": "~2.3.2"
2893 }
2894 },
2895 "node_modules/semver": {
2896 "version": "7.8.5",
2897 "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
2898 "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
2899 "dev": true,
2900 "license": "ISC",
2901 "bin": {
2902 "semver": "bin/semver.js"
2903 },
2904 "engines": {
2905 "node": ">=10"
2906 }
2907 },
2908 "node_modules/sharp": {
2909 "version": "0.33.5",
2910 "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.33.5.tgz",
2911 "integrity": "sha512-haPVm1EkS9pgvHrQ/F3Xy+hgcuMV0Wm9vfIBSiwZ05k+xgb0PkBQpGsAA/oWdDobNaZTH5ppvHtzCFbnSEwHVw==",
2912 "dev": true,
2913 "hasInstallScript": true,
2914 "license": "Apache-2.0",
2915 "dependencies": {
2916 "color": "^4.2.3",
2917 "detect-libc": "^2.0.3",
2918 "semver": "^7.6.3"
2919 },
2920 "engines": {
2921 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
2922 },
2923 "funding": {
2924 "url": "https://opencollective.com/libvips"
2925 },
2926 "optionalDependencies": {
2927 "@img/sharp-darwin-arm64": "0.33.5",
2928 "@img/sharp-darwin-x64": "0.33.5",
2929 "@img/sharp-libvips-darwin-arm64": "1.0.4",
2930 "@img/sharp-libvips-darwin-x64": "1.0.4",
2931 "@img/sharp-libvips-linux-arm": "1.0.5",
2932 "@img/sharp-libvips-linux-arm64": "1.0.4",
2933 "@img/sharp-libvips-linux-s390x": "1.0.4",
2934 "@img/sharp-libvips-linux-x64": "1.0.4",
2935 "@img/sharp-libvips-linuxmusl-arm64": "1.0.4",
2936 "@img/sharp-libvips-linuxmusl-x64": "1.0.4",
2937 "@img/sharp-linux-arm": "0.33.5",
2938 "@img/sharp-linux-arm64": "0.33.5",
2939 "@img/sharp-linux-s390x": "0.33.5",
2940 "@img/sharp-linux-x64": "0.33.5",
2941 "@img/sharp-linuxmusl-arm64": "0.33.5",
2942 "@img/sharp-linuxmusl-x64": "0.33.5",
2943 "@img/sharp-wasm32": "0.33.5",
2944 "@img/sharp-win32-ia32": "0.33.5",
2945 "@img/sharp-win32-x64": "0.33.5"
2946 }
2947 },
2948 "node_modules/siginfo": {
2949 "version": "2.0.0",
2950 "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz",
2951 "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==",
2952 "dev": true,
2953 "license": "ISC"
2954 },
2955 "node_modules/simple-swizzle": {
2956 "version": "0.2.4",
2957 "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.4.tgz",
2958 "integrity": "sha512-nAu1WFPQSMNr2Zn9PGSZK9AGn4t/y97lEm+MXTtUDwfP0ksAIX4nO+6ruD9Jwut4C49SB1Ws+fbXsm/yScWOHw==",
2959 "dev": true,
2960 "license": "MIT",
2961 "dependencies": {
2962 "is-arrayish": "^0.3.1"
2963 }
2964 },
2965 "node_modules/source-map-js": {
2966 "version": "1.2.1",
2967 "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
2968 "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
2969 "dev": true,
2970 "license": "BSD-3-Clause",
2971 "engines": {
2972 "node": ">=0.10.0"
2973 }
2974 },
2975 "node_modules/stackback": {
2976 "version": "0.0.2",
2977 "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz",
2978 "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==",
2979 "dev": true,
2980 "license": "MIT"
2981 },
2982 "node_modules/std-env": {
2983 "version": "3.10.0",
2984 "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.10.0.tgz",
2985 "integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==",
2986 "dev": true,
2987 "license": "MIT"
2988 },
2989 "node_modules/stoppable": {
2990 "version": "1.1.0",
2991 "resolved": "https://registry.npmjs.org/stoppable/-/stoppable-1.1.0.tgz",
2992 "integrity": "sha512-KXDYZ9dszj6bzvnEMRYvxgeTHU74QBFL54XKtP3nyMuJ81CFYtABZ3bAzL2EdFUaEwJOBOgENyFj3R7oTzDyyw==",
2993 "dev": true,
2994 "license": "MIT",
2995 "engines": {
2996 "node": ">=4",
2997 "npm": ">=6"
2998 }
2999 },
3000 "node_modules/strip-literal": {
3001 "version": "3.1.0",
3002 "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-3.1.0.tgz",
3003 "integrity": "sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==",
3004 "dev": true,
3005 "license": "MIT",
3006 "peer": true,
3007 "dependencies": {
3008 "js-tokens": "^9.0.1"
3009 },
3010 "funding": {
3011 "url": "https://github.com/sponsors/antfu"
3012 }
3013 },
3014 "node_modules/supports-color": {
3015 "version": "10.2.2",
3016 "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-10.2.2.tgz",
3017 "integrity": "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==",
3018 "dev": true,
3019 "license": "MIT",
3020 "engines": {
3021 "node": ">=18"
3022 },
3023 "funding": {
3024 "url": "https://github.com/chalk/supports-color?sponsor=1"
3025 }
3026 },
3027 "node_modules/tinybench": {
3028 "version": "2.9.0",
3029 "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz",
3030 "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==",
3031 "dev": true,
3032 "license": "MIT"
3033 },
3034 "node_modules/tinyexec": {
3035 "version": "0.3.2",
3036 "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz",
3037 "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==",
3038 "dev": true,
3039 "license": "MIT"
3040 },
3041 "node_modules/tinypool": {
3042 "version": "1.1.1",
3043 "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.1.1.tgz",
3044 "integrity": "sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==",
3045 "dev": true,
3046 "license": "MIT",
3047 "engines": {
3048 "node": "^18.0.0 || >=20.0.0"
3049 }
3050 },
3051 "node_modules/tinyrainbow": {
3052 "version": "2.0.0",
3053 "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-2.0.0.tgz",
3054 "integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==",
3055 "dev": true,
3056 "license": "MIT",
3057 "peer": true,
3058 "engines": {
3059 "node": ">=14.0.0"
3060 }
3061 },
3062 "node_modules/tinyspy": {
3063 "version": "3.0.2",
3064 "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-3.0.2.tgz",
3065 "integrity": "sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==",
3066 "dev": true,
3067 "license": "MIT",
3068 "engines": {
3069 "node": ">=14.0.0"
3070 }
3071 },
3072 "node_modules/tslib": {
3073 "version": "2.8.1",
3074 "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
3075 "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
3076 "dev": true,
3077 "license": "0BSD",
3078 "optional": true
3079 },
3080 "node_modules/typescript": {
3081 "version": "5.9.3",
3082 "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
3083 "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
3084 "dev": true,
3085 "license": "Apache-2.0",
3086 "bin": {
3087 "tsc": "bin/tsc",
3088 "tsserver": "bin/tsserver"
3089 },
3090 "engines": {
3091 "node": ">=14.17"
3092 }
3093 },
3094 "node_modules/ufo": {
3095 "version": "1.6.4",
3096 "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.4.tgz",
3097 "integrity": "sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==",
3098 "dev": true,
3099 "license": "MIT"
3100 },
3101 "node_modules/undici": {
3102 "version": "7.28.0",
3103 "resolved": "https://registry.npmjs.org/undici/-/undici-7.28.0.tgz",
3104 "integrity": "sha512-cRZYrTDwWznlnRiPjggAGxZXanty6M8RV1ff8Wm4LWXBp7/IG8v5DnOm74DtUBp9OONpK75YlPnIjQqX0dBDtA==",
3105 "dev": true,
3106 "license": "MIT",
3107 "engines": {
3108 "node": ">=20.18.1"
3109 }
3110 },
3111 "node_modules/undici-types": {
3112 "version": "6.21.0",
3113 "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
3114 "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
3115 "dev": true,
3116 "license": "MIT"
3117 },
3118 "node_modules/unenv": {
3119 "version": "2.0.0-rc.24",
3120 "resolved": "https://registry.npmjs.org/unenv/-/unenv-2.0.0-rc.24.tgz",
3121 "integrity": "sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw==",
3122 "dev": true,
3123 "license": "MIT",
3124 "dependencies": {
3125 "pathe": "^2.0.3"
3126 }
3127 },
3128 "node_modules/vite": {
3129 "version": "5.4.21",
3130 "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz",
3131 "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",
3132 "dev": true,
3133 "license": "MIT",
3134 "dependencies": {
3135 "esbuild": "^0.21.3",
3136 "postcss": "^8.4.43",
3137 "rollup": "^4.20.0"
3138 },
3139 "bin": {
3140 "vite": "bin/vite.js"
3141 },
3142 "engines": {
3143 "node": "^18.0.0 || >=20.0.0"
3144 },
3145 "funding": {
3146 "url": "https://github.com/vitejs/vite?sponsor=1"
3147 },
3148 "optionalDependencies": {
3149 "fsevents": "~2.3.3"
3150 },
3151 "peerDependencies": {
3152 "@types/node": "^18.0.0 || >=20.0.0",
3153 "less": "*",
3154 "lightningcss": "^1.21.0",
3155 "sass": "*",
3156 "sass-embedded": "*",
3157 "stylus": "*",
3158 "sugarss": "*",
3159 "terser": "^5.4.0"
3160 },
3161 "peerDependenciesMeta": {
3162 "@types/node": {
3163 "optional": true
3164 },
3165 "less": {
3166 "optional": true
3167 },
3168 "lightningcss": {
3169 "optional": true
3170 },
3171 "sass": {
3172 "optional": true
3173 },
3174 "sass-embedded": {
3175 "optional": true
3176 },
3177 "stylus": {
3178 "optional": true
3179 },
3180 "sugarss": {
3181 "optional": true
3182 },
3183 "terser": {
3184 "optional": true
3185 }
3186 }
3187 },
3188 "node_modules/vite-node": {
3189 "version": "2.1.9",
3190 "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-2.1.9.tgz",
3191 "integrity": "sha512-AM9aQ/IPrW/6ENLQg3AGY4K1N2TGZdR5e4gu/MmmR2xR3Ll1+dib+nook92g4TV3PXVyeyxdWwtaCAiUL0hMxA==",
3192 "dev": true,
3193 "license": "MIT",
3194 "dependencies": {
3195 "cac": "^6.7.14",
3196 "debug": "^4.3.7",
3197 "es-module-lexer": "^1.5.4",
3198 "pathe": "^1.1.2",
3199 "vite": "^5.0.0"
3200 },
3201 "bin": {
3202 "vite-node": "vite-node.mjs"
3203 },
3204 "engines": {
3205 "node": "^18.0.0 || >=20.0.0"
3206 },
3207 "funding": {
3208 "url": "https://opencollective.com/vitest"
3209 }
3210 },
3211 "node_modules/vite-node/node_modules/pathe": {
3212 "version": "1.1.2",
3213 "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz",
3214 "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==",
3215 "dev": true,
3216 "license": "MIT"
3217 },
3218 "node_modules/vitest": {
3219 "version": "2.1.9",
3220 "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.1.9.tgz",
3221 "integrity": "sha512-MSmPM9REYqDGBI8439mA4mWhV5sKmDlBKWIYbA3lRb2PTHACE0mgKwA8yQ2xq9vxDTuk4iPrECBAEW2aoFXY0Q==",
3222 "dev": true,
3223 "license": "MIT",
3224 "dependencies": {
3225 "@vitest/expect": "2.1.9",
3226 "@vitest/mocker": "2.1.9",
3227 "@vitest/pretty-format": "^2.1.9",
3228 "@vitest/runner": "2.1.9",
3229 "@vitest/snapshot": "2.1.9",
3230 "@vitest/spy": "2.1.9",
3231 "@vitest/utils": "2.1.9",
3232 "chai": "^5.1.2",
3233 "debug": "^4.3.7",
3234 "expect-type": "^1.1.0",
3235 "magic-string": "^0.30.12",
3236 "pathe": "^1.1.2",
3237 "std-env": "^3.8.0",
3238 "tinybench": "^2.9.0",
3239 "tinyexec": "^0.3.1",
3240 "tinypool": "^1.0.1",
3241 "tinyrainbow": "^1.2.0",
3242 "vite": "^5.0.0",
3243 "vite-node": "2.1.9",
3244 "why-is-node-running": "^2.3.0"
3245 },
3246 "bin": {
3247 "vitest": "vitest.mjs"
3248 },
3249 "engines": {
3250 "node": "^18.0.0 || >=20.0.0"
3251 },
3252 "funding": {
3253 "url": "https://opencollective.com/vitest"
3254 },
3255 "peerDependencies": {
3256 "@edge-runtime/vm": "*",
3257 "@types/node": "^18.0.0 || >=20.0.0",
3258 "@vitest/browser": "2.1.9",
3259 "@vitest/ui": "2.1.9",
3260 "happy-dom": "*",
3261 "jsdom": "*"
3262 },
3263 "peerDependenciesMeta": {
3264 "@edge-runtime/vm": {
3265 "optional": true
3266 },
3267 "@types/node": {
3268 "optional": true
3269 },
3270 "@vitest/browser": {
3271 "optional": true
3272 },
3273 "@vitest/ui": {
3274 "optional": true
3275 },
3276 "happy-dom": {
3277 "optional": true
3278 },
3279 "jsdom": {
3280 "optional": true
3281 }
3282 }
3283 },
3284 "node_modules/vitest/node_modules/@vitest/pretty-format": {
3285 "version": "2.1.9",
3286 "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.1.9.tgz",
3287 "integrity": "sha512-KhRIdGV2U9HOUzxfiHmY8IFHTdqtOhIzCpd8WRdJiE7D/HUcZVD0EgQCVjm+Q9gkUXWgBvMmTtZgIG48wq7sOQ==",
3288 "dev": true,
3289 "license": "MIT",
3290 "dependencies": {
3291 "tinyrainbow": "^1.2.0"
3292 },
3293 "funding": {
3294 "url": "https://opencollective.com/vitest"
3295 }
3296 },
3297 "node_modules/vitest/node_modules/@vitest/runner": {
3298 "version": "2.1.9",
3299 "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-2.1.9.tgz",
3300 "integrity": "sha512-ZXSSqTFIrzduD63btIfEyOmNcBmQvgOVsPNPe0jYtESiXkhd8u2erDLnMxmGrDCwHCCHE7hxwRDCT3pt0esT4g==",
3301 "dev": true,
3302 "license": "MIT",
3303 "dependencies": {
3304 "@vitest/utils": "2.1.9",
3305 "pathe": "^1.1.2"
3306 },
3307 "funding": {
3308 "url": "https://opencollective.com/vitest"
3309 }
3310 },
3311 "node_modules/vitest/node_modules/@vitest/snapshot": {
3312 "version": "2.1.9",
3313 "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-2.1.9.tgz",
3314 "integrity": "sha512-oBO82rEjsxLNJincVhLhaxxZdEtV0EFHMK5Kmx5sJ6H9L183dHECjiefOAdnqpIgT5eZwT04PoggUnW88vOBNQ==",
3315 "dev": true,
3316 "license": "MIT",
3317 "dependencies": {
3318 "@vitest/pretty-format": "2.1.9",
3319 "magic-string": "^0.30.12",
3320 "pathe": "^1.1.2"
3321 },
3322 "funding": {
3323 "url": "https://opencollective.com/vitest"
3324 }
3325 },
3326 "node_modules/vitest/node_modules/@vitest/utils": {
3327 "version": "2.1.9",
3328 "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.1.9.tgz",
3329 "integrity": "sha512-v0psaMSkNJ3A2NMrUEHFRzJtDPFn+/VWZ5WxImB21T9fjucJRmS7xCS3ppEnARb9y11OAzaD+P2Ps+b+BGX5iQ==",
3330 "dev": true,
3331 "license": "MIT",
3332 "dependencies": {
3333 "@vitest/pretty-format": "2.1.9",
3334 "loupe": "^3.1.2",
3335 "tinyrainbow": "^1.2.0"
3336 },
3337 "funding": {
3338 "url": "https://opencollective.com/vitest"
3339 }
3340 },
3341 "node_modules/vitest/node_modules/pathe": {
3342 "version": "1.1.2",
3343 "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz",
3344 "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==",
3345 "dev": true,
3346 "license": "MIT"
3347 },
3348 "node_modules/vitest/node_modules/tinyrainbow": {
3349 "version": "1.2.0",
3350 "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-1.2.0.tgz",
3351 "integrity": "sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==",
3352 "dev": true,
3353 "license": "MIT",
3354 "engines": {
3355 "node": ">=14.0.0"
3356 }
3357 },
3358 "node_modules/why-is-node-running": {
3359 "version": "2.3.0",
3360 "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz",
3361 "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==",
3362 "dev": true,
3363 "license": "MIT",
3364 "dependencies": {
3365 "siginfo": "^2.0.0",
3366 "stackback": "0.0.2"
3367 },
3368 "bin": {
3369 "why-is-node-running": "cli.js"
3370 },
3371 "engines": {
3372 "node": ">=8"
3373 }
3374 },
3375 "node_modules/workerd": {
3376 "version": "1.20250906.0",
3377 "resolved": "https://registry.npmjs.org/workerd/-/workerd-1.20250906.0.tgz",
3378 "integrity": "sha512-ryVyEaqXPPsr/AxccRmYZZmDAkfQVjhfRqrNTlEeN8aftBk6Ca1u7/VqmfOayjCXrA+O547TauebU+J3IpvFXw==",
3379 "dev": true,
3380 "hasInstallScript": true,
3381 "license": "Apache-2.0",
3382 "bin": {
3383 "workerd": "bin/workerd"
3384 },
3385 "engines": {
3386 "node": ">=16"
3387 },
3388 "optionalDependencies": {
3389 "@cloudflare/workerd-darwin-64": "1.20250906.0",
3390 "@cloudflare/workerd-darwin-arm64": "1.20250906.0",
3391 "@cloudflare/workerd-linux-64": "1.20250906.0",
3392 "@cloudflare/workerd-linux-arm64": "1.20250906.0",
3393 "@cloudflare/workerd-windows-64": "1.20250906.0"
3394 }
3395 },
3396 "node_modules/wrangler": {
3397 "version": "4.112.0",
3398 "resolved": "https://registry.npmjs.org/wrangler/-/wrangler-4.112.0.tgz",
3399 "integrity": "sha512-5H+XUD0TySCv1LuktFHDIEOkboH2nTfQs+35L+USt3MtntjDTMVIJprLgQcL2WBjulOyjxpd1vyTiSTJVW5MjQ==",
3400 "dev": true,
3401 "license": "MIT OR Apache-2.0",
3402 "dependencies": {
3403 "@cloudflare/kv-asset-handler": "0.5.0",
3404 "@cloudflare/unenv-preset": "2.16.1",
3405 "blake3-wasm": "2.1.5",
3406 "esbuild": "0.28.1",
3407 "miniflare": "4.20260714.0",
3408 "path-to-regexp": "6.3.0",
3409 "unenv": "2.0.0-rc.24",
3410 "workerd": "1.20260714.1"
3411 },
3412 "bin": {
3413 "cf-wrangler": "bin/cf-wrangler.js",
3414 "wrangler": "bin/wrangler.js",
3415 "wrangler2": "bin/wrangler.js"
3416 },
3417 "engines": {
3418 "node": ">=22.0.0"
3419 },
3420 "optionalDependencies": {
3421 "fsevents": "2.3.3"
3422 },
3423 "peerDependencies": {
3424 "@cloudflare/workers-types": "^5.20260714.1"
3425 },
3426 "peerDependenciesMeta": {
3427 "@cloudflare/workers-types": {
3428 "optional": true
3429 }
3430 }
3431 },
3432 "node_modules/wrangler/node_modules/@cloudflare/unenv-preset": {
3433 "version": "2.16.1",
3434 "resolved": "https://registry.npmjs.org/@cloudflare/unenv-preset/-/unenv-preset-2.16.1.tgz",
3435 "integrity": "sha512-ECxObrMfyTl5bhQf/lZCXwo5G6xX9IAUo+nDMKK4SZ8m4Jvvxp52vilxyySSWh2YTZz8+HQ07qGH/2rEom1vDw==",
3436 "dev": true,
3437 "license": "MIT OR Apache-2.0",
3438 "peerDependencies": {
3439 "unenv": "2.0.0-rc.24",
3440 "workerd": ">1.20260305.0 <2.0.0-0"
3441 },
3442 "peerDependenciesMeta": {
3443 "workerd": {
3444 "optional": true
3445 }
3446 }
3447 },
3448 "node_modules/wrangler/node_modules/@cloudflare/workerd-darwin-64": {
3449 "version": "1.20260714.1",
3450 "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-1.20260714.1.tgz",
3451 "integrity": "sha512-ZWXqAN8G7Cx9hMRQuk+59ziJhR3j1F4iO+Qs8aHdfKZ3Dq5Yi/57xvkJTgCGBnW1YU/L78r8f6HEy51bwbTpNw==",
3452 "cpu": [
3453 "x64"
3454 ],
3455 "dev": true,
3456 "license": "Apache-2.0",
3457 "optional": true,
3458 "os": [
3459 "darwin"
3460 ],
3461 "engines": {
3462 "node": ">=16"
3463 }
3464 },
3465 "node_modules/wrangler/node_modules/@cloudflare/workerd-darwin-arm64": {
3466 "version": "1.20260714.1",
3467 "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-1.20260714.1.tgz",
3468 "integrity": "sha512-tueWxWC3wyCbMG6zRAxsMXX0YLgrRWbiAPYFQ2uJ7dUH8G+5E7UTWaQS9B1HdJ0bpKFW1NWxhs1o2noKVFSUYg==",
3469 "cpu": [
3470 "arm64"
3471 ],
3472 "dev": true,
3473 "license": "Apache-2.0",
3474 "optional": true,
3475 "os": [
3476 "darwin"
3477 ],
3478 "engines": {
3479 "node": ">=16"
3480 }
3481 },
3482 "node_modules/wrangler/node_modules/@cloudflare/workerd-linux-64": {
3483 "version": "1.20260714.1",
3484 "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20260714.1.tgz",
3485 "integrity": "sha512-1VChTZRb0l0F7R4e1G5RtLKV4oFi6x+rQgxh2+yu887j3l/3TLgatuv1L8/5zhc9gKEhATTxOh0e52Rtd9dDWQ==",
3486 "cpu": [
3487 "x64"
3488 ],
3489 "dev": true,
3490 "license": "Apache-2.0",
3491 "optional": true,
3492 "os": [
3493 "linux"
3494 ],
3495 "engines": {
3496 "node": ">=16"
3497 }
3498 },
3499 "node_modules/wrangler/node_modules/@cloudflare/workerd-linux-arm64": {
3500 "version": "1.20260714.1",
3501 "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-1.20260714.1.tgz",
3502 "integrity": "sha512-rMm3G+NirG2UdgHIRDdF1asNC6FqgIzZzkRG+VDhhDGcVxAQwvrMT1E38BivEvHr3G04MB4AfhcOczX0+GtRkQ==",
3503 "cpu": [
3504 "arm64"
3505 ],
3506 "dev": true,
3507 "license": "Apache-2.0",
3508 "optional": true,
3509 "os": [
3510 "linux"
3511 ],
3512 "engines": {
3513 "node": ">=16"
3514 }
3515 },
3516 "node_modules/wrangler/node_modules/@cloudflare/workerd-windows-64": {
3517 "version": "1.20260714.1",
3518 "resolved": "https://registry.npmjs.org/@cloudflare/workerd-windows-64/-/workerd-windows-64-1.20260714.1.tgz",
3519 "integrity": "sha512-cGqnU3Hg2YZS/k3SAqrMp1DjpdsyFde72tWltdl6ZT9+SFz/Zrk/8gyTU1TcxC4YApXeNVH5TyU5cOGPgUJ0pg==",
3520 "cpu": [
3521 "x64"
3522 ],
3523 "dev": true,
3524 "license": "Apache-2.0",
3525 "optional": true,
3526 "os": [
3527 "win32"
3528 ],
3529 "engines": {
3530 "node": ">=16"
3531 }
3532 },
3533 "node_modules/wrangler/node_modules/@esbuild/aix-ppc64": {
3534 "version": "0.28.1",
3535 "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.1.tgz",
3536 "integrity": "sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ==",
3537 "cpu": [
3538 "ppc64"
3539 ],
3540 "dev": true,
3541 "license": "MIT",
3542 "optional": true,
3543 "os": [
3544 "aix"
3545 ],
3546 "engines": {
3547 "node": ">=18"
3548 }
3549 },
3550 "node_modules/wrangler/node_modules/@esbuild/android-arm": {
3551 "version": "0.28.1",
3552 "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.1.tgz",
3553 "integrity": "sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ==",
3554 "cpu": [
3555 "arm"
3556 ],
3557 "dev": true,
3558 "license": "MIT",
3559 "optional": true,
3560 "os": [
3561 "android"
3562 ],
3563 "engines": {
3564 "node": ">=18"
3565 }
3566 },
3567 "node_modules/wrangler/node_modules/@esbuild/android-arm64": {
3568 "version": "0.28.1",
3569 "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.1.tgz",
3570 "integrity": "sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg==",
3571 "cpu": [
3572 "arm64"
3573 ],
3574 "dev": true,
3575 "license": "MIT",
3576 "optional": true,
3577 "os": [
3578 "android"
3579 ],
3580 "engines": {
3581 "node": ">=18"
3582 }
3583 },
3584 "node_modules/wrangler/node_modules/@esbuild/android-x64": {
3585 "version": "0.28.1",
3586 "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.1.tgz",
3587 "integrity": "sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng==",
3588 "cpu": [
3589 "x64"
3590 ],
3591 "dev": true,
3592 "license": "MIT",
3593 "optional": true,
3594 "os": [
3595 "android"
3596 ],
3597 "engines": {
3598 "node": ">=18"
3599 }
3600 },
3601 "node_modules/wrangler/node_modules/@esbuild/darwin-arm64": {
3602 "version": "0.28.1",
3603 "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.1.tgz",
3604 "integrity": "sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q==",
3605 "cpu": [
3606 "arm64"
3607 ],
3608 "dev": true,
3609 "license": "MIT",
3610 "optional": true,
3611 "os": [
3612 "darwin"
3613 ],
3614 "engines": {
3615 "node": ">=18"
3616 }
3617 },
3618 "node_modules/wrangler/node_modules/@esbuild/darwin-x64": {
3619 "version": "0.28.1",
3620 "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.1.tgz",
3621 "integrity": "sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ==",
3622 "cpu": [
3623 "x64"
3624 ],
3625 "dev": true,
3626 "license": "MIT",
3627 "optional": true,
3628 "os": [
3629 "darwin"
3630 ],
3631 "engines": {
3632 "node": ">=18"
3633 }
3634 },
3635 "node_modules/wrangler/node_modules/@esbuild/freebsd-arm64": {
3636 "version": "0.28.1",
3637 "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.1.tgz",
3638 "integrity": "sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw==",
3639 "cpu": [
3640 "arm64"
3641 ],
3642 "dev": true,
3643 "license": "MIT",
3644 "optional": true,
3645 "os": [
3646 "freebsd"
3647 ],
3648 "engines": {
3649 "node": ">=18"
3650 }
3651 },
3652 "node_modules/wrangler/node_modules/@esbuild/freebsd-x64": {
3653 "version": "0.28.1",
3654 "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.1.tgz",
3655 "integrity": "sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ==",
3656 "cpu": [
3657 "x64"
3658 ],
3659 "dev": true,
3660 "license": "MIT",
3661 "optional": true,
3662 "os": [
3663 "freebsd"
3664 ],
3665 "engines": {
3666 "node": ">=18"
3667 }
3668 },
3669 "node_modules/wrangler/node_modules/@esbuild/linux-arm": {
3670 "version": "0.28.1",
3671 "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.1.tgz",
3672 "integrity": "sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ==",
3673 "cpu": [
3674 "arm"
3675 ],
3676 "dev": true,
3677 "license": "MIT",
3678 "optional": true,
3679 "os": [
3680 "linux"
3681 ],
3682 "engines": {
3683 "node": ">=18"
3684 }
3685 },
3686 "node_modules/wrangler/node_modules/@esbuild/linux-arm64": {
3687 "version": "0.28.1",
3688 "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.1.tgz",
3689 "integrity": "sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g==",
3690 "cpu": [
3691 "arm64"
3692 ],
3693 "dev": true,
3694 "license": "MIT",
3695 "optional": true,
3696 "os": [
3697 "linux"
3698 ],
3699 "engines": {
3700 "node": ">=18"
3701 }
3702 },
3703 "node_modules/wrangler/node_modules/@esbuild/linux-ia32": {
3704 "version": "0.28.1",
3705 "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.1.tgz",
3706 "integrity": "sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w==",
3707 "cpu": [
3708 "ia32"
3709 ],
3710 "dev": true,
3711 "license": "MIT",
3712 "optional": true,
3713 "os": [
3714 "linux"
3715 ],
3716 "engines": {
3717 "node": ">=18"
3718 }
3719 },
3720 "node_modules/wrangler/node_modules/@esbuild/linux-loong64": {
3721 "version": "0.28.1",
3722 "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.1.tgz",
3723 "integrity": "sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg==",
3724 "cpu": [
3725 "loong64"
3726 ],
3727 "dev": true,
3728 "license": "MIT",
3729 "optional": true,
3730 "os": [
3731 "linux"
3732 ],
3733 "engines": {
3734 "node": ">=18"
3735 }
3736 },
3737 "node_modules/wrangler/node_modules/@esbuild/linux-mips64el": {
3738 "version": "0.28.1",
3739 "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.1.tgz",
3740 "integrity": "sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ==",
3741 "cpu": [
3742 "mips64el"
3743 ],
3744 "dev": true,
3745 "license": "MIT",
3746 "optional": true,
3747 "os": [
3748 "linux"
3749 ],
3750 "engines": {
3751 "node": ">=18"
3752 }
3753 },
3754 "node_modules/wrangler/node_modules/@esbuild/linux-ppc64": {
3755 "version": "0.28.1",
3756 "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.1.tgz",
3757 "integrity": "sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ==",
3758 "cpu": [
3759 "ppc64"
3760 ],
3761 "dev": true,
3762 "license": "MIT",
3763 "optional": true,
3764 "os": [
3765 "linux"
3766 ],
3767 "engines": {
3768 "node": ">=18"
3769 }
3770 },
3771 "node_modules/wrangler/node_modules/@esbuild/linux-riscv64": {
3772 "version": "0.28.1",
3773 "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.1.tgz",
3774 "integrity": "sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ==",
3775 "cpu": [
3776 "riscv64"
3777 ],
3778 "dev": true,
3779 "license": "MIT",
3780 "optional": true,
3781 "os": [
3782 "linux"
3783 ],
3784 "engines": {
3785 "node": ">=18"
3786 }
3787 },
3788 "node_modules/wrangler/node_modules/@esbuild/linux-s390x": {
3789 "version": "0.28.1",
3790 "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.1.tgz",
3791 "integrity": "sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag==",
3792 "cpu": [
3793 "s390x"
3794 ],
3795 "dev": true,
3796 "license": "MIT",
3797 "optional": true,
3798 "os": [
3799 "linux"
3800 ],
3801 "engines": {
3802 "node": ">=18"
3803 }
3804 },
3805 "node_modules/wrangler/node_modules/@esbuild/linux-x64": {
3806 "version": "0.28.1",
3807 "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.1.tgz",
3808 "integrity": "sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA==",
3809 "cpu": [
3810 "x64"
3811 ],
3812 "dev": true,
3813 "license": "MIT",
3814 "optional": true,
3815 "os": [
3816 "linux"
3817 ],
3818 "engines": {
3819 "node": ">=18"
3820 }
3821 },
3822 "node_modules/wrangler/node_modules/@esbuild/netbsd-arm64": {
3823 "version": "0.28.1",
3824 "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.1.tgz",
3825 "integrity": "sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw==",
3826 "cpu": [
3827 "arm64"
3828 ],
3829 "dev": true,
3830 "license": "MIT",
3831 "optional": true,
3832 "os": [
3833 "netbsd"
3834 ],
3835 "engines": {
3836 "node": ">=18"
3837 }
3838 },
3839 "node_modules/wrangler/node_modules/@esbuild/netbsd-x64": {
3840 "version": "0.28.1",
3841 "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.1.tgz",
3842 "integrity": "sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg==",
3843 "cpu": [
3844 "x64"
3845 ],
3846 "dev": true,
3847 "license": "MIT",
3848 "optional": true,
3849 "os": [
3850 "netbsd"
3851 ],
3852 "engines": {
3853 "node": ">=18"
3854 }
3855 },
3856 "node_modules/wrangler/node_modules/@esbuild/openbsd-arm64": {
3857 "version": "0.28.1",
3858 "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.1.tgz",
3859 "integrity": "sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q==",
3860 "cpu": [
3861 "arm64"
3862 ],
3863 "dev": true,
3864 "license": "MIT",
3865 "optional": true,
3866 "os": [
3867 "openbsd"
3868 ],
3869 "engines": {
3870 "node": ">=18"
3871 }
3872 },
3873 "node_modules/wrangler/node_modules/@esbuild/openbsd-x64": {
3874 "version": "0.28.1",
3875 "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.1.tgz",
3876 "integrity": "sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw==",
3877 "cpu": [
3878 "x64"
3879 ],
3880 "dev": true,
3881 "license": "MIT",
3882 "optional": true,
3883 "os": [
3884 "openbsd"
3885 ],
3886 "engines": {
3887 "node": ">=18"
3888 }
3889 },
3890 "node_modules/wrangler/node_modules/@esbuild/sunos-x64": {
3891 "version": "0.28.1",
3892 "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.1.tgz",
3893 "integrity": "sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ==",
3894 "cpu": [
3895 "x64"
3896 ],
3897 "dev": true,
3898 "license": "MIT",
3899 "optional": true,
3900 "os": [
3901 "sunos"
3902 ],
3903 "engines": {
3904 "node": ">=18"
3905 }
3906 },
3907 "node_modules/wrangler/node_modules/@esbuild/win32-arm64": {
3908 "version": "0.28.1",
3909 "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.1.tgz",
3910 "integrity": "sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA==",
3911 "cpu": [
3912 "arm64"
3913 ],
3914 "dev": true,
3915 "license": "MIT",
3916 "optional": true,
3917 "os": [
3918 "win32"
3919 ],
3920 "engines": {
3921 "node": ">=18"
3922 }
3923 },
3924 "node_modules/wrangler/node_modules/@esbuild/win32-ia32": {
3925 "version": "0.28.1",
3926 "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.1.tgz",
3927 "integrity": "sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg==",
3928 "cpu": [
3929 "ia32"
3930 ],
3931 "dev": true,
3932 "license": "MIT",
3933 "optional": true,
3934 "os": [
3935 "win32"
3936 ],
3937 "engines": {
3938 "node": ">=18"
3939 }
3940 },
3941 "node_modules/wrangler/node_modules/@esbuild/win32-x64": {
3942 "version": "0.28.1",
3943 "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.1.tgz",
3944 "integrity": "sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A==",
3945 "cpu": [
3946 "x64"
3947 ],
3948 "dev": true,
3949 "license": "MIT",
3950 "optional": true,
3951 "os": [
3952 "win32"
3953 ],
3954 "engines": {
3955 "node": ">=18"
3956 }
3957 },
3958 "node_modules/wrangler/node_modules/@img/sharp-darwin-arm64": {
3959 "version": "0.34.5",
3960 "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.34.5.tgz",
3961 "integrity": "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==",
3962 "cpu": [
3963 "arm64"
3964 ],
3965 "dev": true,
3966 "license": "Apache-2.0",
3967 "optional": true,
3968 "os": [
3969 "darwin"
3970 ],
3971 "engines": {
3972 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
3973 },
3974 "funding": {
3975 "url": "https://opencollective.com/libvips"
3976 },
3977 "optionalDependencies": {
3978 "@img/sharp-libvips-darwin-arm64": "1.2.4"
3979 }
3980 },
3981 "node_modules/wrangler/node_modules/@img/sharp-darwin-x64": {
3982 "version": "0.34.5",
3983 "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.34.5.tgz",
3984 "integrity": "sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==",
3985 "cpu": [
3986 "x64"
3987 ],
3988 "dev": true,
3989 "license": "Apache-2.0",
3990 "optional": true,
3991 "os": [
3992 "darwin"
3993 ],
3994 "engines": {
3995 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
3996 },
3997 "funding": {
3998 "url": "https://opencollective.com/libvips"
3999 },
4000 "optionalDependencies": {
4001 "@img/sharp-libvips-darwin-x64": "1.2.4"
4002 }
4003 },
4004 "node_modules/wrangler/node_modules/@img/sharp-libvips-darwin-arm64": {
4005 "version": "1.2.4",
4006 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.2.4.tgz",
4007 "integrity": "sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==",
4008 "cpu": [
4009 "arm64"
4010 ],
4011 "dev": true,
4012 "license": "LGPL-3.0-or-later",
4013 "optional": true,
4014 "os": [
4015 "darwin"
4016 ],
4017 "funding": {
4018 "url": "https://opencollective.com/libvips"
4019 }
4020 },
4021 "node_modules/wrangler/node_modules/@img/sharp-libvips-darwin-x64": {
4022 "version": "1.2.4",
4023 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.2.4.tgz",
4024 "integrity": "sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==",
4025 "cpu": [
4026 "x64"
4027 ],
4028 "dev": true,
4029 "license": "LGPL-3.0-or-later",
4030 "optional": true,
4031 "os": [
4032 "darwin"
4033 ],
4034 "funding": {
4035 "url": "https://opencollective.com/libvips"
4036 }
4037 },
4038 "node_modules/wrangler/node_modules/@img/sharp-libvips-linux-arm": {
4039 "version": "1.2.4",
4040 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.2.4.tgz",
4041 "integrity": "sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==",
4042 "cpu": [
4043 "arm"
4044 ],
4045 "dev": true,
4046 "libc": [
4047 "glibc"
4048 ],
4049 "license": "LGPL-3.0-or-later",
4050 "optional": true,
4051 "os": [
4052 "linux"
4053 ],
4054 "funding": {
4055 "url": "https://opencollective.com/libvips"
4056 }
4057 },
4058 "node_modules/wrangler/node_modules/@img/sharp-libvips-linux-arm64": {
4059 "version": "1.2.4",
4060 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.2.4.tgz",
4061 "integrity": "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==",
4062 "cpu": [
4063 "arm64"
4064 ],
4065 "dev": true,
4066 "libc": [
4067 "glibc"
4068 ],
4069 "license": "LGPL-3.0-or-later",
4070 "optional": true,
4071 "os": [
4072 "linux"
4073 ],
4074 "funding": {
4075 "url": "https://opencollective.com/libvips"
4076 }
4077 },
4078 "node_modules/wrangler/node_modules/@img/sharp-libvips-linux-s390x": {
4079 "version": "1.2.4",
4080 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.2.4.tgz",
4081 "integrity": "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==",
4082 "cpu": [
4083 "s390x"
4084 ],
4085 "dev": true,
4086 "libc": [
4087 "glibc"
4088 ],
4089 "license": "LGPL-3.0-or-later",
4090 "optional": true,
4091 "os": [
4092 "linux"
4093 ],
4094 "funding": {
4095 "url": "https://opencollective.com/libvips"
4096 }
4097 },
4098 "node_modules/wrangler/node_modules/@img/sharp-libvips-linux-x64": {
4099 "version": "1.2.4",
4100 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.2.4.tgz",
4101 "integrity": "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==",
4102 "cpu": [
4103 "x64"
4104 ],
4105 "dev": true,
4106 "libc": [
4107 "glibc"
4108 ],
4109 "license": "LGPL-3.0-or-later",
4110 "optional": true,
4111 "os": [
4112 "linux"
4113 ],
4114 "funding": {
4115 "url": "https://opencollective.com/libvips"
4116 }
4117 },
4118 "node_modules/wrangler/node_modules/@img/sharp-libvips-linuxmusl-arm64": {
4119 "version": "1.2.4",
4120 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.2.4.tgz",
4121 "integrity": "sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==",
4122 "cpu": [
4123 "arm64"
4124 ],
4125 "dev": true,
4126 "libc": [
4127 "musl"
4128 ],
4129 "license": "LGPL-3.0-or-later",
4130 "optional": true,
4131 "os": [
4132 "linux"
4133 ],
4134 "funding": {
4135 "url": "https://opencollective.com/libvips"
4136 }
4137 },
4138 "node_modules/wrangler/node_modules/@img/sharp-libvips-linuxmusl-x64": {
4139 "version": "1.2.4",
4140 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.2.4.tgz",
4141 "integrity": "sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==",
4142 "cpu": [
4143 "x64"
4144 ],
4145 "dev": true,
4146 "libc": [
4147 "musl"
4148 ],
4149 "license": "LGPL-3.0-or-later",
4150 "optional": true,
4151 "os": [
4152 "linux"
4153 ],
4154 "funding": {
4155 "url": "https://opencollective.com/libvips"
4156 }
4157 },
4158 "node_modules/wrangler/node_modules/@img/sharp-linux-arm": {
4159 "version": "0.34.5",
4160 "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.34.5.tgz",
4161 "integrity": "sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==",
4162 "cpu": [
4163 "arm"
4164 ],
4165 "dev": true,
4166 "libc": [
4167 "glibc"
4168 ],
4169 "license": "Apache-2.0",
4170 "optional": true,
4171 "os": [
4172 "linux"
4173 ],
4174 "engines": {
4175 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
4176 },
4177 "funding": {
4178 "url": "https://opencollective.com/libvips"
4179 },
4180 "optionalDependencies": {
4181 "@img/sharp-libvips-linux-arm": "1.2.4"
4182 }
4183 },
4184 "node_modules/wrangler/node_modules/@img/sharp-linux-arm64": {
4185 "version": "0.34.5",
4186 "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.34.5.tgz",
4187 "integrity": "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==",
4188 "cpu": [
4189 "arm64"
4190 ],
4191 "dev": true,
4192 "libc": [
4193 "glibc"
4194 ],
4195 "license": "Apache-2.0",
4196 "optional": true,
4197 "os": [
4198 "linux"
4199 ],
4200 "engines": {
4201 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
4202 },
4203 "funding": {
4204 "url": "https://opencollective.com/libvips"
4205 },
4206 "optionalDependencies": {
4207 "@img/sharp-libvips-linux-arm64": "1.2.4"
4208 }
4209 },
4210 "node_modules/wrangler/node_modules/@img/sharp-linux-s390x": {
4211 "version": "0.34.5",
4212 "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.34.5.tgz",
4213 "integrity": "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==",
4214 "cpu": [
4215 "s390x"
4216 ],
4217 "dev": true,
4218 "libc": [
4219 "glibc"
4220 ],
4221 "license": "Apache-2.0",
4222 "optional": true,
4223 "os": [
4224 "linux"
4225 ],
4226 "engines": {
4227 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
4228 },
4229 "funding": {
4230 "url": "https://opencollective.com/libvips"
4231 },
4232 "optionalDependencies": {
4233 "@img/sharp-libvips-linux-s390x": "1.2.4"
4234 }
4235 },
4236 "node_modules/wrangler/node_modules/@img/sharp-linux-x64": {
4237 "version": "0.34.5",
4238 "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.34.5.tgz",
4239 "integrity": "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==",
4240 "cpu": [
4241 "x64"
4242 ],
4243 "dev": true,
4244 "libc": [
4245 "glibc"
4246 ],
4247 "license": "Apache-2.0",
4248 "optional": true,
4249 "os": [
4250 "linux"
4251 ],
4252 "engines": {
4253 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
4254 },
4255 "funding": {
4256 "url": "https://opencollective.com/libvips"
4257 },
4258 "optionalDependencies": {
4259 "@img/sharp-libvips-linux-x64": "1.2.4"
4260 }
4261 },
4262 "node_modules/wrangler/node_modules/@img/sharp-linuxmusl-arm64": {
4263 "version": "0.34.5",
4264 "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.34.5.tgz",
4265 "integrity": "sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==",
4266 "cpu": [
4267 "arm64"
4268 ],
4269 "dev": true,
4270 "libc": [
4271 "musl"
4272 ],
4273 "license": "Apache-2.0",
4274 "optional": true,
4275 "os": [
4276 "linux"
4277 ],
4278 "engines": {
4279 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
4280 },
4281 "funding": {
4282 "url": "https://opencollective.com/libvips"
4283 },
4284 "optionalDependencies": {
4285 "@img/sharp-libvips-linuxmusl-arm64": "1.2.4"
4286 }
4287 },
4288 "node_modules/wrangler/node_modules/@img/sharp-linuxmusl-x64": {
4289 "version": "0.34.5",
4290 "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.34.5.tgz",
4291 "integrity": "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==",
4292 "cpu": [
4293 "x64"
4294 ],
4295 "dev": true,
4296 "libc": [
4297 "musl"
4298 ],
4299 "license": "Apache-2.0",
4300 "optional": true,
4301 "os": [
4302 "linux"
4303 ],
4304 "engines": {
4305 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
4306 },
4307 "funding": {
4308 "url": "https://opencollective.com/libvips"
4309 },
4310 "optionalDependencies": {
4311 "@img/sharp-libvips-linuxmusl-x64": "1.2.4"
4312 }
4313 },
4314 "node_modules/wrangler/node_modules/@img/sharp-wasm32": {
4315 "version": "0.34.5",
4316 "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.34.5.tgz",
4317 "integrity": "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==",
4318 "cpu": [
4319 "wasm32"
4320 ],
4321 "dev": true,
4322 "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",
4323 "optional": true,
4324 "dependencies": {
4325 "@emnapi/runtime": "^1.7.0"
4326 },
4327 "engines": {
4328 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
4329 },
4330 "funding": {
4331 "url": "https://opencollective.com/libvips"
4332 }
4333 },
4334 "node_modules/wrangler/node_modules/@img/sharp-win32-ia32": {
4335 "version": "0.34.5",
4336 "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.34.5.tgz",
4337 "integrity": "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==",
4338 "cpu": [
4339 "ia32"
4340 ],
4341 "dev": true,
4342 "license": "Apache-2.0 AND LGPL-3.0-or-later",
4343 "optional": true,
4344 "os": [
4345 "win32"
4346 ],
4347 "engines": {
4348 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
4349 },
4350 "funding": {
4351 "url": "https://opencollective.com/libvips"
4352 }
4353 },
4354 "node_modules/wrangler/node_modules/@img/sharp-win32-x64": {
4355 "version": "0.34.5",
4356 "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.34.5.tgz",
4357 "integrity": "sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==",
4358 "cpu": [
4359 "x64"
4360 ],
4361 "dev": true,
4362 "license": "Apache-2.0 AND LGPL-3.0-or-later",
4363 "optional": true,
4364 "os": [
4365 "win32"
4366 ],
4367 "engines": {
4368 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
4369 },
4370 "funding": {
4371 "url": "https://opencollective.com/libvips"
4372 }
4373 },
4374 "node_modules/wrangler/node_modules/esbuild": {
4375 "version": "0.28.1",
4376 "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.1.tgz",
4377 "integrity": "sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==",
4378 "dev": true,
4379 "hasInstallScript": true,
4380 "license": "MIT",
4381 "bin": {
4382 "esbuild": "bin/esbuild"
4383 },
4384 "engines": {
4385 "node": ">=18"
4386 },
4387 "optionalDependencies": {
4388 "@esbuild/aix-ppc64": "0.28.1",
4389 "@esbuild/android-arm": "0.28.1",
4390 "@esbuild/android-arm64": "0.28.1",
4391 "@esbuild/android-x64": "0.28.1",
4392 "@esbuild/darwin-arm64": "0.28.1",
4393 "@esbuild/darwin-x64": "0.28.1",
4394 "@esbuild/freebsd-arm64": "0.28.1",
4395 "@esbuild/freebsd-x64": "0.28.1",
4396 "@esbuild/linux-arm": "0.28.1",
4397 "@esbuild/linux-arm64": "0.28.1",
4398 "@esbuild/linux-ia32": "0.28.1",
4399 "@esbuild/linux-loong64": "0.28.1",
4400 "@esbuild/linux-mips64el": "0.28.1",
4401 "@esbuild/linux-ppc64": "0.28.1",
4402 "@esbuild/linux-riscv64": "0.28.1",
4403 "@esbuild/linux-s390x": "0.28.1",
4404 "@esbuild/linux-x64": "0.28.1",
4405 "@esbuild/netbsd-arm64": "0.28.1",
4406 "@esbuild/netbsd-x64": "0.28.1",
4407 "@esbuild/openbsd-arm64": "0.28.1",
4408 "@esbuild/openbsd-x64": "0.28.1",
4409 "@esbuild/openharmony-arm64": "0.28.1",
4410 "@esbuild/sunos-x64": "0.28.1",
4411 "@esbuild/win32-arm64": "0.28.1",
4412 "@esbuild/win32-ia32": "0.28.1",
4413 "@esbuild/win32-x64": "0.28.1"
4414 }
4415 },
4416 "node_modules/wrangler/node_modules/miniflare": {
4417 "version": "4.20260714.0",
4418 "resolved": "https://registry.npmjs.org/miniflare/-/miniflare-4.20260714.0.tgz",
4419 "integrity": "sha512-MYlTCLdWCPqvrYY2uLwOjXwmglXuiHE3TGGkbOW4BwjUPa1r07E0iuHwrNDIs/sxK21r+o90Jx58AV2KeNdJZw==",
4420 "dev": true,
4421 "license": "MIT",
4422 "dependencies": {
4423 "@cspotcode/source-map-support": "0.8.1",
4424 "sharp": "0.34.5",
4425 "undici": "7.28.0",
4426 "workerd": "1.20260714.1",
4427 "ws": "8.21.0",
4428 "youch": "4.1.0-beta.10"
4429 },
4430 "bin": {
4431 "miniflare": "bootstrap.js"
4432 },
4433 "engines": {
4434 "node": ">=22.0.0"
4435 }
4436 },
4437 "node_modules/wrangler/node_modules/sharp": {
4438 "version": "0.34.5",
4439 "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.34.5.tgz",
4440 "integrity": "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==",
4441 "dev": true,
4442 "hasInstallScript": true,
4443 "license": "Apache-2.0",
4444 "dependencies": {
4445 "@img/colour": "^1.0.0",
4446 "detect-libc": "^2.1.2",
4447 "semver": "^7.7.3"
4448 },
4449 "engines": {
4450 "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
4451 },
4452 "funding": {
4453 "url": "https://opencollective.com/libvips"
4454 },
4455 "optionalDependencies": {
4456 "@img/sharp-darwin-arm64": "0.34.5",
4457 "@img/sharp-darwin-x64": "0.34.5",
4458 "@img/sharp-libvips-darwin-arm64": "1.2.4",
4459 "@img/sharp-libvips-darwin-x64": "1.2.4",
4460 "@img/sharp-libvips-linux-arm": "1.2.4",
4461 "@img/sharp-libvips-linux-arm64": "1.2.4",
4462 "@img/sharp-libvips-linux-ppc64": "1.2.4",
4463 "@img/sharp-libvips-linux-riscv64": "1.2.4",
4464 "@img/sharp-libvips-linux-s390x": "1.2.4",
4465 "@img/sharp-libvips-linux-x64": "1.2.4",
4466 "@img/sharp-libvips-linuxmusl-arm64": "1.2.4",
4467 "@img/sharp-libvips-linuxmusl-x64": "1.2.4",
4468 "@img/sharp-linux-arm": "0.34.5",
4469 "@img/sharp-linux-arm64": "0.34.5",
4470 "@img/sharp-linux-ppc64": "0.34.5",
4471 "@img/sharp-linux-riscv64": "0.34.5",
4472 "@img/sharp-linux-s390x": "0.34.5",
4473 "@img/sharp-linux-x64": "0.34.5",
4474 "@img/sharp-linuxmusl-arm64": "0.34.5",
4475 "@img/sharp-linuxmusl-x64": "0.34.5",
4476 "@img/sharp-wasm32": "0.34.5",
4477 "@img/sharp-win32-arm64": "0.34.5",
4478 "@img/sharp-win32-ia32": "0.34.5",
4479 "@img/sharp-win32-x64": "0.34.5"
4480 }
4481 },
4482 "node_modules/wrangler/node_modules/workerd": {
4483 "version": "1.20260714.1",
4484 "resolved": "https://registry.npmjs.org/workerd/-/workerd-1.20260714.1.tgz",
4485 "integrity": "sha512-oIbQzfdyl9UQUnG6XLegcSq0Mgt/7WKDbFOoqGgOWCS+/fhyGB460uKEgdAQQ9RHCO/ttcNCX/KiMIQzdoeu3Q==",
4486 "dev": true,
4487 "hasInstallScript": true,
4488 "license": "Apache-2.0",
4489 "bin": {
4490 "workerd": "bin/workerd"
4491 },
4492 "engines": {
4493 "node": ">=16"
4494 },
4495 "optionalDependencies": {
4496 "@cloudflare/workerd-darwin-64": "1.20260714.1",
4497 "@cloudflare/workerd-darwin-arm64": "1.20260714.1",
4498 "@cloudflare/workerd-linux-64": "1.20260714.1",
4499 "@cloudflare/workerd-linux-arm64": "1.20260714.1",
4500 "@cloudflare/workerd-windows-64": "1.20260714.1"
4501 }
4502 },
4503 "node_modules/wrangler/node_modules/ws": {
4504 "version": "8.21.0",
4505 "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz",
4506 "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==",
4507 "dev": true,
4508 "license": "MIT",
4509 "engines": {
4510 "node": ">=10.0.0"
4511 },
4512 "peerDependencies": {
4513 "bufferutil": "^4.0.1",
4514 "utf-8-validate": ">=5.0.2"
4515 },
4516 "peerDependenciesMeta": {
4517 "bufferutil": {
4518 "optional": true
4519 },
4520 "utf-8-validate": {
4521 "optional": true
4522 }
4523 }
4524 },
4525 "node_modules/ws": {
4526 "version": "8.18.0",
4527 "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz",
4528 "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==",
4529 "dev": true,
4530 "license": "MIT",
4531 "engines": {
4532 "node": ">=10.0.0"
4533 },
4534 "peerDependencies": {
4535 "bufferutil": "^4.0.1",
4536 "utf-8-validate": ">=5.0.2"
4537 },
4538 "peerDependenciesMeta": {
4539 "bufferutil": {
4540 "optional": true
4541 },
4542 "utf-8-validate": {
4543 "optional": true
4544 }
4545 }
4546 },
4547 "node_modules/youch": {
4548 "version": "4.1.0-beta.10",
4549 "resolved": "https://registry.npmjs.org/youch/-/youch-4.1.0-beta.10.tgz",
4550 "integrity": "sha512-rLfVLB4FgQneDr0dv1oddCVZmKjcJ6yX6mS4pU82Mq/Dt9a3cLZQ62pDBL4AUO+uVrCvtWz3ZFUL2HFAFJ/BXQ==",
4551 "dev": true,
4552 "license": "MIT",
4553 "dependencies": {
4554 "@poppinss/colors": "^4.1.5",
4555 "@poppinss/dumper": "^0.6.4",
4556 "@speed-highlight/core": "^1.2.7",
4557 "cookie": "^1.0.2",
4558 "youch-core": "^0.3.3"
4559 }
4560 },
4561 "node_modules/youch-core": {
4562 "version": "0.3.3",
4563 "resolved": "https://registry.npmjs.org/youch-core/-/youch-core-0.3.3.tgz",
4564 "integrity": "sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA==",
4565 "dev": true,
4566 "license": "MIT",
4567 "dependencies": {
4568 "@poppinss/exception": "^1.2.2",
4569 "error-stack-parser-es": "^1.0.5"
4570 }
4571 },
4572 "node_modules/zod": {
4573 "version": "3.25.76",
4574 "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
4575 "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
4576 "dev": true,
4577 "license": "MIT",
4578 "funding": {
4579 "url": "https://github.com/sponsors/colinhacks"
4580 }
4581 }
4582 }
4583}
package.json added +26
@@ -0,0 +1,26 @@
1{
2 "name": "gh-attest",
3 "version": "0.0.1",
4 "private": true,
5 "type": "module",
6 "scripts": {
7 "dev": "wrangler dev",
8 "deploy": "wrangler deploy",
9 "types": "wrangler types",
10 "typecheck": "tsc --noEmit",
11 "test": "vitest run",
12 "db:migrate:local": "wrangler d1 migrations apply DB --local",
13 "db:migrate:remote": "wrangler d1 migrations apply DB --remote"
14 },
15 "devDependencies": {
16 "@cloudflare/vitest-pool-workers": "^0.8.0",
17 "@types/node": "^22.10.0",
18 "typescript": "^5.7.0",
19 "vitest": "^2.1.0",
20 "wrangler": "^4.0.0"
21 },
22 "dependencies": {
23 "jose": "^5.9.0",
24 "pdf-lib": "^1.17.1"
25 }
26}
src/access-review.ts added +116
@@ -0,0 +1,116 @@
1// Resources written by the access poller. Each poll writes the full current
2// set with one shared captured_at, so a captured_at value identifies a
3// coherent point-in-time snapshot to diff against.
4const ACCESS_RESOURCES = ["org_member", "team_member"] as const;
5
6export interface AccessDiffEntry {
7 resource: string;
8 subject: string;
9 change: "added" | "removed" | "changed";
10 from: string | null;
11 to: string | null;
12}
13
14export interface AccessDiff {
15 currentAt: string | null;
16 priorAt: string | null;
17 currentCount: number;
18 entries: AccessDiffEntry[];
19}
20
21interface AccessRow {
22 resource: string;
23 subject: string;
24 status: string;
25}
26
27async function fetchSet(db: D1Database, installationId: number, capturedAt: string): Promise<AccessRow[]> {
28 const { results } = await db
29 .prepare(
30 `SELECT resource, subject, status FROM snapshots
31 WHERE installation_id = ?1 AND captured_at = ?2
32 AND resource IN ('org_member', 'team_member')
33 AND subject IS NOT NULL`,
34 )
35 .bind(installationId, capturedAt)
36 .all<AccessRow>();
37 return results;
38}
39
40// Compare the most recent access snapshot against the most recent one taken
41// at or before `since`. Returns an empty diff (with timestamps) when there is
42// no baseline to compare against yet.
43export async function buildAccessDiff(
44 db: D1Database,
45 installationId: number,
46 since: string,
47): Promise<AccessDiff> {
48 const resourceList = ACCESS_RESOURCES.map((r) => `'${r}'`).join(", ");
49
50 const latest = await db
51 .prepare(
52 `SELECT MAX(captured_at) AS t FROM snapshots
53 WHERE installation_id = ?1 AND resource IN (${resourceList})`,
54 )
55 .bind(installationId)
56 .first<{ t: string | null }>();
57
58 const currentAt = latest?.t ?? null;
59 if (!currentAt) return { currentAt: null, priorAt: null, currentCount: 0, entries: [] };
60
61 // The baseline is the newest snapshot at or before `since` that is also
62 // strictly older than the current one. Without the second condition a
63 // same-day comparison would select the current snapshot as its own
64 // baseline and report no changes at all.
65 const prior = await db
66 .prepare(
67 `SELECT MAX(captured_at) AS t FROM snapshots
68 WHERE installation_id = ?1 AND resource IN (${resourceList})
69 AND captured_at <= ?2 AND captured_at < ?3`,
70 )
71 .bind(installationId, since, currentAt)
72 .first<{ t: string | null }>();
73 const priorAt = prior?.t ?? null;
74
75 const current = await fetchSet(db, installationId, currentAt);
76
77 // With no baseline there is nothing to diff. Returning the whole current
78 // set as "added" would read as though everyone had just been granted
79 // access, which is exactly the wrong thing to tell an auditor.
80 if (!priorAt) return { currentAt, priorAt: null, currentCount: current.length, entries: [] };
81
82 const priorRows = await fetchSet(db, installationId, priorAt);
83
84 const key = (r: AccessRow) => `${r.resource}|${r.subject}`;
85 const currentMap = new Map(current.map((r) => [key(r), r]));
86 const priorMap = new Map(priorRows.map((r) => [key(r), r]));
87
88 const entries: AccessDiffEntry[] = [];
89
90 for (const [k, row] of currentMap) {
91 const before = priorMap.get(k);
92 if (!before) {
93 entries.push({ resource: row.resource, subject: row.subject, change: "added", from: null, to: row.status });
94 } else if (before.status !== row.status) {
95 entries.push({
96 resource: row.resource,
97 subject: row.subject,
98 change: "changed",
99 from: before.status,
100 to: row.status,
101 });
102 }
103 }
104
105 for (const [k, row] of priorMap) {
106 if (!currentMap.has(k)) {
107 entries.push({ resource: row.resource, subject: row.subject, change: "removed", from: row.status, to: null });
108 }
109 }
110
111 entries.sort(
112 (a, b) => a.change.localeCompare(b.change) || a.resource.localeCompare(b.resource) || a.subject.localeCompare(b.subject),
113 );
114
115 return { currentAt, priorAt, currentCount: current.length, entries };
116}
src/auth.ts added +144
@@ -0,0 +1,144 @@
1import { hmacHex, timingSafeEqualHex } from "./crypto-utils";
2
3const GITHUB_AUTHORIZE_URL = "https://github.com/login/oauth/authorize";
4const GITHUB_TOKEN_URL = "https://github.com/login/oauth/access_token";
5const GITHUB_API = "https://api.github.com";
6
7export const SESSION_COOKIE = "gh_attest_session";
8export const STATE_COOKIE = "gh_attest_oauth_state";
9const SESSION_TTL_SECONDS = 60 * 60 * 12; // 12 hours
10export const STATE_TTL_SECONDS = 60 * 10; // 10 minutes
11
12export interface SessionPayload {
13 userId: number;
14 login: string;
15 /** The installation currently being viewed. */
16 installationId: number;
17 /**
18 * Every installation this user may view, captured at login. Kept inside the
19 * signed payload so switching can be authorised without re-querying GitHub
20 * and without trusting a client-supplied id. Optional so sessions issued
21 * before the switcher existed still verify.
22 */
23 installationIds?: number[];
24 exp: number;
25}
26
27export function buildAuthorizeUrl(env: Env, redirectUri: string, state: string): string {
28 const url = new URL(GITHUB_AUTHORIZE_URL);
29 url.searchParams.set("client_id", env.GITHUB_APP_CLIENT_ID);
30 url.searchParams.set("redirect_uri", redirectUri);
31 url.searchParams.set("state", state);
32 return url.toString();
33}
34
35interface GithubTokenResponse {
36 access_token?: string;
37 error?: string;
38 error_description?: string;
39}
40
41export async function exchangeCodeForToken(env: Env, code: string, redirectUri: string): Promise<string> {
42 const res = await fetch(GITHUB_TOKEN_URL, {
43 method: "POST",
44 headers: { Accept: "application/json", "Content-Type": "application/json" },
45 body: JSON.stringify({
46 client_id: env.GITHUB_APP_CLIENT_ID,
47 client_secret: env.GITHUB_APP_CLIENT_SECRET,
48 code,
49 redirect_uri: redirectUri,
50 }),
51 });
52
53 const data = (await res.json()) as GithubTokenResponse;
54 if (!res.ok || !data.access_token) {
55 throw new Error(data.error_description ?? `GitHub OAuth token exchange failed (${res.status})`);
56 }
57 return data.access_token;
58}
59
60interface GithubUser {
61 id: number;
62 login: string;
63}
64
65export async function fetchGithubUser(userAccessToken: string): Promise<GithubUser> {
66 const res = await fetch(`${GITHUB_API}/user`, {
67 headers: {
68 Authorization: `Bearer ${userAccessToken}`,
69 Accept: "application/vnd.github+json",
70 "User-Agent": "gh-attest",
71 },
72 });
73 if (!res.ok) throw new Error(`Failed to fetch GitHub user (${res.status})`);
74 return res.json();
75}
76
77interface GithubInstallationsResponse {
78 installations: Array<{ id: number }>;
79}
80
81// Installations the logged-in user themselves can see via this App —
82// scoped by GitHub to orgs/repos they actually have access to.
83export async function fetchUserInstallationIds(userAccessToken: string): Promise<number[]> {
84 const res = await fetch(`${GITHUB_API}/user/installations`, {
85 headers: {
86 Authorization: `Bearer ${userAccessToken}`,
87 Accept: "application/vnd.github+json",
88 "User-Agent": "gh-attest",
89 },
90 });
91 if (!res.ok) throw new Error(`Failed to fetch user installations (${res.status})`);
92 const data = (await res.json()) as GithubInstallationsResponse;
93 return data.installations.map((installation) => installation.id);
94}
95
96function base64UrlEncode(input: string): string {
97 return btoa(input).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
98}
99
100function base64UrlDecode(input: string): string {
101 const padded = input.replace(/-/g, "+").replace(/_/g, "/");
102 const padding = padded.length % 4 === 0 ? "" : "=".repeat(4 - (padded.length % 4));
103 return atob(padded + padding);
104}
105
106export async function signSession(payload: SessionPayload, secret: string): Promise<string> {
107 const body = base64UrlEncode(JSON.stringify(payload));
108 const signature = await hmacHex(body, secret);
109 return `${body}.${signature}`;
110}
111
112export async function verifySession(token: string, secret: string): Promise<SessionPayload | null> {
113 const [body, signature] = token.split(".");
114 if (!body || !signature) return null;
115
116 const expectedSignature = await hmacHex(body, secret);
117 if (!timingSafeEqualHex(signature, expectedSignature)) return null;
118
119 let payload: SessionPayload;
120 try {
121 payload = JSON.parse(base64UrlDecode(body)) as SessionPayload;
122 } catch {
123 return null;
124 }
125
126 if (payload.exp < Math.floor(Date.now() / 1000)) return null;
127 return payload;
128}
129
130export function newSessionPayload(
131 user: GithubUser,
132 installationId: number,
133 installationIds: number[],
134): SessionPayload {
135 return {
136 userId: user.id,
137 login: user.login,
138 installationId,
139 installationIds,
140 exp: Math.floor(Date.now() / 1000) + SESSION_TTL_SECONDS,
141 };
142}
143
144export { SESSION_TTL_SECONDS };
src/cookies.ts added +22
@@ -0,0 +1,22 @@
1export function parseCookies(request: Request): Record<string, string> {
2 const header = request.headers.get("Cookie");
3 if (!header) return {};
4
5 const out: Record<string, string> = {};
6 for (const part of header.split(";")) {
7 const separatorIndex = part.indexOf("=");
8 if (separatorIndex === -1) continue;
9 const key = part.slice(0, separatorIndex).trim();
10 const value = part.slice(separatorIndex + 1).trim();
11 if (key) out[key] = decodeURIComponent(value);
12 }
13 return out;
14}
15
16export function setCookieHeader(name: string, value: string, maxAgeSeconds: number): string {
17 return `${name}=${encodeURIComponent(value)}; Path=/; HttpOnly; Secure; SameSite=Lax; Max-Age=${maxAgeSeconds}`;
18}
19
20export function clearCookieHeader(name: string): string {
21 return `${name}=; Path=/; HttpOnly; Secure; SameSite=Lax; Max-Age=0`;
22}
src/crypto-utils.ts added +32
@@ -0,0 +1,32 @@
1export function hexToBytes(hex: string): Uint8Array {
2 const bytes = new Uint8Array(hex.length / 2);
3 for (let i = 0; i < bytes.length; i++) {
4 bytes[i] = parseInt(hex.substring(i * 2, i * 2 + 2), 16);
5 }
6 return bytes;
7}
8
9export function bytesToHex(bytes: Uint8Array): string {
10 return Array.from(bytes)
11 .map((b) => b.toString(16).padStart(2, "0"))
12 .join("");
13}
14
15export async function hmacHex(data: string, secret: string): Promise<string> {
16 const key = await crypto.subtle.importKey(
17 "raw",
18 new TextEncoder().encode(secret),
19 { name: "HMAC", hash: "SHA-256" },
20 false,
21 ["sign"],
22 );
23 const signature = await crypto.subtle.sign("HMAC", key, new TextEncoder().encode(data));
24 return bytesToHex(new Uint8Array(signature));
25}
26
27// crypto.subtle.timingSafeEqual throws on mismatched-length inputs rather
28// than returning false, so length is checked explicitly first.
29export function timingSafeEqualHex(a: string, b: string): boolean {
30 if (a.length !== b.length) return false;
31 return crypto.subtle.timingSafeEqual(hexToBytes(a), hexToBytes(b));
32}
src/dashboard.ts added +294
@@ -0,0 +1,294 @@
1import type { EvidenceRow, Framework } from "./exporter";
2
3export interface ExportListRow {
4 id: string;
5 framework: string;
6 format: string;
7 status: string;
8 created_at: string;
9}
10
11export interface InstallationOption {
12 installation_id: number;
13 org_login: string;
14}
15
16// Shown only when the user can see more than one installation; a single-org
17// user gets the plain org name instead of a pointless dropdown.
18function installationSwitcher(
19 installations: InstallationOption[],
20 current: number,
21 returnTo: "dashboard" | "access-review",
22): string {
23 if (installations.length < 2) return "";
24 const options = installations
25 .map(
26 (i) =>
27 `<option value="${esc(i.installation_id)}"${i.installation_id === current ? " selected" : ""}>${esc(
28 i.org_login,
29 )}</option>`,
30 )
31 .join("");
32 return `<form method="post" action="/switch" class="switcher">
33 <input type="hidden" name="return" value="${esc(returnTo)}">
34 <select name="installationId" onchange="this.form.submit()">${options}</select>
35 <noscript><button type="submit">Switch</button></noscript>
36 </form>`;
37}
38
39export interface DashboardData {
40 login: string;
41 installationId: number;
42 orgLogin: string;
43 installations: InstallationOption[];
44 framework: Framework;
45 rows: EvidenceRow[];
46 exports: ExportListRow[];
47 lastPolledAt: string | null;
48}
49
50function esc(value: unknown): string {
51 return String(value ?? "").replace(/[&<>"']/g, (c) => {
52 switch (c) {
53 case "&": return "&amp;";
54 case "<": return "&lt;";
55 case ">": return "&gt;";
56 case '"': return "&quot;";
57 default: return "&#39;";
58 }
59 });
60}
61
62const STYLE = `
63 :root { color-scheme: light; }
64 * { box-sizing: border-box; }
65 body { margin: 0; font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
66 color: #1a1a1a; background: #f6f7f9; }
67 header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
68 padding: 1rem 1.5rem; background: #fff; border-bottom: 1px solid #e2e5e9; flex-wrap: wrap; }
69 header h1 { font-size: 1.05rem; margin: 0; }
70 header .who { color: #666; font-size: 0.85rem; }
71 header .who a { color: #0055dc; margin-left: 0.75rem; }
72 main { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
73 .cards { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
74 .card { flex: 1 1 120px; background: #fff; border: 1px solid #e2e5e9; border-radius: 8px; padding: 0.9rem 1rem; }
75 .card .n { font-size: 1.6rem; font-weight: 600; }
76 .card .l { color: #666; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
77 .n.positive { color: #1a8039; } .n.negative { color: #b32626; } .n.informational { color: #666; }
78 .bar { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
79 .bar .filters a { margin-right: 0.5rem; text-decoration: none; color: #0055dc; padding: 0.2rem 0.5rem; border-radius: 5px; }
80 .bar .filters a.active { background: #0055dc; color: #fff; }
81 form { display: inline-flex; gap: 0.4rem; align-items: center; margin: 0; }
82 input, select, button { font: inherit; padding: 0.35rem 0.6rem; border: 1px solid #c9ced6; border-radius: 6px; background: #fff; }
83 button { cursor: pointer; background: #0055dc; color: #fff; border-color: #0055dc; }
84 button.secondary { background: #fff; color: #1a1a1a; }
85 table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e2e5e9; border-radius: 8px; overflow: hidden; }
86 th, td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid #eef0f3; font-size: 0.85rem; }
87 th { background: #fafbfc; font-weight: 600; color: #444; }
88 tr:last-child td { border-bottom: none; }
89 .posture { font-weight: 600; }
90 .posture.positive { color: #1a8039; } .posture.negative { color: #b32626; } .posture.informational { color: #888; }
91 .section-title { font-size: 1rem; margin: 2rem 0 0.75rem; }
92 .muted { color: #888; }
93 code { background: #eef0f3; padding: 0.1rem 0.3rem; border-radius: 4px; font-size: 0.85em; }
94`;
95
96export function renderDashboard(data: DashboardData): string {
97 const counts = { positive: 0, negative: 0, informational: 0 };
98 const repos = new Set<string>();
99 for (const r of data.rows) {
100 counts[r.posture as keyof typeof counts] = (counts[r.posture as keyof typeof counts] ?? 0) + 1;
101 if (r.repo) repos.add(r.repo);
102 }
103
104 const frameworkTab = (value: Framework, label: string) =>
105 `<a href="/?framework=${value}" class="${data.framework === value ? "active" : ""}">${label}</a>`;
106
107 const evidenceRows = data.rows
108 .map(
109 (r) => `<tr>
110 <td>${esc(r.framework)}</td>
111 <td>${esc(r.control_id)}</td>
112 <td class="posture ${esc(r.posture)}">${esc(r.posture)}</td>
113 <td>${esc(r.repo ?? r.subject ?? "—")}</td>
114 <td>${esc(r.resource)}</td>
115 <td>${esc(r.status)}</td>
116 </tr>`,
117 )
118 .join("");
119
120 const exportRows = data.exports
121 .map((e) => {
122 const done = e.status === "done";
123 const cell = done
124 ? `<a href="/exports/${esc(e.id)}/download">Download ${esc(e.format.toUpperCase())}</a>`
125 : `<span class="muted" data-export-id="${esc(e.id)}">${esc(e.status)}…</span>`;
126 return `<tr>
127 <td>${esc(e.created_at)}</td>
128 <td>${esc(e.framework)}</td>
129 <td>${esc(e.format.toUpperCase())}</td>
130 <td class="export-status">${cell}</td>
131 </tr>`;
132 })
133 .join("");
134
135 return `<!doctype html>
136<html lang="en">
137<head>
138 <meta charset="utf-8">
139 <meta name="viewport" content="width=device-width, initial-scale=1">
140 <title>gh-attest — Compliance Evidence</title>
141 <style>${STYLE}</style>
142</head>
143<body>
144 <header>
145 <h1>gh-attest — Compliance Evidence</h1>
146 <div class="who">${esc(data.login)} ·
147 ${installationSwitcher(data.installations, data.installationId, "dashboard") || esc(data.orgLogin)}
148 <a href="/access-review">Access review</a><a href="/logout">Log out</a></div>
149 </header>
150 <main>
151 <div class="cards">
152 <div class="card"><div class="n negative">${counts.negative}</div><div class="l">Gaps</div></div>
153 <div class="card"><div class="n positive">${counts.positive}</div><div class="l">Satisfied</div></div>
154 <div class="card"><div class="n informational">${counts.informational}</div><div class="l">Informational</div></div>
155 <div class="card"><div class="n">${repos.size}</div><div class="l">Repositories</div></div>
156 </div>
157
158 <div class="bar">
159 <div class="filters">
160 ${frameworkTab("all", "All")}
161 ${frameworkTab("soc2", "SOC 2")}
162 ${frameworkTab("iso27001", "ISO 27001")}
163 </div>
164 <form method="post" action="/resync">
165 <button class="secondary" type="submit">Re-sync now</button>
166 </form>
167 <form method="post" action="/exports">
168 <input type="hidden" name="framework" value="${esc(data.framework)}">
169 <select name="format">
170 <option value="csv">CSV</option>
171 <option value="pdf">PDF</option>
172 </select>
173 <button type="submit">Generate export</button>
174 </form>
175 </div>
176
177 <p class="muted">${
178 data.lastPolledAt ? `Last synced ${esc(data.lastPolledAt)}` : "Not yet synced — click Re-sync now."
179 }</p>
180
181 <table>
182 <thead><tr><th>Framework</th><th>Control</th><th>Posture</th><th>Repo / Subject</th><th>Resource</th><th>Status</th></tr></thead>
183 <tbody>${evidenceRows || `<tr><td colspan="6" class="muted">No evidence yet.</td></tr>`}</tbody>
184 </table>
185
186 <h2 class="section-title">Recent exports</h2>
187 <table>
188 <thead><tr><th>Created</th><th>Framework</th><th>Format</th><th>File</th></tr></thead>
189 <tbody>${exportRows || `<tr><td colspan="4" class="muted">No exports yet.</td></tr>`}</tbody>
190 </table>
191 </main>
192
193 <script>
194 // Poll any pending exports and swap in the download link when ready.
195 for (const el of document.querySelectorAll("[data-export-id]")) {
196 const id = el.getAttribute("data-export-id");
197 const tick = async () => {
198 const r = await fetch("/exports/" + id, { headers: { accept: "application/json" } });
199 if (!r.ok) return;
200 const job = await r.json();
201 if (job.status === "done") {
202 el.closest(".export-status").innerHTML =
203 '<a href="/exports/' + id + '/download">Download ' + String(job.format).toUpperCase() + "</a>";
204 } else if (job.status === "error") {
205 el.textContent = "error";
206 } else {
207 setTimeout(tick, 3000);
208 }
209 };
210 setTimeout(tick, 3000);
211 }
212 </script>
213</body>
214</html>`;
215}
216
217export interface AccessReviewData {
218 login: string;
219 installationId: number;
220 orgLogin: string;
221 installations: InstallationOption[];
222 since: string;
223 diff: import("./access-review").AccessDiff;
224}
225
226const CHANGE_CLASS: Record<string, string> = {
227 added: "negative", // new access is what an access review scrutinises
228 removed: "positive",
229 changed: "informational",
230};
231
232export function renderAccessReview(data: AccessReviewData): string {
233 const { diff } = data;
234
235 const rows = diff.entries
236 .map(
237 (e) => `<tr>
238 <td class="posture ${esc(CHANGE_CLASS[e.change] ?? "informational")}">${esc(e.change)}</td>
239 <td>${esc(e.resource === "org_member" ? "org member" : "team member")}</td>
240 <td>${esc(e.subject)}</td>
241 <td>${esc(e.from ?? "—")}</td>
242 <td>${esc(e.to ?? "—")}</td>
243 </tr>`,
244 )
245 .join("");
246
247 let banner: string;
248 if (!diff.currentAt) {
249 banner = `<p class="muted">No access data collected yet. Access review requires the App to be
250 installed on an <strong>organization</strong> (personal accounts have no membership to review),
251 and at least one sync to have run.</p>`;
252 } else if (!diff.priorAt) {
253 banner = `<p class="muted">Baseline captured ${esc(diff.currentAt)} (${diff.currentCount} access
254 entries). No earlier snapshot before ${esc(data.since)} to compare against yet — the next sync
255 after that date will produce a diff.</p>`;
256 } else {
257 banner = `<p class="muted">Comparing ${esc(diff.priorAt)} → ${esc(diff.currentAt)} ·
258 ${diff.currentCount} current access entries · ${diff.entries.length} change(s).</p>`;
259 }
260
261 return `<!doctype html>
262<html lang="en">
263<head>
264 <meta charset="utf-8">
265 <meta name="viewport" content="width=device-width, initial-scale=1">
266 <title>gh-attest — Access Review</title>
267 <style>${STYLE}</style>
268</head>
269<body>
270 <header>
271 <h1>gh-attest — Access Review</h1>
272 <div class="who">${esc(data.login)} ·
273 ${installationSwitcher(data.installations, data.installationId, "access-review") || esc(data.orgLogin)}
274 <a href="/">Dashboard</a><a href="/logout">Log out</a></div>
275 </header>
276 <main>
277 <div class="bar">
278 <form method="get" action="/access-review">
279 <label for="since">Compare against</label>
280 <input id="since" type="date" name="since" value="${esc(data.since.slice(0, 10))}">
281 <button type="submit">Update</button>
282 </form>
283 </div>
284
285 ${banner}
286
287 <table>
288 <thead><tr><th>Change</th><th>Type</th><th>Subject</th><th>Was</th><th>Now</th></tr></thead>
289 <tbody>${rows || `<tr><td colspan="5" class="muted">No membership changes in this window.</td></tr>`}</tbody>
290 </table>
291 </main>
292</body>
293</html>`;
294}
src/exporter.ts added +192
@@ -0,0 +1,192 @@
1import { PDFDocument, StandardFonts, rgb, type PDFFont, type PDFPage } from "pdf-lib";
2
3export type Framework = "soc2" | "iso27001" | "all";
4export type ExportFormat = "csv" | "pdf";
5
6export interface EvidenceRow {
7 repo: string | null;
8 // Org-scoped facts (access review) identify a person or team here rather
9 // than a repository.
10 subject: string | null;
11 resource: string;
12 status: string;
13 framework: string;
14 control_id: string;
15 posture: string;
16 rationale: string;
17 captured_at: string;
18}
19
20// Current posture = the latest snapshot per (repo, resource) for this
21// installation, joined to the control mapping table. snapshots is
22// append-only, so "latest row wins" gives point-in-time current state.
23// Rows whose resource/status pair has no mapping (e.g. "unavailable", or
24// raw push/installation events) simply don't appear — no evidence either way.
25export async function buildEvidenceRows(
26 db: D1Database,
27 installationId: number,
28 framework: Framework,
29): Promise<EvidenceRow[]> {
30 const { results } = await db
31 .prepare(
32 `WITH access_latest AS (
33 SELECT MAX(captured_at) AS t FROM snapshots
34 WHERE installation_id = ?1 AND resource IN ('org_member', 'team_member')
35 ),
36 latest AS (
37 SELECT repo, subject, resource, status, captured_at,
38 ROW_NUMBER() OVER (
39 PARTITION BY repo, subject, resource
40 ORDER BY captured_at DESC, id DESC
41 ) AS rn
42 FROM snapshots
43 WHERE installation_id = ?1
44 )
45 SELECT l.repo, l.subject, l.resource, l.status, cm.framework, cm.control_id,
46 cm.posture, cm.rationale, l.captured_at
47 FROM latest l
48 JOIN control_mappings cm
49 ON cm.resource = l.resource
50 AND (cm.status IS NULL OR cm.status = l.status)
51 WHERE l.rn = 1
52 AND (?2 = 'all' OR cm.framework = ?2)
53 -- Access facts are a full set per poll: a member who lost access has
54 -- no newer row, so "latest row per subject" would keep attesting
55 -- their access forever. Only the most recent poll batch counts.
56 AND (
57 l.resource NOT IN ('org_member', 'team_member')
58 OR l.captured_at = (SELECT t FROM access_latest)
59 )
60 ORDER BY cm.framework, cm.control_id, l.repo`,
61 )
62 .bind(installationId, framework)
63 .all<EvidenceRow>();
64
65 return results;
66}
67
68const CSV_COLUMNS: Array<keyof EvidenceRow> = [
69 "framework",
70 "control_id",
71 "posture",
72 "repo",
73 "subject",
74 "resource",
75 "status",
76 "rationale",
77 "captured_at",
78];
79
80export function renderCsv(rows: EvidenceRow[]): string {
81 const lines = [CSV_COLUMNS.map(csvEscape).join(",")];
82 for (const row of rows) {
83 lines.push(CSV_COLUMNS.map((col) => csvEscape(row[col] ?? "")).join(","));
84 }
85 // CRLF line endings — RFC 4180, and what spreadsheet apps expect.
86 return lines.join("\r\n") + "\r\n";
87}
88
89function csvEscape(value: string | number): string {
90 const str = String(value);
91 if (/[",\r\n]/.test(str)) {
92 return `"${str.replace(/"/g, '""')}"`;
93 }
94 return str;
95}
96
97export interface ExportMeta {
98 framework: Framework;
99 installationId: number;
100 generatedAt: string;
101}
102
103interface Column {
104 header: string;
105 key: keyof EvidenceRow;
106 width: number;
107}
108
109const PDF_COLUMNS: Column[] = [
110 { header: "Control", key: "control_id", width: 60 },
111 { header: "Posture", key: "posture", width: 75 },
112 { header: "Repo / Subject", key: "repo", width: 175 },
113 { header: "Resource", key: "resource", width: 110 },
114 { header: "Status", key: "status", width: 82 },
115];
116
117const PAGE = { width: 612, height: 792, margin: 50 };
118const ROW_HEIGHT = 15;
119const FONT_SIZE = 8;
120
121const POSTURE_COLOR: Record<string, ReturnType<typeof rgb>> = {
122 positive: rgb(0.1, 0.5, 0.2),
123 negative: rgb(0.7, 0.15, 0.15),
124 informational: rgb(0.4, 0.4, 0.4),
125};
126
127export async function renderPdf(rows: EvidenceRow[], meta: ExportMeta): Promise<Uint8Array> {
128 const doc = await PDFDocument.create();
129 const font = await doc.embedFont(StandardFonts.Helvetica);
130 const bold = await doc.embedFont(StandardFonts.HelveticaBold);
131
132 const frameworkLabel = meta.framework === "all" ? "SOC 2 + ISO 27001" : meta.framework.toUpperCase();
133 let page = doc.addPage([PAGE.width, PAGE.height]);
134 let y = PAGE.height - PAGE.margin;
135
136 // Title block.
137 page.drawText("Compliance Evidence", { x: PAGE.margin, y, size: 18, font: bold });
138 y -= 22;
139 page.drawText(
140 `${frameworkLabel} · Installation ${meta.installationId} · Generated ${meta.generatedAt} · ${rows.length} findings`,
141 { x: PAGE.margin, y, size: 9, font, color: rgb(0.35, 0.35, 0.35) },
142 );
143 y -= 24;
144
145 y = drawHeader(page, bold, y);
146
147 for (const row of rows) {
148 if (y < PAGE.margin + ROW_HEIGHT) {
149 page = doc.addPage([PAGE.width, PAGE.height]);
150 y = PAGE.height - PAGE.margin;
151 y = drawHeader(page, bold, y);
152 }
153 let x = PAGE.margin;
154 for (const col of PDF_COLUMNS) {
155 // The repo column doubles as the scope column: org-level access facts
156 // carry a subject (member/team) instead of a repository.
157 const raw = col.key === "repo" ? String(row.repo ?? row.subject ?? "") : String(row[col.key] ?? "");
158 const text = truncate(raw, font, FONT_SIZE, col.width - 4);
159 const color = col.key === "posture" ? POSTURE_COLOR[row.posture] ?? rgb(0, 0, 0) : rgb(0.1, 0.1, 0.1);
160 page.drawText(text, { x, y, size: FONT_SIZE, font, color });
161 x += col.width;
162 }
163 y -= ROW_HEIGHT;
164 }
165
166 return doc.save();
167}
168
169function drawHeader(page: PDFPage, bold: PDFFont, y: number): number {
170 let x = PAGE.margin;
171 for (const col of PDF_COLUMNS) {
172 page.drawText(col.header, { x, y, size: FONT_SIZE, font: bold });
173 x += col.width;
174 }
175 const lineY = y - 4;
176 page.drawLine({
177 start: { x: PAGE.margin, y: lineY },
178 end: { x: PAGE.width - PAGE.margin, y: lineY },
179 thickness: 0.5,
180 color: rgb(0.6, 0.6, 0.6),
181 });
182 return y - ROW_HEIGHT;
183}
184
185function truncate(text: string, font: PDFFont, size: number, maxWidth: number): string {
186 if (font.widthOfTextAtSize(text, size) <= maxWidth) return text;
187 let truncated = text;
188 while (truncated.length > 1 && font.widthOfTextAtSize(truncated + "…", size) > maxWidth) {
189 truncated = truncated.slice(0, -1);
190 }
191 return truncated + "…";
192}
src/github-app.ts added +68
@@ -0,0 +1,68 @@
1import { SignJWT, importPKCS8 } from "jose";
2
3const GITHUB_API = "https://api.github.com";
4
5// GitHub issues App private keys as PKCS#1 ("BEGIN RSA PRIVATE KEY"), but
6// jose/WebCrypto only import PKCS#8. PKCS#8 is the PKCS#1 DER wrapped in a
7// PrivateKeyInfo envelope (version + rsaEncryption AlgorithmIdentifier), so
8// wrap it ourselves rather than making every installer openssl-convert the
9// key they downloaded.
10function pkcs1PemToPkcs8Pem(pem: string): string {
11 const base64 = pem.replace(/-----(BEGIN|END) RSA PRIVATE KEY-----/g, "").replace(/\s/g, "");
12 const pkcs1 = Uint8Array.from(atob(base64), (c) => c.charCodeAt(0));
13
14 const derLength = (length: number): number[] => {
15 if (length < 0x80) return [length];
16 const bytes: number[] = [];
17 for (let remaining = length; remaining > 0; remaining >>= 8) bytes.unshift(remaining & 0xff);
18 return [0x80 | bytes.length, ...bytes];
19 };
20
21 const version = [0x02, 0x01, 0x00];
22 const rsaEncryptionAlgId = [
23 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01, 0x05, 0x00,
24 ];
25 const octetString = [0x04, ...derLength(pkcs1.length)];
26 const contentLength = version.length + rsaEncryptionAlgId.length + octetString.length + pkcs1.length;
27 const pkcs8 = new Uint8Array([
28 0x30, ...derLength(contentLength),
29 ...version, ...rsaEncryptionAlgId, ...octetString, ...pkcs1,
30 ]);
31
32 let binary = "";
33 for (const byte of pkcs8) binary += String.fromCharCode(byte);
34 return `-----BEGIN PRIVATE KEY-----\n${btoa(binary)}\n-----END PRIVATE KEY-----`;
35}
36
37export async function createAppJwt(appId: string, privateKeyPem: string): Promise<string> {
38 const pem = privateKeyPem.includes("BEGIN RSA PRIVATE KEY")
39 ? pkcs1PemToPkcs8Pem(privateKeyPem)
40 : privateKeyPem;
41 const privateKey = await importPKCS8(pem, "RS256");
42 const now = Math.floor(Date.now() / 1000);
43
44 return new SignJWT({})
45 .setProtectedHeader({ alg: "RS256" })
46 .setIssuedAt(now - 60) // GitHub allows up to 60s of clock drift
47 .setExpirationTime(now + 600) // max 10 minutes
48 .setIssuer(appId)
49 .sign(privateKey);
50}
51
52export async function getInstallationToken(appJwt: string, installationId: number): Promise<string> {
53 const res = await fetch(`${GITHUB_API}/app/installations/${installationId}/access_tokens`, {
54 method: "POST",
55 headers: {
56 Authorization: `Bearer ${appJwt}`,
57 Accept: "application/vnd.github+json",
58 "User-Agent": "gh-attest",
59 },
60 });
61
62 if (!res.ok) {
63 throw new Error(`Failed to mint installation token for ${installationId} (${res.status})`);
64 }
65
66 const data = (await res.json()) as { token: string };
67 return data.token;
68}
src/index.ts added +849
@@ -0,0 +1,849 @@
1import { verifySignature, extractFact, extractRepoFullName, extractInstallationId } from "./webhook";
2import {
3 buildAuthorizeUrl,
4 exchangeCodeForToken,
5 fetchGithubUser,
6 fetchUserInstallationIds,
7 newSessionPayload,
8 signSession,
9 verifySession,
10 SESSION_COOKIE,
11 SESSION_TTL_SECONDS,
12 STATE_COOKIE,
13 STATE_TTL_SECONDS,
14 type SessionPayload,
15} from "./auth";
16import { parseCookies, setCookieHeader, clearCookieHeader } from "./cookies";
17import { createAppJwt, getInstallationToken } from "./github-app";
18import { listInstallationRepos, pollRepoProtection, pollOrgAccess } from "./poller";
19import { buildEvidenceRows, renderCsv, renderPdf, type Framework, type ExportFormat } from "./exporter";
20import {
21 renderDashboard,
22 renderAccessReview,
23 type ExportListRow,
24 type InstallationOption,
25} from "./dashboard";
26import { buildAccessDiff } from "./access-review";
27
28interface ExportJob {
29 jobId: string;
30 installationId: number;
31 framework: Framework;
32 format: ExportFormat;
33}
34
35const CONTENT_TYPE: Record<ExportFormat, string> = {
36 csv: "text/csv; charset=utf-8",
37 pdf: "application/pdf",
38};
39
40// Retention windows. Source of truth for retention; PRIVACY.md states the
41// same periods, so the two must be changed together.
42const SNAPSHOT_RETENTION_DAYS = 396; // ~13 months: an annual audit period + buffer
43const EXPORT_RETENTION_DAYS = 90;
44
45export default {
46 async fetch(request: Request, env: Env): Promise<Response> {
47 const url = new URL(request.url);
48
49 if (request.method === "POST" && url.pathname === "/webhooks/github") {
50 return handleWebhook(request, env);
51 }
52 if (request.method === "POST" && url.pathname === "/webhooks/marketplace") {
53 return handleMarketplaceWebhook(request, env);
54 }
55 if (request.method === "GET" && url.pathname === "/login") {
56 return handleLogin(request, env);
57 }
58 if (request.method === "GET" && url.pathname === "/callback") {
59 return handleCallback(request, env);
60 }
61 if (request.method === "GET" && url.pathname === "/logout") {
62 return handleLogout();
63 }
64 if (request.method === "POST" && url.pathname === "/admin/poll") {
65 return handleAdminPoll(request, env);
66 }
67 if (request.method === "POST" && url.pathname === "/admin/export") {
68 return handleAdminExport(request, env);
69 }
70 if (request.method === "POST" && url.pathname === "/admin/cleanup") {
71 return handleAdminCleanup(request, env);
72 }
73 if (request.method === "POST" && url.pathname === "/admin/purge") {
74 return handleAdminPurge(request, env);
75 }
76 const adminExportMatch = url.pathname.match(/^\/admin\/export\/([0-9a-f-]+)(\/download)?$/);
77 if (request.method === "GET" && adminExportMatch) {
78 const [, jobId, downloadSuffix] = adminExportMatch;
79 if (jobId) return handleAdminExportGet(request, env, jobId, downloadSuffix === "/download");
80 }
81 // Dashboard (session-authed) surfaces.
82 if (request.method === "POST" && url.pathname === "/resync") {
83 return handleResync(request, env);
84 }
85 if (request.method === "POST" && url.pathname === "/exports") {
86 return handleCreateExport(request, env);
87 }
88 if (request.method === "POST" && url.pathname === "/switch") {
89 return handleSwitchInstallation(request, env);
90 }
91 const exportMatch = url.pathname.match(/^\/exports\/([0-9a-f-]+)(\/download)?$/);
92 if (request.method === "GET" && exportMatch) {
93 const [, jobId, downloadSuffix] = exportMatch;
94 if (jobId) return handleSessionExportGet(request, env, jobId, downloadSuffix === "/download");
95 }
96 if (request.method === "GET" && url.pathname === "/access-review") {
97 return handleAccessReview(request, env);
98 }
99 if (request.method === "GET" && url.pathname === "/") {
100 return handleDashboard(request, env);
101 }
102
103 return new Response("Not found", { status: 404 });
104 },
105
106 async scheduled(_controller: ScheduledController, env: Env, ctx: ExecutionContext): Promise<void> {
107 ctx.waitUntil(
108 Promise.all([pollAllInstallations(env), runRetentionCleanup(env)]).then(() => undefined),
109 );
110 },
111
112 async queue(batch: MessageBatch<ExportJob>, env: Env): Promise<void> {
113 for (const message of batch.messages) {
114 try {
115 await renderExport(env, message.body);
116 message.ack();
117 } catch (err) {
118 const job = message.body;
119 console.error(`Export ${job.jobId} failed:`, err);
120 try {
121 await env.DB.prepare(
122 "UPDATE exports SET status = 'error', error = ?1, completed_at = ?2 WHERE id = ?3",
123 )
124 .bind((err as Error).message, new Date().toISOString(), job.jobId)
125 .run();
126 } catch (recordErr) {
127 // Recording the failure must not stop the ack below, or a
128 // deterministic render error would be retried to the DLQ limit.
129 console.error(`Could not record export failure for ${job.jobId}:`, recordErr);
130 }
131 // Rendering failure is deterministic (bad data / bug), not transient —
132 // don't retry, the error is recorded for the operator.
133 message.ack();
134 }
135 }
136 },
137} satisfies ExportedHandler<Env, ExportJob>;
138
139async function renderExport(env: Env, job: ExportJob): Promise<void> {
140 await env.DB.prepare("UPDATE exports SET status = 'processing' WHERE id = ?1").bind(job.jobId).run();
141
142 const rows = await buildEvidenceRows(env.DB, job.installationId, job.framework);
143 const body =
144 job.format === "pdf"
145 ? await renderPdf(rows, {
146 framework: job.framework,
147 installationId: job.installationId,
148 generatedAt: new Date().toISOString(),
149 })
150 : renderCsv(rows);
151 const r2Key = `exports/${job.installationId}/${job.jobId}.${job.format}`;
152
153 await env.EXPORTS.put(r2Key, body, {
154 httpMetadata: { contentType: CONTENT_TYPE[job.format] },
155 });
156
157 await env.DB.prepare(
158 "UPDATE exports SET status = 'done', r2_key = ?1, completed_at = ?2 WHERE id = ?3",
159 )
160 .bind(r2Key, new Date().toISOString(), job.jobId)
161 .run();
162}
163
164// Timing-safe bearer check against ADMIN_TOKEN. Returns true if authorized.
165function checkAdminAuth(request: Request, env: Env): boolean {
166 const auth = request.headers.get("Authorization");
167 const encoder = new TextEncoder();
168 const provided = encoder.encode(auth ?? "");
169 const want = encoder.encode(`Bearer ${env.ADMIN_TOKEN}`);
170 return provided.length === want.length && crypto.subtle.timingSafeEqual(provided, want);
171}
172
173interface PollSummary {
174 installationsPolled: number;
175 written: Array<{ installationId: number; repo: string; resource: string; status: string }>;
176 errors: string[];
177}
178
179// Baseline/drift poll for branch protection + ruleset state, since webhooks
180// only fire on changes — a repo protected before the App was installed
181// would otherwise never show up. Sequential per repo/installation is fine
182// at test-org scale; a large multi-org install would need to fan this out
183// through a Queue instead of looping inline in one scheduled invocation.
184async function pollAllInstallations(env: Env): Promise<PollSummary> {
185 const { results: installations } = await env.DB.prepare(
186 "SELECT installation_id FROM installations WHERE suspended_at IS NULL",
187 ).all<{ installation_id: number }>();
188
189 const summary: PollSummary = { installationsPolled: installations.length, written: [], errors: [] };
190
191 for (const { installation_id } of installations) {
192 try {
193 await pollInstallation(env, installation_id, summary);
194 } catch (err) {
195 const msg = `Poll failed for installation ${installation_id}: ${(err as Error).message}`;
196 console.error(msg);
197 summary.errors.push(msg);
198 }
199 }
200
201 return summary;
202}
203
204async function pollInstallation(env: Env, installationId: number, summary: PollSummary): Promise<void> {
205 const appJwt = await createAppJwt(env.GITHUB_APP_ID, env.GITHUB_APP_PRIVATE_KEY);
206 const installationToken = await getInstallationToken(appJwt, installationId);
207 const repos = await listInstallationRepos(installationToken);
208 const capturedAt = new Date().toISOString();
209
210 for (const repo of repos) {
211 // Per-repo isolation: one failing repo must not abort the rest of the
212 // installation's poll.
213 try {
214 const facts = await pollRepoProtection(installationToken, repo);
215 for (const fact of facts) {
216 await env.DB.prepare(
217 `INSERT INTO snapshots (installation_id, repo, resource, status, raw_payload, captured_at)
218 VALUES (?1, ?2, ?3, ?4, ?5, ?6)`,
219 )
220 .bind(installationId, fact.repo, fact.resource, fact.status, fact.rawPayload, capturedAt)
221 .run();
222 summary.written.push({ installationId, repo: fact.repo, resource: fact.resource, status: fact.status });
223 }
224 } catch (err) {
225 const msg = `Poll failed for repo ${repo.fullName}: ${(err as Error).message}`;
226 console.error(msg);
227 summary.errors.push(msg);
228 }
229 }
230
231 await pollAccess(env, installationId, installationToken, capturedAt, summary);
232}
233
234// Org membership + team membership, for the access-review diff. Isolated from
235// the repo poll so a failure here doesn't lose the posture data above.
236async function pollAccess(
237 env: Env,
238 installationId: number,
239 installationToken: string,
240 capturedAt: string,
241 summary: PollSummary,
242): Promise<void> {
243 try {
244 const orgRow = await env.DB.prepare("SELECT org_login FROM installations WHERE installation_id = ?1")
245 .bind(installationId)
246 .first<{ org_login: string }>();
247 if (!orgRow?.org_login) return;
248
249 const facts = await pollOrgAccess(installationToken, orgRow.org_login);
250 if (facts === null) {
251 // Installed on a personal account, not an org — no membership to review.
252 return;
253 }
254
255 for (const fact of facts) {
256 await env.DB.prepare(
257 `INSERT INTO snapshots (installation_id, repo, resource, status, raw_payload, captured_at, subject)
258 VALUES (?1, NULL, ?2, ?3, NULL, ?4, ?5)`,
259 )
260 .bind(installationId, fact.resource, fact.status, capturedAt, fact.subject)
261 .run();
262 summary.written.push({
263 installationId,
264 repo: fact.subject,
265 resource: fact.resource,
266 status: fact.status,
267 });
268 }
269 } catch (err) {
270 const msg = `Access poll failed for installation ${installationId}: ${(err as Error).message}`;
271 console.error(msg);
272 summary.errors.push(msg);
273 }
274}
275
276// Manual on-demand poll — same work as the scheduled handler, but callable
277// via HTTP so an operator (or eventually a dashboard "re-sync now" button)
278// can trigger it without waiting for the cron. Bearer-token guarded.
279async function handleAdminPoll(request: Request, env: Env): Promise<Response> {
280 if (!checkAdminAuth(request, env)) return new Response("Unauthorized", { status: 401 });
281 const summary = await pollAllInstallations(env);
282 return Response.json(summary);
283}
284
285// Enqueue an evidence export. Returns the job id; rendering happens off the
286// request path in the queue consumer (PDF/large CSV can exceed request CPU).
287async function handleAdminExport(request: Request, env: Env): Promise<Response> {
288 if (!checkAdminAuth(request, env)) return new Response("Unauthorized", { status: 401 });
289
290 const params = (await request.json().catch(() => ({}))) as {
291 installationId?: number;
292 framework?: string;
293 format?: string;
294 };
295 const framework = normalizeFramework(params.framework);
296 if (!framework) {
297 return new Response("framework must be soc2, iso27001, or all", { status: 400 });
298 }
299 const format = params.format ?? "csv";
300 if (format !== "csv" && format !== "pdf") {
301 return new Response("format must be csv or pdf", { status: 400 });
302 }
303
304 const installIds = params.installationId
305 ? [params.installationId]
306 : (
307 await env.DB.prepare("SELECT installation_id FROM installations WHERE suspended_at IS NULL").all<{
308 installation_id: number;
309 }>()
310 ).results.map((r) => r.installation_id);
311
312 const jobs: ExportJob[] = [];
313 for (const installationId of installIds) {
314 jobs.push(await enqueueExport(env, installationId, framework, format));
315 }
316
317 return Response.json({ jobs }, { status: 202 });
318}
319
320// Create the export job row + enqueue it. Shared by the admin (bearer) and
321// dashboard (session) entry points.
322async function enqueueExport(
323 env: Env,
324 installationId: number,
325 framework: Framework,
326 format: ExportFormat,
327): Promise<ExportJob> {
328 const jobId = crypto.randomUUID();
329 await env.DB.prepare(
330 `INSERT INTO exports (id, installation_id, framework, format, status, created_at)
331 VALUES (?1, ?2, ?3, ?4, 'queued', ?5)`,
332 )
333 .bind(jobId, installationId, framework, format, new Date().toISOString())
334 .run();
335 const job: ExportJob = { jobId, installationId, framework, format };
336 try {
337 await env.GENERATE_EXPORT.send(job);
338 } catch (err) {
339 // Otherwise the row sits at 'queued' forever with nothing to process it.
340 await env.DB.prepare(
341 "UPDATE exports SET status = 'error', error = ?1, completed_at = ?2 WHERE id = ?3",
342 )
343 .bind(`Failed to enqueue: ${(err as Error).message}`, new Date().toISOString(), jobId)
344 .run();
345 throw err;
346 }
347 return job;
348}
349
350// R2 caps the number of keys per bulk delete, so chunk rather than let a
351// large purge fail wholesale.
352const R2_DELETE_BATCH = 1000;
353
354async function deleteR2Objects(env: Env, keys: string[]): Promise<void> {
355 for (let i = 0; i < keys.length; i += R2_DELETE_BATCH) {
356 await env.EXPORTS.delete(keys.slice(i, i + R2_DELETE_BATCH));
357 }
358}
359
360// Delete everything we hold for one installation: R2 export objects, then
361// all D1 rows. Triggered by the `installation.deleted` webhook (uninstall)
362// and available on request via /admin/purge.
363async function purgeInstallation(env: Env, installationId: number): Promise<void> {
364 const { results } = await env.DB.prepare(
365 "SELECT r2_key FROM exports WHERE installation_id = ?1 AND r2_key IS NOT NULL",
366 )
367 .bind(installationId)
368 .all<{ r2_key: string }>();
369 await deleteR2Objects(env, results.map((r) => r.r2_key));
370
371 await env.DB.batch([
372 env.DB.prepare("DELETE FROM snapshots WHERE installation_id = ?1").bind(installationId),
373 env.DB.prepare("DELETE FROM exports WHERE installation_id = ?1").bind(installationId),
374 env.DB.prepare("DELETE FROM installations WHERE installation_id = ?1").bind(installationId),
375 ]);
376}
377
378interface CleanupResult {
379 snapshotsDeleted: number;
380 exportsDeleted: number;
381}
382
383// Enforce the retention windows: drop snapshots and export files (D1 rows +
384// R2 objects) past their age limit. Runs hourly from the scheduled handler;
385// a no-op most of the time.
386async function runRetentionCleanup(env: Env): Promise<CleanupResult> {
387 const now = Date.now();
388 const snapshotCutoff = new Date(now - SNAPSHOT_RETENTION_DAYS * 86400_000).toISOString();
389 const exportCutoff = new Date(now - EXPORT_RETENTION_DAYS * 86400_000).toISOString();
390
391 // Delete expired export R2 objects first (their keys live in the rows).
392 const { results: expiredExports } = await env.DB.prepare(
393 "SELECT r2_key FROM exports WHERE created_at < ?1 AND r2_key IS NOT NULL",
394 )
395 .bind(exportCutoff)
396 .all<{ r2_key: string }>();
397 await deleteR2Objects(env, expiredExports.map((r) => r.r2_key));
398
399 const exportsRes = await env.DB.prepare("DELETE FROM exports WHERE created_at < ?1").bind(exportCutoff).run();
400 const snapshotsRes = await env.DB.prepare("DELETE FROM snapshots WHERE captured_at < ?1")
401 .bind(snapshotCutoff)
402 .run();
403
404 return {
405 snapshotsDeleted: snapshotsRes.meta.changes ?? 0,
406 exportsDeleted: exportsRes.meta.changes ?? 0,
407 };
408}
409
410async function handleAdminCleanup(request: Request, env: Env): Promise<Response> {
411 if (!checkAdminAuth(request, env)) return new Response("Unauthorized", { status: 401 });
412 return Response.json(await runRetentionCleanup(env));
413}
414
415// On-request deletion of a specific installation's data (a documented
416// deletion trigger). Bearer-guarded.
417async function handleAdminPurge(request: Request, env: Env): Promise<Response> {
418 if (!checkAdminAuth(request, env)) return new Response("Unauthorized", { status: 401 });
419 const params = (await request.json().catch(() => ({}))) as { installationId?: number };
420 if (typeof params.installationId !== "number") {
421 return new Response("installationId (number) is required", { status: 400 });
422 }
423 await purgeInstallation(env, params.installationId);
424 return Response.json({ purged: params.installationId });
425}
426
427// GET /admin/export/:id -> job status JSON; /admin/export/:id/download -> file.
428// Admin (bearer) variant: no installation scoping.
429async function handleAdminExportGet(request: Request, env: Env, jobId: string, download: boolean): Promise<Response> {
430 if (!checkAdminAuth(request, env)) return new Response("Unauthorized", { status: 401 });
431 const job = await env.DB.prepare(
432 "SELECT id, installation_id, framework, format, status, r2_key, error, created_at, completed_at FROM exports WHERE id = ?1",
433 )
434 .bind(jobId)
435 .first<{ status: string; r2_key: string | null; format: ExportFormat }>();
436 return serveExport(env, job, jobId, download);
437}
438
439// Stream a finished export, or return its status JSON. `job` is already
440// scoped/authorized by the caller.
441async function serveExport(
442 env: Env,
443 job: { status: string; r2_key: string | null; format: ExportFormat } | null,
444 jobId: string,
445 download: boolean,
446): Promise<Response> {
447 if (!job) return new Response("Not found", { status: 404 });
448 if (!download) return Response.json(job);
449
450 if (job.status !== "done" || !job.r2_key) {
451 return new Response(`Export not ready (status: ${job.status})`, { status: 409 });
452 }
453 const object = await env.EXPORTS.get(job.r2_key);
454 if (!object) return new Response("Export file missing", { status: 410 });
455
456 return new Response(object.body, {
457 headers: {
458 "Content-Type": CONTENT_TYPE[job.format],
459 "Content-Disposition": `attachment; filename="${jobId}.${job.format}"`,
460 },
461 });
462}
463
464function normalizeFramework(value: string | undefined): Framework | null {
465 if (value === undefined || value === "all") return "all";
466 if (value === "soc2" || value === "iso27001") return value;
467 return null;
468}
469
470async function requireSession(request: Request, env: Env): Promise<SessionPayload | null> {
471 const token = parseCookies(request)[SESSION_COOKIE];
472 return token ? verifySession(token, env.SESSION_SECRET) : null;
473}
474
475// Authenticated dashboard: current compliance posture + export controls,
476// scoped to the logged-in user's installation.
477async function handleDashboard(request: Request, env: Env): Promise<Response> {
478 const session = await requireSession(request, env);
479 if (!session) return new Response(null, { status: 302, headers: { Location: "/login" } });
480
481 const url = new URL(request.url);
482 const framework = normalizeFramework(url.searchParams.get("framework") ?? undefined) ?? "all";
483
484 const [rows, orgRow, exportsResult, lastPollRow, installations] = await Promise.all([
485 buildEvidenceRows(env.DB, session.installationId, framework),
486 env.DB.prepare("SELECT org_login FROM installations WHERE installation_id = ?1")
487 .bind(session.installationId)
488 .first<{ org_login: string }>(),
489 env.DB.prepare(
490 `SELECT id, framework, format, status, created_at FROM exports
491 WHERE installation_id = ?1 ORDER BY created_at DESC LIMIT 10`,
492 )
493 .bind(session.installationId)
494 .all<ExportListRow>(),
495 env.DB.prepare(
496 `SELECT MAX(captured_at) AS t FROM snapshots
497 WHERE installation_id = ?1 AND resource IN ('branch_protection', 'repository_ruleset')`,
498 )
499 .bind(session.installationId)
500 .first<{ t: string | null }>(),
501 accessibleInstallations(env, session),
502 ]);
503
504 const html = renderDashboard({
505 login: session.login,
506 installationId: session.installationId,
507 orgLogin: orgRow?.org_login ?? "unknown",
508 installations,
509 framework,
510 rows,
511 exports: exportsResult.results,
512 lastPolledAt: lastPollRow?.t ?? null,
513 });
514
515 return new Response(html, { headers: { "Content-Type": "text/html; charset=utf-8" } });
516}
517
518// Installations this session may view, with their org names, for the header
519// switcher. Falls back to the single active id for sessions issued before
520// the switcher existed.
521async function accessibleInstallations(env: Env, session: SessionPayload): Promise<InstallationOption[]> {
522 const ids = session.installationIds?.length ? session.installationIds : [session.installationId];
523 const placeholders = ids.map(() => "?").join(",");
524 const { results } = await env.DB.prepare(
525 `SELECT installation_id, org_login FROM installations
526 WHERE installation_id IN (${placeholders}) ORDER BY org_login`,
527 )
528 .bind(...ids)
529 .all<InstallationOption>();
530 return results;
531}
532
533// POST /switch — change which installation the session is viewing. The
534// allowed set lives in the signed session, so a tampered id can't widen
535// access beyond what was granted at login.
536async function handleSwitchInstallation(request: Request, env: Env): Promise<Response> {
537 const session = await requireSession(request, env);
538 if (!session) return new Response("Unauthorized", { status: 401 });
539
540 const form = await request.formData();
541 const requested = Number(form.get("installationId"));
542 const allowed = session.installationIds?.length ? session.installationIds : [session.installationId];
543 if (!Number.isInteger(requested) || !allowed.includes(requested)) {
544 return new Response("No access to that installation", { status: 403 });
545 }
546
547 const rotated = await signSession({ ...session, installationId: requested }, env.SESSION_SECRET);
548 // Keep the original expiry — switching views shouldn't extend the session.
549 const remaining = Math.max(0, session.exp - Math.floor(Date.now() / 1000));
550 const headers = new Headers({ Location: form.get("return") === "access-review" ? "/access-review" : "/" });
551 headers.append("Set-Cookie", setCookieHeader(SESSION_COOKIE, rotated, remaining));
552 return new Response(null, { status: 303, headers });
553}
554
555// GET /access-review — membership changes since a chosen date, for the
556// periodic access review auditors ask for.
557async function handleAccessReview(request: Request, env: Env): Promise<Response> {
558 const session = await requireSession(request, env);
559 if (!session) return new Response(null, { status: 302, headers: { Location: "/login" } });
560
561 const url = new URL(request.url);
562 // Default comparison point: 30 days ago. An unparseable ?since= falls back
563 // rather than throwing — Date#toISOString raises on an invalid date, so a
564 // stale bookmark or empty form submit would otherwise 500 the page.
565 const sinceParam = url.searchParams.get("since");
566 const requested = sinceParam ? new Date(`${sinceParam}T23:59:59.999Z`) : null;
567 const since =
568 requested && !Number.isNaN(requested.getTime())
569 ? requested.toISOString()
570 : new Date(Date.now() - 30 * 86400_000).toISOString();
571
572 const [diff, orgRow, installations] = await Promise.all([
573 buildAccessDiff(env.DB, session.installationId, since),
574 env.DB.prepare("SELECT org_login FROM installations WHERE installation_id = ?1")
575 .bind(session.installationId)
576 .first<{ org_login: string }>(),
577 accessibleInstallations(env, session),
578 ]);
579
580 const html = renderAccessReview({
581 login: session.login,
582 installationId: session.installationId,
583 orgLogin: orgRow?.org_login ?? "unknown",
584 installations,
585 since,
586 diff,
587 });
588 return new Response(html, { headers: { "Content-Type": "text/html; charset=utf-8" } });
589}
590
591// POST /exports — session-authed export of the user's own installation.
592async function handleCreateExport(request: Request, env: Env): Promise<Response> {
593 const session = await requireSession(request, env);
594 if (!session) return new Response("Unauthorized", { status: 401 });
595
596 const form = await request.formData();
597 const framework = normalizeFramework(String(form.get("framework") ?? "all")) ?? "all";
598 const format: ExportFormat = String(form.get("format")) === "pdf" ? "pdf" : "csv";
599
600 await enqueueExport(env, session.installationId, framework, format);
601 return Response.redirect(new URL("/", request.url).toString(), 303);
602}
603
604// GET /exports/:id[/download] — session-authed, scoped to the user's
605// installation so one org can't read another's export by guessing an id.
606async function handleSessionExportGet(request: Request, env: Env, jobId: string, download: boolean): Promise<Response> {
607 const session = await requireSession(request, env);
608 if (!session) return new Response("Unauthorized", { status: 401 });
609
610 const job = await env.DB.prepare(
611 "SELECT id, framework, format, status, r2_key, created_at FROM exports WHERE id = ?1 AND installation_id = ?2",
612 )
613 .bind(jobId, session.installationId)
614 .first<{ status: string; r2_key: string | null; format: ExportFormat }>();
615
616 return serveExport(env, job, jobId, download);
617}
618
619// POST /resync — run the poll for the user's installation inline so the
620// dashboard shows fresh state on the redirect. One installation's repos are
621// few enough to finish within the request.
622async function handleResync(request: Request, env: Env): Promise<Response> {
623 const session = await requireSession(request, env);
624 if (!session) return new Response("Unauthorized", { status: 401 });
625
626 const summary: PollSummary = { installationsPolled: 1, written: [], errors: [] };
627 try {
628 await pollInstallation(env, session.installationId, summary);
629 } catch (err) {
630 console.error(`Resync failed for installation ${session.installationId}:`, err);
631 }
632 return Response.redirect(new URL("/", request.url).toString(), 303);
633}
634
635function handleLogin(request: Request, env: Env): Response {
636 const state = crypto.randomUUID();
637 const redirectUri = new URL("/callback", request.url).toString();
638 const authorizeUrl = buildAuthorizeUrl(env, redirectUri, state);
639
640 return new Response(null, {
641 status: 302,
642 headers: {
643 Location: authorizeUrl,
644 "Set-Cookie": setCookieHeader(STATE_COOKIE, state, STATE_TTL_SECONDS),
645 },
646 });
647}
648
649async function handleCallback(request: Request, env: Env): Promise<Response> {
650 const url = new URL(request.url);
651 const code = url.searchParams.get("code");
652 const state = url.searchParams.get("state");
653 const cookies = parseCookies(request);
654
655 if (!code || !state || !cookies[STATE_COOKIE] || cookies[STATE_COOKIE] !== state) {
656 return new Response("Invalid OAuth state", { status: 400 });
657 }
658
659 const redirectUri = new URL("/callback", request.url).toString();
660
661 let accessToken: string;
662 try {
663 accessToken = await exchangeCodeForToken(env, code, redirectUri);
664 } catch (err) {
665 return new Response(`OAuth exchange failed: ${(err as Error).message}`, { status: 502 });
666 }
667
668 const [user, userInstallationIds] = await Promise.all([
669 fetchGithubUser(accessToken),
670 fetchUserInstallationIds(accessToken),
671 ]);
672
673 if (userInstallationIds.length === 0) {
674 return new Response("No accessible installations of this App", { status: 403 });
675 }
676
677 // Cross-check against installations we actually track, so a user who can
678 // see the App on some unrelated installation can't log into this one.
679 // Ordered by org so a user in several installations lands somewhere
680 // deterministic rather than on whichever row the DB happened to return.
681 const placeholders = userInstallationIds.map(() => "?").join(",");
682 const { results: known } = await env.DB.prepare(
683 `SELECT installation_id FROM installations
684 WHERE installation_id IN (${placeholders})
685 ORDER BY org_login`,
686 )
687 .bind(...userInstallationIds)
688 .all<{ installation_id: number }>();
689
690 const accessibleIds = known.map((k) => k.installation_id);
691 const defaultInstallationId = accessibleIds[0];
692 if (defaultInstallationId === undefined) {
693 return new Response("You don't have access to any org with this App installed", { status: 403 });
694 }
695
696 const session = await signSession(
697 newSessionPayload(user, defaultInstallationId, accessibleIds),
698 env.SESSION_SECRET,
699 );
700
701 const headers = new Headers({ Location: "/" });
702 headers.append("Set-Cookie", setCookieHeader(SESSION_COOKIE, session, SESSION_TTL_SECONDS));
703 headers.append("Set-Cookie", clearCookieHeader(STATE_COOKIE));
704
705 return new Response(null, { status: 302, headers });
706}
707
708function handleLogout(): Response {
709 return new Response(null, {
710 status: 302,
711 headers: {
712 Location: "/login",
713 "Set-Cookie": clearCookieHeader(SESSION_COOKIE),
714 },
715 });
716}
717
718// GitHub's webhook settings offer JSON or x-www-form-urlencoded, and the
719// latter wraps the payload in a `payload` field. Accept either so flipping
720// that setting can't 500 every delivery. Returns the canonical JSON text
721// alongside the parsed object, since the raw JSON is what we retain for the
722// audit trail.
723function parseWebhookBody(
724 bodyText: string,
725 contentType: string | null,
726): { payload: Record<string, unknown>; json: string } | null {
727 const json = (contentType ?? "").includes("x-www-form-urlencoded")
728 ? (new URLSearchParams(bodyText).get("payload") ?? "")
729 : bodyText;
730 try {
731 return { payload: JSON.parse(json) as Record<string, unknown>, json };
732 } catch {
733 return null;
734 }
735}
736
737// Marketplace listing events (marketplace_purchase). The listing is free, so
738// there is no billing to run — this records who subscribed and is the place
739// to add entitlement logic if paid plans are ever introduced. Kept separate
740// from the App webhook because the payload carries no installation and would
741// otherwise be discarded as "no installation context".
742async function handleMarketplaceWebhook(request: Request, env: Env): Promise<Response> {
743 const rawBody = await request.arrayBuffer();
744 const valid = await verifySignature(rawBody, request.headers.get("X-Hub-Signature-256"), env.GITHUB_WEBHOOK_SECRET);
745 if (!valid) return new Response("Invalid signature", { status: 401 });
746
747 const parsed = parseWebhookBody(
748 new TextDecoder().decode(rawBody),
749 request.headers.get("Content-Type"),
750 );
751 if (!parsed) return new Response("Unparseable payload", { status: 400 });
752 const { payload } = parsed;
753
754 const purchase = payload.marketplace_purchase as Record<string, unknown> | undefined;
755 const account = purchase?.account as Record<string, unknown> | undefined;
756 const plan = purchase?.plan as Record<string, unknown> | undefined;
757 console.log("marketplace event", {
758 action: payload.action,
759 account: account?.login,
760 plan: plan?.name,
761 });
762
763 return new Response("OK", { status: 200 });
764}
765
766async function handleWebhook(request: Request, env: Env): Promise<Response> {
767 const rawBody = await request.arrayBuffer();
768 const signature = request.headers.get("X-Hub-Signature-256");
769 const eventType = request.headers.get("X-GitHub-Event");
770
771 if (!eventType) {
772 return new Response("Missing X-GitHub-Event header", { status: 400 });
773 }
774
775 const valid = await verifySignature(rawBody, signature, env.GITHUB_WEBHOOK_SECRET);
776 if (!valid) {
777 return new Response("Invalid signature", { status: 401 });
778 }
779
780 const parsed = parseWebhookBody(
781 new TextDecoder().decode(rawBody),
782 request.headers.get("Content-Type"),
783 );
784 if (!parsed) return new Response("Unparseable payload", { status: 400 });
785 const { payload, json: bodyText } = parsed;
786
787 const installationId = extractInstallationId(payload);
788 if (installationId === null) {
789 // No installation context (e.g. an event type outside the app's install scope) — nothing to attribute a snapshot to.
790 return new Response("OK (no installation context)", { status: 202 });
791 }
792
793 // Installation lifecycle: uninstall purges all data; suspend/unsuspend
794 // toggle processing without deleting. Other actions (created,
795 // new_permissions_accepted) fall through to the normal snapshot path.
796 if (eventType === "installation") {
797 const action = typeof payload.action === "string" ? payload.action : "";
798 if (action === "deleted") {
799 await purgeInstallation(env, installationId);
800 return new Response("OK (purged)", { status: 200 });
801 }
802 if (action === "suspend") {
803 await env.DB.prepare("UPDATE installations SET suspended_at = ?2 WHERE installation_id = ?1")
804 .bind(installationId, new Date().toISOString())
805 .run();
806 return new Response("OK (suspended)", { status: 200 });
807 }
808 if (action === "unsuspend") {
809 await env.DB.prepare("UPDATE installations SET suspended_at = NULL WHERE installation_id = ?1")
810 .bind(installationId)
811 .run();
812 return new Response("OK (unsuspended)", { status: 200 });
813 }
814 }
815
816 const orgLogin = extractOrgLogin(payload);
817 const capturedAt = new Date().toISOString();
818
819 await env.DB.prepare(
820 `INSERT INTO installations (installation_id, org_login, installed_at)
821 VALUES (?1, ?2, ?3)
822 ON CONFLICT(installation_id) DO NOTHING`,
823 )
824 .bind(installationId, orgLogin, capturedAt)
825 .run();
826
827 const fact = extractFact(eventType, payload);
828 const repo = extractRepoFullName(payload);
829
830 await env.DB.prepare(
831 `INSERT INTO snapshots (installation_id, repo, resource, status, raw_payload, captured_at)
832 VALUES (?1, ?2, ?3, ?4, ?5, ?6)`,
833 )
834 .bind(installationId, repo, fact.resource, fact.status, bodyText, capturedAt)
835 .run();
836
837 return new Response("OK", { status: 200 });
838}
839
840function extractOrgLogin(payload: Record<string, unknown>): string {
841 const installation = payload.installation as Record<string, unknown> | undefined;
842 const account = installation?.account as Record<string, unknown> | undefined;
843 if (typeof account?.login === "string") return account.login;
844
845 const organization = payload.organization as Record<string, unknown> | undefined;
846 if (typeof organization?.login === "string") return organization.login;
847
848 return "unknown";
849}
src/poller.ts added +183
@@ -0,0 +1,183 @@
1const GITHUB_API = "https://api.github.com";
2
3function authHeaders(installationToken: string): HeadersInit {
4 return {
5 Authorization: `Bearer ${installationToken}`,
6 Accept: "application/vnd.github+json",
7 "User-Agent": "gh-attest",
8 };
9}
10
11export interface RepoRef {
12 fullName: string;
13 owner: string;
14 name: string;
15 defaultBranch: string;
16}
17
18export async function listInstallationRepos(installationToken: string): Promise<RepoRef[]> {
19 const repos: RepoRef[] = [];
20 let page = 1;
21
22 for (;;) {
23 const res = await fetch(`${GITHUB_API}/installation/repositories?per_page=100&page=${page}`, {
24 headers: authHeaders(installationToken),
25 });
26 if (!res.ok) throw new Error(`Failed to list installation repositories (${res.status})`);
27
28 const data = (await res.json()) as {
29 repositories: Array<{ full_name: string; default_branch: string }>;
30 };
31 if (data.repositories.length === 0) break;
32
33 for (const repo of data.repositories) {
34 const separatorIndex = repo.full_name.indexOf("/");
35 const owner = repo.full_name.slice(0, separatorIndex);
36 const name = repo.full_name.slice(separatorIndex + 1);
37 repos.push({ fullName: repo.full_name, owner, name, defaultBranch: repo.default_branch });
38 }
39
40 if (data.repositories.length < 100) break;
41 page++;
42 }
43
44 return repos;
45}
46
47interface ProtectionCheck {
48 status: "enabled" | "disabled" | "unavailable";
49 raw: unknown;
50}
51
52async function fetchBranchProtection(
53 installationToken: string,
54 owner: string,
55 repo: string,
56 branch: string,
57): Promise<ProtectionCheck> {
58 const res = await fetch(`${GITHUB_API}/repos/${owner}/${repo}/branches/${branch}/protection`, {
59 headers: authHeaders(installationToken),
60 });
61 if (res.status === 404) return { status: "disabled", raw: null };
62 // 403 = feature not available on this repo's plan (e.g. private repo on a
63 // free account). Recorded as "unavailable" — deliberately unmapped in
64 // control_mappings so it never counts as evidence either way.
65 if (res.status === 403) return { status: "unavailable", raw: null };
66 if (!res.ok) throw new Error(`Failed to fetch branch protection for ${owner}/${repo} (${res.status})`);
67
68 return { status: "enabled", raw: await res.json() };
69}
70
71async function fetchRulesets(installationToken: string, owner: string, repo: string): Promise<ProtectionCheck> {
72 const res = await fetch(`${GITHUB_API}/repos/${owner}/${repo}/rulesets?per_page=100`, {
73 headers: authHeaders(installationToken),
74 });
75 if (res.status === 403) return { status: "unavailable", raw: null };
76 if (!res.ok) throw new Error(`Failed to fetch rulesets for ${owner}/${repo} (${res.status})`);
77
78 const rulesets = (await res.json()) as Array<{ enforcement: string; target: string }>;
79 // "evaluate" is dry-run/monitor-only — doesn't actually block anything, so
80 // it doesn't count as protection being enabled.
81 const enabled = rulesets.some((r) => r.enforcement === "active" && r.target === "branch");
82 return { status: enabled ? "enabled" : "disabled", raw: rulesets };
83}
84
85export interface PolledFact {
86 repo: string;
87 resource: "branch_protection" | "repository_ruleset";
88 status: "enabled" | "disabled" | "unavailable";
89 rawPayload: string | null;
90}
91
92export async function pollRepoProtection(installationToken: string, repo: RepoRef): Promise<PolledFact[]> {
93 const [branchProtection, rulesets] = await Promise.all([
94 fetchBranchProtection(installationToken, repo.owner, repo.name, repo.defaultBranch),
95 fetchRulesets(installationToken, repo.owner, repo.name),
96 ]);
97
98 return [
99 {
100 repo: repo.fullName,
101 resource: "branch_protection",
102 status: branchProtection.status,
103 rawPayload: branchProtection.raw ? JSON.stringify(branchProtection.raw) : null,
104 },
105 {
106 repo: repo.fullName,
107 resource: "repository_ruleset",
108 status: rulesets.status,
109 rawPayload: rulesets.raw ? JSON.stringify(rulesets.raw) : null,
110 },
111 ];
112}
113
114// ---------------------------------------------------------------------------
115// Access review: org membership and team membership.
116// ---------------------------------------------------------------------------
117
118export interface AccessFact {
119 resource: "org_member" | "team_member";
120 subject: string; // member login, or "team-slug:login" for team membership
121 status: string; // org role (admin|member) or team role (maintainer|member)
122}
123
124interface GithubUser {
125 login: string;
126}
127
128async function listUsers(installationToken: string, path: string): Promise<string[]> {
129 const logins: string[] = [];
130 let page = 1;
131
132 for (;;) {
133 const separator = path.includes("?") ? "&" : "?";
134 const res = await fetch(`${GITHUB_API}${path}${separator}per_page=100&page=${page}`, {
135 headers: authHeaders(installationToken),
136 });
137 if (!res.ok) throw new Error(`Failed to list ${path} (${res.status})`);
138
139 const users = (await res.json()) as GithubUser[];
140 for (const user of users) logins.push(user.login);
141
142 if (users.length < 100) break;
143 page++;
144 }
145
146 return logins;
147}
148
149// Returns null when the installation account is a personal User rather than an
150// Organization — there is no membership to review, which is not an error.
151//
152// Subrequest cost is 3 + (2 x team count); an org with very many teams would
153// need to fan this out through a Queue rather than one scheduled invocation.
154export async function pollOrgAccess(installationToken: string, orgLogin: string): Promise<AccessFact[] | null> {
155 const orgRes = await fetch(`${GITHUB_API}/orgs/${orgLogin}`, { headers: authHeaders(installationToken) });
156 if (orgRes.status === 404) return null;
157 if (!orgRes.ok) throw new Error(`Failed to fetch org ${orgLogin} (${orgRes.status})`);
158
159 const facts: AccessFact[] = [];
160
161 for (const role of ["admin", "member"] as const) {
162 for (const login of await listUsers(installationToken, `/orgs/${orgLogin}/members?role=${role}`)) {
163 facts.push({ resource: "org_member", subject: login, status: role });
164 }
165 }
166
167 const teamsRes = await fetch(`${GITHUB_API}/orgs/${orgLogin}/teams?per_page=100`, {
168 headers: authHeaders(installationToken),
169 });
170 if (!teamsRes.ok) throw new Error(`Failed to list teams for ${orgLogin} (${teamsRes.status})`);
171 const teams = (await teamsRes.json()) as Array<{ slug: string }>;
172
173 for (const team of teams) {
174 for (const role of ["maintainer", "member"] as const) {
175 const path = `/orgs/${orgLogin}/teams/${team.slug}/members?role=${role}`;
176 for (const login of await listUsers(installationToken, path)) {
177 facts.push({ resource: "team_member", subject: `${team.slug}:${login}`, status: role });
178 }
179 }
180 }
181
182 return facts;
183}
src/webhook.ts added +74
@@ -0,0 +1,74 @@
1import { timingSafeEqualHex, bytesToHex } from "./crypto-utils";
2
3const SIGNATURE_PREFIX = "sha256=";
4
5export async function verifySignature(
6 rawBody: ArrayBuffer,
7 signatureHeader: string | null,
8 secret: string,
9): Promise<boolean> {
10 if (!signatureHeader?.startsWith(SIGNATURE_PREFIX)) return false;
11
12 const providedHex = signatureHeader.slice(SIGNATURE_PREFIX.length);
13 if (!/^[0-9a-f]+$/i.test(providedHex) || providedHex.length !== 64) return false;
14
15 const key = await crypto.subtle.importKey(
16 "raw",
17 new TextEncoder().encode(secret),
18 { name: "HMAC", hash: "SHA-256" },
19 false,
20 ["sign"],
21 );
22 const expected = bytesToHex(new Uint8Array(await crypto.subtle.sign("HMAC", key, rawBody)));
23
24 return timingSafeEqualHex(providedHex, expected);
25}
26
27interface ExtractedFact {
28 resource: string;
29 status: string;
30}
31
32// Minimal resource/status extraction per event type. Control-ID mapping
33// (resource+status -> SOC 2 / ISO 27001 control) is a separate, later step.
34export function extractFact(eventType: string, payload: Record<string, unknown>): ExtractedFact {
35 const action = typeof payload.action === "string" ? payload.action : undefined;
36
37 switch (eventType) {
38 // Normalized to current-state vocabulary (enabled/disabled) rather than
39 // the raw action, so this lines up with what the poller reports for
40 // pre-existing protection state — the mapping table joins on one
41 // vocabulary regardless of source.
42 case "branch_protection_rule":
43 return { resource: "branch_protection", status: action === "deleted" ? "disabled" : "enabled" };
44 case "repository_ruleset":
45 return { resource: "repository_ruleset", status: action === "deleted" ? "disabled" : "enabled" };
46 case "dependabot_alert":
47 case "code_scanning_alert":
48 case "secret_scanning_alert": {
49 const alert = payload.alert as Record<string, unknown> | undefined;
50 const state = typeof alert?.state === "string" ? alert.state : undefined;
51 return { resource: eventType, status: state ?? action ?? "unknown" };
52 }
53 case "member":
54 return { resource: "member_access", status: action ?? "unknown" };
55 case "team":
56 return { resource: "team", status: action ?? "unknown" };
57 case "repository":
58 return { resource: "repository", status: action ?? "unknown" };
59 case "push":
60 return { resource: "push", status: "received" };
61 default:
62 return { resource: eventType, status: action ?? "received" };
63 }
64}
65
66export function extractRepoFullName(payload: Record<string, unknown>): string | null {
67 const repository = payload.repository as Record<string, unknown> | undefined;
68 return typeof repository?.full_name === "string" ? repository.full_name : null;
69}
70
71export function extractInstallationId(payload: Record<string, unknown>): number | null {
72 const installation = payload.installation as Record<string, unknown> | undefined;
73 return typeof installation?.id === "number" ? installation.id : null;
74}
tsconfig.json added +18
@@ -0,0 +1,18 @@
1{
2 "compilerOptions": {
3 "target": "es2022",
4 "lib": ["es2022"],
5 "module": "es2022",
6 "moduleResolution": "bundler",
7 "types": ["node", "./worker-configuration.d.ts"],
8 "strict": true,
9 "noUncheckedIndexedAccess": true,
10 "skipLibCheck": true,
11 "esModuleInterop": true,
12 "forceConsistentCasingInFileNames": true,
13 "resolveJsonModule": true,
14 "isolatedModules": true,
15 "noEmit": true
16 },
17 "include": ["src/**/*.ts"]
18}
wrangler.jsonc added +40
@@ -0,0 +1,40 @@
1{
2 "$schema": "./node_modules/wrangler/config-schema.json",
3 "name": "gh-attest",
4 "main": "src/index.ts",
5 "compatibility_date": "2026-07-18",
6 "compatibility_flags": ["nodejs_compat"],
7 "observability": {
8 "enabled": true,
9 "head_sampling_rate": 1
10 },
11
12 // Storage is pinned to the EU jurisdiction so customer data stays in the
13 // EEA. Jurisdiction is immutable: moving it means recreating these
14 // resources and migrating the data.
15 "d1_databases": [
16 {
17 "binding": "DB",
18 "database_name": "gh-attest-db-eu",
19 "database_id": "70e8b4b2-4409-4f51-a9f6-badce76f5891",
20 "migrations_dir": "./migrations"
21 }
22 ],
23
24 "triggers": {
25 "crons": ["0 * * * *"]
26 },
27
28 "r2_buckets": [
29 { "binding": "EXPORTS", "bucket_name": "gh-attest-exports-eu", "jurisdiction": "eu" }
30 ],
31
32 "queues": {
33 "producers": [
34 { "binding": "GENERATE_EXPORT", "queue": "generate-export" }
35 ],
36 "consumers": [
37 { "queue": "generate-export", "max_batch_size": 10, "max_batch_timeout": 30 }
38 ]
39 }
40}