diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index cbd574a..0c0b50c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -24,6 +24,8 @@ jobs:
- name: Build packages
run: |
+ bun run --cwd packages/events build
+ bun run --cwd packages/multiplexer build
bun run --cwd packages/compute-protocol build
bun run --cwd packages/compute build
bun run --cwd packages/github build
diff --git a/.gitignore b/.gitignore
index 0c3f1c9..717961f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,5 @@ dist/
*.tgz
.env.*
.sonda
+.next
+**/tsconfig.tsbuildinfo
diff --git a/LICENSE b/LICENSE
index 8bb9ce0..29ebfa5 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,20 +1,661 @@
-The MIT License
-
-Copyright (c) 2025 Coder Technologies Inc.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
+ GNU AFFERO GENERAL PUBLIC LICENSE
+ Version 3, 19 November 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU Affero General Public License is a free, copyleft license for
+software and other kinds of works, specifically designed to ensure
+cooperation with the community in the case of network server software.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+our General Public Licenses are intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ Developers that use our General Public Licenses protect your rights
+with two steps: (1) assert copyright on the software, and (2) offer
+you this License which gives you legal permission to copy, distribute
+and/or modify the software.
+
+ A secondary benefit of defending all users' freedom is that
+improvements made in alternate versions of the program, if they
+receive widespread use, become available for other developers to
+incorporate. Many developers of free software are heartened and
+encouraged by the resulting cooperation. However, in the case of
+software used on network servers, this result may fail to come about.
+The GNU General Public License permits making a modified version and
+letting the public access it on a server without ever releasing its
+source code to the public.
+
+ The GNU Affero General Public License is designed specifically to
+ensure that, in such cases, the modified source code becomes available
+to the community. It requires the operator of a network server to
+provide the source code of the modified version running there to the
+users of that server. Therefore, public use of a modified version, on
+a publicly accessible server, gives the public access to the source
+code of the modified version.
+
+ An older license, called the Affero General Public License and
+published by Affero, was designed to accomplish similar goals. This is
+a different license, not a version of the Affero GPL, but Affero has
+released a new version of the Affero GPL which permits relicensing under
+this license.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU Affero General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Remote Network Interaction; Use with the GNU General Public License.
+
+ Notwithstanding any other provision of this License, if you modify the
+Program, your modified version must prominently offer all users
+interacting with it remotely through a computer network (if your version
+supports such interaction) an opportunity to receive the Corresponding
+Source of your version by providing access to the Corresponding Source
+from a network server at no charge, through some standard or customary
+means of facilitating copying of software. This Corresponding Source
+shall include the Corresponding Source for any work covered by version 3
+of the GNU General Public License that is incorporated pursuant to the
+following paragraph.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the work with which it is combined will remain governed by version
+3 of the GNU General Public License.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU Affero General Public License from time to time. Such new versions
+will be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU Affero General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU Affero General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU Affero General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If your software can interact with users remotely through a computer
+network, you should also make sure that it provides a way for users to
+get its source. For example, if your program is a web application, its
+interface could display a "Source" link that leads users to an archive
+of the code. There are many ways you could offer source, and different
+solutions will be better for different programs; see section 13 for the
+specific requirements.
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU AGPL, see
+.
\ No newline at end of file
diff --git a/bun.lock b/bun.lock
index 449c83c..51f8e99 100644
--- a/bun.lock
+++ b/bun.lock
@@ -1,5 +1,6 @@
{
"lockfileVersion": 1,
+ "configVersion": 0,
"workspaces": {
"": {
"name": "blink-repo",
@@ -14,14 +15,45 @@
"typescript": "^5",
},
},
+ "packages/api": {
+ "name": "@blink.so/api",
+ "dependencies": {
+ "bcrypt-ts": "^7.1.0",
+ "next-auth": "5.0.0-beta.28",
+ },
+ "devDependencies": {
+ "@bufbuild/protobuf": "^2.9.0",
+ "@testing-library/react": "^16.3.0",
+ "eventsource-parser": "^3.0.6",
+ "happy-dom": "^18.0.1",
+ "hono": "^4.9.7",
+ "msw": "^2.12.1",
+ "react": "19.1.2",
+ "react-dom": "19.1.2",
+ "tsdown": "^0.15.1",
+ "zod": "^4.1.9",
+ "zod-validation-error": "^4.0.1",
+ },
+ "optionalDependencies": {
+ "@blink-sdk/compute-protocol": ">= 0.0.2",
+ },
+ "peerDependencies": {
+ "ai": ">= 5",
+ "react": ">= 18",
+ "zod": ">= 4",
+ },
+ "optionalPeers": [
+ "react",
+ ],
+ },
"packages/blink": {
"name": "blink",
- "version": "1.1.23",
+ "version": "1.1.34",
"bin": {
"blink": "./dist/cli/index.js",
},
"dependencies": {
- "@blink-sdk/compute-protocol": "^0.0.6",
+ "@blink-sdk/compute-protocol": "^0.0.7",
},
"devDependencies": {
"@ai-sdk/anthropic": "^2.0.15",
@@ -70,7 +102,7 @@
"marked": "^16.2.1",
"marked-terminal": "^7.3.0",
"open": "^10.2.0",
- "react": "^19.1.1",
+ "react": "19.1.2",
"react-devtools-core": "^6.1.5",
"sonda": "^0.9.0",
"tsdown": "0.14.2",
@@ -102,7 +134,7 @@
},
"packages/compute-protocol": {
"name": "@blink-sdk/compute-protocol",
- "version": "0.0.6",
+ "version": "0.0.7",
"devDependencies": {
"@blink-sdk/events": "workspace:*",
"@blink-sdk/multiplexer": "workspace:*",
@@ -122,6 +154,26 @@
"zod": ">= 4",
},
},
+ "packages/compute-protocol-worker": {
+ "name": "@blink.so/compute-protocol-worker",
+ "dependencies": {
+ "@blink-sdk/compute-protocol": "^0.0.2",
+ "@blink-sdk/events": "workspace:*",
+ },
+ },
+ "packages/database": {
+ "name": "@blink.so/database",
+ "devDependencies": {
+ "@electric-sql/pglite": "0.3.2",
+ "@neondatabase/serverless": "^1.0.2",
+ "dotenv": "^17.2.3",
+ "drizzle-kit": "^0.31.5",
+ "drizzle-orm": "^0.44.5",
+ "pg": "^8.16.0",
+ "pg-gateway": "^0.3.0-beta.4",
+ "postgres": "^3.4.7",
+ },
+ },
"packages/desktop": {
"name": "@blink/desktop",
"version": "0.1.0",
@@ -180,7 +232,10 @@
},
"packages/model-intent": {
"name": "@blink-sdk/model-intent",
- "version": "0.0.4",
+ "version": "0.0.5",
+ "devDependencies": {
+ "msw": "^2.12.2",
+ },
"peerDependencies": {
"ai": ">=5",
"zod": ">=4",
@@ -188,13 +243,126 @@
},
"packages/multiplexer": {
"name": "@blink-sdk/multiplexer",
+ "version": "0.0.1",
"devDependencies": {
"@blink-sdk/events": "workspace:*",
},
},
+ "packages/runtime": {
+ "name": "@blink.so/runtime",
+ "devDependencies": {
+ "aws4fetch": "^1.0.20",
+ "jszip": "^3.10.1",
+ },
+ },
+ "packages/scout-agent": {
+ "name": "@blink-sdk/scout-agent",
+ "version": "0.0.9",
+ "dependencies": {
+ "@blink-sdk/compute": "^0.0.15",
+ "@blink-sdk/github": "^0.0.22",
+ "@blink-sdk/model-intent": "^0.0.5",
+ "@blink-sdk/multiplexer": "^0.0.1",
+ "@blink-sdk/slack": "^1.1.2",
+ "@octokit/webhooks": "^14.1.3",
+ "exa-js": "^2.0.3",
+ },
+ "devDependencies": {
+ "@ai-sdk/provider-utils": ">= 2",
+ "@biomejs/biome": "2.3.2",
+ "@types/node": "latest",
+ "ai": "latest",
+ "blink": "^1.1.29",
+ "esbuild": "latest",
+ "msw": "^2.12.1",
+ "tsdown": "^0.3.0",
+ "typescript": "latest",
+ "zod": "latest",
+ },
+ "peerDependencies": {
+ "@ai-sdk/provider-utils": ">= 2",
+ "@daytonaio/sdk": "^0.117.0",
+ "ai": ">= 4",
+ "blink": ">= 1",
+ },
+ },
+ "packages/site": {
+ "name": "@blink.so/site",
+ "dependencies": {
+ "@stripe/react-stripe-js": "^3.9.0",
+ "@stripe/stripe-js": "^7.8.0",
+ "fast-deep-equal": "^3.1.3",
+ },
+ "devDependencies": {
+ "@cloudflare/workers-types": "^4.20251211.0",
+ "@lexical/react": "^0.32.1",
+ "@lexical/utils": "^0.32.1",
+ "@next/bundle-analyzer": "^15.5.3",
+ "@radix-ui/react-alert-dialog": "^1.1.13",
+ "@radix-ui/react-checkbox": "^1.3.3",
+ "@radix-ui/react-dialog": "^1.1.13",
+ "@radix-ui/react-dropdown-menu": "^2.1.14",
+ "@radix-ui/react-separator": "^1.1.6",
+ "@radix-ui/react-slot": "^1.2.2",
+ "@radix-ui/react-tabs": "^1.1.12",
+ "@radix-ui/react-tooltip": "^1.2.6",
+ "@remixicon/react": "^4.6.0",
+ "@storybook/nextjs-vite": "^9.1.16",
+ "@storybook/react": "^9.1.16",
+ "@tailwindcss/forms": "^0.5.10",
+ "@tailwindcss/postcss": "^4.1.13",
+ "@tailwindcss/typography": "^0.5.16",
+ "@testing-library/react": "^16.3.0",
+ "@types/react": "^19.1.2",
+ "@types/react-dom": "^19.1.3",
+ "@types/react-syntax-highlighter": "^15.5.13",
+ "@welldone-software/why-did-you-render": "^10.0.1",
+ "@xterm/xterm": "^5.5.0",
+ "bcrypt-ts": "^7.0.0",
+ "class-variance-authority": "^0.7.1",
+ "classnames": "^2.5.1",
+ "clsx": "^2.1.1",
+ "date-fns": "^4.1.0",
+ "dotenv": "^16.5.0",
+ "framer-motion": "^12.9.7",
+ "happy-dom": "^18.0.1",
+ "lexical": "^0.32.1",
+ "lucide-react": "^0.507.0",
+ "mermaid": "^11.7.0",
+ "next": "15.4.8",
+ "next-auth": "^5.0.0-beta.29",
+ "next-themes": "^0.4.6",
+ "postcss": "^8.5.3",
+ "posthog-js": "^1.261.6",
+ "react": "19.1.2",
+ "react-diff-view": "^3.3.1",
+ "react-dom": "19.1.2",
+ "react-markdown": "^10.1.0",
+ "react-syntax-highlighter": "^15.6.1",
+ "recharts": "^3.2.1",
+ "rehype-raw": "^7.0.0",
+ "rehype-sanitize": "^6.0.0",
+ "remark-gfm": "^4.0.1",
+ "sonner": "^2.0.3",
+ "storybook": "^9.1.16",
+ "stripe": "^18.2.1",
+ "swr": "^2.3.3",
+ "tailwind-merge": "^3.2.0",
+ "tailwindcss": "^4.1.13",
+ "tailwindcss-animate": "^1.0.7",
+ "unist-util-visit": "^5.0.0",
+ "usehooks-ts": "^3.1.1",
+ "vite-plugin-inspect": "^11.1.0",
+ "vite-plugin-node-polyfills": "^0.24.0",
+ "zod": "^3.25.23",
+ },
+ "peerDependencies": {
+ "typescript": "^5",
+ },
+ },
"packages/slack": {
"name": "@blink-sdk/slack",
- "version": "1.1.1",
+ "version": "1.1.2",
"devDependencies": {
"@ai-sdk/provider": "^2.0.0",
"@slack/types": "^2.17.0",
@@ -212,11 +380,11 @@
"packages": {
"7zip-bin": ["7zip-bin@5.2.0", "", {}, "sha512-ukTPVhqG4jNzMro2qA9HSCSSVJN3aN7tlb+hfqYCt3ER0yWroeA2VR38MNrOHLQ/cVj+DaIMad0kFCtWWowh/A=="],
- "@adobe/css-tools": ["@adobe/css-tools@4.3.3", "", {}, "sha512-rE0Pygv0sEZ4vBWHlAgJLGDU7Pm8xoO6p3wsEceb7GYAjScrOHpEo8KK/eVkAcnSM+slAEtXjA2JpdjLp4fJQQ=="],
+ "@adobe/css-tools": ["@adobe/css-tools@4.4.4", "", {}, "sha512-Elp+iwUx5rN5+Y8xLt5/GRoG20WGoDCQ/1Fb+1LiGtvwbDavuSk0jhD/eZdckHAuzcDzccnkv+rEjyWfRx18gg=="],
"@ai-sdk/anthropic": ["@ai-sdk/anthropic@2.0.23", "", { "dependencies": { "@ai-sdk/provider": "2.0.0", "@ai-sdk/provider-utils": "3.0.10" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-ZEBiiv1UhjGjBwUU63pFhLK5LCSlNDb1idY9K1oZHm5/Fda1cuTojf32tOp0opH0RPbPAN/F8fyyNjbU33n9Kw=="],
- "@ai-sdk/gateway": ["@ai-sdk/gateway@2.0.0", "", { "dependencies": { "@ai-sdk/provider": "2.0.0", "@ai-sdk/provider-utils": "3.0.12", "@vercel/oidc": "3.0.3" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-Gj0PuawK7NkZuyYgO/h5kDK/l6hFOjhLdTq3/Lli1FTl47iGmwhH1IZQpAL3Z09BeFYWakcwUmn02ovIm2wy9g=="],
+ "@ai-sdk/gateway": ["@ai-sdk/gateway@2.0.19", "", { "dependencies": { "@ai-sdk/provider": "2.0.0", "@ai-sdk/provider-utils": "3.0.18", "@vercel/oidc": "3.0.5" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-cybb+k/3Kj9BX+Am1mun3dafZsHQLIzW2A4fu5FVTLSIGXXbcuXwXNNdYMGs+B0y6RYOQ8VHbf1QslMSDIxQMA=="],
"@ai-sdk/google": ["@ai-sdk/google@2.0.17", "", { "dependencies": { "@ai-sdk/provider": "2.0.0", "@ai-sdk/provider-utils": "3.0.10" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-6LyuUrCZuiULg0rUV+kT4T2jG19oUntudorI4ttv1ARkSbwl8A39ue3rA487aDDy6fUScdbGFiV5Yv/o4gidVA=="],
@@ -226,7 +394,7 @@
"@ai-sdk/provider": ["@ai-sdk/provider@2.0.0", "", { "dependencies": { "json-schema": "^0.4.0" } }, "sha512-6o7Y2SeO9vFKB8lArHXehNuusnpddKPk7xqL7T2/b+OvXMRIXUO1rR4wcv1hAFUAT9avGZshty3Wlua/XA7TvA=="],
- "@ai-sdk/provider-utils": ["@ai-sdk/provider-utils@3.0.12", "", { "dependencies": { "@ai-sdk/provider": "2.0.0", "@standard-schema/spec": "^1.0.0", "eventsource-parser": "^3.0.5" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-ZtbdvYxdMoria+2SlNarEk6Hlgyf+zzcznlD55EAl+7VZvJaSg2sqPvwArY7L6TfDEDJsnCq0fdhBSkYo0Xqdg=="],
+ "@ai-sdk/provider-utils": ["@ai-sdk/provider-utils@3.0.18", "", { "dependencies": { "@ai-sdk/provider": "2.0.0", "@standard-schema/spec": "^1.0.0", "eventsource-parser": "^3.0.6" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-ypv1xXMsgGcNKUP+hglKqtdDuMg68nWHucPPAhIENrbFAI+xCHiqPVN8Zllxyv1TNZwGWUghPxJXU+Mqps0YRQ=="],
"@ai-sdk/react": ["@ai-sdk/react@2.0.60", "", { "dependencies": { "@ai-sdk/provider-utils": "3.0.10", "ai": "5.0.60", "swr": "^2.2.5", "throttleit": "2.1.0" }, "peerDependencies": { "react": "^18 || ^19 || ^19.0.0-rc", "zod": "^3.25.76 || ^4.1.8" }, "optionalPeers": ["zod"] }, "sha512-Ev0MC0I7eDcCH4FnrHzK48g9bJjyF3F67MMq76qoVsbtcs6fGIO5RjmYgPoFeSo8/yQ5EM6i/14yfcD0oB+moA=="],
@@ -238,20 +406,146 @@
"@ampproject/remapping": ["@ampproject/remapping@2.3.0", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw=="],
+ "@antfu/install-pkg": ["@antfu/install-pkg@1.1.0", "", { "dependencies": { "package-manager-detector": "^1.3.0", "tinyexec": "^1.0.1" } }, "sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ=="],
+
+ "@antfu/utils": ["@antfu/utils@8.1.1", "", {}, "sha512-Mex9nXf9vR6AhcXmMrlz/HVgYYZpVGJ6YlPgwl7UnaFpnshXs6EK/oa5Gpf3CzENMjkvEx2tQtntGnb7UtSTOQ=="],
+
+ "@auth/core": ["@auth/core@0.39.1", "", { "dependencies": { "@panva/hkdf": "^1.2.1", "jose": "^6.0.6", "oauth4webapi": "^3.3.0", "preact": "10.24.3", "preact-render-to-string": "6.5.11" }, "peerDependencies": { "@simplewebauthn/browser": "^9.0.1", "@simplewebauthn/server": "^9.0.2", "nodemailer": "^6.8.0" }, "optionalPeers": ["@simplewebauthn/browser", "@simplewebauthn/server", "nodemailer"] }, "sha512-McD8slui0oOA1pjR5sPjLPl5Zm//nLP/8T3kr8hxIsvNLvsiudYvPHhDFPjh1KcZ2nFxCkZmP6bRxaaPd/AnLA=="],
+
+ "@aws-crypto/crc32": ["@aws-crypto/crc32@5.2.0", "", { "dependencies": { "@aws-crypto/util": "^5.2.0", "@aws-sdk/types": "^3.222.0", "tslib": "^2.6.2" } }, "sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg=="],
+
+ "@aws-crypto/crc32c": ["@aws-crypto/crc32c@5.2.0", "", { "dependencies": { "@aws-crypto/util": "^5.2.0", "@aws-sdk/types": "^3.222.0", "tslib": "^2.6.2" } }, "sha512-+iWb8qaHLYKrNvGRbiYRHSdKRWhto5XlZUEBwDjYNf+ly5SVYG6zEoYIdxvf5R3zyeP16w4PLBn3rH1xc74Rag=="],
+
+ "@aws-crypto/sha1-browser": ["@aws-crypto/sha1-browser@5.2.0", "", { "dependencies": { "@aws-crypto/supports-web-crypto": "^5.2.0", "@aws-crypto/util": "^5.2.0", "@aws-sdk/types": "^3.222.0", "@aws-sdk/util-locate-window": "^3.0.0", "@smithy/util-utf8": "^2.0.0", "tslib": "^2.6.2" } }, "sha512-OH6lveCFfcDjX4dbAvCFSYUjJZjDr/3XJ3xHtjn3Oj5b9RjojQo8npoLeA/bNwkOkrSQ0wgrHzXk4tDRxGKJeg=="],
+
+ "@aws-crypto/sha256-browser": ["@aws-crypto/sha256-browser@5.2.0", "", { "dependencies": { "@aws-crypto/sha256-js": "^5.2.0", "@aws-crypto/supports-web-crypto": "^5.2.0", "@aws-crypto/util": "^5.2.0", "@aws-sdk/types": "^3.222.0", "@aws-sdk/util-locate-window": "^3.0.0", "@smithy/util-utf8": "^2.0.0", "tslib": "^2.6.2" } }, "sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw=="],
+
+ "@aws-crypto/sha256-js": ["@aws-crypto/sha256-js@5.2.0", "", { "dependencies": { "@aws-crypto/util": "^5.2.0", "@aws-sdk/types": "^3.222.0", "tslib": "^2.6.2" } }, "sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA=="],
+
+ "@aws-crypto/supports-web-crypto": ["@aws-crypto/supports-web-crypto@5.2.0", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg=="],
+
+ "@aws-crypto/util": ["@aws-crypto/util@5.2.0", "", { "dependencies": { "@aws-sdk/types": "^3.222.0", "@smithy/util-utf8": "^2.0.0", "tslib": "^2.6.2" } }, "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ=="],
+
+ "@aws-sdk/client-s3": ["@aws-sdk/client-s3@3.940.0", "", { "dependencies": { "@aws-crypto/sha1-browser": "5.2.0", "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", "@aws-sdk/core": "3.940.0", "@aws-sdk/credential-provider-node": "3.940.0", "@aws-sdk/middleware-bucket-endpoint": "3.936.0", "@aws-sdk/middleware-expect-continue": "3.936.0", "@aws-sdk/middleware-flexible-checksums": "3.940.0", "@aws-sdk/middleware-host-header": "3.936.0", "@aws-sdk/middleware-location-constraint": "3.936.0", "@aws-sdk/middleware-logger": "3.936.0", "@aws-sdk/middleware-recursion-detection": "3.936.0", "@aws-sdk/middleware-sdk-s3": "3.940.0", "@aws-sdk/middleware-ssec": "3.936.0", "@aws-sdk/middleware-user-agent": "3.940.0", "@aws-sdk/region-config-resolver": "3.936.0", "@aws-sdk/signature-v4-multi-region": "3.940.0", "@aws-sdk/types": "3.936.0", "@aws-sdk/util-endpoints": "3.936.0", "@aws-sdk/util-user-agent-browser": "3.936.0", "@aws-sdk/util-user-agent-node": "3.940.0", "@smithy/config-resolver": "^4.4.3", "@smithy/core": "^3.18.5", "@smithy/eventstream-serde-browser": "^4.2.5", "@smithy/eventstream-serde-config-resolver": "^4.3.5", "@smithy/eventstream-serde-node": "^4.2.5", "@smithy/fetch-http-handler": "^5.3.6", "@smithy/hash-blob-browser": "^4.2.6", "@smithy/hash-node": "^4.2.5", "@smithy/hash-stream-node": "^4.2.5", "@smithy/invalid-dependency": "^4.2.5", "@smithy/md5-js": "^4.2.5", "@smithy/middleware-content-length": "^4.2.5", "@smithy/middleware-endpoint": "^4.3.12", "@smithy/middleware-retry": "^4.4.12", "@smithy/middleware-serde": "^4.2.6", "@smithy/middleware-stack": "^4.2.5", "@smithy/node-config-provider": "^4.3.5", "@smithy/node-http-handler": "^4.4.5", "@smithy/protocol-http": "^5.3.5", "@smithy/smithy-client": "^4.9.8", "@smithy/types": "^4.9.0", "@smithy/url-parser": "^4.2.5", "@smithy/util-base64": "^4.3.0", "@smithy/util-body-length-browser": "^4.2.0", "@smithy/util-body-length-node": "^4.2.1", "@smithy/util-defaults-mode-browser": "^4.3.11", "@smithy/util-defaults-mode-node": "^4.2.14", "@smithy/util-endpoints": "^3.2.5", "@smithy/util-middleware": "^4.2.5", "@smithy/util-retry": "^4.2.5", "@smithy/util-stream": "^4.5.6", "@smithy/util-utf8": "^4.2.0", "@smithy/util-waiter": "^4.2.5", "tslib": "^2.6.2" } }, "sha512-Wi4qnBT6shRRMXuuTgjMFTU5mu2KFWisgcigEMPptjPGUtJvBVi4PTGgS64qsLoUk/obqDAyOBOfEtRZ2ddC2w=="],
+
+ "@aws-sdk/client-sso": ["@aws-sdk/client-sso@3.940.0", "", { "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", "@aws-sdk/core": "3.940.0", "@aws-sdk/middleware-host-header": "3.936.0", "@aws-sdk/middleware-logger": "3.936.0", "@aws-sdk/middleware-recursion-detection": "3.936.0", "@aws-sdk/middleware-user-agent": "3.940.0", "@aws-sdk/region-config-resolver": "3.936.0", "@aws-sdk/types": "3.936.0", "@aws-sdk/util-endpoints": "3.936.0", "@aws-sdk/util-user-agent-browser": "3.936.0", "@aws-sdk/util-user-agent-node": "3.940.0", "@smithy/config-resolver": "^4.4.3", "@smithy/core": "^3.18.5", "@smithy/fetch-http-handler": "^5.3.6", "@smithy/hash-node": "^4.2.5", "@smithy/invalid-dependency": "^4.2.5", "@smithy/middleware-content-length": "^4.2.5", "@smithy/middleware-endpoint": "^4.3.12", "@smithy/middleware-retry": "^4.4.12", "@smithy/middleware-serde": "^4.2.6", "@smithy/middleware-stack": "^4.2.5", "@smithy/node-config-provider": "^4.3.5", "@smithy/node-http-handler": "^4.4.5", "@smithy/protocol-http": "^5.3.5", "@smithy/smithy-client": "^4.9.8", "@smithy/types": "^4.9.0", "@smithy/url-parser": "^4.2.5", "@smithy/util-base64": "^4.3.0", "@smithy/util-body-length-browser": "^4.2.0", "@smithy/util-body-length-node": "^4.2.1", "@smithy/util-defaults-mode-browser": "^4.3.11", "@smithy/util-defaults-mode-node": "^4.2.14", "@smithy/util-endpoints": "^3.2.5", "@smithy/util-middleware": "^4.2.5", "@smithy/util-retry": "^4.2.5", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" } }, "sha512-SdqJGWVhmIURvCSgkDditHRO+ozubwZk9aCX9MK8qxyOndhobCndW1ozl3hX9psvMAo9Q4bppjuqy/GHWpjB+A=="],
+
+ "@aws-sdk/core": ["@aws-sdk/core@3.940.0", "", { "dependencies": { "@aws-sdk/types": "3.936.0", "@aws-sdk/xml-builder": "3.930.0", "@smithy/core": "^3.18.5", "@smithy/node-config-provider": "^4.3.5", "@smithy/property-provider": "^4.2.5", "@smithy/protocol-http": "^5.3.5", "@smithy/signature-v4": "^5.3.5", "@smithy/smithy-client": "^4.9.8", "@smithy/types": "^4.9.0", "@smithy/util-base64": "^4.3.0", "@smithy/util-middleware": "^4.2.5", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" } }, "sha512-KsGD2FLaX5ngJao1mHxodIVU9VYd1E8810fcYiGwO1PFHDzf5BEkp6D9IdMeQwT8Q6JLYtiiT1Y/o3UCScnGoA=="],
+
+ "@aws-sdk/credential-provider-env": ["@aws-sdk/credential-provider-env@3.940.0", "", { "dependencies": { "@aws-sdk/core": "3.940.0", "@aws-sdk/types": "3.936.0", "@smithy/property-provider": "^4.2.5", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-/G3l5/wbZYP2XEQiOoIkRJmlv15f1P3MSd1a0gz27lHEMrOJOGq66rF1Ca4OJLzapWt3Fy9BPrZAepoAX11kMw=="],
+
+ "@aws-sdk/credential-provider-http": ["@aws-sdk/credential-provider-http@3.940.0", "", { "dependencies": { "@aws-sdk/core": "3.940.0", "@aws-sdk/types": "3.936.0", "@smithy/fetch-http-handler": "^5.3.6", "@smithy/node-http-handler": "^4.4.5", "@smithy/property-provider": "^4.2.5", "@smithy/protocol-http": "^5.3.5", "@smithy/smithy-client": "^4.9.8", "@smithy/types": "^4.9.0", "@smithy/util-stream": "^4.5.6", "tslib": "^2.6.2" } }, "sha512-dOrc03DHElNBD6N9Okt4U0zhrG4Wix5QUBSZPr5VN8SvmjD9dkrrxOkkJaMCl/bzrW7kbQEp7LuBdbxArMmOZQ=="],
+
+ "@aws-sdk/credential-provider-ini": ["@aws-sdk/credential-provider-ini@3.940.0", "", { "dependencies": { "@aws-sdk/core": "3.940.0", "@aws-sdk/credential-provider-env": "3.940.0", "@aws-sdk/credential-provider-http": "3.940.0", "@aws-sdk/credential-provider-login": "3.940.0", "@aws-sdk/credential-provider-process": "3.940.0", "@aws-sdk/credential-provider-sso": "3.940.0", "@aws-sdk/credential-provider-web-identity": "3.940.0", "@aws-sdk/nested-clients": "3.940.0", "@aws-sdk/types": "3.936.0", "@smithy/credential-provider-imds": "^4.2.5", "@smithy/property-provider": "^4.2.5", "@smithy/shared-ini-file-loader": "^4.4.0", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-gn7PJQEzb/cnInNFTOaDoCN/hOKqMejNmLof1W5VW95Qk0TPO52lH8R4RmJPnRrwFMswOWswTOpR1roKNLIrcw=="],
+
+ "@aws-sdk/credential-provider-login": ["@aws-sdk/credential-provider-login@3.940.0", "", { "dependencies": { "@aws-sdk/core": "3.940.0", "@aws-sdk/nested-clients": "3.940.0", "@aws-sdk/types": "3.936.0", "@smithy/property-provider": "^4.2.5", "@smithy/protocol-http": "^5.3.5", "@smithy/shared-ini-file-loader": "^4.4.0", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-fOKC3VZkwa9T2l2VFKWRtfHQPQuISqqNl35ZhcXjWKVwRwl/o7THPMkqI4XwgT2noGa7LLYVbWMwnsgSsBqglg=="],
+
+ "@aws-sdk/credential-provider-node": ["@aws-sdk/credential-provider-node@3.940.0", "", { "dependencies": { "@aws-sdk/credential-provider-env": "3.940.0", "@aws-sdk/credential-provider-http": "3.940.0", "@aws-sdk/credential-provider-ini": "3.940.0", "@aws-sdk/credential-provider-process": "3.940.0", "@aws-sdk/credential-provider-sso": "3.940.0", "@aws-sdk/credential-provider-web-identity": "3.940.0", "@aws-sdk/types": "3.936.0", "@smithy/credential-provider-imds": "^4.2.5", "@smithy/property-provider": "^4.2.5", "@smithy/shared-ini-file-loader": "^4.4.0", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-M8NFAvgvO6xZjiti5kztFiAYmSmSlG3eUfr4ZHSfXYZUA/KUdZU/D6xJyaLnU8cYRWBludb6K9XPKKVwKfqm4g=="],
+
+ "@aws-sdk/credential-provider-process": ["@aws-sdk/credential-provider-process@3.940.0", "", { "dependencies": { "@aws-sdk/core": "3.940.0", "@aws-sdk/types": "3.936.0", "@smithy/property-provider": "^4.2.5", "@smithy/shared-ini-file-loader": "^4.4.0", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-pILBzt5/TYCqRsJb7vZlxmRIe0/T+FZPeml417EK75060ajDGnVJjHcuVdLVIeKoTKm9gmJc9l45gon6PbHyUQ=="],
+
+ "@aws-sdk/credential-provider-sso": ["@aws-sdk/credential-provider-sso@3.940.0", "", { "dependencies": { "@aws-sdk/client-sso": "3.940.0", "@aws-sdk/core": "3.940.0", "@aws-sdk/token-providers": "3.940.0", "@aws-sdk/types": "3.936.0", "@smithy/property-provider": "^4.2.5", "@smithy/shared-ini-file-loader": "^4.4.0", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-q6JMHIkBlDCOMnA3RAzf8cGfup+8ukhhb50fNpghMs1SNBGhanmaMbZSgLigBRsPQW7fOk2l8jnzdVLS+BB9Uw=="],
+
+ "@aws-sdk/credential-provider-web-identity": ["@aws-sdk/credential-provider-web-identity@3.940.0", "", { "dependencies": { "@aws-sdk/core": "3.940.0", "@aws-sdk/nested-clients": "3.940.0", "@aws-sdk/types": "3.936.0", "@smithy/property-provider": "^4.2.5", "@smithy/shared-ini-file-loader": "^4.4.0", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-9QLTIkDJHHaYL0nyymO41H8g3ui1yz6Y3GmAN1gYQa6plXisuFBnGAbmKVj7zNvjWaOKdF0dV3dd3AFKEDoJ/w=="],
+
+ "@aws-sdk/lib-storage": ["@aws-sdk/lib-storage@3.940.0", "", { "dependencies": { "@smithy/abort-controller": "^4.2.5", "@smithy/middleware-endpoint": "^4.3.12", "@smithy/smithy-client": "^4.9.8", "buffer": "5.6.0", "events": "3.3.0", "stream-browserify": "3.0.0", "tslib": "^2.6.2" }, "peerDependencies": { "@aws-sdk/client-s3": "^3.940.0" } }, "sha512-4pHgz9tuFJNSy/qoTbW5FqXPjoR4B18jB656UsE+TP5GWd7EPx7m4F0EUwIsD3OF5+KPiiyICi8zkxOs7erfQw=="],
+
+ "@aws-sdk/middleware-bucket-endpoint": ["@aws-sdk/middleware-bucket-endpoint@3.936.0", "", { "dependencies": { "@aws-sdk/types": "3.936.0", "@aws-sdk/util-arn-parser": "3.893.0", "@smithy/node-config-provider": "^4.3.5", "@smithy/protocol-http": "^5.3.5", "@smithy/types": "^4.9.0", "@smithy/util-config-provider": "^4.2.0", "tslib": "^2.6.2" } }, "sha512-XLSVVfAorUxZh6dzF+HTOp4R1B5EQcdpGcPliWr0KUj2jukgjZEcqbBmjyMF/p9bmyQsONX80iURF1HLAlW0qg=="],
+
+ "@aws-sdk/middleware-expect-continue": ["@aws-sdk/middleware-expect-continue@3.936.0", "", { "dependencies": { "@aws-sdk/types": "3.936.0", "@smithy/protocol-http": "^5.3.5", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-Eb4ELAC23bEQLJmUMYnPWcjD3FZIsmz2svDiXEcxRkQU9r7NRID7pM7C5NPH94wOfiCk0b2Y8rVyFXW0lGQwbA=="],
+
+ "@aws-sdk/middleware-flexible-checksums": ["@aws-sdk/middleware-flexible-checksums@3.940.0", "", { "dependencies": { "@aws-crypto/crc32": "5.2.0", "@aws-crypto/crc32c": "5.2.0", "@aws-crypto/util": "5.2.0", "@aws-sdk/core": "3.940.0", "@aws-sdk/types": "3.936.0", "@smithy/is-array-buffer": "^4.2.0", "@smithy/node-config-provider": "^4.3.5", "@smithy/protocol-http": "^5.3.5", "@smithy/types": "^4.9.0", "@smithy/util-middleware": "^4.2.5", "@smithy/util-stream": "^4.5.6", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" } }, "sha512-WdsxDAVj5qaa5ApAP+JbpCOMHFGSmzjs2Y2OBSbWPeR9Ew7t/Okj+kUub94QJPsgzhvU1/cqNejhsw5VxeFKSQ=="],
+
+ "@aws-sdk/middleware-host-header": ["@aws-sdk/middleware-host-header@3.936.0", "", { "dependencies": { "@aws-sdk/types": "3.936.0", "@smithy/protocol-http": "^5.3.5", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-tAaObaAnsP1XnLGndfkGWFuzrJYuk9W0b/nLvol66t8FZExIAf/WdkT2NNAWOYxljVs++oHnyHBCxIlaHrzSiw=="],
+
+ "@aws-sdk/middleware-location-constraint": ["@aws-sdk/middleware-location-constraint@3.936.0", "", { "dependencies": { "@aws-sdk/types": "3.936.0", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-SCMPenDtQMd9o5da9JzkHz838w3327iqXk3cbNnXWqnNRx6unyW8FL0DZ84gIY12kAyVHz5WEqlWuekc15ehfw=="],
+
+ "@aws-sdk/middleware-logger": ["@aws-sdk/middleware-logger@3.936.0", "", { "dependencies": { "@aws-sdk/types": "3.936.0", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-aPSJ12d3a3Ea5nyEnLbijCaaYJT2QjQ9iW+zGh5QcZYXmOGWbKVyPSxmVOboZQG+c1M8t6d2O7tqrwzIq8L8qw=="],
+
+ "@aws-sdk/middleware-recursion-detection": ["@aws-sdk/middleware-recursion-detection@3.936.0", "", { "dependencies": { "@aws-sdk/types": "3.936.0", "@aws/lambda-invoke-store": "^0.2.0", "@smithy/protocol-http": "^5.3.5", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-l4aGbHpXM45YNgXggIux1HgsCVAvvBoqHPkqLnqMl9QVapfuSTjJHfDYDsx1Xxct6/m7qSMUzanBALhiaGO2fA=="],
+
+ "@aws-sdk/middleware-sdk-s3": ["@aws-sdk/middleware-sdk-s3@3.940.0", "", { "dependencies": { "@aws-sdk/core": "3.940.0", "@aws-sdk/types": "3.936.0", "@aws-sdk/util-arn-parser": "3.893.0", "@smithy/core": "^3.18.5", "@smithy/node-config-provider": "^4.3.5", "@smithy/protocol-http": "^5.3.5", "@smithy/signature-v4": "^5.3.5", "@smithy/smithy-client": "^4.9.8", "@smithy/types": "^4.9.0", "@smithy/util-config-provider": "^4.2.0", "@smithy/util-middleware": "^4.2.5", "@smithy/util-stream": "^4.5.6", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" } }, "sha512-JYkLjgS1wLoKHJ40G63+afM1ehmsPsjcmrHirKh8+kSCx4ip7+nL1e/twV4Zicxr8RJi9Y0Ahq5mDvneilDDKQ=="],
+
+ "@aws-sdk/middleware-ssec": ["@aws-sdk/middleware-ssec@3.936.0", "", { "dependencies": { "@aws-sdk/types": "3.936.0", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-/GLC9lZdVp05ozRik5KsuODR/N7j+W+2TbfdFL3iS+7un+gnP6hC8RDOZd6WhpZp7drXQ9guKiTAxkZQwzS8DA=="],
+
+ "@aws-sdk/middleware-user-agent": ["@aws-sdk/middleware-user-agent@3.940.0", "", { "dependencies": { "@aws-sdk/core": "3.940.0", "@aws-sdk/types": "3.936.0", "@aws-sdk/util-endpoints": "3.936.0", "@smithy/core": "^3.18.5", "@smithy/protocol-http": "^5.3.5", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-nJbLrUj6fY+l2W2rIB9P4Qvpiy0tnTdg/dmixRxrU1z3e8wBdspJlyE+AZN4fuVbeL6rrRrO/zxQC1bB3cw5IA=="],
+
+ "@aws-sdk/nested-clients": ["@aws-sdk/nested-clients@3.940.0", "", { "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", "@aws-sdk/core": "3.940.0", "@aws-sdk/middleware-host-header": "3.936.0", "@aws-sdk/middleware-logger": "3.936.0", "@aws-sdk/middleware-recursion-detection": "3.936.0", "@aws-sdk/middleware-user-agent": "3.940.0", "@aws-sdk/region-config-resolver": "3.936.0", "@aws-sdk/types": "3.936.0", "@aws-sdk/util-endpoints": "3.936.0", "@aws-sdk/util-user-agent-browser": "3.936.0", "@aws-sdk/util-user-agent-node": "3.940.0", "@smithy/config-resolver": "^4.4.3", "@smithy/core": "^3.18.5", "@smithy/fetch-http-handler": "^5.3.6", "@smithy/hash-node": "^4.2.5", "@smithy/invalid-dependency": "^4.2.5", "@smithy/middleware-content-length": "^4.2.5", "@smithy/middleware-endpoint": "^4.3.12", "@smithy/middleware-retry": "^4.4.12", "@smithy/middleware-serde": "^4.2.6", "@smithy/middleware-stack": "^4.2.5", "@smithy/node-config-provider": "^4.3.5", "@smithy/node-http-handler": "^4.4.5", "@smithy/protocol-http": "^5.3.5", "@smithy/smithy-client": "^4.9.8", "@smithy/types": "^4.9.0", "@smithy/url-parser": "^4.2.5", "@smithy/util-base64": "^4.3.0", "@smithy/util-body-length-browser": "^4.2.0", "@smithy/util-body-length-node": "^4.2.1", "@smithy/util-defaults-mode-browser": "^4.3.11", "@smithy/util-defaults-mode-node": "^4.2.14", "@smithy/util-endpoints": "^3.2.5", "@smithy/util-middleware": "^4.2.5", "@smithy/util-retry": "^4.2.5", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" } }, "sha512-x0mdv6DkjXqXEcQj3URbCltEzW6hoy/1uIL+i8gExP6YKrnhiZ7SzuB4gPls2UOpK5UqLiqXjhRLfBb1C9i4Dw=="],
+
+ "@aws-sdk/region-config-resolver": ["@aws-sdk/region-config-resolver@3.936.0", "", { "dependencies": { "@aws-sdk/types": "3.936.0", "@smithy/config-resolver": "^4.4.3", "@smithy/node-config-provider": "^4.3.5", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-wOKhzzWsshXGduxO4pqSiNyL9oUtk4BEvjWm9aaq6Hmfdoydq6v6t0rAGHWPjFwy9z2haovGRi3C8IxdMB4muw=="],
+
+ "@aws-sdk/signature-v4-multi-region": ["@aws-sdk/signature-v4-multi-region@3.940.0", "", { "dependencies": { "@aws-sdk/middleware-sdk-s3": "3.940.0", "@aws-sdk/types": "3.936.0", "@smithy/protocol-http": "^5.3.5", "@smithy/signature-v4": "^5.3.5", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-ugHZEoktD/bG6mdgmhzLDjMP2VrYRAUPRPF1DpCyiZexkH7DCU7XrSJyXMvkcf0DHV+URk0q2sLf/oqn1D2uYw=="],
+
+ "@aws-sdk/token-providers": ["@aws-sdk/token-providers@3.940.0", "", { "dependencies": { "@aws-sdk/core": "3.940.0", "@aws-sdk/nested-clients": "3.940.0", "@aws-sdk/types": "3.936.0", "@smithy/property-provider": "^4.2.5", "@smithy/shared-ini-file-loader": "^4.4.0", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-k5qbRe/ZFjW9oWEdzLIa2twRVIEx7p/9rutofyrRysrtEnYh3HAWCngAnwbgKMoiwa806UzcTRx0TjyEpnKcCg=="],
+
+ "@aws-sdk/types": ["@aws-sdk/types@3.936.0", "", { "dependencies": { "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-uz0/VlMd2pP5MepdrHizd+T+OKfyK4r3OA9JI+L/lPKg0YFQosdJNCKisr6o70E3dh8iMpFYxF1UN/4uZsyARg=="],
+
+ "@aws-sdk/util-arn-parser": ["@aws-sdk/util-arn-parser@3.893.0", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-u8H4f2Zsi19DGnwj5FSZzDMhytYF/bCh37vAtBsn3cNDL3YG578X5oc+wSX54pM3tOxS+NY7tvOAo52SW7koUA=="],
+
+ "@aws-sdk/util-endpoints": ["@aws-sdk/util-endpoints@3.936.0", "", { "dependencies": { "@aws-sdk/types": "3.936.0", "@smithy/types": "^4.9.0", "@smithy/url-parser": "^4.2.5", "@smithy/util-endpoints": "^3.2.5", "tslib": "^2.6.2" } }, "sha512-0Zx3Ntdpu+z9Wlm7JKUBOzS9EunwKAb4KdGUQQxDqh5Lc3ta5uBoub+FgmVuzwnmBu9U1Os8UuwVTH0Lgu+P5w=="],
+
+ "@aws-sdk/util-locate-window": ["@aws-sdk/util-locate-window@3.893.0", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-T89pFfgat6c8nMmpI8eKjBcDcgJq36+m9oiXbcUzeU55MP9ZuGgBomGjGnHaEyF36jenW9gmg3NfZDm0AO2XPg=="],
+
+ "@aws-sdk/util-user-agent-browser": ["@aws-sdk/util-user-agent-browser@3.936.0", "", { "dependencies": { "@aws-sdk/types": "3.936.0", "@smithy/types": "^4.9.0", "bowser": "^2.11.0", "tslib": "^2.6.2" } }, "sha512-eZ/XF6NxMtu+iCma58GRNRxSq4lHo6zHQLOZRIeL/ghqYJirqHdenMOwrzPettj60KWlv827RVebP9oNVrwZbw=="],
+
+ "@aws-sdk/util-user-agent-node": ["@aws-sdk/util-user-agent-node@3.940.0", "", { "dependencies": { "@aws-sdk/middleware-user-agent": "3.940.0", "@aws-sdk/types": "3.936.0", "@smithy/node-config-provider": "^4.3.5", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" }, "peerDependencies": { "aws-crt": ">=1.0.0" }, "optionalPeers": ["aws-crt"] }, "sha512-dlD/F+L/jN26I8Zg5x0oDGJiA+/WEQmnSE27fi5ydvYnpfQLwThtQo9SsNS47XSR/SOULaaoC9qx929rZuo74A=="],
+
+ "@aws-sdk/xml-builder": ["@aws-sdk/xml-builder@3.930.0", "", { "dependencies": { "@smithy/types": "^4.9.0", "fast-xml-parser": "5.2.5", "tslib": "^2.6.2" } }, "sha512-YIfkD17GocxdmlUVc3ia52QhcWuRIUJonbF8A2CYfcWNV3HzvAqpcPeC0bYUhkK+8e8YO1ARnLKZQE0TlwzorA=="],
+
+ "@aws/lambda-invoke-store": ["@aws/lambda-invoke-store@0.2.1", "", {}, "sha512-sIyFcoPZkTtNu9xFeEoynMef3bPJIAbOfUh+ueYcfhVl6xm2VRtMcMclSxmZCMnHHd4hlYKJeq/aggmBEWynww=="],
+
"@babel/code-frame": ["@babel/code-frame@7.27.1", "", { "dependencies": { "@babel/helper-validator-identifier": "^7.27.1", "js-tokens": "^4.0.0", "picocolors": "^1.1.1" } }, "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg=="],
+ "@babel/compat-data": ["@babel/compat-data@7.28.5", "", {}, "sha512-6uFXyCayocRbqhZOB+6XcuZbkMNimwfVGFji8CTZnCzOHVGvDqzvitu1re2AU5LROliz7eQPhB8CpAMvnx9EjA=="],
+
+ "@babel/core": ["@babel/core@7.28.5", "", { "dependencies": { "@babel/code-frame": "^7.27.1", "@babel/generator": "^7.28.5", "@babel/helper-compilation-targets": "^7.27.2", "@babel/helper-module-transforms": "^7.28.3", "@babel/helpers": "^7.28.4", "@babel/parser": "^7.28.5", "@babel/template": "^7.27.2", "@babel/traverse": "^7.28.5", "@babel/types": "^7.28.5", "@jridgewell/remapping": "^2.3.5", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", "json5": "^2.2.3", "semver": "^6.3.1" } }, "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw=="],
+
"@babel/generator": ["@babel/generator@7.28.3", "", { "dependencies": { "@babel/parser": "^7.28.3", "@babel/types": "^7.28.2", "@jridgewell/gen-mapping": "^0.3.12", "@jridgewell/trace-mapping": "^0.3.28", "jsesc": "^3.0.2" } }, "sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw=="],
+ "@babel/helper-compilation-targets": ["@babel/helper-compilation-targets@7.27.2", "", { "dependencies": { "@babel/compat-data": "^7.27.2", "@babel/helper-validator-option": "^7.27.1", "browserslist": "^4.24.0", "lru-cache": "^5.1.1", "semver": "^6.3.1" } }, "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ=="],
+
+ "@babel/helper-globals": ["@babel/helper-globals@7.28.0", "", {}, "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw=="],
+
+ "@babel/helper-module-imports": ["@babel/helper-module-imports@7.27.1", "", { "dependencies": { "@babel/traverse": "^7.27.1", "@babel/types": "^7.27.1" } }, "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w=="],
+
+ "@babel/helper-module-transforms": ["@babel/helper-module-transforms@7.28.3", "", { "dependencies": { "@babel/helper-module-imports": "^7.27.1", "@babel/helper-validator-identifier": "^7.27.1", "@babel/traverse": "^7.28.3" }, "peerDependencies": { "@babel/core": "^7.0.0" } }, "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw=="],
+
"@babel/helper-string-parser": ["@babel/helper-string-parser@7.27.1", "", {}, "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA=="],
"@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.27.1", "", {}, "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow=="],
+ "@babel/helper-validator-option": ["@babel/helper-validator-option@7.27.1", "", {}, "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg=="],
+
+ "@babel/helpers": ["@babel/helpers@7.28.4", "", { "dependencies": { "@babel/template": "^7.27.2", "@babel/types": "^7.28.4" } }, "sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w=="],
+
"@babel/parser": ["@babel/parser@7.28.4", "", { "dependencies": { "@babel/types": "^7.28.4" }, "bin": "./bin/babel-parser.js" }, "sha512-yZbBqeM6TkpP9du/I2pUZnJsRMGGvOuIrhjzC1AwHwW+6he4mni6Bp/m8ijn0iOuZuPI2BfkCoSRunpyjnrQKg=="],
"@babel/runtime": ["@babel/runtime@7.28.4", "", {}, "sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ=="],
+ "@babel/template": ["@babel/template@7.27.2", "", { "dependencies": { "@babel/code-frame": "^7.27.1", "@babel/parser": "^7.27.2", "@babel/types": "^7.27.1" } }, "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw=="],
+
+ "@babel/traverse": ["@babel/traverse@7.28.5", "", { "dependencies": { "@babel/code-frame": "^7.27.1", "@babel/generator": "^7.28.5", "@babel/helper-globals": "^7.28.0", "@babel/parser": "^7.28.5", "@babel/template": "^7.27.2", "@babel/types": "^7.28.5", "debug": "^4.3.1" } }, "sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ=="],
+
"@babel/types": ["@babel/types@7.28.4", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.27.1" } }, "sha512-bkFqkLhh3pMBUQQkpVgWDWq/lqzc2678eUyDlTBhRqhCHFguYYGM0Efga7tYk4TogG/3x0EEl66/OQ+WGbWB/Q=="],
+ "@biomejs/biome": ["@biomejs/biome@2.3.2", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.3.2", "@biomejs/cli-darwin-x64": "2.3.2", "@biomejs/cli-linux-arm64": "2.3.2", "@biomejs/cli-linux-arm64-musl": "2.3.2", "@biomejs/cli-linux-x64": "2.3.2", "@biomejs/cli-linux-x64-musl": "2.3.2", "@biomejs/cli-win32-arm64": "2.3.2", "@biomejs/cli-win32-x64": "2.3.2" }, "bin": { "biome": "bin/biome" } }, "sha512-8e9tzamuDycx7fdrcJ/F/GDZ8SYukc5ud6tDicjjFqURKYFSWMl0H0iXNXZEGmcmNUmABgGuHThPykcM41INgg=="],
+
+ "@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.3.2", "", { "os": "darwin", "cpu": "arm64" }, "sha512-4LECm4kc3If0JISai4c3KWQzukoUdpxy4fRzlrPcrdMSRFksR9ZoXK7JBcPuLBmd2SoT4/d7CQS33VnZpgBjew=="],
+
+ "@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@2.3.2", "", { "os": "darwin", "cpu": "x64" }, "sha512-jNMnfwHT4N3wi+ypRfMTjLGnDmKYGzxVr1EYAPBcauRcDnICFXN81wD6wxJcSUrLynoyyYCdfW6vJHS/IAoTDA=="],
+
+ "@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@2.3.2", "", { "os": "linux", "cpu": "arm64" }, "sha512-amnqvk+gWybbQleRRq8TMe0rIv7GHss8mFJEaGuEZYWg1Tw14YKOkeo8h6pf1c+d3qR+JU4iT9KXnBKGON4klw=="],
+
+ "@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@2.3.2", "", { "os": "linux", "cpu": "arm64" }, "sha512-2Zz4usDG1GTTPQnliIeNx6eVGGP2ry5vE/v39nT73a3cKN6t5H5XxjcEoZZh62uVZvED7hXXikclvI64vZkYqw=="],
+
+ "@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@2.3.2", "", { "os": "linux", "cpu": "x64" }, "sha512-8BG/vRAhFz1pmuyd24FQPhNeueLqPtwvZk6yblABY2gzL2H8fLQAF/Z2OPIc+BPIVPld+8cSiKY/KFh6k81xfA=="],
+
+ "@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@2.3.2", "", { "os": "linux", "cpu": "x64" }, "sha512-gzB19MpRdTuOuLtPpFBGrV3Lq424gHyq2lFj8wfX9tvLMLdmA/R9C7k/mqBp/spcbWuHeIEKgEs3RviOPcWGBA=="],
+
+ "@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@2.3.2", "", { "os": "win32", "cpu": "arm64" }, "sha512-lCruqQlfWjhMlOdyf5pDHOxoNm4WoyY2vZ4YN33/nuZBRstVDuqPPjS0yBkbUlLEte11FbpW+wWSlfnZfSIZvg=="],
+
+ "@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.3.2", "", { "os": "win32", "cpu": "x64" }, "sha512-6Ee9P26DTb4D8sN9nXxgbi9Dw5vSOfH98M7UlmkjKB2vtUbrRqCbZiNfryGiwnPIpd6YUoTl7rLVD2/x1CyEHQ=="],
+
"@blink-sdk/compute": ["@blink-sdk/compute@workspace:packages/compute"],
"@blink-sdk/compute-protocol": ["@blink-sdk/compute-protocol@workspace:packages/compute-protocol"],
@@ -264,22 +558,60 @@
"@blink-sdk/multiplexer": ["@blink-sdk/multiplexer@workspace:packages/multiplexer"],
+ "@blink-sdk/scout-agent": ["@blink-sdk/scout-agent@workspace:packages/scout-agent"],
+
"@blink-sdk/slack": ["@blink-sdk/slack@workspace:packages/slack"],
- "@blink.so/api": ["@blink.so/api@0.0.11", "", { "optionalDependencies": { "@blink-sdk/compute-protocol": ">= 0.0.2" }, "peerDependencies": { "ai": ">= 5", "react": ">= 18", "zod": ">= 4" }, "optionalPeers": ["react"] }, "sha512-4JW0fsGFn8IN5r+FpdbkqXkFqyCXQ8sDXoETdIBczLe3/+JP0Q2ItvN9XtR/eLNIshIL9Yz+gZtB6AVWQIcIWg=="],
+ "@blink.so/api": ["@blink.so/api@workspace:packages/api"],
+
+ "@blink.so/compute-protocol-worker": ["@blink.so/compute-protocol-worker@workspace:packages/compute-protocol-worker"],
+
+ "@blink.so/database": ["@blink.so/database@workspace:packages/database"],
+
+ "@blink.so/runtime": ["@blink.so/runtime@workspace:packages/runtime"],
+
+ "@blink.so/site": ["@blink.so/site@workspace:packages/site"],
"@blink/desktop": ["@blink/desktop@workspace:packages/desktop"],
"@borewit/text-codec": ["@borewit/text-codec@0.1.1", "", {}, "sha512-5L/uBxmjaCIX5h8Z+uu+kA9BQLkc/Wl06UGR5ajNRxu+/XjonB5i8JpgFMrPj3LXTCPA0pv8yxUvbUi+QthGGA=="],
+ "@braintree/sanitize-url": ["@braintree/sanitize-url@7.1.1", "", {}, "sha512-i1L7noDNxtFyL5DmZafWy1wRVhGehQmzZaz1HiN5e7iylJMSZR7ekOV7NsIqa5qBldlLrsKv4HbgFUVlQrz8Mw=="],
+
+ "@bufbuild/protobuf": ["@bufbuild/protobuf@2.10.1", "", {}, "sha512-ckS3+vyJb5qGpEYv/s1OebUHDi/xSNtfgw1wqKZo7MR9F2z+qXr0q5XagafAG/9O0QPVIUfST0smluYSTpYFkg=="],
+
+ "@chevrotain/cst-dts-gen": ["@chevrotain/cst-dts-gen@11.0.3", "", { "dependencies": { "@chevrotain/gast": "11.0.3", "@chevrotain/types": "11.0.3", "lodash-es": "4.17.21" } }, "sha512-BvIKpRLeS/8UbfxXxgC33xOumsacaeCKAjAeLyOn7Pcp95HiRbrpl14S+9vaZLolnbssPIUuiUd8IvgkRyt6NQ=="],
+
+ "@chevrotain/gast": ["@chevrotain/gast@11.0.3", "", { "dependencies": { "@chevrotain/types": "11.0.3", "lodash-es": "4.17.21" } }, "sha512-+qNfcoNk70PyS/uxmj3li5NiECO+2YKZZQMbmjTqRI3Qchu8Hig/Q9vgkHpI3alNjr7M+a2St5pw5w5F6NL5/Q=="],
+
+ "@chevrotain/regexp-to-ast": ["@chevrotain/regexp-to-ast@11.0.3", "", {}, "sha512-1fMHaBZxLFvWI067AVbGJav1eRY7N8DDvYCTwGBiE/ytKBgP8azTdgyrKyWZ9Mfh09eHWb5PgTSO8wi7U824RA=="],
+
+ "@chevrotain/types": ["@chevrotain/types@11.0.3", "", {}, "sha512-gsiM3G8b58kZC2HaWR50gu6Y1440cHiJ+i3JUvcp/35JchYejb2+5MVeJK0iKThYpAa/P2PYFV4hoi44HD+aHQ=="],
+
+ "@chevrotain/utils": ["@chevrotain/utils@11.0.3", "", {}, "sha512-YslZMgtJUyuMbZ+aKvfF3x1f5liK4mWNxghFRv7jqRR9C3R3fAOGTTKvxXDa2Y1s9zSbcpuO0cAxDYsc9SrXoQ=="],
+
"@clack/core": ["@clack/core@0.5.0", "", { "dependencies": { "picocolors": "^1.0.0", "sisteransi": "^1.0.5" } }, "sha512-p3y0FIOwaYRUPRcMO7+dlmLh8PSRcrjuTndsiA0WAFbWES0mLZlrjVoBRZ9DzkPFJZG6KGkJmoEAY0ZcVWTkow=="],
"@clack/prompts": ["@clack/prompts@0.11.0", "", { "dependencies": { "@clack/core": "0.5.0", "picocolors": "^1.0.0", "sisteransi": "^1.0.5" } }, "sha512-pMN5FcrEw9hUkZA4f+zLlzivQSeQf5dRGJjSUbvVYDLvpKCdQx5OaknvKzgbtXOizhP+SJJJjqEbOe55uKKfAw=="],
+ "@cloudflare/workers-types": ["@cloudflare/workers-types@4.20251211.0", "", {}, "sha512-e87o6KbelCz7dnI5ngrGT2ca15vJZ+COb2eqJ52iDHmOaujyC6aYZ71e2vor8X6V9T6tcDElC5sAqPR93j09EA=="],
+
"@colors/colors": ["@colors/colors@1.5.0", "", {}, "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ=="],
+ "@daytonaio/api-client": ["@daytonaio/api-client@0.117.0", "", { "dependencies": { "axios": "^1.6.1" } }, "sha512-xXowLiOH6KXiQ83gQAlXCaNB6MV3FA8e3dYx4aUerxiWnSI2WO638LLvHrw6i4MsAfweRgIEdOtEuWEpZMJVBw=="],
+
+ "@daytonaio/sdk": ["@daytonaio/sdk@0.117.0", "", { "dependencies": { "@aws-sdk/client-s3": "^3.787.0", "@aws-sdk/lib-storage": "^3.798.0", "@daytonaio/api-client": "0.117.0", "@daytonaio/toolbox-api-client": "0.117.0", "@iarna/toml": "^2.2.5", "axios": "^1.11.0", "busboy": "^1.0.0", "dotenv": "^17.0.1", "expand-tilde": "^2.0.2", "fast-glob": "^3.3.0", "form-data": "^4.0.4", "isomorphic-ws": "^5.0.0", "pathe": "^2.0.3", "shell-quote": "^1.8.2", "tar": "^6.2.0" } }, "sha512-Ub9ttABhDJRuz0j3irHCh6kwTfZ0hpDsbl5dBf8l37bZz2tYMhyUlacjBmKOnhoP+/a8NiXdTh2euI5i/U+RHw=="],
+
+ "@daytonaio/toolbox-api-client": ["@daytonaio/toolbox-api-client@0.117.0", "", { "dependencies": { "axios": "^1.6.1" } }, "sha512-FF6zrLsUnodNxw4Bpk9P2/HZmjDSv3Xk4My8jBN+ZpEeUStoLHtzvCX95MklKGDee+/THRMFJ9rAPT5pXEQ+Cg=="],
+
"@develar/schema-utils": ["@develar/schema-utils@2.6.5", "", { "dependencies": { "ajv": "^6.12.0", "ajv-keywords": "^3.4.1" } }, "sha512-0cp4PsWQ/9avqTVMCtZ+GirikIA36ikvjtHweU4/j8yLtgObI0+JUPhYFScgwlteveGB1rt3Cm8UhN04XayDig=="],
+ "@discoveryjs/json-ext": ["@discoveryjs/json-ext@0.5.7", "", {}, "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw=="],
+
+ "@drizzle-team/brocli": ["@drizzle-team/brocli@0.10.2", "", {}, "sha512-z33Il7l5dKjUgGULTqBsQBQwckHh5AbIuxhdsIxDDiZAzBOrZO6q9ogcWC65kU382AfynTfgNumVcNIjuIua6w=="],
+
+ "@electric-sql/pglite": ["@electric-sql/pglite@0.3.2", "", {}, "sha512-zfWWa+V2ViDCY/cmUfRqeWY1yLto+EpxjXnZzenB1TyxsTiXaTWeZFIZw6mac52BsuQm0RjCnisjBtdBaXOI6w=="],
+
"@electron/asar": ["@electron/asar@3.2.18", "", { "dependencies": { "commander": "^5.0.0", "glob": "^7.1.6", "minimatch": "^3.0.4" }, "bin": { "asar": "bin/asar.js" } }, "sha512-2XyvMe3N3Nrs8cV39IKELRHTYUWFKrmqqSY1U+GMlc0jvqjIVnoxhNd2H4JolWQncbJi1DCvb5TNxZuI2fEjWg=="],
"@electron/fuses": ["@electron/fuses@1.8.0", "", { "dependencies": { "chalk": "^4.1.1", "fs-extra": "^9.0.1", "minimist": "^1.2.5" }, "bin": { "electron-fuses": "dist/bin.js" } }, "sha512-zx0EIq78WlY/lBb1uXlziZmDZI4ubcCXIMJ4uGjXzZW0nS19TjSPeXPAjzzTmKQlJUZm0SbmZhPKP7tuQ1SsEw=="],
@@ -302,66 +634,80 @@
"@emnapi/core": ["@emnapi/core@1.5.0", "", { "dependencies": { "@emnapi/wasi-threads": "1.1.0", "tslib": "^2.4.0" } }, "sha512-sbP8GzB1WDzacS8fgNPpHlp6C9VZe+SJP3F90W9rLemaQj2PzIuTEl1qDOYQf58YIpyjViI24y9aPWCjEzY2cg=="],
- "@emnapi/runtime": ["@emnapi/runtime@1.5.0", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-97/BJ3iXHww3djw6hYIfErCZFee7qCtrneuLa20UXFCOTCfBM2cvQHjWJ2EG0s0MtdNwInarqCTz35i4wWXHsQ=="],
+ "@emnapi/runtime": ["@emnapi/runtime@1.7.1", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-PVtJr5CmLwYAU9PZDMITZoR5iAOShYREoR45EyyLrbntV50mdePTgUn4AmOw90Ifcj+x2kRjdzr1HP3RrNiHGA=="],
"@emnapi/wasi-threads": ["@emnapi/wasi-threads@1.1.0", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ=="],
"@envelop/instrumentation": ["@envelop/instrumentation@1.0.0", "", { "dependencies": { "@whatwg-node/promise-helpers": "^1.2.1", "tslib": "^2.5.0" } }, "sha512-cxgkB66RQB95H3X27jlnxCRNTmPuSTgmBAq6/4n2Dtv4hsk4yz8FadA1ggmd0uZzvKqWD6CR+WFgTjhDqg7eyw=="],
- "@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.25.10", "", { "os": "aix", "cpu": "ppc64" }, "sha512-0NFWnA+7l41irNuaSVlLfgNT12caWJVLzp5eAVhZ0z1qpxbockccEt3s+149rE64VUI3Ml2zt8Nv5JVc4QXTsw=="],
+ "@esbuild-kit/core-utils": ["@esbuild-kit/core-utils@3.3.2", "", { "dependencies": { "esbuild": "~0.18.20", "source-map-support": "^0.5.21" } }, "sha512-sPRAnw9CdSsRmEtnsl2WXWdyquogVpB3yZ3dgwJfe8zrOzTsV7cJvmwrKVa+0ma5BoiGJ+BoqkMvawbayKUsqQ=="],
- "@esbuild/android-arm": ["@esbuild/android-arm@0.25.10", "", { "os": "android", "cpu": "arm" }, "sha512-dQAxF1dW1C3zpeCDc5KqIYuZ1tgAdRXNoZP7vkBIRtKZPYe2xVr/d3SkirklCHudW1B45tGiUlz2pUWDfbDD4w=="],
+ "@esbuild-kit/esm-loader": ["@esbuild-kit/esm-loader@2.6.5", "", { "dependencies": { "@esbuild-kit/core-utils": "^3.3.2", "get-tsconfig": "^4.7.0" } }, "sha512-FxEMIkJKnodyA1OaCUoEvbYRkoZlLZ4d/eXFu9Fh8CbBBgP5EmZxrfTRyN0qpXZ4vOvqnE5YdRdcrmUUXuU+dA=="],
- "@esbuild/android-arm64": ["@esbuild/android-arm64@0.25.10", "", { "os": "android", "cpu": "arm64" }, "sha512-LSQa7eDahypv/VO6WKohZGPSJDq5OVOo3UoFR1E4t4Gj1W7zEQMUhI+lo81H+DtB+kP+tDgBp+M4oNCwp6kffg=="],
+ "@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.27.1", "", { "os": "aix", "cpu": "ppc64" }, "sha512-HHB50pdsBX6k47S4u5g/CaLjqS3qwaOVE5ILsq64jyzgMhLuCuZ8rGzM9yhsAjfjkbgUPMzZEPa7DAp7yz6vuA=="],
- "@esbuild/android-x64": ["@esbuild/android-x64@0.25.10", "", { "os": "android", "cpu": "x64" }, "sha512-MiC9CWdPrfhibcXwr39p9ha1x0lZJ9KaVfvzA0Wxwz9ETX4v5CHfF09bx935nHlhi+MxhA63dKRRQLiVgSUtEg=="],
+ "@esbuild/android-arm": ["@esbuild/android-arm@0.27.1", "", { "os": "android", "cpu": "arm" }, "sha512-kFqa6/UcaTbGm/NncN9kzVOODjhZW8e+FRdSeypWe6j33gzclHtwlANs26JrupOntlcWmB0u8+8HZo8s7thHvg=="],
- "@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.25.10", "", { "os": "darwin", "cpu": "arm64" }, "sha512-JC74bdXcQEpW9KkV326WpZZjLguSZ3DfS8wrrvPMHgQOIEIG/sPXEN/V8IssoJhbefLRcRqw6RQH2NnpdprtMA=="],
+ "@esbuild/android-arm64": ["@esbuild/android-arm64@0.27.1", "", { "os": "android", "cpu": "arm64" }, "sha512-45fuKmAJpxnQWixOGCrS+ro4Uvb4Re9+UTieUY2f8AEc+t7d4AaZ6eUJ3Hva7dtrxAAWHtlEFsXFMAgNnGU9uQ=="],
- "@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.25.10", "", { "os": "darwin", "cpu": "x64" }, "sha512-tguWg1olF6DGqzws97pKZ8G2L7Ig1vjDmGTwcTuYHbuU6TTjJe5FXbgs5C1BBzHbJ2bo1m3WkQDbWO2PvamRcg=="],
+ "@esbuild/android-x64": ["@esbuild/android-x64@0.27.1", "", { "os": "android", "cpu": "x64" }, "sha512-LBEpOz0BsgMEeHgenf5aqmn/lLNTFXVfoWMUox8CtWWYK9X4jmQzWjoGoNb8lmAYml/tQ/Ysvm8q7szu7BoxRQ=="],
- "@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.25.10", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-3ZioSQSg1HT2N05YxeJWYR+Libe3bREVSdWhEEgExWaDtyFbbXWb49QgPvFH8u03vUPX10JhJPcz7s9t9+boWg=="],
+ "@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.27.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-veg7fL8eMSCVKL7IW4pxb54QERtedFDfY/ASrumK/SbFsXnRazxY4YykN/THYqFnFwJ0aVjiUrVG2PwcdAEqQQ=="],
- "@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.25.10", "", { "os": "freebsd", "cpu": "x64" }, "sha512-LLgJfHJk014Aa4anGDbh8bmI5Lk+QidDmGzuC2D+vP7mv/GeSN+H39zOf7pN5N8p059FcOfs2bVlrRr4SK9WxA=="],
+ "@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.27.1", "", { "os": "darwin", "cpu": "x64" }, "sha512-+3ELd+nTzhfWb07Vol7EZ+5PTbJ/u74nC6iv4/lwIU99Ip5uuY6QoIf0Hn4m2HoV0qcnRivN3KSqc+FyCHjoVQ=="],
- "@esbuild/linux-arm": ["@esbuild/linux-arm@0.25.10", "", { "os": "linux", "cpu": "arm" }, "sha512-oR31GtBTFYCqEBALI9r6WxoU/ZofZl962pouZRTEYECvNF/dtXKku8YXcJkhgK/beU+zedXfIzHijSRapJY3vg=="],
+ "@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.27.1", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-/8Rfgns4XD9XOSXlzUDepG8PX+AVWHliYlUkFI3K3GB6tqbdjYqdhcb4BKRd7C0BhZSoaCxhv8kTcBrcZWP+xg=="],
- "@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.25.10", "", { "os": "linux", "cpu": "arm64" }, "sha512-5luJWN6YKBsawd5f9i4+c+geYiVEw20FVW5x0v1kEMWNq8UctFjDiMATBxLvmmHA4bf7F6hTRaJgtghFr9iziQ=="],
+ "@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.27.1", "", { "os": "freebsd", "cpu": "x64" }, "sha512-GITpD8dK9C+r+5yRT/UKVT36h/DQLOHdwGVwwoHidlnA168oD3uxA878XloXebK4Ul3gDBBIvEdL7go9gCUFzQ=="],
- "@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.25.10", "", { "os": "linux", "cpu": "ia32" }, "sha512-NrSCx2Kim3EnnWgS4Txn0QGt0Xipoumb6z6sUtl5bOEZIVKhzfyp/Lyw4C1DIYvzeW/5mWYPBFJU3a/8Yr75DQ=="],
+ "@esbuild/linux-arm": ["@esbuild/linux-arm@0.27.1", "", { "os": "linux", "cpu": "arm" }, "sha512-ieMID0JRZY/ZeCrsFQ3Y3NlHNCqIhTprJfDgSB3/lv5jJZ8FX3hqPyXWhe+gvS5ARMBJ242PM+VNz/ctNj//eA=="],
- "@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-xoSphrd4AZda8+rUDDfD9J6FUMjrkTz8itpTITM4/xgerAZZcFW7Dv+sun7333IfKxGG8gAq+3NbfEMJfiY+Eg=="],
+ "@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.27.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-W9//kCrh/6in9rWIBdKaMtuTTzNj6jSeG/haWBADqLLa9P8O5YSRDzgD5y9QBok4AYlzS6ARHifAb75V6G670Q=="],
- "@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-ab6eiuCwoMmYDyTnyptoKkVS3k8fy/1Uvq7Dj5czXI6DF2GqD2ToInBI0SHOp5/X1BdZ26RKc5+qjQNGRBelRA=="],
+ "@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.27.1", "", { "os": "linux", "cpu": "ia32" }, "sha512-VIUV4z8GD8rtSVMfAj1aXFahsi/+tcoXXNYmXgzISL+KB381vbSTNdeZHHHIYqFyXcoEhu9n5cT+05tRv13rlw=="],
- "@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.25.10", "", { "os": "linux", "cpu": "ppc64" }, "sha512-NLinzzOgZQsGpsTkEbdJTCanwA5/wozN9dSgEl12haXJBzMTpssebuXR42bthOF3z7zXFWH1AmvWunUCkBE4EA=="],
+ "@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.27.1", "", { "os": "linux", "cpu": "none" }, "sha512-l4rfiiJRN7sTNI//ff65zJ9z8U+k6zcCg0LALU5iEWzY+a1mVZ8iWC1k5EsNKThZ7XCQ6YWtsZ8EWYm7r1UEsg=="],
- "@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-FE557XdZDrtX8NMIeA8LBJX3dC2M8VGXwfrQWU7LB5SLOajfJIxmSdyL/gU1m64Zs9CBKvm4UAuBp5aJ8OgnrA=="],
+ "@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.27.1", "", { "os": "linux", "cpu": "none" }, "sha512-U0bEuAOLvO/DWFdygTHWY8C067FXz+UbzKgxYhXC0fDieFa0kDIra1FAhsAARRJbvEyso8aAqvPdNxzWuStBnA=="],
- "@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.25.10", "", { "os": "linux", "cpu": "s390x" }, "sha512-3BBSbgzuB9ajLoVZk0mGu+EHlBwkusRmeNYdqmznmMc9zGASFjSsxgkNsqmXugpPk00gJ0JNKh/97nxmjctdew=="],
+ "@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.27.1", "", { "os": "linux", "cpu": "ppc64" }, "sha512-NzdQ/Xwu6vPSf/GkdmRNsOfIeSGnh7muundsWItmBsVpMoNPVpM61qNzAVY3pZ1glzzAxLR40UyYM23eaDDbYQ=="],
- "@esbuild/linux-x64": ["@esbuild/linux-x64@0.25.10", "", { "os": "linux", "cpu": "x64" }, "sha512-QSX81KhFoZGwenVyPoberggdW1nrQZSvfVDAIUXr3WqLRZGZqWk/P4T8p2SP+de2Sr5HPcvjhcJzEiulKgnxtA=="],
+ "@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.27.1", "", { "os": "linux", "cpu": "none" }, "sha512-7zlw8p3IApcsN7mFw0O1Z1PyEk6PlKMu18roImfl3iQHTnr/yAfYv6s4hXPidbDoI2Q0pW+5xeoM4eTCC0UdrQ=="],
- "@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.25.10", "", { "os": "none", "cpu": "arm64" }, "sha512-AKQM3gfYfSW8XRk8DdMCzaLUFB15dTrZfnX8WXQoOUpUBQ+NaAFCP1kPS/ykbbGYz7rxn0WS48/81l9hFl3u4A=="],
+ "@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.27.1", "", { "os": "linux", "cpu": "s390x" }, "sha512-cGj5wli+G+nkVQdZo3+7FDKC25Uh4ZVwOAK6A06Hsvgr8WqBBuOy/1s+PUEd/6Je+vjfm6stX0kmib5b/O2Ykw=="],
- "@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.25.10", "", { "os": "none", "cpu": "x64" }, "sha512-7RTytDPGU6fek/hWuN9qQpeGPBZFfB4zZgcz2VK2Z5VpdUxEI8JKYsg3JfO0n/Z1E/6l05n0unDCNc4HnhQGig=="],
+ "@esbuild/linux-x64": ["@esbuild/linux-x64@0.27.1", "", { "os": "linux", "cpu": "x64" }, "sha512-z3H/HYI9MM0HTv3hQZ81f+AKb+yEoCRlUby1F80vbQ5XdzEMyY/9iNlAmhqiBKw4MJXwfgsh7ERGEOhrM1niMA=="],
- "@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.25.10", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-5Se0VM9Wtq797YFn+dLimf2Zx6McttsH2olUBsDml+lm0GOCRVebRWUvDtkY4BWYv/3NgzS8b/UM3jQNh5hYyw=="],
+ "@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.27.1", "", { "os": "none", "cpu": "arm64" }, "sha512-wzC24DxAvk8Em01YmVXyjl96Mr+ecTPyOuADAvjGg+fyBpGmxmcr2E5ttf7Im8D0sXZihpxzO1isus8MdjMCXQ=="],
- "@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.25.10", "", { "os": "openbsd", "cpu": "x64" }, "sha512-XkA4frq1TLj4bEMB+2HnI0+4RnjbuGZfet2gs/LNs5Hc7D89ZQBHQ0gL2ND6Lzu1+QVkjp3x1gIcPKzRNP8bXw=="],
+ "@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.27.1", "", { "os": "none", "cpu": "x64" }, "sha512-1YQ8ybGi2yIXswu6eNzJsrYIGFpnlzEWRl6iR5gMgmsrR0FcNoV1m9k9sc3PuP5rUBLshOZylc9nqSgymI+TYg=="],
- "@esbuild/openharmony-arm64": ["@esbuild/openharmony-arm64@0.25.10", "", { "os": "none", "cpu": "arm64" }, "sha512-AVTSBhTX8Y/Fz6OmIVBip9tJzZEUcY8WLh7I59+upa5/GPhh2/aM6bvOMQySspnCCHvFi79kMtdJS1w0DXAeag=="],
+ "@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.27.1", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-5Z+DzLCrq5wmU7RDaMDe2DVXMRm2tTDvX2KU14JJVBN2CT/qov7XVix85QoJqHltpvAOZUAc3ndU56HSMWrv8g=="],
- "@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.25.10", "", { "os": "sunos", "cpu": "x64" }, "sha512-fswk3XT0Uf2pGJmOpDB7yknqhVkJQkAQOcW/ccVOtfx05LkbWOaRAtn5SaqXypeKQra1QaEa841PgrSL9ubSPQ=="],
+ "@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.27.1", "", { "os": "openbsd", "cpu": "x64" }, "sha512-Q73ENzIdPF5jap4wqLtsfh8YbYSZ8Q0wnxplOlZUOyZy7B4ZKW8DXGWgTCZmF8VWD7Tciwv5F4NsRf6vYlZtqg=="],
- "@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.25.10", "", { "os": "win32", "cpu": "arm64" }, "sha512-ah+9b59KDTSfpaCg6VdJoOQvKjI33nTaQr4UluQwW7aEwZQsbMCfTmfEO4VyewOxx4RaDT/xCy9ra2GPWmO7Kw=="],
+ "@esbuild/openharmony-arm64": ["@esbuild/openharmony-arm64@0.27.1", "", { "os": "none", "cpu": "arm64" }, "sha512-ajbHrGM/XiK+sXM0JzEbJAen+0E+JMQZ2l4RR4VFwvV9JEERx+oxtgkpoKv1SevhjavK2z2ReHk32pjzktWbGg=="],
- "@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.25.10", "", { "os": "win32", "cpu": "ia32" }, "sha512-QHPDbKkrGO8/cz9LKVnJU22HOi4pxZnZhhA2HYHez5Pz4JeffhDjf85E57Oyco163GnzNCVkZK0b/n4Y0UHcSw=="],
+ "@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.27.1", "", { "os": "sunos", "cpu": "x64" }, "sha512-IPUW+y4VIjuDVn+OMzHc5FV4GubIwPnsz6ubkvN8cuhEqH81NovB53IUlrlBkPMEPxvNnf79MGBoz8rZ2iW8HA=="],
- "@esbuild/win32-x64": ["@esbuild/win32-x64@0.25.10", "", { "os": "win32", "cpu": "x64" }, "sha512-9KpxSVFCu0iK1owoez6aC/s/EdUQLDN3adTxGCqxMVhrPDj6bt5dbrHDXUuq+Bs2vATFBBrQS5vdQ/Ed2P+nbw=="],
+ "@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.27.1", "", { "os": "win32", "cpu": "arm64" }, "sha512-RIVRWiljWA6CdVu8zkWcRmGP7iRRIIwvhDKem8UMBjPql2TXM5PkDVvvrzMtj1V+WFPB4K7zkIGM7VzRtFkjdg=="],
+
+ "@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.27.1", "", { "os": "win32", "cpu": "ia32" }, "sha512-2BR5M8CPbptC1AK5JbJT1fWrHLvejwZidKx3UMSF0ecHMa+smhi16drIrCEggkgviBwLYd5nwrFLSl5Kho96RQ=="],
+
+ "@esbuild/win32-x64": ["@esbuild/win32-x64@0.27.1", "", { "os": "win32", "cpu": "x64" }, "sha512-d5X6RMYv6taIymSk8JBP+nxv8DQAMY6A51GPgusqLdK9wBz5wWIXy1KjTck6HnjE9hqJzJRdk+1p/t5soSbCtw=="],
"@fastify/busboy": ["@fastify/busboy@3.2.0", "", {}, "sha512-m9FVDXU3GT2ITSe0UaMA5rU3QkfC/UXtCU8y0gSN/GugTqtVldOBWIB5V6V3sbmenVZUIpU6f+mPEO2+m5iTaA=="],
+ "@floating-ui/core": ["@floating-ui/core@1.7.3", "", { "dependencies": { "@floating-ui/utils": "^0.2.10" } }, "sha512-sGnvb5dmrJaKEZ+LDIpguvdX3bDlEllmv4/ClQ9awcmCZrlx5jQyyMWFM5kBI+EyNOCDDiKk8il0zeuX3Zlg/w=="],
+
+ "@floating-ui/dom": ["@floating-ui/dom@1.7.4", "", { "dependencies": { "@floating-ui/core": "^1.7.3", "@floating-ui/utils": "^0.2.10" } }, "sha512-OOchDgh4F2CchOX94cRVqhvy7b3AFb+/rQXyswmzmGakRfkMgoWVjfnLWkRirfLEfuD4ysVW16eXzwt3jHIzKA=="],
+
+ "@floating-ui/react": ["@floating-ui/react@0.27.16", "", { "dependencies": { "@floating-ui/react-dom": "^2.1.6", "@floating-ui/utils": "^0.2.10", "tabbable": "^6.0.0" }, "peerDependencies": { "react": ">=17.0.0", "react-dom": ">=17.0.0" } }, "sha512-9O8N4SeG2z++TSM8QA/KTeKFBVCNEz/AGS7gWPJf6KFRzmRWixFRnCnkPHRDwSVZW6QPDO6uT0P2SpWNKCc9/g=="],
+
+ "@floating-ui/react-dom": ["@floating-ui/react-dom@2.1.6", "", { "dependencies": { "@floating-ui/dom": "^1.7.4" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-4JX6rEatQEvlmgU80wZyq9RT96HZJa88q8hp0pBd+LrczeDI4o6uA2M+uvxngVHo4Ihr8uibXxH6+70zhAFrVw=="],
+
+ "@floating-ui/utils": ["@floating-ui/utils@0.2.10", "", {}, "sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ=="],
+
"@gar/promisify": ["@gar/promisify@1.1.3", "", {}, "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw=="],
"@google/gemini-cli-core": ["@jaaydenh/gemini-cli-core@0.11.0-nightly-20251022-2", "", { "dependencies": { "@google/genai": "1.16.0", "@joshua.litt/get-ripgrep": "^0.0.2", "@modelcontextprotocol/sdk": "^1.11.0", "@opentelemetry/api": "^1.9.0", "@opentelemetry/exporter-logs-otlp-grpc": "^0.203.0", "@opentelemetry/exporter-logs-otlp-http": "^0.203.0", "@opentelemetry/exporter-metrics-otlp-grpc": "^0.203.0", "@opentelemetry/exporter-metrics-otlp-http": "^0.203.0", "@opentelemetry/exporter-trace-otlp-grpc": "^0.203.0", "@opentelemetry/exporter-trace-otlp-http": "^0.203.0", "@opentelemetry/instrumentation-http": "^0.203.0", "@opentelemetry/sdk-node": "^0.203.0", "@types/glob": "^8.1.0", "@types/html-to-text": "^9.0.4", "@xterm/headless": "5.5.0", "ajv": "^8.17.1", "ajv-formats": "^3.0.0", "chardet": "^2.1.0", "diff": "^7.0.0", "dotenv": "^17.1.0", "fast-levenshtein": "^2.0.6", "fast-uri": "^3.0.6", "fdir": "^6.4.6", "fzf": "^0.5.2", "glob": "^10.4.5", "google-auth-library": "^9.11.0", "html-to-text": "^9.0.5", "https-proxy-agent": "^7.0.6", "ignore": "^7.0.0", "marked": "^15.0.12", "mime": "4.0.7", "mnemonist": "^0.40.3", "open": "^10.1.2", "picomatch": "^4.0.1", "shell-quote": "^1.8.3", "simple-git": "^3.28.0", "strip-ansi": "^7.1.0", "undici": "^7.10.0", "ws": "^8.18.0" }, "optionalDependencies": { "@lydell/node-pty": "1.1.0", "@lydell/node-pty-darwin-arm64": "1.1.0", "@lydell/node-pty-darwin-x64": "1.1.0", "@lydell/node-pty-linux-x64": "1.1.0", "@lydell/node-pty-win32-arm64": "1.1.0", "@lydell/node-pty-win32-x64": "1.1.0", "node-pty": "^1.0.0" } }, "sha512-v8R8LaPjffxZJdRU4cXWMvpCpZPvFyj4mZJ63+ZKQJ+ZH92j3MGW+rmIajgq3U7euew5YGdIlNKik5OsHpIIEA=="],
@@ -376,6 +722,70 @@
"@iarna/toml": ["@iarna/toml@2.2.5", "", {}, "sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg=="],
+ "@iconify/types": ["@iconify/types@2.0.0", "", {}, "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg=="],
+
+ "@iconify/utils": ["@iconify/utils@3.1.0", "", { "dependencies": { "@antfu/install-pkg": "^1.1.0", "@iconify/types": "^2.0.0", "mlly": "^1.8.0" } }, "sha512-Zlzem1ZXhI1iHeeERabLNzBHdOa4VhQbqAcOQaMKuTuyZCpwKbC2R4Dd0Zo3g9EAc+Y4fiarO8HIHRAth7+skw=="],
+
+ "@img/colour": ["@img/colour@1.0.0", "", {}, "sha512-A5P/LfWGFSl6nsckYtjw9da+19jB8hkJ6ACTGcDfEJ0aE+l2n2El7dsVM7UVHZQ9s2lmYMWlrS21YLy2IR1LUw=="],
+
+ "@img/sharp-darwin-arm64": ["@img/sharp-darwin-arm64@0.34.5", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.2.4" }, "os": "darwin", "cpu": "arm64" }, "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w=="],
+
+ "@img/sharp-darwin-x64": ["@img/sharp-darwin-x64@0.34.5", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-x64": "1.2.4" }, "os": "darwin", "cpu": "x64" }, "sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw=="],
+
+ "@img/sharp-libvips-darwin-arm64": ["@img/sharp-libvips-darwin-arm64@1.2.4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g=="],
+
+ "@img/sharp-libvips-darwin-x64": ["@img/sharp-libvips-darwin-x64@1.2.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg=="],
+
+ "@img/sharp-libvips-linux-arm": ["@img/sharp-libvips-linux-arm@1.2.4", "", { "os": "linux", "cpu": "arm" }, "sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A=="],
+
+ "@img/sharp-libvips-linux-arm64": ["@img/sharp-libvips-linux-arm64@1.2.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw=="],
+
+ "@img/sharp-libvips-linux-ppc64": ["@img/sharp-libvips-linux-ppc64@1.2.4", "", { "os": "linux", "cpu": "ppc64" }, "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA=="],
+
+ "@img/sharp-libvips-linux-riscv64": ["@img/sharp-libvips-linux-riscv64@1.2.4", "", { "os": "linux", "cpu": "none" }, "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA=="],
+
+ "@img/sharp-libvips-linux-s390x": ["@img/sharp-libvips-linux-s390x@1.2.4", "", { "os": "linux", "cpu": "s390x" }, "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ=="],
+
+ "@img/sharp-libvips-linux-x64": ["@img/sharp-libvips-linux-x64@1.2.4", "", { "os": "linux", "cpu": "x64" }, "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw=="],
+
+ "@img/sharp-libvips-linuxmusl-arm64": ["@img/sharp-libvips-linuxmusl-arm64@1.2.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw=="],
+
+ "@img/sharp-libvips-linuxmusl-x64": ["@img/sharp-libvips-linuxmusl-x64@1.2.4", "", { "os": "linux", "cpu": "x64" }, "sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg=="],
+
+ "@img/sharp-linux-arm": ["@img/sharp-linux-arm@0.34.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.2.4" }, "os": "linux", "cpu": "arm" }, "sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw=="],
+
+ "@img/sharp-linux-arm64": ["@img/sharp-linux-arm64@0.34.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.2.4" }, "os": "linux", "cpu": "arm64" }, "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg=="],
+
+ "@img/sharp-linux-ppc64": ["@img/sharp-linux-ppc64@0.34.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-ppc64": "1.2.4" }, "os": "linux", "cpu": "ppc64" }, "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA=="],
+
+ "@img/sharp-linux-riscv64": ["@img/sharp-linux-riscv64@0.34.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-riscv64": "1.2.4" }, "os": "linux", "cpu": "none" }, "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw=="],
+
+ "@img/sharp-linux-s390x": ["@img/sharp-linux-s390x@0.34.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.2.4" }, "os": "linux", "cpu": "s390x" }, "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg=="],
+
+ "@img/sharp-linux-x64": ["@img/sharp-linux-x64@0.34.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.2.4" }, "os": "linux", "cpu": "x64" }, "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ=="],
+
+ "@img/sharp-linuxmusl-arm64": ["@img/sharp-linuxmusl-arm64@0.34.5", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.2.4" }, "os": "linux", "cpu": "arm64" }, "sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg=="],
+
+ "@img/sharp-linuxmusl-x64": ["@img/sharp-linuxmusl-x64@0.34.5", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.2.4" }, "os": "linux", "cpu": "x64" }, "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q=="],
+
+ "@img/sharp-wasm32": ["@img/sharp-wasm32@0.34.5", "", { "dependencies": { "@emnapi/runtime": "^1.7.0" }, "cpu": "none" }, "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw=="],
+
+ "@img/sharp-win32-arm64": ["@img/sharp-win32-arm64@0.34.5", "", { "os": "win32", "cpu": "arm64" }, "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g=="],
+
+ "@img/sharp-win32-ia32": ["@img/sharp-win32-ia32@0.34.5", "", { "os": "win32", "cpu": "ia32" }, "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg=="],
+
+ "@img/sharp-win32-x64": ["@img/sharp-win32-x64@0.34.5", "", { "os": "win32", "cpu": "x64" }, "sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw=="],
+
+ "@inquirer/ansi": ["@inquirer/ansi@1.0.2", "", {}, "sha512-S8qNSZiYzFd0wAcyG5AXCvUHC5Sr7xpZ9wZ2py9XR88jUz8wooStVx5M6dRzczbBWjic9NP7+rY0Xi7qqK/aMQ=="],
+
+ "@inquirer/confirm": ["@inquirer/confirm@5.1.21", "", { "dependencies": { "@inquirer/core": "^10.3.2", "@inquirer/type": "^3.0.10" }, "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-KR8edRkIsUayMXV+o3Gv+q4jlhENF9nMYUZs9PA2HzrXeHI8M5uDag70U7RJn9yyiMZSbtF5/UexBtAVtZGSbQ=="],
+
+ "@inquirer/core": ["@inquirer/core@10.3.2", "", { "dependencies": { "@inquirer/ansi": "^1.0.2", "@inquirer/figures": "^1.0.15", "@inquirer/type": "^3.0.10", "cli-width": "^4.1.0", "mute-stream": "^2.0.0", "signal-exit": "^4.1.0", "wrap-ansi": "^6.2.0", "yoctocolors-cjs": "^2.1.3" }, "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-43RTuEbfP8MbKzedNqBrlhhNKVwoK//vUFNW3Q3vZ88BLcrs4kYpGg+B2mm5p2K/HfygoCxuKwJJiv8PbGmE0A=="],
+
+ "@inquirer/figures": ["@inquirer/figures@1.0.15", "", {}, "sha512-t2IEY+unGHOzAaVM5Xx6DEWKeXlDDcNPeDyUpsRc6CUhBfU3VQOEl+Vssh7VNp1dR8MdUJBWhuObjXCsVpjN5g=="],
+
+ "@inquirer/type": ["@inquirer/type@3.0.10", "", { "peerDependencies": { "@types/node": ">=18" }, "optionalPeers": ["@types/node"] }, "sha512-BvziSRxfz5Ov8ch0z/n3oijRSEcEsHnhggm4xFZe93DHcUCTlutlq9Ox4SVENAfcRD22UQq7T/atg9Wr3k09eA=="],
+
"@isaacs/balanced-match": ["@isaacs/balanced-match@4.0.1", "", {}, "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ=="],
"@isaacs/brace-expansion": ["@isaacs/brace-expansion@5.0.0", "", { "dependencies": { "@isaacs/balanced-match": "^4.0.1" } }, "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA=="],
@@ -388,6 +798,8 @@
"@joshua.litt/get-ripgrep": ["@joshua.litt/get-ripgrep@0.0.2", "", { "dependencies": { "@lvce-editor/verror": "^1.6.0", "execa": "^9.5.2", "extract-zip": "^2.0.1", "fs-extra": "^11.3.0", "got": "^14.4.5", "path-exists": "^5.0.0", "xdg-basedir": "^5.1.0" } }, "sha512-cSHA+H+HEkOXeiCxrNvGj/pgv2Y0bfp4GbH3R87zr7Vob2pDUZV3BkUL9ucHMoDFID4GteSy5z5niN/lF9QeuQ=="],
+ "@joshwooding/vite-plugin-react-docgen-typescript": ["@joshwooding/vite-plugin-react-docgen-typescript@0.6.1", "", { "dependencies": { "glob": "^10.0.0", "magic-string": "^0.30.0", "react-docgen-typescript": "^2.2.2" }, "peerDependencies": { "typescript": ">= 4.3.x", "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" }, "optionalPeers": ["typescript"] }, "sha512-J4BaTocTOYFkMHIra1JDWrMWpNmBl4EkplIwHEsV8aeUOtdWjwSnln9U7twjMFTAEB7mptNtSKyVi1Y2W9sDJw=="],
+
"@jridgewell/gen-mapping": ["@jridgewell/gen-mapping@0.3.13", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA=="],
"@jridgewell/remapping": ["@jridgewell/remapping@2.3.5", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ=="],
@@ -404,6 +816,48 @@
"@kwsites/promise-deferred": ["@kwsites/promise-deferred@1.1.1", "", {}, "sha512-GaHYm+c0O9MjZRu0ongGBRbinu8gVAMd2UZjji6jVmqKtZluZnptXGWhz1E8j8D2HJ3f/yMxKAUC0b+57wncIw=="],
+ "@lexical/clipboard": ["@lexical/clipboard@0.32.1", "", { "dependencies": { "@lexical/html": "0.32.1", "@lexical/list": "0.32.1", "@lexical/selection": "0.32.1", "@lexical/utils": "0.32.1", "lexical": "0.32.1" } }, "sha512-oO7CuMVh3EFEqtE6+7Ccf7jMD5RNUmSdTnFm/X4kYNGqs9lgGt8j5PgSk7oP9OuAjxKNdBTbltSlh54CX3AUIg=="],
+
+ "@lexical/code": ["@lexical/code@0.32.1", "", { "dependencies": { "@lexical/utils": "0.32.1", "lexical": "0.32.1", "prismjs": "^1.30.0" } }, "sha512-2rXj8s/CG32XKQ2EpORpACfpzyAxB+/SrQW2cjwczarLs5Fxnx6u6HwahZnxaF0z5UHIPUy90qDiOiRExc74Yg=="],
+
+ "@lexical/devtools-core": ["@lexical/devtools-core@0.32.1", "", { "dependencies": { "@lexical/html": "0.32.1", "@lexical/link": "0.32.1", "@lexical/mark": "0.32.1", "@lexical/table": "0.32.1", "@lexical/utils": "0.32.1", "lexical": "0.32.1" }, "peerDependencies": { "react": ">=17.x", "react-dom": ">=17.x" } }, "sha512-3WnZQo6Qig7ccjDu2b8s1Kb5CCXowxnK0i8CCRG9mHAw7i6XpZUYAbk4rmcK/qbhLHrc7LwUrAMFzGtfLEH3XA=="],
+
+ "@lexical/dragon": ["@lexical/dragon@0.32.1", "", { "dependencies": { "lexical": "0.32.1" } }, "sha512-Dlx8P2b/O7gZLmXnoanmDkFL5RgA8Vvix4ZuSvT0apblqySzgi8l3NHHwwqXy1g2nfSupvpr7Dsf10Lu3l0Hlw=="],
+
+ "@lexical/hashtag": ["@lexical/hashtag@0.32.1", "", { "dependencies": { "@lexical/utils": "0.32.1", "lexical": "0.32.1" } }, "sha512-S63bb7uIB4hO2V0UmzUiKlwAGegQlyFKqrOw9NJwOb8O96gHRxr27FUsEb8ToWLM8TSm2aw1WsZXs7CJQqGtCg=="],
+
+ "@lexical/history": ["@lexical/history@0.32.1", "", { "dependencies": { "@lexical/utils": "0.32.1", "lexical": "0.32.1" } }, "sha512-IRsKllumYEWxmzR2evN30MFY+JBM723lSyzm2PAQcgHCeBxi8t0Vc3EdyJRay+YdN65JgrohQi1WbktbK923uQ=="],
+
+ "@lexical/html": ["@lexical/html@0.32.1", "", { "dependencies": { "@lexical/selection": "0.32.1", "@lexical/utils": "0.32.1", "lexical": "0.32.1" } }, "sha512-uctCdC9gVzx/Sw9CimT4C2IDfSbfEGYunyIrJBpsfcdqp0rroGNizjIoZNBH3xcgkk9UDboSADo+wimbzEoy8A=="],
+
+ "@lexical/link": ["@lexical/link@0.32.1", "", { "dependencies": { "@lexical/utils": "0.32.1", "lexical": "0.32.1" } }, "sha512-atdwNpWjZ0U2/kgS0ATTkZ8lJLHiv3TsJgqJL33BuV9Gn7advJokd4faM79Y8XxkhiPi1lVTBSHgI8V4hs+c+Q=="],
+
+ "@lexical/list": ["@lexical/list@0.32.1", "", { "dependencies": { "@lexical/selection": "0.32.1", "@lexical/utils": "0.32.1", "lexical": "0.32.1" } }, "sha512-3zShCfEdAvodR6mQ5CNN1gcEwfV341LXJzWCIkZzG1cPwaiBHUlT7TynQtKTPn1sATCEMmxoDG0/T+itsRNZgA=="],
+
+ "@lexical/mark": ["@lexical/mark@0.32.1", "", { "dependencies": { "@lexical/utils": "0.32.1", "lexical": "0.32.1" } }, "sha512-AXF2wmUvvSI45y+sgZKnU0pnUdttd9v75DDQgdplqtCkyDqHVGxVCNCrLE+PJtzIrwJxtA2UyC8yFZMBM92HpA=="],
+
+ "@lexical/markdown": ["@lexical/markdown@0.32.1", "", { "dependencies": { "@lexical/code": "0.32.1", "@lexical/link": "0.32.1", "@lexical/list": "0.32.1", "@lexical/rich-text": "0.32.1", "@lexical/text": "0.32.1", "@lexical/utils": "0.32.1", "lexical": "0.32.1" } }, "sha512-AmUTRRx6Je0AOiQqp48Xn92/71AzhFgi4nO1EtPW5eae1CihrtiEh5UQr48mV6EyjvH9D3OlOLU8XrzS+J9a+w=="],
+
+ "@lexical/offset": ["@lexical/offset@0.32.1", "", { "dependencies": { "lexical": "0.32.1" } }, "sha512-zfHqoLlQ0lq1akFHy81xnDaRRE5KkqFa7OovOxKPBpALQCiJIAb2ykqj/Woc2oUeYaEcnkaFU9+kEWMK9yY0fQ=="],
+
+ "@lexical/overflow": ["@lexical/overflow@0.32.1", "", { "dependencies": { "lexical": "0.32.1" } }, "sha512-wjcFGjzkbugds2Q5Wag59WrcxJwMUACEXms1FtFdu1/YcBPqNAKJSyfo8Z/5LGfstQEb2nPtSuEQZUb7v+XYyA=="],
+
+ "@lexical/plain-text": ["@lexical/plain-text@0.32.1", "", { "dependencies": { "@lexical/clipboard": "0.32.1", "@lexical/selection": "0.32.1", "@lexical/utils": "0.32.1", "lexical": "0.32.1" } }, "sha512-uFS3xoETB3phnYHZXfMKvl8gh6YRW7rpokuJmQVMHNNBklORmMpN00rRQ/zsc/jt/nPzaPpE5cLwSHXeJdqJUg=="],
+
+ "@lexical/react": ["@lexical/react@0.32.1", "", { "dependencies": { "@floating-ui/react": "^0.27.8", "@lexical/devtools-core": "0.32.1", "@lexical/dragon": "0.32.1", "@lexical/hashtag": "0.32.1", "@lexical/history": "0.32.1", "@lexical/link": "0.32.1", "@lexical/list": "0.32.1", "@lexical/mark": "0.32.1", "@lexical/markdown": "0.32.1", "@lexical/overflow": "0.32.1", "@lexical/plain-text": "0.32.1", "@lexical/rich-text": "0.32.1", "@lexical/table": "0.32.1", "@lexical/text": "0.32.1", "@lexical/utils": "0.32.1", "@lexical/yjs": "0.32.1", "lexical": "0.32.1", "react-error-boundary": "^3.1.4" }, "peerDependencies": { "react": ">=17.x", "react-dom": ">=17.x" } }, "sha512-PCiAiwGIGfkYb2o9Kx+gGGqXwxqb7/W4cGSnw1nzmNtCerJ3S64WZs87Lgcow0RlDSwqzpH534+eCyIddueSqw=="],
+
+ "@lexical/rich-text": ["@lexical/rich-text@0.32.1", "", { "dependencies": { "@lexical/clipboard": "0.32.1", "@lexical/selection": "0.32.1", "@lexical/utils": "0.32.1", "lexical": "0.32.1" } }, "sha512-SnmpZ7boTLxeYfNezNLvchDiJOAALA2nD0Uq/SpkIOJ6R01R7m1aPdLv55LGKoBT9UxCRdo0HWXytwiVZI+ehQ=="],
+
+ "@lexical/selection": ["@lexical/selection@0.32.1", "", { "dependencies": { "lexical": "0.32.1" } }, "sha512-X1aXJdq/5EOuSuMOqK3t+rEVmpqLf+vc2Kl5YuP8+gGWUbXuxR6iryrQuy1mAViZpF/5qw4HO/Sb+9JjubaZEg=="],
+
+ "@lexical/table": ["@lexical/table@0.32.1", "", { "dependencies": { "@lexical/clipboard": "0.32.1", "@lexical/utils": "0.32.1", "lexical": "0.32.1" } }, "sha512-sGk2jUbQHj5hatpxRyl6IE2oWsjRnYhmaP94THzn95/uK69o8eSizcnd148WzYsX8Zz+L9PTLS1xjvCbfLTP+A=="],
+
+ "@lexical/text": ["@lexical/text@0.32.1", "", { "dependencies": { "lexical": "0.32.1" } }, "sha512-0Ek8F3KC4d16b2YaTHdyYFqDSBZ5KRtGrqU3GBog+VOGxucGaEbXEK1/ypX5CTe/wwkQDrH0FKWPQbd3l5t5YQ=="],
+
+ "@lexical/utils": ["@lexical/utils@0.32.1", "", { "dependencies": { "@lexical/list": "0.32.1", "@lexical/selection": "0.32.1", "@lexical/table": "0.32.1", "lexical": "0.32.1" } }, "sha512-ZaqZZksNIHJd+g8GXc11D1ESi8JzsdLVQZ+9odXVaNxtwDIaGIqMSccFyuZ9VSoJDde4JXZkgp/0PShbAZDkyw=="],
+
+ "@lexical/yjs": ["@lexical/yjs@0.32.1", "", { "dependencies": { "@lexical/offset": "0.32.1", "@lexical/selection": "0.32.1", "lexical": "0.32.1" }, "peerDependencies": { "yjs": ">=13.5.22" } }, "sha512-VHGTg5z4wcDkPe8NnhzA5+CoOKJ5tVmTmMvoiZ91rtNUFQPxWRky88Gjt1e3yXldYp4pImNEgtAjlWqvaJBYGA=="],
+
"@lvce-editor/verror": ["@lvce-editor/verror@1.7.0", "", {}, "sha512-+LGuAEIC2L7pbvkyAQVWM2Go0dAy+UWEui28g07zNtZsCBhm+gusBK8PNwLJLV5Jay+TyUYuwLIbJdjLLzqEBg=="],
"@lydell/node-pty": ["@lydell/node-pty@1.1.0", "", { "optionalDependencies": { "@lydell/node-pty-darwin-arm64": "1.1.0", "@lydell/node-pty-darwin-x64": "1.1.0", "@lydell/node-pty-linux-arm64": "1.1.0", "@lydell/node-pty-linux-x64": "1.1.0", "@lydell/node-pty-win32-arm64": "1.1.0", "@lydell/node-pty-win32-x64": "1.1.0" } }, "sha512-VDD8LtlMTOrPKWMXUAcB9+LTktzuunqrMwkYR1DMRBkS6LQrCt+0/Ws1o2rMml/n3guePpS7cxhHF7Nm5K4iMw=="],
@@ -424,10 +878,42 @@
"@malept/flatpak-bundler": ["@malept/flatpak-bundler@0.4.0", "", { "dependencies": { "debug": "^4.1.1", "fs-extra": "^9.0.0", "lodash": "^4.17.15", "tmp-promise": "^3.0.2" } }, "sha512-9QOtNffcOF/c1seMCDnjckb3R9WHcG34tky+FHpNKKCW0wc/scYLwMtO+ptyGUfMW0/b/n4qRiALlaFHc9Oj7Q=="],
+ "@mermaid-js/parser": ["@mermaid-js/parser@0.6.3", "", { "dependencies": { "langium": "3.3.1" } }, "sha512-lnjOhe7zyHjc+If7yT4zoedx2vo4sHaTmtkl1+or8BRTnCtDmcTpAjpzDSfCZrshM5bCoz0GyidzadJAH1xobA=="],
+
"@modelcontextprotocol/sdk": ["@modelcontextprotocol/sdk@1.19.1", "", { "dependencies": { "ajv": "^6.12.6", "content-type": "^1.0.5", "cors": "^2.8.5", "cross-spawn": "^7.0.5", "eventsource": "^3.0.2", "eventsource-parser": "^3.0.0", "express": "^5.0.1", "express-rate-limit": "^7.5.0", "pkce-challenge": "^5.0.0", "raw-body": "^3.0.0", "zod": "^3.23.8", "zod-to-json-schema": "^3.24.1" } }, "sha512-3Y2h3MZKjec1eAqSTBclATlX+AbC6n1LgfVzRMJLt3v6w0RCYgwLrjbxPDbhsYHt6Wdqc/aCceNJYgj448ELQQ=="],
+ "@mswjs/interceptors": ["@mswjs/interceptors@0.40.0", "", { "dependencies": { "@open-draft/deferred-promise": "^2.2.0", "@open-draft/logger": "^0.3.0", "@open-draft/until": "^2.0.0", "is-node-process": "^1.2.0", "outvariant": "^1.4.3", "strict-event-emitter": "^0.5.1" } }, "sha512-EFd6cVbHsgLa6wa4RljGj6Wk75qoHxUSyc5asLyyPSyuhIcdS2Q3Phw6ImS1q+CkALthJRShiYfKANcQMuMqsQ=="],
+
"@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@1.0.7", "", { "dependencies": { "@emnapi/core": "^1.5.0", "@emnapi/runtime": "^1.5.0", "@tybys/wasm-util": "^0.10.1" } }, "sha512-SeDnOO0Tk7Okiq6DbXmmBODgOAb9dp9gjlphokTUxmt8U3liIP1ZsozBahH69j/RJv+Rfs6IwUKHTgQYJ/HBAw=="],
+ "@neondatabase/serverless": ["@neondatabase/serverless@1.0.2", "", { "dependencies": { "@types/node": "^22.15.30", "@types/pg": "^8.8.0" } }, "sha512-I5sbpSIAHiB+b6UttofhrN/UJXII+4tZPAq1qugzwCwLIL8EZLV7F/JyHUrEIiGgQpEXzpnjlJ+zwcEhheGvCw=="],
+
+ "@next/bundle-analyzer": ["@next/bundle-analyzer@15.5.7", "", { "dependencies": { "webpack-bundle-analyzer": "4.10.1" } }, "sha512-bKCGI9onUYyLaAQKvJOTeSv1vt3CYtF4Or+CRlCP/1Yu8NR9W4A2kd4qBs2OYFbT+/38fKg8BIPNt7IcMLKZCA=="],
+
+ "@next/env": ["@next/env@15.4.8", "", {}, "sha512-LydLa2MDI1NMrOFSkO54mTc8iIHSttj6R6dthITky9ylXV2gCGi0bHQjVCtLGRshdRPjyh2kXbxJukDtBWQZtQ=="],
+
+ "@next/swc-darwin-arm64": ["@next/swc-darwin-arm64@15.4.8", "", { "os": "darwin", "cpu": "arm64" }, "sha512-Pf6zXp7yyQEn7sqMxur6+kYcywx5up1J849psyET7/8pG2gQTVMjU3NzgIt8SeEP5to3If/SaWmaA6H6ysBr1A=="],
+
+ "@next/swc-darwin-x64": ["@next/swc-darwin-x64@15.4.8", "", { "os": "darwin", "cpu": "x64" }, "sha512-xla6AOfz68a6kq3gRQccWEvFC/VRGJmA/QuSLENSO7CZX5WIEkSz7r1FdXUjtGCQ1c2M+ndUAH7opdfLK1PQbw=="],
+
+ "@next/swc-linux-arm64-gnu": ["@next/swc-linux-arm64-gnu@15.4.8", "", { "os": "linux", "cpu": "arm64" }, "sha512-y3fmp+1Px/SJD+5ntve5QLZnGLycsxsVPkTzAc3zUiXYSOlTPqT8ynfmt6tt4fSo1tAhDPmryXpYKEAcoAPDJw=="],
+
+ "@next/swc-linux-arm64-musl": ["@next/swc-linux-arm64-musl@15.4.8", "", { "os": "linux", "cpu": "arm64" }, "sha512-DX/L8VHzrr1CfwaVjBQr3GWCqNNFgyWJbeQ10Lx/phzbQo3JNAxUok1DZ8JHRGcL6PgMRgj6HylnLNndxn4Z6A=="],
+
+ "@next/swc-linux-x64-gnu": ["@next/swc-linux-x64-gnu@15.4.8", "", { "os": "linux", "cpu": "x64" }, "sha512-9fLAAXKAL3xEIFdKdzG5rUSvSiZTLLTCc6JKq1z04DR4zY7DbAPcRvNm3K1inVhTiQCs19ZRAgUerHiVKMZZIA=="],
+
+ "@next/swc-linux-x64-musl": ["@next/swc-linux-x64-musl@15.4.8", "", { "os": "linux", "cpu": "x64" }, "sha512-s45V7nfb5g7dbS7JK6XZDcapicVrMMvX2uYgOHP16QuKH/JA285oy6HcxlKqwUNaFY/UC6EvQ8QZUOo19cBKSA=="],
+
+ "@next/swc-win32-arm64-msvc": ["@next/swc-win32-arm64-msvc@15.4.8", "", { "os": "win32", "cpu": "arm64" }, "sha512-KjgeQyOAq7t/HzAJcWPGA8X+4WY03uSCZ2Ekk98S9OgCFsb6lfBE3dbUzUuEQAN2THbwYgFfxX2yFTCMm8Kehw=="],
+
+ "@next/swc-win32-x64-msvc": ["@next/swc-win32-x64-msvc@15.4.8", "", { "os": "win32", "cpu": "x64" }, "sha512-Exsmf/+42fWVnLMaZHzshukTBxZrSwuuLKFvqhGHJ+mC1AokqieLY/XzAl3jc/CqhXLqLY3RRjkKJ9YnLPcRWg=="],
+
+ "@nodelib/fs.scandir": ["@nodelib/fs.scandir@2.1.5", "", { "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" } }, "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g=="],
+
+ "@nodelib/fs.stat": ["@nodelib/fs.stat@2.0.5", "", {}, "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A=="],
+
+ "@nodelib/fs.walk": ["@nodelib/fs.walk@1.2.8", "", { "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" } }, "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg=="],
+
"@npmcli/fs": ["@npmcli/fs@2.1.2", "", { "dependencies": { "@gar/promisify": "^1.1.3", "semver": "^7.3.5" } }, "sha512-yOJKRvohFOaLqipNtwYB9WugyZKhC/DZC4VYPmpaCzDBrA8YpK3qHZ8/HGscMnE4GqbkLNuVcCnxkeQEdGt6LQ=="],
"@npmcli/move-file": ["@npmcli/move-file@2.0.1", "", { "dependencies": { "mkdirp": "^1.0.4", "rimraf": "^3.0.2" } }, "sha512-mJd2Z5TjYWq/ttPLLGqArdtnC74J6bOzg4rMDnN+p1xTacZ2yPRCk2y0oSWQtygLR9YVQXgOcONrwtnk3JupxQ=="],
@@ -466,6 +952,12 @@
"@octokit/webhooks-methods": ["@octokit/webhooks-methods@6.0.0", "", {}, "sha512-MFlzzoDJVw/GcbfzVC1RLR36QqkTLUf79vLVO3D+xn7r0QgxnFoLZgtrzxiQErAjFUOdH6fas2KeQJ1yr/qaXQ=="],
+ "@open-draft/deferred-promise": ["@open-draft/deferred-promise@2.2.0", "", {}, "sha512-CecwLWx3rhxVQF6V4bAgPS5t+So2sTbPgAzafKkVizyi7tlwpcFpdFqq+wqF2OwNBmqFuu6tOyouTuxgpMfzmA=="],
+
+ "@open-draft/logger": ["@open-draft/logger@0.3.0", "", { "dependencies": { "is-node-process": "^1.2.0", "outvariant": "^1.4.0" } }, "sha512-X2g45fzhxH238HKO4xbSr7+wBS8Fvw6ixhTDuvLd5mqh6bJJCFAPwU9mPDxbcrRtfxv4u5IHCEH77BmxvXmmxQ=="],
+
+ "@open-draft/until": ["@open-draft/until@2.1.0", "", {}, "sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg=="],
+
"@opentelemetry/api": ["@opentelemetry/api@1.9.0", "", {}, "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg=="],
"@opentelemetry/api-logs": ["@opentelemetry/api-logs@0.206.0", "", { "dependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-yIVDu9jX//nV5wSMLZLdHdb1SKHIMj9k+wQVFtln5Flcgdldz9BkHtavvExQiJqBZg2OpEEJEZmzQazYztdz2A=="],
@@ -618,8 +1110,28 @@
"@opentelemetry/sql-common": ["@opentelemetry/sql-common@0.41.2", "", { "dependencies": { "@opentelemetry/core": "^2.0.0" }, "peerDependencies": { "@opentelemetry/api": "^1.1.0" } }, "sha512-4mhWm3Z8z+i508zQJ7r6Xi7y4mmoJpdvH0fZPFRkWrdp5fq7hhZ2HhYokEOLkfqSMgPR4Z9EyB3DBkbKGOqZiQ=="],
+ "@oxc-parser/binding-darwin-arm64": ["@oxc-parser/binding-darwin-arm64@0.36.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-i49m1L++ZAeAjNob5qho2ir3nflhIzgQl9hsFvmMBzG+we4OKseGlUAd/nEXJ2XnNvu1TEi/EocsE9XgWM5xlg=="],
+
+ "@oxc-parser/binding-darwin-x64": ["@oxc-parser/binding-darwin-x64@0.36.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-+UYnDyItrh76gp7JNiTwCYyipwD1f1GkXlVkFt7L4y8GI2nMkTsvS1kUrYVsZTi33GHq4d7janrEN9HUTHqfGg=="],
+
+ "@oxc-parser/binding-linux-arm64-gnu": ["@oxc-parser/binding-linux-arm64-gnu@0.36.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-ZZXcl9FD77EbAENTpYXCYr/zZS1Ab+qomiKIhXVRC1PXIP8qqcYpFl2NtrJHKy0ScIqNHYjzB2F9pj84howN3w=="],
+
+ "@oxc-parser/binding-linux-arm64-musl": ["@oxc-parser/binding-linux-arm64-musl@0.36.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-2PqTw3uiazv4vp8pGSNWDAp8DSHAxFPh3rIub5colRlu4lLGZJNXm9fgFIp0fS5Z6BFYyhnYzWNZm8bc0q2tYA=="],
+
+ "@oxc-parser/binding-linux-x64-gnu": ["@oxc-parser/binding-linux-x64-gnu@0.36.0", "", { "os": "linux", "cpu": "x64" }, "sha512-kmRgQj/48VaBf4R9P0ccZdpgepz4F2k7nJgg5L+oPenrJhnZeD9eUzImBlN27XcpBZhDxsvj7jOTp5xSVZ7E/Q=="],
+
+ "@oxc-parser/binding-linux-x64-musl": ["@oxc-parser/binding-linux-x64-musl@0.36.0", "", { "os": "linux", "cpu": "x64" }, "sha512-hxpR0DdK2Zm6Gt3m/bqVLw4nZJdzkr5SsPc6sv0rPtsABx8Q6zxAf300+9mWxUm/Bf4hGHoWsCWFgWN0n87dBA=="],
+
+ "@oxc-parser/binding-win32-arm64-msvc": ["@oxc-parser/binding-win32-arm64-msvc@0.36.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-IsarNWJhsbtARGa/7L2X2FfJt3mdQVH/CASWv99SowVaO62kLZ1lYHtU2Ps0F8dzfCwQUsWo5XnDtmfhd5nAkw=="],
+
+ "@oxc-parser/binding-win32-x64-msvc": ["@oxc-parser/binding-win32-x64-msvc@0.36.0", "", { "os": "win32", "cpu": "x64" }, "sha512-NSlWyqWtmWA78nPWRWWzc4W6A8zY0YdX2yjbGg5PnEMiTXrW7NdVTyXdffX59ERDxtC3BT6E78e/sKS9u983pQ=="],
+
+ "@oxc-project/runtime": ["@oxc-project/runtime@0.72.3", "", {}, "sha512-FtOS+0v7rZcnjXzYTTqv1vu/KDptD1UztFgoZkYBGe/6TcNFm+SP/jQoLvzau1SPir95WgDOBOUm2Gmsm+bQag=="],
+
"@oxc-project/types": ["@oxc-project/types@0.94.0", "", {}, "sha512-+UgQT/4o59cZfH6Cp7G0hwmqEQ0wE+AdIwhikdwnhWI9Dp8CgSY081+Q3O67/wq3VJu8mgUEB93J9EHHn70fOw=="],
+ "@panva/hkdf": ["@panva/hkdf@1.2.1", "", {}, "sha512-6oclG6Y3PiDFcoyk8srjLfVKyMfVCKJ27JwNPViuXziFpmdz+MZnZN/aKY0JGXgYuO/VghU0jcOAZgWXZ1Dmrw=="],
+
"@parcel/watcher": ["@parcel/watcher@2.5.1", "", { "dependencies": { "detect-libc": "^1.0.3", "is-glob": "^4.0.3", "micromatch": "^4.0.5", "node-addon-api": "^7.0.0" }, "optionalDependencies": { "@parcel/watcher-android-arm64": "2.5.1", "@parcel/watcher-darwin-arm64": "2.5.1", "@parcel/watcher-darwin-x64": "2.5.1", "@parcel/watcher-freebsd-x64": "2.5.1", "@parcel/watcher-linux-arm-glibc": "2.5.1", "@parcel/watcher-linux-arm-musl": "2.5.1", "@parcel/watcher-linux-arm64-glibc": "2.5.1", "@parcel/watcher-linux-arm64-musl": "2.5.1", "@parcel/watcher-linux-x64-glibc": "2.5.1", "@parcel/watcher-linux-x64-musl": "2.5.1", "@parcel/watcher-win32-arm64": "2.5.1", "@parcel/watcher-win32-ia32": "2.5.1", "@parcel/watcher-win32-x64": "2.5.1" } }, "sha512-dfUnCxiN9H4ap84DvD2ubjw+3vUNpstxa0TneY/Paat8a3R4uQZDLSvWjmznAY/DoahqTHl9V46HF/Zs3F29pg=="],
"@parcel/watcher-android-arm64": ["@parcel/watcher-android-arm64@2.5.1", "", { "os": "android", "cpu": "arm64" }, "sha512-KF8+j9nNbUN8vzOFDpRMsaKBHZ/mcjEjMToVMJOhTozkDonQFFrRcfdLWn6yWKCmJKmdVxSgHiYvTCef4/qcBA=="],
@@ -656,6 +1168,10 @@
"@pnpm/npm-conf": ["@pnpm/npm-conf@2.3.1", "", { "dependencies": { "@pnpm/config.env-replace": "^1.1.0", "@pnpm/network.ca-file": "^1.0.1", "config-chain": "^1.1.11" } }, "sha512-c83qWb22rNRuB0UaVCI0uRPNRr8Z0FWnEIvT47jiHAmOIUHbBOg5XvV7pM5x+rKn9HRpjxquDbXYSXr3fAKFcw=="],
+ "@polka/url": ["@polka/url@1.0.0-next.29", "", {}, "sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww=="],
+
+ "@posthog/core": ["@posthog/core@1.7.1", "", { "dependencies": { "cross-spawn": "^7.0.6" } }, "sha512-kjK0eFMIpKo9GXIbts8VtAknsoZ18oZorANdtuTj1CbgS28t4ZVq//HAWhnxEuXRTrtkd+SUJ6Ux3j2Af8NCuA=="],
+
"@protobufjs/aspromise": ["@protobufjs/aspromise@1.1.2", "", {}, "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ=="],
"@protobufjs/base64": ["@protobufjs/base64@1.1.2", "", {}, "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg=="],
@@ -680,27 +1196,51 @@
"@radix-ui/primitive": ["@radix-ui/primitive@1.1.3", "", {}, "sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg=="],
+ "@radix-ui/react-alert-dialog": ["@radix-ui/react-alert-dialog@1.1.15", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-dialog": "1.1.15", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-oTVLkEw5GpdRe29BqJ0LSDFWI3qu0vR1M0mUkOQWDIUnY/QIkLpgDMWuKxP94c2NAC2LGcgVhG1ImF3jkZ5wXw=="],
+
+ "@radix-ui/react-arrow": ["@radix-ui/react-arrow@1.1.7", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w=="],
+
+ "@radix-ui/react-checkbox": ["@radix-ui/react-checkbox@1.3.3", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-previous": "1.1.1", "@radix-ui/react-use-size": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-wBbpv+NQftHDdG86Qc0pIyXk5IR3tM8Vd0nWLKDcX8nNn4nXFOFwsKuqw2okA/1D/mpaAkmuyndrPJTYDNZtFw=="],
+
+ "@radix-ui/react-collection": ["@radix-ui/react-collection@1.1.7", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw=="],
+
"@radix-ui/react-compose-refs": ["@radix-ui/react-compose-refs@1.1.2", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg=="],
"@radix-ui/react-context": ["@radix-ui/react-context@1.1.2", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA=="],
"@radix-ui/react-dialog": ["@radix-ui/react-dialog@1.1.15", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-focus-guards": "1.1.3", "@radix-ui/react-focus-scope": "1.1.7", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3", "@radix-ui/react-use-controllable-state": "1.2.2", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.6.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-TCglVRtzlffRNxRMEyR36DGBLJpeusFcgMVD9PZEzAKnUs1lKCgX5u9BmC2Yg+LL9MgZDugFFs1Vl+Jp4t/PGw=="],
+ "@radix-ui/react-direction": ["@radix-ui/react-direction@1.1.1", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw=="],
+
"@radix-ui/react-dismissable-layer": ["@radix-ui/react-dismissable-layer@1.1.11", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-escape-keydown": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-Nqcp+t5cTB8BinFkZgXiMJniQH0PsUt2k51FUhbdfeKvc4ACcG2uQniY/8+h1Yv6Kza4Q7lD7PQV0z0oicE0Mg=="],
+ "@radix-ui/react-dropdown-menu": ["@radix-ui/react-dropdown-menu@2.1.16", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-menu": "2.1.16", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-1PLGQEynI/3OX/ftV54COn+3Sud/Mn8vALg2rWnBLnRaGtJDduNW/22XjlGgPdpcIbiQxjKtb7BkcjP00nqfJw=="],
+
"@radix-ui/react-focus-guards": ["@radix-ui/react-focus-guards@1.1.3", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-0rFg/Rj2Q62NCm62jZw0QX7a3sz6QCQU0LpZdNrJX8byRGaGVTqbrW9jAoIAHyMQqsNpeZ81YgSizOt5WXq0Pw=="],
"@radix-ui/react-focus-scope": ["@radix-ui/react-focus-scope@1.1.7", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw=="],
"@radix-ui/react-id": ["@radix-ui/react-id@1.1.1", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg=="],
+ "@radix-ui/react-menu": ["@radix-ui/react-menu@2.1.16", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-focus-guards": "1.1.3", "@radix-ui/react-focus-scope": "1.1.7", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-popper": "1.2.8", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-roving-focus": "1.1.11", "@radix-ui/react-slot": "1.2.3", "@radix-ui/react-use-callback-ref": "1.1.1", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.6.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-72F2T+PLlphrqLcAotYPp0uJMr5SjP5SL01wfEspJbru5Zs5vQaSHb4VB3ZMJPimgHHCHG7gMOeOB9H3Hdmtxg=="],
+
+ "@radix-ui/react-popper": ["@radix-ui/react-popper@1.2.8", "", { "dependencies": { "@floating-ui/react-dom": "^2.0.0", "@radix-ui/react-arrow": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-layout-effect": "1.1.1", "@radix-ui/react-use-rect": "1.1.1", "@radix-ui/react-use-size": "1.1.1", "@radix-ui/rect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-0NJQ4LFFUuWkE7Oxf0htBKS6zLkkjBH+hM1uk7Ng705ReR8m/uelduy1DBo0PyBXPKVnBA6YBlU94MBGXrSBCw=="],
+
"@radix-ui/react-portal": ["@radix-ui/react-portal@1.1.9", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ=="],
"@radix-ui/react-presence": ["@radix-ui/react-presence@1.1.5", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-/jfEwNDdQVBCNvjkGit4h6pMOzq8bHkopq458dPt2lMjx+eBQUohZNG9A7DtO/O5ukSbxuaNGXMjHicgwy6rQQ=="],
"@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.3", "", { "dependencies": { "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ=="],
- "@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
+ "@radix-ui/react-roving-focus": ["@radix-ui/react-roving-focus@1.1.11", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-7A6S9jSgm/S+7MdtNDSb+IU859vQqJ/QAtcYQcfFC6W8RS4IxIZDldLR0xqCFZ6DCyrQLjLPsxtTNch5jVA4lA=="],
+
+ "@radix-ui/react-separator": ["@radix-ui/react-separator@1.1.8", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-sDvqVY4itsKwwSMEe0jtKgfTh+72Sy3gPmQpjqcQneqQ4PFmr/1I0YA+2/puilhggCe2gJcx5EBAYFkWkdpa5g=="],
+
+ "@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.4", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Jl+bCv8HxKnlTLVrcDE8zTMJ09R9/ukw4qBs/oZClOfoQk/cOTbDn+NceXfV7j09YPVQUryJPHurafcSg6EVKA=="],
+
+ "@radix-ui/react-tabs": ["@radix-ui/react-tabs@1.1.13", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-roving-focus": "1.1.11", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-7xdcatg7/U+7+Udyoj2zodtI9H/IIopqo+YOIcZOq1nJwXWBZ9p8xiu5llXlekDbZkca79a/fozEYQXIA4sW6A=="],
+
+ "@radix-ui/react-tooltip": ["@radix-ui/react-tooltip@1.2.8", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-popper": "1.2.8", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-visually-hidden": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-tY7sVt1yL9ozIxvmbtN5qtmH2krXcBCfjEiCgKGLqunJHvgvZG2Pcl2oQ3kbcZARb1BGEHdkLzcYGO8ynVlieg=="],
"@radix-ui/react-use-callback-ref": ["@radix-ui/react-use-callback-ref@1.1.1", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg=="],
@@ -712,6 +1252,20 @@
"@radix-ui/react-use-layout-effect": ["@radix-ui/react-use-layout-effect@1.1.1", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ=="],
+ "@radix-ui/react-use-previous": ["@radix-ui/react-use-previous@1.1.1", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ=="],
+
+ "@radix-ui/react-use-rect": ["@radix-ui/react-use-rect@1.1.1", "", { "dependencies": { "@radix-ui/rect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w=="],
+
+ "@radix-ui/react-use-size": ["@radix-ui/react-use-size@1.1.1", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ=="],
+
+ "@radix-ui/react-visually-hidden": ["@radix-ui/react-visually-hidden@1.2.3", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug=="],
+
+ "@radix-ui/rect": ["@radix-ui/rect@1.1.1", "", {}, "sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw=="],
+
+ "@reduxjs/toolkit": ["@reduxjs/toolkit@2.11.1", "", { "dependencies": { "@standard-schema/spec": "^1.0.0", "@standard-schema/utils": "^0.3.0", "immer": "^11.0.0", "redux": "^5.0.1", "redux-thunk": "^3.1.0", "reselect": "^5.1.0" }, "peerDependencies": { "react": "^16.9.0 || ^17.0.0 || ^18 || ^19", "react-redux": "^7.2.1 || ^8.1.3 || ^9.0.0" }, "optionalPeers": ["react", "react-redux"] }, "sha512-HjhlEREguAyBTGNzRlGNiDHGQ2EjLSPWwdhhpoEqHYy8hWak3Dp6/fU72OfqVsiMb8S6rbfPsWUF24fxpilrVA=="],
+
+ "@remixicon/react": ["@remixicon/react@4.7.0", "", { "peerDependencies": { "react": ">=18.2.0" } }, "sha512-ODBQjdbOjnFguCqctYkpDjERXOInNaBnRPDKfZOBvbzExBAwr2BaH/6AHFTg/UAFzBDkwtylfMT8iKPAkLwPLQ=="],
+
"@rocicorp/lock": ["@rocicorp/lock@1.0.4", "", { "dependencies": { "@rocicorp/resolver": "^1.0.2" } }, "sha512-FavTiO8ETXFXDVfA87IThGduTTTR8iqzBnr/c60gUUmbk7knGEXPmf2B+yiNuluJD0ku0fL2V2r62UXnsLXl6w=="],
"@rocicorp/resolver": ["@rocicorp/resolver@1.0.2", "", {}, "sha512-TfjMTQp9cNNqNtHFfa+XHEGdA7NnmDRu+ZJH4YF3dso0Xk/b9DMhg/sl+b6CR4ThFZArXXDsG1j8Mwl34wcOZQ=="],
@@ -746,31 +1300,205 @@
"@rolldown/pluginutils": ["@rolldown/pluginutils@1.0.0-beta.43", "", {}, "sha512-5Uxg7fQUCmfhax7FJke2+8B6cqgeUJUD9o2uXIKXhD+mG0mL6NObmVoi9wXEU1tY89mZKgAYA6fTbftx3q2ZPQ=="],
- "@sec-ant/readable-stream": ["@sec-ant/readable-stream@0.4.1", "", {}, "sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg=="],
+ "@rollup/plugin-inject": ["@rollup/plugin-inject@5.0.5", "", { "dependencies": { "@rollup/pluginutils": "^5.0.1", "estree-walker": "^2.0.2", "magic-string": "^0.30.3" }, "peerDependencies": { "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" }, "optionalPeers": ["rollup"] }, "sha512-2+DEJbNBoPROPkgTDNe8/1YXWcqxbN5DTjASVIOx8HS+pITXushyNiBV56RB08zuptzz8gT3YfkqriTBVycepg=="],
- "@selderee/plugin-htmlparser2": ["@selderee/plugin-htmlparser2@0.11.0", "", { "dependencies": { "domhandler": "^5.0.3", "selderee": "^0.11.0" } }, "sha512-P33hHGdldxGabLFjPPpaTxVolMrzrcegejx+0GxjrIb9Zv48D8yAIA/QTDR2dFl7Uz7urX8aX6+5bCZslr+gWQ=="],
+ "@rollup/pluginutils": ["@rollup/pluginutils@5.3.0", "", { "dependencies": { "@types/estree": "^1.0.0", "estree-walker": "^2.0.2", "picomatch": "^4.0.2" }, "peerDependencies": { "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" }, "optionalPeers": ["rollup"] }, "sha512-5EdhGZtnu3V88ces7s53hhfK5KSASnJZv8Lulpc04cWO3REESroJXg73DFsOmgbU2BhwV0E20bu2IDZb3VKW4Q=="],
- "@sindresorhus/is": ["@sindresorhus/is@4.6.0", "", {}, "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw=="],
+ "@rollup/rollup-android-arm-eabi": ["@rollup/rollup-android-arm-eabi@4.53.3", "", { "os": "android", "cpu": "arm" }, "sha512-mRSi+4cBjrRLoaal2PnqH82Wqyb+d3HsPUN/W+WslCXsZsyHa9ZeQQX/pQsZaVIWDkPcpV6jJ+3KLbTbgnwv8w=="],
- "@sindresorhus/merge-streams": ["@sindresorhus/merge-streams@4.0.0", "", {}, "sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ=="],
+ "@rollup/rollup-android-arm64": ["@rollup/rollup-android-arm64@4.53.3", "", { "os": "android", "cpu": "arm64" }, "sha512-CbDGaMpdE9sh7sCmTrTUyllhrg65t6SwhjlMJsLr+J8YjFuPmCEjbBSx4Z/e4SmDyH3aB5hGaJUP2ltV/vcs4w=="],
- "@slack/bolt": ["@slack/bolt@4.5.0", "", { "dependencies": { "@slack/logger": "^4.0.0", "@slack/oauth": "^3.0.4", "@slack/socket-mode": "^2.0.5", "@slack/types": "^2.17.0", "@slack/web-api": "^7.11.0", "axios": "^1.12.0", "express": "^5.0.0", "path-to-regexp": "^8.1.0", "raw-body": "^3", "tsscmp": "^1.0.6" }, "peerDependencies": { "@types/express": "^5.0.0" } }, "sha512-1YbgO/UDLYa0vOtGsTohpnl/dSKwo7RbUd29IJMfqNDLn+t81MmIL0w2KPNjZJQLsoevTRNCdHDeh4PJyY8DIA=="],
+ "@rollup/rollup-darwin-arm64": ["@rollup/rollup-darwin-arm64@4.53.3", "", { "os": "darwin", "cpu": "arm64" }, "sha512-Nr7SlQeqIBpOV6BHHGZgYBuSdanCXuw09hon14MGOLGmXAFYjx1wNvquVPmpZnl0tLjg25dEdr4IQ6GgyToCUA=="],
- "@slack/logger": ["@slack/logger@4.0.0", "", { "dependencies": { "@types/node": ">=18.0.0" } }, "sha512-Wz7QYfPAlG/DR+DfABddUZeNgoeY7d1J39OCR2jR+v7VBsB8ezulDK5szTnDDPDwLH5IWhLvXIHlCFZV7MSKgA=="],
+ "@rollup/rollup-darwin-x64": ["@rollup/rollup-darwin-x64@4.53.3", "", { "os": "darwin", "cpu": "x64" }, "sha512-DZ8N4CSNfl965CmPktJ8oBnfYr3F8dTTNBQkRlffnUarJ2ohudQD17sZBa097J8xhQ26AwhHJ5mvUyQW8ddTsQ=="],
- "@slack/oauth": ["@slack/oauth@3.0.4", "", { "dependencies": { "@slack/logger": "^4", "@slack/web-api": "^7.10.0", "@types/jsonwebtoken": "^9", "@types/node": ">=18", "jsonwebtoken": "^9" } }, "sha512-+8H0g7mbrHndEUbYCP7uYyBCbwqmm3E6Mo3nfsDvZZW74zKk1ochfH/fWSvGInYNCVvaBUbg3RZBbTp0j8yJCg=="],
+ "@rollup/rollup-freebsd-arm64": ["@rollup/rollup-freebsd-arm64@4.53.3", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-yMTrCrK92aGyi7GuDNtGn2sNW+Gdb4vErx4t3Gv/Tr+1zRb8ax4z8GWVRfr3Jw8zJWvpGHNpss3vVlbF58DZ4w=="],
- "@slack/socket-mode": ["@slack/socket-mode@2.0.5", "", { "dependencies": { "@slack/logger": "^4", "@slack/web-api": "^7.10.0", "@types/node": ">=18", "@types/ws": "^8", "eventemitter3": "^5", "ws": "^8" } }, "sha512-VaapvmrAifeFLAFaDPfGhEwwunTKsI6bQhYzxRXw7BSujZUae5sANO76WqlVsLXuhVtCVrBWPiS2snAQR2RHJQ=="],
+ "@rollup/rollup-freebsd-x64": ["@rollup/rollup-freebsd-x64@4.53.3", "", { "os": "freebsd", "cpu": "x64" }, "sha512-lMfF8X7QhdQzseM6XaX0vbno2m3hlyZFhwcndRMw8fbAGUGL3WFMBdK0hbUBIUYcEcMhVLr1SIamDeuLBnXS+Q=="],
- "@slack/types": ["@slack/types@2.17.0", "", {}, "sha512-30KdPUBGJczlchnV8tKSxFG1yPk6rb8waba6HAoNHOy99zomzovQo6WpH9vQsY0g3RlxgVLojxKMRe0WjEjFWw=="],
+ "@rollup/rollup-linux-arm-gnueabihf": ["@rollup/rollup-linux-arm-gnueabihf@4.53.3", "", { "os": "linux", "cpu": "arm" }, "sha512-k9oD15soC/Ln6d2Wv/JOFPzZXIAIFLp6B+i14KhxAfnq76ajt0EhYc5YPeX6W1xJkAdItcVT+JhKl1QZh44/qw=="],
- "@slack/web-api": ["@slack/web-api@7.11.0", "", { "dependencies": { "@slack/logger": "^4.0.0", "@slack/types": "^2.17.0", "@types/node": ">=18.0.0", "@types/retry": "0.12.0", "axios": "^1.11.0", "eventemitter3": "^5.0.1", "form-data": "^4.0.4", "is-electron": "2.2.2", "is-stream": "^2", "p-queue": "^6", "p-retry": "^4", "retry": "^0.13.1" } }, "sha512-m+dGluB7OTebNqEt7wRXyvUfjUGLBuqN4ZAjEmQvu7oeKmVNBXO+mQbH9nop0f/GCvkGK52aaoOWz0H1ole2xg=="],
+ "@rollup/rollup-linux-arm-musleabihf": ["@rollup/rollup-linux-arm-musleabihf@4.53.3", "", { "os": "linux", "cpu": "arm" }, "sha512-vTNlKq+N6CK/8UktsrFuc+/7NlEYVxgaEgRXVUVK258Z5ymho29skzW1sutgYjqNnquGwVUObAaxae8rZ6YMhg=="],
- "@standard-schema/spec": ["@standard-schema/spec@1.0.0", "", {}, "sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA=="],
+ "@rollup/rollup-linux-arm64-gnu": ["@rollup/rollup-linux-arm64-gnu@4.53.3", "", { "os": "linux", "cpu": "arm64" }, "sha512-RGrFLWgMhSxRs/EWJMIFM1O5Mzuz3Xy3/mnxJp/5cVhZ2XoCAxJnmNsEyeMJtpK+wu0FJFWz+QF4mjCA7AUQ3w=="],
- "@szmarczak/http-timer": ["@szmarczak/http-timer@4.0.6", "", { "dependencies": { "defer-to-connect": "^2.0.0" } }, "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w=="],
+ "@rollup/rollup-linux-arm64-musl": ["@rollup/rollup-linux-arm64-musl@4.53.3", "", { "os": "linux", "cpu": "arm64" }, "sha512-kASyvfBEWYPEwe0Qv4nfu6pNkITLTb32p4yTgzFCocHnJLAHs+9LjUu9ONIhvfT/5lv4YS5muBHyuV84epBo/A=="],
- "@tailwindcss/node": ["@tailwindcss/node@4.1.14", "", { "dependencies": { "@jridgewell/remapping": "^2.3.4", "enhanced-resolve": "^5.18.3", "jiti": "^2.6.0", "lightningcss": "1.30.1", "magic-string": "^0.30.19", "source-map-js": "^1.2.1", "tailwindcss": "4.1.14" } }, "sha512-hpz+8vFk3Ic2xssIA3e01R6jkmsAhvkQdXlEbRTk6S10xDAtiQiM3FyvZVGsucefq764euO/b8WUW9ysLdThHw=="],
+ "@rollup/rollup-linux-loong64-gnu": ["@rollup/rollup-linux-loong64-gnu@4.53.3", "", { "os": "linux", "cpu": "none" }, "sha512-JiuKcp2teLJwQ7vkJ95EwESWkNRFJD7TQgYmCnrPtlu50b4XvT5MOmurWNrCj3IFdyjBQ5p9vnrX4JM6I8OE7g=="],
+
+ "@rollup/rollup-linux-ppc64-gnu": ["@rollup/rollup-linux-ppc64-gnu@4.53.3", "", { "os": "linux", "cpu": "ppc64" }, "sha512-EoGSa8nd6d3T7zLuqdojxC20oBfNT8nexBbB/rkxgKj5T5vhpAQKKnD+h3UkoMuTyXkP5jTjK/ccNRmQrPNDuw=="],
+
+ "@rollup/rollup-linux-riscv64-gnu": ["@rollup/rollup-linux-riscv64-gnu@4.53.3", "", { "os": "linux", "cpu": "none" }, "sha512-4s+Wped2IHXHPnAEbIB0YWBv7SDohqxobiiPA1FIWZpX+w9o2i4LezzH/NkFUl8LRci/8udci6cLq+jJQlh+0g=="],
+
+ "@rollup/rollup-linux-riscv64-musl": ["@rollup/rollup-linux-riscv64-musl@4.53.3", "", { "os": "linux", "cpu": "none" }, "sha512-68k2g7+0vs2u9CxDt5ktXTngsxOQkSEV/xBbwlqYcUrAVh6P9EgMZvFsnHy4SEiUl46Xf0IObWVbMvPrr2gw8A=="],
+
+ "@rollup/rollup-linux-s390x-gnu": ["@rollup/rollup-linux-s390x-gnu@4.53.3", "", { "os": "linux", "cpu": "s390x" }, "sha512-VYsFMpULAz87ZW6BVYw3I6sWesGpsP9OPcyKe8ofdg9LHxSbRMd7zrVrr5xi/3kMZtpWL/wC+UIJWJYVX5uTKg=="],
+
+ "@rollup/rollup-linux-x64-gnu": ["@rollup/rollup-linux-x64-gnu@4.53.3", "", { "os": "linux", "cpu": "x64" }, "sha512-3EhFi1FU6YL8HTUJZ51imGJWEX//ajQPfqWLI3BQq4TlvHy4X0MOr5q3D2Zof/ka0d5FNdPwZXm3Yyib/UEd+w=="],
+
+ "@rollup/rollup-linux-x64-musl": ["@rollup/rollup-linux-x64-musl@4.53.3", "", { "os": "linux", "cpu": "x64" }, "sha512-eoROhjcc6HbZCJr+tvVT8X4fW3/5g/WkGvvmwz/88sDtSJzO7r/blvoBDgISDiCjDRZmHpwud7h+6Q9JxFwq1Q=="],
+
+ "@rollup/rollup-openharmony-arm64": ["@rollup/rollup-openharmony-arm64@4.53.3", "", { "os": "none", "cpu": "arm64" }, "sha512-OueLAWgrNSPGAdUdIjSWXw+u/02BRTcnfw9PN41D2vq/JSEPnJnVuBgw18VkN8wcd4fjUs+jFHVM4t9+kBSNLw=="],
+
+ "@rollup/rollup-win32-arm64-msvc": ["@rollup/rollup-win32-arm64-msvc@4.53.3", "", { "os": "win32", "cpu": "arm64" }, "sha512-GOFuKpsxR/whszbF/bzydebLiXIHSgsEUp6M0JI8dWvi+fFa1TD6YQa4aSZHtpmh2/uAlj/Dy+nmby3TJ3pkTw=="],
+
+ "@rollup/rollup-win32-ia32-msvc": ["@rollup/rollup-win32-ia32-msvc@4.53.3", "", { "os": "win32", "cpu": "ia32" }, "sha512-iah+THLcBJdpfZ1TstDFbKNznlzoxa8fmnFYK4V67HvmuNYkVdAywJSoteUszvBQ9/HqN2+9AZghbajMsFT+oA=="],
+
+ "@rollup/rollup-win32-x64-gnu": ["@rollup/rollup-win32-x64-gnu@4.53.3", "", { "os": "win32", "cpu": "x64" }, "sha512-J9QDiOIZlZLdcot5NXEepDkstocktoVjkaKUtqzgzpt2yWjGlbYiKyp05rWwk4nypbYUNoFAztEgixoLaSETkg=="],
+
+ "@rollup/rollup-win32-x64-msvc": ["@rollup/rollup-win32-x64-msvc@4.53.3", "", { "os": "win32", "cpu": "x64" }, "sha512-UhTd8u31dXadv0MopwGgNOBpUVROFKWVQgAg5N1ESyCz8AuBcMqm4AuTjrwgQKGDfoFuz02EuMRHQIw/frmYKQ=="],
+
+ "@sec-ant/readable-stream": ["@sec-ant/readable-stream@0.4.1", "", {}, "sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg=="],
+
+ "@selderee/plugin-htmlparser2": ["@selderee/plugin-htmlparser2@0.11.0", "", { "dependencies": { "domhandler": "^5.0.3", "selderee": "^0.11.0" } }, "sha512-P33hHGdldxGabLFjPPpaTxVolMrzrcegejx+0GxjrIb9Zv48D8yAIA/QTDR2dFl7Uz7urX8aX6+5bCZslr+gWQ=="],
+
+ "@sindresorhus/is": ["@sindresorhus/is@4.6.0", "", {}, "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw=="],
+
+ "@sindresorhus/merge-streams": ["@sindresorhus/merge-streams@4.0.0", "", {}, "sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ=="],
+
+ "@slack/bolt": ["@slack/bolt@4.5.0", "", { "dependencies": { "@slack/logger": "^4.0.0", "@slack/oauth": "^3.0.4", "@slack/socket-mode": "^2.0.5", "@slack/types": "^2.17.0", "@slack/web-api": "^7.11.0", "axios": "^1.12.0", "express": "^5.0.0", "path-to-regexp": "^8.1.0", "raw-body": "^3", "tsscmp": "^1.0.6" }, "peerDependencies": { "@types/express": "^5.0.0" } }, "sha512-1YbgO/UDLYa0vOtGsTohpnl/dSKwo7RbUd29IJMfqNDLn+t81MmIL0w2KPNjZJQLsoevTRNCdHDeh4PJyY8DIA=="],
+
+ "@slack/logger": ["@slack/logger@4.0.0", "", { "dependencies": { "@types/node": ">=18.0.0" } }, "sha512-Wz7QYfPAlG/DR+DfABddUZeNgoeY7d1J39OCR2jR+v7VBsB8ezulDK5szTnDDPDwLH5IWhLvXIHlCFZV7MSKgA=="],
+
+ "@slack/oauth": ["@slack/oauth@3.0.4", "", { "dependencies": { "@slack/logger": "^4", "@slack/web-api": "^7.10.0", "@types/jsonwebtoken": "^9", "@types/node": ">=18", "jsonwebtoken": "^9" } }, "sha512-+8H0g7mbrHndEUbYCP7uYyBCbwqmm3E6Mo3nfsDvZZW74zKk1ochfH/fWSvGInYNCVvaBUbg3RZBbTp0j8yJCg=="],
+
+ "@slack/socket-mode": ["@slack/socket-mode@2.0.5", "", { "dependencies": { "@slack/logger": "^4", "@slack/web-api": "^7.10.0", "@types/node": ">=18", "@types/ws": "^8", "eventemitter3": "^5", "ws": "^8" } }, "sha512-VaapvmrAifeFLAFaDPfGhEwwunTKsI6bQhYzxRXw7BSujZUae5sANO76WqlVsLXuhVtCVrBWPiS2snAQR2RHJQ=="],
+
+ "@slack/types": ["@slack/types@2.17.0", "", {}, "sha512-30KdPUBGJczlchnV8tKSxFG1yPk6rb8waba6HAoNHOy99zomzovQo6WpH9vQsY0g3RlxgVLojxKMRe0WjEjFWw=="],
+
+ "@slack/web-api": ["@slack/web-api@7.11.0", "", { "dependencies": { "@slack/logger": "^4.0.0", "@slack/types": "^2.17.0", "@types/node": ">=18.0.0", "@types/retry": "0.12.0", "axios": "^1.11.0", "eventemitter3": "^5.0.1", "form-data": "^4.0.4", "is-electron": "2.2.2", "is-stream": "^2", "p-queue": "^6", "p-retry": "^4", "retry": "^0.13.1" } }, "sha512-m+dGluB7OTebNqEt7wRXyvUfjUGLBuqN4ZAjEmQvu7oeKmVNBXO+mQbH9nop0f/GCvkGK52aaoOWz0H1ole2xg=="],
+
+ "@smithy/abort-controller": ["@smithy/abort-controller@4.2.5", "", { "dependencies": { "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-j7HwVkBw68YW8UmFRcjZOmssE77Rvk0GWAIN1oFBhsaovQmZWYCIcGa9/pwRB0ExI8Sk9MWNALTjftjHZea7VA=="],
+
+ "@smithy/chunked-blob-reader": ["@smithy/chunked-blob-reader@5.2.0", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-WmU0TnhEAJLWvfSeMxBNe5xtbselEO8+4wG0NtZeL8oR21WgH1xiO37El+/Y+H/Ie4SCwBy3MxYWmOYaGgZueA=="],
+
+ "@smithy/chunked-blob-reader-native": ["@smithy/chunked-blob-reader-native@4.2.1", "", { "dependencies": { "@smithy/util-base64": "^4.3.0", "tslib": "^2.6.2" } }, "sha512-lX9Ay+6LisTfpLid2zZtIhSEjHMZoAR5hHCR4H7tBz/Zkfr5ea8RcQ7Tk4mi0P76p4cN+Btz16Ffno7YHpKXnQ=="],
+
+ "@smithy/config-resolver": ["@smithy/config-resolver@4.4.3", "", { "dependencies": { "@smithy/node-config-provider": "^4.3.5", "@smithy/types": "^4.9.0", "@smithy/util-config-provider": "^4.2.0", "@smithy/util-endpoints": "^3.2.5", "@smithy/util-middleware": "^4.2.5", "tslib": "^2.6.2" } }, "sha512-ezHLe1tKLUxDJo2LHtDuEDyWXolw8WGOR92qb4bQdWq/zKenO5BvctZGrVJBK08zjezSk7bmbKFOXIVyChvDLw=="],
+
+ "@smithy/core": ["@smithy/core@3.18.5", "", { "dependencies": { "@smithy/middleware-serde": "^4.2.6", "@smithy/protocol-http": "^5.3.5", "@smithy/types": "^4.9.0", "@smithy/util-base64": "^4.3.0", "@smithy/util-body-length-browser": "^4.2.0", "@smithy/util-middleware": "^4.2.5", "@smithy/util-stream": "^4.5.6", "@smithy/util-utf8": "^4.2.0", "@smithy/uuid": "^1.1.0", "tslib": "^2.6.2" } }, "sha512-6gnIz3h+PEPQGDj8MnRSjDvKBah042jEoPgjFGJ4iJLBE78L4lY/n98x14XyPF4u3lN179Ub/ZKFY5za9GeLQw=="],
+
+ "@smithy/credential-provider-imds": ["@smithy/credential-provider-imds@4.2.5", "", { "dependencies": { "@smithy/node-config-provider": "^4.3.5", "@smithy/property-provider": "^4.2.5", "@smithy/types": "^4.9.0", "@smithy/url-parser": "^4.2.5", "tslib": "^2.6.2" } }, "sha512-BZwotjoZWn9+36nimwm/OLIcVe+KYRwzMjfhd4QT7QxPm9WY0HiOV8t/Wlh+HVUif0SBVV7ksq8//hPaBC/okQ=="],
+
+ "@smithy/eventstream-codec": ["@smithy/eventstream-codec@4.2.5", "", { "dependencies": { "@aws-crypto/crc32": "5.2.0", "@smithy/types": "^4.9.0", "@smithy/util-hex-encoding": "^4.2.0", "tslib": "^2.6.2" } }, "sha512-Ogt4Zi9hEbIP17oQMd68qYOHUzmH47UkK7q7Gl55iIm9oKt27MUGrC5JfpMroeHjdkOliOA4Qt3NQ1xMq/nrlA=="],
+
+ "@smithy/eventstream-serde-browser": ["@smithy/eventstream-serde-browser@4.2.5", "", { "dependencies": { "@smithy/eventstream-serde-universal": "^4.2.5", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-HohfmCQZjppVnKX2PnXlf47CW3j92Ki6T/vkAT2DhBR47e89pen3s4fIa7otGTtrVxmj7q+IhH0RnC5kpR8wtw=="],
+
+ "@smithy/eventstream-serde-config-resolver": ["@smithy/eventstream-serde-config-resolver@4.3.5", "", { "dependencies": { "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-ibjQjM7wEXtECiT6my1xfiMH9IcEczMOS6xiCQXoUIYSj5b1CpBbJ3VYbdwDy8Vcg5JHN7eFpOCGk8nyZAltNQ=="],
+
+ "@smithy/eventstream-serde-node": ["@smithy/eventstream-serde-node@4.2.5", "", { "dependencies": { "@smithy/eventstream-serde-universal": "^4.2.5", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-+elOuaYx6F2H6x1/5BQP5ugv12nfJl66GhxON8+dWVUEDJ9jah/A0tayVdkLRP0AeSac0inYkDz5qBFKfVp2Gg=="],
+
+ "@smithy/eventstream-serde-universal": ["@smithy/eventstream-serde-universal@4.2.5", "", { "dependencies": { "@smithy/eventstream-codec": "^4.2.5", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-G9WSqbST45bmIFaeNuP/EnC19Rhp54CcVdX9PDL1zyEB514WsDVXhlyihKlGXnRycmHNmVv88Bvvt4EYxWef/Q=="],
+
+ "@smithy/fetch-http-handler": ["@smithy/fetch-http-handler@5.3.6", "", { "dependencies": { "@smithy/protocol-http": "^5.3.5", "@smithy/querystring-builder": "^4.2.5", "@smithy/types": "^4.9.0", "@smithy/util-base64": "^4.3.0", "tslib": "^2.6.2" } }, "sha512-3+RG3EA6BBJ/ofZUeTFJA7mHfSYrZtQIrDP9dI8Lf7X6Jbos2jptuLrAAteDiFVrmbEmLSuRG/bUKzfAXk7dhg=="],
+
+ "@smithy/hash-blob-browser": ["@smithy/hash-blob-browser@4.2.6", "", { "dependencies": { "@smithy/chunked-blob-reader": "^5.2.0", "@smithy/chunked-blob-reader-native": "^4.2.1", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-8P//tA8DVPk+3XURk2rwcKgYwFvwGwmJH/wJqQiSKwXZtf/LiZK+hbUZmPj/9KzM+OVSwe4o85KTp5x9DUZTjw=="],
+
+ "@smithy/hash-node": ["@smithy/hash-node@4.2.5", "", { "dependencies": { "@smithy/types": "^4.9.0", "@smithy/util-buffer-from": "^4.2.0", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" } }, "sha512-DpYX914YOfA3UDT9CN1BM787PcHfWRBB43fFGCYrZFUH0Jv+5t8yYl+Pd5PW4+QzoGEDvn5d5QIO4j2HyYZQSA=="],
+
+ "@smithy/hash-stream-node": ["@smithy/hash-stream-node@4.2.5", "", { "dependencies": { "@smithy/types": "^4.9.0", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" } }, "sha512-6+do24VnEyvWcGdHXomlpd0m8bfZePpUKBy7m311n+JuRwug8J4dCanJdTymx//8mi0nlkflZBvJe+dEO/O12Q=="],
+
+ "@smithy/invalid-dependency": ["@smithy/invalid-dependency@4.2.5", "", { "dependencies": { "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-2L2erASEro1WC5nV+plwIMxrTXpvpfzl4e+Nre6vBVRR2HKeGGcvpJyyL3/PpiSg+cJG2KpTmZmq934Olb6e5A=="],
+
+ "@smithy/is-array-buffer": ["@smithy/is-array-buffer@4.2.0", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-DZZZBvC7sjcYh4MazJSGiWMI2L7E0oCiRHREDzIxi/M2LY79/21iXt6aPLHge82wi5LsuRF5A06Ds3+0mlh6CQ=="],
+
+ "@smithy/md5-js": ["@smithy/md5-js@4.2.5", "", { "dependencies": { "@smithy/types": "^4.9.0", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" } }, "sha512-Bt6jpSTMWfjCtC0s79gZ/WZ1w90grfmopVOWqkI2ovhjpD5Q2XRXuecIPB9689L2+cCySMbaXDhBPU56FKNDNg=="],
+
+ "@smithy/middleware-content-length": ["@smithy/middleware-content-length@4.2.5", "", { "dependencies": { "@smithy/protocol-http": "^5.3.5", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-Y/RabVa5vbl5FuHYV2vUCwvh/dqzrEY/K2yWPSqvhFUwIY0atLqO4TienjBXakoy4zrKAMCZwg+YEqmH7jaN7A=="],
+
+ "@smithy/middleware-endpoint": ["@smithy/middleware-endpoint@4.3.12", "", { "dependencies": { "@smithy/core": "^3.18.5", "@smithy/middleware-serde": "^4.2.6", "@smithy/node-config-provider": "^4.3.5", "@smithy/shared-ini-file-loader": "^4.4.0", "@smithy/types": "^4.9.0", "@smithy/url-parser": "^4.2.5", "@smithy/util-middleware": "^4.2.5", "tslib": "^2.6.2" } }, "sha512-9pAX/H+VQPzNbouhDhkW723igBMLgrI8OtX+++M7iKJgg/zY/Ig3i1e6seCcx22FWhE6Q/S61BRdi2wXBORT+A=="],
+
+ "@smithy/middleware-retry": ["@smithy/middleware-retry@4.4.12", "", { "dependencies": { "@smithy/node-config-provider": "^4.3.5", "@smithy/protocol-http": "^5.3.5", "@smithy/service-error-classification": "^4.2.5", "@smithy/smithy-client": "^4.9.8", "@smithy/types": "^4.9.0", "@smithy/util-middleware": "^4.2.5", "@smithy/util-retry": "^4.2.5", "@smithy/uuid": "^1.1.0", "tslib": "^2.6.2" } }, "sha512-S4kWNKFowYd0lID7/DBqWHOQxmxlsf0jBaos9chQZUWTVOjSW1Ogyh8/ib5tM+agFDJ/TCxuCTvrnlc+9cIBcQ=="],
+
+ "@smithy/middleware-serde": ["@smithy/middleware-serde@4.2.6", "", { "dependencies": { "@smithy/protocol-http": "^5.3.5", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-VkLoE/z7e2g8pirwisLz8XJWedUSY8my/qrp81VmAdyrhi94T+riBfwP+AOEEFR9rFTSonC/5D2eWNmFabHyGQ=="],
+
+ "@smithy/middleware-stack": ["@smithy/middleware-stack@4.2.5", "", { "dependencies": { "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-bYrutc+neOyWxtZdbB2USbQttZN0mXaOyYLIsaTbJhFsfpXyGWUxJpEuO1rJ8IIJm2qH4+xJT0mxUSsEDTYwdQ=="],
+
+ "@smithy/node-config-provider": ["@smithy/node-config-provider@4.3.5", "", { "dependencies": { "@smithy/property-provider": "^4.2.5", "@smithy/shared-ini-file-loader": "^4.4.0", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-UTurh1C4qkVCtqggI36DGbLB2Kv8UlcFdMXDcWMbqVY2uRg0XmT9Pb4Vj6oSQ34eizO1fvR0RnFV4Axw4IrrAg=="],
+
+ "@smithy/node-http-handler": ["@smithy/node-http-handler@4.4.5", "", { "dependencies": { "@smithy/abort-controller": "^4.2.5", "@smithy/protocol-http": "^5.3.5", "@smithy/querystring-builder": "^4.2.5", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-CMnzM9R2WqlqXQGtIlsHMEZfXKJVTIrqCNoSd/QpAyp+Dw0a1Vps13l6ma1fH8g7zSPNsA59B/kWgeylFuA/lw=="],
+
+ "@smithy/property-provider": ["@smithy/property-provider@4.2.5", "", { "dependencies": { "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-8iLN1XSE1rl4MuxvQ+5OSk/Zb5El7NJZ1td6Tn+8dQQHIjp59Lwl6bd0+nzw6SKm2wSSriH2v/I9LPzUic7EOg=="],
+
+ "@smithy/protocol-http": ["@smithy/protocol-http@5.3.5", "", { "dependencies": { "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-RlaL+sA0LNMp03bf7XPbFmT5gN+w3besXSWMkA8rcmxLSVfiEXElQi4O2IWwPfxzcHkxqrwBFMbngB8yx/RvaQ=="],
+
+ "@smithy/querystring-builder": ["@smithy/querystring-builder@4.2.5", "", { "dependencies": { "@smithy/types": "^4.9.0", "@smithy/util-uri-escape": "^4.2.0", "tslib": "^2.6.2" } }, "sha512-y98otMI1saoajeik2kLfGyRp11e5U/iJYH/wLCh3aTV/XutbGT9nziKGkgCaMD1ghK7p6htHMm6b6scl9JRUWg=="],
+
+ "@smithy/querystring-parser": ["@smithy/querystring-parser@4.2.5", "", { "dependencies": { "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-031WCTdPYgiQRYNPXznHXof2YM0GwL6SeaSyTH/P72M1Vz73TvCNH2Nq8Iu2IEPq9QP2yx0/nrw5YmSeAi/AjQ=="],
+
+ "@smithy/service-error-classification": ["@smithy/service-error-classification@4.2.5", "", { "dependencies": { "@smithy/types": "^4.9.0" } }, "sha512-8fEvK+WPE3wUAcDvqDQG1Vk3ANLR8Px979te96m84CbKAjBVf25rPYSzb4xU4hlTyho7VhOGnh5i62D/JVF0JQ=="],
+
+ "@smithy/shared-ini-file-loader": ["@smithy/shared-ini-file-loader@4.4.0", "", { "dependencies": { "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-5WmZ5+kJgJDjwXXIzr1vDTG+RhF9wzSODQBfkrQ2VVkYALKGvZX1lgVSxEkgicSAFnFhPj5rudJV0zoinqS0bA=="],
+
+ "@smithy/signature-v4": ["@smithy/signature-v4@5.3.5", "", { "dependencies": { "@smithy/is-array-buffer": "^4.2.0", "@smithy/protocol-http": "^5.3.5", "@smithy/types": "^4.9.0", "@smithy/util-hex-encoding": "^4.2.0", "@smithy/util-middleware": "^4.2.5", "@smithy/util-uri-escape": "^4.2.0", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" } }, "sha512-xSUfMu1FT7ccfSXkoLl/QRQBi2rOvi3tiBZU2Tdy3I6cgvZ6SEi9QNey+lqps/sJRnogIS+lq+B1gxxbra2a/w=="],
+
+ "@smithy/smithy-client": ["@smithy/smithy-client@4.9.8", "", { "dependencies": { "@smithy/core": "^3.18.5", "@smithy/middleware-endpoint": "^4.3.12", "@smithy/middleware-stack": "^4.2.5", "@smithy/protocol-http": "^5.3.5", "@smithy/types": "^4.9.0", "@smithy/util-stream": "^4.5.6", "tslib": "^2.6.2" } }, "sha512-8xgq3LgKDEFoIrLWBho/oYKyWByw9/corz7vuh1upv7ZBm0ZMjGYBhbn6v643WoIqA9UTcx5A5htEp/YatUwMA=="],
+
+ "@smithy/types": ["@smithy/types@4.9.0", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-MvUbdnXDTwykR8cB1WZvNNwqoWVaTRA0RLlLmf/cIFNMM2cKWz01X4Ly6SMC4Kks30r8tT3Cty0jmeWfiuyHTA=="],
+
+ "@smithy/url-parser": ["@smithy/url-parser@4.2.5", "", { "dependencies": { "@smithy/querystring-parser": "^4.2.5", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-VaxMGsilqFnK1CeBX+LXnSuaMx4sTL/6znSZh2829txWieazdVxr54HmiyTsIbpOTLcf5nYpq9lpzmwRdxj6rQ=="],
+
+ "@smithy/util-base64": ["@smithy/util-base64@4.3.0", "", { "dependencies": { "@smithy/util-buffer-from": "^4.2.0", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" } }, "sha512-GkXZ59JfyxsIwNTWFnjmFEI8kZpRNIBfxKjv09+nkAWPt/4aGaEWMM04m4sxgNVWkbt2MdSvE3KF/PfX4nFedQ=="],
+
+ "@smithy/util-body-length-browser": ["@smithy/util-body-length-browser@4.2.0", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-Fkoh/I76szMKJnBXWPdFkQJl2r9SjPt3cMzLdOB6eJ4Pnpas8hVoWPYemX/peO0yrrvldgCUVJqOAjUrOLjbxg=="],
+
+ "@smithy/util-body-length-node": ["@smithy/util-body-length-node@4.2.1", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-h53dz/pISVrVrfxV1iqXlx5pRg3V2YWFcSQyPyXZRrZoZj4R4DeWRDo1a7dd3CPTcFi3kE+98tuNyD2axyZReA=="],
+
+ "@smithy/util-buffer-from": ["@smithy/util-buffer-from@4.2.0", "", { "dependencies": { "@smithy/is-array-buffer": "^4.2.0", "tslib": "^2.6.2" } }, "sha512-kAY9hTKulTNevM2nlRtxAG2FQ3B2OR6QIrPY3zE5LqJy1oxzmgBGsHLWTcNhWXKchgA0WHW+mZkQrng/pgcCew=="],
+
+ "@smithy/util-config-provider": ["@smithy/util-config-provider@4.2.0", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-YEjpl6XJ36FTKmD+kRJJWYvrHeUvm5ykaUS5xK+6oXffQPHeEM4/nXlZPe+Wu0lsgRUcNZiliYNh/y7q9c2y6Q=="],
+
+ "@smithy/util-defaults-mode-browser": ["@smithy/util-defaults-mode-browser@4.3.11", "", { "dependencies": { "@smithy/property-provider": "^4.2.5", "@smithy/smithy-client": "^4.9.8", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-yHv+r6wSQXEXTPVCIQTNmXVWs7ekBTpMVErjqZoWkYN75HIFN5y9+/+sYOejfAuvxWGvgzgxbTHa/oz61YTbKw=="],
+
+ "@smithy/util-defaults-mode-node": ["@smithy/util-defaults-mode-node@4.2.14", "", { "dependencies": { "@smithy/config-resolver": "^4.4.3", "@smithy/credential-provider-imds": "^4.2.5", "@smithy/node-config-provider": "^4.3.5", "@smithy/property-provider": "^4.2.5", "@smithy/smithy-client": "^4.9.8", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-ljZN3iRvaJUgulfvobIuG97q1iUuCMrvXAlkZ4msY+ZuVHQHDIqn7FKZCEj+bx8omz6kF5yQXms/xhzjIO5XiA=="],
+
+ "@smithy/util-endpoints": ["@smithy/util-endpoints@3.2.5", "", { "dependencies": { "@smithy/node-config-provider": "^4.3.5", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-3O63AAWu2cSNQZp+ayl9I3NapW1p1rR5mlVHcF6hAB1dPZUQFfRPYtplWX/3xrzWthPGj5FqB12taJJCfH6s8A=="],
+
+ "@smithy/util-hex-encoding": ["@smithy/util-hex-encoding@4.2.0", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-CCQBwJIvXMLKxVbO88IukazJD9a4kQ9ZN7/UMGBjBcJYvatpWk+9g870El4cB8/EJxfe+k+y0GmR9CAzkF+Nbw=="],
+
+ "@smithy/util-middleware": ["@smithy/util-middleware@4.2.5", "", { "dependencies": { "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-6Y3+rvBF7+PZOc40ybeZMcGln6xJGVeY60E7jy9Mv5iKpMJpHgRE6dKy9ScsVxvfAYuEX4Q9a65DQX90KaQ3bA=="],
+
+ "@smithy/util-retry": ["@smithy/util-retry@4.2.5", "", { "dependencies": { "@smithy/service-error-classification": "^4.2.5", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-GBj3+EZBbN4NAqJ/7pAhsXdfzdlznOh8PydUijy6FpNIMnHPSMO2/rP4HKu+UFeikJxShERk528oy7GT79YiJg=="],
+
+ "@smithy/util-stream": ["@smithy/util-stream@4.5.6", "", { "dependencies": { "@smithy/fetch-http-handler": "^5.3.6", "@smithy/node-http-handler": "^4.4.5", "@smithy/types": "^4.9.0", "@smithy/util-base64": "^4.3.0", "@smithy/util-buffer-from": "^4.2.0", "@smithy/util-hex-encoding": "^4.2.0", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" } }, "sha512-qWw/UM59TiaFrPevefOZ8CNBKbYEP6wBAIlLqxn3VAIo9rgnTNc4ASbVrqDmhuwI87usnjhdQrxodzAGFFzbRQ=="],
+
+ "@smithy/util-uri-escape": ["@smithy/util-uri-escape@4.2.0", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-igZpCKV9+E/Mzrpq6YacdTQ0qTiLm85gD6N/IrmyDvQFA4UnU3d5g3m8tMT/6zG/vVkWSU+VxeUyGonL62DuxA=="],
+
+ "@smithy/util-utf8": ["@smithy/util-utf8@4.2.0", "", { "dependencies": { "@smithy/util-buffer-from": "^4.2.0", "tslib": "^2.6.2" } }, "sha512-zBPfuzoI8xyBtR2P6WQj63Rz8i3AmfAaJLuNG8dWsfvPe8lO4aCPYLn879mEgHndZH1zQ2oXmG8O1GGzzaoZiw=="],
+
+ "@smithy/util-waiter": ["@smithy/util-waiter@4.2.5", "", { "dependencies": { "@smithy/abort-controller": "^4.2.5", "@smithy/types": "^4.9.0", "tslib": "^2.6.2" } }, "sha512-Dbun99A3InifQdIrsXZ+QLcC0PGBPAdrl4cj1mTgJvyc9N2zf7QSxg8TBkzsCmGJdE3TLbO9ycwpY0EkWahQ/g=="],
+
+ "@smithy/uuid": ["@smithy/uuid@1.1.0", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-4aUIteuyxtBUhVdiQqcDhKFitwfd9hqoSDYY2KRXiWtgoWJ9Bmise+KfEPDiVHWeJepvF8xJO9/9+WDIciMFFw=="],
+
+ "@standard-schema/spec": ["@standard-schema/spec@1.0.0", "", {}, "sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA=="],
+
+ "@standard-schema/utils": ["@standard-schema/utils@0.3.0", "", {}, "sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g=="],
+
+ "@storybook/builder-vite": ["@storybook/builder-vite@9.1.16", "", { "dependencies": { "@storybook/csf-plugin": "9.1.16", "ts-dedent": "^2.0.0" }, "peerDependencies": { "storybook": "^9.1.16", "vite": "^5.0.0 || ^6.0.0 || ^7.0.0" } }, "sha512-CyvYA5w1BKeSVaRavKi+euWxLffshq0v9Rz/5E9MKCitbYtjwkDH6UMIYmcbTs906mEBuYqrbz3nygDP0ppodw=="],
+
+ "@storybook/csf-plugin": ["@storybook/csf-plugin@9.1.16", "", { "dependencies": { "unplugin": "^1.3.1" }, "peerDependencies": { "storybook": "^9.1.16" } }, "sha512-GKlNNlmWeFBQxhQY5hZOSnFGbeKq69jal0dYNWoSImTjor28eYRHb9iQkDzRpijLPizBaB9MlxLsLrgFDp7adA=="],
+
+ "@storybook/global": ["@storybook/global@5.0.0", "", {}, "sha512-FcOqPAXACP0I3oJ/ws6/rrPT9WGhu915Cg8D02a9YxLo0DE9zI+a9A5gRGvmQ09fiWPukqI8ZAEoQEdWUKMQdQ=="],
+
+ "@storybook/nextjs-vite": ["@storybook/nextjs-vite@9.1.16", "", { "dependencies": { "@storybook/builder-vite": "9.1.16", "@storybook/react": "9.1.16", "@storybook/react-vite": "9.1.16", "styled-jsx": "5.1.6", "vite-plugin-storybook-nextjs": "^3.0.0" }, "peerDependencies": { "next": "^14.1.0 || ^15.0.0 || ^16.0.0", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", "storybook": "^9.1.16", "vite": "^5.0.0 || ^6.0.0 || ^7.0.0" } }, "sha512-7+FsfY/lVDWkC9TnsfBAjIV/Z7CXnQiEOM9WEBV1HHQhL0SQ9/aHh1UhYlCd2tgSZtwGbw5XtSyi6DDXjct3uw=="],
+
+ "@storybook/react": ["@storybook/react@9.1.16", "", { "dependencies": { "@storybook/global": "^5.0.0", "@storybook/react-dom-shim": "9.1.16" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", "storybook": "^9.1.16", "typescript": ">= 4.9.x" }, "optionalPeers": ["typescript"] }, "sha512-M/SkHJJdtiGpodBJq9+DYmSkEOD+VqlPxKI+FvbHESTNs//1IgqFIjEWetd8quhd9oj/gvo4ICBAPu+UmD6M9w=="],
+
+ "@storybook/react-dom-shim": ["@storybook/react-dom-shim@9.1.16", "", { "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", "storybook": "^9.1.16" } }, "sha512-MsI4qTxdT6lMXQmo3IXhw3EaCC+vsZboyEZBx4pOJ+K/5cDJ6ZoQ3f0d4yGpVhumDxaxlnNAg954+f8WWXE1rQ=="],
+
+ "@storybook/react-vite": ["@storybook/react-vite@9.1.16", "", { "dependencies": { "@joshwooding/vite-plugin-react-docgen-typescript": "0.6.1", "@rollup/pluginutils": "^5.0.2", "@storybook/builder-vite": "9.1.16", "@storybook/react": "9.1.16", "find-up": "^7.0.0", "magic-string": "^0.30.0", "react-docgen": "^8.0.0", "resolve": "^1.22.8", "tsconfig-paths": "^4.2.0" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", "storybook": "^9.1.16", "vite": "^5.0.0 || ^6.0.0 || ^7.0.0" } }, "sha512-WRKSq0XfQ/Qx66aKisQCfa/1UKwN9HjVbY6xrmsX7kI5zBdITxIcKInq6PWoPv91SJD7+Et956yX+F86R1aEXw=="],
+
+ "@stripe/react-stripe-js": ["@stripe/react-stripe-js@3.10.0", "", { "dependencies": { "prop-types": "^15.7.2" }, "peerDependencies": { "@stripe/stripe-js": ">=1.44.1 <8.0.0", "react": ">=16.8.0 <20.0.0", "react-dom": ">=16.8.0 <20.0.0" } }, "sha512-UPqHZwMwDzGSax0ZI7XlxR3tZSpgIiZdk3CiwjbTK978phwR/fFXeAXQcN/h8wTAjR4ZIAzdlI9DbOqJhuJdeg=="],
+
+ "@stripe/stripe-js": ["@stripe/stripe-js@7.9.0", "", {}, "sha512-ggs5k+/0FUJcIgNY08aZTqpBTtbExkJMYMLSMwyucrhtWexVOEY1KJmhBsxf+E/Q15f5rbwBpj+t0t2AW2oCsQ=="],
+
+ "@swc/helpers": ["@swc/helpers@0.5.15", "", { "dependencies": { "tslib": "^2.8.0" } }, "sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g=="],
+
+ "@szmarczak/http-timer": ["@szmarczak/http-timer@4.0.6", "", { "dependencies": { "defer-to-connect": "^2.0.0" } }, "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w=="],
+
+ "@tailwindcss/forms": ["@tailwindcss/forms@0.5.10", "", { "dependencies": { "mini-svg-data-uri": "^1.2.3" }, "peerDependencies": { "tailwindcss": ">=3.0.0 || >= 3.0.0-alpha.1 || >= 4.0.0-alpha.20 || >= 4.0.0-beta.1" } }, "sha512-utI1ONF6uf/pPNO68kmN1b8rEwNXv3czukalo8VtJH8ksIkZXr3Q3VYudZLkCsDd4Wku120uF02hYK25XGPorw=="],
+
+ "@tailwindcss/node": ["@tailwindcss/node@4.1.14", "", { "dependencies": { "@jridgewell/remapping": "^2.3.4", "enhanced-resolve": "^5.18.3", "jiti": "^2.6.0", "lightningcss": "1.30.1", "magic-string": "^0.30.19", "source-map-js": "^1.2.1", "tailwindcss": "4.1.14" } }, "sha512-hpz+8vFk3Ic2xssIA3e01R6jkmsAhvkQdXlEbRTk6S10xDAtiQiM3FyvZVGsucefq764euO/b8WUW9ysLdThHw=="],
"@tailwindcss/oxide": ["@tailwindcss/oxide@4.1.14", "", { "dependencies": { "detect-libc": "^2.0.4", "tar": "^7.5.1" }, "optionalDependencies": { "@tailwindcss/oxide-android-arm64": "4.1.14", "@tailwindcss/oxide-darwin-arm64": "4.1.14", "@tailwindcss/oxide-darwin-x64": "4.1.14", "@tailwindcss/oxide-freebsd-x64": "4.1.14", "@tailwindcss/oxide-linux-arm-gnueabihf": "4.1.14", "@tailwindcss/oxide-linux-arm64-gnu": "4.1.14", "@tailwindcss/oxide-linux-arm64-musl": "4.1.14", "@tailwindcss/oxide-linux-x64-gnu": "4.1.14", "@tailwindcss/oxide-linux-x64-musl": "4.1.14", "@tailwindcss/oxide-wasm32-wasi": "4.1.14", "@tailwindcss/oxide-win32-arm64-msvc": "4.1.14", "@tailwindcss/oxide-win32-x64-msvc": "4.1.14" } }, "sha512-23yx+VUbBwCg2x5XWdB8+1lkPajzLmALEfMb51zZUBYaYVPDQvBSD/WYDqiVyBIo2BZFa3yw1Rpy3G2Jp+K0dw=="],
@@ -800,6 +1528,16 @@
"@tailwindcss/postcss": ["@tailwindcss/postcss@4.1.14", "", { "dependencies": { "@alloc/quick-lru": "^5.2.0", "@tailwindcss/node": "4.1.14", "@tailwindcss/oxide": "4.1.14", "postcss": "^8.4.41", "tailwindcss": "4.1.14" } }, "sha512-BdMjIxy7HUNThK87C7BC8I1rE8BVUsfNQSI5siQ4JK3iIa3w0XyVvVL9SXLWO//CtYTcp1v7zci0fYwJOjB+Zg=="],
+ "@tailwindcss/typography": ["@tailwindcss/typography@0.5.19", "", { "dependencies": { "postcss-selector-parser": "6.0.10" }, "peerDependencies": { "tailwindcss": ">=3.0.0 || insiders || >=4.0.0-alpha.20 || >=4.0.0-beta.1" } }, "sha512-w31dd8HOx3k9vPtcQh5QHP9GwKcgbMp87j58qi6xgiBnFFtKEAgCWnDw4qUT8aHwkCp8bKvb/KGKWWHedP0AAg=="],
+
+ "@testing-library/dom": ["@testing-library/dom@10.4.0", "", { "dependencies": { "@babel/code-frame": "^7.10.4", "@babel/runtime": "^7.12.5", "@types/aria-query": "^5.0.1", "aria-query": "5.3.0", "chalk": "^4.1.0", "dom-accessibility-api": "^0.5.9", "lz-string": "^1.5.0", "pretty-format": "^27.0.2" } }, "sha512-pemlzrSESWbdAloYml3bAJMEfNh1Z7EduzqPKprCH5S341frlpYnUEW0H72dLxa6IsYr+mPno20GiSm+h9dEdQ=="],
+
+ "@testing-library/jest-dom": ["@testing-library/jest-dom@6.9.1", "", { "dependencies": { "@adobe/css-tools": "^4.4.0", "aria-query": "^5.0.0", "css.escape": "^1.5.1", "dom-accessibility-api": "^0.6.3", "picocolors": "^1.1.1", "redent": "^3.0.0" } }, "sha512-zIcONa+hVtVSSep9UT3jZ5rizo2BsxgyDYU7WFD5eICBE7no3881HGeb/QkGfsJs6JTkY1aQhT7rIPC7e+0nnA=="],
+
+ "@testing-library/react": ["@testing-library/react@16.3.0", "", { "dependencies": { "@babel/runtime": "^7.12.5" }, "peerDependencies": { "@testing-library/dom": "^10.0.0", "@types/react": "^18.0.0 || ^19.0.0", "@types/react-dom": "^18.0.0 || ^19.0.0", "react": "^18.0.0 || ^19.0.0", "react-dom": "^18.0.0 || ^19.0.0" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-kFSyxiEDwv1WLl2fgsq6pPBbw5aWKrsY2/noi1Id0TK0UParSF62oFQFGHXIyaG4pp2tEub/Zlel+fjjZILDsw=="],
+
+ "@testing-library/user-event": ["@testing-library/user-event@14.6.1", "", { "peerDependencies": { "@testing-library/dom": ">=7.21.4" } }, "sha512-vq7fv0rnt+QTXgPxr5Hjc210p6YKq2kmdziLgnsZGgLJ9e6VAShx1pACLuRjd/AS/sr7phAR58OIIpf0LlmQNw=="],
+
"@tokenizer/inflate": ["@tokenizer/inflate@0.2.7", "", { "dependencies": { "debug": "^4.4.0", "fflate": "^0.8.2", "token-types": "^6.0.0" } }, "sha512-MADQgmZT1eKjp06jpI2yozxaU9uVs4GzzgSL+uEq7bVcJ9V1ZXQkeGNql1fsSI0gMy1vhvNTNbUqrx+pZfJVmg=="],
"@tokenizer/token": ["@tokenizer/token@0.3.0", "", {}, "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A=="],
@@ -808,8 +1546,18 @@
"@tybys/wasm-util": ["@tybys/wasm-util@0.10.1", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg=="],
+ "@types/aria-query": ["@types/aria-query@5.0.4", "", {}, "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw=="],
+
"@types/aws-lambda": ["@types/aws-lambda@8.10.152", "", {}, "sha512-soT/c2gYBnT5ygwiHPmd9a1bftj462NWVk2tKCc1PYHSIacB2UwbTS2zYG4jzag1mRDuzg/OjtxQjQ2NKRB6Rw=="],
+ "@types/babel__core": ["@types/babel__core@7.20.5", "", { "dependencies": { "@babel/parser": "^7.20.7", "@babel/types": "^7.20.7", "@types/babel__generator": "*", "@types/babel__template": "*", "@types/babel__traverse": "*" } }, "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA=="],
+
+ "@types/babel__generator": ["@types/babel__generator@7.27.0", "", { "dependencies": { "@babel/types": "^7.0.0" } }, "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg=="],
+
+ "@types/babel__template": ["@types/babel__template@7.4.4", "", { "dependencies": { "@babel/parser": "^7.1.0", "@babel/types": "^7.0.0" } }, "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A=="],
+
+ "@types/babel__traverse": ["@types/babel__traverse@7.28.0", "", { "dependencies": { "@babel/types": "^7.28.2" } }, "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q=="],
+
"@types/body-parser": ["@types/body-parser@1.19.6", "", { "dependencies": { "@types/connect": "*", "@types/node": "*" } }, "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g=="],
"@types/bun": ["@types/bun@1.2.23", "", { "dependencies": { "bun-types": "1.2.23" } }, "sha512-le8ueOY5b6VKYf19xT3McVbXqLqmxzPXHsQT/q9JHgikJ2X22wyTW3g3ohz2ZMnp7dod6aduIiq8A14Xyimm0A=="],
@@ -820,12 +1568,80 @@
"@types/cardinal": ["@types/cardinal@2.1.1", "", {}, "sha512-/xCVwg8lWvahHsV2wXZt4i64H1sdL+sN1Uoq7fAc8/FA6uYHjuIveDwPwvGUYp4VZiv85dVl6J/Bum3NDAOm8g=="],
+ "@types/chai": ["@types/chai@5.2.3", "", { "dependencies": { "@types/deep-eql": "*", "assertion-error": "^2.0.1" } }, "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA=="],
+
"@types/configstore": ["@types/configstore@6.0.2", "", {}, "sha512-OS//b51j9uyR3zvwD04Kfs5kHpve2qalQ18JhY/ho3voGYUTPLEG90/ocfKPI48hyHH8T04f7KEEbK6Ue60oZQ=="],
"@types/connect": ["@types/connect@3.4.38", "", { "dependencies": { "@types/node": "*" } }, "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug=="],
+ "@types/d3": ["@types/d3@7.4.3", "", { "dependencies": { "@types/d3-array": "*", "@types/d3-axis": "*", "@types/d3-brush": "*", "@types/d3-chord": "*", "@types/d3-color": "*", "@types/d3-contour": "*", "@types/d3-delaunay": "*", "@types/d3-dispatch": "*", "@types/d3-drag": "*", "@types/d3-dsv": "*", "@types/d3-ease": "*", "@types/d3-fetch": "*", "@types/d3-force": "*", "@types/d3-format": "*", "@types/d3-geo": "*", "@types/d3-hierarchy": "*", "@types/d3-interpolate": "*", "@types/d3-path": "*", "@types/d3-polygon": "*", "@types/d3-quadtree": "*", "@types/d3-random": "*", "@types/d3-scale": "*", "@types/d3-scale-chromatic": "*", "@types/d3-selection": "*", "@types/d3-shape": "*", "@types/d3-time": "*", "@types/d3-time-format": "*", "@types/d3-timer": "*", "@types/d3-transition": "*", "@types/d3-zoom": "*" } }, "sha512-lZXZ9ckh5R8uiFVt8ogUNf+pIrK4EsWrx2Np75WvF/eTpJ0FMHNhjXk8CKEx/+gpHbNQyJWehbFaTvqmHWB3ww=="],
+
+ "@types/d3-array": ["@types/d3-array@3.2.2", "", {}, "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw=="],
+
+ "@types/d3-axis": ["@types/d3-axis@3.0.6", "", { "dependencies": { "@types/d3-selection": "*" } }, "sha512-pYeijfZuBd87T0hGn0FO1vQ/cgLk6E1ALJjfkC0oJ8cbwkZl3TpgS8bVBLZN+2jjGgg38epgxb2zmoGtSfvgMw=="],
+
+ "@types/d3-brush": ["@types/d3-brush@3.0.6", "", { "dependencies": { "@types/d3-selection": "*" } }, "sha512-nH60IZNNxEcrh6L1ZSMNA28rj27ut/2ZmI3r96Zd+1jrZD++zD3LsMIjWlvg4AYrHn/Pqz4CF3veCxGjtbqt7A=="],
+
+ "@types/d3-chord": ["@types/d3-chord@3.0.6", "", {}, "sha512-LFYWWd8nwfwEmTZG9PfQxd17HbNPksHBiJHaKuY1XeqscXacsS2tyoo6OdRsjf+NQYeB6XrNL3a25E3gH69lcg=="],
+
+ "@types/d3-color": ["@types/d3-color@3.1.3", "", {}, "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A=="],
+
+ "@types/d3-contour": ["@types/d3-contour@3.0.6", "", { "dependencies": { "@types/d3-array": "*", "@types/geojson": "*" } }, "sha512-BjzLgXGnCWjUSYGfH1cpdo41/hgdWETu4YxpezoztawmqsvCeep+8QGfiY6YbDvfgHz/DkjeIkkZVJavB4a3rg=="],
+
+ "@types/d3-delaunay": ["@types/d3-delaunay@6.0.4", "", {}, "sha512-ZMaSKu4THYCU6sV64Lhg6qjf1orxBthaC161plr5KuPHo3CNm8DTHiLw/5Eq2b6TsNP0W0iJrUOFscY6Q450Hw=="],
+
+ "@types/d3-dispatch": ["@types/d3-dispatch@3.0.7", "", {}, "sha512-5o9OIAdKkhN1QItV2oqaE5KMIiXAvDWBDPrD85e58Qlz1c1kI/J0NcqbEG88CoTwJrYe7ntUCVfeUl2UJKbWgA=="],
+
+ "@types/d3-drag": ["@types/d3-drag@3.0.7", "", { "dependencies": { "@types/d3-selection": "*" } }, "sha512-HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ=="],
+
+ "@types/d3-dsv": ["@types/d3-dsv@3.0.7", "", {}, "sha512-n6QBF9/+XASqcKK6waudgL0pf/S5XHPPI8APyMLLUHd8NqouBGLsU8MgtO7NINGtPBtk9Kko/W4ea0oAspwh9g=="],
+
+ "@types/d3-ease": ["@types/d3-ease@3.0.2", "", {}, "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA=="],
+
+ "@types/d3-fetch": ["@types/d3-fetch@3.0.7", "", { "dependencies": { "@types/d3-dsv": "*" } }, "sha512-fTAfNmxSb9SOWNB9IoG5c8Hg6R+AzUHDRlsXsDZsNp6sxAEOP0tkP3gKkNSO/qmHPoBFTxNrjDprVHDQDvo5aA=="],
+
+ "@types/d3-force": ["@types/d3-force@3.0.10", "", {}, "sha512-ZYeSaCF3p73RdOKcjj+swRlZfnYpK1EbaDiYICEEp5Q6sUiqFaFQ9qgoshp5CzIyyb/yD09kD9o2zEltCexlgw=="],
+
+ "@types/d3-format": ["@types/d3-format@3.0.4", "", {}, "sha512-fALi2aI6shfg7vM5KiR1wNJnZ7r6UuggVqtDA+xiEdPZQwy/trcQaHnwShLuLdta2rTymCNpxYTiMZX/e09F4g=="],
+
+ "@types/d3-geo": ["@types/d3-geo@3.1.0", "", { "dependencies": { "@types/geojson": "*" } }, "sha512-856sckF0oP/diXtS4jNsiQw/UuK5fQG8l/a9VVLeSouf1/PPbBE1i1W852zVwKwYCBkFJJB7nCFTbk6UMEXBOQ=="],
+
+ "@types/d3-hierarchy": ["@types/d3-hierarchy@3.1.7", "", {}, "sha512-tJFtNoYBtRtkNysX1Xq4sxtjK8YgoWUNpIiUee0/jHGRwqvzYxkq0hGVbbOGSz+JgFxxRu4K8nb3YpG3CMARtg=="],
+
+ "@types/d3-interpolate": ["@types/d3-interpolate@3.0.4", "", { "dependencies": { "@types/d3-color": "*" } }, "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA=="],
+
+ "@types/d3-path": ["@types/d3-path@3.1.1", "", {}, "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg=="],
+
+ "@types/d3-polygon": ["@types/d3-polygon@3.0.2", "", {}, "sha512-ZuWOtMaHCkN9xoeEMr1ubW2nGWsp4nIql+OPQRstu4ypeZ+zk3YKqQT0CXVe/PYqrKpZAi+J9mTs05TKwjXSRA=="],
+
+ "@types/d3-quadtree": ["@types/d3-quadtree@3.0.6", "", {}, "sha512-oUzyO1/Zm6rsxKRHA1vH0NEDG58HrT5icx/azi9MF1TWdtttWl0UIUsjEQBBh+SIkrpd21ZjEv7ptxWys1ncsg=="],
+
+ "@types/d3-random": ["@types/d3-random@3.0.3", "", {}, "sha512-Imagg1vJ3y76Y2ea0871wpabqp613+8/r0mCLEBfdtqC7xMSfj9idOnmBYyMoULfHePJyxMAw3nWhJxzc+LFwQ=="],
+
+ "@types/d3-scale": ["@types/d3-scale@4.0.9", "", { "dependencies": { "@types/d3-time": "*" } }, "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw=="],
+
+ "@types/d3-scale-chromatic": ["@types/d3-scale-chromatic@3.1.0", "", {}, "sha512-iWMJgwkK7yTRmWqRB5plb1kadXyQ5Sj8V/zYlFGMUBbIPKQScw+Dku9cAAMgJG+z5GYDoMjWGLVOvjghDEFnKQ=="],
+
+ "@types/d3-selection": ["@types/d3-selection@3.0.11", "", {}, "sha512-bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w=="],
+
+ "@types/d3-shape": ["@types/d3-shape@3.1.7", "", { "dependencies": { "@types/d3-path": "*" } }, "sha512-VLvUQ33C+3J+8p+Daf+nYSOsjB4GXp19/S/aGo60m9h1v6XaxjiT82lKVWJCfzhtuZ3yD7i/TPeC/fuKLLOSmg=="],
+
+ "@types/d3-time": ["@types/d3-time@3.0.4", "", {}, "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g=="],
+
+ "@types/d3-time-format": ["@types/d3-time-format@4.0.3", "", {}, "sha512-5xg9rC+wWL8kdDj153qZcsJ0FWiFt0J5RB6LYUNZjwSnesfblqrI/bJ1wBdJ8OQfncgbJG5+2F+qfqnqyzYxyg=="],
+
+ "@types/d3-timer": ["@types/d3-timer@3.0.2", "", {}, "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw=="],
+
+ "@types/d3-transition": ["@types/d3-transition@3.0.9", "", { "dependencies": { "@types/d3-selection": "*" } }, "sha512-uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg=="],
+
+ "@types/d3-zoom": ["@types/d3-zoom@3.0.8", "", { "dependencies": { "@types/d3-interpolate": "*", "@types/d3-selection": "*" } }, "sha512-iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw=="],
+
"@types/debug": ["@types/debug@4.1.12", "", { "dependencies": { "@types/ms": "*" } }, "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ=="],
+ "@types/deep-eql": ["@types/deep-eql@4.0.2", "", {}, "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw=="],
+
+ "@types/doctrine": ["@types/doctrine@0.0.9", "", {}, "sha512-eOIHzCUSH7SMfonMG1LsC2f8vxBFtho6NGBznK41R84YzPuvSBzrhEps33IsQiOW9+VL6NQ9DbjQJznk/S4uRA=="],
+
"@types/estree": ["@types/estree@1.0.8", "", {}, "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w=="],
"@types/estree-jsx": ["@types/estree-jsx@1.0.5", "", { "dependencies": { "@types/estree": "*" } }, "sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg=="],
@@ -836,6 +1652,8 @@
"@types/fs-extra": ["@types/fs-extra@9.0.13", "", { "dependencies": { "@types/node": "*" } }, "sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA=="],
+ "@types/geojson": ["@types/geojson@7946.0.16", "", {}, "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg=="],
+
"@types/glob": ["@types/glob@8.1.0", "", { "dependencies": { "@types/minimatch": "^5.1.2", "@types/node": "*" } }, "sha512-IO+MJPVhoqz+28h1qLAcBEH2+xHMK6MTyHJc7MTnnYb6wsoLR29POVGJ7LycmVXIqyy/4/2ShP5sUwTXuOwb/w=="],
"@types/gradient-string": ["@types/gradient-string@1.1.6", "", { "dependencies": { "@types/tinycolor2": "*" } }, "sha512-LkaYxluY4G5wR1M4AKQUal2q61Di1yVVCw42ImFTuaIoQVgmV0WP1xUaLB8zwb47mp82vWTpePI9JmrjEnJ7nQ=="],
@@ -866,7 +1684,7 @@
"@types/mysql": ["@types/mysql@2.15.27", "", { "dependencies": { "@types/node": "*" } }, "sha512-YfWiV16IY0OeBfBCk8+hXKmdTKrKlwKN1MNKAPBu5JYxLwBEZl7QzeEpGnlZb3VMGJrrGmB84gXiH+ofs/TezA=="],
- "@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+ "@types/node": ["@types/node@25.0.0", "", { "dependencies": { "undici-types": "~7.16.0" } }, "sha512-rl78HwuZlaDIUSeUKkmogkhebA+8K1Hy7tddZuJ3D0xV8pZSfsYGTsliGUol1JPzu9EKnTxPC4L1fiWouStRew=="],
"@types/normalize-package-data": ["@types/normalize-package-data@2.4.4", "", {}, "sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA=="],
@@ -888,6 +1706,8 @@
"@types/react-syntax-highlighter": ["@types/react-syntax-highlighter@15.5.13", "", { "dependencies": { "@types/react": "*" } }, "sha512-uLGJ87j6Sz8UaBAooU0T6lWJ0dBmjZgN1PZTrj05TNql2/XpC6+4HhMT5syIdFUUt+FASfCeLLv4kBygNU+8qA=="],
+ "@types/resolve": ["@types/resolve@1.20.6", "", {}, "sha512-A4STmOXPhMUtHH+S6ymgE2GiBSMqf4oTvcQZMcHzokuTLVYzXTB8ttjcgxOVaAp2lGwEdzZ0J+cRbbeevQj1UQ=="],
+
"@types/responselike": ["@types/responselike@1.0.3", "", { "dependencies": { "@types/node": "*" } }, "sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw=="],
"@types/retry": ["@types/retry@0.12.0", "", {}, "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA=="],
@@ -896,18 +1716,26 @@
"@types/serve-static": ["@types/serve-static@1.15.9", "", { "dependencies": { "@types/http-errors": "*", "@types/node": "*", "@types/send": "<1" } }, "sha512-dOTIuqpWLyl3BBXU3maNQsS4A3zuuoYRNIvYSxxhebPfXg2mzWQEPne/nlJ37yOse6uGgR386uTpdsx4D0QZWA=="],
+ "@types/statuses": ["@types/statuses@2.0.6", "", {}, "sha512-xMAgYwceFhRA2zY+XbEA7mxYbA093wdiW8Vu6gZPGWy9cmOyU9XesH1tNcEWsKFd5Vzrqx5T3D38PWx1FIIXkA=="],
+
"@types/tar-stream": ["@types/tar-stream@3.1.4", "", { "dependencies": { "@types/node": "*" } }, "sha512-921gW0+g29mCJX0fRvqeHzBlE/XclDaAG0Ousy1LCghsOhvaKacDeRGEVzQP9IPfKn8Vysy7FEXAIxycpc/CMg=="],
"@types/tedious": ["@types/tedious@4.0.14", "", { "dependencies": { "@types/node": "*" } }, "sha512-KHPsfX/FoVbUGbyYvk1q9MMQHLPeRZhRJZdO45Q4YjvFkv4hMNghCWTvy7rdKessBsmtz4euWCWAB6/tVpI1Iw=="],
"@types/tinycolor2": ["@types/tinycolor2@1.4.6", "", {}, "sha512-iEN8J0BoMnsWBqjVbWH/c0G0Hh7O21lpR2/+PrvAVgWdzL7eexIFm4JN/Wn10PTcmNdtS6U67r499mlWMXOxNw=="],
+ "@types/trusted-types": ["@types/trusted-types@2.0.7", "", {}, "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw=="],
+
"@types/unist": ["@types/unist@3.0.3", "", {}, "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="],
"@types/update-notifier": ["@types/update-notifier@6.0.8", "", { "dependencies": { "@types/configstore": "*", "boxen": "^7.1.1" } }, "sha512-IlDFnfSVfYQD+cKIg63DEXn3RFmd7W1iYtKQsJodcHK9R1yr8aKbKaPKfBxzPpcHCq2DU8zUq4PIPmy19Thjfg=="],
+ "@types/use-sync-external-store": ["@types/use-sync-external-store@0.0.6", "", {}, "sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg=="],
+
"@types/verror": ["@types/verror@1.10.11", "", {}, "sha512-RlDm9K7+o5stv0Co8i8ZRGxDbrTxhJtgjqjFyVh/tXQyl/rYtTKlnTvZ88oSTeYREWurwx20Js4kTuKCsFkUtg=="],
+ "@types/whatwg-mimetype": ["@types/whatwg-mimetype@3.0.2", "", {}, "sha512-c2AKvDT8ToxLIOUlN51gTiHXflsfIFisS4pO7pDPoKouJCESkhZnEy623gwP9laCy5lnLDAw1vAzu2vM2YLOrA=="],
+
"@types/ws": ["@types/ws@8.18.1", "", { "dependencies": { "@types/node": "*" } }, "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg=="],
"@types/yauzl": ["@types/yauzl@2.10.3", "", { "dependencies": { "@types/node": "*" } }, "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q=="],
@@ -930,7 +1758,19 @@
"@ungap/structured-clone": ["@ungap/structured-clone@1.3.0", "", {}, "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g=="],
- "@vercel/oidc": ["@vercel/oidc@3.0.3", "", {}, "sha512-yNEQvPcVrK9sIe637+I0jD6leluPxzwJKx/Haw6F4H77CdDsszUn5V3o96LPziXkSNE2B83+Z3mjqGKBK/R6Gg=="],
+ "@vercel/oidc": ["@vercel/oidc@3.0.5", "", {}, "sha512-fnYhv671l+eTTp48gB4zEsTW/YtRgRPnkI2nT7x6qw5rkI1Lq2hTmQIpHPgyThI0znLK+vX2n9XxKdXZ7BUbbw=="],
+
+ "@vitest/expect": ["@vitest/expect@3.2.4", "", { "dependencies": { "@types/chai": "^5.2.2", "@vitest/spy": "3.2.4", "@vitest/utils": "3.2.4", "chai": "^5.2.0", "tinyrainbow": "^2.0.0" } }, "sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig=="],
+
+ "@vitest/mocker": ["@vitest/mocker@3.2.4", "", { "dependencies": { "@vitest/spy": "3.2.4", "estree-walker": "^3.0.3", "magic-string": "^0.30.17" }, "peerDependencies": { "msw": "^2.4.9", "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0" }, "optionalPeers": ["msw", "vite"] }, "sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ=="],
+
+ "@vitest/pretty-format": ["@vitest/pretty-format@3.2.4", "", { "dependencies": { "tinyrainbow": "^2.0.0" } }, "sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA=="],
+
+ "@vitest/spy": ["@vitest/spy@3.2.4", "", { "dependencies": { "tinyspy": "^4.0.3" } }, "sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw=="],
+
+ "@vitest/utils": ["@vitest/utils@3.2.4", "", { "dependencies": { "@vitest/pretty-format": "3.2.4", "loupe": "^3.1.4", "tinyrainbow": "^2.0.0" } }, "sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA=="],
+
+ "@welldone-software/why-did-you-render": ["@welldone-software/why-did-you-render@10.0.1", "", { "dependencies": { "lodash": "^4" }, "peerDependencies": { "react": "^19" } }, "sha512-tMgGkt30iVYeLMUKExNmtm019QgyjLtA7lwB0QAizYNEuihlCG2eoAWBBaz/bDeI7LeqAJ9msC6hY3vX+JB97g=="],
"@whatwg-node/disposablestack": ["@whatwg-node/disposablestack@0.0.6", "", { "dependencies": { "@whatwg-node/promise-helpers": "^1.0.0", "tslib": "^2.6.3" } }, "sha512-LOtTn+JgJvX8WfBVJtF08TGrdjuFzGJc4mkP8EdDI8ADbvO7kiexYep1o8dwnt0okb0jYclCDXF13xU7Ge4zSw=="],
@@ -958,13 +1798,15 @@
"acorn-import-attributes": ["acorn-import-attributes@1.9.5", "", { "peerDependencies": { "acorn": "^8" } }, "sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ=="],
+ "acorn-walk": ["acorn-walk@8.3.4", "", { "dependencies": { "acorn": "^8.11.0" } }, "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g=="],
+
"agent-base": ["agent-base@7.1.4", "", {}, "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ=="],
"agentkeepalive": ["agentkeepalive@4.6.0", "", { "dependencies": { "humanize-ms": "^1.2.1" } }, "sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ=="],
"aggregate-error": ["aggregate-error@3.1.0", "", { "dependencies": { "clean-stack": "^2.0.0", "indent-string": "^4.0.0" } }, "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA=="],
- "ai": ["ai@5.0.75", "", { "dependencies": { "@ai-sdk/gateway": "2.0.0", "@ai-sdk/provider": "2.0.0", "@ai-sdk/provider-utils": "3.0.12", "@opentelemetry/api": "1.9.0" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-CK1fAmwhaTnuA+Ms0LiQKeyuikASwUwDFdPccvAAo6w/zlPhwkv1zmis3RW26r+I3EoHppMHwEDamv3XcRLOuQ=="],
+ "ai": ["ai@5.0.110", "", { "dependencies": { "@ai-sdk/gateway": "2.0.19", "@ai-sdk/provider": "2.0.0", "@ai-sdk/provider-utils": "3.0.18", "@opentelemetry/api": "1.9.0" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-ZBq+5bvef4e5qoIG4U6NJ1UpCPWGjuaWERHXbHu2T2ND3c02nJ2zlnjm+N6zAAplQPxwqm7Sb16mrRX5uQNWtQ=="],
"ajv": ["ajv@8.17.1", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g=="],
@@ -992,10 +1834,20 @@
"aria-hidden": ["aria-hidden@1.2.6", "", { "dependencies": { "tslib": "^2.0.0" } }, "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA=="],
+ "aria-query": ["aria-query@5.3.0", "", { "dependencies": { "dequal": "^2.0.3" } }, "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A=="],
+
+ "asn1.js": ["asn1.js@4.10.1", "", { "dependencies": { "bn.js": "^4.0.0", "inherits": "^2.0.1", "minimalistic-assert": "^1.0.0" } }, "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw=="],
+
+ "assert": ["assert@2.1.0", "", { "dependencies": { "call-bind": "^1.0.2", "is-nan": "^1.3.2", "object-is": "^1.1.5", "object.assign": "^4.1.4", "util": "^0.12.5" } }, "sha512-eLHpSK/Y4nhMJ07gDaAzoX/XAKS8PSaojml3M0DM4JpV1LAi5JOJ/p6H/XWrl8L+DzVEvVCW1z3vWAaB9oTsQw=="],
+
"assert-plus": ["assert-plus@1.0.0", "", {}, "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw=="],
+ "assertion-error": ["assertion-error@2.0.1", "", {}, "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA=="],
+
"ast-kit": ["ast-kit@2.1.2", "", { "dependencies": { "@babel/parser": "^7.28.0", "pathe": "^2.0.3" } }, "sha512-cl76xfBQM6pztbrFWRnxbrDm9EOqDr1BF6+qQnnDZG2Co2LjyUktkN9GTJfBAfdae+DbT2nJf2nCGAdDDN7W2g=="],
+ "ast-types": ["ast-types@0.16.1", "", { "dependencies": { "tslib": "^2.0.1" } }, "sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg=="],
+
"astral-regex": ["astral-regex@2.0.0", "", {}, "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ=="],
"async": ["async@3.2.6", "", {}, "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA=="],
@@ -1012,6 +1864,10 @@
"autoprefixer": ["autoprefixer@10.4.21", "", { "dependencies": { "browserslist": "^4.24.4", "caniuse-lite": "^1.0.30001702", "fraction.js": "^4.3.7", "normalize-range": "^0.1.2", "picocolors": "^1.1.1", "postcss-value-parser": "^4.2.0" }, "peerDependencies": { "postcss": "^8.1.0" }, "bin": { "autoprefixer": "bin/autoprefixer" } }, "sha512-O+A6LWV5LDHSJD3LjHYoNi4VLsj/Whi7k6zG12xTYaU4cQ8oxQGckXNX8cRHK5yOZ/ppVHe0ZBXGzSV9jXdVbQ=="],
+ "available-typed-arrays": ["available-typed-arrays@1.0.7", "", { "dependencies": { "possible-typed-array-names": "^1.0.0" } }, "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ=="],
+
+ "aws4fetch": ["aws4fetch@1.0.20", "", {}, "sha512-/djoAN709iY65ETD6LKCtyyEI04XIBP5xVvfmNxsEP0uJB5tyaGBztSryRr4HqMStr9R06PisQE7m9zDTXKu6g=="],
+
"axios": ["axios@1.12.2", "", { "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.4", "proxy-from-env": "^1.1.0" } }, "sha512-vMJzPewAlRyOgxV2dU0Cuz2O8zzzx9VYtbJOaBgXFeLc4IV/Eg50n4LowmehOOR61S8ZMpc2K5Sa7g6A4jfkUw=="],
"b4a": ["b4a@1.7.3", "", { "peerDependencies": { "react-native-b4a": "*" }, "optionalPeers": ["react-native-b4a"] }, "sha512-5Q2mfq2WfGuFp3uS//0s6baOJLMoVduPYVeNmDYxu5OUA1/cBfvr2RIS7vi62LdNj/urk1hfmj867I3qt6uZ7Q=="],
@@ -1026,8 +1882,12 @@
"baseline-browser-mapping": ["baseline-browser-mapping@2.8.12", "", { "bin": { "baseline-browser-mapping": "dist/cli.js" } }, "sha512-vAPMQdnyKCBtkmQA6FMCBvU9qFIppS3nzyXnEM+Lo2IAhG4Mpjv9cCxMudhgV3YdNNJv6TNqXy97dfRVL2LmaQ=="],
+ "bcrypt-ts": ["bcrypt-ts@7.1.0", "", {}, "sha512-t/Dqr9YzYmn/+oPQBgotBPUuezpZD5CPBwapM5Ep1p3zsLmEycMdXOfZpWbztSBWJ41DlB7EluJBUDsAGSiUeQ=="],
+
"before-after-hook": ["before-after-hook@4.0.0", "", {}, "sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ=="],
+ "better-opn": ["better-opn@3.0.2", "", { "dependencies": { "open": "^8.0.4" } }, "sha512-aVNobHnJqLiUelTaHat9DZ1qM2w0C0Eym4LPI/3JxOnSokGVdsl1T1kN7TFvsEAD8G47A6VKQ0TVHqbBnYMJlQ=="],
+
"bignumber.js": ["bignumber.js@9.3.1", "", {}, "sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ=="],
"birpc": ["birpc@2.6.1", "", {}, "sha512-LPnFhlDpdSH6FJhJyn4M0kFO7vtQ5iPw24FnG0y21q09xC7e8+1LeR31S1MAIrDAHp4m7aas4bEkTDTvMAtebQ=="],
@@ -1036,19 +1896,39 @@
"blink": ["blink@workspace:packages/blink"],
+ "bn.js": ["bn.js@5.2.2", "", {}, "sha512-v2YAxEmKaBLahNwE1mjp4WON6huMNeuDvagFZW+ASCuA/ku0bXR9hSMw0XpiqMoA3+rmnyck/tPRSFQkoC9Cuw=="],
+
"body-parser": ["body-parser@2.2.0", "", { "dependencies": { "bytes": "^3.1.2", "content-type": "^1.0.5", "debug": "^4.4.0", "http-errors": "^2.0.0", "iconv-lite": "^0.6.3", "on-finished": "^2.4.1", "qs": "^6.14.0", "raw-body": "^3.0.0", "type-is": "^2.0.0" } }, "sha512-02qvAaxv8tp7fBa/mw1ga98OGm+eCbqzJOKoRt70sLmfEEi+jyBYVTDGfCL/k06/4EMk/z01gCe7HoCH/f2LTg=="],
"boolean": ["boolean@3.2.0", "", {}, "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw=="],
+ "bowser": ["bowser@2.13.0", "", {}, "sha512-yHAbSRuT6LTeKi6k2aS40csueHqgAsFEgmrOsfRyFpJnFv5O2hl9FYmWEUZ97gZ/dG17U4IQQcTx4YAFYPuWRQ=="],
+
"boxen": ["boxen@7.1.1", "", { "dependencies": { "ansi-align": "^3.0.1", "camelcase": "^7.0.1", "chalk": "^5.2.0", "cli-boxes": "^3.0.0", "string-width": "^5.1.2", "type-fest": "^2.13.0", "widest-line": "^4.0.1", "wrap-ansi": "^8.1.0" } }, "sha512-2hCgjEmP8YLWQ130n2FerGv7rYpfBmnmp9Uy2Le1vge6X3gZIfSmEzP5QTDElFxcvVcXlEn8Aq6MU/PZygIOog=="],
"brace-expansion": ["brace-expansion@2.0.2", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ=="],
"braces": ["braces@3.0.3", "", { "dependencies": { "fill-range": "^7.1.1" } }, "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA=="],
+ "brorand": ["brorand@1.1.0", "", {}, "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w=="],
+
+ "browser-resolve": ["browser-resolve@2.0.0", "", { "dependencies": { "resolve": "^1.17.0" } }, "sha512-7sWsQlYL2rGLy2IWm8WL8DCTJvYLc/qlOnsakDac87SOoCd16WLsaAMdCiAqsTNHIe+SXfaqyxyo6THoWqs8WQ=="],
+
+ "browserify-aes": ["browserify-aes@1.2.0", "", { "dependencies": { "buffer-xor": "^1.0.3", "cipher-base": "^1.0.0", "create-hash": "^1.1.0", "evp_bytestokey": "^1.0.3", "inherits": "^2.0.1", "safe-buffer": "^5.0.1" } }, "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA=="],
+
+ "browserify-cipher": ["browserify-cipher@1.0.1", "", { "dependencies": { "browserify-aes": "^1.0.4", "browserify-des": "^1.0.0", "evp_bytestokey": "^1.0.0" } }, "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w=="],
+
+ "browserify-des": ["browserify-des@1.0.2", "", { "dependencies": { "cipher-base": "^1.0.1", "des.js": "^1.0.0", "inherits": "^2.0.1", "safe-buffer": "^5.1.2" } }, "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A=="],
+
+ "browserify-rsa": ["browserify-rsa@4.1.1", "", { "dependencies": { "bn.js": "^5.2.1", "randombytes": "^2.1.0", "safe-buffer": "^5.2.1" } }, "sha512-YBjSAiTqM04ZVei6sXighu679a3SqWORA3qZTEqZImnlkDIFtKc6pNutpjyZ8RJTjQtuYfeetkxM11GwoYXMIQ=="],
+
+ "browserify-sign": ["browserify-sign@4.2.5", "", { "dependencies": { "bn.js": "^5.2.2", "browserify-rsa": "^4.1.1", "create-hash": "^1.2.0", "create-hmac": "^1.1.7", "elliptic": "^6.6.1", "inherits": "^2.0.4", "parse-asn1": "^5.1.9", "readable-stream": "^2.3.8", "safe-buffer": "^5.2.1" } }, "sha512-C2AUdAJg6rlM2W5QMp2Q4KGQMVBwR1lIimTsUnutJ8bMpW5B52pGpR2gEnNBNwijumDo5FojQ0L9JrXA8m4YEw=="],
+
+ "browserify-zlib": ["browserify-zlib@0.2.0", "", { "dependencies": { "pako": "~1.0.5" } }, "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA=="],
+
"browserslist": ["browserslist@4.26.3", "", { "dependencies": { "baseline-browser-mapping": "^2.8.9", "caniuse-lite": "^1.0.30001746", "electron-to-chromium": "^1.5.227", "node-releases": "^2.0.21", "update-browserslist-db": "^1.1.3" }, "bin": { "browserslist": "cli.js" } }, "sha512-lAUU+02RFBuCKQPj/P6NgjlbCnLBMp4UtgTx7vNHd3XSIJF87s9a5rA3aH2yw3GS9DqZAUbOtZdCCiZeVRqt0w=="],
- "buffer": ["buffer@5.7.1", "", { "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.1.13" } }, "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ=="],
+ "buffer": ["buffer@5.6.0", "", { "dependencies": { "base64-js": "^1.0.2", "ieee754": "^1.1.4" } }, "sha512-/gDYp/UtU0eA1ys8bOs9J6a+E/KWIY+DZ+Q2WESNUA0jFRsJOc0SNUO6xJ5SGA1xueg3NL65W6s+NY5l9cunuw=="],
"buffer-crc32": ["buffer-crc32@0.2.13", "", {}, "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ=="],
@@ -1056,14 +1936,22 @@
"buffer-from": ["buffer-from@1.1.2", "", {}, "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="],
+ "buffer-xor": ["buffer-xor@1.0.3", "", {}, "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ=="],
+
"builder-util": ["builder-util@26.0.11", "", { "dependencies": { "7zip-bin": "~5.2.0", "@types/debug": "^4.1.6", "app-builder-bin": "5.0.0-alpha.12", "builder-util-runtime": "9.3.1", "chalk": "^4.1.2", "cross-spawn": "^7.0.6", "debug": "^4.3.4", "fs-extra": "^10.1.0", "http-proxy-agent": "^7.0.0", "https-proxy-agent": "^7.0.0", "is-ci": "^3.0.0", "js-yaml": "^4.1.0", "sanitize-filename": "^1.6.3", "source-map-support": "^0.5.19", "stat-mode": "^1.0.0", "temp-file": "^3.4.0", "tiny-async-pool": "1.3.0" } }, "sha512-xNjXfsldUEe153h1DraD0XvDOpqGR0L5eKFkdReB7eFW5HqysDZFfly4rckda6y9dF39N3pkPlOblcfHKGw+uA=="],
"builder-util-runtime": ["builder-util-runtime@9.3.1", "", { "dependencies": { "debug": "^4.3.4", "sax": "^1.2.4" } }, "sha512-2/egrNDDnRaxVwK3A+cJq6UOlqOdedGA7JPqCeJjN2Zjk1/QB/6QUi3b714ScIGS7HafFXTyzJEOr5b44I3kvQ=="],
+ "builtin-status-codes": ["builtin-status-codes@3.0.0", "", {}, "sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ=="],
+
"bun-types": ["bun-types@1.2.23", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-R9f0hKAZXgFU3mlrA0YpE/fiDvwV0FT9rORApt2aQVWSuJDzZOyB5QLc0N/4HF57CS8IXJ6+L5E4W1bW6NS2Aw=="],
"bundle-name": ["bundle-name@4.1.0", "", { "dependencies": { "run-applescript": "^7.0.0" } }, "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q=="],
+ "bundle-require": ["bundle-require@5.1.0", "", { "dependencies": { "load-tsconfig": "^0.2.3" }, "peerDependencies": { "esbuild": ">=0.18" } }, "sha512-3WrrOuZiyaaZPWiEt4G3+IffISVC9HYlWueJEBWED4ZH4aIAC2PnkdnuRrR94M+w6yGWn4AglWtJtBI8YqvgoA=="],
+
+ "busboy": ["busboy@1.6.0", "", { "dependencies": { "streamsearch": "^1.1.0" } }, "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA=="],
+
"bytes": ["bytes@3.1.2", "", {}, "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg=="],
"cac": ["cac@6.7.14", "", {}, "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ=="],
@@ -1086,6 +1974,8 @@
"ccount": ["ccount@2.0.1", "", {}, "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg=="],
+ "chai": ["chai@5.3.3", "", { "dependencies": { "assertion-error": "^2.0.1", "check-error": "^2.1.1", "deep-eql": "^5.0.1", "loupe": "^3.1.0", "pathval": "^2.0.0" } }, "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw=="],
+
"chalk": ["chalk@5.6.2", "", {}, "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA=="],
"char-regex": ["char-regex@1.0.2", "", {}, "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw=="],
@@ -1100,18 +1990,28 @@
"chardet": ["chardet@2.1.0", "", {}, "sha512-bNFETTG/pM5ryzQ9Ad0lJOTa6HWD/YsScAR3EnCPZRPlQh77JocYktSHOUHelyhm8IARL+o4c4F1bP5KVOjiRA=="],
+ "check-error": ["check-error@2.1.1", "", {}, "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw=="],
+
+ "chevrotain": ["chevrotain@11.0.3", "", { "dependencies": { "@chevrotain/cst-dts-gen": "11.0.3", "@chevrotain/gast": "11.0.3", "@chevrotain/regexp-to-ast": "11.0.3", "@chevrotain/types": "11.0.3", "@chevrotain/utils": "11.0.3", "lodash-es": "4.17.21" } }, "sha512-ci2iJH6LeIkvP9eJW6gpueU8cnZhv85ELY8w8WiFtNjMHA5ad6pQLaJo9mEly/9qUyCpvqX8/POVUTf18/HFdw=="],
+
+ "chevrotain-allstar": ["chevrotain-allstar@0.3.1", "", { "dependencies": { "lodash-es": "^4.17.21" }, "peerDependencies": { "chevrotain": "^11.0.0" } }, "sha512-b7g+y9A0v4mxCW1qUhf3BSVPg+/NvGErk/dOkrDaHA0nQIQGAtrOjlX//9OQtRlSCy+x9rfB5N8yC71lH1nvMw=="],
+
"chokidar": ["chokidar@4.0.3", "", { "dependencies": { "readdirp": "^4.0.1" } }, "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA=="],
- "chownr": ["chownr@3.0.0", "", {}, "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g=="],
+ "chownr": ["chownr@2.0.0", "", {}, "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ=="],
"chromium-pickle-js": ["chromium-pickle-js@0.2.0", "", {}, "sha512-1R5Fho+jBq0DDydt+/vHWj5KJNJCKdARKOCwZUen84I5BreWoLqRLANH1U87eJy1tiASPtMnGqJJq0ZsLoRPOw=="],
"ci-info": ["ci-info@3.9.0", "", {}, "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ=="],
+ "cipher-base": ["cipher-base@1.0.7", "", { "dependencies": { "inherits": "^2.0.4", "safe-buffer": "^5.2.1", "to-buffer": "^1.2.2" } }, "sha512-Mz9QMT5fJe7bKI7MH31UilT5cEK5EHHRCccw/YRFsRY47AuNgaV6HY3rscp0/I4Q+tTW/5zoqpSeRRI54TkDWA=="],
+
"cjs-module-lexer": ["cjs-module-lexer@1.4.3", "", {}, "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q=="],
"class-variance-authority": ["class-variance-authority@0.7.1", "", { "dependencies": { "clsx": "^2.1.1" } }, "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg=="],
+ "classnames": ["classnames@2.5.1", "", {}, "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow=="],
+
"clean-stack": ["clean-stack@2.2.0", "", {}, "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A=="],
"cli-boxes": ["cli-boxes@3.0.0", "", {}, "sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g=="],
@@ -1126,6 +2026,10 @@
"cli-truncate": ["cli-truncate@4.0.0", "", { "dependencies": { "slice-ansi": "^5.0.0", "string-width": "^7.0.0" } }, "sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA=="],
+ "cli-width": ["cli-width@4.1.0", "", {}, "sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ=="],
+
+ "client-only": ["client-only@0.0.1", "", {}, "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA=="],
+
"cliui": ["cliui@8.0.1", "", { "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", "wrap-ansi": "^7.0.0" } }, "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ=="],
"clone": ["clone@1.0.4", "", {}, "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg=="],
@@ -1154,48 +2058,156 @@
"concurrently": ["concurrently@8.2.2", "", { "dependencies": { "chalk": "^4.1.2", "date-fns": "^2.30.0", "lodash": "^4.17.21", "rxjs": "^7.8.1", "shell-quote": "^1.8.1", "spawn-command": "0.0.2", "supports-color": "^8.1.1", "tree-kill": "^1.2.2", "yargs": "^17.7.2" }, "bin": { "conc": "dist/bin/concurrently.js", "concurrently": "dist/bin/concurrently.js" } }, "sha512-1dP4gpXFhei8IOtlXRE/T/4H88ElHgTiUzh71YUmtjTEHMSRS2Z/fgOxHSxxusGHogsRfxNq1vyAwxSC+EVyDg=="],
+ "confbox": ["confbox@0.1.8", "", {}, "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w=="],
+
"config-chain": ["config-chain@1.1.13", "", { "dependencies": { "ini": "^1.3.4", "proto-list": "~1.2.1" } }, "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ=="],
"config-file-ts": ["config-file-ts@0.2.8-rc1", "", { "dependencies": { "glob": "^10.3.12", "typescript": "^5.4.3" } }, "sha512-GtNECbVI82bT4RiDIzBSVuTKoSHufnU7Ce7/42bkWZJZFLjmDF2WBpVsvRkhKCfKBnTBb3qZrBwPpFBU/Myvhg=="],
"configstore": ["configstore@7.1.0", "", { "dependencies": { "atomically": "^2.0.3", "dot-prop": "^9.0.0", "graceful-fs": "^4.2.11", "xdg-basedir": "^5.1.0" } }, "sha512-N4oog6YJWbR9kGyXvS7jEykLDXIE2C0ILYqNBZBp9iwiJpoCBWYsuAdW6PPFn6w06jjnC+3JstVvWHO4cZqvRg=="],
+ "consola": ["consola@3.4.2", "", {}, "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA=="],
+
+ "console-browserify": ["console-browserify@1.2.0", "", {}, "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA=="],
+
+ "constants-browserify": ["constants-browserify@1.0.0", "", {}, "sha512-xFxOwqIzR/e1k1gLiWEophSCMqXcwVHIH7akf7b/vxcUeGunlj3hvZaaqxwHsTgn+IndtkQJgSztIDWeumWJDQ=="],
+
"content-disposition": ["content-disposition@1.0.0", "", { "dependencies": { "safe-buffer": "5.2.1" } }, "sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg=="],
"content-type": ["content-type@1.0.5", "", {}, "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA=="],
+ "convert-source-map": ["convert-source-map@2.0.0", "", {}, "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg=="],
+
"convert-to-spaces": ["convert-to-spaces@2.0.1", "", {}, "sha512-rcQ1bsQO9799wq24uE5AM2tAILy4gXGIK/njFWcVQkGNZ96edlpY+A7bjwvzjYvLDyzmG1MmMLZhpcsb+klNMQ=="],
- "cookie": ["cookie@0.7.2", "", {}, "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w=="],
+ "cookie": ["cookie@1.0.2", "", {}, "sha512-9Kr/j4O16ISv8zBBhJoi4bXOYNTkFLOqSL3UDB0njXxCXNezjeyVrJyGOWtgfs/q2km1gwBcfH8q1yEGoMYunA=="],
"cookie-signature": ["cookie-signature@1.2.2", "", {}, "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg=="],
"copy-anything": ["copy-anything@2.0.6", "", { "dependencies": { "is-what": "^3.14.1" } }, "sha512-1j20GZTsvKNkc4BY3NpMOM8tt///wY3FpIzozTOFO2ffuZcV61nojHXVKIy3WM+7ADCy5FVhdZYHYDdgTU0yJw=="],
+ "core-js": ["core-js@3.47.0", "", {}, "sha512-c3Q2VVkGAUyupsjRnaNX6u8Dq2vAdzm9iuPj5FW0fRxzlxgq9Q39MDq10IvmQSpLgHQNyQzQmOo6bgGHmH3NNg=="],
+
"core-util-is": ["core-util-is@1.0.2", "", {}, "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ=="],
"cors": ["cors@2.8.5", "", { "dependencies": { "object-assign": "^4", "vary": "^1" } }, "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g=="],
+ "cose-base": ["cose-base@1.0.3", "", { "dependencies": { "layout-base": "^1.0.0" } }, "sha512-s9whTXInMSgAp/NVXVNuVxVKzGH2qck3aQlVHxDCdAEPgtMKwc4Wq6/QKhgdEdgbLSi9rBTAcPoRa6JpiG4ksg=="],
+
"crc": ["crc@3.8.0", "", { "dependencies": { "buffer": "^5.1.0" } }, "sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ=="],
+ "create-ecdh": ["create-ecdh@4.0.4", "", { "dependencies": { "bn.js": "^4.1.0", "elliptic": "^6.5.3" } }, "sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A=="],
+
+ "create-hash": ["create-hash@1.2.0", "", { "dependencies": { "cipher-base": "^1.0.1", "inherits": "^2.0.1", "md5.js": "^1.3.4", "ripemd160": "^2.0.1", "sha.js": "^2.4.0" } }, "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg=="],
+
+ "create-hmac": ["create-hmac@1.1.7", "", { "dependencies": { "cipher-base": "^1.0.3", "create-hash": "^1.1.0", "inherits": "^2.0.1", "ripemd160": "^2.0.0", "safe-buffer": "^5.0.1", "sha.js": "^2.4.8" } }, "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg=="],
+
+ "create-require": ["create-require@1.1.1", "", {}, "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ=="],
+
"cross-dirname": ["cross-dirname@0.1.0", "", {}, "sha512-+R08/oI0nl3vfPcqftZRpytksBXDzOUveBq/NBVx0sUp1axwzPQrKinNx5yd5sxPu8j1wIy8AfnVQ+5eFdha6Q=="],
+ "cross-fetch": ["cross-fetch@4.1.0", "", { "dependencies": { "node-fetch": "^2.7.0" } }, "sha512-uKm5PU+MHTootlWEY+mZ4vvXoCn4fLQxT9dSc1sXVMSFkINTJVN8cAQROpwcKm8bJ/c7rgZVIBWzH5T78sNZZw=="],
+
"cross-spawn": ["cross-spawn@7.0.6", "", { "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" } }, "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA=="],
+ "crypto-browserify": ["crypto-browserify@3.12.1", "", { "dependencies": { "browserify-cipher": "^1.0.1", "browserify-sign": "^4.2.3", "create-ecdh": "^4.0.4", "create-hash": "^1.2.0", "create-hmac": "^1.1.7", "diffie-hellman": "^5.0.3", "hash-base": "~3.0.4", "inherits": "^2.0.4", "pbkdf2": "^3.1.2", "public-encrypt": "^4.0.3", "randombytes": "^2.1.0", "randomfill": "^1.0.4" } }, "sha512-r4ESw/IlusD17lgQi1O20Fa3qNnsckR126TdUuBgAu7GBYSIPvdNyONd3Zrxh0xCwA4+6w/TDArBPsMvhur+KQ=="],
+
+ "css.escape": ["css.escape@1.5.1", "", {}, "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg=="],
+
"cssesc": ["cssesc@3.0.0", "", { "bin": { "cssesc": "bin/cssesc" } }, "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg=="],
"csstype": ["csstype@3.1.3", "", {}, "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="],
"cwd": ["cwd@0.10.0", "", { "dependencies": { "find-pkg": "^0.1.2", "fs-exists-sync": "^0.1.0" } }, "sha512-YGZxdTTL9lmLkCUTpg4j0zQ7IhRB5ZmqNBbGCl3Tg6MP/d5/6sY7L5mmTjzbc6JKgVZYiqTQTNhPFsbXNGlRaA=="],
- "date-fns": ["date-fns@2.30.0", "", { "dependencies": { "@babel/runtime": "^7.21.0" } }, "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw=="],
+ "cytoscape": ["cytoscape@3.33.1", "", {}, "sha512-iJc4TwyANnOGR1OmWhsS9ayRS3s+XQ185FmuHObThD+5AeJCakAAbWv8KimMTt08xCCLNgneQwFp+JRJOr9qGQ=="],
+
+ "cytoscape-cose-bilkent": ["cytoscape-cose-bilkent@4.1.0", "", { "dependencies": { "cose-base": "^1.0.0" }, "peerDependencies": { "cytoscape": "^3.2.0" } }, "sha512-wgQlVIUJF13Quxiv5e1gstZ08rnZj2XaLHGoFMYXz7SkNfCDOOteKBE6SYRfA9WxxI/iBc3ajfDoc6hb/MRAHQ=="],
+
+ "cytoscape-fcose": ["cytoscape-fcose@2.2.0", "", { "dependencies": { "cose-base": "^2.2.0" }, "peerDependencies": { "cytoscape": "^3.2.0" } }, "sha512-ki1/VuRIHFCzxWNrsshHYPs6L7TvLu3DL+TyIGEsRcvVERmxokbf5Gdk7mFxZnTdiGtnA4cfSmjZJMviqSuZrQ=="],
+
+ "d3": ["d3@7.9.0", "", { "dependencies": { "d3-array": "3", "d3-axis": "3", "d3-brush": "3", "d3-chord": "3", "d3-color": "3", "d3-contour": "4", "d3-delaunay": "6", "d3-dispatch": "3", "d3-drag": "3", "d3-dsv": "3", "d3-ease": "3", "d3-fetch": "3", "d3-force": "3", "d3-format": "3", "d3-geo": "3", "d3-hierarchy": "3", "d3-interpolate": "3", "d3-path": "3", "d3-polygon": "3", "d3-quadtree": "3", "d3-random": "3", "d3-scale": "4", "d3-scale-chromatic": "3", "d3-selection": "3", "d3-shape": "3", "d3-time": "3", "d3-time-format": "4", "d3-timer": "3", "d3-transition": "3", "d3-zoom": "3" } }, "sha512-e1U46jVP+w7Iut8Jt8ri1YsPOvFpg46k+K8TpCb0P+zjCkjkPnV7WzfDJzMHy1LnA+wj5pLT1wjO901gLXeEhA=="],
+
+ "d3-array": ["d3-array@3.2.4", "", { "dependencies": { "internmap": "1 - 2" } }, "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg=="],
+
+ "d3-axis": ["d3-axis@3.0.0", "", {}, "sha512-IH5tgjV4jE/GhHkRV0HiVYPDtvfjHQlQfJHs0usq7M30XcSBvOotpmH1IgkcXsO/5gEQZD43B//fc7SRT5S+xw=="],
+
+ "d3-brush": ["d3-brush@3.0.0", "", { "dependencies": { "d3-dispatch": "1 - 3", "d3-drag": "2 - 3", "d3-interpolate": "1 - 3", "d3-selection": "3", "d3-transition": "3" } }, "sha512-ALnjWlVYkXsVIGlOsuWH1+3udkYFI48Ljihfnh8FZPF2QS9o+PzGLBslO0PjzVoHLZ2KCVgAM8NVkXPJB2aNnQ=="],
+
+ "d3-chord": ["d3-chord@3.0.1", "", { "dependencies": { "d3-path": "1 - 3" } }, "sha512-VE5S6TNa+j8msksl7HwjxMHDM2yNK3XCkusIlpX5kwauBfXuyLAtNg9jCp/iHH61tgI4sb6R/EIMWCqEIdjT/g=="],
+
+ "d3-color": ["d3-color@3.1.0", "", {}, "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA=="],
+
+ "d3-contour": ["d3-contour@4.0.2", "", { "dependencies": { "d3-array": "^3.2.0" } }, "sha512-4EzFTRIikzs47RGmdxbeUvLWtGedDUNkTcmzoeyg4sP/dvCexO47AaQL7VKy/gul85TOxw+IBgA8US2xwbToNA=="],
+
+ "d3-delaunay": ["d3-delaunay@6.0.4", "", { "dependencies": { "delaunator": "5" } }, "sha512-mdjtIZ1XLAM8bm/hx3WwjfHt6Sggek7qH043O8KEjDXN40xi3vx/6pYSVTwLjEgiXQTbvaouWKynLBiUZ6SK6A=="],
+
+ "d3-dispatch": ["d3-dispatch@3.0.1", "", {}, "sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg=="],
+
+ "d3-drag": ["d3-drag@3.0.0", "", { "dependencies": { "d3-dispatch": "1 - 3", "d3-selection": "3" } }, "sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg=="],
+
+ "d3-dsv": ["d3-dsv@3.0.1", "", { "dependencies": { "commander": "7", "iconv-lite": "0.6", "rw": "1" }, "bin": { "csv2json": "bin/dsv2json.js", "csv2tsv": "bin/dsv2dsv.js", "dsv2dsv": "bin/dsv2dsv.js", "dsv2json": "bin/dsv2json.js", "json2csv": "bin/json2dsv.js", "json2dsv": "bin/json2dsv.js", "json2tsv": "bin/json2dsv.js", "tsv2csv": "bin/dsv2dsv.js", "tsv2json": "bin/dsv2json.js" } }, "sha512-UG6OvdI5afDIFP9w4G0mNq50dSOsXHJaRE8arAS5o9ApWnIElp8GZw1Dun8vP8OyHOZ/QJUKUJwxiiCCnUwm+Q=="],
+
+ "d3-ease": ["d3-ease@3.0.1", "", {}, "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w=="],
+
+ "d3-fetch": ["d3-fetch@3.0.1", "", { "dependencies": { "d3-dsv": "1 - 3" } }, "sha512-kpkQIM20n3oLVBKGg6oHrUchHM3xODkTzjMoj7aWQFq5QEM+R6E4WkzT5+tojDY7yjez8KgCBRoj4aEr99Fdqw=="],
+
+ "d3-force": ["d3-force@3.0.0", "", { "dependencies": { "d3-dispatch": "1 - 3", "d3-quadtree": "1 - 3", "d3-timer": "1 - 3" } }, "sha512-zxV/SsA+U4yte8051P4ECydjD/S+qeYtnaIyAs9tgHCqfguma/aAQDjo85A9Z6EKhBirHRJHXIgJUlffT4wdLg=="],
+
+ "d3-format": ["d3-format@3.1.0", "", {}, "sha512-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA=="],
+
+ "d3-geo": ["d3-geo@3.1.1", "", { "dependencies": { "d3-array": "2.5.0 - 3" } }, "sha512-637ln3gXKXOwhalDzinUgY83KzNWZRKbYubaG+fGVuc/dxO64RRljtCTnf5ecMyE1RIdtqpkVcq0IbtU2S8j2Q=="],
+
+ "d3-hierarchy": ["d3-hierarchy@3.1.2", "", {}, "sha512-FX/9frcub54beBdugHjDCdikxThEqjnR93Qt7PvQTOHxyiNCAlvMrHhclk3cD5VeAaq9fxmfRp+CnWw9rEMBuA=="],
+
+ "d3-interpolate": ["d3-interpolate@3.0.1", "", { "dependencies": { "d3-color": "1 - 3" } }, "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g=="],
+
+ "d3-path": ["d3-path@3.1.0", "", {}, "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ=="],
+
+ "d3-polygon": ["d3-polygon@3.0.1", "", {}, "sha512-3vbA7vXYwfe1SYhED++fPUQlWSYTTGmFmQiany/gdbiWgU/iEyQzyymwL9SkJjFFuCS4902BSzewVGsHHmHtXg=="],
+
+ "d3-quadtree": ["d3-quadtree@3.0.1", "", {}, "sha512-04xDrxQTDTCFwP5H6hRhsRcb9xxv2RzkcsygFzmkSIOJy3PeRJP7sNk3VRIbKXcog561P9oU0/rVH6vDROAgUw=="],
+
+ "d3-random": ["d3-random@3.0.1", "", {}, "sha512-FXMe9GfxTxqd5D6jFsQ+DJ8BJS4E/fT5mqqdjovykEB2oFbTMDVdg1MGFxfQW+FBOGoB++k8swBrgwSHT1cUXQ=="],
+
+ "d3-sankey": ["d3-sankey@0.12.3", "", { "dependencies": { "d3-array": "1 - 2", "d3-shape": "^1.2.0" } }, "sha512-nQhsBRmM19Ax5xEIPLMY9ZmJ/cDvd1BG3UVvt5h3WRxKg5zGRbvnteTyWAbzeSvlh3tW7ZEmq4VwR5mB3tutmQ=="],
+
+ "d3-scale": ["d3-scale@4.0.2", "", { "dependencies": { "d3-array": "2.10.0 - 3", "d3-format": "1 - 3", "d3-interpolate": "1.2.0 - 3", "d3-time": "2.1.1 - 3", "d3-time-format": "2 - 4" } }, "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ=="],
+
+ "d3-scale-chromatic": ["d3-scale-chromatic@3.1.0", "", { "dependencies": { "d3-color": "1 - 3", "d3-interpolate": "1 - 3" } }, "sha512-A3s5PWiZ9YCXFye1o246KoscMWqf8BsD9eRiJ3He7C9OBaxKhAd5TFCdEx/7VbKtxxTsu//1mMJFrEt572cEyQ=="],
+
+ "d3-selection": ["d3-selection@3.0.0", "", {}, "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ=="],
+
+ "d3-shape": ["d3-shape@3.2.0", "", { "dependencies": { "d3-path": "^3.1.0" } }, "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA=="],
+
+ "d3-time": ["d3-time@3.1.0", "", { "dependencies": { "d3-array": "2 - 3" } }, "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q=="],
+
+ "d3-time-format": ["d3-time-format@4.1.0", "", { "dependencies": { "d3-time": "1 - 3" } }, "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg=="],
+
+ "d3-timer": ["d3-timer@3.0.1", "", {}, "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA=="],
+
+ "d3-transition": ["d3-transition@3.0.1", "", { "dependencies": { "d3-color": "1 - 3", "d3-dispatch": "1 - 3", "d3-ease": "1 - 3", "d3-interpolate": "1 - 3", "d3-timer": "1 - 3" }, "peerDependencies": { "d3-selection": "2 - 3" } }, "sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w=="],
+
+ "d3-zoom": ["d3-zoom@3.0.0", "", { "dependencies": { "d3-dispatch": "1 - 3", "d3-drag": "2 - 3", "d3-interpolate": "1 - 3", "d3-selection": "2 - 3", "d3-transition": "2 - 3" } }, "sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw=="],
+
+ "dagre-d3-es": ["dagre-d3-es@7.0.13", "", { "dependencies": { "d3": "^7.9.0", "lodash-es": "^4.17.21" } }, "sha512-efEhnxpSuwpYOKRm/L5KbqoZmNNukHa/Flty4Wp62JRvgH2ojwVgPgdYyr4twpieZnyRDdIH7PY2mopX26+j2Q=="],
+
+ "date-fns": ["date-fns@4.1.0", "", {}, "sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg=="],
+
+ "dayjs": ["dayjs@1.11.19", "", {}, "sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw=="],
+
+ "debounce": ["debounce@1.2.1", "", {}, "sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug=="],
"debug": ["debug@4.4.3", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="],
+ "decimal.js-light": ["decimal.js-light@2.5.1", "", {}, "sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg=="],
+
"decode-named-character-reference": ["decode-named-character-reference@1.2.0", "", { "dependencies": { "character-entities": "^2.0.0" } }, "sha512-c6fcElNV6ShtZXmsgNgFFV5tVX2PaV4g+MOAkb8eXHvn6sryJBrZa9r0zV6+dtTyoCKxtDy5tyQ5ZwQuidtd+Q=="],
"decompress-response": ["decompress-response@6.0.0", "", { "dependencies": { "mimic-response": "^3.1.0" } }, "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ=="],
+ "deep-eql": ["deep-eql@5.0.2", "", {}, "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q=="],
+
"deep-extend": ["deep-extend@0.6.0", "", {}, "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA=="],
"deepmerge": ["deepmerge@4.3.1", "", {}, "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A=="],
@@ -1216,12 +2228,16 @@
"defu": ["defu@6.1.4", "", {}, "sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg=="],
+ "delaunator": ["delaunator@5.0.1", "", { "dependencies": { "robust-predicates": "^3.0.2" } }, "sha512-8nvh+XBe96aCESrGOqMp/84b13H9cdKbG5P2ejQCh4d4sK9RL4371qou9drQjMhvnPmhWl5hnmqbEE0fXr9Xnw=="],
+
"delayed-stream": ["delayed-stream@1.0.0", "", {}, "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="],
"depd": ["depd@2.0.0", "", {}, "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw=="],
"dequal": ["dequal@2.0.3", "", {}, "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA=="],
+ "des.js": ["des.js@1.1.0", "", { "dependencies": { "inherits": "^2.0.1", "minimalistic-assert": "^1.0.0" } }, "sha512-r17GxjhUCjSRy8aiJpr8/UadFIzMzJGexI3Nmz4ADi9LYSFx4gTBp80+NaX/YsXWWLhpZ7v/v/ubEc/bCNfKwg=="],
+
"detect-libc": ["detect-libc@2.1.2", "", {}, "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ=="],
"detect-node": ["detect-node@2.1.0", "", {}, "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g=="],
@@ -1232,18 +2248,30 @@
"diff": ["diff@8.0.2", "", {}, "sha512-sSuxWU5j5SR9QQji/o2qMvqRNYRDOcBTgsJ/DeCf4iSN4gW+gNMXM7wFIP+fdXZxoNiAnHUTGjCr+TSWXdRDKg=="],
+ "diff-match-patch": ["diff-match-patch@1.0.5", "", {}, "sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw=="],
+
+ "diffie-hellman": ["diffie-hellman@5.0.3", "", { "dependencies": { "bn.js": "^4.1.0", "miller-rabin": "^4.0.0", "randombytes": "^2.0.0" } }, "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg=="],
+
"dir-compare": ["dir-compare@4.2.0", "", { "dependencies": { "minimatch": "^3.0.5", "p-limit": "^3.1.0 " } }, "sha512-2xMCmOoMrdQIPHdsTawECdNPwlVFB9zGcz3kuhmBO6U3oU+UQjsue0i8ayLKpgBcm+hcXPMVSGUN9d+pvJ6+VQ=="],
"dmg-builder": ["dmg-builder@26.0.12", "", { "dependencies": { "app-builder-lib": "26.0.12", "builder-util": "26.0.11", "builder-util-runtime": "9.3.1", "fs-extra": "^10.1.0", "iconv-lite": "^0.6.2", "js-yaml": "^4.1.0" }, "optionalDependencies": { "dmg-license": "^1.0.11" } }, "sha512-59CAAjAhTaIMCN8y9kD573vDkxbs1uhDcrFLHSgutYdPcGOU35Rf95725snvzEOy4BFB7+eLJ8djCNPmGwG67w=="],
"dmg-license": ["dmg-license@1.0.11", "", { "dependencies": { "@types/plist": "^3.0.1", "@types/verror": "^1.10.3", "ajv": "^6.10.0", "crc": "^3.8.0", "iconv-corefoundation": "^1.1.7", "plist": "^3.0.4", "smart-buffer": "^4.0.2", "verror": "^1.10.0" }, "os": "darwin", "bin": { "dmg-license": "bin/dmg-license.js" } }, "sha512-ZdzmqwKmECOWJpqefloC5OJy1+WZBBse5+MR88z9g9Zn4VY+WYUkAyojmhzJckH5YbbZGcYIuGAkY5/Ys5OM2Q=="],
+ "doctrine": ["doctrine@3.0.0", "", { "dependencies": { "esutils": "^2.0.2" } }, "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w=="],
+
+ "dom-accessibility-api": ["dom-accessibility-api@0.5.16", "", {}, "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg=="],
+
"dom-serializer": ["dom-serializer@2.0.0", "", { "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.2", "entities": "^4.2.0" } }, "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg=="],
+ "domain-browser": ["domain-browser@4.22.0", "", {}, "sha512-IGBwjF7tNk3cwypFNH/7bfzBcgSCbaMOD3GsaY1AU/JRrnHnYgEM0+9kQt52iZxjNsjBtJYtao146V+f8jFZNw=="],
+
"domelementtype": ["domelementtype@2.3.0", "", {}, "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw=="],
"domhandler": ["domhandler@5.0.3", "", { "dependencies": { "domelementtype": "^2.3.0" } }, "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w=="],
+ "dompurify": ["dompurify@3.3.1", "", { "optionalDependencies": { "@types/trusted-types": "^2.0.7" } }, "sha512-qkdCKzLNtrgPFP1Vo+98FRzJnBRGe4ffyCea9IwHB1fyxPOeNTHpLKYGd4Uk9xvNoH0ZoOjwZxNptyMwqrId1Q=="],
+
"domutils": ["domutils@3.2.2", "", { "dependencies": { "dom-serializer": "^2.0.0", "domelementtype": "^2.3.0", "domhandler": "^5.0.3" } }, "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw=="],
"dot-prop": ["dot-prop@9.0.0", "", { "dependencies": { "type-fest": "^4.18.2" } }, "sha512-1gxPBJpI/pcjQhKgIU91II6Wkay+dLcN3M6rf2uwP8hRur3HtQXjVrdAK3sjC0piaEuxzMwjXChcETiJl47lAQ=="],
@@ -1252,10 +2280,16 @@
"dotenv-expand": ["dotenv-expand@11.0.7", "", { "dependencies": { "dotenv": "^16.4.5" } }, "sha512-zIHwmZPRshsCdpMDyVsqGmgyP0yT8GAgXUnkdAoJisxvf33k7yO6OuoKmcTGuXPWSsm8Oh88nZicRLA9Y0rUeA=="],
+ "drizzle-kit": ["drizzle-kit@0.31.8", "", { "dependencies": { "@drizzle-team/brocli": "^0.10.2", "@esbuild-kit/esm-loader": "^2.5.5", "esbuild": "^0.25.4", "esbuild-register": "^3.5.0" }, "bin": { "drizzle-kit": "bin.cjs" } }, "sha512-O9EC/miwdnRDY10qRxM8P3Pg8hXe3LyU4ZipReKOgTwn4OqANmftj8XJz1UPUAS6NMHf0E2htjsbQujUTkncCg=="],
+
+ "drizzle-orm": ["drizzle-orm@0.44.7", "", { "peerDependencies": { "@aws-sdk/client-rds-data": ">=3", "@cloudflare/workers-types": ">=4", "@electric-sql/pglite": ">=0.2.0", "@libsql/client": ">=0.10.0", "@libsql/client-wasm": ">=0.10.0", "@neondatabase/serverless": ">=0.10.0", "@op-engineering/op-sqlite": ">=2", "@opentelemetry/api": "^1.4.1", "@planetscale/database": ">=1.13", "@prisma/client": "*", "@tidbcloud/serverless": "*", "@types/better-sqlite3": "*", "@types/pg": "*", "@types/sql.js": "*", "@upstash/redis": ">=1.34.7", "@vercel/postgres": ">=0.8.0", "@xata.io/client": "*", "better-sqlite3": ">=7", "bun-types": "*", "expo-sqlite": ">=14.0.0", "gel": ">=2", "knex": "*", "kysely": "*", "mysql2": ">=2", "pg": ">=8", "postgres": ">=3", "sql.js": ">=1", "sqlite3": ">=5" }, "optionalPeers": ["@aws-sdk/client-rds-data", "@cloudflare/workers-types", "@electric-sql/pglite", "@libsql/client", "@libsql/client-wasm", "@neondatabase/serverless", "@op-engineering/op-sqlite", "@opentelemetry/api", "@planetscale/database", "@prisma/client", "@tidbcloud/serverless", "@types/better-sqlite3", "@types/pg", "@types/sql.js", "@upstash/redis", "@vercel/postgres", "@xata.io/client", "better-sqlite3", "bun-types", "expo-sqlite", "gel", "knex", "kysely", "mysql2", "pg", "postgres", "sql.js", "sqlite3"] }, "sha512-quIpnYznjU9lHshEOAYLoZ9s3jweleHlZIAWR/jX9gAWNg/JhQ1wj0KGRf7/Zm+obRrYd9GjPVJg790QY9N5AQ=="],
+
"dts-resolver": ["dts-resolver@2.1.2", "", { "peerDependencies": { "oxc-resolver": ">=11.0.0" }, "optionalPeers": ["oxc-resolver"] }, "sha512-xeXHBQkn2ISSXxbJWD828PFjtyg+/UrMDo7W4Ffcs7+YWCquxU8YjV1KoxuiL+eJ5pg3ll+bC6flVv61L3LKZg=="],
"dunder-proto": ["dunder-proto@1.0.1", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" } }, "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A=="],
+ "duplexer": ["duplexer@0.1.2", "", {}, "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg=="],
+
"eastasianwidth": ["eastasianwidth@0.2.0", "", {}, "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA=="],
"ecdsa-sig-formatter": ["ecdsa-sig-formatter@1.0.11", "", { "dependencies": { "safe-buffer": "^5.0.1" } }, "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ=="],
@@ -1276,6 +2310,8 @@
"electron-winstaller": ["electron-winstaller@5.4.0", "", { "dependencies": { "@electron/asar": "^3.2.1", "debug": "^4.1.1", "fs-extra": "^7.0.1", "lodash": "^4.17.21", "temp": "^0.9.0" }, "optionalDependencies": { "@electron/windows-sign": "^1.1.2" } }, "sha512-bO3y10YikuUwUuDUQRM4KfwNkKhnpVO7IPdbsrejwN9/AABJzzTQ4GeHwyzNSrVO+tEH3/Np255a3sVZpZDjvg=="],
+ "elliptic": ["elliptic@6.6.1", "", { "dependencies": { "bn.js": "^4.11.9", "brorand": "^1.1.0", "hash.js": "^1.0.0", "hmac-drbg": "^1.0.1", "inherits": "^2.0.4", "minimalistic-assert": "^1.0.1", "minimalistic-crypto-utils": "^1.0.1" } }, "sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g=="],
+
"emittery": ["emittery@1.2.0", "", {}, "sha512-KxdRyyFcS85pH3dnU8Y5yFUm2YJdaHwcBZWrfG8o89ZY9a13/f9itbN+YG3ELbBo9Pg5zvIozstmuV8bX13q6g=="],
"emoji-regex": ["emoji-regex@10.5.0", "", {}, "sha512-lb49vf1Xzfx080OKA0o6l8DQQpV+6Vg95zyCJX9VB/BqKYlhG7N4wgROUUHRA+ZPUefLnteQOad7z1kT2bV7bg=="],
@@ -1292,7 +2328,7 @@
"enhanced-resolve": ["enhanced-resolve@5.18.3", "", { "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.2.0" } }, "sha512-d4lC8xfavMeBjzGr2vECC3fsGXziXZQyJxD868h2M/mBI3PwAuODxAkLkq5HYuvrPYcUtiLzsTo8U3PgX3Ocww=="],
- "entities": ["entities@4.5.0", "", {}, "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="],
+ "entities": ["entities@6.0.1", "", {}, "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g=="],
"env-paths": ["env-paths@2.2.1", "", {}, "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A=="],
@@ -1302,6 +2338,8 @@
"errno": ["errno@0.1.8", "", { "dependencies": { "prr": "~1.0.1" }, "bin": { "errno": "cli.js" } }, "sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A=="],
+ "error-stack-parser-es": ["error-stack-parser-es@1.0.5", "", {}, "sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA=="],
+
"es-define-property": ["es-define-property@1.0.1", "", {}, "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g=="],
"es-errors": ["es-errors@1.3.0", "", {}, "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="],
@@ -1314,30 +2352,44 @@
"es6-error": ["es6-error@4.1.1", "", {}, "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg=="],
- "esbuild": ["esbuild@0.25.10", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.25.10", "@esbuild/android-arm": "0.25.10", "@esbuild/android-arm64": "0.25.10", "@esbuild/android-x64": "0.25.10", "@esbuild/darwin-arm64": "0.25.10", "@esbuild/darwin-x64": "0.25.10", "@esbuild/freebsd-arm64": "0.25.10", "@esbuild/freebsd-x64": "0.25.10", "@esbuild/linux-arm": "0.25.10", "@esbuild/linux-arm64": "0.25.10", "@esbuild/linux-ia32": "0.25.10", "@esbuild/linux-loong64": "0.25.10", "@esbuild/linux-mips64el": "0.25.10", "@esbuild/linux-ppc64": "0.25.10", "@esbuild/linux-riscv64": "0.25.10", "@esbuild/linux-s390x": "0.25.10", "@esbuild/linux-x64": "0.25.10", "@esbuild/netbsd-arm64": "0.25.10", "@esbuild/netbsd-x64": "0.25.10", "@esbuild/openbsd-arm64": "0.25.10", "@esbuild/openbsd-x64": "0.25.10", "@esbuild/openharmony-arm64": "0.25.10", "@esbuild/sunos-x64": "0.25.10", "@esbuild/win32-arm64": "0.25.10", "@esbuild/win32-ia32": "0.25.10", "@esbuild/win32-x64": "0.25.10" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-9RiGKvCwaqxO2owP61uQ4BgNborAQskMR6QusfWzQqv7AZOg5oGehdY2pRJMTKuwxd1IDBP4rSbI5lHzU7SMsQ=="],
+ "esbuild": ["esbuild@0.27.1", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.27.1", "@esbuild/android-arm": "0.27.1", "@esbuild/android-arm64": "0.27.1", "@esbuild/android-x64": "0.27.1", "@esbuild/darwin-arm64": "0.27.1", "@esbuild/darwin-x64": "0.27.1", "@esbuild/freebsd-arm64": "0.27.1", "@esbuild/freebsd-x64": "0.27.1", "@esbuild/linux-arm": "0.27.1", "@esbuild/linux-arm64": "0.27.1", "@esbuild/linux-ia32": "0.27.1", "@esbuild/linux-loong64": "0.27.1", "@esbuild/linux-mips64el": "0.27.1", "@esbuild/linux-ppc64": "0.27.1", "@esbuild/linux-riscv64": "0.27.1", "@esbuild/linux-s390x": "0.27.1", "@esbuild/linux-x64": "0.27.1", "@esbuild/netbsd-arm64": "0.27.1", "@esbuild/netbsd-x64": "0.27.1", "@esbuild/openbsd-arm64": "0.27.1", "@esbuild/openbsd-x64": "0.27.1", "@esbuild/openharmony-arm64": "0.27.1", "@esbuild/sunos-x64": "0.27.1", "@esbuild/win32-arm64": "0.27.1", "@esbuild/win32-ia32": "0.27.1", "@esbuild/win32-x64": "0.27.1" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-yY35KZckJJuVVPXpvjgxiCuVEJT67F6zDeVTv4rizyPrfGBUpZQsvmxnN+C371c2esD/hNMjj4tpBhuueLN7aA=="],
"esbuild-plugin-postcss2": ["esbuild-plugin-postcss2@0.1.2", "", { "dependencies": { "autoprefixer": "^10.2.5", "fs-extra": "^9.1.0", "less": "^4.x", "postcss": "8.x", "postcss-modules": "^4.0.0", "resolve-file": "^0.3.0", "sass": "^1.x", "stylus": "^0.x", "tmp": "^0.2.1" } }, "sha512-c+024wQrSDGrNKEhK9lrhYUIssdmqnPfcQPwOxnBOi667wZOshoKbdQ7w2a4slRN86AqLZYOkPsNMIvFH1sB8Q=="],
+ "esbuild-register": ["esbuild-register@3.6.0", "", { "dependencies": { "debug": "^4.3.4" }, "peerDependencies": { "esbuild": ">=0.12 <1" } }, "sha512-H2/S7Pm8a9CL1uhp9OvjwrBh5Pvx0H8qVOxNu8Wed9Y7qv56MPtq+GGM8RJpq6glYJn9Wspr8uw7l55uyinNeg=="],
+
"escalade": ["escalade@3.2.0", "", {}, "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA=="],
"escape-goat": ["escape-goat@4.0.0", "", {}, "sha512-2Sd4ShcWxbx6OY1IHyla/CVNwvg7XwZVoXZHcSu9w9SReNP1EzzD5T8NWKIR38fIqEns9kDWKUQTXXAmlDrdPg=="],
"escape-html": ["escape-html@1.0.3", "", {}, "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="],
- "escape-string-regexp": ["escape-string-regexp@2.0.0", "", {}, "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w=="],
+ "escape-string-regexp": ["escape-string-regexp@4.0.0", "", {}, "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA=="],
+
+ "esprima": ["esprima@4.0.1", "", { "bin": { "esparse": "./bin/esparse.js", "esvalidate": "./bin/esvalidate.js" } }, "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A=="],
"estree-util-is-identifier-name": ["estree-util-is-identifier-name@3.0.0", "", {}, "sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg=="],
+ "estree-walker": ["estree-walker@3.0.3", "", { "dependencies": { "@types/estree": "^1.0.0" } }, "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g=="],
+
+ "esutils": ["esutils@2.0.3", "", {}, "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g=="],
+
"etag": ["etag@1.8.1", "", {}, "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg=="],
"eventemitter3": ["eventemitter3@5.0.1", "", {}, "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA=="],
+ "events": ["events@3.3.0", "", {}, "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q=="],
+
"events-universal": ["events-universal@1.0.1", "", { "dependencies": { "bare-events": "^2.7.0" } }, "sha512-LUd5euvbMLpwOF8m6ivPCbhQeSiYVNb8Vs0fQ8QjXo0JTkEHpz8pxdQf0gStltaPpw0Cca8b39KxvK9cfKRiAw=="],
"eventsource": ["eventsource@3.0.7", "", { "dependencies": { "eventsource-parser": "^3.0.1" } }, "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA=="],
"eventsource-parser": ["eventsource-parser@3.0.6", "", {}, "sha512-Vo1ab+QXPzZ4tCa8SwIHJFaSzy4R6SHf7BY79rFBDf0idraZWAkYrDjDj8uWaSm3S2TK+hJ7/t1CEmZ7jXw+pg=="],
+ "evp_bytestokey": ["evp_bytestokey@1.0.3", "", { "dependencies": { "md5.js": "^1.3.4", "safe-buffer": "^5.1.1" } }, "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA=="],
+
+ "exa-js": ["exa-js@2.0.3", "", { "dependencies": { "cross-fetch": "~4.1.0", "dotenv": "~16.4.7", "openai": "^5.0.1", "zod": "^3.22.0", "zod-to-json-schema": "^3.20.0" } }, "sha512-21eDeo0RPWk7sApMfxKY3p4+d+UHP+5rV+R1SeGiGTPXKflretCyFB227WEZ/YbW9eLohRYT6HXwR7Pe17OzOg=="],
+
"execa": ["execa@9.6.0", "", { "dependencies": { "@sindresorhus/merge-streams": "^4.0.0", "cross-spawn": "^7.0.6", "figures": "^6.1.0", "get-stream": "^9.0.0", "human-signals": "^8.0.1", "is-plain-obj": "^4.1.0", "is-stream": "^4.0.1", "npm-run-path": "^6.0.0", "pretty-ms": "^9.2.0", "signal-exit": "^4.1.0", "strip-final-newline": "^4.0.0", "yoctocolors": "^2.1.1" } }, "sha512-jpWzZ1ZhwUmeWRhS7Qv3mhpOhLfwI+uAX4e5fOcXqwMR7EcJ0pj2kV1CVzHVMX/LphnKWD3LObjZCoJ71lKpHw=="],
"expand-tilde": ["expand-tilde@2.0.2", "", { "dependencies": { "homedir-polyfill": "^1.0.1" } }, "sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw=="],
@@ -1362,19 +2414,25 @@
"fast-fifo": ["fast-fifo@1.3.2", "", {}, "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ=="],
+ "fast-glob": ["fast-glob@3.3.3", "", { "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", "glob-parent": "^5.1.2", "merge2": "^1.3.0", "micromatch": "^4.0.8" } }, "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg=="],
+
"fast-json-stable-stringify": ["fast-json-stable-stringify@2.1.0", "", {}, "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw=="],
"fast-levenshtein": ["fast-levenshtein@2.0.6", "", {}, "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw=="],
"fast-uri": ["fast-uri@3.1.0", "", {}, "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA=="],
+ "fast-xml-parser": ["fast-xml-parser@5.2.5", "", { "dependencies": { "strnum": "^2.1.0" }, "bin": { "fxparser": "src/cli/cli.js" } }, "sha512-pfX9uG9Ki0yekDHx2SiuRIyFdyAr1kMIMitPvb0YBo8SUfKvia7w7FIyd/l6av85pFYRhZscS75MwMnbvY+hcQ=="],
+
+ "fastq": ["fastq@1.19.1", "", { "dependencies": { "reusify": "^1.0.4" } }, "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ=="],
+
"fault": ["fault@1.0.4", "", { "dependencies": { "format": "^0.2.0" } }, "sha512-CJ0HCB5tL5fYTEA7ToAq5+kTwd++Borf1/bifxd9iT70QcXr4MRrO3Llf8Ifs70q+SJcGHFtnIE/Nw6giCtECA=="],
"fd-slicer": ["fd-slicer@1.1.0", "", { "dependencies": { "pend": "~1.2.0" } }, "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g=="],
"fdir": ["fdir@6.5.0", "", { "peerDependencies": { "picomatch": "^3 || ^4" }, "optionalPeers": ["picomatch"] }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="],
- "fflate": ["fflate@0.8.2", "", {}, "sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A=="],
+ "fflate": ["fflate@0.4.8", "", {}, "sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA=="],
"figures": ["figures@6.1.0", "", { "dependencies": { "is-unicode-supported": "^2.0.0" } }, "sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg=="],
@@ -1394,10 +2452,14 @@
"find-pkg": ["find-pkg@0.1.2", "", { "dependencies": { "find-file-up": "^0.1.2" } }, "sha512-0rnQWcFwZr7eO0513HahrWafsc3CTFioEB7DRiEYCUM/70QXSY8f3mCST17HXLcPvEhzH/Ty/Bxd72ZZsr/yvw=="],
+ "find-up": ["find-up@7.0.0", "", { "dependencies": { "locate-path": "^7.2.0", "path-exists": "^5.0.0", "unicorn-magic": "^0.1.0" } }, "sha512-YyZM99iHrqLKjmt4LJDj58KI+fYyufRLBSYcqycxf//KpBk9FoewoGX0450m9nB44qrZnovzC2oeP5hUibxc/g=="],
+
"find-up-simple": ["find-up-simple@1.0.1", "", {}, "sha512-afd4O7zpqHeRyg4PfDQsXmlDe2PfdHtJt6Akt8jOWaApLOZk5JXs6VMR29lz03pRe9mpykrRCYIYxaJYcfpncQ=="],
"follow-redirects": ["follow-redirects@1.15.11", "", {}, "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ=="],
+ "for-each": ["for-each@0.3.5", "", { "dependencies": { "is-callable": "^1.2.7" } }, "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg=="],
+
"foreground-child": ["foreground-child@3.3.1", "", { "dependencies": { "cross-spawn": "^7.0.6", "signal-exit": "^4.0.1" } }, "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw=="],
"form-data": ["form-data@4.0.4", "", { "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", "es-set-tostringtag": "^2.1.0", "hasown": "^2.0.2", "mime-types": "^2.1.12" } }, "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow=="],
@@ -1412,6 +2474,8 @@
"fraction.js": ["fraction.js@4.3.7", "", {}, "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew=="],
+ "framer-motion": ["framer-motion@12.23.25", "", { "dependencies": { "motion-dom": "^12.23.23", "motion-utils": "^12.23.6", "tslib": "^2.4.0" }, "peerDependencies": { "@emotion/is-prop-valid": "*", "react": "^18.0.0 || ^19.0.0", "react-dom": "^18.0.0 || ^19.0.0" }, "optionalPeers": ["@emotion/is-prop-valid", "react", "react-dom"] }, "sha512-gUHGl2e4VG66jOcH0JHhuJQr6ZNwrET9g31ZG0xdXzT0CznP7fHX4P8Bcvuc4MiUB90ysNnWX2ukHRIggkl6hQ=="],
+
"fresh": ["fresh@2.0.0", "", {}, "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A=="],
"fs-exists-sync": ["fs-exists-sync@0.1.0", "", {}, "sha512-cR/vflFyPZtrN6b38ZyWxpWdhlXrzZEBawlpBQMq7033xVY7/kg0GDMBK5jg8lDYQckdJ5x/YC88lM3C7VMsLg=="],
@@ -1432,8 +2496,12 @@
"gcp-metadata": ["gcp-metadata@6.1.1", "", { "dependencies": { "gaxios": "^6.1.1", "google-logging-utils": "^0.0.2", "json-bigint": "^1.0.0" } }, "sha512-a4tiq7E0/5fTjxPAaH4jpjkSv/uCaU2p5KC6HVGrvl0cDjA8iBZv4vv1gyzlmK0ZUKqwpOyQMKzZQe3lTit77A=="],
+ "generator-function": ["generator-function@2.0.1", "", {}, "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g=="],
+
"generic-names": ["generic-names@4.0.0", "", { "dependencies": { "loader-utils": "^3.2.0" } }, "sha512-ySFolZQfw9FoDb3ed9d80Cm9f0+r7qj+HJkWjeD9RBfpxEVTlVhol+gvaQB/78WbwYfbnNh8nWHHBSlg072y6A=="],
+ "gensync": ["gensync@1.0.0-beta.2", "", {}, "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg=="],
+
"get-caller-file": ["get-caller-file@2.0.5", "", {}, "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="],
"get-east-asian-width": ["get-east-asian-width@1.4.0", "", {}, "sha512-QZjmEOC+IT1uk6Rx0sX22V6uHWVwbdbxf1faPqJ1QhLdGgsRGCZoyaQBm/piRdJy/D2um6hM1UP7ZEeQ4EkP+Q=="],
@@ -1448,8 +2516,12 @@
"get-tsconfig": ["get-tsconfig@4.10.1", "", { "dependencies": { "resolve-pkg-maps": "^1.0.0" } }, "sha512-auHyJ4AgMz7vgS8Hp3N6HXSmlMdUyhSUrfBF16w153rxtLIEOE+HGqaBppczZvnHLqQJfiHotCYpNhl0lUROFQ=="],
+ "gitdiff-parser": ["gitdiff-parser@0.3.1", "", {}, "sha512-YQJnY8aew65id8okGxKCksH3efDCJ9HzV7M9rsvd65habf39Pkh4cgYJ27AaoDMqo1X98pgNJhNMrm/kpV7UVQ=="],
+
"glob": ["glob@10.4.5", "", { "dependencies": { "foreground-child": "^3.1.0", "jackspeak": "^3.1.2", "minimatch": "^9.0.4", "minipass": "^7.1.2", "package-json-from-dist": "^1.0.0", "path-scurry": "^1.11.1" }, "bin": { "glob": "dist/esm/bin.mjs" } }, "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg=="],
+ "glob-parent": ["glob-parent@5.1.2", "", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="],
+
"global-agent": ["global-agent@3.0.0", "", { "dependencies": { "boolean": "^3.0.1", "es6-error": "^4.1.1", "matcher": "^3.0.0", "roarr": "^2.15.3", "semver": "^7.3.2", "serialize-error": "^7.0.1" } }, "sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q=="],
"global-directory": ["global-directory@4.0.1", "", { "dependencies": { "ini": "4.1.1" } }, "sha512-wHTUcDUoZ1H5/0iVqEudYW4/kAlN5cZ3j/bXn0Dpbizl9iaUVeWSHqiOjsgk6OW2bkLclbBjzewBz6weQ1zA2Q=="],
@@ -1460,6 +2532,8 @@
"globalthis": ["globalthis@1.0.4", "", { "dependencies": { "define-properties": "^1.2.1", "gopd": "^1.0.1" } }, "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ=="],
+ "globrex": ["globrex@0.1.2", "", {}, "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg=="],
+
"google-auth-library": ["google-auth-library@9.15.1", "", { "dependencies": { "base64-js": "^1.3.0", "ecdsa-sig-formatter": "^1.0.11", "gaxios": "^6.1.1", "gcp-metadata": "^6.1.0", "gtoken": "^7.0.0", "jws": "^4.0.0" } }, "sha512-Jb6Z0+nvECVz+2lzSMt9u98UsoakXxA2HGHMCxh+so3n90XgYWkq5dur19JAJV7ONiJY22yBTyJB1TSkvPq9Ng=="],
"google-logging-utils": ["google-logging-utils@0.0.2", "", {}, "sha512-NEgUnEcBiP5HrPzufUkBzJOD/Sxsco3rLNo1F1TNf7ieU8ryUzBhqba8r756CjLX7rn3fHl6iLEwPYuqpoKgQQ=="],
@@ -1472,10 +2546,18 @@
"gradient-string": ["gradient-string@2.0.2", "", { "dependencies": { "chalk": "^4.1.2", "tinygradient": "^1.1.5" } }, "sha512-rEDCuqUQ4tbD78TpzsMtt5OIf0cBCSDWSJtUDaF6JsAh+k0v9r++NzxNEG87oDZx9ZwGhD8DaezR2L/yrw0Jdw=="],
+ "graphql": ["graphql@16.12.0", "", {}, "sha512-DKKrynuQRne0PNpEbzuEdHlYOMksHSUI8Zc9Unei5gTsMNA2/vMpoMz/yKba50pejK56qj98qM0SjYxAKi13gQ=="],
+
"gtoken": ["gtoken@7.1.0", "", { "dependencies": { "gaxios": "^6.0.0", "jws": "^4.0.0" } }, "sha512-pCcEwRi+TKpMlxAQObHDQ56KawURgyAf6jtIY046fJ5tIv3zDe/LEIubckAO8fj6JnAxLdmWkUfNyulQ2iKdEw=="],
+ "gzip-size": ["gzip-size@6.0.0", "", { "dependencies": { "duplexer": "^0.1.2" } }, "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q=="],
+
+ "hachure-fill": ["hachure-fill@0.5.2", "", {}, "sha512-3GKBOn+m2LX9iq+JC1064cSFprJY4jL1jCXTcpnfER5HYE2l/4EfWSGzkPa/ZDBmYI0ZOEj5VHV/eKnPGkHuOg=="],
+
"handlebars": ["handlebars@4.7.8", "", { "dependencies": { "minimist": "^1.2.5", "neo-async": "^2.6.2", "source-map": "^0.6.1", "wordwrap": "^1.0.0" }, "optionalDependencies": { "uglify-js": "^3.1.4" }, "bin": { "handlebars": "bin/handlebars" } }, "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ=="],
+ "happy-dom": ["happy-dom@18.0.1", "", { "dependencies": { "@types/node": "^20.0.0", "@types/whatwg-mimetype": "^3.0.2", "whatwg-mimetype": "^3.0.0" } }, "sha512-qn+rKOW7KWpVTtgIUi6RVmTBZJSe2k0Db0vh1f7CWrWclkkc7/Q+FrOfkZIb2eiErLyqu5AXEzE7XthO9JVxRA=="],
+
"has-flag": ["has-flag@4.0.0", "", {}, "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="],
"has-property-descriptors": ["has-property-descriptors@1.0.2", "", { "dependencies": { "es-define-property": "^1.0.0" } }, "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg=="],
@@ -1484,24 +2566,40 @@
"has-tostringtag": ["has-tostringtag@1.0.2", "", { "dependencies": { "has-symbols": "^1.0.3" } }, "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw=="],
+ "hash-base": ["hash-base@3.0.5", "", { "dependencies": { "inherits": "^2.0.4", "safe-buffer": "^5.2.1" } }, "sha512-vXm0l45VbcHEVlTCzs8M+s0VeYsB2lnlAaThoLKGXr3bE/VWDOelNUnycUPEhKEaXARL2TEFjBOyUiM6+55KBg=="],
+
+ "hash.js": ["hash.js@1.1.7", "", { "dependencies": { "inherits": "^2.0.3", "minimalistic-assert": "^1.0.1" } }, "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA=="],
+
"hasown": ["hasown@2.0.2", "", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ=="],
+ "hast-util-from-parse5": ["hast-util-from-parse5@8.0.3", "", { "dependencies": { "@types/hast": "^3.0.0", "@types/unist": "^3.0.0", "devlop": "^1.0.0", "hastscript": "^9.0.0", "property-information": "^7.0.0", "vfile": "^6.0.0", "vfile-location": "^5.0.0", "web-namespaces": "^2.0.0" } }, "sha512-3kxEVkEKt0zvcZ3hCRYI8rqrgwtlIOFMWkbclACvjlDw8Li9S2hk/d51OI0nr/gIpdMHNepwgOKqZ/sy0Clpyg=="],
+
"hast-util-is-element": ["hast-util-is-element@3.0.0", "", { "dependencies": { "@types/hast": "^3.0.0" } }, "sha512-Val9mnv2IWpLbNPqc/pUem+a7Ipj2aHacCwgNfTiK0vJKl0LF+4Ba4+v1oPHFpf3bLYmreq0/l3Gud9S5OH42g=="],
"hast-util-parse-selector": ["hast-util-parse-selector@2.2.5", "", {}, "sha512-7j6mrk/qqkSehsM92wQjdIgWM2/BW61u/53G6xmC8i1OmEdKLHbk419QKQUjz6LglWsfqoiHmyMRkP1BGjecNQ=="],
+ "hast-util-raw": ["hast-util-raw@9.1.0", "", { "dependencies": { "@types/hast": "^3.0.0", "@types/unist": "^3.0.0", "@ungap/structured-clone": "^1.0.0", "hast-util-from-parse5": "^8.0.0", "hast-util-to-parse5": "^8.0.0", "html-void-elements": "^3.0.0", "mdast-util-to-hast": "^13.0.0", "parse5": "^7.0.0", "unist-util-position": "^5.0.0", "unist-util-visit": "^5.0.0", "vfile": "^6.0.0", "web-namespaces": "^2.0.0", "zwitch": "^2.0.0" } }, "sha512-Y8/SBAHkZGoNkpzqqfCldijcuUKh7/su31kEBp67cFY09Wy0mTRgtsLYsiIxMJxlu0f6AA5SUTbDR8K0rxnbUw=="],
+
+ "hast-util-sanitize": ["hast-util-sanitize@5.0.2", "", { "dependencies": { "@types/hast": "^3.0.0", "@ungap/structured-clone": "^1.0.0", "unist-util-position": "^5.0.0" } }, "sha512-3yTWghByc50aGS7JlGhk61SPenfE/p1oaFeNwkOOyrscaOkMGrcW9+Cy/QAIOBpZxP1yqDIzFMR0+Np0i0+usg=="],
+
"hast-util-to-jsx-runtime": ["hast-util-to-jsx-runtime@2.3.6", "", { "dependencies": { "@types/estree": "^1.0.0", "@types/hast": "^3.0.0", "@types/unist": "^3.0.0", "comma-separated-tokens": "^2.0.0", "devlop": "^1.0.0", "estree-util-is-identifier-name": "^3.0.0", "hast-util-whitespace": "^3.0.0", "mdast-util-mdx-expression": "^2.0.0", "mdast-util-mdx-jsx": "^3.0.0", "mdast-util-mdxjs-esm": "^2.0.0", "property-information": "^7.0.0", "space-separated-tokens": "^2.0.0", "style-to-js": "^1.0.0", "unist-util-position": "^5.0.0", "vfile-message": "^4.0.0" } }, "sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg=="],
+ "hast-util-to-parse5": ["hast-util-to-parse5@8.0.1", "", { "dependencies": { "@types/hast": "^3.0.0", "comma-separated-tokens": "^2.0.0", "devlop": "^1.0.0", "property-information": "^7.0.0", "space-separated-tokens": "^2.0.0", "web-namespaces": "^2.0.0", "zwitch": "^2.0.0" } }, "sha512-MlWT6Pjt4CG9lFCjiz4BH7l9wmrMkfkJYCxFwKQic8+RTZgWPuWxwAfjJElsXkex7DJjfSJsQIt931ilUgmwdA=="],
+
"hast-util-to-text": ["hast-util-to-text@4.0.2", "", { "dependencies": { "@types/hast": "^3.0.0", "@types/unist": "^3.0.0", "hast-util-is-element": "^3.0.0", "unist-util-find-after": "^5.0.0" } }, "sha512-KK6y/BN8lbaq654j7JgBydev7wuNMcID54lkRav1P0CaE1e47P72AWWPiGKXTJU271ooYzcvTAn/Zt0REnvc7A=="],
"hast-util-whitespace": ["hast-util-whitespace@3.0.0", "", { "dependencies": { "@types/hast": "^3.0.0" } }, "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw=="],
"hastscript": ["hastscript@6.0.0", "", { "dependencies": { "@types/hast": "^2.0.0", "comma-separated-tokens": "^1.0.0", "hast-util-parse-selector": "^2.0.0", "property-information": "^5.0.0", "space-separated-tokens": "^1.0.0" } }, "sha512-nDM6bvd7lIqDUiYEiu5Sl/+6ReP0BMk/2f4U/Rooccxkj0P5nm+acM5PrGJ/t5I8qPGiqZSE6hVAwZEdZIvP4w=="],
+ "headers-polyfill": ["headers-polyfill@4.0.3", "", {}, "sha512-IScLbePpkvO846sIwOtOTDjutRMWdXdJmXdMvk6gCBHxFO8d+QKOQedyZSxFTTFYRSmlgSTDtXqqq4pcenBXLQ=="],
+
"highlight.js": ["highlight.js@10.7.3", "", {}, "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A=="],
"highlightjs-vue": ["highlightjs-vue@1.0.0", "", {}, "sha512-PDEfEF102G23vHmPhLyPboFCD+BkMGu+GuJe2d9/eH4FsCwvgBpnc9n0pGE+ffKdph38s6foEZiEjdgHdzp+IA=="],
+ "hmac-drbg": ["hmac-drbg@1.0.1", "", { "dependencies": { "hash.js": "^1.0.3", "minimalistic-assert": "^1.0.0", "minimalistic-crypto-utils": "^1.0.1" } }, "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg=="],
+
"homedir-polyfill": ["homedir-polyfill@1.0.3", "", { "dependencies": { "parse-passwd": "^1.0.0" } }, "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA=="],
"hono": ["hono@4.9.9", "", {}, "sha512-Hxw4wT6zjJGZJdkJzAx9PyBdf7ZpxaTSA0NfxqjLghwMrLBX8p33hJBzoETRakF3UJu6OdNQBZAlNSkGqKFukw=="],
@@ -1510,10 +2608,14 @@
"hosted-git-info": ["hosted-git-info@4.1.0", "", { "dependencies": { "lru-cache": "^6.0.0" } }, "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA=="],
+ "html-escaper": ["html-escaper@2.0.2", "", {}, "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg=="],
+
"html-to-text": ["html-to-text@9.0.5", "", { "dependencies": { "@selderee/plugin-htmlparser2": "^0.11.0", "deepmerge": "^4.3.1", "dom-serializer": "^2.0.0", "htmlparser2": "^8.0.2", "selderee": "^0.11.0" } }, "sha512-qY60FjREgVZL03vJU6IfMV4GDjGBIoOyvuFdpBDIX9yTlDw0TjxVBQp+P8NvpdIXNJvfWBTNul7fsAQJq2FNpg=="],
"html-url-attributes": ["html-url-attributes@3.0.1", "", {}, "sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ=="],
+ "html-void-elements": ["html-void-elements@3.0.0", "", {}, "sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg=="],
+
"htmlparser2": ["htmlparser2@8.0.2", "", { "dependencies": { "domelementtype": "^2.3.0", "domhandler": "^5.0.3", "domutils": "^3.0.1", "entities": "^4.4.0" } }, "sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA=="],
"http-cache-semantics": ["http-cache-semantics@4.2.0", "", {}, "sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ=="],
@@ -1524,6 +2626,8 @@
"http2-wrapper": ["http2-wrapper@1.0.3", "", { "dependencies": { "quick-lru": "^5.1.1", "resolve-alpn": "^1.0.0" } }, "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg=="],
+ "https-browserify": ["https-browserify@1.0.0", "", {}, "sha512-J+FkSdyD+0mA0N+81tMotaRMfSL9SGi+xpD3T6YApKsc3bGSXJlfXri3VyFOeYkfLRQisDk1W+jIFFKBeUBbBg=="],
+
"https-proxy-agent": ["https-proxy-agent@7.0.6", "", { "dependencies": { "agent-base": "^7.1.2", "debug": "4" } }, "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw=="],
"human-signals": ["human-signals@8.0.1", "", {}, "sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ=="],
@@ -1542,12 +2646,18 @@
"ignore": ["ignore@7.0.5", "", {}, "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg=="],
- "image-size": ["image-size@0.5.5", "", { "bin": { "image-size": "bin/image-size.js" } }, "sha512-6TDAlDPZxUFCv+fuOkIoXT/V/f3Qbq8e37p+YOiYrUv3v9cc3/6x78VdfPgFVaB9dZYeLUfKgHRebpkm/oP2VQ=="],
+ "image-size": ["image-size@2.0.2", "", { "bin": { "image-size": "bin/image-size.js" } }, "sha512-IRqXKlaXwgSMAMtpNzZa1ZAe8m+Sa1770Dhk8VkSsP9LS+iHD62Zd8FQKs8fbPiagBE7BzoFX23cxFnwshpV6w=="],
+
+ "immediate": ["immediate@3.0.6", "", {}, "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ=="],
+
+ "immer": ["immer@10.2.0", "", {}, "sha512-d/+XTN3zfODyjr89gM3mPq1WNX2B8pYsu7eORitdwyA2sBubnTl3laYlBk4sXY5FUa5qTZGBDPJICVbvqzjlbw=="],
"immutable": ["immutable@5.1.3", "", {}, "sha512-+chQdDfvscSF1SJqv2gn4SRO2ZyS3xL3r7IW/wWEEzrzLisnOlKiQu5ytC/BVNcS15C39WT2Hg/bjKjDMcu+zg=="],
"import-in-the-middle": ["import-in-the-middle@1.14.4", "", { "dependencies": { "acorn": "^8.14.0", "acorn-import-attributes": "^1.9.5", "cjs-module-lexer": "^1.2.2", "module-details-from-path": "^1.0.3" } }, "sha512-eWjxh735SJLFJJDs5X82JQ2405OdJeAHDBnaoFCfdr5GVc7AWc9xU7KbrF+3Xd5F2ccP1aQFKtY+65X6EfKZ7A=="],
+ "importx": ["importx@0.5.2", "", { "dependencies": { "bundle-require": "^5.1.0", "debug": "^4.4.0", "esbuild": "^0.20.2 || ^0.21.0 || ^0.22.0 || ^0.23.0 || ^0.24.0 || ^0.25.0", "jiti": "^2.4.2", "pathe": "^2.0.3", "tsx": "^4.19.2" } }, "sha512-YEwlK86Ml5WiTxN/ECUYC5U7jd1CisAVw7ya4i9ZppBoHfFkT2+hChhr3PE2fYxUKLkNyivxEQpa5Ruil1LJBQ=="],
+
"imurmurhash": ["imurmurhash@0.1.4", "", {}, "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA=="],
"indent-string": ["indent-string@5.0.0", "", {}, "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg=="],
@@ -1572,6 +2682,8 @@
"inline-style-parser": ["inline-style-parser@0.2.4", "", {}, "sha512-0aO8FkhNZlj/ZIbNi7Lxxr12obT7cL1moPfE4tg1LkX7LlLfC6DeX4l2ZEud1ukP9jNQyNnfzQVqwbwmAATY4Q=="],
+ "internmap": ["internmap@1.0.1", "", {}, "sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw=="],
+
"ip-address": ["ip-address@10.0.1", "", {}, "sha512-NWv9YLW4PoW2B7xtzaS3NCot75m6nK7Icdv0o3lfMceJVRfSoQwqD4wEH5rLwoKJwUiZ/rfpiVBhnaF0FK4HoA=="],
"ipaddr.js": ["ipaddr.js@1.9.1", "", {}, "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g=="],
@@ -1580,8 +2692,12 @@
"is-alphanumerical": ["is-alphanumerical@1.0.4", "", { "dependencies": { "is-alphabetical": "^1.0.0", "is-decimal": "^1.0.0" } }, "sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A=="],
+ "is-arguments": ["is-arguments@1.2.0", "", { "dependencies": { "call-bound": "^1.0.2", "has-tostringtag": "^1.0.2" } }, "sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA=="],
+
"is-buffer": ["is-buffer@1.1.6", "", {}, "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w=="],
+ "is-callable": ["is-callable@1.2.7", "", {}, "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA=="],
+
"is-ci": ["is-ci@3.0.1", "", { "dependencies": { "ci-info": "^3.2.0" }, "bin": { "is-ci": "bin.js" } }, "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ=="],
"is-core-module": ["is-core-module@2.16.1", "", { "dependencies": { "hasown": "^2.0.2" } }, "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w=="],
@@ -1598,6 +2714,8 @@
"is-fullwidth-code-point": ["is-fullwidth-code-point@5.1.0", "", { "dependencies": { "get-east-asian-width": "^1.3.1" } }, "sha512-5XHYaSyiqADb4RnZ1Bdad6cPp8Toise4TzEjcOYDHZkTCbKgiUl7WTUCpNWHuxmDt91wnsZBc9xinNzopv3JMQ=="],
+ "is-generator-function": ["is-generator-function@1.1.2", "", { "dependencies": { "call-bound": "^1.0.4", "generator-function": "^2.0.0", "get-proto": "^1.0.1", "has-tostringtag": "^1.0.2", "safe-regex-test": "^1.1.0" } }, "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA=="],
+
"is-glob": ["is-glob@4.0.3", "", { "dependencies": { "is-extglob": "^2.1.1" } }, "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg=="],
"is-hexadecimal": ["is-hexadecimal@1.0.4", "", {}, "sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw=="],
@@ -1612,6 +2730,10 @@
"is-lambda": ["is-lambda@1.0.1", "", {}, "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ=="],
+ "is-nan": ["is-nan@1.3.2", "", { "dependencies": { "call-bind": "^1.0.0", "define-properties": "^1.1.3" } }, "sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w=="],
+
+ "is-node-process": ["is-node-process@1.2.0", "", {}, "sha512-Vg4o6/fqPxIjtxgUH5QLJhwZ7gW5diGCVlXpuUfELC62CuxM1iHcRe51f2W1FDy04Ai4KJkagKjx3XaqyfRKXw=="],
+
"is-npm": ["is-npm@6.1.0", "", {}, "sha512-O2z4/kNgyjhQwVR1Wpkbfc19JIhggF97NZNCpWTnjH7kVcZMUrnut9XSN7txI7VdyIYk5ZatOq3zvSuWpU8hoA=="],
"is-number": ["is-number@7.0.0", "", {}, "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng=="],
@@ -1620,10 +2742,16 @@
"is-plain-obj": ["is-plain-obj@4.1.0", "", {}, "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg=="],
+ "is-plain-object": ["is-plain-object@5.0.0", "", {}, "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q=="],
+
"is-promise": ["is-promise@4.0.0", "", {}, "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ=="],
+ "is-regex": ["is-regex@1.2.1", "", { "dependencies": { "call-bound": "^1.0.2", "gopd": "^1.2.0", "has-tostringtag": "^1.0.2", "hasown": "^2.0.2" } }, "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g=="],
+
"is-stream": ["is-stream@2.0.1", "", {}, "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg=="],
+ "is-typed-array": ["is-typed-array@1.1.15", "", { "dependencies": { "which-typed-array": "^1.1.16" } }, "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ=="],
+
"is-unicode-supported": ["is-unicode-supported@0.1.0", "", {}, "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw=="],
"is-what": ["is-what@3.14.1", "", {}, "sha512-sNxgpk9793nzSs7bA6JQJGeIuRBQhAaNGG77kzYQgMkrID+lS6SlK07K5LaptscDlSaIgH+GPFzf+d75FVxozA=="],
@@ -1638,13 +2766,21 @@
"isexe": ["isexe@2.0.0", "", {}, "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="],
+ "isomorphic-timers-promises": ["isomorphic-timers-promises@1.0.1", "", {}, "sha512-u4sej9B1LPSxTGKB/HiuzvEQnXH0ECYkSVQU39koSwmFAxhlEAFl9RdTvLv4TOTQUgBS5O3O5fwUxk6byBZ+IQ=="],
+
+ "isomorphic-ws": ["isomorphic-ws@5.0.0", "", { "peerDependencies": { "ws": "*" } }, "sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw=="],
+
+ "isomorphic.js": ["isomorphic.js@0.2.5", "", {}, "sha512-PIeMbHqMt4DnUP3MA/Flc0HElYjMXArsw1qwJZcm9sqR8mq3l8NYizFMty0pWwE/tzIGH3EKK5+jes5mAr85yw=="],
+
"jackspeak": ["jackspeak@3.4.3", "", { "dependencies": { "@isaacs/cliui": "^8.0.2" }, "optionalDependencies": { "@pkgjs/parseargs": "^0.11.0" } }, "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw=="],
"jake": ["jake@10.9.4", "", { "dependencies": { "async": "^3.2.6", "filelist": "^1.0.4", "picocolors": "^1.1.1" }, "bin": { "jake": "bin/cli.js" } }, "sha512-wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA=="],
"jiti": ["jiti@2.6.1", "", { "bin": { "jiti": "lib/jiti-cli.mjs" } }, "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ=="],
- "js-tokens": ["js-tokens@4.0.0", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="],
+ "jose": ["jose@6.1.3", "", {}, "sha512-0TpaTfihd4QMNwrz/ob2Bp7X04yuxJkjRGi4aKmOqwhov54i6u79oCv7T+C7lo70MKH6BesI3vscD1yb/yzKXQ=="],
+
+ "js-tokens": ["js-tokens@9.0.1", "", {}, "sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ=="],
"js-yaml": ["js-yaml@4.1.0", "", { "dependencies": { "argparse": "^2.0.1" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA=="],
@@ -1670,18 +2806,28 @@
"jsonwebtoken": ["jsonwebtoken@9.0.2", "", { "dependencies": { "jws": "^3.2.2", "lodash.includes": "^4.3.0", "lodash.isboolean": "^3.0.3", "lodash.isinteger": "^4.0.4", "lodash.isnumber": "^3.0.3", "lodash.isplainobject": "^4.0.6", "lodash.isstring": "^4.0.1", "lodash.once": "^4.0.0", "ms": "^2.1.1", "semver": "^7.5.4" } }, "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ=="],
+ "jszip": ["jszip@3.10.1", "", { "dependencies": { "lie": "~3.3.0", "pako": "~1.0.2", "readable-stream": "~2.3.6", "setimmediate": "^1.0.5" } }, "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g=="],
+
"jwa": ["jwa@1.4.2", "", { "dependencies": { "buffer-equal-constant-time": "^1.0.1", "ecdsa-sig-formatter": "1.0.11", "safe-buffer": "^5.0.1" } }, "sha512-eeH5JO+21J78qMvTIDdBXidBd6nG2kZjg5Ohz/1fpa28Z4CcsWUzJ1ZZyFq/3z3N17aZy+ZuBoHljASbL1WfOw=="],
"jws": ["jws@3.2.2", "", { "dependencies": { "jwa": "^1.4.1", "safe-buffer": "^5.0.1" } }, "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA=="],
+ "katex": ["katex@0.16.27", "", { "dependencies": { "commander": "^8.3.0" }, "bin": { "katex": "cli.js" } }, "sha512-aeQoDkuRWSqQN6nSvVCEFvfXdqo1OQiCmmW1kc9xSdjutPv7BGO7pqY9sQRJpMOGrEdfDgF2TfRXe5eUAD2Waw=="],
+
"keyv": ["keyv@4.5.4", "", { "dependencies": { "json-buffer": "3.0.1" } }, "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw=="],
+ "khroma": ["khroma@2.1.0", "", {}, "sha512-Ls993zuzfayK269Svk9hzpeGUKob/sIgZzyHYdjQoAdQetRKpOLj+k/QQQ/6Qi0Yz65mlROrfd+Ev+1+7dz9Kw=="],
+
"kind-of": ["kind-of@3.2.2", "", { "dependencies": { "is-buffer": "^1.1.5" } }, "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ=="],
"ky": ["ky@1.11.0", "", {}, "sha512-NEyo0ICpS0cqSuyoJFMCnHOZJILqXsKhIZlHJGDYaH8OB5IFrGzuBpEwyoMZG6gUKMPrazH30Ax5XKaujvD8ag=="],
+ "langium": ["langium@3.3.1", "", { "dependencies": { "chevrotain": "~11.0.3", "chevrotain-allstar": "~0.3.0", "vscode-languageserver": "~9.0.1", "vscode-languageserver-textdocument": "~1.0.11", "vscode-uri": "~3.0.8" } }, "sha512-QJv/h939gDpvT+9SiLVlY7tZC3xB2qK57v0J04Sh9wpMb6MP1q8gB21L3WIo8T5P1MSMg3Ep14L7KkDCFG3y4w=="],
+
"latest-version": ["latest-version@9.0.0", "", { "dependencies": { "package-json": "^10.0.0" } }, "sha512-7W0vV3rqv5tokqkBAFV1LbR7HPOWzXQDpDgEuib/aJ1jsZZx6x3c2mBI+TJhJzOhkGeaLbCKEHXEXLfirtG2JA=="],
+ "layout-base": ["layout-base@1.0.2", "", {}, "sha512-8h2oVEZNktL4BH2JCOI90iD1yXwL6iNW7KcCKT2QZgQJR2vbqDsldCTPRU9NifTCqHZci57XvQQ15YTu+sTYPg=="],
+
"lazy-cache": ["lazy-cache@2.0.2", "", { "dependencies": { "set-getter": "^0.1.0" } }, "sha512-7vp2Acd2+Kz4XkzxGxaB1FWOi8KjWIWsgdfD5MCb86DWvlLqhRPM+d6Pro3iNEL5VT9mstz5hKAlcd+QR6H3aA=="],
"lazy-val": ["lazy-val@1.0.5", "", {}, "sha512-0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q=="],
@@ -1690,6 +2836,12 @@
"less": ["less@4.4.1", "", { "dependencies": { "copy-anything": "^2.0.1", "parse-node-version": "^1.0.1", "tslib": "^2.3.0" }, "optionalDependencies": { "errno": "^0.1.1", "graceful-fs": "^4.1.2", "image-size": "~0.5.0", "make-dir": "^2.1.0", "mime": "^1.4.1", "needle": "^3.1.0", "source-map": "~0.6.0" }, "bin": { "lessc": "bin/lessc" } }, "sha512-X9HKyiXPi0f/ed0XhgUlBeFfxrlDP3xR4M7768Zl+WXLUViuL9AOPPJP4nCV0tgRWvTYvpNmN0SFhZOQzy16PA=="],
+ "lexical": ["lexical@0.32.1", "", {}, "sha512-Rvr9p00zUwzjXIqElIjMDyl/24QHw68yaqmXUWIT3lSdSAr8OpjSJK3iWBLZwVZwwpVhwShZRckomc+3vSb/zw=="],
+
+ "lib0": ["lib0@0.2.114", "", { "dependencies": { "isomorphic.js": "^0.2.4" }, "bin": { "0serve": "bin/0serve.js", "0gentesthtml": "bin/gentesthtml.js", "0ecdsa-generate-keypair": "bin/0ecdsa-generate-keypair.js" } }, "sha512-gcxmNFzA4hv8UYi8j43uPlQ7CGcyMJ2KQb5kZASw6SnAKAf10hK12i2fjrS3Cl/ugZa5Ui6WwIu1/6MIXiHttQ=="],
+
+ "lie": ["lie@3.3.0", "", { "dependencies": { "immediate": "~3.0.5" } }, "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ=="],
+
"lightningcss": ["lightningcss@1.30.1", "", { "dependencies": { "detect-libc": "^2.0.3" }, "optionalDependencies": { "lightningcss-darwin-arm64": "1.30.1", "lightningcss-darwin-x64": "1.30.1", "lightningcss-freebsd-x64": "1.30.1", "lightningcss-linux-arm-gnueabihf": "1.30.1", "lightningcss-linux-arm64-gnu": "1.30.1", "lightningcss-linux-arm64-musl": "1.30.1", "lightningcss-linux-x64-gnu": "1.30.1", "lightningcss-linux-x64-musl": "1.30.1", "lightningcss-win32-arm64-msvc": "1.30.1", "lightningcss-win32-x64-msvc": "1.30.1" } }, "sha512-xi6IyHML+c9+Q3W0S4fCQJOym42pyurFiJUHEcEyHS0CeKzia4yZDEsLlqOFykxOdHpNy0NmvVO31vcSqAxJCg=="],
"lightningcss-darwin-arm64": ["lightningcss-darwin-arm64@1.30.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-c8JK7hyE65X1MHMN+Viq9n11RRC7hgin3HhYKhrMyaXflk5GVplZ60IxyoVtzILeKr+xAJwg6zK6sjTBJ0FKYQ=="],
@@ -1712,12 +2864,20 @@
"lightningcss-win32-x64-msvc": ["lightningcss-win32-x64-msvc@1.30.1", "", { "os": "win32", "cpu": "x64" }, "sha512-PVqXh48wh4T53F/1CCu8PIPCxLzWyCnn/9T5W1Jpmdy5h9Cwd+0YQS6/LwhHXSafuc61/xg9Lv5OrCby6a++jg=="],
+ "load-tsconfig": ["load-tsconfig@0.2.5", "", {}, "sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg=="],
+
"loader-utils": ["loader-utils@3.3.1", "", {}, "sha512-FMJTLMXfCLMLfJxcX9PFqX5qD88Z5MRGaZCVzfuqeZSPsyiBzs+pahDQjbIWz2QIzPZz0NX9Zy4FX3lmK6YHIg=="],
+ "locate-path": ["locate-path@7.2.0", "", { "dependencies": { "p-locate": "^6.0.0" } }, "sha512-gvVijfZvn7R+2qyPX8mAuKcFGDf6Nc61GdvGafQsHL0sBIxfKzA+usWn4GFC/bk+QdwPUD4kWFJLhElipq+0VA=="],
+
"lodash": ["lodash@4.17.21", "", {}, "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="],
+ "lodash-es": ["lodash-es@4.17.21", "", {}, "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw=="],
+
"lodash.camelcase": ["lodash.camelcase@4.3.0", "", {}, "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA=="],
+ "lodash.debounce": ["lodash.debounce@4.0.8", "", {}, "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow=="],
+
"lodash.includes": ["lodash.includes@4.3.0", "", {}, "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w=="],
"lodash.isboolean": ["lodash.isboolean@3.0.3", "", {}, "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg=="],
@@ -1740,13 +2900,17 @@
"loose-envify": ["loose-envify@1.4.0", "", { "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" }, "bin": { "loose-envify": "cli.js" } }, "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q=="],
+ "loupe": ["loupe@3.2.1", "", {}, "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ=="],
+
"lowercase-keys": ["lowercase-keys@2.0.0", "", {}, "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA=="],
"lowlight": ["lowlight@1.20.0", "", { "dependencies": { "fault": "^1.0.0", "highlight.js": "~10.7.0" } }, "sha512-8Ktj+prEb1RoCPkEOrPMYUN/nCggB7qAWe3a7OpMjWQkh3l2RD5wKRQ+o8Q8YuI9RG/xs95waaI/E6ym/7NsTw=="],
"lru-cache": ["lru-cache@6.0.0", "", { "dependencies": { "yallist": "^4.0.0" } }, "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA=="],
- "lucide-react": ["lucide-react@0.544.0", "", { "peerDependencies": { "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-t5tS44bqd825zAW45UQxpG2CvcC4urOwn2TrwSH8u+MjeE+1NnWl6QqeQ/6NdjMqdOygyiT9p3Ev0p1NJykxjw=="],
+ "lucide-react": ["lucide-react@0.507.0", "", { "peerDependencies": { "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-XfgE6gvAHwAtnbUvWiTTHx4S3VGR+cUJHEc0vrh9Ogu672I1Tue2+Cp/8JJqpytgcBHAB1FVI297W4XGNwc2dQ=="],
+
+ "lz-string": ["lz-string@1.5.0", "", { "bin": { "lz-string": "bin/bin.js" } }, "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ=="],
"magic-string": ["magic-string@0.30.19", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-2N21sPY9Ws53PZvsEpVtNuSW+ScYbQdp4b9qUaL+9QkHUrGFKo56Lg9Emg5s9V/qrtNBmiR01sYhUOwu3H+VOw=="],
@@ -1754,6 +2918,8 @@
"make-fetch-happen": ["make-fetch-happen@10.2.1", "", { "dependencies": { "agentkeepalive": "^4.2.1", "cacache": "^16.1.0", "http-cache-semantics": "^4.1.0", "http-proxy-agent": "^5.0.0", "https-proxy-agent": "^5.0.0", "is-lambda": "^1.0.1", "lru-cache": "^7.7.1", "minipass": "^3.1.6", "minipass-collect": "^1.0.2", "minipass-fetch": "^2.0.3", "minipass-flush": "^1.0.5", "minipass-pipeline": "^1.2.4", "negotiator": "^0.6.3", "promise-retry": "^2.0.1", "socks-proxy-agent": "^7.0.0", "ssri": "^9.0.0" } }, "sha512-NgOPbRiaQM10DYXvN3/hhGVI2M5MtITFryzBGxHM5p4wnFxsVCbxkrBrDsk+EZ5OB4jEOT7AjDxtdF+KVEFT7w=="],
+ "markdown-table": ["markdown-table@3.0.4", "", {}, "sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw=="],
+
"marked": ["marked@16.3.0", "", { "bin": { "marked": "bin/marked.js" } }, "sha512-K3UxuKu6l6bmA5FUwYho8CfJBlsUWAooKtdGgMcERSpF7gcBUrCGsLH7wDaaNOzwq18JzSUDyoEb/YsrqMac3w=="],
"marked-terminal": ["marked-terminal@7.3.0", "", { "dependencies": { "ansi-escapes": "^7.0.0", "ansi-regex": "^6.1.0", "chalk": "^5.4.1", "cli-highlight": "^2.1.11", "cli-table3": "^0.6.5", "node-emoji": "^2.2.0", "supports-hyperlinks": "^3.1.0" }, "peerDependencies": { "marked": ">=1 <16" } }, "sha512-t4rBvPsHc57uE/2nJOLmMbZCQ4tgAccAED3ngXQqW6g+TxA488JzJ+FK3lQkzBQOI1mRV/r/Kq+1ZlJ4D0owQw=="],
@@ -1762,8 +2928,24 @@
"math-intrinsics": ["math-intrinsics@1.1.0", "", {}, "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g=="],
+ "md5.js": ["md5.js@1.3.5", "", { "dependencies": { "hash-base": "^3.0.0", "inherits": "^2.0.1", "safe-buffer": "^5.1.2" } }, "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg=="],
+
+ "mdast-util-find-and-replace": ["mdast-util-find-and-replace@3.0.2", "", { "dependencies": { "@types/mdast": "^4.0.0", "escape-string-regexp": "^5.0.0", "unist-util-is": "^6.0.0", "unist-util-visit-parents": "^6.0.0" } }, "sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg=="],
+
"mdast-util-from-markdown": ["mdast-util-from-markdown@2.0.2", "", { "dependencies": { "@types/mdast": "^4.0.0", "@types/unist": "^3.0.0", "decode-named-character-reference": "^1.0.0", "devlop": "^1.0.0", "mdast-util-to-string": "^4.0.0", "micromark": "^4.0.0", "micromark-util-decode-numeric-character-reference": "^2.0.0", "micromark-util-decode-string": "^2.0.0", "micromark-util-normalize-identifier": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0", "unist-util-stringify-position": "^4.0.0" } }, "sha512-uZhTV/8NBuw0WHkPTrCqDOl0zVe1BIng5ZtHoDk49ME1qqcjYmmLmOf0gELgcRMxN4w2iuIeVso5/6QymSrgmA=="],
+ "mdast-util-gfm": ["mdast-util-gfm@3.1.0", "", { "dependencies": { "mdast-util-from-markdown": "^2.0.0", "mdast-util-gfm-autolink-literal": "^2.0.0", "mdast-util-gfm-footnote": "^2.0.0", "mdast-util-gfm-strikethrough": "^2.0.0", "mdast-util-gfm-table": "^2.0.0", "mdast-util-gfm-task-list-item": "^2.0.0", "mdast-util-to-markdown": "^2.0.0" } }, "sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ=="],
+
+ "mdast-util-gfm-autolink-literal": ["mdast-util-gfm-autolink-literal@2.0.1", "", { "dependencies": { "@types/mdast": "^4.0.0", "ccount": "^2.0.0", "devlop": "^1.0.0", "mdast-util-find-and-replace": "^3.0.0", "micromark-util-character": "^2.0.0" } }, "sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ=="],
+
+ "mdast-util-gfm-footnote": ["mdast-util-gfm-footnote@2.1.0", "", { "dependencies": { "@types/mdast": "^4.0.0", "devlop": "^1.1.0", "mdast-util-from-markdown": "^2.0.0", "mdast-util-to-markdown": "^2.0.0", "micromark-util-normalize-identifier": "^2.0.0" } }, "sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ=="],
+
+ "mdast-util-gfm-strikethrough": ["mdast-util-gfm-strikethrough@2.0.0", "", { "dependencies": { "@types/mdast": "^4.0.0", "mdast-util-from-markdown": "^2.0.0", "mdast-util-to-markdown": "^2.0.0" } }, "sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg=="],
+
+ "mdast-util-gfm-table": ["mdast-util-gfm-table@2.0.0", "", { "dependencies": { "@types/mdast": "^4.0.0", "devlop": "^1.0.0", "markdown-table": "^3.0.0", "mdast-util-from-markdown": "^2.0.0", "mdast-util-to-markdown": "^2.0.0" } }, "sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg=="],
+
+ "mdast-util-gfm-task-list-item": ["mdast-util-gfm-task-list-item@2.0.0", "", { "dependencies": { "@types/mdast": "^4.0.0", "devlop": "^1.0.0", "mdast-util-from-markdown": "^2.0.0", "mdast-util-to-markdown": "^2.0.0" } }, "sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ=="],
+
"mdast-util-mdx-expression": ["mdast-util-mdx-expression@2.0.1", "", { "dependencies": { "@types/estree-jsx": "^1.0.0", "@types/hast": "^3.0.0", "@types/mdast": "^4.0.0", "devlop": "^1.0.0", "mdast-util-from-markdown": "^2.0.0", "mdast-util-to-markdown": "^2.0.0" } }, "sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ=="],
"mdast-util-mdx-jsx": ["mdast-util-mdx-jsx@3.2.0", "", { "dependencies": { "@types/estree-jsx": "^1.0.0", "@types/hast": "^3.0.0", "@types/mdast": "^4.0.0", "@types/unist": "^3.0.0", "ccount": "^2.0.0", "devlop": "^1.1.0", "mdast-util-from-markdown": "^2.0.0", "mdast-util-to-markdown": "^2.0.0", "parse-entities": "^4.0.0", "stringify-entities": "^4.0.0", "unist-util-stringify-position": "^4.0.0", "vfile-message": "^4.0.0" } }, "sha512-lj/z8v0r6ZtsN/cGNNtemmmfoLAFZnjMbNyLzBafjzikOM+glrjNHPlf6lQDOTccj9n5b0PPihEBbhneMyGs1Q=="],
@@ -1782,10 +2964,28 @@
"merge-descriptors": ["merge-descriptors@2.0.0", "", {}, "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g=="],
+ "merge2": ["merge2@1.4.1", "", {}, "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg=="],
+
+ "mermaid": ["mermaid@11.12.2", "", { "dependencies": { "@braintree/sanitize-url": "^7.1.1", "@iconify/utils": "^3.0.1", "@mermaid-js/parser": "^0.6.3", "@types/d3": "^7.4.3", "cytoscape": "^3.29.3", "cytoscape-cose-bilkent": "^4.1.0", "cytoscape-fcose": "^2.2.0", "d3": "^7.9.0", "d3-sankey": "^0.12.3", "dagre-d3-es": "7.0.13", "dayjs": "^1.11.18", "dompurify": "^3.2.5", "katex": "^0.16.22", "khroma": "^2.1.0", "lodash-es": "^4.17.21", "marked": "^16.2.1", "roughjs": "^4.6.6", "stylis": "^4.3.6", "ts-dedent": "^2.2.0", "uuid": "^11.1.0" } }, "sha512-n34QPDPEKmaeCG4WDMGy0OT6PSyxKCfy2pJgShP+Qow2KLrvWjclwbc3yXfSIf4BanqWEhQEpngWwNp/XhZt6w=="],
+
"micromark": ["micromark@4.0.2", "", { "dependencies": { "@types/debug": "^4.0.0", "debug": "^4.0.0", "decode-named-character-reference": "^1.0.0", "devlop": "^1.0.0", "micromark-core-commonmark": "^2.0.0", "micromark-factory-space": "^2.0.0", "micromark-util-character": "^2.0.0", "micromark-util-chunked": "^2.0.0", "micromark-util-combine-extensions": "^2.0.0", "micromark-util-decode-numeric-character-reference": "^2.0.0", "micromark-util-encode": "^2.0.0", "micromark-util-normalize-identifier": "^2.0.0", "micromark-util-resolve-all": "^2.0.0", "micromark-util-sanitize-uri": "^2.0.0", "micromark-util-subtokenize": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA=="],
"micromark-core-commonmark": ["micromark-core-commonmark@2.0.3", "", { "dependencies": { "decode-named-character-reference": "^1.0.0", "devlop": "^1.0.0", "micromark-factory-destination": "^2.0.0", "micromark-factory-label": "^2.0.0", "micromark-factory-space": "^2.0.0", "micromark-factory-title": "^2.0.0", "micromark-factory-whitespace": "^2.0.0", "micromark-util-character": "^2.0.0", "micromark-util-chunked": "^2.0.0", "micromark-util-classify-character": "^2.0.0", "micromark-util-html-tag-name": "^2.0.0", "micromark-util-normalize-identifier": "^2.0.0", "micromark-util-resolve-all": "^2.0.0", "micromark-util-subtokenize": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg=="],
+ "micromark-extension-gfm": ["micromark-extension-gfm@3.0.0", "", { "dependencies": { "micromark-extension-gfm-autolink-literal": "^2.0.0", "micromark-extension-gfm-footnote": "^2.0.0", "micromark-extension-gfm-strikethrough": "^2.0.0", "micromark-extension-gfm-table": "^2.0.0", "micromark-extension-gfm-tagfilter": "^2.0.0", "micromark-extension-gfm-task-list-item": "^2.0.0", "micromark-util-combine-extensions": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w=="],
+
+ "micromark-extension-gfm-autolink-literal": ["micromark-extension-gfm-autolink-literal@2.1.0", "", { "dependencies": { "micromark-util-character": "^2.0.0", "micromark-util-sanitize-uri": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw=="],
+
+ "micromark-extension-gfm-footnote": ["micromark-extension-gfm-footnote@2.1.0", "", { "dependencies": { "devlop": "^1.0.0", "micromark-core-commonmark": "^2.0.0", "micromark-factory-space": "^2.0.0", "micromark-util-character": "^2.0.0", "micromark-util-normalize-identifier": "^2.0.0", "micromark-util-sanitize-uri": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw=="],
+
+ "micromark-extension-gfm-strikethrough": ["micromark-extension-gfm-strikethrough@2.1.0", "", { "dependencies": { "devlop": "^1.0.0", "micromark-util-chunked": "^2.0.0", "micromark-util-classify-character": "^2.0.0", "micromark-util-resolve-all": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw=="],
+
+ "micromark-extension-gfm-table": ["micromark-extension-gfm-table@2.1.1", "", { "dependencies": { "devlop": "^1.0.0", "micromark-factory-space": "^2.0.0", "micromark-util-character": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg=="],
+
+ "micromark-extension-gfm-tagfilter": ["micromark-extension-gfm-tagfilter@2.0.0", "", { "dependencies": { "micromark-util-types": "^2.0.0" } }, "sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg=="],
+
+ "micromark-extension-gfm-task-list-item": ["micromark-extension-gfm-task-list-item@2.1.0", "", { "dependencies": { "devlop": "^1.0.0", "micromark-factory-space": "^2.0.0", "micromark-util-character": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw=="],
+
"micromark-factory-destination": ["micromark-factory-destination@2.0.1", "", { "dependencies": { "micromark-util-character": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA=="],
"micromark-factory-label": ["micromark-factory-label@2.0.1", "", { "dependencies": { "devlop": "^1.0.0", "micromark-util-character": "^2.0.0", "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg=="],
@@ -1826,21 +3026,31 @@
"micromatch": ["micromatch@4.0.8", "", { "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" } }, "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA=="],
+ "miller-rabin": ["miller-rabin@4.0.1", "", { "dependencies": { "bn.js": "^4.0.0", "brorand": "^1.0.1" }, "bin": { "miller-rabin": "bin/miller-rabin" } }, "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA=="],
+
"mime": ["mime@1.6.0", "", { "bin": { "mime": "cli.js" } }, "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="],
- "mime-db": ["mime-db@1.54.0", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="],
+ "mime-db": ["mime-db@1.52.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="],
- "mime-types": ["mime-types@3.0.1", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA=="],
+ "mime-types": ["mime-types@2.1.35", "", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="],
"mimic-fn": ["mimic-fn@2.1.0", "", {}, "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg=="],
"mimic-response": ["mimic-response@3.1.0", "", {}, "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ=="],
+ "min-indent": ["min-indent@1.0.1", "", {}, "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg=="],
+
+ "mini-svg-data-uri": ["mini-svg-data-uri@1.4.4", "", { "bin": { "mini-svg-data-uri": "cli.js" } }, "sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg=="],
+
+ "minimalistic-assert": ["minimalistic-assert@1.0.1", "", {}, "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A=="],
+
+ "minimalistic-crypto-utils": ["minimalistic-crypto-utils@1.0.1", "", {}, "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg=="],
+
"minimatch": ["minimatch@10.0.3", "", { "dependencies": { "@isaacs/brace-expansion": "^5.0.0" } }, "sha512-IPZ167aShDZZUMdRk66cyQAW3qr0WzbHkPdMYa8bzZhlHhO3jALbKdxcaak7W9FfT2rZNpQuUu4Od7ILEpXSaw=="],
"minimist": ["minimist@1.2.8", "", {}, "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA=="],
- "minipass": ["minipass@7.1.2", "", {}, "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw=="],
+ "minipass": ["minipass@5.0.0", "", {}, "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ=="],
"minipass-collect": ["minipass-collect@1.0.2", "", { "dependencies": { "minipass": "^3.0.0" } }, "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA=="],
@@ -1852,16 +3062,30 @@
"minipass-sized": ["minipass-sized@1.0.3", "", { "dependencies": { "minipass": "^3.0.0" } }, "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g=="],
- "minizlib": ["minizlib@3.1.0", "", { "dependencies": { "minipass": "^7.1.2" } }, "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw=="],
+ "minizlib": ["minizlib@2.1.2", "", { "dependencies": { "minipass": "^3.0.0", "yallist": "^4.0.0" } }, "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg=="],
"mkdirp": ["mkdirp@1.0.4", "", { "bin": { "mkdirp": "bin/cmd.js" } }, "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw=="],
+ "mlly": ["mlly@1.8.0", "", { "dependencies": { "acorn": "^8.15.0", "pathe": "^2.0.3", "pkg-types": "^1.3.1", "ufo": "^1.6.1" } }, "sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g=="],
+
"mnemonist": ["mnemonist@0.40.3", "", { "dependencies": { "obliterator": "^2.0.4" } }, "sha512-Vjyr90sJ23CKKH/qPAgUKicw/v6pRoamxIEDFOF8uSgFME7DqPRpHgRTejWVjkdGg5dXj0/NyxZHZ9bcjH+2uQ=="],
+ "module-alias": ["module-alias@2.2.3", "", {}, "sha512-23g5BFj4zdQL/b6tor7Ji+QY4pEfNH784BMslY9Qb0UnJWRAt+lQGLYmRaM0KDBwIG23ffEBELhZDP2rhi9f/Q=="],
+
"module-details-from-path": ["module-details-from-path@1.0.4", "", {}, "sha512-EGWKgxALGMgzvxYF1UyGTy0HXX/2vHLkw6+NvDKW2jypWbHpjQuj4UMcqQWXHERJhVGKikolT06G3bcKe4fi7w=="],
+ "motion-dom": ["motion-dom@12.23.23", "", { "dependencies": { "motion-utils": "^12.23.6" } }, "sha512-n5yolOs0TQQBRUFImrRfs/+6X4p3Q4n1dUEqt/H58Vx7OW6RF+foWEgmTVDhIWJIMXOuNNL0apKH2S16en9eiA=="],
+
+ "motion-utils": ["motion-utils@12.23.6", "", {}, "sha512-eAWoPgr4eFEOFfg2WjIsMoqJTW6Z8MTUCgn/GZ3VRpClWBdnbjryiA3ZSNLyxCTmCQx4RmYX6jX1iWHbenUPNQ=="],
+
+ "mrmime": ["mrmime@2.0.1", "", {}, "sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ=="],
+
"ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="],
+ "msw": ["msw@2.12.2", "", { "dependencies": { "@inquirer/confirm": "^5.0.0", "@mswjs/interceptors": "^0.40.0", "@open-draft/deferred-promise": "^2.2.0", "@types/statuses": "^2.0.4", "cookie": "^1.0.2", "graphql": "^16.8.1", "headers-polyfill": "^4.0.2", "is-node-process": "^1.2.0", "outvariant": "^1.4.3", "path-to-regexp": "^6.3.0", "picocolors": "^1.1.1", "rettime": "^0.7.0", "statuses": "^2.0.2", "strict-event-emitter": "^0.5.1", "tough-cookie": "^6.0.0", "type-fest": "^4.26.1", "until-async": "^3.0.2", "yargs": "^17.7.2" }, "peerDependencies": { "typescript": ">= 4.8.x" }, "optionalPeers": ["typescript"], "bin": { "msw": "cli/index.js" } }, "sha512-Fsr8AR5Yu6C0thoWa1Z8qGBFQLDvLsWlAn/v3CNLiUizoRqBYArK3Ex3thXpMWRr1Li5/MKLOEZ5mLygUmWi1A=="],
+
+ "mute-stream": ["mute-stream@2.0.0", "", {}, "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA=="],
+
"mz": ["mz@2.7.0", "", { "dependencies": { "any-promise": "^1.0.0", "object-assign": "^4.0.1", "thenify-all": "^1.0.0" } }, "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q=="],
"nan": ["nan@2.23.0", "", {}, "sha512-1UxuyYGdoQHcGg87Lkqm3FzefucTa0NAiOcuRsDmysep3c1LVCRK2krrUDafMWtjSG04htvAmvg96+SDknOmgQ=="],
@@ -1874,6 +3098,12 @@
"neo-async": ["neo-async@2.6.2", "", {}, "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw=="],
+ "next": ["next@15.4.8", "", { "dependencies": { "@next/env": "15.4.8", "@swc/helpers": "0.5.15", "caniuse-lite": "^1.0.30001579", "postcss": "8.4.31", "styled-jsx": "5.1.6" }, "optionalDependencies": { "@next/swc-darwin-arm64": "15.4.8", "@next/swc-darwin-x64": "15.4.8", "@next/swc-linux-arm64-gnu": "15.4.8", "@next/swc-linux-arm64-musl": "15.4.8", "@next/swc-linux-x64-gnu": "15.4.8", "@next/swc-linux-x64-musl": "15.4.8", "@next/swc-win32-arm64-msvc": "15.4.8", "@next/swc-win32-x64-msvc": "15.4.8", "sharp": "^0.34.3" }, "peerDependencies": { "@opentelemetry/api": "^1.1.0", "@playwright/test": "^1.51.1", "babel-plugin-react-compiler": "*", "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", "sass": "^1.3.0" }, "optionalPeers": ["@opentelemetry/api", "@playwright/test", "babel-plugin-react-compiler", "sass"], "bin": { "next": "dist/bin/next" } }, "sha512-jwOXTz/bo0Pvlf20FSb6VXVeWRssA2vbvq9SdrOPEg9x8E1B27C2rQtvriAn600o9hH61kjrVRexEffv3JybuA=="],
+
+ "next-auth": ["next-auth@5.0.0-beta.28", "", { "dependencies": { "@auth/core": "0.39.1" }, "peerDependencies": { "@simplewebauthn/browser": "^9.0.1", "@simplewebauthn/server": "^9.0.2", "next": "^14.0.0-0 || ^15.0.0-0", "nodemailer": "^6.6.5", "react": "^18.2.0 || ^19.0.0-0" }, "optionalPeers": ["@simplewebauthn/browser", "@simplewebauthn/server", "nodemailer"] }, "sha512-2RDR1h3DJb4nizcd5UBBwC2gtyP7j/jTvVLvEtDaFSKUWNfou3Gek2uTNHSga/Q4I/GF+OJobA4mFbRaWJgIDQ=="],
+
+ "next-themes": ["next-themes@0.4.6", "", { "peerDependencies": { "react": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc", "react-dom": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc" } }, "sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA=="],
+
"node-abi": ["node-abi@3.78.0", "", { "dependencies": { "semver": "^7.3.5" } }, "sha512-E2wEyrgX/CqvicaQYU3Ze1PFGjc4QYPGsjUrlYkqAE0WjHEZwgOsGMPMzkMse4LjJbDmaEuDX3CM036j5K2DSQ=="],
"node-addon-api": ["node-addon-api@7.1.1", "", {}, "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ=="],
@@ -1888,6 +3118,8 @@
"node-releases": ["node-releases@2.0.23", "", {}, "sha512-cCmFDMSm26S6tQSDpBCg/NR8NENrVPhAJSf+XbxBG4rPFaaonlEoE9wHQmun+cls499TQGSb7ZyPBRlzgKfpeg=="],
+ "node-stdlib-browser": ["node-stdlib-browser@1.3.1", "", { "dependencies": { "assert": "^2.0.0", "browser-resolve": "^2.0.0", "browserify-zlib": "^0.2.0", "buffer": "^5.7.1", "console-browserify": "^1.1.0", "constants-browserify": "^1.0.0", "create-require": "^1.1.1", "crypto-browserify": "^3.12.1", "domain-browser": "4.22.0", "events": "^3.0.0", "https-browserify": "^1.0.0", "isomorphic-timers-promises": "^1.0.1", "os-browserify": "^0.3.0", "path-browserify": "^1.0.1", "pkg-dir": "^5.0.0", "process": "^0.11.10", "punycode": "^1.4.1", "querystring-es3": "^0.2.1", "readable-stream": "^3.6.0", "stream-browserify": "^3.0.0", "stream-http": "^3.2.0", "string_decoder": "^1.0.0", "timers-browserify": "^2.0.4", "tty-browserify": "0.0.1", "url": "^0.11.4", "util": "^0.12.4", "vm-browserify": "^1.0.1" } }, "sha512-X75ZN8DCLftGM5iKwoYLA3rjnrAEs97MkzvSd4q2746Tgpg8b8XWiBGiBG4ZpgcAqBgtgPHTiAc8ZMCvZuikDw=="],
+
"nopt": ["nopt@6.0.0", "", { "dependencies": { "abbrev": "^1.0.0" }, "bin": { "nopt": "bin/nopt.js" } }, "sha512-ZwLpbTgdhuZUnZzjd7nb1ZV+4DoiC6/sfiVKok72ym/4Tlf+DFdlHYmT2JPmcNNWV6Pi3SDf1kT+A4r9RTuT9g=="],
"normalize-package-data": ["normalize-package-data@6.0.2", "", { "dependencies": { "hosted-git-info": "^7.0.0", "semver": "^7.3.5", "validate-npm-package-license": "^3.0.4" } }, "sha512-V6gygoYb/5EmNI+MEGrWkC+e6+Rr7mTmfHrxDbLzxQogBkgzo76rkok0Am6thgSF7Mv2nLOajAJj5vDJZEFn7g=="],
@@ -1898,14 +3130,22 @@
"npm-run-path": ["npm-run-path@6.0.0", "", { "dependencies": { "path-key": "^4.0.0", "unicorn-magic": "^0.3.0" } }, "sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA=="],
+ "oauth4webapi": ["oauth4webapi@3.8.3", "", {}, "sha512-pQ5BsX3QRTgnt5HxgHwgunIRaDXBdkT23tf8dfzmtTIL2LTpdmxgbpbBm0VgFWAIDlezQvQCTgnVIUmHupXHxw=="],
+
"object-assign": ["object-assign@4.1.1", "", {}, "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg=="],
"object-inspect": ["object-inspect@1.13.4", "", {}, "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew=="],
+ "object-is": ["object-is@1.1.6", "", { "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1" } }, "sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q=="],
+
"object-keys": ["object-keys@1.1.1", "", {}, "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA=="],
+ "object.assign": ["object.assign@4.1.7", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.3", "define-properties": "^1.2.1", "es-object-atoms": "^1.0.0", "has-symbols": "^1.1.0", "object-keys": "^1.1.1" } }, "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw=="],
+
"obliterator": ["obliterator@2.0.5", "", {}, "sha512-42CPE9AhahZRsMNslczq0ctAEtqk8Eka26QofnqC346BZdHDySk3LWka23LI7ULIw11NmltpiLagIq8gBozxTw=="],
+ "ohash": ["ohash@2.0.11", "", {}, "sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ=="],
+
"on-finished": ["on-finished@2.4.1", "", { "dependencies": { "ee-first": "1.1.1" } }, "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg=="],
"once": ["once@1.4.0", "", { "dependencies": { "wrappy": "1" } }, "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w=="],
@@ -1914,18 +3154,30 @@
"open": ["open@10.2.0", "", { "dependencies": { "default-browser": "^5.2.1", "define-lazy-prop": "^3.0.0", "is-inside-container": "^1.0.0", "wsl-utils": "^0.1.0" } }, "sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA=="],
+ "openai": ["openai@5.23.2", "", { "peerDependencies": { "ws": "^8.18.0", "zod": "^3.23.8" }, "optionalPeers": ["ws", "zod"], "bin": { "openai": "bin/cli" } }, "sha512-MQBzmTulj+MM5O8SKEk/gL8a7s5mktS9zUtAkU257WjvobGc9nKcBuVwjyEEcb9SI8a8Y2G/mzn3vm9n1Jlleg=="],
+
+ "opener": ["opener@1.5.2", "", { "bin": { "opener": "bin/opener-bin.js" } }, "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A=="],
+
"ora": ["ora@5.4.1", "", { "dependencies": { "bl": "^4.1.0", "chalk": "^4.1.0", "cli-cursor": "^3.1.0", "cli-spinners": "^2.5.0", "is-interactive": "^1.0.0", "is-unicode-supported": "^0.1.0", "log-symbols": "^4.1.0", "strip-ansi": "^6.0.0", "wcwidth": "^1.0.1" } }, "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ=="],
+ "os-browserify": ["os-browserify@0.3.0", "", {}, "sha512-gjcpUc3clBf9+210TRaDWbf+rZZZEshZ+DlXMRCeAjp0xhTrnQsKHypIy1J3d5hKdUzj69t708EHtU8P6bUn0A=="],
+
"os-homedir": ["os-homedir@1.0.2", "", {}, "sha512-B5JU3cabzk8c67mRRd3ECmROafjYMXbuzlwtqdM8IbS8ktlTix8aFGb2bAGKrSRIlnfKwovGUUr72JUPyOb6kQ=="],
"os-paths": ["os-paths@7.4.0", "", { "optionalDependencies": { "fsevents": "*" } }, "sha512-Ux1J4NUqC6tZayBqLN1kUlDAEvLiQlli/53sSddU4IN+h+3xxnv2HmRSMpVSvr1hvJzotfMs3ERvETGK+f4OwA=="],
+ "outvariant": ["outvariant@1.4.3", "", {}, "sha512-+Sl2UErvtsoajRDKCE5/dBz4DIvHXQQnAxtQTF04OJxY0+DyZXSo5P5Bb7XYWOh81syohlYL24hbDwxedPUJCA=="],
+
+ "oxc-parser": ["oxc-parser@0.36.0", "", { "dependencies": { "@oxc-project/types": "^0.36.0" }, "optionalDependencies": { "@oxc-parser/binding-darwin-arm64": "0.36.0", "@oxc-parser/binding-darwin-x64": "0.36.0", "@oxc-parser/binding-linux-arm64-gnu": "0.36.0", "@oxc-parser/binding-linux-arm64-musl": "0.36.0", "@oxc-parser/binding-linux-x64-gnu": "0.36.0", "@oxc-parser/binding-linux-x64-musl": "0.36.0", "@oxc-parser/binding-win32-arm64-msvc": "0.36.0", "@oxc-parser/binding-win32-x64-msvc": "0.36.0" } }, "sha512-dcjn+8WvWVbIO0Bb0qAJcfq8JwdkbPflYyFBg3rcDb83awlXAQLnhZuheGUxuWEh18oQFAcxkgdUdObS6DvA7A=="],
+
"p-cancelable": ["p-cancelable@2.1.1", "", {}, "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg=="],
"p-finally": ["p-finally@1.0.0", "", {}, "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow=="],
"p-limit": ["p-limit@3.1.0", "", { "dependencies": { "yocto-queue": "^0.1.0" } }, "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ=="],
+ "p-locate": ["p-locate@6.0.0", "", { "dependencies": { "p-limit": "^4.0.0" } }, "sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw=="],
+
"p-map": ["p-map@4.0.0", "", { "dependencies": { "aggregate-error": "^3.0.0" } }, "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ=="],
"p-queue": ["p-queue@6.6.2", "", { "dependencies": { "eventemitter3": "^4.0.4", "p-timeout": "^3.2.0" } }, "sha512-RwFpb72c/BhQLEXIZ5K2e+AhgNVmIejGlTgiB9MzZ0e93GRvqZ7uSi0dvRF7/XIXDeNkra2fNHBxTyPDGySpjQ=="],
@@ -1938,6 +3190,12 @@
"package-json-from-dist": ["package-json-from-dist@1.0.1", "", {}, "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw=="],
+ "package-manager-detector": ["package-manager-detector@1.6.0", "", {}, "sha512-61A5ThoTiDG/C8s8UMZwSorAGwMJ0ERVGj2OjoW5pAalsNOg15+iQiPzrLJ4jhZ1HJzmC2PIHT2oEiH3R5fzNA=="],
+
+ "pako": ["pako@1.0.11", "", {}, "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw=="],
+
+ "parse-asn1": ["parse-asn1@5.1.9", "", { "dependencies": { "asn1.js": "^4.10.1", "browserify-aes": "^1.2.0", "evp_bytestokey": "^1.0.3", "pbkdf2": "^3.1.5", "safe-buffer": "^5.2.1" } }, "sha512-fIYNuZ/HastSb80baGOuPRo1O9cf4baWw5WsAp7dBuUzeTD/BoaG8sVTdlPFksBE2lF21dN+A1AnrpIjSWqHHg=="],
+
"parse-entities": ["parse-entities@2.0.0", "", { "dependencies": { "character-entities": "^1.0.0", "character-entities-legacy": "^1.0.0", "character-reference-invalid": "^1.0.0", "is-alphanumerical": "^1.0.0", "is-decimal": "^1.0.0", "is-hexadecimal": "^1.0.0" } }, "sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ=="],
"parse-json": ["parse-json@8.3.0", "", { "dependencies": { "@babel/code-frame": "^7.26.2", "index-to-position": "^1.1.0", "type-fest": "^4.39.1" } }, "sha512-ybiGyvspI+fAoRQbIPRddCcSTV9/LsJbf0e/S85VLowVGzRmokfneg2kwVW/KU5rOXrPSbF1qAKPMgNTqqROQQ=="],
@@ -1948,7 +3206,7 @@
"parse-passwd": ["parse-passwd@1.0.0", "", {}, "sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q=="],
- "parse5": ["parse5@5.1.1", "", {}, "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug=="],
+ "parse5": ["parse5@7.3.0", "", { "dependencies": { "entities": "^6.0.0" } }, "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw=="],
"parse5-htmlparser2-tree-adapter": ["parse5-htmlparser2-tree-adapter@6.0.1", "", { "dependencies": { "parse5": "^6.0.1" } }, "sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA=="],
@@ -1958,6 +3216,10 @@
"patch-console": ["patch-console@2.0.0", "", {}, "sha512-0YNdUceMdaQwoKce1gatDScmMo5pu/tfABfnzEqeG0gtTmd7mh/WcwgUjtAeOU7N8nFFlbQBnFK2gXW5fGvmMA=="],
+ "path-browserify": ["path-browserify@1.0.1", "", {}, "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g=="],
+
+ "path-data-parser": ["path-data-parser@0.1.0", "", {}, "sha512-NOnmBpt5Y2RWbuv0LMzsayp3lVylAHLPUTut412ZA3l+C4uw4ZVkQbjShYCQ8TCpUMdPapr4YjUqLYD6v68j+w=="],
+
"path-exists": ["path-exists@5.0.0", "", {}, "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ=="],
"path-is-absolute": ["path-is-absolute@1.0.1", "", {}, "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg=="],
@@ -1968,10 +3230,14 @@
"path-scurry": ["path-scurry@1.11.1", "", { "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" } }, "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA=="],
- "path-to-regexp": ["path-to-regexp@8.3.0", "", {}, "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA=="],
+ "path-to-regexp": ["path-to-regexp@6.3.0", "", {}, "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ=="],
"pathe": ["pathe@2.0.3", "", {}, "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w=="],
+ "pathval": ["pathval@2.0.1", "", {}, "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ=="],
+
+ "pbkdf2": ["pbkdf2@3.1.5", "", { "dependencies": { "create-hash": "^1.2.0", "create-hmac": "^1.1.7", "ripemd160": "^2.0.3", "safe-buffer": "^5.2.1", "sha.js": "^2.4.12", "to-buffer": "^1.2.1" } }, "sha512-Q3CG/cYvCO1ye4QKkuH7EXxs3VC/rI1/trd+qX2+PolbaKG0H+bgcZzrTt96mMyRtejk+JMCiLUn3y29W8qmFQ=="],
+
"pe-library": ["pe-library@0.4.1", "", {}, "sha512-eRWB5LBz7PpDu4PUlwT0PhnQfTQJlDDdPa35urV4Osrm0t0AqQFGn+UIkU3klZvwJ8KPO3VbBFsXquA6p6kqZw=="],
"peberminta": ["peberminta@0.9.0", "", {}, "sha512-XIxfHpEuSJbITd1H3EeQwpcZbTLHc+VVr8ANI9t5sit565tsI4/xK3KWTUFE2e6QiangUkh3B0jihzmGnNrRsQ=="],
@@ -1980,12 +3246,26 @@
"pend": ["pend@1.2.0", "", {}, "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg=="],
+ "perfect-debounce": ["perfect-debounce@2.0.0", "", {}, "sha512-fkEH/OBiKrqqI/yIgjR92lMfs2K8105zt/VT6+7eTjNwisrsh47CeIED9z58zI7DfKdH3uHAn25ziRZn3kgAow=="],
+
+ "pg": ["pg@8.16.3", "", { "dependencies": { "pg-connection-string": "^2.9.1", "pg-pool": "^3.10.1", "pg-protocol": "^1.10.3", "pg-types": "2.2.0", "pgpass": "1.0.5" }, "optionalDependencies": { "pg-cloudflare": "^1.2.7" }, "peerDependencies": { "pg-native": ">=3.0.1" }, "optionalPeers": ["pg-native"] }, "sha512-enxc1h0jA/aq5oSDMvqyW3q89ra6XIIDZgCX9vkMrnz5DFTw/Ny3Li2lFQ+pt3L6MCgm/5o2o8HW9hiJji+xvw=="],
+
+ "pg-cloudflare": ["pg-cloudflare@1.2.7", "", {}, "sha512-YgCtzMH0ptvZJslLM1ffsY4EuGaU0cx4XSdXLRFae8bPP4dS5xL1tNB3k2o/N64cHJpwU7dxKli/nZ2lUa5fLg=="],
+
+ "pg-connection-string": ["pg-connection-string@2.9.1", "", {}, "sha512-nkc6NpDcvPVpZXxrreI/FOtX3XemeLl8E0qFr6F2Lrm/I8WOnaWNhIPK2Z7OHpw7gh5XJThi6j6ppgNoaT1w4w=="],
+
+ "pg-gateway": ["pg-gateway@0.3.0-beta.4", "", {}, "sha512-CTjsM7Z+0Nx2/dyZ6r8zRsc3f9FScoD5UAOlfUx1Fdv/JOIWvRbF7gou6l6vP+uypXQVoYPgw8xZDXgMGvBa4Q=="],
+
"pg-int8": ["pg-int8@1.0.1", "", {}, "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw=="],
+ "pg-pool": ["pg-pool@3.10.1", "", { "peerDependencies": { "pg": ">=8.0" } }, "sha512-Tu8jMlcX+9d8+QVzKIvM/uJtp07PKr82IUOYEphaWcoBhIYkoHpLXN3qO59nAI11ripznDsEzEv8nUxBVWajGg=="],
+
"pg-protocol": ["pg-protocol@1.10.3", "", {}, "sha512-6DIBgBQaTKDJyxnXaLiLR8wBpQQcGWuAESkRBX/t6OwA8YsqP+iVSiond2EDy6Y/dsGk8rh/jtax3js5NeV7JQ=="],
"pg-types": ["pg-types@2.2.0", "", { "dependencies": { "pg-int8": "1.0.1", "postgres-array": "~2.0.0", "postgres-bytea": "~1.0.0", "postgres-date": "~1.0.4", "postgres-interval": "^1.1.0" } }, "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA=="],
+ "pgpass": ["pgpass@1.0.5", "", { "dependencies": { "split2": "^4.1.0" } }, "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug=="],
+
"picocolors": ["picocolors@1.1.1", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="],
"picomatch": ["picomatch@4.0.3", "", {}, "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q=="],
@@ -1994,8 +3274,18 @@
"pkce-challenge": ["pkce-challenge@5.0.0", "", {}, "sha512-ueGLflrrnvwB3xuo/uGob5pd5FN7l0MsLf0Z87o/UQmRtwjvfylfc9MurIxRAWywCYTgrvpXBcqjV4OfCYGCIQ=="],
+ "pkg-dir": ["pkg-dir@5.0.0", "", { "dependencies": { "find-up": "^5.0.0" } }, "sha512-NPE8TDbzl/3YQYY7CSS228s3g2ollTFnc+Qi3tqmqJp9Vg2ovUpixcJEo2HJScN2Ez+kEaal6y70c0ehqJBJeA=="],
+
+ "pkg-types": ["pkg-types@1.3.1", "", { "dependencies": { "confbox": "^0.1.8", "mlly": "^1.7.4", "pathe": "^2.0.1" } }, "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ=="],
+
"plist": ["plist@3.1.0", "", { "dependencies": { "@xmldom/xmldom": "^0.8.8", "base64-js": "^1.5.1", "xmlbuilder": "^15.1.1" } }, "sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ=="],
+ "points-on-curve": ["points-on-curve@0.2.0", "", {}, "sha512-0mYKnYYe9ZcqMCWhUjItv/oHjvgEsfKvnUTg8sAtnHr3GVy7rGkXCb6d5cSyqrWqL4k81b9CPg3urd+T7aop3A=="],
+
+ "points-on-path": ["points-on-path@0.2.1", "", { "dependencies": { "path-data-parser": "0.1.0", "points-on-curve": "0.2.0" } }, "sha512-25ClnWWuw7JbWZcgqY/gJ4FQWadKxGWk+3kR/7kD0tCaDtPPMj7oHu2ToLaVhfpnHrZzYby2w6tUA0eOIuUg8g=="],
+
+ "possible-typed-array-names": ["possible-typed-array-names@1.1.0", "", {}, "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg=="],
+
"postcss": ["postcss@8.5.6", "", { "dependencies": { "nanoid": "^3.3.11", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" } }, "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg=="],
"postcss-modules": ["postcss-modules@4.3.1", "", { "dependencies": { "generic-names": "^4.0.0", "icss-replace-symbols": "^1.1.0", "lodash.camelcase": "^4.3.0", "postcss-modules-extract-imports": "^3.0.0", "postcss-modules-local-by-default": "^4.0.0", "postcss-modules-scope": "^3.0.0", "postcss-modules-values": "^4.0.0", "string-hash": "^1.1.1" }, "peerDependencies": { "postcss": "^8.0.0" } }, "sha512-ItUhSUxBBdNamkT3KzIZwYNNRFKmkJrofvC2nWab3CPKhYBQ1f27XXh1PAPE27Psx58jeelPsxWB/+og+KEH0Q=="],
@@ -2008,10 +3298,12 @@
"postcss-modules-values": ["postcss-modules-values@4.0.0", "", { "dependencies": { "icss-utils": "^5.0.0" }, "peerDependencies": { "postcss": "^8.1.0" } }, "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ=="],
- "postcss-selector-parser": ["postcss-selector-parser@7.1.0", "", { "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" } }, "sha512-8sLjZwK0R+JlxlYcTuVnyT2v+htpdrjDOKuMcOVdYjt52Lh8hWRYpxBPoKx/Zg+bcjc3wx6fmQevMmUztS/ccA=="],
+ "postcss-selector-parser": ["postcss-selector-parser@6.0.10", "", { "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" } }, "sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w=="],
"postcss-value-parser": ["postcss-value-parser@4.2.0", "", {}, "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ=="],
+ "postgres": ["postgres@3.4.7", "", {}, "sha512-Jtc2612XINuBjIl/QTWsV5UvE8UHuNblcO3vVADSrKsrc6RqGX6lOW1cEo3CM2v0XG4Nat8nI+YM7/f26VxXLw=="],
+
"postgres-array": ["postgres-array@2.0.0", "", {}, "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA=="],
"postgres-bytea": ["postgres-bytea@1.0.0", "", {}, "sha512-xy3pmLuQqRBZBXDULy7KbaitYqLcmxigw14Q5sj8QBVLqEwXfeybIKVWiqAXTlcvdvb0+xkOtDbfQMOf4lST1w=="],
@@ -2020,16 +3312,28 @@
"postgres-interval": ["postgres-interval@1.2.0", "", { "dependencies": { "xtend": "^4.0.0" } }, "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ=="],
+ "posthog-js": ["posthog-js@1.302.2", "", { "dependencies": { "@posthog/core": "1.7.1", "core-js": "^3.38.1", "fflate": "^0.4.8", "preact": "^10.19.3", "web-vitals": "^4.2.4" } }, "sha512-4voih22zQe7yHA7DynlQ3B7kgzJOaKIjzV7K3jJ2Qf+UDXd1ZgO7xYmLWYVtuKEvD1OXHbKk/fPhUTZeHEWpBw=="],
+
"postject": ["postject@1.0.0-alpha.6", "", { "dependencies": { "commander": "^9.4.0" }, "bin": { "postject": "dist/cli.js" } }, "sha512-b9Eb8h2eVqNE8edvKdwqkrY6O7kAwmI8kcnBv1NScolYJbo59XUF0noFq+lxbC1yN20bmC0WBEbDC5H/7ASb0A=="],
+ "preact": ["preact@10.28.0", "", {}, "sha512-rytDAoiXr3+t6OIP3WGlDd0ouCUG1iCWzkcY3++Nreuoi17y6T5i/zRhe6uYfoVcxq6YU+sBtJouuRDsq8vvqA=="],
+
+ "preact-render-to-string": ["preact-render-to-string@6.5.11", "", { "peerDependencies": { "preact": ">=10" } }, "sha512-ubnauqoGczeGISiOh6RjX0/cdaF8v/oDXIjO85XALCQjwQP+SB4RDXXtvZ6yTYSjG+PC1QRP2AhPgCEsM2EvUw=="],
+
"prettier": ["prettier@3.6.2", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ=="],
+ "pretty-format": ["pretty-format@27.5.1", "", { "dependencies": { "ansi-regex": "^5.0.1", "ansi-styles": "^5.0.0", "react-is": "^17.0.1" } }, "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ=="],
+
"pretty-ms": ["pretty-ms@9.3.0", "", { "dependencies": { "parse-ms": "^4.0.0" } }, "sha512-gjVS5hOP+M3wMm5nmNOucbIrqudzs9v/57bWRHQWLYklXqoXKrVfYW2W9+glfGsqtPgpiz5WwyEEB+ksXIx3gQ=="],
"prismjs": ["prismjs@1.30.0", "", {}, "sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw=="],
"proc-log": ["proc-log@2.0.1", "", {}, "sha512-Kcmo2FhfDTXdcbfDH76N7uBYHINxc/8GW7UAVuVP9I+Va3uHSerrnKV6dLooga/gh7GlgzuCCr/eoldnL1muGw=="],
+ "process": ["process@0.11.10", "", {}, "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A=="],
+
+ "process-nextick-args": ["process-nextick-args@2.0.1", "", {}, "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="],
+
"progress": ["progress@2.0.3", "", {}, "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA=="],
"promise-inflight": ["promise-inflight@1.0.1", "", {}, "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g=="],
@@ -2050,9 +3354,11 @@
"prr": ["prr@1.0.1", "", {}, "sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw=="],
+ "public-encrypt": ["public-encrypt@4.0.3", "", { "dependencies": { "bn.js": "^4.1.0", "browserify-rsa": "^4.0.0", "create-hash": "^1.1.0", "parse-asn1": "^5.0.0", "randombytes": "^2.0.1", "safe-buffer": "^5.1.2" } }, "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q=="],
+
"pump": ["pump@3.0.3", "", { "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" } }, "sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA=="],
- "punycode": ["punycode@2.3.1", "", {}, "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg=="],
+ "punycode": ["punycode@1.4.1", "", {}, "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ=="],
"pupa": ["pupa@3.3.0", "", { "dependencies": { "escape-goat": "^4.0.0" } }, "sha512-LjgDO2zPtoXP2wJpDjZrGdojii1uqO0cnwKoIoUzkfS98HDmbeiGmYiXo3lXeFlq2xvne1QFQhwYXSUCLKtEuA=="],
@@ -2060,26 +3366,44 @@
"quansync": ["quansync@0.2.11", "", {}, "sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA=="],
+ "querystring-es3": ["querystring-es3@0.2.1", "", {}, "sha512-773xhDQnZBMFobEiztv8LIl70ch5MSF/jUQVlhwFyBILqq96anmoctVIYz+ZRp0qbCKATTn6ev02M3r7Ga5vqA=="],
+
+ "queue-microtask": ["queue-microtask@1.2.3", "", {}, "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A=="],
+
"quick-lru": ["quick-lru@5.1.1", "", {}, "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA=="],
+ "randombytes": ["randombytes@2.1.0", "", { "dependencies": { "safe-buffer": "^5.1.0" } }, "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ=="],
+
+ "randomfill": ["randomfill@1.0.4", "", { "dependencies": { "randombytes": "^2.0.5", "safe-buffer": "^5.1.0" } }, "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw=="],
+
"range-parser": ["range-parser@1.2.1", "", {}, "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="],
"raw-body": ["raw-body@3.0.1", "", { "dependencies": { "bytes": "3.1.2", "http-errors": "2.0.0", "iconv-lite": "0.7.0", "unpipe": "1.0.0" } }, "sha512-9G8cA+tuMS75+6G/TzW8OtLzmBDMo8p1JRxN5AZ+LAp8uxGA8V8GZm4GQ4/N5QNQEnLmg6SS7wyuSmbKepiKqA=="],
"rc": ["rc@1.2.8", "", { "dependencies": { "deep-extend": "^0.6.0", "ini": "~1.3.0", "minimist": "^1.2.0", "strip-json-comments": "~2.0.1" }, "bin": { "rc": "./cli.js" } }, "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw=="],
- "react": ["react@19.2.0", "", {}, "sha512-tmbWg6W31tQLeB5cdIBOicJDJRR2KzXsV7uSK9iNfLWQ5bIZfxuPEHp7M8wiHyHnn0DD1i7w3Zmin0FtkrwoCQ=="],
+ "react": ["react@19.1.2", "", {}, "sha512-MdWVitvLbQULD+4DP8GYjZUrepGW7d+GQkNVqJEzNxE+e9WIa4egVFE/RDfVb1u9u/Jw7dNMmPB4IqxzbFYJ0w=="],
"react-devtools-core": ["react-devtools-core@6.1.5", "", { "dependencies": { "shell-quote": "^1.6.1", "ws": "^7" } }, "sha512-ePrwPfxAnB+7hgnEr8vpKxL9cmnp7F322t8oqcPshbIQQhDKgFDW4tjhF2wjVbdXF9O/nyuy3sQWd9JGpiLPvA=="],
- "react-dom": ["react-dom@19.2.0", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.0" } }, "sha512-UlbRu4cAiGaIewkPyiRGJk0imDN2T3JjieT6spoL2UeSf5od4n5LB/mQ4ejmxhCFT1tYe8IvaFulzynWovsEFQ=="],
+ "react-diff-view": ["react-diff-view@3.3.2", "", { "dependencies": { "classnames": "^2.3.2", "diff-match-patch": "^1.0.5", "gitdiff-parser": "^0.3.1", "lodash": "^4.17.21", "shallow-equal": "^3.1.0", "warning": "^4.0.3" }, "peerDependencies": { "react": ">=16.14.0" } }, "sha512-wPVq4ktTcGOHbhnWKU/gHLtd3N2Xd+OZ/XQWcKA06dsxlSsESePAumQILwHtiak2nMCMiWcIfBpqZ5OiharUPA=="],
+
+ "react-docgen": ["react-docgen@8.0.2", "", { "dependencies": { "@babel/core": "^7.28.0", "@babel/traverse": "^7.28.0", "@babel/types": "^7.28.2", "@types/babel__core": "^7.20.5", "@types/babel__traverse": "^7.20.7", "@types/doctrine": "^0.0.9", "@types/resolve": "^1.20.2", "doctrine": "^3.0.0", "resolve": "^1.22.1", "strip-indent": "^4.0.0" } }, "sha512-+NRMYs2DyTP4/tqWz371Oo50JqmWltR1h2gcdgUMAWZJIAvrd0/SqlCfx7tpzpl/s36rzw6qH2MjoNrxtRNYhA=="],
+
+ "react-docgen-typescript": ["react-docgen-typescript@2.4.0", "", { "peerDependencies": { "typescript": ">= 4.3.x" } }, "sha512-ZtAp5XTO5HRzQctjPU0ybY0RRCQO19X/8fxn3w7y2VVTUbGHDKULPTL4ky3vB05euSgG5NpALhEhDPvQ56wvXg=="],
- "react-is": ["react-is@16.13.1", "", {}, "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="],
+ "react-dom": ["react-dom@19.1.2", "", { "dependencies": { "scheduler": "^0.26.0" }, "peerDependencies": { "react": "^19.1.2" } }, "sha512-dEoydsCp50i7kS1xHOmPXq4zQYoGWedUsvqv9H6zdif2r7yLHygyfP9qou71TulRN0d6ng9EbRVsQhSqfUc19g=="],
+
+ "react-error-boundary": ["react-error-boundary@3.1.4", "", { "dependencies": { "@babel/runtime": "^7.12.5" }, "peerDependencies": { "react": ">=16.13.1" } }, "sha512-uM9uPzZJTF6wRQORmSrvOIgt4lJ9MC1sNgEOj2XGsDTRE4kmpWxg7ENK9EWNKJRMAOY9z0MuF4yIfl6gp4sotA=="],
+
+ "react-is": ["react-is@17.0.2", "", {}, "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w=="],
"react-markdown": ["react-markdown@10.1.0", "", { "dependencies": { "@types/hast": "^3.0.0", "@types/mdast": "^4.0.0", "devlop": "^1.0.0", "hast-util-to-jsx-runtime": "^2.0.0", "html-url-attributes": "^3.0.0", "mdast-util-to-hast": "^13.0.0", "remark-parse": "^11.0.0", "remark-rehype": "^11.0.0", "unified": "^11.0.0", "unist-util-visit": "^5.0.0", "vfile": "^6.0.0" }, "peerDependencies": { "@types/react": ">=18", "react": ">=18" } }, "sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ=="],
"react-reconciler": ["react-reconciler@0.32.0", "", { "dependencies": { "scheduler": "^0.26.0" }, "peerDependencies": { "react": "^19.1.0" } }, "sha512-2NPMOzgTlG0ZWdIf3qG+dcbLSoAc/uLfOwckc3ofy5sSK0pLJqnQLpUFxvGcN2rlXSjnVtGeeFLNimCQEj5gOQ=="],
+ "react-redux": ["react-redux@9.2.0", "", { "dependencies": { "@types/use-sync-external-store": "^0.0.6", "use-sync-external-store": "^1.4.0" }, "peerDependencies": { "@types/react": "^18.2.25 || ^19", "react": "^18.0 || ^19", "redux": "^5.0.0" }, "optionalPeers": ["@types/react", "redux"] }, "sha512-ROY9fvHhwOD9ySfrF0wmvu//bKCQ6AeZZq1nJNtbDC+kk5DuSuNX/n6YWYF/SYy7bSba4D4FSz8DJeKY/S/r+g=="],
+
"react-remove-scroll": ["react-remove-scroll@2.7.1", "", { "dependencies": { "react-remove-scroll-bar": "^2.3.7", "react-style-singleton": "^2.2.3", "tslib": "^2.1.0", "use-callback-ref": "^1.3.3", "use-sidecar": "^1.1.3" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-HpMh8+oahmIdOuS5aFKKY6Pyog+FNaZV/XyJOq7b4YFwsFHe5yYfdbIalI4k3vU2nSDql7YskmUseHsRrJqIPA=="],
"react-remove-scroll-bar": ["react-remove-scroll-bar@2.3.8", "", { "dependencies": { "react-style-singleton": "^2.2.2", "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "optionalPeers": ["@types/react"] }, "sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q=="],
@@ -2094,10 +3418,20 @@
"read-pkg": ["read-pkg@9.0.1", "", { "dependencies": { "@types/normalize-package-data": "^2.4.3", "normalize-package-data": "^6.0.0", "parse-json": "^8.0.0", "type-fest": "^4.6.0", "unicorn-magic": "^0.1.0" } }, "sha512-9viLL4/n1BJUCT1NXVTdS1jtm80yDEgR5T4yCelII49Mbj0v1rZdKqj7zCiYdbB0CuCgdrvHcNogAKTFPBocFA=="],
- "readable-stream": ["readable-stream@3.6.2", "", { "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", "util-deprecate": "^1.0.1" } }, "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA=="],
+ "readable-stream": ["readable-stream@2.3.8", "", { "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", "isarray": "~1.0.0", "process-nextick-args": "~2.0.0", "safe-buffer": "~5.1.1", "string_decoder": "~1.1.1", "util-deprecate": "~1.0.1" } }, "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA=="],
"readdirp": ["readdirp@4.1.2", "", {}, "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg=="],
+ "recast": ["recast@0.23.11", "", { "dependencies": { "ast-types": "^0.16.1", "esprima": "~4.0.0", "source-map": "~0.6.1", "tiny-invariant": "^1.3.3", "tslib": "^2.0.1" } }, "sha512-YTUo+Flmw4ZXiWfQKGcwwc11KnoRAYgzAE2E7mXKCjSviTKShtxBsN6YUUBB2gtaBzKzeKunxhUwNHQuRryhWA=="],
+
+ "recharts": ["recharts@3.5.1", "", { "dependencies": { "@reduxjs/toolkit": "1.x.x || 2.x.x", "clsx": "^2.1.1", "decimal.js-light": "^2.5.1", "es-toolkit": "^1.39.3", "eventemitter3": "^5.0.1", "immer": "^10.1.1", "react-redux": "8.x.x || 9.x.x", "reselect": "5.1.1", "tiny-invariant": "^1.3.3", "use-sync-external-store": "^1.2.2", "victory-vendor": "^37.0.2" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-is": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-+v+HJojK7gnEgG6h+b2u7k8HH7FhyFUzAc4+cPrsjL4Otdgqr/ecXzAnHciqlzV1ko064eNcsdzrYOM78kankA=="],
+
+ "redent": ["redent@3.0.0", "", { "dependencies": { "indent-string": "^4.0.0", "strip-indent": "^3.0.0" } }, "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg=="],
+
+ "redux": ["redux@5.0.1", "", {}, "sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w=="],
+
+ "redux-thunk": ["redux-thunk@3.1.0", "", { "peerDependencies": { "redux": "^5.0.0" } }, "sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw=="],
+
"refractor": ["refractor@3.6.0", "", { "dependencies": { "hastscript": "^6.0.0", "parse-entities": "^2.0.0", "prismjs": "~1.27.0" } }, "sha512-MY9W41IOWxxk31o+YvFCNyNzdkc9M20NoZK5vq6jkv4I/uh2zkWcfudj0Q1fovjUQJrNewS9NMzeTtqPf+n5EA=="],
"registry-auth-token": ["registry-auth-token@5.1.0", "", { "dependencies": { "@pnpm/npm-conf": "^2.1.0" } }, "sha512-GdekYuwLXLxMuFTwAPg5UKGLW/UXzQrZvH/Zj791BQif5T05T0RsaLfHc9q3ZOKi7n+BoprPD9mJ0O0k4xzUlw=="],
@@ -2106,10 +3440,18 @@
"rehype-highlight": ["rehype-highlight@7.0.2", "", { "dependencies": { "@types/hast": "^3.0.0", "hast-util-to-text": "^4.0.0", "lowlight": "^3.0.0", "unist-util-visit": "^5.0.0", "vfile": "^6.0.0" } }, "sha512-k158pK7wdC2qL3M5NcZROZ2tR/l7zOzjxXd5VGdcfIyoijjQqpHd3JKtYSBDpDZ38UI2WJWuFAtkMDxmx5kstA=="],
+ "rehype-raw": ["rehype-raw@7.0.0", "", { "dependencies": { "@types/hast": "^3.0.0", "hast-util-raw": "^9.0.0", "vfile": "^6.0.0" } }, "sha512-/aE8hCfKlQeA8LmyeyQvQF3eBiLRGNlfBJEvWH7ivp9sBqs7TNqBL5X3v157rM4IFETqDnIOO+z5M/biZbo9Ww=="],
+
+ "rehype-sanitize": ["rehype-sanitize@6.0.0", "", { "dependencies": { "@types/hast": "^3.0.0", "hast-util-sanitize": "^5.0.0" } }, "sha512-CsnhKNsyI8Tub6L4sm5ZFsme4puGfc6pYylvXo1AeqaGbjOYyzNv3qZPwvs0oMJ39eryyeOdmxwUIo94IpEhqg=="],
+
+ "remark-gfm": ["remark-gfm@4.0.1", "", { "dependencies": { "@types/mdast": "^4.0.0", "mdast-util-gfm": "^3.0.0", "micromark-extension-gfm": "^3.0.0", "remark-parse": "^11.0.0", "remark-stringify": "^11.0.0", "unified": "^11.0.0" } }, "sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg=="],
+
"remark-parse": ["remark-parse@11.0.0", "", { "dependencies": { "@types/mdast": "^4.0.0", "mdast-util-from-markdown": "^2.0.0", "micromark-util-types": "^2.0.0", "unified": "^11.0.0" } }, "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA=="],
"remark-rehype": ["remark-rehype@11.1.2", "", { "dependencies": { "@types/hast": "^3.0.0", "@types/mdast": "^4.0.0", "mdast-util-to-hast": "^13.0.0", "unified": "^11.0.0", "vfile": "^6.0.0" } }, "sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw=="],
+ "remark-stringify": ["remark-stringify@11.0.0", "", { "dependencies": { "@types/mdast": "^4.0.0", "mdast-util-to-markdown": "^2.0.0", "unified": "^11.0.0" } }, "sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw=="],
+
"require-directory": ["require-directory@2.1.1", "", {}, "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q=="],
"require-from-string": ["require-from-string@2.0.2", "", {}, "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw=="],
@@ -2118,6 +3460,8 @@
"resedit": ["resedit@1.7.2", "", { "dependencies": { "pe-library": "^0.4.1" } }, "sha512-vHjcY2MlAITJhC0eRD/Vv8Vlgmu9Sd3LX9zZvtGzU5ZImdTN3+d6e/4mnTyV8vEbyf1sgNIrWxhWlrys52OkEA=="],
+ "reselect": ["reselect@5.1.1", "", {}, "sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w=="],
+
"resolve": ["resolve@1.22.10", "", { "dependencies": { "is-core-module": "^2.16.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" } }, "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w=="],
"resolve-alpn": ["resolve-alpn@1.2.1", "", {}, "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g=="],
@@ -2134,21 +3478,39 @@
"retry": ["retry@0.13.1", "", {}, "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg=="],
+ "rettime": ["rettime@0.7.0", "", {}, "sha512-LPRKoHnLKd/r3dVxcwO7vhCW+orkOGj9ViueosEBK6ie89CijnfRlhaDhHq/3Hxu4CkWQtxwlBG0mzTQY6uQjw=="],
+
+ "reusify": ["reusify@1.1.0", "", {}, "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw=="],
+
"rimraf": ["rimraf@2.6.3", "", { "dependencies": { "glob": "^7.1.3" }, "bin": { "rimraf": "./bin.js" } }, "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA=="],
+ "ripemd160": ["ripemd160@2.0.3", "", { "dependencies": { "hash-base": "^3.1.2", "inherits": "^2.0.4" } }, "sha512-5Di9UC0+8h1L6ZD2d7awM7E/T4uA1fJRlx6zk/NvdCCVEoAnFqvHmCuNeIKoCeIixBX/q8uM+6ycDvF8woqosA=="],
+
"roarr": ["roarr@2.15.4", "", { "dependencies": { "boolean": "^3.0.1", "detect-node": "^2.0.4", "globalthis": "^1.0.1", "json-stringify-safe": "^5.0.1", "semver-compare": "^1.0.0", "sprintf-js": "^1.1.2" } }, "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A=="],
+ "robust-predicates": ["robust-predicates@3.0.2", "", {}, "sha512-IXgzBWvWQwE6PrDI05OvmXUIruQTcoMDzRsOd5CDvHCVLcLHMTSYvOK5Cm46kWqlV3yAbuSpBZdJ5oP5OUoStg=="],
+
"rolldown": ["rolldown@1.0.0-beta.43", "", { "dependencies": { "@oxc-project/types": "=0.94.0", "@rolldown/pluginutils": "1.0.0-beta.43", "ansis": "=4.2.0" }, "optionalDependencies": { "@rolldown/binding-android-arm64": "1.0.0-beta.43", "@rolldown/binding-darwin-arm64": "1.0.0-beta.43", "@rolldown/binding-darwin-x64": "1.0.0-beta.43", "@rolldown/binding-freebsd-x64": "1.0.0-beta.43", "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.43", "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.43", "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.43", "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.43", "@rolldown/binding-linux-x64-musl": "1.0.0-beta.43", "@rolldown/binding-openharmony-arm64": "1.0.0-beta.43", "@rolldown/binding-wasm32-wasi": "1.0.0-beta.43", "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.43", "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.43", "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.43" }, "bin": { "rolldown": "bin/cli.mjs" } }, "sha512-6RcqyRx0tY1MlRLnjXPp/849Rl/CPFhzpGGwNPEPjKwqBMqPq/Rbbkxasa8s0x+IkUk46ty4jazb5skZ/Vgdhw=="],
"rolldown-plugin-dts": ["rolldown-plugin-dts@0.16.11", "", { "dependencies": { "@babel/generator": "^7.28.3", "@babel/parser": "^7.28.4", "@babel/types": "^7.28.4", "ast-kit": "^2.1.2", "birpc": "^2.6.1", "debug": "^4.4.3", "dts-resolver": "^2.1.2", "get-tsconfig": "^4.10.1", "magic-string": "^0.30.19" }, "peerDependencies": { "@ts-macro/tsc": "^0.3.6", "@typescript/native-preview": ">=7.0.0-dev.20250601.1", "rolldown": "^1.0.0-beta.9", "typescript": "^5.0.0", "vue-tsc": "~3.1.0" }, "optionalPeers": ["@ts-macro/tsc", "@typescript/native-preview", "typescript", "vue-tsc"] }, "sha512-9IQDaPvPqTx3RjG2eQCK5GYZITo203BxKunGI80AGYicu1ySFTUyugicAaTZWRzFWh9DSnzkgNeMNbDWBbSs0w=="],
+ "rollup": ["rollup@4.53.3", "", { "dependencies": { "@types/estree": "1.0.8" }, "optionalDependencies": { "@rollup/rollup-android-arm-eabi": "4.53.3", "@rollup/rollup-android-arm64": "4.53.3", "@rollup/rollup-darwin-arm64": "4.53.3", "@rollup/rollup-darwin-x64": "4.53.3", "@rollup/rollup-freebsd-arm64": "4.53.3", "@rollup/rollup-freebsd-x64": "4.53.3", "@rollup/rollup-linux-arm-gnueabihf": "4.53.3", "@rollup/rollup-linux-arm-musleabihf": "4.53.3", "@rollup/rollup-linux-arm64-gnu": "4.53.3", "@rollup/rollup-linux-arm64-musl": "4.53.3", "@rollup/rollup-linux-loong64-gnu": "4.53.3", "@rollup/rollup-linux-ppc64-gnu": "4.53.3", "@rollup/rollup-linux-riscv64-gnu": "4.53.3", "@rollup/rollup-linux-riscv64-musl": "4.53.3", "@rollup/rollup-linux-s390x-gnu": "4.53.3", "@rollup/rollup-linux-x64-gnu": "4.53.3", "@rollup/rollup-linux-x64-musl": "4.53.3", "@rollup/rollup-openharmony-arm64": "4.53.3", "@rollup/rollup-win32-arm64-msvc": "4.53.3", "@rollup/rollup-win32-ia32-msvc": "4.53.3", "@rollup/rollup-win32-x64-gnu": "4.53.3", "@rollup/rollup-win32-x64-msvc": "4.53.3", "fsevents": "~2.3.2" }, "bin": { "rollup": "dist/bin/rollup" } }, "sha512-w8GmOxZfBmKknvdXU1sdM9NHcoQejwF/4mNgj2JuEEdRaHwwF12K7e9eXn1nLZ07ad+du76mkVsyeb2rKGllsA=="],
+
+ "roughjs": ["roughjs@4.6.6", "", { "dependencies": { "hachure-fill": "^0.5.2", "path-data-parser": "^0.1.0", "points-on-curve": "^0.2.0", "points-on-path": "^0.2.1" } }, "sha512-ZUz/69+SYpFN/g/lUlo2FXcIjRkSu3nDarreVdGGndHEBJ6cXPdKguS8JGxwj5HA5xIbVKSmLgr5b3AWxtRfvQ=="],
+
"router": ["router@2.2.0", "", { "dependencies": { "debug": "^4.4.0", "depd": "^2.0.0", "is-promise": "^4.0.0", "parseurl": "^1.3.3", "path-to-regexp": "^8.0.0" } }, "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ=="],
"run-applescript": ["run-applescript@7.1.0", "", {}, "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q=="],
+ "run-parallel": ["run-parallel@1.2.0", "", { "dependencies": { "queue-microtask": "^1.2.2" } }, "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA=="],
+
+ "rw": ["rw@1.3.3", "", {}, "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ=="],
+
"rxjs": ["rxjs@7.8.2", "", { "dependencies": { "tslib": "^2.1.0" } }, "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA=="],
- "safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+ "safe-buffer": ["safe-buffer@5.1.2", "", {}, "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="],
+
+ "safe-regex-test": ["safe-regex-test@1.1.0", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "is-regex": "^1.2.1" } }, "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw=="],
"safer-buffer": ["safer-buffer@2.1.2", "", {}, "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="],
@@ -2158,7 +3520,7 @@
"sax": ["sax@1.4.1", "", {}, "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg=="],
- "scheduler": ["scheduler@0.27.0", "", {}, "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q=="],
+ "scheduler": ["scheduler@0.26.0", "", {}, "sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA=="],
"selderee": ["selderee@0.11.0", "", { "dependencies": { "parseley": "^0.12.0" } }, "sha512-5TF+l7p4+OsnP8BCCvSyZiSPc4x4//p5uPwK8TCnVPJYRmU2aYKMpOXvw8zM5a5JvuuCGN1jmsMwuU2W02ukfA=="],
@@ -2176,8 +3538,16 @@
"set-getter": ["set-getter@0.1.1", "", { "dependencies": { "to-object-path": "^0.3.0" } }, "sha512-9sVWOy+gthr+0G9DzqqLaYNA7+5OKkSmcqjL9cBpDEaZrr3ShQlyX2cZ/O/ozE41oxn/Tt0LGEM/w4Rub3A3gw=="],
+ "setimmediate": ["setimmediate@1.0.5", "", {}, "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA=="],
+
"setprototypeof": ["setprototypeof@1.2.0", "", {}, "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="],
+ "sha.js": ["sha.js@2.4.12", "", { "dependencies": { "inherits": "^2.0.4", "safe-buffer": "^5.2.1", "to-buffer": "^1.2.0" }, "bin": { "sha.js": "bin.js" } }, "sha512-8LzC5+bvI45BjpfXU8V5fdU2mfeKiQe1D1gIMn7XUlF3OTUrpdJpPPH4EMAnF0DsHHdSZqCdSss5qCmJKuiO3w=="],
+
+ "shallow-equal": ["shallow-equal@3.1.0", "", {}, "sha512-pfVOw8QZIXpMbhBWvzBISicvToTiM5WBF1EeAUZDDSb5Dt29yl4AYbyywbJFSEsRUMr7gJaxqCdr4L3tQf9wVg=="],
+
+ "sharp": ["sharp@0.34.5", "", { "dependencies": { "@img/colour": "^1.0.0", "detect-libc": "^2.1.2", "semver": "^7.7.3" }, "optionalDependencies": { "@img/sharp-darwin-arm64": "0.34.5", "@img/sharp-darwin-x64": "0.34.5", "@img/sharp-libvips-darwin-arm64": "1.2.4", "@img/sharp-libvips-darwin-x64": "1.2.4", "@img/sharp-libvips-linux-arm": "1.2.4", "@img/sharp-libvips-linux-arm64": "1.2.4", "@img/sharp-libvips-linux-ppc64": "1.2.4", "@img/sharp-libvips-linux-riscv64": "1.2.4", "@img/sharp-libvips-linux-s390x": "1.2.4", "@img/sharp-libvips-linux-x64": "1.2.4", "@img/sharp-libvips-linuxmusl-arm64": "1.2.4", "@img/sharp-libvips-linuxmusl-x64": "1.2.4", "@img/sharp-linux-arm": "0.34.5", "@img/sharp-linux-arm64": "0.34.5", "@img/sharp-linux-ppc64": "0.34.5", "@img/sharp-linux-riscv64": "0.34.5", "@img/sharp-linux-s390x": "0.34.5", "@img/sharp-linux-x64": "0.34.5", "@img/sharp-linuxmusl-arm64": "0.34.5", "@img/sharp-linuxmusl-x64": "0.34.5", "@img/sharp-wasm32": "0.34.5", "@img/sharp-win32-arm64": "0.34.5", "@img/sharp-win32-ia32": "0.34.5", "@img/sharp-win32-x64": "0.34.5" } }, "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg=="],
+
"shebang-command": ["shebang-command@2.0.0", "", { "dependencies": { "shebang-regex": "^3.0.0" } }, "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA=="],
"shebang-regex": ["shebang-regex@3.0.0", "", {}, "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="],
@@ -2198,6 +3568,8 @@
"simple-update-notifier": ["simple-update-notifier@2.0.0", "", { "dependencies": { "semver": "^7.5.3" } }, "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w=="],
+ "sirv": ["sirv@3.0.2", "", { "dependencies": { "@polka/url": "^1.0.0-next.24", "mrmime": "^2.0.0", "totalist": "^3.0.0" } }, "sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g=="],
+
"sisteransi": ["sisteransi@1.0.5", "", {}, "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg=="],
"skin-tone": ["skin-tone@2.0.0", "", { "dependencies": { "unicode-emoji-modifier-base": "^1.0.0" } }, "sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA=="],
@@ -2212,6 +3584,8 @@
"sonda": ["sonda@0.9.0", "", { "dependencies": { "@ampproject/remapping": "^2.3.0", "open": "^10.1.2" }, "bin": { "sonda-angular": "bin/sonda-angular.js" } }, "sha512-abMPj/ki+FdVCKkC2tFahz3dMFQi5vlSyx5X8u9rUB6IMX7vWwBdv6rMj9XjE7iuWcf/OYn/jVOcXkIUmHzXUA=="],
+ "sonner": ["sonner@2.0.7", "", { "peerDependencies": { "react": "^18.0.0 || ^19.0.0 || ^19.0.0-rc", "react-dom": "^18.0.0 || ^19.0.0 || ^19.0.0-rc" } }, "sha512-W6ZN4p58k8aDKA4XPcx2hpIQXBRAgyiWVkYhT7CvK6D3iAu7xjvVyhQHg2/iaKJZ1XVJ4r7XuwGL+WGEK37i9w=="],
+
"source-map": ["source-map@0.6.1", "", {}, "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="],
"source-map-js": ["source-map-js@1.2.1", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="],
@@ -2230,6 +3604,8 @@
"spdx-license-ids": ["spdx-license-ids@3.0.22", "", {}, "sha512-4PRT4nh1EImPbt2jASOKHX7PB7I+e4IWNLvkKFDxNhJlfjbYlleYQh285Z/3mPTHSAK/AvdMmw5BNNuYH8ShgQ=="],
+ "split2": ["split2@4.2.0", "", {}, "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg=="],
+
"sprintf-js": ["sprintf-js@1.1.3", "", {}, "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA=="],
"ssri": ["ssri@9.0.1", "", { "dependencies": { "minipass": "^3.1.1" } }, "sha512-o57Wcn66jMQvfHG1FlYbWeZWW/dHZhJXjpIcTfXldXEk5nz5lStPo3mK0OJQfGR3RbZUlbISexbljkJzuEj/8Q=="],
@@ -2240,15 +3616,25 @@
"statuses": ["statuses@2.0.2", "", {}, "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw=="],
+ "storybook": ["storybook@9.1.16", "", { "dependencies": { "@storybook/global": "^5.0.0", "@testing-library/jest-dom": "^6.6.3", "@testing-library/user-event": "^14.6.1", "@vitest/expect": "3.2.4", "@vitest/mocker": "3.2.4", "@vitest/spy": "3.2.4", "better-opn": "^3.0.2", "esbuild": "^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0 || ^0.24.0 || ^0.25.0", "esbuild-register": "^3.5.0", "recast": "^0.23.5", "semver": "^7.6.2", "ws": "^8.18.0" }, "peerDependencies": { "prettier": "^2 || ^3" }, "optionalPeers": ["prettier"], "bin": "./bin/index.cjs" }, "sha512-339U14K6l46EFyRvaPS2ZlL7v7Pb+LlcXT8KAETrGPxq8v1sAjj2HAOB6zrlAK3M+0+ricssfAwsLCwt7Eg8TQ=="],
+
+ "stream-browserify": ["stream-browserify@3.0.0", "", { "dependencies": { "inherits": "~2.0.4", "readable-stream": "^3.5.0" } }, "sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA=="],
+
+ "stream-http": ["stream-http@3.2.0", "", { "dependencies": { "builtin-status-codes": "^3.0.0", "inherits": "^2.0.4", "readable-stream": "^3.6.0", "xtend": "^4.0.2" } }, "sha512-Oq1bLqisTyK3TSCXpPbT4sdeYNdmyZJv1LxpEm2vu1ZhK89kSE5YXwZc3cWk0MagGaKriBh9mCFbVGtO+vY29A=="],
+
+ "streamsearch": ["streamsearch@1.1.0", "", {}, "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg=="],
+
"streamx": ["streamx@2.23.0", "", { "dependencies": { "events-universal": "^1.0.0", "fast-fifo": "^1.3.2", "text-decoder": "^1.1.0" } }, "sha512-kn+e44esVfn2Fa/O0CPFcex27fjIL6MkVae0Mm6q+E6f0hWv578YCERbv+4m02cjxvDsPKLnmxral/rR6lBMAg=="],
+ "strict-event-emitter": ["strict-event-emitter@0.5.1", "", {}, "sha512-vMgjE/GGEPEFnhFub6pa4FmJBRBVOLpIII2hvCZ8Kzb7K0hlHo7mQv6xYrBvCL2LtAIBwFUK8wvuJgTVSQ5MFQ=="],
+
"string-hash": ["string-hash@1.1.3", "", {}, "sha512-kJUvRUFK49aub+a7T1nNE66EJbZBMnBgoC1UbCZ5n6bsZKBRga4KgBRTMn/pFkeCZSYtNeSyMxPDM0AXWELk2A=="],
"string-width": ["string-width@7.2.0", "", { "dependencies": { "emoji-regex": "^10.3.0", "get-east-asian-width": "^1.0.0", "strip-ansi": "^7.1.0" } }, "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ=="],
"string-width-cjs": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],
- "string_decoder": ["string_decoder@1.3.0", "", { "dependencies": { "safe-buffer": "~5.2.0" } }, "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA=="],
+ "string_decoder": ["string_decoder@1.1.1", "", { "dependencies": { "safe-buffer": "~5.1.0" } }, "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg=="],
"stringify-entities": ["stringify-entities@4.0.4", "", { "dependencies": { "character-entities-html4": "^2.0.0", "character-entities-legacy": "^3.0.0" } }, "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg=="],
@@ -2256,10 +3642,18 @@
"strip-ansi-cjs": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="],
+ "strip-bom": ["strip-bom@3.0.0", "", {}, "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA=="],
+
"strip-final-newline": ["strip-final-newline@4.0.0", "", {}, "sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw=="],
+ "strip-indent": ["strip-indent@4.1.1", "", {}, "sha512-SlyRoSkdh1dYP0PzclLE7r0M9sgbFKKMFXpFRUMNuKhQSbC6VQIGzq3E0qsfvGJaUFJPGv6Ws1NZ/haTAjfbMA=="],
+
"strip-json-comments": ["strip-json-comments@3.1.1", "", {}, "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig=="],
+ "stripe": ["stripe@18.5.0", "", { "dependencies": { "qs": "^6.11.0" }, "peerDependencies": { "@types/node": ">=12.x.x" }, "optionalPeers": ["@types/node"] }, "sha512-Hp+wFiEQtCB0LlNgcFh5uVyKznpDjzyUZ+CNVEf+I3fhlYvh7rZruIg+jOwzJRCpy0ZTPMjlzm7J2/M2N6d+DA=="],
+
+ "strnum": ["strnum@2.1.1", "", {}, "sha512-7ZvoFTiCnGxBtDqJ//Cu6fWtZtc7Y3x+QOirG15wztbdngGSkht27o2pyGWrVy0b4WAy3jbKmnoK6g5VlVNUUw=="],
+
"strtok3": ["strtok3@9.1.1", "", { "dependencies": { "@tokenizer/token": "^0.3.0", "peek-readable": "^5.3.1" } }, "sha512-FhwotcEqjr241ZbjFzjlIYg6c5/L/s4yBGWSMvJ9UoExiSqL+FnFA/CaeZx17WGaZMS/4SOZp8wH18jSS4R4lw=="],
"stubborn-fs": ["stubborn-fs@1.2.5", "", {}, "sha512-H2N9c26eXjzL/S/K+i/RHHcFanE74dptvvjM8iwzwbVcWY/zjBbgRqF3K0DY4+OD+uTTASTBvDoxPDaPN02D7g=="],
@@ -2268,6 +3662,10 @@
"style-to-object": ["style-to-object@1.0.9", "", { "dependencies": { "inline-style-parser": "0.2.4" } }, "sha512-G4qppLgKu/k6FwRpHiGiKPaPTFcG3g4wNVX/Qsfu+RqQM30E7Tyu/TEgxcL9PNLF5pdRLwQdE3YKKf+KF2Dzlw=="],
+ "styled-jsx": ["styled-jsx@5.1.6", "", { "dependencies": { "client-only": "0.0.1" }, "peerDependencies": { "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0" } }, "sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA=="],
+
+ "stylis": ["stylis@4.3.6", "", {}, "sha512-yQ3rwFWRfwNUY7H5vpU0wfdkNSnvnJinhF9830Swlaxl03zsOjCfmX0ugac+3LtK0lYSgwL/KXc8oYL3mG4YFQ=="],
+
"stylus": ["stylus@0.64.0", "", { "dependencies": { "@adobe/css-tools": "~4.3.3", "debug": "^4.3.2", "glob": "^10.4.5", "sax": "~1.4.1", "source-map": "^0.7.3" }, "bin": { "stylus": "bin/stylus" } }, "sha512-ZIdT8eUv8tegmqy1tTIdJv9We2DumkNZFdCF5mz/Kpq3OcTaxSuCAYZge6HKK2CmNC02G1eJig2RV7XTw5hQrA=="],
"sumchecker": ["sumchecker@3.0.1", "", { "dependencies": { "debug": "^4.1.0" } }, "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg=="],
@@ -2280,6 +3678,8 @@
"swr": ["swr@2.3.6", "", { "dependencies": { "dequal": "^2.0.3", "use-sync-external-store": "^1.4.0" }, "peerDependencies": { "react": "^16.11.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-wfHRmHWk/isGNMwlLGlZX5Gzz/uTgo0o2IRuTMcf4CPuPFJZlq0rDaKUx+ozB5nBOReNV1kiOyzMfj+MBMikLw=="],
+ "tabbable": ["tabbable@6.3.0", "", {}, "sha512-EIHvdY5bPLuWForiR/AN2Bxngzpuwn1is4asboytXtpTgsArc+WmSJKVLlhdh71u7jFcryDqB2A8lQvj78MkyQ=="],
+
"tailwind-merge": ["tailwind-merge@3.3.1", "", {}, "sha512-gBXpgUm/3rp1lMZZrM/w7D8GKqshif0zAymAhbCyIt8KMe+0v9DQ7cdYLR4FHH/cKpdTXb+A/tKKU3eolfsI+g=="],
"tailwindcss": ["tailwindcss@4.1.14", "", {}, "sha512-b7pCxjGO98LnxVkKjaZSDeNuljC4ueKUddjENJOADtubtdo8llTaJy7HwBMeLNSSo2N5QIAgklslK1+Ir8r6CA=="],
@@ -2288,7 +3688,7 @@
"tapable": ["tapable@2.3.0", "", {}, "sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg=="],
- "tar": ["tar@7.5.1", "", { "dependencies": { "@isaacs/fs-minipass": "^4.0.0", "chownr": "^3.0.0", "minipass": "^7.1.2", "minizlib": "^3.1.0", "yallist": "^5.0.0" } }, "sha512-nlGpxf+hv0v7GkWBK2V9spgactGOp0qvfWRxUMjqHyzrt3SgwE48DIv/FhqPHJYLHpgW1opq3nERbz5Anq7n1g=="],
+ "tar": ["tar@6.2.1", "", { "dependencies": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", "minipass": "^5.0.0", "minizlib": "^2.1.1", "mkdirp": "^1.0.3", "yallist": "^4.0.0" } }, "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A=="],
"tar-stream": ["tar-stream@3.1.7", "", { "dependencies": { "b4a": "^1.6.4", "fast-fifo": "^1.2.0", "streamx": "^2.15.0" } }, "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ=="],
@@ -2304,8 +3704,12 @@
"throttleit": ["throttleit@2.1.0", "", {}, "sha512-nt6AMGKW1p/70DF/hGBdJB57B8Tspmbp5gfJ8ilhLnt7kkr2ye7hzD6NVG8GGErk2HWF34igrL2CXmNIkzKqKw=="],
+ "timers-browserify": ["timers-browserify@2.0.12", "", { "dependencies": { "setimmediate": "^1.0.4" } }, "sha512-9phl76Cqm6FhSX9Xe1ZUAMLtm1BLkKj2Qd5ApyWkXzsMRaA7dgr81kf4wJmQf/hAvg8EEyJxDo3du/0KlhPiKQ=="],
+
"tiny-async-pool": ["tiny-async-pool@1.3.0", "", { "dependencies": { "semver": "^5.5.0" } }, "sha512-01EAw5EDrcVrdgyCLgoSPvqznC0sVxDSVeiOz09FUpjh71G79VCqneOr+xvt7T1r76CF6ZZfPjHorN2+d+3mqA=="],
+ "tiny-invariant": ["tiny-invariant@1.3.3", "", {}, "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg=="],
+
"tinycolor2": ["tinycolor2@1.6.0", "", {}, "sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw=="],
"tinyexec": ["tinyexec@1.0.1", "", {}, "sha512-5uC6DDlmeqiOwCPmK9jMSdOuZTh8bU39Ys6yidB+UTt5hfZUPGAypSgFRiEp+jbi9qH40BLDvy85jIU88wKSqw=="],
@@ -2314,10 +3718,20 @@
"tinygradient": ["tinygradient@1.1.5", "", { "dependencies": { "@types/tinycolor2": "^1.4.0", "tinycolor2": "^1.0.0" } }, "sha512-8nIfc2vgQ4TeLnk2lFj4tRLvvJwEfQuabdsmvDdQPT0xlk9TaNtpGd6nNRxXoK6vQhN6RSzj+Cnp5tTQmpxmbw=="],
+ "tinyrainbow": ["tinyrainbow@2.0.0", "", {}, "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw=="],
+
+ "tinyspy": ["tinyspy@4.0.4", "", {}, "sha512-azl+t0z7pw/z958Gy9svOTuzqIk6xq+NSheJzn5MMWtWTFywIacg2wUlzKFGtt3cthx0r2SxMK0yzJOR0IES7Q=="],
+
+ "tldts": ["tldts@7.0.17", "", { "dependencies": { "tldts-core": "^7.0.17" }, "bin": { "tldts": "bin/cli.js" } }, "sha512-Y1KQBgDd/NUc+LfOtKS6mNsC9CCaH+m2P1RoIZy7RAPo3C3/t8X45+zgut31cRZtZ3xKPjfn3TkGTrctC2TQIQ=="],
+
+ "tldts-core": ["tldts-core@7.0.17", "", {}, "sha512-DieYoGrP78PWKsrXr8MZwtQ7GLCUeLxihtjC1jZsW1DnvSMdKPitJSe8OSYDM2u5H6g3kWJZpePqkp43TfLh0g=="],
+
"tmp": ["tmp@0.2.5", "", {}, "sha512-voyz6MApa1rQGUxT3E+BK7/ROe8itEx7vD8/HEvt4xwXucvQ5G5oeEiHkmHZJuBO21RpOf+YYm9MOivj709jow=="],
"tmp-promise": ["tmp-promise@3.0.3", "", { "dependencies": { "tmp": "^0.2.0" } }, "sha512-RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ=="],
+ "to-buffer": ["to-buffer@1.2.2", "", { "dependencies": { "isarray": "^2.0.5", "safe-buffer": "^5.2.1", "typed-array-buffer": "^1.0.3" } }, "sha512-db0E3UJjcFhpDhAF4tLo03oli3pwl3dbnzXOUIlRKrp+ldk/VUxzpWYZENsw2SZiuBjHAk7DfB0VU7NKdpb6sw=="],
+
"to-object-path": ["to-object-path@0.3.0", "", { "dependencies": { "kind-of": "^3.0.2" } }, "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg=="],
"to-regex-range": ["to-regex-range@5.0.1", "", { "dependencies": { "is-number": "^7.0.0" } }, "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ=="],
@@ -2328,6 +3742,10 @@
"token-types": ["token-types@6.1.1", "", { "dependencies": { "@borewit/text-codec": "^0.1.0", "@tokenizer/token": "^0.3.0", "ieee754": "^1.2.1" } }, "sha512-kh9LVIWH5CnL63Ipf0jhlBIy0UsrMj/NJDfpsy1SqOXlLKEVyXXYrnFxFT1yOOYVGBSApeVnjPw/sBz5BfEjAQ=="],
+ "totalist": ["totalist@3.0.1", "", {}, "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ=="],
+
+ "tough-cookie": ["tough-cookie@6.0.0", "", { "dependencies": { "tldts": "^7.0.5" } }, "sha512-kXuRi1mtaKMrsLUxz3sQYvVl37B0Ns6MzfrtV5DvJceE9bPyspOqk9xxv7XbZWcfLWbFmm997vl83qUWVJA64w=="],
+
"tr46": ["tr46@0.0.3", "", {}, "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="],
"tree-kill": ["tree-kill@1.2.2", "", { "bin": { "tree-kill": "cli.js" } }, "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A=="],
@@ -2338,6 +3756,12 @@
"truncate-utf8-bytes": ["truncate-utf8-bytes@1.0.2", "", { "dependencies": { "utf8-byte-length": "^1.0.1" } }, "sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ=="],
+ "ts-dedent": ["ts-dedent@2.2.0", "", {}, "sha512-q5W7tVM71e2xjHZTlgfTDoPF/SmqKG5hddq9SzR49CH2hayqRKJtQ4mtRlSxKaJlR/+9rEM+mnBHf7I2/BQcpQ=="],
+
+ "tsconfck": ["tsconfck@3.1.6", "", { "peerDependencies": { "typescript": "^5.0.0" }, "optionalPeers": ["typescript"], "bin": { "tsconfck": "bin/tsconfck.js" } }, "sha512-ks6Vjr/jEw0P1gmOVwutM3B7fWxoWBL2KRDb1JfqGVawBmO5UsvmWOQFGHBPl5yxYz4eERr19E6L7NMv+Fej4w=="],
+
+ "tsconfig-paths": ["tsconfig-paths@4.2.0", "", { "dependencies": { "json5": "^2.2.2", "minimist": "^1.2.6", "strip-bom": "^3.0.0" } }, "sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg=="],
+
"tsdown": ["tsdown@0.15.7", "", { "dependencies": { "ansis": "^4.2.0", "cac": "^6.7.14", "chokidar": "^4.0.3", "debug": "^4.4.3", "diff": "^8.0.2", "empathic": "^2.0.0", "hookable": "^5.5.3", "rolldown": "latest", "rolldown-plugin-dts": "^0.16.11", "semver": "^7.7.3", "tinyexec": "^1.0.1", "tinyglobby": "^0.2.15", "tree-kill": "^1.2.2", "unconfig": "^7.3.3" }, "peerDependencies": { "@arethetypeswrong/core": "^0.18.1", "publint": "^0.3.0", "typescript": "^5.0.0", "unplugin-lightningcss": "^0.4.0", "unplugin-unused": "^0.5.0" }, "optionalPeers": ["@arethetypeswrong/core", "publint", "typescript", "unplugin-lightningcss", "unplugin-unused"], "bin": { "tsdown": "dist/run.mjs" } }, "sha512-uFaVgWAogjOMqjY+CQwrUt3C6wzy6ynt82CIoXymnbS17ipUZ8WDXUceJjkislUahF/BZc5+W44Ue3p2oWtqUg=="],
"tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],
@@ -2346,12 +3770,18 @@
"tsx": ["tsx@4.20.6", "", { "dependencies": { "esbuild": "~0.25.0", "get-tsconfig": "^4.7.5" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "bin": { "tsx": "dist/cli.mjs" } }, "sha512-ytQKuwgmrrkDTFP4LjR0ToE2nqgy886GpvRSpU0JAnrdBYppuY5rLkRUYPU1yCryb24SsKBTL/hlDQAEFVwtZg=="],
+ "tty-browserify": ["tty-browserify@0.0.1", "", {}, "sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw=="],
+
"type-fest": ["type-fest@4.41.0", "", {}, "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA=="],
"type-is": ["type-is@2.0.1", "", { "dependencies": { "content-type": "^1.0.5", "media-typer": "^1.1.0", "mime-types": "^3.0.0" } }, "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw=="],
+ "typed-array-buffer": ["typed-array-buffer@1.0.3", "", { "dependencies": { "call-bound": "^1.0.3", "es-errors": "^1.3.0", "is-typed-array": "^1.1.14" } }, "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw=="],
+
"typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
+ "ufo": ["ufo@1.6.1", "", {}, "sha512-9a4/uxlTWJ4+a5i0ooc1rU7C7YOw3wT+UGqdeNNHWnOF9qcMBgLRS+4IYUqbczewFx4mLEig6gawh7X6mFlEkA=="],
+
"uglify-js": ["uglify-js@3.19.3", "", { "bin": { "uglifyjs": "bin/uglifyjs" } }, "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ=="],
"uint8array-extras": ["uint8array-extras@1.5.0", "", {}, "sha512-rvKSBiC5zqCCiDZ9kAOszZcDvdAHwwIKJG33Ykj43OKcWsnmcBRL09YTU4nOeHZ8Y2a7l1MgTd08SBe9A8Qj6A=="],
@@ -2360,7 +3790,7 @@
"undici": ["undici@7.16.0", "", {}, "sha512-QEg3HPMll0o3t2ourKwOeUAZ159Kn9mx5pnzHRQO8+Wixmh88YdZRiIwat0iNzNNXn0yoEtXJqFpyW7eM8BV7g=="],
- "undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+ "undici-types": ["undici-types@7.16.0", "", {}, "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw=="],
"unicode-emoji-modifier-base": ["unicode-emoji-modifier-base@1.0.0", "", {}, "sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g=="],
@@ -2392,46 +3822,108 @@
"unpipe": ["unpipe@1.0.0", "", {}, "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ=="],
+ "unplugin": ["unplugin@1.16.1", "", { "dependencies": { "acorn": "^8.14.0", "webpack-virtual-modules": "^0.6.2" } }, "sha512-4/u/j4FrCKdi17jaxuJA0jClGxB1AvU2hw/IuayPc4ay1XGaJs/rbb4v5WKwAjNifjmXK9PIFyuPiaK8azyR9w=="],
+
+ "unplugin-isolated-decl": ["unplugin-isolated-decl@0.7.2", "", { "dependencies": { "@rollup/pluginutils": "^5.1.3", "debug": "^4.3.7", "magic-string": "^0.30.12", "oxc-parser": "^0.36.0", "unplugin": "^1.16.0" }, "peerDependencies": { "@swc/core": "^1.6.6", "oxc-transform": ">=0.28.0", "typescript": "^5.5.2" }, "optionalPeers": ["@swc/core", "oxc-transform", "typescript"] }, "sha512-YhQbelS/iZ3x4fBWyZ3zJP8/26dCT9NdEN8/70+Ynh6zgxy3HncoEcs4PTItYcv1nYpEXBvfl6QgEdtpb0yG8w=="],
+
+ "unplugin-unused": ["unplugin-unused@0.2.3", "", { "dependencies": { "@rollup/pluginutils": "^5.1.0", "js-tokens": "^9.0.0", "picocolors": "^1.0.1", "pkg-types": "^1.2.0", "unplugin": "^1.14.0" } }, "sha512-qX708+nM4zi51RPMPgvOSqRs/73kUFKUO49oaBngg2t/VW5MhdbTkSQG/S1HEGsIvZcB/t32KzbISCF0n+UPSw=="],
+
+ "unplugin-utils": ["unplugin-utils@0.3.1", "", { "dependencies": { "pathe": "^2.0.3", "picomatch": "^4.0.3" } }, "sha512-5lWVjgi6vuHhJ526bI4nlCOmkCIF3nnfXkCMDeMJrtdvxTs6ZFCM8oNufGTsDbKv/tJ/xj8RpvXjRuPBZJuJog=="],
+
+ "until-async": ["until-async@3.0.2", "", {}, "sha512-IiSk4HlzAMqTUseHHe3VhIGyuFmN90zMTpD3Z3y8jeQbzLIq500MVM7Jq2vUAnTKAFPJrqwkzr6PoTcPhGcOiw=="],
+
"update-browserslist-db": ["update-browserslist-db@1.1.3", "", { "dependencies": { "escalade": "^3.2.0", "picocolors": "^1.1.1" }, "peerDependencies": { "browserslist": ">= 4.21.0" }, "bin": { "update-browserslist-db": "cli.js" } }, "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw=="],
"update-notifier": ["update-notifier@7.3.1", "", { "dependencies": { "boxen": "^8.0.1", "chalk": "^5.3.0", "configstore": "^7.0.0", "is-in-ci": "^1.0.0", "is-installed-globally": "^1.0.0", "is-npm": "^6.0.0", "latest-version": "^9.0.0", "pupa": "^3.1.0", "semver": "^7.6.3", "xdg-basedir": "^5.1.0" } }, "sha512-+dwUY4L35XFYEzE+OAL3sarJdUioVovq+8f7lcIJ7wnmnYQV5UD1Y/lcwaMSyaQ6Bj3JMj1XSTjZbNLHn/19yA=="],
- "uri-js": ["uri-js@4.4.1", "", { "dependencies": { "punycode": "^2.1.0" } }, "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg=="],
+ "uri-js": ["uri-js@4.4.1", "", { "dependencies": { "punycode": "^2.1.0" } }, "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg=="],
+
+ "url": ["url@0.11.4", "", { "dependencies": { "punycode": "^1.4.1", "qs": "^6.12.3" } }, "sha512-oCwdVC7mTuWiPyjLUz/COz5TLk6wgp0RCsN+wHZ2Ekneac9w8uuV0njcbbie2ME+Vs+d6duwmYuR3HgQXs1fOg=="],
+
+ "urlpattern-polyfill": ["urlpattern-polyfill@10.1.0", "", {}, "sha512-IGjKp/o0NL3Bso1PymYURCJxMPNAf/ILOpendP9f5B6e1rTJgdgiOvgfoT8VxCAdY+Wisb9uhGaJJf3yZ2V9nw=="],
+
+ "use-callback-ref": ["use-callback-ref@1.3.3", "", { "dependencies": { "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg=="],
+
+ "use-sidecar": ["use-sidecar@1.1.3", "", { "dependencies": { "detect-node-es": "^1.1.0", "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ=="],
+
+ "use-sync-external-store": ["use-sync-external-store@1.6.0", "", { "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w=="],
+
+ "usehooks-ts": ["usehooks-ts@3.1.1", "", { "dependencies": { "lodash.debounce": "^4.0.8" }, "peerDependencies": { "react": "^16.8.0 || ^17 || ^18 || ^19 || ^19.0.0-rc" } }, "sha512-I4diPp9Cq6ieSUH2wu+fDAVQO43xwtulo+fKEidHUwZPnYImbtkTjzIJYcDcJqxgmX31GVqNFURodvcgHcW0pA=="],
+
+ "utf8-byte-length": ["utf8-byte-length@1.0.5", "", {}, "sha512-Xn0w3MtiQ6zoz2vFyUVruaCL53O/DwUvkEeOvj+uulMm0BkUGYWmBYVyElqZaSLhY6ZD0ulfU3aBra2aVT4xfA=="],
+
+ "util": ["util@0.12.5", "", { "dependencies": { "inherits": "^2.0.3", "is-arguments": "^1.0.4", "is-generator-function": "^1.0.7", "is-typed-array": "^1.1.3", "which-typed-array": "^1.1.2" } }, "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA=="],
+
+ "util-deprecate": ["util-deprecate@1.0.2", "", {}, "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="],
+
+ "uuid": ["uuid@13.0.0", "", { "bin": { "uuid": "dist-node/bin/uuid" } }, "sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w=="],
+
+ "validate-npm-package-license": ["validate-npm-package-license@3.0.4", "", { "dependencies": { "spdx-correct": "^3.0.0", "spdx-expression-parse": "^3.0.0" } }, "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew=="],
+
+ "vary": ["vary@1.1.2", "", {}, "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg=="],
+
+ "verror": ["verror@1.10.1", "", { "dependencies": { "assert-plus": "^1.0.0", "core-util-is": "1.0.2", "extsprintf": "^1.2.0" } }, "sha512-veufcmxri4e3XSrT0xwfUR7kguIkaxBeosDg00yDWhk49wdwkSUrvvsm7nc75e1PUyvIeZj6nS8VQRYz2/S4Xg=="],
+
+ "vfile": ["vfile@6.0.3", "", { "dependencies": { "@types/unist": "^3.0.0", "vfile-message": "^4.0.0" } }, "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q=="],
+
+ "vfile-location": ["vfile-location@5.0.3", "", { "dependencies": { "@types/unist": "^3.0.0", "vfile": "^6.0.0" } }, "sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg=="],
+
+ "vfile-message": ["vfile-message@4.0.3", "", { "dependencies": { "@types/unist": "^3.0.0", "unist-util-stringify-position": "^4.0.0" } }, "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw=="],
+
+ "victory-vendor": ["victory-vendor@37.3.6", "", { "dependencies": { "@types/d3-array": "^3.0.3", "@types/d3-ease": "^3.0.0", "@types/d3-interpolate": "^3.0.1", "@types/d3-scale": "^4.0.2", "@types/d3-shape": "^3.1.0", "@types/d3-time": "^3.0.0", "@types/d3-timer": "^3.0.0", "d3-array": "^3.1.6", "d3-ease": "^3.0.1", "d3-interpolate": "^3.0.1", "d3-scale": "^4.0.2", "d3-shape": "^3.1.0", "d3-time": "^3.0.0", "d3-timer": "^3.0.1" } }, "sha512-SbPDPdDBYp+5MJHhBCAyI7wKM3d5ivekigc2Dk2s7pgbZ9wIgIBYGVw4zGHBml/qTFbexrofXW6Gu4noGxrOwQ=="],
+
+ "vite": ["vite@7.2.7", "", { "dependencies": { "esbuild": "^0.25.0", "fdir": "^6.5.0", "picomatch": "^4.0.3", "postcss": "^8.5.6", "rollup": "^4.43.0", "tinyglobby": "^0.2.15" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^20.19.0 || >=22.12.0", "jiti": ">=1.21.0", "less": "^4.0.0", "lightningcss": "^1.21.0", "sass": "^1.70.0", "sass-embedded": "^1.70.0", "stylus": ">=0.54.8", "sugarss": "^5.0.0", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["@types/node", "jiti", "less", "lightningcss", "sass", "sass-embedded", "stylus", "sugarss", "terser", "tsx", "yaml"], "bin": { "vite": "bin/vite.js" } }, "sha512-ITcnkFeR3+fI8P1wMgItjGrR10170d8auB4EpMLPqmx6uxElH3a/hHGQabSHKdqd4FXWO1nFIp9rRn7JQ34ACQ=="],
+
+ "vite-dev-rpc": ["vite-dev-rpc@1.1.0", "", { "dependencies": { "birpc": "^2.4.0", "vite-hot-client": "^2.1.0" }, "peerDependencies": { "vite": "^2.9.0 || ^3.0.0-0 || ^4.0.0-0 || ^5.0.0-0 || ^6.0.1 || ^7.0.0-0" } }, "sha512-pKXZlgoXGoE8sEKiKJSng4hI1sQ4wi5YT24FCrwrLt6opmkjlqPPVmiPWWJn8M8byMxRGzp1CrFuqQs4M/Z39A=="],
+
+ "vite-hot-client": ["vite-hot-client@2.1.0", "", { "peerDependencies": { "vite": "^2.6.0 || ^3.0.0 || ^4.0.0 || ^5.0.0-0 || ^6.0.0-0 || ^7.0.0-0" } }, "sha512-7SpgZmU7R+dDnSmvXE1mfDtnHLHQSisdySVR7lO8ceAXvM0otZeuQQ6C8LrS5d/aYyP/QZ0hI0L+dIPrm4YlFQ=="],
- "urlpattern-polyfill": ["urlpattern-polyfill@10.1.0", "", {}, "sha512-IGjKp/o0NL3Bso1PymYURCJxMPNAf/ILOpendP9f5B6e1rTJgdgiOvgfoT8VxCAdY+Wisb9uhGaJJf3yZ2V9nw=="],
+ "vite-plugin-inspect": ["vite-plugin-inspect@11.3.3", "", { "dependencies": { "ansis": "^4.1.0", "debug": "^4.4.1", "error-stack-parser-es": "^1.0.5", "ohash": "^2.0.11", "open": "^10.2.0", "perfect-debounce": "^2.0.0", "sirv": "^3.0.1", "unplugin-utils": "^0.3.0", "vite-dev-rpc": "^1.1.0" }, "peerDependencies": { "vite": "^6.0.0 || ^7.0.0-0" } }, "sha512-u2eV5La99oHoYPHE6UvbwgEqKKOQGz86wMg40CCosP6q8BkB6e5xPneZfYagK4ojPJSj5anHCrnvC20DpwVdRA=="],
- "use-callback-ref": ["use-callback-ref@1.3.3", "", { "dependencies": { "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg=="],
+ "vite-plugin-node-polyfills": ["vite-plugin-node-polyfills@0.24.0", "", { "dependencies": { "@rollup/plugin-inject": "^5.0.5", "node-stdlib-browser": "^1.2.0" }, "peerDependencies": { "vite": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" } }, "sha512-GA9QKLH+vIM8NPaGA+o2t8PDfFUl32J8rUp1zQfMKVJQiNkOX4unE51tR6ppl6iKw5yOrDAdSH7r/UIFLCVhLw=="],
- "use-sidecar": ["use-sidecar@1.1.3", "", { "dependencies": { "detect-node-es": "^1.1.0", "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ=="],
+ "vite-plugin-storybook-nextjs": ["vite-plugin-storybook-nextjs@3.1.5", "", { "dependencies": { "@next/env": "16.0.0", "image-size": "^2.0.0", "magic-string": "^0.30.11", "module-alias": "^2.2.3", "ts-dedent": "^2.2.0", "vite-tsconfig-paths": "^5.1.4" }, "peerDependencies": { "next": "^14.1.0 || ^15.0.0 || ^16.0.0", "storybook": "^0.0.0-0 || ^9.0.0 || ^10.0.0 || ^10.0.0-0 || ^10.1.0-0 || ^10.2.0-0", "vite": "^5.0.0 || ^6.0.0 || ^7.0.0" } }, "sha512-Wwp9V2P9ZcAFbe3aWb0eTLEvZAiNtQ7Ry3k0p3vloE2fCgojZO44895ISXU3Fy9ndVGhaOOcmPfxmG4h1YqdcQ=="],
- "use-sync-external-store": ["use-sync-external-store@1.6.0", "", { "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w=="],
+ "vite-tsconfig-paths": ["vite-tsconfig-paths@5.1.4", "", { "dependencies": { "debug": "^4.1.1", "globrex": "^0.1.2", "tsconfck": "^3.0.3" }, "peerDependencies": { "vite": "*" }, "optionalPeers": ["vite"] }, "sha512-cYj0LRuLV2c2sMqhqhGpaO3LretdtMn/BVX4cPLanIZuwwrkVl+lK84E/miEXkCHWXuq65rhNN4rXsBcOB3S4w=="],
- "utf8-byte-length": ["utf8-byte-length@1.0.5", "", {}, "sha512-Xn0w3MtiQ6zoz2vFyUVruaCL53O/DwUvkEeOvj+uulMm0BkUGYWmBYVyElqZaSLhY6ZD0ulfU3aBra2aVT4xfA=="],
+ "vm-browserify": ["vm-browserify@1.1.2", "", {}, "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ=="],
- "util-deprecate": ["util-deprecate@1.0.2", "", {}, "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="],
+ "vscode-jsonrpc": ["vscode-jsonrpc@8.2.0", "", {}, "sha512-C+r0eKJUIfiDIfwJhria30+TYWPtuHJXHtI7J0YlOmKAo7ogxP20T0zxB7HZQIFhIyvoBPwWskjxrvAtfjyZfA=="],
- "uuid": ["uuid@13.0.0", "", { "bin": { "uuid": "dist-node/bin/uuid" } }, "sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w=="],
+ "vscode-languageserver": ["vscode-languageserver@9.0.1", "", { "dependencies": { "vscode-languageserver-protocol": "3.17.5" }, "bin": { "installServerIntoExtension": "bin/installServerIntoExtension" } }, "sha512-woByF3PDpkHFUreUa7Hos7+pUWdeWMXRd26+ZX2A8cFx6v/JPTtd4/uN0/jB6XQHYaOlHbio03NTHCqrgG5n7g=="],
- "validate-npm-package-license": ["validate-npm-package-license@3.0.4", "", { "dependencies": { "spdx-correct": "^3.0.0", "spdx-expression-parse": "^3.0.0" } }, "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew=="],
+ "vscode-languageserver-protocol": ["vscode-languageserver-protocol@3.17.5", "", { "dependencies": { "vscode-jsonrpc": "8.2.0", "vscode-languageserver-types": "3.17.5" } }, "sha512-mb1bvRJN8SVznADSGWM9u/b07H7Ecg0I3OgXDuLdn307rl/J3A9YD6/eYOssqhecL27hK1IPZAsaqh00i/Jljg=="],
- "vary": ["vary@1.1.2", "", {}, "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg=="],
+ "vscode-languageserver-textdocument": ["vscode-languageserver-textdocument@1.0.12", "", {}, "sha512-cxWNPesCnQCcMPeenjKKsOCKQZ/L6Tv19DTRIGuLWe32lyzWhihGVJ/rcckZXJxfdKCFvRLS3fpBIsV/ZGX4zA=="],
- "verror": ["verror@1.10.1", "", { "dependencies": { "assert-plus": "^1.0.0", "core-util-is": "1.0.2", "extsprintf": "^1.2.0" } }, "sha512-veufcmxri4e3XSrT0xwfUR7kguIkaxBeosDg00yDWhk49wdwkSUrvvsm7nc75e1PUyvIeZj6nS8VQRYz2/S4Xg=="],
+ "vscode-languageserver-types": ["vscode-languageserver-types@3.17.5", "", {}, "sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg=="],
- "vfile": ["vfile@6.0.3", "", { "dependencies": { "@types/unist": "^3.0.0", "vfile-message": "^4.0.0" } }, "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q=="],
+ "vscode-uri": ["vscode-uri@3.0.8", "", {}, "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw=="],
- "vfile-message": ["vfile-message@4.0.3", "", { "dependencies": { "@types/unist": "^3.0.0", "unist-util-stringify-position": "^4.0.0" } }, "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw=="],
+ "warning": ["warning@4.0.3", "", { "dependencies": { "loose-envify": "^1.0.0" } }, "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w=="],
"wcwidth": ["wcwidth@1.0.1", "", { "dependencies": { "defaults": "^1.0.3" } }, "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg=="],
+ "web-namespaces": ["web-namespaces@2.0.1", "", {}, "sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ=="],
+
+ "web-vitals": ["web-vitals@4.2.4", "", {}, "sha512-r4DIlprAGwJ7YM11VZp4R884m0Vmgr6EAKe3P+kO0PPj3Unqyvv59rczf6UiGcb9Z8QxZVcqKNwv/g0WNdWwsw=="],
+
"webidl-conversions": ["webidl-conversions@3.0.1", "", {}, "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="],
+ "webpack-bundle-analyzer": ["webpack-bundle-analyzer@4.10.1", "", { "dependencies": { "@discoveryjs/json-ext": "0.5.7", "acorn": "^8.0.4", "acorn-walk": "^8.0.0", "commander": "^7.2.0", "debounce": "^1.2.1", "escape-string-regexp": "^4.0.0", "gzip-size": "^6.0.0", "html-escaper": "^2.0.2", "is-plain-object": "^5.0.0", "opener": "^1.5.2", "picocolors": "^1.0.0", "sirv": "^2.0.3", "ws": "^7.3.1" }, "bin": { "webpack-bundle-analyzer": "lib/bin/analyzer.js" } }, "sha512-s3P7pgexgT/HTUSYgxJyn28A+99mmLq4HsJepMPzu0R8ImJc52QNqaFYW1Z2z2uIb1/J3eYgaAWVpaC+v/1aAQ=="],
+
+ "webpack-virtual-modules": ["webpack-virtual-modules@0.6.2", "", {}, "sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ=="],
+
+ "whatwg-mimetype": ["whatwg-mimetype@3.0.0", "", {}, "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q=="],
+
"whatwg-url": ["whatwg-url@5.0.0", "", { "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" } }, "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw=="],
"when-exit": ["when-exit@2.1.4", "", {}, "sha512-4rnvd3A1t16PWzrBUcSDZqcAmsUIy4minDXT/CZ8F2mVDgd65i4Aalimgz1aQkRGU0iH5eT5+6Rx2TK8o443Pg=="],
"which": ["which@2.0.2", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "./bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="],
+ "which-typed-array": ["which-typed-array@1.1.19", "", { "dependencies": { "available-typed-arrays": "^1.0.7", "call-bind": "^1.0.8", "call-bound": "^1.0.4", "for-each": "^0.3.5", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-tostringtag": "^1.0.2" } }, "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw=="],
+
"widest-line": ["widest-line@5.0.0", "", { "dependencies": { "string-width": "^7.0.0" } }, "sha512-c9bZp7b5YtRj2wOe6dlj32MK+Bx/M/d+9VB2SHM1OtsUHR0aV0tdP6DWh/iMt0kWi1t5g1Iudu6hQRNd1A4PVA=="],
"wordwrap": ["wordwrap@1.0.0", "", {}, "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q=="],
@@ -2458,7 +3950,7 @@
"y18n": ["y18n@5.0.8", "", {}, "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA=="],
- "yallist": ["yallist@5.0.0", "", {}, "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw=="],
+ "yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="],
"yargs": ["yargs@17.7.2", "", { "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", "string-width": "^4.2.3", "y18n": "^5.0.5", "yargs-parser": "^21.1.1" } }, "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w=="],
@@ -2466,16 +3958,22 @@
"yauzl": ["yauzl@2.10.0", "", { "dependencies": { "buffer-crc32": "~0.2.3", "fd-slicer": "~1.1.0" } }, "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g=="],
+ "yjs": ["yjs@13.6.27", "", { "dependencies": { "lib0": "^0.2.99" } }, "sha512-OIDwaflOaq4wC6YlPBy2L6ceKeKuF7DeTxx+jPzv1FHn9tCZ0ZwSRnUBxD05E3yed46fv/FWJbvR+Ud7x0L7zw=="],
+
"yocto-queue": ["yocto-queue@0.1.0", "", {}, "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q=="],
"yoctocolors": ["yoctocolors@2.1.2", "", {}, "sha512-CzhO+pFNo8ajLM2d2IW/R93ipy99LWjtwblvC1RsoSUMZgyLbYFr221TnSNT7GjGdYui6P459mw9JH/g/zW2ug=="],
+ "yoctocolors-cjs": ["yoctocolors-cjs@2.1.3", "", {}, "sha512-U/PBtDf35ff0D8X8D0jfdzHYEPFxAI7jJlxZXwCSez5M3190m+QobIfh+sWDWSHMCWWJN2AWamkegn6vr6YBTw=="],
+
"yoga-layout": ["yoga-layout@3.2.1", "", {}, "sha512-0LPOt3AxKqMdFBZA3HBAt/t/8vIKq7VaQYbuA8WxCgung+p9TVyKRYdpvCb80HcdTN2NkbIKbhNwKUfm3tQywQ=="],
- "zod": ["zod@4.1.11", "", {}, "sha512-WPsqwxITS2tzx1bzhIKsEs19ABD5vmCVa4xBo2tq/SrV4RNZtfws1EnCWQXM6yh8bD08a1idvkB5MZSBiZsjwg=="],
+ "zod": ["zod@4.1.13", "", {}, "sha512-AvvthqfqrAhNH9dnfmrfKzX5upOdjUVJYFqNSlkmGf64gRaTzlPwz99IHYnVs28qYAybvAlBV+H7pn0saFY4Ig=="],
"zod-to-json-schema": ["zod-to-json-schema@3.24.6", "", { "peerDependencies": { "zod": "^3.24.1" } }, "sha512-h/z3PKvcTcTetyjl1fkj79MHNEjm+HpD6NXheWjzOekY7kV+lwDYnHw+ivHkijnCSMz1yJaWBD9vu/Fcmk+vEg=="],
+ "zod-validation-error": ["zod-validation-error@4.0.2", "", { "peerDependencies": { "zod": "^3.25.0 || ^4.0.0" } }, "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ=="],
+
"zwitch": ["zwitch@2.0.4", "", {}, "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A=="],
"@ai-sdk/anthropic/@ai-sdk/provider-utils": ["@ai-sdk/provider-utils@3.0.10", "", { "dependencies": { "@ai-sdk/provider": "2.0.0", "@standard-schema/spec": "^1.0.0", "eventsource-parser": "^3.0.5" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-T1gZ76gEIwffep6MWI0QNy9jgoybUHE7TRaHB5k54K8mF91ciGFlbtCGxDYhMH3nCRergKwYFIDeFF0hJSIQHQ=="],
@@ -2492,8 +3990,64 @@
"@ai-sdk/xai/@ai-sdk/provider-utils": ["@ai-sdk/provider-utils@3.0.10", "", { "dependencies": { "@ai-sdk/provider": "2.0.0", "@standard-schema/spec": "^1.0.0", "eventsource-parser": "^3.0.5" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-T1gZ76gEIwffep6MWI0QNy9jgoybUHE7TRaHB5k54K8mF91ciGFlbtCGxDYhMH3nCRergKwYFIDeFF0hJSIQHQ=="],
+ "@auth/core/preact": ["preact@10.24.3", "", {}, "sha512-Z2dPnBnMUfyQfSQ+GBdsGa16hz35YmLmtTLhM169uW944hYL6xzTYkJjC07j+Wosz733pMWx0fgON3JNw1jJQA=="],
+
+ "@aws-crypto/sha1-browser/@smithy/util-utf8": ["@smithy/util-utf8@2.3.0", "", { "dependencies": { "@smithy/util-buffer-from": "^2.2.0", "tslib": "^2.6.2" } }, "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A=="],
+
+ "@aws-crypto/sha256-browser/@smithy/util-utf8": ["@smithy/util-utf8@2.3.0", "", { "dependencies": { "@smithy/util-buffer-from": "^2.2.0", "tslib": "^2.6.2" } }, "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A=="],
+
+ "@aws-crypto/util/@smithy/util-utf8": ["@smithy/util-utf8@2.3.0", "", { "dependencies": { "@smithy/util-buffer-from": "^2.2.0", "tslib": "^2.6.2" } }, "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A=="],
+
+ "@babel/code-frame/js-tokens": ["js-tokens@4.0.0", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="],
+
+ "@babel/core/@babel/generator": ["@babel/generator@7.28.5", "", { "dependencies": { "@babel/parser": "^7.28.5", "@babel/types": "^7.28.5", "@jridgewell/gen-mapping": "^0.3.12", "@jridgewell/trace-mapping": "^0.3.28", "jsesc": "^3.0.2" } }, "sha512-3EwLFhZ38J4VyIP6WNtt2kUdW9dokXA9Cr4IVIFHuCpZ3H8/YFOl5JjZHisrn1fATPBmKKqXzDFvh9fUwHz6CQ=="],
+
+ "@babel/core/@babel/parser": ["@babel/parser@7.28.5", "", { "dependencies": { "@babel/types": "^7.28.5" }, "bin": "./bin/babel-parser.js" }, "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ=="],
+
+ "@babel/core/@babel/types": ["@babel/types@7.28.5", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.28.5" } }, "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA=="],
+
+ "@babel/core/semver": ["semver@6.3.1", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="],
+
+ "@babel/helper-compilation-targets/lru-cache": ["lru-cache@5.1.1", "", { "dependencies": { "yallist": "^3.0.2" } }, "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w=="],
+
+ "@babel/helper-compilation-targets/semver": ["semver@6.3.1", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="],
+
+ "@babel/helper-module-imports/@babel/types": ["@babel/types@7.28.5", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.28.5" } }, "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA=="],
+
+ "@babel/helper-module-transforms/@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.28.5", "", {}, "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q=="],
+
+ "@babel/helpers/@babel/types": ["@babel/types@7.28.5", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.28.5" } }, "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA=="],
+
+ "@babel/template/@babel/parser": ["@babel/parser@7.28.5", "", { "dependencies": { "@babel/types": "^7.28.5" }, "bin": "./bin/babel-parser.js" }, "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ=="],
+
+ "@babel/template/@babel/types": ["@babel/types@7.28.5", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.28.5" } }, "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA=="],
+
+ "@babel/traverse/@babel/generator": ["@babel/generator@7.28.5", "", { "dependencies": { "@babel/parser": "^7.28.5", "@babel/types": "^7.28.5", "@jridgewell/gen-mapping": "^0.3.12", "@jridgewell/trace-mapping": "^0.3.28", "jsesc": "^3.0.2" } }, "sha512-3EwLFhZ38J4VyIP6WNtt2kUdW9dokXA9Cr4IVIFHuCpZ3H8/YFOl5JjZHisrn1fATPBmKKqXzDFvh9fUwHz6CQ=="],
+
+ "@babel/traverse/@babel/parser": ["@babel/parser@7.28.5", "", { "dependencies": { "@babel/types": "^7.28.5" }, "bin": "./bin/babel-parser.js" }, "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ=="],
+
+ "@babel/traverse/@babel/types": ["@babel/types@7.28.5", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.28.5" } }, "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA=="],
+
"@blink-sdk/github/file-type": ["file-type@21.0.0", "", { "dependencies": { "@tokenizer/inflate": "^0.2.7", "strtok3": "^10.2.2", "token-types": "^6.0.0", "uint8array-extras": "^1.4.0" } }, "sha512-ek5xNX2YBYlXhiUXui3D/BXa3LdqPmoLJ7rqEx2bKJ7EAUEfmXgW0Das7Dc6Nr9MvqaOnIqiPV0mZk/r/UpNAg=="],
+ "@blink-sdk/scout-agent/tsdown": ["tsdown@0.3.1", "", { "dependencies": { "cac": "^6.7.14", "chokidar": "^4.0.1", "consola": "^3.2.3", "debug": "^4.3.7", "picocolors": "^1.1.1", "pkg-types": "^1.2.1", "rolldown": "nightly", "tinyglobby": "^0.2.10", "unconfig": "^0.6.0", "unplugin-isolated-decl": "^0.7.2", "unplugin-unused": "^0.2.3" }, "bin": { "tsdown": "bin/tsdown.js" } }, "sha512-5WLFU7f2NRnsez0jxi7m2lEQNPvBOdos0W8vHvKDnS6tYTfOfmZ5D2z/G9pFTQSjeBhoi6BFRMybc4LzCOKR8A=="],
+
+ "@blink.so/compute-protocol-worker/@blink-sdk/compute-protocol": ["@blink-sdk/compute-protocol@0.0.2", "", { "peerDependencies": { "ws": ">= 8", "zod": ">= 4" } }, "sha512-QD89Y4b3EbZjncROb6kwUr1uQV4N3UD9q7Hp2PzL4A2BAzsqk50w7KfN9RxfDiZ3fU7Pectg71T4M8ZCwdJcdQ=="],
+
+ "@blink.so/site/dotenv": ["dotenv@16.6.1", "", {}, "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow=="],
+
+ "@blink.so/site/next-auth": ["next-auth@5.0.0-beta.30", "", { "dependencies": { "@auth/core": "0.41.0" }, "peerDependencies": { "@simplewebauthn/browser": "^9.0.1", "@simplewebauthn/server": "^9.0.2", "next": "^14.0.0-0 || ^15.0.0 || ^16.0.0", "nodemailer": "^7.0.7", "react": "^18.2.0 || ^19.0.0" }, "optionalPeers": ["@simplewebauthn/browser", "@simplewebauthn/server", "nodemailer"] }, "sha512-+c51gquM3F6nMVmoAusRJ7RIoY0K4Ts9HCCwyy/BRoe4mp3msZpOzYMyb5LAYc1wSo74PMQkGDcaghIO7W6Xjg=="],
+
+ "@blink.so/site/zod": ["zod@3.25.76", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="],
+
+ "@blink/desktop/@blink.so/api": ["@blink.so/api@0.0.11", "", { "optionalDependencies": { "@blink-sdk/compute-protocol": ">= 0.0.2" }, "peerDependencies": { "ai": ">= 5", "react": ">= 18", "zod": ">= 4" }, "optionalPeers": ["react"] }, "sha512-4JW0fsGFn8IN5r+FpdbkqXkFqyCXQ8sDXoETdIBczLe3/+JP0Q2ItvN9XtR/eLNIshIL9Yz+gZtB6AVWQIcIWg=="],
+
+ "@blink/desktop/esbuild": ["esbuild@0.25.10", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.25.10", "@esbuild/android-arm": "0.25.10", "@esbuild/android-arm64": "0.25.10", "@esbuild/android-x64": "0.25.10", "@esbuild/darwin-arm64": "0.25.10", "@esbuild/darwin-x64": "0.25.10", "@esbuild/freebsd-arm64": "0.25.10", "@esbuild/freebsd-x64": "0.25.10", "@esbuild/linux-arm": "0.25.10", "@esbuild/linux-arm64": "0.25.10", "@esbuild/linux-ia32": "0.25.10", "@esbuild/linux-loong64": "0.25.10", "@esbuild/linux-mips64el": "0.25.10", "@esbuild/linux-ppc64": "0.25.10", "@esbuild/linux-riscv64": "0.25.10", "@esbuild/linux-s390x": "0.25.10", "@esbuild/linux-x64": "0.25.10", "@esbuild/netbsd-arm64": "0.25.10", "@esbuild/netbsd-x64": "0.25.10", "@esbuild/openbsd-arm64": "0.25.10", "@esbuild/openbsd-x64": "0.25.10", "@esbuild/openharmony-arm64": "0.25.10", "@esbuild/sunos-x64": "0.25.10", "@esbuild/win32-arm64": "0.25.10", "@esbuild/win32-ia32": "0.25.10", "@esbuild/win32-x64": "0.25.10" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-9RiGKvCwaqxO2owP61uQ4BgNborAQskMR6QusfWzQqv7AZOg5oGehdY2pRJMTKuwxd1IDBP4rSbI5lHzU7SMsQ=="],
+
+ "@blink/desktop/lucide-react": ["lucide-react@0.544.0", "", { "peerDependencies": { "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-t5tS44bqd825zAW45UQxpG2CvcC4urOwn2TrwSH8u+MjeE+1NnWl6QqeQ/6NdjMqdOygyiT9p3Ev0p1NJykxjw=="],
+
+ "@blink/desktop/react-dom": ["react-dom@19.2.0", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.0" } }, "sha512-UlbRu4cAiGaIewkPyiRGJk0imDN2T3JjieT6spoL2UeSf5od4n5LB/mQ4ejmxhCFT1tYe8IvaFulzynWovsEFQ=="],
+
"@develar/schema-utils/ajv": ["ajv@6.12.6", "", { "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" } }, "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g=="],
"@electron/asar/commander": ["commander@5.1.0", "", {}, "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg=="],
@@ -2514,8 +4068,6 @@
"@electron/node-gyp/semver": ["semver@7.7.2", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],
- "@electron/node-gyp/tar": ["tar@6.2.1", "", { "dependencies": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", "minipass": "^5.0.0", "minizlib": "^2.1.1", "mkdirp": "^1.0.3", "yallist": "^4.0.0" } }, "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A=="],
-
"@electron/notarize/fs-extra": ["fs-extra@9.1.0", "", { "dependencies": { "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", "universalify": "^2.0.0" } }, "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ=="],
"@electron/osx-sign/isbinaryfile": ["isbinaryfile@4.0.10", "", {}, "sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw=="],
@@ -2524,14 +4076,14 @@
"@electron/rebuild/semver": ["semver@7.7.2", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],
- "@electron/rebuild/tar": ["tar@6.2.1", "", { "dependencies": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", "minipass": "^5.0.0", "minizlib": "^2.1.1", "mkdirp": "^1.0.3", "yallist": "^4.0.0" } }, "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A=="],
-
"@electron/universal/fs-extra": ["fs-extra@11.3.2", "", { "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", "universalify": "^2.0.0" } }, "sha512-Xr9F6z6up6Ws+NjzMCZc6WXg2YFRlrLP9NQDO3VQrWrfiojdhS56TzueT88ze0uBdCTwEIhQ3ptnmKeWGFAe0A=="],
"@electron/universal/minimatch": ["minimatch@9.0.5", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],
"@electron/windows-sign/fs-extra": ["fs-extra@11.3.2", "", { "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", "universalify": "^2.0.0" } }, "sha512-Xr9F6z6up6Ws+NjzMCZc6WXg2YFRlrLP9NQDO3VQrWrfiojdhS56TzueT88ze0uBdCTwEIhQ3ptnmKeWGFAe0A=="],
+ "@esbuild-kit/core-utils/esbuild": ["esbuild@0.18.20", "", { "optionalDependencies": { "@esbuild/android-arm": "0.18.20", "@esbuild/android-arm64": "0.18.20", "@esbuild/android-x64": "0.18.20", "@esbuild/darwin-arm64": "0.18.20", "@esbuild/darwin-x64": "0.18.20", "@esbuild/freebsd-arm64": "0.18.20", "@esbuild/freebsd-x64": "0.18.20", "@esbuild/linux-arm": "0.18.20", "@esbuild/linux-arm64": "0.18.20", "@esbuild/linux-ia32": "0.18.20", "@esbuild/linux-loong64": "0.18.20", "@esbuild/linux-mips64el": "0.18.20", "@esbuild/linux-ppc64": "0.18.20", "@esbuild/linux-riscv64": "0.18.20", "@esbuild/linux-s390x": "0.18.20", "@esbuild/linux-x64": "0.18.20", "@esbuild/netbsd-x64": "0.18.20", "@esbuild/openbsd-x64": "0.18.20", "@esbuild/sunos-x64": "0.18.20", "@esbuild/win32-arm64": "0.18.20", "@esbuild/win32-ia32": "0.18.20", "@esbuild/win32-x64": "0.18.20" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA=="],
+
"@google/gemini-cli-core/@opentelemetry/exporter-trace-otlp-http": ["@opentelemetry/exporter-trace-otlp-http@0.203.0", "", { "dependencies": { "@opentelemetry/core": "2.0.1", "@opentelemetry/otlp-exporter-base": "0.203.0", "@opentelemetry/otlp-transformer": "0.203.0", "@opentelemetry/resources": "2.0.1", "@opentelemetry/sdk-trace-base": "2.0.1" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-ZDiaswNYo0yq/cy1bBLJFe691izEJ6IgNmkjm4C6kE9ub/OMQqDXORx2D2j8fzTBTxONyzusbaZlqtfmyqURPw=="],
"@google/gemini-cli-core/@opentelemetry/instrumentation-http": ["@opentelemetry/instrumentation-http@0.203.0", "", { "dependencies": { "@opentelemetry/core": "2.0.1", "@opentelemetry/instrumentation": "0.203.0", "@opentelemetry/semantic-conventions": "^1.29.0", "forwarded-parse": "2.1.2" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-y3uQAcCOAwnO6vEuNVocmpVzG3PER6/YZqbPbbffDdJ9te5NkHEkfSMNzlC3+v7KlE+WinPGc3N7MR30G1HY2g=="],
@@ -2544,10 +4096,16 @@
"@google/gemini-cli-core/mime": ["mime@4.0.7", "", { "bin": { "mime": "bin/cli.js" } }, "sha512-2OfDPL+e03E0LrXaGYOtTFIYhiuzep94NSsuhrNULq+stylcJedcHdzHtz0atMUuGwJfFYs0YL5xeC/Ca2x0eQ=="],
+ "@inquirer/core/signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="],
+
+ "@inquirer/core/wrap-ansi": ["wrap-ansi@6.2.0", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA=="],
+
"@isaacs/cliui/string-width": ["string-width@5.1.2", "", { "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", "strip-ansi": "^7.0.1" } }, "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA=="],
"@isaacs/cliui/wrap-ansi": ["wrap-ansi@8.1.0", "", { "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", "strip-ansi": "^7.0.1" } }, "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ=="],
+ "@isaacs/fs-minipass/minipass": ["minipass@7.1.2", "", {}, "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw=="],
+
"@jaaydenh/gemini-cli/diff": ["diff@7.0.0", "", {}, "sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw=="],
"@jaaydenh/gemini-cli/highlight.js": ["highlight.js@11.11.1", "", {}, "sha512-Xwwo44whKBVCYoliBQwaPvtd/2tYFkRQtXDWj1nackaV2JPXx3L0+Jvd8/qCJ2p+ML0/XVkJ2q+Mr+UVdpJK5w=="],
@@ -2566,6 +4124,10 @@
"@modelcontextprotocol/sdk/zod": ["zod@3.25.76", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="],
+ "@napi-rs/wasm-runtime/@emnapi/runtime": ["@emnapi/runtime@1.5.0", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-97/BJ3iXHww3djw6hYIfErCZFee7qCtrneuLa20UXFCOTCfBM2cvQHjWJ2EG0s0MtdNwInarqCTz35i4wWXHsQ=="],
+
+ "@neondatabase/serverless/@types/node": ["@types/node@22.18.8", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-pAZSHMiagDR7cARo/cch1f3rXy0AEXwsVsVH09FcyeJVAzCnGgmYis7P3JidtTUjyadhTeSo8TgRPswstghDaw=="],
+
"@npmcli/fs/semver": ["semver@7.7.2", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],
"@npmcli/move-file/rimraf": ["rimraf@3.0.2", "", { "dependencies": { "glob": "^7.1.3" }, "bin": { "rimraf": "bin.js" } }, "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA=="],
@@ -2752,6 +4314,38 @@
"@pnpm/network.ca-file/graceful-fs": ["graceful-fs@4.2.10", "", {}, "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA=="],
+ "@radix-ui/react-alert-dialog/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
+
+ "@radix-ui/react-collection/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
+
+ "@radix-ui/react-dialog/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
+
+ "@radix-ui/react-menu/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
+
+ "@radix-ui/react-primitive/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
+
+ "@radix-ui/react-separator/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.4", "", { "dependencies": { "@radix-ui/react-slot": "1.2.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg=="],
+
+ "@radix-ui/react-tooltip/@radix-ui/react-slot": ["@radix-ui/react-slot@1.2.3", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
+
+ "@reduxjs/toolkit/immer": ["immer@11.0.1", "", {}, "sha512-naDCyggtcBWANtIrjQEajhhBEuL9b0Zg4zmlWK2CzS6xCWSE39/vvf4LqnMjUAWHBhot4m9MHCM/Z+mfWhUkiA=="],
+
+ "@rollup/plugin-inject/estree-walker": ["estree-walker@2.0.2", "", {}, "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="],
+
+ "@rollup/pluginutils/estree-walker": ["estree-walker@2.0.2", "", {}, "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="],
+
+ "@slack/bolt/path-to-regexp": ["path-to-regexp@8.3.0", "", {}, "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA=="],
+
+ "@slack/logger/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@slack/oauth/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@slack/socket-mode/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@slack/web-api/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@tailwindcss/oxide/tar": ["tar@7.5.1", "", { "dependencies": { "@isaacs/fs-minipass": "^4.0.0", "chownr": "^3.0.0", "minipass": "^7.1.2", "minizlib": "^3.1.0", "yallist": "^5.0.0" } }, "sha512-nlGpxf+hv0v7GkWBK2V9spgactGOp0qvfWRxUMjqHyzrt3SgwE48DIv/FhqPHJYLHpgW1opq3nERbz5Anq7n1g=="],
+
"@tailwindcss/oxide-wasm32-wasi/@emnapi/core": ["@emnapi/core@1.5.0", "", { "dependencies": { "@emnapi/wasi-threads": "1.1.0", "tslib": "^2.4.0" }, "bundled": true }, "sha512-sbP8GzB1WDzacS8fgNPpHlp6C9VZe+SJP3F90W9rLemaQj2PzIuTEl1qDOYQf58YIpyjViI24y9aPWCjEzY2cg=="],
"@tailwindcss/oxide-wasm32-wasi/@emnapi/runtime": ["@emnapi/runtime@1.5.0", "", { "dependencies": { "tslib": "^2.4.0" }, "bundled": true }, "sha512-97/BJ3iXHww3djw6hYIfErCZFee7qCtrneuLa20UXFCOTCfBM2cvQHjWJ2EG0s0MtdNwInarqCTz35i4wWXHsQ=="],
@@ -2764,10 +4358,76 @@
"@tailwindcss/oxide-wasm32-wasi/tslib": ["tslib@2.8.1", "", { "bundled": true }, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],
+ "@testing-library/dom/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="],
+
+ "@testing-library/jest-dom/aria-query": ["aria-query@5.3.2", "", {}, "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw=="],
+
+ "@testing-library/jest-dom/dom-accessibility-api": ["dom-accessibility-api@0.6.3", "", {}, "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w=="],
+
+ "@tokenizer/inflate/fflate": ["fflate@0.8.2", "", {}, "sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A=="],
+
+ "@types/babel__core/@babel/parser": ["@babel/parser@7.28.5", "", { "dependencies": { "@babel/types": "^7.28.5" }, "bin": "./bin/babel-parser.js" }, "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ=="],
+
+ "@types/babel__core/@babel/types": ["@babel/types@7.28.5", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.28.5" } }, "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA=="],
+
+ "@types/babel__generator/@babel/types": ["@babel/types@7.28.5", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.28.5" } }, "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA=="],
+
+ "@types/babel__template/@babel/parser": ["@babel/parser@7.28.5", "", { "dependencies": { "@babel/types": "^7.28.5" }, "bin": "./bin/babel-parser.js" }, "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ=="],
+
+ "@types/babel__template/@babel/types": ["@babel/types@7.28.5", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.28.5" } }, "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA=="],
+
+ "@types/babel__traverse/@babel/types": ["@babel/types@7.28.5", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.28.5" } }, "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA=="],
+
+ "@types/body-parser/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@types/bunyan/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@types/cacheable-request/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@types/connect/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@types/express-serve-static-core/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@types/fs-extra/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@types/glob/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@types/jsonwebtoken/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@types/keyv/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@types/marked-terminal/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
"@types/marked-terminal/marked": ["marked@11.2.0", "", { "bin": { "marked": "bin/marked.js" } }, "sha512-HR0m3bvu0jAPYiIvLUUQtdg1g6D247//lvcekpHO1WMvbwDlwSkZAX9Lw4F4YHE1T0HaaNve0tuAWuV1UJ6vtw=="],
+ "@types/memcached/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@types/mysql/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@types/oracledb/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@types/pg/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@types/plist/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
"@types/react-syntax-highlighter/@types/react": ["@types/react@19.2.0", "", { "dependencies": { "csstype": "^3.0.2" } }, "sha512-1LOH8xovvsKsCBq1wnT4ntDUdCJKmnEakhsuoUSy6ExlHCkGP2hqnatagYTgFk6oeL0VU31u7SNjunPN+GchtA=="],
+ "@types/responselike/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@types/send/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@types/serve-static/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@types/tar-stream/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@types/tedious/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@types/ws/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "@types/yauzl/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "accepts/mime-types": ["mime-types@3.0.1", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA=="],
+
"aggregate-error/indent-string": ["indent-string@4.0.0", "", {}, "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg=="],
"ajv-keywords/ajv": ["ajv@6.12.6", "", { "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" } }, "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g=="],
@@ -2778,10 +4438,18 @@
"app-builder-lib/semver": ["semver@7.7.2", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],
- "app-builder-lib/tar": ["tar@6.2.1", "", { "dependencies": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", "minipass": "^5.0.0", "minizlib": "^2.1.1", "mkdirp": "^1.0.3", "yallist": "^4.0.0" } }, "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A=="],
+ "asn1.js/bn.js": ["bn.js@4.12.2", "", {}, "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw=="],
+
+ "better-opn/open": ["open@8.4.2", "", { "dependencies": { "define-lazy-prop": "^2.0.0", "is-docker": "^2.1.1", "is-wsl": "^2.2.0" } }, "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ=="],
+
+ "bl/buffer": ["buffer@5.7.1", "", { "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.1.13" } }, "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ=="],
+
+ "bl/readable-stream": ["readable-stream@3.6.2", "", { "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", "util-deprecate": "^1.0.1" } }, "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA=="],
"blink/@blink.so/api": ["@blink.so/api@1.0.0", "", { "optionalDependencies": { "@blink-sdk/compute-protocol": ">= 0.0.2" }, "peerDependencies": { "ai": ">= 5", "react": ">= 18", "zod": ">= 4" }, "optionalPeers": ["react"] }, "sha512-mBYfopecR+XaMw/W78H6aGgKyZMh99YwcGAU17LVAL+kk4uweJX3cul7958C3f8ovKSeXuXA33t64DbjY3Zi8w=="],
+ "blink/esbuild": ["esbuild@0.25.10", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.25.10", "@esbuild/android-arm": "0.25.10", "@esbuild/android-arm64": "0.25.10", "@esbuild/android-x64": "0.25.10", "@esbuild/darwin-arm64": "0.25.10", "@esbuild/darwin-x64": "0.25.10", "@esbuild/freebsd-arm64": "0.25.10", "@esbuild/freebsd-x64": "0.25.10", "@esbuild/linux-arm": "0.25.10", "@esbuild/linux-arm64": "0.25.10", "@esbuild/linux-ia32": "0.25.10", "@esbuild/linux-loong64": "0.25.10", "@esbuild/linux-mips64el": "0.25.10", "@esbuild/linux-ppc64": "0.25.10", "@esbuild/linux-riscv64": "0.25.10", "@esbuild/linux-s390x": "0.25.10", "@esbuild/linux-x64": "0.25.10", "@esbuild/netbsd-arm64": "0.25.10", "@esbuild/netbsd-x64": "0.25.10", "@esbuild/openbsd-arm64": "0.25.10", "@esbuild/openbsd-x64": "0.25.10", "@esbuild/openharmony-arm64": "0.25.10", "@esbuild/sunos-x64": "0.25.10", "@esbuild/win32-arm64": "0.25.10", "@esbuild/win32-ia32": "0.25.10", "@esbuild/win32-x64": "0.25.10" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-9RiGKvCwaqxO2owP61uQ4BgNborAQskMR6QusfWzQqv7AZOg5oGehdY2pRJMTKuwxd1IDBP4rSbI5lHzU7SMsQ=="],
+
"blink/tsdown": ["tsdown@0.14.2", "", { "dependencies": { "ansis": "^4.1.0", "cac": "^6.7.14", "chokidar": "^4.0.3", "debug": "^4.4.1", "diff": "^8.0.2", "empathic": "^2.0.0", "hookable": "^5.5.3", "rolldown": "latest", "rolldown-plugin-dts": "^0.15.8", "semver": "^7.7.2", "tinyexec": "^1.0.1", "tinyglobby": "^0.2.14", "tree-kill": "^1.2.2", "unconfig": "^7.3.3" }, "peerDependencies": { "@arethetypeswrong/core": "^0.18.1", "publint": "^0.3.0", "typescript": "^5.0.0", "unplugin-lightningcss": "^0.4.0", "unplugin-unused": "^0.5.0" }, "optionalPeers": ["@arethetypeswrong/core", "publint", "typescript", "unplugin-lightningcss", "unplugin-unused"], "bin": { "tsdown": "dist/run.mjs" } }, "sha512-6ThtxVZoTlR5YJov5rYvH8N1+/S/rD/pGfehdCLGznGgbxz+73EASV1tsIIZkLw2n+SXcERqHhcB/OkyxdKv3A=="],
"body-parser/iconv-lite": ["iconv-lite@0.6.3", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw=="],
@@ -2794,9 +4462,17 @@
"boxen/wrap-ansi": ["wrap-ansi@8.1.0", "", { "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", "strip-ansi": "^7.0.1" } }, "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ=="],
+ "browserify-aes/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
+ "browserify-des/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
+ "browserify-rsa/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
+ "browserify-sign/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
"builder-util/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="],
- "cacache/chownr": ["chownr@2.0.0", "", {}, "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ=="],
+ "bun-types/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
"cacache/glob": ["glob@8.1.0", "", { "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^5.0.1", "once": "^1.3.0" } }, "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ=="],
@@ -2806,12 +4482,14 @@
"cacache/rimraf": ["rimraf@3.0.2", "", { "dependencies": { "glob": "^7.1.3" }, "bin": { "rimraf": "bin.js" } }, "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA=="],
- "cacache/tar": ["tar@6.2.1", "", { "dependencies": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", "minipass": "^5.0.0", "minizlib": "^2.1.1", "mkdirp": "^1.0.3", "yallist": "^4.0.0" } }, "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A=="],
-
"cacheable-request/get-stream": ["get-stream@5.2.0", "", { "dependencies": { "pump": "^3.0.0" } }, "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA=="],
+ "cipher-base/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
"cli-highlight/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="],
+ "cli-highlight/parse5": ["parse5@5.1.1", "", {}, "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug=="],
+
"cli-highlight/yargs": ["yargs@16.2.0", "", { "dependencies": { "cliui": "^7.0.2", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", "string-width": "^4.2.0", "y18n": "^5.0.5", "yargs-parser": "^20.2.2" } }, "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw=="],
"cli-table3/string-width": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],
@@ -2828,18 +4506,46 @@
"concurrently/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="],
+ "concurrently/date-fns": ["date-fns@2.30.0", "", { "dependencies": { "@babel/runtime": "^7.21.0" } }, "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw=="],
+
"config-chain/ini": ["ini@1.3.8", "", {}, "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="],
+ "content-disposition/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
+ "crc/buffer": ["buffer@5.7.1", "", { "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.1.13" } }, "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ=="],
+
+ "create-ecdh/bn.js": ["bn.js@4.12.2", "", {}, "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw=="],
+
+ "create-hmac/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
+ "cytoscape-fcose/cose-base": ["cose-base@2.2.0", "", { "dependencies": { "layout-base": "^2.0.0" } }, "sha512-AzlgcsCbUMymkADOJtQm3wO9S3ltPfYOFD5033keQn9NJzIbtnZj+UdBJe7DYml/8TdbtHJW3j58SOnKhWY/5g=="],
+
+ "d3-dsv/commander": ["commander@7.2.0", "", {}, "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw=="],
+
+ "d3-dsv/iconv-lite": ["iconv-lite@0.6.3", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw=="],
+
+ "d3-sankey/d3-array": ["d3-array@2.12.1", "", { "dependencies": { "internmap": "^1.0.0" } }, "sha512-B0ErZK/66mHtEsR1TkPEEkwdy+WDesimkM5gpZr5Dsg54BiTA5RXtYW5qTLIAcekaS9xfZrzBLF/OAkB3Qn1YQ=="],
+
+ "d3-sankey/d3-shape": ["d3-shape@1.3.7", "", { "dependencies": { "d3-path": "1" } }, "sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw=="],
+
"decode-named-character-reference/character-entities": ["character-entities@2.0.2", "", {}, "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ=="],
+ "diffie-hellman/bn.js": ["bn.js@4.12.2", "", {}, "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw=="],
+
"dir-compare/minimatch": ["minimatch@3.1.2", "", { "dependencies": { "brace-expansion": "^1.1.7" } }, "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw=="],
"dmg-builder/iconv-lite": ["iconv-lite@0.6.3", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw=="],
"dmg-license/ajv": ["ajv@6.12.6", "", { "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" } }, "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g=="],
+ "dom-serializer/entities": ["entities@4.5.0", "", {}, "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="],
+
"dotenv-expand/dotenv": ["dotenv@16.4.7", "", {}, "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ=="],
+ "drizzle-kit/esbuild": ["esbuild@0.25.10", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.25.10", "@esbuild/android-arm": "0.25.10", "@esbuild/android-arm64": "0.25.10", "@esbuild/android-x64": "0.25.10", "@esbuild/darwin-arm64": "0.25.10", "@esbuild/darwin-x64": "0.25.10", "@esbuild/freebsd-arm64": "0.25.10", "@esbuild/freebsd-x64": "0.25.10", "@esbuild/linux-arm": "0.25.10", "@esbuild/linux-arm64": "0.25.10", "@esbuild/linux-ia32": "0.25.10", "@esbuild/linux-loong64": "0.25.10", "@esbuild/linux-mips64el": "0.25.10", "@esbuild/linux-ppc64": "0.25.10", "@esbuild/linux-riscv64": "0.25.10", "@esbuild/linux-s390x": "0.25.10", "@esbuild/linux-x64": "0.25.10", "@esbuild/netbsd-arm64": "0.25.10", "@esbuild/netbsd-x64": "0.25.10", "@esbuild/openbsd-arm64": "0.25.10", "@esbuild/openbsd-x64": "0.25.10", "@esbuild/openharmony-arm64": "0.25.10", "@esbuild/sunos-x64": "0.25.10", "@esbuild/win32-arm64": "0.25.10", "@esbuild/win32-ia32": "0.25.10", "@esbuild/win32-x64": "0.25.10" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-9RiGKvCwaqxO2owP61uQ4BgNborAQskMR6QusfWzQqv7AZOg5oGehdY2pRJMTKuwxd1IDBP4rSbI5lHzU7SMsQ=="],
+
+ "ecdsa-sig-formatter/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
"electron/@types/node": ["@types/node@22.18.8", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-pAZSHMiagDR7cARo/cch1f3rXy0AEXwsVsVH09FcyeJVAzCnGgmYis7P3JidtTUjyadhTeSo8TgRPswstghDaw=="],
"electron-builder/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="],
@@ -2850,14 +4556,26 @@
"electron-winstaller/fs-extra": ["fs-extra@7.0.1", "", { "dependencies": { "graceful-fs": "^4.1.2", "jsonfile": "^4.0.0", "universalify": "^0.1.0" } }, "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw=="],
+ "elliptic/bn.js": ["bn.js@4.12.2", "", {}, "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw=="],
+
"encoding/iconv-lite": ["iconv-lite@0.6.3", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw=="],
"esbuild-plugin-postcss2/fs-extra": ["fs-extra@9.1.0", "", { "dependencies": { "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", "universalify": "^2.0.0" } }, "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ=="],
+ "evp_bytestokey/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
+ "exa-js/dotenv": ["dotenv@16.4.7", "", {}, "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ=="],
+
+ "exa-js/zod": ["zod@3.25.76", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="],
+
"execa/is-stream": ["is-stream@4.0.1", "", {}, "sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A=="],
"execa/signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="],
+ "express/cookie": ["cookie@0.7.2", "", {}, "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w=="],
+
+ "express/mime-types": ["mime-types@3.0.1", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA=="],
+
"extract-zip/get-stream": ["get-stream@5.2.0", "", { "dependencies": { "pump": "^3.0.0" } }, "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA=="],
"figures/is-unicode-supported": ["is-unicode-supported@2.1.0", "", {}, "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ=="],
@@ -2866,8 +4584,6 @@
"foreground-child/signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="],
- "form-data/mime-types": ["mime-types@2.1.35", "", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="],
-
"fs-minipass/minipass": ["minipass@3.3.6", "", { "dependencies": { "yallist": "^4.0.0" } }, "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw=="],
"gaxios/uuid": ["uuid@9.0.1", "", { "bin": { "uuid": "dist/bin/uuid" } }, "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA=="],
@@ -2876,6 +4592,8 @@
"glob/minimatch": ["minimatch@9.0.5", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="],
+ "glob/minipass": ["minipass@7.1.2", "", {}, "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw=="],
+
"global-agent/semver": ["semver@7.7.2", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],
"global-prefix/ini": ["ini@1.3.8", "", {}, "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="],
@@ -2888,6 +4606,12 @@
"gtoken/jws": ["jws@4.0.0", "", { "dependencies": { "jwa": "^2.0.0", "safe-buffer": "^5.0.1" } }, "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg=="],
+ "happy-dom/@types/node": ["@types/node@20.19.25", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-ZsJzA5thDQMSQO788d7IocwwQbI8B5OPzmqNvpf3NY/+MHDAS759Wo0gd2WQeXYt5AAAQjzcrTVC6SKCuYgoCQ=="],
+
+ "hash-base/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
+ "hast-util-from-parse5/hastscript": ["hastscript@9.0.1", "", { "dependencies": { "@types/hast": "^3.0.0", "comma-separated-tokens": "^2.0.0", "hast-util-parse-selector": "^4.0.0", "property-information": "^7.0.0", "space-separated-tokens": "^2.0.0" } }, "sha512-g7df9rMFX/SPi34tyGCyUBREQoKkapwdY/T04Qn9TDWfHhAYt4/I0gMVirzK5wEzeUqIjEB+LXC/ypb7Aqno5w=="],
+
"hastscript/@types/hast": ["@types/hast@2.3.10", "", { "dependencies": { "@types/unist": "^2" } }, "sha512-McWspRw8xx8J9HurkVBfYj0xKoE25tOFlHGdx4MJ5xORQrMGZNqJhVQWaIbm6Oyla5kYOXtDiopzKRJzEOkwJw=="],
"hastscript/comma-separated-tokens": ["comma-separated-tokens@1.0.8", "", {}, "sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw=="],
@@ -2896,17 +4620,29 @@
"hastscript/space-separated-tokens": ["space-separated-tokens@1.1.5", "", {}, "sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA=="],
+ "htmlparser2/entities": ["entities@4.5.0", "", {}, "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw=="],
+
"http-errors/statuses": ["statuses@2.0.1", "", {}, "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ=="],
"iconv-corefoundation/cli-truncate": ["cli-truncate@2.1.0", "", { "dependencies": { "slice-ansi": "^3.0.0", "string-width": "^4.2.0" } }, "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg=="],
"iconv-corefoundation/node-addon-api": ["node-addon-api@1.7.2", "", {}, "sha512-ibPK3iA+vaY1eEjESkQkM0BbCqFOaZMiXRTtdB0u7b4djtY6JnsjvPdUHVMg6xQt3B8fpTTWHI9A+ADjM9frzg=="],
+ "importx/esbuild": ["esbuild@0.25.10", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.25.10", "@esbuild/android-arm": "0.25.10", "@esbuild/android-arm64": "0.25.10", "@esbuild/android-x64": "0.25.10", "@esbuild/darwin-arm64": "0.25.10", "@esbuild/darwin-x64": "0.25.10", "@esbuild/freebsd-arm64": "0.25.10", "@esbuild/freebsd-x64": "0.25.10", "@esbuild/linux-arm": "0.25.10", "@esbuild/linux-arm64": "0.25.10", "@esbuild/linux-ia32": "0.25.10", "@esbuild/linux-loong64": "0.25.10", "@esbuild/linux-mips64el": "0.25.10", "@esbuild/linux-ppc64": "0.25.10", "@esbuild/linux-riscv64": "0.25.10", "@esbuild/linux-s390x": "0.25.10", "@esbuild/linux-x64": "0.25.10", "@esbuild/netbsd-arm64": "0.25.10", "@esbuild/netbsd-x64": "0.25.10", "@esbuild/openbsd-arm64": "0.25.10", "@esbuild/openbsd-x64": "0.25.10", "@esbuild/openharmony-arm64": "0.25.10", "@esbuild/sunos-x64": "0.25.10", "@esbuild/win32-arm64": "0.25.10", "@esbuild/win32-ia32": "0.25.10", "@esbuild/win32-x64": "0.25.10" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-9RiGKvCwaqxO2owP61uQ4BgNborAQskMR6QusfWzQqv7AZOg5oGehdY2pRJMTKuwxd1IDBP4rSbI5lHzU7SMsQ=="],
+
"jsonwebtoken/semver": ["semver@7.7.2", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],
+ "jwa/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
+ "jws/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
+ "katex/commander": ["commander@8.3.0", "", {}, "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww=="],
+
+ "less/image-size": ["image-size@0.5.5", "", { "bin": { "image-size": "bin/image-size.js" } }, "sha512-6TDAlDPZxUFCv+fuOkIoXT/V/f3Qbq8e37p+YOiYrUv3v9cc3/6x78VdfPgFVaB9dZYeLUfKgHRebpkm/oP2VQ=="],
+
"log-symbols/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="],
- "lru-cache/yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="],
+ "loose-envify/js-tokens": ["js-tokens@4.0.0", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="],
"make-dir/semver": ["semver@5.7.2", "", { "bin": { "semver": "bin/semver" } }, "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g=="],
@@ -2922,30 +4658,46 @@
"marked-terminal/marked": ["marked@11.2.0", "", { "bin": { "marked": "bin/marked.js" } }, "sha512-HR0m3bvu0jAPYiIvLUUQtdg1g6D247//lvcekpHO1WMvbwDlwSkZAX9Lw4F4YHE1T0HaaNve0tuAWuV1UJ6vtw=="],
- "matcher/escape-string-regexp": ["escape-string-regexp@4.0.0", "", {}, "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA=="],
+ "md5.js/hash-base": ["hash-base@3.1.2", "", { "dependencies": { "inherits": "^2.0.4", "readable-stream": "^2.3.8", "safe-buffer": "^5.2.1", "to-buffer": "^1.2.1" } }, "sha512-Bb33KbowVTIj5s7Ked1OsqHUeCpz//tPwR+E2zJgJKo9Z5XolZ9b6bdUgjmYlwnWhoOQKoTd1TYToZGn5mAYOg=="],
+
+ "md5.js/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
+ "mdast-util-find-and-replace/escape-string-regexp": ["escape-string-regexp@5.0.0", "", {}, "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw=="],
"mdast-util-mdx-jsx/parse-entities": ["parse-entities@4.0.2", "", { "dependencies": { "@types/unist": "^2.0.0", "character-entities-legacy": "^3.0.0", "character-reference-invalid": "^2.0.0", "decode-named-character-reference": "^1.0.0", "is-alphanumerical": "^2.0.0", "is-decimal": "^2.0.0", "is-hexadecimal": "^2.0.0" } }, "sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw=="],
+ "mermaid/uuid": ["uuid@11.1.0", "", { "bin": { "uuid": "dist/esm/bin/uuid" } }, "sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A=="],
+
"micromatch/picomatch": ["picomatch@2.3.1", "", {}, "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA=="],
+ "miller-rabin/bn.js": ["bn.js@4.12.2", "", {}, "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw=="],
+
"minipass-collect/minipass": ["minipass@3.3.6", "", { "dependencies": { "yallist": "^4.0.0" } }, "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw=="],
"minipass-fetch/minipass": ["minipass@3.3.6", "", { "dependencies": { "yallist": "^4.0.0" } }, "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw=="],
- "minipass-fetch/minizlib": ["minizlib@2.1.2", "", { "dependencies": { "minipass": "^3.0.0", "yallist": "^4.0.0" } }, "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg=="],
-
"minipass-flush/minipass": ["minipass@3.3.6", "", { "dependencies": { "yallist": "^4.0.0" } }, "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw=="],
"minipass-pipeline/minipass": ["minipass@3.3.6", "", { "dependencies": { "yallist": "^4.0.0" } }, "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw=="],
"minipass-sized/minipass": ["minipass@3.3.6", "", { "dependencies": { "yallist": "^4.0.0" } }, "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw=="],
+ "minizlib/minipass": ["minipass@3.3.6", "", { "dependencies": { "yallist": "^4.0.0" } }, "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw=="],
+
"needle/iconv-lite": ["iconv-lite@0.6.3", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw=="],
+ "next/postcss": ["postcss@8.4.31", "", { "dependencies": { "nanoid": "^3.3.6", "picocolors": "^1.0.0", "source-map-js": "^1.0.2" } }, "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ=="],
+
"node-abi/semver": ["semver@7.7.2", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],
"node-api-version/semver": ["semver@7.7.2", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],
+ "node-stdlib-browser/buffer": ["buffer@5.7.1", "", { "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.1.13" } }, "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ=="],
+
+ "node-stdlib-browser/readable-stream": ["readable-stream@3.6.2", "", { "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", "util-deprecate": "^1.0.1" } }, "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA=="],
+
+ "node-stdlib-browser/string_decoder": ["string_decoder@1.3.0", "", { "dependencies": { "safe-buffer": "~5.2.0" } }, "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA=="],
+
"normalize-package-data/hosted-git-info": ["hosted-git-info@7.0.2", "", { "dependencies": { "lru-cache": "^10.0.1" } }, "sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w=="],
"normalize-package-data/semver": ["semver@7.7.2", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],
@@ -2954,31 +4706,71 @@
"npm-run-path/unicorn-magic": ["unicorn-magic@0.3.0", "", {}, "sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA=="],
+ "openai/zod": ["zod@4.1.12", "", {}, "sha512-JInaHOamG8pt5+Ey8kGmdcAcg3OL9reK8ltczgHTAwNhMys/6ThXHityHxVV2p3fkw/c+MAvBHFVYHFZDmjMCQ=="],
+
"ora/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="],
"ora/cli-cursor": ["cli-cursor@3.1.0", "", { "dependencies": { "restore-cursor": "^3.1.0" } }, "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw=="],
"ora/strip-ansi": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="],
+ "oxc-parser/@oxc-project/types": ["@oxc-project/types@0.36.0", "", {}, "sha512-VAv7ANBGE6glvOX5PEhGcca8hqBeGGDXt3xfPApZg7GhkrvbI8YCf01HojlpdIewixN2rnNpfO6cFgHS6Ixe5A=="],
+
+ "p-locate/p-limit": ["p-limit@4.0.0", "", { "dependencies": { "yocto-queue": "^1.0.0" } }, "sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ=="],
+
"p-queue/eventemitter3": ["eventemitter3@4.0.7", "", {}, "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw=="],
"package-json/semver": ["semver@7.7.2", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],
+ "parse-asn1/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
"parse5-htmlparser2-tree-adapter/parse5": ["parse5@6.0.1", "", {}, "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw=="],
"path-scurry/lru-cache": ["lru-cache@10.4.3", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="],
+ "path-scurry/minipass": ["minipass@7.1.2", "", {}, "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw=="],
+
+ "pbkdf2/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
+ "pkg-dir/find-up": ["find-up@5.0.0", "", { "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" } }, "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng=="],
+
+ "postcss-modules-local-by-default/postcss-selector-parser": ["postcss-selector-parser@7.1.0", "", { "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" } }, "sha512-8sLjZwK0R+JlxlYcTuVnyT2v+htpdrjDOKuMcOVdYjt52Lh8hWRYpxBPoKx/Zg+bcjc3wx6fmQevMmUztS/ccA=="],
+
+ "postcss-modules-scope/postcss-selector-parser": ["postcss-selector-parser@7.1.0", "", { "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" } }, "sha512-8sLjZwK0R+JlxlYcTuVnyT2v+htpdrjDOKuMcOVdYjt52Lh8hWRYpxBPoKx/Zg+bcjc3wx6fmQevMmUztS/ccA=="],
+
"postject/commander": ["commander@9.5.0", "", {}, "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ=="],
+ "pretty-format/ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="],
+
+ "pretty-format/ansi-styles": ["ansi-styles@5.2.0", "", {}, "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA=="],
+
"promise-retry/retry": ["retry@0.12.0", "", {}, "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow=="],
+ "prop-types/react-is": ["react-is@16.13.1", "", {}, "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="],
+
+ "protobufjs/@types/node": ["@types/node@24.6.2", "", { "dependencies": { "undici-types": "~7.13.0" } }, "sha512-d2L25Y4j+W3ZlNAeMKcy7yDsK425ibcAOO2t7aPTz6gNMH0z2GThtwENCDc0d/Pw9wgyRqE5Px1wkV7naz8ang=="],
+
+ "public-encrypt/bn.js": ["bn.js@4.12.2", "", {}, "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw=="],
+
+ "public-encrypt/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
+ "randombytes/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
+ "randomfill/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
"rc/ini": ["ini@1.3.8", "", {}, "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="],
"rc/strip-json-comments": ["strip-json-comments@2.0.1", "", {}, "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ=="],
"react-devtools-core/ws": ["ws@7.5.10", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": "^5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ=="],
- "react-reconciler/scheduler": ["scheduler@0.26.0", "", {}, "sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA=="],
+ "react-docgen/@babel/types": ["@babel/types@7.28.5", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.28.5" } }, "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA=="],
+
+ "readable-stream/isarray": ["isarray@1.0.0", "", {}, "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ=="],
+
+ "redent/indent-string": ["indent-string@4.0.0", "", {}, "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg=="],
+
+ "redent/strip-indent": ["strip-indent@3.0.0", "", { "dependencies": { "min-indent": "^1.0.0" } }, "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ=="],
"refractor/prismjs": ["prismjs@1.27.0", "", {}, "sha512-t13BGPUlFDR7wRB5kQDG4jjl7XeuH6jbJGt11JHPL96qwsEHNX2+68tFXqc1/k+/jALsbSWJKUOT/hcYAZ5LkA=="],
@@ -2988,14 +4780,30 @@
"rimraf/glob": ["glob@7.2.3", "", { "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^3.1.1", "once": "^1.3.0", "path-is-absolute": "^1.0.0" } }, "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q=="],
+ "ripemd160/hash-base": ["hash-base@3.1.2", "", { "dependencies": { "inherits": "^2.0.4", "readable-stream": "^2.3.8", "safe-buffer": "^5.2.1", "to-buffer": "^1.2.1" } }, "sha512-Bb33KbowVTIj5s7Ked1OsqHUeCpz//tPwR+E2zJgJKo9Z5XolZ9b6bdUgjmYlwnWhoOQKoTd1TYToZGn5mAYOg=="],
+
+ "router/path-to-regexp": ["path-to-regexp@8.3.0", "", {}, "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA=="],
+
+ "send/mime-types": ["mime-types@3.0.1", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA=="],
+
"serialize-error/type-fest": ["type-fest@0.13.1", "", {}, "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg=="],
+ "sha.js/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
"simple-update-notifier/semver": ["semver@7.7.2", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],
"socks-proxy-agent/agent-base": ["agent-base@6.0.2", "", { "dependencies": { "debug": "4" } }, "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ=="],
"ssri/minipass": ["minipass@3.3.6", "", { "dependencies": { "yallist": "^4.0.0" } }, "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw=="],
+ "stack-utils/escape-string-regexp": ["escape-string-regexp@2.0.0", "", {}, "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w=="],
+
+ "storybook/esbuild": ["esbuild@0.25.10", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.25.10", "@esbuild/android-arm": "0.25.10", "@esbuild/android-arm64": "0.25.10", "@esbuild/android-x64": "0.25.10", "@esbuild/darwin-arm64": "0.25.10", "@esbuild/darwin-x64": "0.25.10", "@esbuild/freebsd-arm64": "0.25.10", "@esbuild/freebsd-x64": "0.25.10", "@esbuild/linux-arm": "0.25.10", "@esbuild/linux-arm64": "0.25.10", "@esbuild/linux-ia32": "0.25.10", "@esbuild/linux-loong64": "0.25.10", "@esbuild/linux-mips64el": "0.25.10", "@esbuild/linux-ppc64": "0.25.10", "@esbuild/linux-riscv64": "0.25.10", "@esbuild/linux-s390x": "0.25.10", "@esbuild/linux-x64": "0.25.10", "@esbuild/netbsd-arm64": "0.25.10", "@esbuild/netbsd-x64": "0.25.10", "@esbuild/openbsd-arm64": "0.25.10", "@esbuild/openbsd-x64": "0.25.10", "@esbuild/openharmony-arm64": "0.25.10", "@esbuild/sunos-x64": "0.25.10", "@esbuild/win32-arm64": "0.25.10", "@esbuild/win32-ia32": "0.25.10", "@esbuild/win32-x64": "0.25.10" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-9RiGKvCwaqxO2owP61uQ4BgNborAQskMR6QusfWzQqv7AZOg5oGehdY2pRJMTKuwxd1IDBP4rSbI5lHzU7SMsQ=="],
+
+ "stream-browserify/readable-stream": ["readable-stream@3.6.2", "", { "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", "util-deprecate": "^1.0.1" } }, "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA=="],
+
+ "stream-http/readable-stream": ["readable-stream@3.6.2", "", { "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", "util-deprecate": "^1.0.1" } }, "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA=="],
+
"string-width-cjs/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="],
"string-width-cjs/is-fullwidth-code-point": ["is-fullwidth-code-point@3.0.0", "", {}, "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="],
@@ -3006,6 +4814,8 @@
"strip-ansi-cjs/ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="],
+ "stylus/@adobe/css-tools": ["@adobe/css-tools@4.3.3", "", {}, "sha512-rE0Pygv0sEZ4vBWHlAgJLGDU7Pm8xoO6p3wsEceb7GYAjScrOHpEo8KK/eVkAcnSM+slAEtXjA2JpdjLp4fJQQ=="],
+
"stylus/source-map": ["source-map@0.7.6", "", {}, "sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ=="],
"supports-hyperlinks/supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
@@ -3014,12 +4824,30 @@
"tiny-async-pool/semver": ["semver@5.7.2", "", { "bin": { "semver": "bin/semver" } }, "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g=="],
+ "to-buffer/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
+ "tsx/esbuild": ["esbuild@0.25.10", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.25.10", "@esbuild/android-arm": "0.25.10", "@esbuild/android-arm64": "0.25.10", "@esbuild/android-x64": "0.25.10", "@esbuild/darwin-arm64": "0.25.10", "@esbuild/darwin-x64": "0.25.10", "@esbuild/freebsd-arm64": "0.25.10", "@esbuild/freebsd-x64": "0.25.10", "@esbuild/linux-arm": "0.25.10", "@esbuild/linux-arm64": "0.25.10", "@esbuild/linux-ia32": "0.25.10", "@esbuild/linux-loong64": "0.25.10", "@esbuild/linux-mips64el": "0.25.10", "@esbuild/linux-ppc64": "0.25.10", "@esbuild/linux-riscv64": "0.25.10", "@esbuild/linux-s390x": "0.25.10", "@esbuild/linux-x64": "0.25.10", "@esbuild/netbsd-arm64": "0.25.10", "@esbuild/netbsd-x64": "0.25.10", "@esbuild/openbsd-arm64": "0.25.10", "@esbuild/openbsd-x64": "0.25.10", "@esbuild/openharmony-arm64": "0.25.10", "@esbuild/sunos-x64": "0.25.10", "@esbuild/win32-arm64": "0.25.10", "@esbuild/win32-ia32": "0.25.10", "@esbuild/win32-x64": "0.25.10" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-9RiGKvCwaqxO2owP61uQ4BgNborAQskMR6QusfWzQqv7AZOg5oGehdY2pRJMTKuwxd1IDBP4rSbI5lHzU7SMsQ=="],
+
+ "type-is/mime-types": ["mime-types@3.0.1", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA=="],
+
"update-notifier/boxen": ["boxen@8.0.1", "", { "dependencies": { "ansi-align": "^3.0.1", "camelcase": "^8.0.0", "chalk": "^5.3.0", "cli-boxes": "^3.0.0", "string-width": "^7.2.0", "type-fest": "^4.21.0", "widest-line": "^5.0.0", "wrap-ansi": "^9.0.0" } }, "sha512-F3PH5k5juxom4xktynS7MoFY+NUWH5LC4CnH11YB8NPew+HLpmBLCybSAEyb2F+4pRXhuhWqFesoQd6DAyc2hw=="],
"update-notifier/is-in-ci": ["is-in-ci@1.0.0", "", { "bin": { "is-in-ci": "cli.js" } }, "sha512-eUuAjybVTHMYWm/U+vBO1sY/JOCgoPCXRxzdju0K+K0BiGW0SChEL1MLC0PoCIR1OlPo5YAp8HuQoUlsWEICwg=="],
"update-notifier/semver": ["semver@7.7.2", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="],
+ "uri-js/punycode": ["punycode@2.3.1", "", {}, "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg=="],
+
+ "vite/esbuild": ["esbuild@0.25.10", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.25.10", "@esbuild/android-arm": "0.25.10", "@esbuild/android-arm64": "0.25.10", "@esbuild/android-x64": "0.25.10", "@esbuild/darwin-arm64": "0.25.10", "@esbuild/darwin-x64": "0.25.10", "@esbuild/freebsd-arm64": "0.25.10", "@esbuild/freebsd-x64": "0.25.10", "@esbuild/linux-arm": "0.25.10", "@esbuild/linux-arm64": "0.25.10", "@esbuild/linux-ia32": "0.25.10", "@esbuild/linux-loong64": "0.25.10", "@esbuild/linux-mips64el": "0.25.10", "@esbuild/linux-ppc64": "0.25.10", "@esbuild/linux-riscv64": "0.25.10", "@esbuild/linux-s390x": "0.25.10", "@esbuild/linux-x64": "0.25.10", "@esbuild/netbsd-arm64": "0.25.10", "@esbuild/netbsd-x64": "0.25.10", "@esbuild/openbsd-arm64": "0.25.10", "@esbuild/openbsd-x64": "0.25.10", "@esbuild/openharmony-arm64": "0.25.10", "@esbuild/sunos-x64": "0.25.10", "@esbuild/win32-arm64": "0.25.10", "@esbuild/win32-ia32": "0.25.10", "@esbuild/win32-x64": "0.25.10" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-9RiGKvCwaqxO2owP61uQ4BgNborAQskMR6QusfWzQqv7AZOg5oGehdY2pRJMTKuwxd1IDBP4rSbI5lHzU7SMsQ=="],
+
+ "vite-plugin-storybook-nextjs/@next/env": ["@next/env@16.0.0", "", {}, "sha512-s5j2iFGp38QsG1LWRQaE2iUY3h1jc014/melHFfLdrsMJPqxqDQwWNwyQTcNoUSGZlCVZuM7t7JDMmSyRilsnA=="],
+
+ "webpack-bundle-analyzer/commander": ["commander@7.2.0", "", {}, "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw=="],
+
+ "webpack-bundle-analyzer/sirv": ["sirv@2.0.4", "", { "dependencies": { "@polka/url": "^1.0.0-next.24", "mrmime": "^2.0.0", "totalist": "^3.0.0" } }, "sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ=="],
+
+ "webpack-bundle-analyzer/ws": ["ws@7.5.10", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": "^5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ=="],
+
"wrap-ansi-cjs/ansi-styles": ["ansi-styles@4.3.0", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="],
"wrap-ansi-cjs/string-width": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],
@@ -3032,41 +4860,147 @@
"@ai-sdk/react/ai/@ai-sdk/gateway": ["@ai-sdk/gateway@1.0.33", "", { "dependencies": { "@ai-sdk/provider": "2.0.0", "@ai-sdk/provider-utils": "3.0.10", "@vercel/oidc": "^3.0.1" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-v9i3GPEo4t3fGcSkQkc07xM6KJN75VUv7C1Mqmmsu2xD8lQwnQfsrgAXyNuWe20yGY0eHuheSPDZhiqsGKtH1g=="],
+ "@aws-crypto/sha1-browser/@smithy/util-utf8/@smithy/util-buffer-from": ["@smithy/util-buffer-from@2.2.0", "", { "dependencies": { "@smithy/is-array-buffer": "^2.2.0", "tslib": "^2.6.2" } }, "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA=="],
+
+ "@aws-crypto/sha256-browser/@smithy/util-utf8/@smithy/util-buffer-from": ["@smithy/util-buffer-from@2.2.0", "", { "dependencies": { "@smithy/is-array-buffer": "^2.2.0", "tslib": "^2.6.2" } }, "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA=="],
+
+ "@aws-crypto/util/@smithy/util-utf8/@smithy/util-buffer-from": ["@smithy/util-buffer-from@2.2.0", "", { "dependencies": { "@smithy/is-array-buffer": "^2.2.0", "tslib": "^2.6.2" } }, "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA=="],
+
+ "@babel/core/@babel/types/@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.28.5", "", {}, "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q=="],
+
+ "@babel/helper-compilation-targets/lru-cache/yallist": ["yallist@3.1.1", "", {}, "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g=="],
+
+ "@babel/helper-module-imports/@babel/types/@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.28.5", "", {}, "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q=="],
+
+ "@babel/helpers/@babel/types/@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.28.5", "", {}, "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q=="],
+
+ "@babel/template/@babel/types/@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.28.5", "", {}, "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q=="],
+
+ "@babel/traverse/@babel/types/@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.28.5", "", {}, "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q=="],
+
"@blink-sdk/github/file-type/strtok3": ["strtok3@10.3.4", "", { "dependencies": { "@tokenizer/token": "^0.3.0" } }, "sha512-KIy5nylvC5le1OdaaoCJ07L+8iQzJHGH6pWDuzS+d07Cu7n1MZ2x26P8ZKIWfbK02+XIL8Mp4RkWeqdUCrDMfg=="],
+ "@blink-sdk/scout-agent/tsdown/rolldown": ["rolldown@1.0.0-beta.13-commit.024b632", "", { "dependencies": { "@oxc-project/runtime": "=0.72.3", "@oxc-project/types": "=0.72.3", "@rolldown/pluginutils": "1.0.0-beta.13-commit.024b632", "ansis": "^4.0.0" }, "optionalDependencies": { "@rolldown/binding-darwin-arm64": "1.0.0-beta.13-commit.024b632", "@rolldown/binding-darwin-x64": "1.0.0-beta.13-commit.024b632", "@rolldown/binding-freebsd-x64": "1.0.0-beta.13-commit.024b632", "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.13-commit.024b632", "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.13-commit.024b632", "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.13-commit.024b632", "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.13-commit.024b632", "@rolldown/binding-linux-x64-musl": "1.0.0-beta.13-commit.024b632", "@rolldown/binding-wasm32-wasi": "1.0.0-beta.13-commit.024b632", "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.13-commit.024b632", "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.13-commit.024b632", "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.13-commit.024b632" }, "bin": { "rolldown": "bin/cli.mjs" } }, "sha512-sntAHxNJ22WdcXVHQDoRst4eOJZjuT3S1aqsNWsvK2aaFVPgpVPY3WGwvJ91SvH/oTdRCyJw5PwpzbaMdKdYqQ=="],
+
+ "@blink-sdk/scout-agent/tsdown/unconfig": ["unconfig@0.6.1", "", { "dependencies": { "@antfu/utils": "^8.1.0", "defu": "^6.1.4", "importx": "^0.5.1" } }, "sha512-cVU+/sPloZqOyJEAfNwnQSFCzFrZm85vcVkryH7lnlB/PiTycUkAjt5Ds79cfIshGOZ+M5v3PBDnKgpmlE5DtA=="],
+
+ "@blink.so/site/next-auth/@auth/core": ["@auth/core@0.41.0", "", { "dependencies": { "@panva/hkdf": "^1.2.1", "jose": "^6.0.6", "oauth4webapi": "^3.3.0", "preact": "10.24.3", "preact-render-to-string": "6.5.11" }, "peerDependencies": { "@simplewebauthn/browser": "^9.0.1", "@simplewebauthn/server": "^9.0.2", "nodemailer": "^6.8.0" }, "optionalPeers": ["@simplewebauthn/browser", "@simplewebauthn/server", "nodemailer"] }, "sha512-Wd7mHPQ/8zy6Qj7f4T46vg3aoor8fskJm6g2Zyj064oQ3+p0xNZXAV60ww0hY+MbTesfu29kK14Zk5d5JTazXQ=="],
+
+ "@blink/desktop/esbuild/@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.25.10", "", { "os": "aix", "cpu": "ppc64" }, "sha512-0NFWnA+7l41irNuaSVlLfgNT12caWJVLzp5eAVhZ0z1qpxbockccEt3s+149rE64VUI3Ml2zt8Nv5JVc4QXTsw=="],
+
+ "@blink/desktop/esbuild/@esbuild/android-arm": ["@esbuild/android-arm@0.25.10", "", { "os": "android", "cpu": "arm" }, "sha512-dQAxF1dW1C3zpeCDc5KqIYuZ1tgAdRXNoZP7vkBIRtKZPYe2xVr/d3SkirklCHudW1B45tGiUlz2pUWDfbDD4w=="],
+
+ "@blink/desktop/esbuild/@esbuild/android-arm64": ["@esbuild/android-arm64@0.25.10", "", { "os": "android", "cpu": "arm64" }, "sha512-LSQa7eDahypv/VO6WKohZGPSJDq5OVOo3UoFR1E4t4Gj1W7zEQMUhI+lo81H+DtB+kP+tDgBp+M4oNCwp6kffg=="],
+
+ "@blink/desktop/esbuild/@esbuild/android-x64": ["@esbuild/android-x64@0.25.10", "", { "os": "android", "cpu": "x64" }, "sha512-MiC9CWdPrfhibcXwr39p9ha1x0lZJ9KaVfvzA0Wxwz9ETX4v5CHfF09bx935nHlhi+MxhA63dKRRQLiVgSUtEg=="],
+
+ "@blink/desktop/esbuild/@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.25.10", "", { "os": "darwin", "cpu": "arm64" }, "sha512-JC74bdXcQEpW9KkV326WpZZjLguSZ3DfS8wrrvPMHgQOIEIG/sPXEN/V8IssoJhbefLRcRqw6RQH2NnpdprtMA=="],
+
+ "@blink/desktop/esbuild/@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.25.10", "", { "os": "darwin", "cpu": "x64" }, "sha512-tguWg1olF6DGqzws97pKZ8G2L7Ig1vjDmGTwcTuYHbuU6TTjJe5FXbgs5C1BBzHbJ2bo1m3WkQDbWO2PvamRcg=="],
+
+ "@blink/desktop/esbuild/@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.25.10", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-3ZioSQSg1HT2N05YxeJWYR+Libe3bREVSdWhEEgExWaDtyFbbXWb49QgPvFH8u03vUPX10JhJPcz7s9t9+boWg=="],
+
+ "@blink/desktop/esbuild/@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.25.10", "", { "os": "freebsd", "cpu": "x64" }, "sha512-LLgJfHJk014Aa4anGDbh8bmI5Lk+QidDmGzuC2D+vP7mv/GeSN+H39zOf7pN5N8p059FcOfs2bVlrRr4SK9WxA=="],
+
+ "@blink/desktop/esbuild/@esbuild/linux-arm": ["@esbuild/linux-arm@0.25.10", "", { "os": "linux", "cpu": "arm" }, "sha512-oR31GtBTFYCqEBALI9r6WxoU/ZofZl962pouZRTEYECvNF/dtXKku8YXcJkhgK/beU+zedXfIzHijSRapJY3vg=="],
+
+ "@blink/desktop/esbuild/@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.25.10", "", { "os": "linux", "cpu": "arm64" }, "sha512-5luJWN6YKBsawd5f9i4+c+geYiVEw20FVW5x0v1kEMWNq8UctFjDiMATBxLvmmHA4bf7F6hTRaJgtghFr9iziQ=="],
+
+ "@blink/desktop/esbuild/@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.25.10", "", { "os": "linux", "cpu": "ia32" }, "sha512-NrSCx2Kim3EnnWgS4Txn0QGt0Xipoumb6z6sUtl5bOEZIVKhzfyp/Lyw4C1DIYvzeW/5mWYPBFJU3a/8Yr75DQ=="],
+
+ "@blink/desktop/esbuild/@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-xoSphrd4AZda8+rUDDfD9J6FUMjrkTz8itpTITM4/xgerAZZcFW7Dv+sun7333IfKxGG8gAq+3NbfEMJfiY+Eg=="],
+
+ "@blink/desktop/esbuild/@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-ab6eiuCwoMmYDyTnyptoKkVS3k8fy/1Uvq7Dj5czXI6DF2GqD2ToInBI0SHOp5/X1BdZ26RKc5+qjQNGRBelRA=="],
+
+ "@blink/desktop/esbuild/@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.25.10", "", { "os": "linux", "cpu": "ppc64" }, "sha512-NLinzzOgZQsGpsTkEbdJTCanwA5/wozN9dSgEl12haXJBzMTpssebuXR42bthOF3z7zXFWH1AmvWunUCkBE4EA=="],
+
+ "@blink/desktop/esbuild/@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-FE557XdZDrtX8NMIeA8LBJX3dC2M8VGXwfrQWU7LB5SLOajfJIxmSdyL/gU1m64Zs9CBKvm4UAuBp5aJ8OgnrA=="],
+
+ "@blink/desktop/esbuild/@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.25.10", "", { "os": "linux", "cpu": "s390x" }, "sha512-3BBSbgzuB9ajLoVZk0mGu+EHlBwkusRmeNYdqmznmMc9zGASFjSsxgkNsqmXugpPk00gJ0JNKh/97nxmjctdew=="],
+
+ "@blink/desktop/esbuild/@esbuild/linux-x64": ["@esbuild/linux-x64@0.25.10", "", { "os": "linux", "cpu": "x64" }, "sha512-QSX81KhFoZGwenVyPoberggdW1nrQZSvfVDAIUXr3WqLRZGZqWk/P4T8p2SP+de2Sr5HPcvjhcJzEiulKgnxtA=="],
+
+ "@blink/desktop/esbuild/@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.25.10", "", { "os": "none", "cpu": "arm64" }, "sha512-AKQM3gfYfSW8XRk8DdMCzaLUFB15dTrZfnX8WXQoOUpUBQ+NaAFCP1kPS/ykbbGYz7rxn0WS48/81l9hFl3u4A=="],
+
+ "@blink/desktop/esbuild/@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.25.10", "", { "os": "none", "cpu": "x64" }, "sha512-7RTytDPGU6fek/hWuN9qQpeGPBZFfB4zZgcz2VK2Z5VpdUxEI8JKYsg3JfO0n/Z1E/6l05n0unDCNc4HnhQGig=="],
+
+ "@blink/desktop/esbuild/@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.25.10", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-5Se0VM9Wtq797YFn+dLimf2Zx6McttsH2olUBsDml+lm0GOCRVebRWUvDtkY4BWYv/3NgzS8b/UM3jQNh5hYyw=="],
+
+ "@blink/desktop/esbuild/@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.25.10", "", { "os": "openbsd", "cpu": "x64" }, "sha512-XkA4frq1TLj4bEMB+2HnI0+4RnjbuGZfet2gs/LNs5Hc7D89ZQBHQ0gL2ND6Lzu1+QVkjp3x1gIcPKzRNP8bXw=="],
+
+ "@blink/desktop/esbuild/@esbuild/openharmony-arm64": ["@esbuild/openharmony-arm64@0.25.10", "", { "os": "none", "cpu": "arm64" }, "sha512-AVTSBhTX8Y/Fz6OmIVBip9tJzZEUcY8WLh7I59+upa5/GPhh2/aM6bvOMQySspnCCHvFi79kMtdJS1w0DXAeag=="],
+
+ "@blink/desktop/esbuild/@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.25.10", "", { "os": "sunos", "cpu": "x64" }, "sha512-fswk3XT0Uf2pGJmOpDB7yknqhVkJQkAQOcW/ccVOtfx05LkbWOaRAtn5SaqXypeKQra1QaEa841PgrSL9ubSPQ=="],
+
+ "@blink/desktop/esbuild/@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.25.10", "", { "os": "win32", "cpu": "arm64" }, "sha512-ah+9b59KDTSfpaCg6VdJoOQvKjI33nTaQr4UluQwW7aEwZQsbMCfTmfEO4VyewOxx4RaDT/xCy9ra2GPWmO7Kw=="],
+
+ "@blink/desktop/esbuild/@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.25.10", "", { "os": "win32", "cpu": "ia32" }, "sha512-QHPDbKkrGO8/cz9LKVnJU22HOi4pxZnZhhA2HYHez5Pz4JeffhDjf85E57Oyco163GnzNCVkZK0b/n4Y0UHcSw=="],
+
+ "@blink/desktop/esbuild/@esbuild/win32-x64": ["@esbuild/win32-x64@0.25.10", "", { "os": "win32", "cpu": "x64" }, "sha512-9KpxSVFCu0iK1owoez6aC/s/EdUQLDN3adTxGCqxMVhrPDj6bt5dbrHDXUuq+Bs2vATFBBrQS5vdQ/Ed2P+nbw=="],
+
+ "@blink/desktop/react-dom/scheduler": ["scheduler@0.27.0", "", {}, "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q=="],
+
"@develar/schema-utils/ajv/json-schema-traverse": ["json-schema-traverse@0.4.1", "", {}, "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="],
"@electron/asar/minimatch/brace-expansion": ["brace-expansion@1.1.12", "", { "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg=="],
"@electron/fuses/chalk/ansi-styles": ["ansi-styles@4.3.0", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="],
- "@electron/fuses/chalk/supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
+ "@electron/fuses/chalk/supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
+
+ "@electron/get/fs-extra/jsonfile": ["jsonfile@4.0.0", "", { "optionalDependencies": { "graceful-fs": "^4.1.6" } }, "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg=="],
+
+ "@electron/get/fs-extra/universalify": ["universalify@0.1.2", "", {}, "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg=="],
+
+ "@electron/node-gyp/glob/minimatch": ["minimatch@5.1.6", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g=="],
+
+ "@electron/rebuild/chalk/ansi-styles": ["ansi-styles@4.3.0", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="],
+
+ "@electron/rebuild/chalk/supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
+
+ "@esbuild-kit/core-utils/esbuild/@esbuild/android-arm": ["@esbuild/android-arm@0.18.20", "", { "os": "android", "cpu": "arm" }, "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw=="],
+
+ "@esbuild-kit/core-utils/esbuild/@esbuild/android-arm64": ["@esbuild/android-arm64@0.18.20", "", { "os": "android", "cpu": "arm64" }, "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ=="],
+
+ "@esbuild-kit/core-utils/esbuild/@esbuild/android-x64": ["@esbuild/android-x64@0.18.20", "", { "os": "android", "cpu": "x64" }, "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg=="],
+
+ "@esbuild-kit/core-utils/esbuild/@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.18.20", "", { "os": "darwin", "cpu": "arm64" }, "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA=="],
+
+ "@esbuild-kit/core-utils/esbuild/@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.18.20", "", { "os": "darwin", "cpu": "x64" }, "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ=="],
+
+ "@esbuild-kit/core-utils/esbuild/@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.18.20", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw=="],
+
+ "@esbuild-kit/core-utils/esbuild/@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.18.20", "", { "os": "freebsd", "cpu": "x64" }, "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ=="],
+
+ "@esbuild-kit/core-utils/esbuild/@esbuild/linux-arm": ["@esbuild/linux-arm@0.18.20", "", { "os": "linux", "cpu": "arm" }, "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg=="],
+
+ "@esbuild-kit/core-utils/esbuild/@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.18.20", "", { "os": "linux", "cpu": "arm64" }, "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA=="],
- "@electron/get/fs-extra/jsonfile": ["jsonfile@4.0.0", "", { "optionalDependencies": { "graceful-fs": "^4.1.6" } }, "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg=="],
+ "@esbuild-kit/core-utils/esbuild/@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.18.20", "", { "os": "linux", "cpu": "ia32" }, "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA=="],
- "@electron/get/fs-extra/universalify": ["universalify@0.1.2", "", {}, "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg=="],
+ "@esbuild-kit/core-utils/esbuild/@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.18.20", "", { "os": "linux", "cpu": "none" }, "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg=="],
- "@electron/node-gyp/glob/minimatch": ["minimatch@5.1.6", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g=="],
+ "@esbuild-kit/core-utils/esbuild/@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.18.20", "", { "os": "linux", "cpu": "none" }, "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ=="],
- "@electron/node-gyp/tar/chownr": ["chownr@2.0.0", "", {}, "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ=="],
+ "@esbuild-kit/core-utils/esbuild/@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.18.20", "", { "os": "linux", "cpu": "ppc64" }, "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA=="],
- "@electron/node-gyp/tar/minipass": ["minipass@5.0.0", "", {}, "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ=="],
+ "@esbuild-kit/core-utils/esbuild/@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.18.20", "", { "os": "linux", "cpu": "none" }, "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A=="],
- "@electron/node-gyp/tar/minizlib": ["minizlib@2.1.2", "", { "dependencies": { "minipass": "^3.0.0", "yallist": "^4.0.0" } }, "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg=="],
+ "@esbuild-kit/core-utils/esbuild/@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.18.20", "", { "os": "linux", "cpu": "s390x" }, "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ=="],
- "@electron/node-gyp/tar/yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="],
+ "@esbuild-kit/core-utils/esbuild/@esbuild/linux-x64": ["@esbuild/linux-x64@0.18.20", "", { "os": "linux", "cpu": "x64" }, "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w=="],
- "@electron/rebuild/chalk/ansi-styles": ["ansi-styles@4.3.0", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="],
+ "@esbuild-kit/core-utils/esbuild/@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.18.20", "", { "os": "none", "cpu": "x64" }, "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A=="],
- "@electron/rebuild/chalk/supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
+ "@esbuild-kit/core-utils/esbuild/@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.18.20", "", { "os": "openbsd", "cpu": "x64" }, "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg=="],
- "@electron/rebuild/tar/chownr": ["chownr@2.0.0", "", {}, "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ=="],
+ "@esbuild-kit/core-utils/esbuild/@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.18.20", "", { "os": "sunos", "cpu": "x64" }, "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ=="],
- "@electron/rebuild/tar/minipass": ["minipass@5.0.0", "", {}, "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ=="],
+ "@esbuild-kit/core-utils/esbuild/@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.18.20", "", { "os": "win32", "cpu": "arm64" }, "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg=="],
- "@electron/rebuild/tar/minizlib": ["minizlib@2.1.2", "", { "dependencies": { "minipass": "^3.0.0", "yallist": "^4.0.0" } }, "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg=="],
+ "@esbuild-kit/core-utils/esbuild/@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.18.20", "", { "os": "win32", "cpu": "ia32" }, "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g=="],
- "@electron/rebuild/tar/yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="],
+ "@esbuild-kit/core-utils/esbuild/@esbuild/win32-x64": ["@esbuild/win32-x64@0.18.20", "", { "os": "win32", "cpu": "x64" }, "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ=="],
"@google/gemini-cli-core/@opentelemetry/exporter-trace-otlp-http/@opentelemetry/core": ["@opentelemetry/core@2.0.1", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-MaZk9SJIDgo1peKevlbhP6+IwIiNPNmswNL4AF0WaQJLbHXjr9SrZMgS12+iqr9ToV4ZVosCcc0f8Rg67LXjxw=="],
@@ -3112,6 +5046,12 @@
"@google/gemini-cli-core/@opentelemetry/sdk-node/@opentelemetry/sdk-trace-node": ["@opentelemetry/sdk-trace-node@2.0.1", "", { "dependencies": { "@opentelemetry/context-async-hooks": "2.0.1", "@opentelemetry/core": "2.0.1", "@opentelemetry/sdk-trace-base": "2.0.1" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-UhdbPF19pMpBtCWYP5lHbTogLWx9N0EBxtdagvkn5YtsAnCBZzL7SjktG+ZmupRgifsHMjwUaCCaVmqGfSADmA=="],
+ "@inquirer/core/wrap-ansi/ansi-styles": ["ansi-styles@4.3.0", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="],
+
+ "@inquirer/core/wrap-ansi/string-width": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],
+
+ "@inquirer/core/wrap-ansi/strip-ansi": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="],
+
"@isaacs/cliui/string-width/emoji-regex": ["emoji-regex@9.2.2", "", {}, "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg=="],
"@joshua.litt/get-ripgrep/got/@sindresorhus/is": ["@sindresorhus/is@7.1.0", "", {}, "sha512-7F/yz2IphV39hiS2zB4QYVkivrptHHh0K8qJJd9HhuWSdvf8AN7NpebW3CcDZDBQsUPMoDKWsY2WWgW7bqOcfA=="],
@@ -3132,6 +5072,8 @@
"@modelcontextprotocol/sdk/ajv/json-schema-traverse": ["json-schema-traverse@0.4.1", "", {}, "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="],
+ "@neondatabase/serverless/@types/node/undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],
+
"@npmcli/move-file/rimraf/glob": ["glob@7.2.3", "", { "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^3.1.1", "once": "^1.3.0", "path-is-absolute": "^1.0.0" } }, "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q=="],
"@opentelemetry/auto-instrumentations-node/@opentelemetry/instrumentation/@opentelemetry/api-logs": ["@opentelemetry/api-logs@0.205.0", "", { "dependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-wBlPk1nFB37Hsm+3Qy73yQSobVn28F4isnWIBvKpd5IUH/eat8bwcL02H9yzmHyyPmukeccSl2mbN5sDQZYnPg=="],
@@ -3372,6 +5314,80 @@
"@opentelemetry/sdk-node/@opentelemetry/instrumentation/require-in-the-middle": ["require-in-the-middle@7.5.2", "", { "dependencies": { "debug": "^4.3.5", "module-details-from-path": "^1.0.3", "resolve": "^1.22.8" } }, "sha512-gAZ+kLqBdHarXB64XpAe2VCjB7rIRv+mU8tfRWziHRJ5umKsIHN2tLLv6EtMw7WCdP19S0ERVMldNvxYCHnhSQ=="],
+ "@slack/logger/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@slack/oauth/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@slack/socket-mode/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@slack/web-api/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@tailwindcss/oxide/tar/chownr": ["chownr@3.0.0", "", {}, "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g=="],
+
+ "@tailwindcss/oxide/tar/minipass": ["minipass@7.1.2", "", {}, "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw=="],
+
+ "@tailwindcss/oxide/tar/minizlib": ["minizlib@3.1.0", "", { "dependencies": { "minipass": "^7.1.2" } }, "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw=="],
+
+ "@tailwindcss/oxide/tar/yallist": ["yallist@5.0.0", "", {}, "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw=="],
+
+ "@testing-library/dom/chalk/ansi-styles": ["ansi-styles@4.3.0", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="],
+
+ "@testing-library/dom/chalk/supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
+
+ "@types/babel__core/@babel/types/@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.28.5", "", {}, "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q=="],
+
+ "@types/babel__generator/@babel/types/@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.28.5", "", {}, "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q=="],
+
+ "@types/babel__template/@babel/types/@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.28.5", "", {}, "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q=="],
+
+ "@types/babel__traverse/@babel/types/@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.28.5", "", {}, "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q=="],
+
+ "@types/body-parser/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@types/bunyan/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@types/cacheable-request/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@types/connect/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@types/express-serve-static-core/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@types/fs-extra/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@types/glob/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@types/jsonwebtoken/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@types/keyv/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@types/marked-terminal/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@types/memcached/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@types/mysql/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@types/oracledb/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@types/pg/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@types/plist/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@types/responselike/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@types/send/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@types/serve-static/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@types/tar-stream/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@types/tedious/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@types/ws/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "@types/yauzl/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "accepts/mime-types/mime-db": ["mime-db@1.54.0", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="],
+
"ajv-keywords/ajv/json-schema-traverse": ["json-schema-traverse@0.4.1", "", {}, "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="],
"ansi-align/string-width/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="],
@@ -3380,13 +5396,65 @@
"ansi-align/string-width/strip-ansi": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="],
- "app-builder-lib/tar/chownr": ["chownr@2.0.0", "", {}, "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ=="],
+ "better-opn/open/define-lazy-prop": ["define-lazy-prop@2.0.0", "", {}, "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og=="],
+
+ "better-opn/open/is-docker": ["is-docker@2.2.1", "", { "bin": { "is-docker": "cli.js" } }, "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ=="],
+
+ "better-opn/open/is-wsl": ["is-wsl@2.2.0", "", { "dependencies": { "is-docker": "^2.0.0" } }, "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww=="],
+
+ "bl/readable-stream/string_decoder": ["string_decoder@1.3.0", "", { "dependencies": { "safe-buffer": "~5.2.0" } }, "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA=="],
+
+ "blink/esbuild/@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.25.10", "", { "os": "aix", "cpu": "ppc64" }, "sha512-0NFWnA+7l41irNuaSVlLfgNT12caWJVLzp5eAVhZ0z1qpxbockccEt3s+149rE64VUI3Ml2zt8Nv5JVc4QXTsw=="],
+
+ "blink/esbuild/@esbuild/android-arm": ["@esbuild/android-arm@0.25.10", "", { "os": "android", "cpu": "arm" }, "sha512-dQAxF1dW1C3zpeCDc5KqIYuZ1tgAdRXNoZP7vkBIRtKZPYe2xVr/d3SkirklCHudW1B45tGiUlz2pUWDfbDD4w=="],
+
+ "blink/esbuild/@esbuild/android-arm64": ["@esbuild/android-arm64@0.25.10", "", { "os": "android", "cpu": "arm64" }, "sha512-LSQa7eDahypv/VO6WKohZGPSJDq5OVOo3UoFR1E4t4Gj1W7zEQMUhI+lo81H+DtB+kP+tDgBp+M4oNCwp6kffg=="],
+
+ "blink/esbuild/@esbuild/android-x64": ["@esbuild/android-x64@0.25.10", "", { "os": "android", "cpu": "x64" }, "sha512-MiC9CWdPrfhibcXwr39p9ha1x0lZJ9KaVfvzA0Wxwz9ETX4v5CHfF09bx935nHlhi+MxhA63dKRRQLiVgSUtEg=="],
+
+ "blink/esbuild/@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.25.10", "", { "os": "darwin", "cpu": "arm64" }, "sha512-JC74bdXcQEpW9KkV326WpZZjLguSZ3DfS8wrrvPMHgQOIEIG/sPXEN/V8IssoJhbefLRcRqw6RQH2NnpdprtMA=="],
+
+ "blink/esbuild/@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.25.10", "", { "os": "darwin", "cpu": "x64" }, "sha512-tguWg1olF6DGqzws97pKZ8G2L7Ig1vjDmGTwcTuYHbuU6TTjJe5FXbgs5C1BBzHbJ2bo1m3WkQDbWO2PvamRcg=="],
+
+ "blink/esbuild/@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.25.10", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-3ZioSQSg1HT2N05YxeJWYR+Libe3bREVSdWhEEgExWaDtyFbbXWb49QgPvFH8u03vUPX10JhJPcz7s9t9+boWg=="],
+
+ "blink/esbuild/@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.25.10", "", { "os": "freebsd", "cpu": "x64" }, "sha512-LLgJfHJk014Aa4anGDbh8bmI5Lk+QidDmGzuC2D+vP7mv/GeSN+H39zOf7pN5N8p059FcOfs2bVlrRr4SK9WxA=="],
+
+ "blink/esbuild/@esbuild/linux-arm": ["@esbuild/linux-arm@0.25.10", "", { "os": "linux", "cpu": "arm" }, "sha512-oR31GtBTFYCqEBALI9r6WxoU/ZofZl962pouZRTEYECvNF/dtXKku8YXcJkhgK/beU+zedXfIzHijSRapJY3vg=="],
+
+ "blink/esbuild/@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.25.10", "", { "os": "linux", "cpu": "arm64" }, "sha512-5luJWN6YKBsawd5f9i4+c+geYiVEw20FVW5x0v1kEMWNq8UctFjDiMATBxLvmmHA4bf7F6hTRaJgtghFr9iziQ=="],
+
+ "blink/esbuild/@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.25.10", "", { "os": "linux", "cpu": "ia32" }, "sha512-NrSCx2Kim3EnnWgS4Txn0QGt0Xipoumb6z6sUtl5bOEZIVKhzfyp/Lyw4C1DIYvzeW/5mWYPBFJU3a/8Yr75DQ=="],
+
+ "blink/esbuild/@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-xoSphrd4AZda8+rUDDfD9J6FUMjrkTz8itpTITM4/xgerAZZcFW7Dv+sun7333IfKxGG8gAq+3NbfEMJfiY+Eg=="],
+
+ "blink/esbuild/@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-ab6eiuCwoMmYDyTnyptoKkVS3k8fy/1Uvq7Dj5czXI6DF2GqD2ToInBI0SHOp5/X1BdZ26RKc5+qjQNGRBelRA=="],
+
+ "blink/esbuild/@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.25.10", "", { "os": "linux", "cpu": "ppc64" }, "sha512-NLinzzOgZQsGpsTkEbdJTCanwA5/wozN9dSgEl12haXJBzMTpssebuXR42bthOF3z7zXFWH1AmvWunUCkBE4EA=="],
- "app-builder-lib/tar/minipass": ["minipass@5.0.0", "", {}, "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ=="],
+ "blink/esbuild/@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-FE557XdZDrtX8NMIeA8LBJX3dC2M8VGXwfrQWU7LB5SLOajfJIxmSdyL/gU1m64Zs9CBKvm4UAuBp5aJ8OgnrA=="],
- "app-builder-lib/tar/minizlib": ["minizlib@2.1.2", "", { "dependencies": { "minipass": "^3.0.0", "yallist": "^4.0.0" } }, "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg=="],
+ "blink/esbuild/@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.25.10", "", { "os": "linux", "cpu": "s390x" }, "sha512-3BBSbgzuB9ajLoVZk0mGu+EHlBwkusRmeNYdqmznmMc9zGASFjSsxgkNsqmXugpPk00gJ0JNKh/97nxmjctdew=="],
- "app-builder-lib/tar/yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="],
+ "blink/esbuild/@esbuild/linux-x64": ["@esbuild/linux-x64@0.25.10", "", { "os": "linux", "cpu": "x64" }, "sha512-QSX81KhFoZGwenVyPoberggdW1nrQZSvfVDAIUXr3WqLRZGZqWk/P4T8p2SP+de2Sr5HPcvjhcJzEiulKgnxtA=="],
+
+ "blink/esbuild/@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.25.10", "", { "os": "none", "cpu": "arm64" }, "sha512-AKQM3gfYfSW8XRk8DdMCzaLUFB15dTrZfnX8WXQoOUpUBQ+NaAFCP1kPS/ykbbGYz7rxn0WS48/81l9hFl3u4A=="],
+
+ "blink/esbuild/@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.25.10", "", { "os": "none", "cpu": "x64" }, "sha512-7RTytDPGU6fek/hWuN9qQpeGPBZFfB4zZgcz2VK2Z5VpdUxEI8JKYsg3JfO0n/Z1E/6l05n0unDCNc4HnhQGig=="],
+
+ "blink/esbuild/@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.25.10", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-5Se0VM9Wtq797YFn+dLimf2Zx6McttsH2olUBsDml+lm0GOCRVebRWUvDtkY4BWYv/3NgzS8b/UM3jQNh5hYyw=="],
+
+ "blink/esbuild/@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.25.10", "", { "os": "openbsd", "cpu": "x64" }, "sha512-XkA4frq1TLj4bEMB+2HnI0+4RnjbuGZfet2gs/LNs5Hc7D89ZQBHQ0gL2ND6Lzu1+QVkjp3x1gIcPKzRNP8bXw=="],
+
+ "blink/esbuild/@esbuild/openharmony-arm64": ["@esbuild/openharmony-arm64@0.25.10", "", { "os": "none", "cpu": "arm64" }, "sha512-AVTSBhTX8Y/Fz6OmIVBip9tJzZEUcY8WLh7I59+upa5/GPhh2/aM6bvOMQySspnCCHvFi79kMtdJS1w0DXAeag=="],
+
+ "blink/esbuild/@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.25.10", "", { "os": "sunos", "cpu": "x64" }, "sha512-fswk3XT0Uf2pGJmOpDB7yknqhVkJQkAQOcW/ccVOtfx05LkbWOaRAtn5SaqXypeKQra1QaEa841PgrSL9ubSPQ=="],
+
+ "blink/esbuild/@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.25.10", "", { "os": "win32", "cpu": "arm64" }, "sha512-ah+9b59KDTSfpaCg6VdJoOQvKjI33nTaQr4UluQwW7aEwZQsbMCfTmfEO4VyewOxx4RaDT/xCy9ra2GPWmO7Kw=="],
+
+ "blink/esbuild/@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.25.10", "", { "os": "win32", "cpu": "ia32" }, "sha512-QHPDbKkrGO8/cz9LKVnJU22HOi4pxZnZhhA2HYHez5Pz4JeffhDjf85E57Oyco163GnzNCVkZK0b/n4Y0UHcSw=="],
+
+ "blink/esbuild/@esbuild/win32-x64": ["@esbuild/win32-x64@0.25.10", "", { "os": "win32", "cpu": "x64" }, "sha512-9KpxSVFCu0iK1owoez6aC/s/EdUQLDN3adTxGCqxMVhrPDj6bt5dbrHDXUuq+Bs2vATFBBrQS5vdQ/Ed2P+nbw=="],
"blink/tsdown/rolldown": ["rolldown@1.0.0-beta.41", "", { "dependencies": { "@oxc-project/types": "=0.93.0", "@rolldown/pluginutils": "1.0.0-beta.41", "ansis": "=4.2.0" }, "optionalDependencies": { "@rolldown/binding-android-arm64": "1.0.0-beta.41", "@rolldown/binding-darwin-arm64": "1.0.0-beta.41", "@rolldown/binding-darwin-x64": "1.0.0-beta.41", "@rolldown/binding-freebsd-x64": "1.0.0-beta.41", "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.41", "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.41", "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.41", "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.41", "@rolldown/binding-linux-x64-musl": "1.0.0-beta.41", "@rolldown/binding-openharmony-arm64": "1.0.0-beta.41", "@rolldown/binding-wasm32-wasi": "1.0.0-beta.41", "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.41", "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.41", "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.41" }, "bin": { "rolldown": "bin/cli.mjs" } }, "sha512-U+NPR0Bkg3wm61dteD2L4nAM1U9dtaqVrpDXwC36IKRHpEO/Ubpid4Nijpa2imPchcVNHfxVFwSSMJdwdGFUbg=="],
@@ -3400,18 +5468,12 @@
"builder-util/chalk/supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
- "cacache/glob/minimatch": ["minimatch@5.1.6", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g=="],
+ "bun-types/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
- "cacache/minipass/yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="],
+ "cacache/glob/minimatch": ["minimatch@5.1.6", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g=="],
"cacache/rimraf/glob": ["glob@7.2.3", "", { "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^3.1.1", "once": "^1.3.0", "path-is-absolute": "^1.0.0" } }, "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q=="],
- "cacache/tar/minipass": ["minipass@5.0.0", "", {}, "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ=="],
-
- "cacache/tar/minizlib": ["minizlib@2.1.2", "", { "dependencies": { "minipass": "^3.0.0", "yallist": "^4.0.0" } }, "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg=="],
-
- "cacache/tar/yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="],
-
"cli-highlight/chalk/ansi-styles": ["ansi-styles@4.3.0", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="],
"cli-highlight/chalk/supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
@@ -3442,10 +5504,66 @@
"concurrently/chalk/supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
+ "cytoscape-fcose/cose-base/layout-base": ["layout-base@2.0.1", "", {}, "sha512-dp3s92+uNI1hWIpPGH3jK2kxE2lMjdXdr+DH8ynZHpd6PUlH6x6cbuXnoMmiNumznqaNO31xu9e79F0uuZ0JFg=="],
+
+ "d3-sankey/d3-shape/d3-path": ["d3-path@1.0.9", "", {}, "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg=="],
+
"dir-compare/minimatch/brace-expansion": ["brace-expansion@1.1.12", "", { "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg=="],
"dmg-license/ajv/json-schema-traverse": ["json-schema-traverse@0.4.1", "", {}, "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="],
+ "drizzle-kit/esbuild/@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.25.10", "", { "os": "aix", "cpu": "ppc64" }, "sha512-0NFWnA+7l41irNuaSVlLfgNT12caWJVLzp5eAVhZ0z1qpxbockccEt3s+149rE64VUI3Ml2zt8Nv5JVc4QXTsw=="],
+
+ "drizzle-kit/esbuild/@esbuild/android-arm": ["@esbuild/android-arm@0.25.10", "", { "os": "android", "cpu": "arm" }, "sha512-dQAxF1dW1C3zpeCDc5KqIYuZ1tgAdRXNoZP7vkBIRtKZPYe2xVr/d3SkirklCHudW1B45tGiUlz2pUWDfbDD4w=="],
+
+ "drizzle-kit/esbuild/@esbuild/android-arm64": ["@esbuild/android-arm64@0.25.10", "", { "os": "android", "cpu": "arm64" }, "sha512-LSQa7eDahypv/VO6WKohZGPSJDq5OVOo3UoFR1E4t4Gj1W7zEQMUhI+lo81H+DtB+kP+tDgBp+M4oNCwp6kffg=="],
+
+ "drizzle-kit/esbuild/@esbuild/android-x64": ["@esbuild/android-x64@0.25.10", "", { "os": "android", "cpu": "x64" }, "sha512-MiC9CWdPrfhibcXwr39p9ha1x0lZJ9KaVfvzA0Wxwz9ETX4v5CHfF09bx935nHlhi+MxhA63dKRRQLiVgSUtEg=="],
+
+ "drizzle-kit/esbuild/@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.25.10", "", { "os": "darwin", "cpu": "arm64" }, "sha512-JC74bdXcQEpW9KkV326WpZZjLguSZ3DfS8wrrvPMHgQOIEIG/sPXEN/V8IssoJhbefLRcRqw6RQH2NnpdprtMA=="],
+
+ "drizzle-kit/esbuild/@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.25.10", "", { "os": "darwin", "cpu": "x64" }, "sha512-tguWg1olF6DGqzws97pKZ8G2L7Ig1vjDmGTwcTuYHbuU6TTjJe5FXbgs5C1BBzHbJ2bo1m3WkQDbWO2PvamRcg=="],
+
+ "drizzle-kit/esbuild/@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.25.10", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-3ZioSQSg1HT2N05YxeJWYR+Libe3bREVSdWhEEgExWaDtyFbbXWb49QgPvFH8u03vUPX10JhJPcz7s9t9+boWg=="],
+
+ "drizzle-kit/esbuild/@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.25.10", "", { "os": "freebsd", "cpu": "x64" }, "sha512-LLgJfHJk014Aa4anGDbh8bmI5Lk+QidDmGzuC2D+vP7mv/GeSN+H39zOf7pN5N8p059FcOfs2bVlrRr4SK9WxA=="],
+
+ "drizzle-kit/esbuild/@esbuild/linux-arm": ["@esbuild/linux-arm@0.25.10", "", { "os": "linux", "cpu": "arm" }, "sha512-oR31GtBTFYCqEBALI9r6WxoU/ZofZl962pouZRTEYECvNF/dtXKku8YXcJkhgK/beU+zedXfIzHijSRapJY3vg=="],
+
+ "drizzle-kit/esbuild/@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.25.10", "", { "os": "linux", "cpu": "arm64" }, "sha512-5luJWN6YKBsawd5f9i4+c+geYiVEw20FVW5x0v1kEMWNq8UctFjDiMATBxLvmmHA4bf7F6hTRaJgtghFr9iziQ=="],
+
+ "drizzle-kit/esbuild/@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.25.10", "", { "os": "linux", "cpu": "ia32" }, "sha512-NrSCx2Kim3EnnWgS4Txn0QGt0Xipoumb6z6sUtl5bOEZIVKhzfyp/Lyw4C1DIYvzeW/5mWYPBFJU3a/8Yr75DQ=="],
+
+ "drizzle-kit/esbuild/@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-xoSphrd4AZda8+rUDDfD9J6FUMjrkTz8itpTITM4/xgerAZZcFW7Dv+sun7333IfKxGG8gAq+3NbfEMJfiY+Eg=="],
+
+ "drizzle-kit/esbuild/@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-ab6eiuCwoMmYDyTnyptoKkVS3k8fy/1Uvq7Dj5czXI6DF2GqD2ToInBI0SHOp5/X1BdZ26RKc5+qjQNGRBelRA=="],
+
+ "drizzle-kit/esbuild/@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.25.10", "", { "os": "linux", "cpu": "ppc64" }, "sha512-NLinzzOgZQsGpsTkEbdJTCanwA5/wozN9dSgEl12haXJBzMTpssebuXR42bthOF3z7zXFWH1AmvWunUCkBE4EA=="],
+
+ "drizzle-kit/esbuild/@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-FE557XdZDrtX8NMIeA8LBJX3dC2M8VGXwfrQWU7LB5SLOajfJIxmSdyL/gU1m64Zs9CBKvm4UAuBp5aJ8OgnrA=="],
+
+ "drizzle-kit/esbuild/@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.25.10", "", { "os": "linux", "cpu": "s390x" }, "sha512-3BBSbgzuB9ajLoVZk0mGu+EHlBwkusRmeNYdqmznmMc9zGASFjSsxgkNsqmXugpPk00gJ0JNKh/97nxmjctdew=="],
+
+ "drizzle-kit/esbuild/@esbuild/linux-x64": ["@esbuild/linux-x64@0.25.10", "", { "os": "linux", "cpu": "x64" }, "sha512-QSX81KhFoZGwenVyPoberggdW1nrQZSvfVDAIUXr3WqLRZGZqWk/P4T8p2SP+de2Sr5HPcvjhcJzEiulKgnxtA=="],
+
+ "drizzle-kit/esbuild/@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.25.10", "", { "os": "none", "cpu": "arm64" }, "sha512-AKQM3gfYfSW8XRk8DdMCzaLUFB15dTrZfnX8WXQoOUpUBQ+NaAFCP1kPS/ykbbGYz7rxn0WS48/81l9hFl3u4A=="],
+
+ "drizzle-kit/esbuild/@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.25.10", "", { "os": "none", "cpu": "x64" }, "sha512-7RTytDPGU6fek/hWuN9qQpeGPBZFfB4zZgcz2VK2Z5VpdUxEI8JKYsg3JfO0n/Z1E/6l05n0unDCNc4HnhQGig=="],
+
+ "drizzle-kit/esbuild/@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.25.10", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-5Se0VM9Wtq797YFn+dLimf2Zx6McttsH2olUBsDml+lm0GOCRVebRWUvDtkY4BWYv/3NgzS8b/UM3jQNh5hYyw=="],
+
+ "drizzle-kit/esbuild/@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.25.10", "", { "os": "openbsd", "cpu": "x64" }, "sha512-XkA4frq1TLj4bEMB+2HnI0+4RnjbuGZfet2gs/LNs5Hc7D89ZQBHQ0gL2ND6Lzu1+QVkjp3x1gIcPKzRNP8bXw=="],
+
+ "drizzle-kit/esbuild/@esbuild/openharmony-arm64": ["@esbuild/openharmony-arm64@0.25.10", "", { "os": "none", "cpu": "arm64" }, "sha512-AVTSBhTX8Y/Fz6OmIVBip9tJzZEUcY8WLh7I59+upa5/GPhh2/aM6bvOMQySspnCCHvFi79kMtdJS1w0DXAeag=="],
+
+ "drizzle-kit/esbuild/@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.25.10", "", { "os": "sunos", "cpu": "x64" }, "sha512-fswk3XT0Uf2pGJmOpDB7yknqhVkJQkAQOcW/ccVOtfx05LkbWOaRAtn5SaqXypeKQra1QaEa841PgrSL9ubSPQ=="],
+
+ "drizzle-kit/esbuild/@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.25.10", "", { "os": "win32", "cpu": "arm64" }, "sha512-ah+9b59KDTSfpaCg6VdJoOQvKjI33nTaQr4UluQwW7aEwZQsbMCfTmfEO4VyewOxx4RaDT/xCy9ra2GPWmO7Kw=="],
+
+ "drizzle-kit/esbuild/@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.25.10", "", { "os": "win32", "cpu": "ia32" }, "sha512-QHPDbKkrGO8/cz9LKVnJU22HOi4pxZnZhhA2HYHez5Pz4JeffhDjf85E57Oyco163GnzNCVkZK0b/n4Y0UHcSw=="],
+
+ "drizzle-kit/esbuild/@esbuild/win32-x64": ["@esbuild/win32-x64@0.25.10", "", { "os": "win32", "cpu": "x64" }, "sha512-9KpxSVFCu0iK1owoez6aC/s/EdUQLDN3adTxGCqxMVhrPDj6bt5dbrHDXUuq+Bs2vATFBBrQS5vdQ/Ed2P+nbw=="],
+
"electron-builder/chalk/ansi-styles": ["ansi-styles@4.3.0", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="],
"electron-builder/chalk/supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
@@ -3460,24 +5578,82 @@
"electron/@types/node/undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],
- "form-data/mime-types/mime-db": ["mime-db@1.52.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="],
-
- "fs-minipass/minipass/yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="],
+ "express/mime-types/mime-db": ["mime-db@1.54.0", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="],
"google-auth-library/jws/jwa": ["jwa@2.0.1", "", { "dependencies": { "buffer-equal-constant-time": "^1.0.1", "ecdsa-sig-formatter": "1.0.11", "safe-buffer": "^5.0.1" } }, "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg=="],
+ "google-auth-library/jws/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
"gradient-string/chalk/ansi-styles": ["ansi-styles@4.3.0", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="],
"gradient-string/chalk/supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
"gtoken/jws/jwa": ["jwa@2.0.1", "", { "dependencies": { "buffer-equal-constant-time": "^1.0.1", "ecdsa-sig-formatter": "1.0.11", "safe-buffer": "^5.0.1" } }, "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg=="],
+ "gtoken/jws/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
+ "happy-dom/@types/node/undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],
+
+ "hast-util-from-parse5/hastscript/hast-util-parse-selector": ["hast-util-parse-selector@4.0.0", "", { "dependencies": { "@types/hast": "^3.0.0" } }, "sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A=="],
+
"hastscript/@types/hast/@types/unist": ["@types/unist@2.0.11", "", {}, "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA=="],
"iconv-corefoundation/cli-truncate/slice-ansi": ["slice-ansi@3.0.0", "", { "dependencies": { "ansi-styles": "^4.0.0", "astral-regex": "^2.0.0", "is-fullwidth-code-point": "^3.0.0" } }, "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ=="],
"iconv-corefoundation/cli-truncate/string-width": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],
+ "importx/esbuild/@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.25.10", "", { "os": "aix", "cpu": "ppc64" }, "sha512-0NFWnA+7l41irNuaSVlLfgNT12caWJVLzp5eAVhZ0z1qpxbockccEt3s+149rE64VUI3Ml2zt8Nv5JVc4QXTsw=="],
+
+ "importx/esbuild/@esbuild/android-arm": ["@esbuild/android-arm@0.25.10", "", { "os": "android", "cpu": "arm" }, "sha512-dQAxF1dW1C3zpeCDc5KqIYuZ1tgAdRXNoZP7vkBIRtKZPYe2xVr/d3SkirklCHudW1B45tGiUlz2pUWDfbDD4w=="],
+
+ "importx/esbuild/@esbuild/android-arm64": ["@esbuild/android-arm64@0.25.10", "", { "os": "android", "cpu": "arm64" }, "sha512-LSQa7eDahypv/VO6WKohZGPSJDq5OVOo3UoFR1E4t4Gj1W7zEQMUhI+lo81H+DtB+kP+tDgBp+M4oNCwp6kffg=="],
+
+ "importx/esbuild/@esbuild/android-x64": ["@esbuild/android-x64@0.25.10", "", { "os": "android", "cpu": "x64" }, "sha512-MiC9CWdPrfhibcXwr39p9ha1x0lZJ9KaVfvzA0Wxwz9ETX4v5CHfF09bx935nHlhi+MxhA63dKRRQLiVgSUtEg=="],
+
+ "importx/esbuild/@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.25.10", "", { "os": "darwin", "cpu": "arm64" }, "sha512-JC74bdXcQEpW9KkV326WpZZjLguSZ3DfS8wrrvPMHgQOIEIG/sPXEN/V8IssoJhbefLRcRqw6RQH2NnpdprtMA=="],
+
+ "importx/esbuild/@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.25.10", "", { "os": "darwin", "cpu": "x64" }, "sha512-tguWg1olF6DGqzws97pKZ8G2L7Ig1vjDmGTwcTuYHbuU6TTjJe5FXbgs5C1BBzHbJ2bo1m3WkQDbWO2PvamRcg=="],
+
+ "importx/esbuild/@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.25.10", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-3ZioSQSg1HT2N05YxeJWYR+Libe3bREVSdWhEEgExWaDtyFbbXWb49QgPvFH8u03vUPX10JhJPcz7s9t9+boWg=="],
+
+ "importx/esbuild/@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.25.10", "", { "os": "freebsd", "cpu": "x64" }, "sha512-LLgJfHJk014Aa4anGDbh8bmI5Lk+QidDmGzuC2D+vP7mv/GeSN+H39zOf7pN5N8p059FcOfs2bVlrRr4SK9WxA=="],
+
+ "importx/esbuild/@esbuild/linux-arm": ["@esbuild/linux-arm@0.25.10", "", { "os": "linux", "cpu": "arm" }, "sha512-oR31GtBTFYCqEBALI9r6WxoU/ZofZl962pouZRTEYECvNF/dtXKku8YXcJkhgK/beU+zedXfIzHijSRapJY3vg=="],
+
+ "importx/esbuild/@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.25.10", "", { "os": "linux", "cpu": "arm64" }, "sha512-5luJWN6YKBsawd5f9i4+c+geYiVEw20FVW5x0v1kEMWNq8UctFjDiMATBxLvmmHA4bf7F6hTRaJgtghFr9iziQ=="],
+
+ "importx/esbuild/@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.25.10", "", { "os": "linux", "cpu": "ia32" }, "sha512-NrSCx2Kim3EnnWgS4Txn0QGt0Xipoumb6z6sUtl5bOEZIVKhzfyp/Lyw4C1DIYvzeW/5mWYPBFJU3a/8Yr75DQ=="],
+
+ "importx/esbuild/@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-xoSphrd4AZda8+rUDDfD9J6FUMjrkTz8itpTITM4/xgerAZZcFW7Dv+sun7333IfKxGG8gAq+3NbfEMJfiY+Eg=="],
+
+ "importx/esbuild/@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-ab6eiuCwoMmYDyTnyptoKkVS3k8fy/1Uvq7Dj5czXI6DF2GqD2ToInBI0SHOp5/X1BdZ26RKc5+qjQNGRBelRA=="],
+
+ "importx/esbuild/@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.25.10", "", { "os": "linux", "cpu": "ppc64" }, "sha512-NLinzzOgZQsGpsTkEbdJTCanwA5/wozN9dSgEl12haXJBzMTpssebuXR42bthOF3z7zXFWH1AmvWunUCkBE4EA=="],
+
+ "importx/esbuild/@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-FE557XdZDrtX8NMIeA8LBJX3dC2M8VGXwfrQWU7LB5SLOajfJIxmSdyL/gU1m64Zs9CBKvm4UAuBp5aJ8OgnrA=="],
+
+ "importx/esbuild/@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.25.10", "", { "os": "linux", "cpu": "s390x" }, "sha512-3BBSbgzuB9ajLoVZk0mGu+EHlBwkusRmeNYdqmznmMc9zGASFjSsxgkNsqmXugpPk00gJ0JNKh/97nxmjctdew=="],
+
+ "importx/esbuild/@esbuild/linux-x64": ["@esbuild/linux-x64@0.25.10", "", { "os": "linux", "cpu": "x64" }, "sha512-QSX81KhFoZGwenVyPoberggdW1nrQZSvfVDAIUXr3WqLRZGZqWk/P4T8p2SP+de2Sr5HPcvjhcJzEiulKgnxtA=="],
+
+ "importx/esbuild/@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.25.10", "", { "os": "none", "cpu": "arm64" }, "sha512-AKQM3gfYfSW8XRk8DdMCzaLUFB15dTrZfnX8WXQoOUpUBQ+NaAFCP1kPS/ykbbGYz7rxn0WS48/81l9hFl3u4A=="],
+
+ "importx/esbuild/@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.25.10", "", { "os": "none", "cpu": "x64" }, "sha512-7RTytDPGU6fek/hWuN9qQpeGPBZFfB4zZgcz2VK2Z5VpdUxEI8JKYsg3JfO0n/Z1E/6l05n0unDCNc4HnhQGig=="],
+
+ "importx/esbuild/@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.25.10", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-5Se0VM9Wtq797YFn+dLimf2Zx6McttsH2olUBsDml+lm0GOCRVebRWUvDtkY4BWYv/3NgzS8b/UM3jQNh5hYyw=="],
+
+ "importx/esbuild/@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.25.10", "", { "os": "openbsd", "cpu": "x64" }, "sha512-XkA4frq1TLj4bEMB+2HnI0+4RnjbuGZfet2gs/LNs5Hc7D89ZQBHQ0gL2ND6Lzu1+QVkjp3x1gIcPKzRNP8bXw=="],
+
+ "importx/esbuild/@esbuild/openharmony-arm64": ["@esbuild/openharmony-arm64@0.25.10", "", { "os": "none", "cpu": "arm64" }, "sha512-AVTSBhTX8Y/Fz6OmIVBip9tJzZEUcY8WLh7I59+upa5/GPhh2/aM6bvOMQySspnCCHvFi79kMtdJS1w0DXAeag=="],
+
+ "importx/esbuild/@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.25.10", "", { "os": "sunos", "cpu": "x64" }, "sha512-fswk3XT0Uf2pGJmOpDB7yknqhVkJQkAQOcW/ccVOtfx05LkbWOaRAtn5SaqXypeKQra1QaEa841PgrSL9ubSPQ=="],
+
+ "importx/esbuild/@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.25.10", "", { "os": "win32", "cpu": "arm64" }, "sha512-ah+9b59KDTSfpaCg6VdJoOQvKjI33nTaQr4UluQwW7aEwZQsbMCfTmfEO4VyewOxx4RaDT/xCy9ra2GPWmO7Kw=="],
+
+ "importx/esbuild/@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.25.10", "", { "os": "win32", "cpu": "ia32" }, "sha512-QHPDbKkrGO8/cz9LKVnJU22HOi4pxZnZhhA2HYHez5Pz4JeffhDjf85E57Oyco163GnzNCVkZK0b/n4Y0UHcSw=="],
+
+ "importx/esbuild/@esbuild/win32-x64": ["@esbuild/win32-x64@0.25.10", "", { "os": "win32", "cpu": "x64" }, "sha512-9KpxSVFCu0iK1owoez6aC/s/EdUQLDN3adTxGCqxMVhrPDj6bt5dbrHDXUuq+Bs2vATFBBrQS5vdQ/Ed2P+nbw=="],
+
"log-symbols/chalk/ansi-styles": ["ansi-styles@4.3.0", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="],
"log-symbols/chalk/supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
@@ -3486,8 +5662,6 @@
"make-fetch-happen/https-proxy-agent/agent-base": ["agent-base@6.0.2", "", { "dependencies": { "debug": "4" } }, "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ=="],
- "make-fetch-happen/minipass/yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="],
-
"mdast-util-mdx-jsx/parse-entities/@types/unist": ["@types/unist@2.0.11", "", {}, "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA=="],
"mdast-util-mdx-jsx/parse-entities/character-entities-legacy": ["character-entities-legacy@3.0.0", "", {}, "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ=="],
@@ -3500,17 +5674,7 @@
"mdast-util-mdx-jsx/parse-entities/is-hexadecimal": ["is-hexadecimal@2.0.1", "", {}, "sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg=="],
- "minipass-collect/minipass/yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="],
-
- "minipass-fetch/minipass/yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="],
-
- "minipass-fetch/minizlib/yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="],
-
- "minipass-flush/minipass/yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="],
-
- "minipass-pipeline/minipass/yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="],
-
- "minipass-sized/minipass/yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="],
+ "node-stdlib-browser/string_decoder/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
"normalize-package-data/hosted-git-info/lru-cache": ["lru-cache@10.4.3", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="],
@@ -3522,16 +5686,190 @@
"ora/strip-ansi/ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="],
+ "p-locate/p-limit/yocto-queue": ["yocto-queue@1.2.2", "", {}, "sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ=="],
+
+ "pkg-dir/find-up/locate-path": ["locate-path@6.0.0", "", { "dependencies": { "p-locate": "^5.0.0" } }, "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw=="],
+
+ "pkg-dir/find-up/path-exists": ["path-exists@4.0.0", "", {}, "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="],
+
+ "protobufjs/@types/node/undici-types": ["undici-types@7.13.0", "", {}, "sha512-Ov2Rr9Sx+fRgagJ5AX0qvItZG/JKKoBRAVITs1zk7IqZGTJUwgUr7qoYBpWwakpWilTZFM98rG/AFRocu10iIQ=="],
+
+ "react-docgen/@babel/types/@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.28.5", "", {}, "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q=="],
+
"rehype-highlight/lowlight/highlight.js": ["highlight.js@11.11.1", "", {}, "sha512-Xwwo44whKBVCYoliBQwaPvtd/2tYFkRQtXDWj1nackaV2JPXx3L0+Jvd8/qCJ2p+ML0/XVkJ2q+Mr+UVdpJK5w=="],
"rimraf/glob/minimatch": ["minimatch@3.1.2", "", { "dependencies": { "brace-expansion": "^1.1.7" } }, "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw=="],
- "ssri/minipass/yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="],
+ "ripemd160/hash-base/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
+ "send/mime-types/mime-db": ["mime-db@1.54.0", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="],
+
+ "storybook/esbuild/@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.25.10", "", { "os": "aix", "cpu": "ppc64" }, "sha512-0NFWnA+7l41irNuaSVlLfgNT12caWJVLzp5eAVhZ0z1qpxbockccEt3s+149rE64VUI3Ml2zt8Nv5JVc4QXTsw=="],
+
+ "storybook/esbuild/@esbuild/android-arm": ["@esbuild/android-arm@0.25.10", "", { "os": "android", "cpu": "arm" }, "sha512-dQAxF1dW1C3zpeCDc5KqIYuZ1tgAdRXNoZP7vkBIRtKZPYe2xVr/d3SkirklCHudW1B45tGiUlz2pUWDfbDD4w=="],
+
+ "storybook/esbuild/@esbuild/android-arm64": ["@esbuild/android-arm64@0.25.10", "", { "os": "android", "cpu": "arm64" }, "sha512-LSQa7eDahypv/VO6WKohZGPSJDq5OVOo3UoFR1E4t4Gj1W7zEQMUhI+lo81H+DtB+kP+tDgBp+M4oNCwp6kffg=="],
+
+ "storybook/esbuild/@esbuild/android-x64": ["@esbuild/android-x64@0.25.10", "", { "os": "android", "cpu": "x64" }, "sha512-MiC9CWdPrfhibcXwr39p9ha1x0lZJ9KaVfvzA0Wxwz9ETX4v5CHfF09bx935nHlhi+MxhA63dKRRQLiVgSUtEg=="],
+
+ "storybook/esbuild/@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.25.10", "", { "os": "darwin", "cpu": "arm64" }, "sha512-JC74bdXcQEpW9KkV326WpZZjLguSZ3DfS8wrrvPMHgQOIEIG/sPXEN/V8IssoJhbefLRcRqw6RQH2NnpdprtMA=="],
+
+ "storybook/esbuild/@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.25.10", "", { "os": "darwin", "cpu": "x64" }, "sha512-tguWg1olF6DGqzws97pKZ8G2L7Ig1vjDmGTwcTuYHbuU6TTjJe5FXbgs5C1BBzHbJ2bo1m3WkQDbWO2PvamRcg=="],
+
+ "storybook/esbuild/@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.25.10", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-3ZioSQSg1HT2N05YxeJWYR+Libe3bREVSdWhEEgExWaDtyFbbXWb49QgPvFH8u03vUPX10JhJPcz7s9t9+boWg=="],
+
+ "storybook/esbuild/@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.25.10", "", { "os": "freebsd", "cpu": "x64" }, "sha512-LLgJfHJk014Aa4anGDbh8bmI5Lk+QidDmGzuC2D+vP7mv/GeSN+H39zOf7pN5N8p059FcOfs2bVlrRr4SK9WxA=="],
+
+ "storybook/esbuild/@esbuild/linux-arm": ["@esbuild/linux-arm@0.25.10", "", { "os": "linux", "cpu": "arm" }, "sha512-oR31GtBTFYCqEBALI9r6WxoU/ZofZl962pouZRTEYECvNF/dtXKku8YXcJkhgK/beU+zedXfIzHijSRapJY3vg=="],
+
+ "storybook/esbuild/@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.25.10", "", { "os": "linux", "cpu": "arm64" }, "sha512-5luJWN6YKBsawd5f9i4+c+geYiVEw20FVW5x0v1kEMWNq8UctFjDiMATBxLvmmHA4bf7F6hTRaJgtghFr9iziQ=="],
+
+ "storybook/esbuild/@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.25.10", "", { "os": "linux", "cpu": "ia32" }, "sha512-NrSCx2Kim3EnnWgS4Txn0QGt0Xipoumb6z6sUtl5bOEZIVKhzfyp/Lyw4C1DIYvzeW/5mWYPBFJU3a/8Yr75DQ=="],
+
+ "storybook/esbuild/@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-xoSphrd4AZda8+rUDDfD9J6FUMjrkTz8itpTITM4/xgerAZZcFW7Dv+sun7333IfKxGG8gAq+3NbfEMJfiY+Eg=="],
+
+ "storybook/esbuild/@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-ab6eiuCwoMmYDyTnyptoKkVS3k8fy/1Uvq7Dj5czXI6DF2GqD2ToInBI0SHOp5/X1BdZ26RKc5+qjQNGRBelRA=="],
+
+ "storybook/esbuild/@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.25.10", "", { "os": "linux", "cpu": "ppc64" }, "sha512-NLinzzOgZQsGpsTkEbdJTCanwA5/wozN9dSgEl12haXJBzMTpssebuXR42bthOF3z7zXFWH1AmvWunUCkBE4EA=="],
+
+ "storybook/esbuild/@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-FE557XdZDrtX8NMIeA8LBJX3dC2M8VGXwfrQWU7LB5SLOajfJIxmSdyL/gU1m64Zs9CBKvm4UAuBp5aJ8OgnrA=="],
+
+ "storybook/esbuild/@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.25.10", "", { "os": "linux", "cpu": "s390x" }, "sha512-3BBSbgzuB9ajLoVZk0mGu+EHlBwkusRmeNYdqmznmMc9zGASFjSsxgkNsqmXugpPk00gJ0JNKh/97nxmjctdew=="],
+
+ "storybook/esbuild/@esbuild/linux-x64": ["@esbuild/linux-x64@0.25.10", "", { "os": "linux", "cpu": "x64" }, "sha512-QSX81KhFoZGwenVyPoberggdW1nrQZSvfVDAIUXr3WqLRZGZqWk/P4T8p2SP+de2Sr5HPcvjhcJzEiulKgnxtA=="],
+
+ "storybook/esbuild/@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.25.10", "", { "os": "none", "cpu": "arm64" }, "sha512-AKQM3gfYfSW8XRk8DdMCzaLUFB15dTrZfnX8WXQoOUpUBQ+NaAFCP1kPS/ykbbGYz7rxn0WS48/81l9hFl3u4A=="],
+
+ "storybook/esbuild/@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.25.10", "", { "os": "none", "cpu": "x64" }, "sha512-7RTytDPGU6fek/hWuN9qQpeGPBZFfB4zZgcz2VK2Z5VpdUxEI8JKYsg3JfO0n/Z1E/6l05n0unDCNc4HnhQGig=="],
+
+ "storybook/esbuild/@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.25.10", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-5Se0VM9Wtq797YFn+dLimf2Zx6McttsH2olUBsDml+lm0GOCRVebRWUvDtkY4BWYv/3NgzS8b/UM3jQNh5hYyw=="],
+
+ "storybook/esbuild/@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.25.10", "", { "os": "openbsd", "cpu": "x64" }, "sha512-XkA4frq1TLj4bEMB+2HnI0+4RnjbuGZfet2gs/LNs5Hc7D89ZQBHQ0gL2ND6Lzu1+QVkjp3x1gIcPKzRNP8bXw=="],
+
+ "storybook/esbuild/@esbuild/openharmony-arm64": ["@esbuild/openharmony-arm64@0.25.10", "", { "os": "none", "cpu": "arm64" }, "sha512-AVTSBhTX8Y/Fz6OmIVBip9tJzZEUcY8WLh7I59+upa5/GPhh2/aM6bvOMQySspnCCHvFi79kMtdJS1w0DXAeag=="],
+
+ "storybook/esbuild/@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.25.10", "", { "os": "sunos", "cpu": "x64" }, "sha512-fswk3XT0Uf2pGJmOpDB7yknqhVkJQkAQOcW/ccVOtfx05LkbWOaRAtn5SaqXypeKQra1QaEa841PgrSL9ubSPQ=="],
+
+ "storybook/esbuild/@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.25.10", "", { "os": "win32", "cpu": "arm64" }, "sha512-ah+9b59KDTSfpaCg6VdJoOQvKjI33nTaQr4UluQwW7aEwZQsbMCfTmfEO4VyewOxx4RaDT/xCy9ra2GPWmO7Kw=="],
+
+ "storybook/esbuild/@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.25.10", "", { "os": "win32", "cpu": "ia32" }, "sha512-QHPDbKkrGO8/cz9LKVnJU22HOi4pxZnZhhA2HYHez5Pz4JeffhDjf85E57Oyco163GnzNCVkZK0b/n4Y0UHcSw=="],
+
+ "storybook/esbuild/@esbuild/win32-x64": ["@esbuild/win32-x64@0.25.10", "", { "os": "win32", "cpu": "x64" }, "sha512-9KpxSVFCu0iK1owoez6aC/s/EdUQLDN3adTxGCqxMVhrPDj6bt5dbrHDXUuq+Bs2vATFBBrQS5vdQ/Ed2P+nbw=="],
+
+ "stream-browserify/readable-stream/string_decoder": ["string_decoder@1.3.0", "", { "dependencies": { "safe-buffer": "~5.2.0" } }, "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA=="],
+
+ "stream-http/readable-stream/string_decoder": ["string_decoder@1.3.0", "", { "dependencies": { "safe-buffer": "~5.2.0" } }, "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA=="],
"string-width-cjs/strip-ansi/ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="],
+ "tsx/esbuild/@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.25.10", "", { "os": "aix", "cpu": "ppc64" }, "sha512-0NFWnA+7l41irNuaSVlLfgNT12caWJVLzp5eAVhZ0z1qpxbockccEt3s+149rE64VUI3Ml2zt8Nv5JVc4QXTsw=="],
+
+ "tsx/esbuild/@esbuild/android-arm": ["@esbuild/android-arm@0.25.10", "", { "os": "android", "cpu": "arm" }, "sha512-dQAxF1dW1C3zpeCDc5KqIYuZ1tgAdRXNoZP7vkBIRtKZPYe2xVr/d3SkirklCHudW1B45tGiUlz2pUWDfbDD4w=="],
+
+ "tsx/esbuild/@esbuild/android-arm64": ["@esbuild/android-arm64@0.25.10", "", { "os": "android", "cpu": "arm64" }, "sha512-LSQa7eDahypv/VO6WKohZGPSJDq5OVOo3UoFR1E4t4Gj1W7zEQMUhI+lo81H+DtB+kP+tDgBp+M4oNCwp6kffg=="],
+
+ "tsx/esbuild/@esbuild/android-x64": ["@esbuild/android-x64@0.25.10", "", { "os": "android", "cpu": "x64" }, "sha512-MiC9CWdPrfhibcXwr39p9ha1x0lZJ9KaVfvzA0Wxwz9ETX4v5CHfF09bx935nHlhi+MxhA63dKRRQLiVgSUtEg=="],
+
+ "tsx/esbuild/@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.25.10", "", { "os": "darwin", "cpu": "arm64" }, "sha512-JC74bdXcQEpW9KkV326WpZZjLguSZ3DfS8wrrvPMHgQOIEIG/sPXEN/V8IssoJhbefLRcRqw6RQH2NnpdprtMA=="],
+
+ "tsx/esbuild/@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.25.10", "", { "os": "darwin", "cpu": "x64" }, "sha512-tguWg1olF6DGqzws97pKZ8G2L7Ig1vjDmGTwcTuYHbuU6TTjJe5FXbgs5C1BBzHbJ2bo1m3WkQDbWO2PvamRcg=="],
+
+ "tsx/esbuild/@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.25.10", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-3ZioSQSg1HT2N05YxeJWYR+Libe3bREVSdWhEEgExWaDtyFbbXWb49QgPvFH8u03vUPX10JhJPcz7s9t9+boWg=="],
+
+ "tsx/esbuild/@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.25.10", "", { "os": "freebsd", "cpu": "x64" }, "sha512-LLgJfHJk014Aa4anGDbh8bmI5Lk+QidDmGzuC2D+vP7mv/GeSN+H39zOf7pN5N8p059FcOfs2bVlrRr4SK9WxA=="],
+
+ "tsx/esbuild/@esbuild/linux-arm": ["@esbuild/linux-arm@0.25.10", "", { "os": "linux", "cpu": "arm" }, "sha512-oR31GtBTFYCqEBALI9r6WxoU/ZofZl962pouZRTEYECvNF/dtXKku8YXcJkhgK/beU+zedXfIzHijSRapJY3vg=="],
+
+ "tsx/esbuild/@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.25.10", "", { "os": "linux", "cpu": "arm64" }, "sha512-5luJWN6YKBsawd5f9i4+c+geYiVEw20FVW5x0v1kEMWNq8UctFjDiMATBxLvmmHA4bf7F6hTRaJgtghFr9iziQ=="],
+
+ "tsx/esbuild/@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.25.10", "", { "os": "linux", "cpu": "ia32" }, "sha512-NrSCx2Kim3EnnWgS4Txn0QGt0Xipoumb6z6sUtl5bOEZIVKhzfyp/Lyw4C1DIYvzeW/5mWYPBFJU3a/8Yr75DQ=="],
+
+ "tsx/esbuild/@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-xoSphrd4AZda8+rUDDfD9J6FUMjrkTz8itpTITM4/xgerAZZcFW7Dv+sun7333IfKxGG8gAq+3NbfEMJfiY+Eg=="],
+
+ "tsx/esbuild/@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-ab6eiuCwoMmYDyTnyptoKkVS3k8fy/1Uvq7Dj5czXI6DF2GqD2ToInBI0SHOp5/X1BdZ26RKc5+qjQNGRBelRA=="],
+
+ "tsx/esbuild/@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.25.10", "", { "os": "linux", "cpu": "ppc64" }, "sha512-NLinzzOgZQsGpsTkEbdJTCanwA5/wozN9dSgEl12haXJBzMTpssebuXR42bthOF3z7zXFWH1AmvWunUCkBE4EA=="],
+
+ "tsx/esbuild/@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-FE557XdZDrtX8NMIeA8LBJX3dC2M8VGXwfrQWU7LB5SLOajfJIxmSdyL/gU1m64Zs9CBKvm4UAuBp5aJ8OgnrA=="],
+
+ "tsx/esbuild/@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.25.10", "", { "os": "linux", "cpu": "s390x" }, "sha512-3BBSbgzuB9ajLoVZk0mGu+EHlBwkusRmeNYdqmznmMc9zGASFjSsxgkNsqmXugpPk00gJ0JNKh/97nxmjctdew=="],
+
+ "tsx/esbuild/@esbuild/linux-x64": ["@esbuild/linux-x64@0.25.10", "", { "os": "linux", "cpu": "x64" }, "sha512-QSX81KhFoZGwenVyPoberggdW1nrQZSvfVDAIUXr3WqLRZGZqWk/P4T8p2SP+de2Sr5HPcvjhcJzEiulKgnxtA=="],
+
+ "tsx/esbuild/@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.25.10", "", { "os": "none", "cpu": "arm64" }, "sha512-AKQM3gfYfSW8XRk8DdMCzaLUFB15dTrZfnX8WXQoOUpUBQ+NaAFCP1kPS/ykbbGYz7rxn0WS48/81l9hFl3u4A=="],
+
+ "tsx/esbuild/@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.25.10", "", { "os": "none", "cpu": "x64" }, "sha512-7RTytDPGU6fek/hWuN9qQpeGPBZFfB4zZgcz2VK2Z5VpdUxEI8JKYsg3JfO0n/Z1E/6l05n0unDCNc4HnhQGig=="],
+
+ "tsx/esbuild/@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.25.10", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-5Se0VM9Wtq797YFn+dLimf2Zx6McttsH2olUBsDml+lm0GOCRVebRWUvDtkY4BWYv/3NgzS8b/UM3jQNh5hYyw=="],
+
+ "tsx/esbuild/@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.25.10", "", { "os": "openbsd", "cpu": "x64" }, "sha512-XkA4frq1TLj4bEMB+2HnI0+4RnjbuGZfet2gs/LNs5Hc7D89ZQBHQ0gL2ND6Lzu1+QVkjp3x1gIcPKzRNP8bXw=="],
+
+ "tsx/esbuild/@esbuild/openharmony-arm64": ["@esbuild/openharmony-arm64@0.25.10", "", { "os": "none", "cpu": "arm64" }, "sha512-AVTSBhTX8Y/Fz6OmIVBip9tJzZEUcY8WLh7I59+upa5/GPhh2/aM6bvOMQySspnCCHvFi79kMtdJS1w0DXAeag=="],
+
+ "tsx/esbuild/@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.25.10", "", { "os": "sunos", "cpu": "x64" }, "sha512-fswk3XT0Uf2pGJmOpDB7yknqhVkJQkAQOcW/ccVOtfx05LkbWOaRAtn5SaqXypeKQra1QaEa841PgrSL9ubSPQ=="],
+
+ "tsx/esbuild/@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.25.10", "", { "os": "win32", "cpu": "arm64" }, "sha512-ah+9b59KDTSfpaCg6VdJoOQvKjI33nTaQr4UluQwW7aEwZQsbMCfTmfEO4VyewOxx4RaDT/xCy9ra2GPWmO7Kw=="],
+
+ "tsx/esbuild/@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.25.10", "", { "os": "win32", "cpu": "ia32" }, "sha512-QHPDbKkrGO8/cz9LKVnJU22HOi4pxZnZhhA2HYHez5Pz4JeffhDjf85E57Oyco163GnzNCVkZK0b/n4Y0UHcSw=="],
+
+ "tsx/esbuild/@esbuild/win32-x64": ["@esbuild/win32-x64@0.25.10", "", { "os": "win32", "cpu": "x64" }, "sha512-9KpxSVFCu0iK1owoez6aC/s/EdUQLDN3adTxGCqxMVhrPDj6bt5dbrHDXUuq+Bs2vATFBBrQS5vdQ/Ed2P+nbw=="],
+
+ "type-is/mime-types/mime-db": ["mime-db@1.54.0", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="],
+
"update-notifier/boxen/camelcase": ["camelcase@8.0.0", "", {}, "sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA=="],
+ "vite/esbuild/@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.25.10", "", { "os": "aix", "cpu": "ppc64" }, "sha512-0NFWnA+7l41irNuaSVlLfgNT12caWJVLzp5eAVhZ0z1qpxbockccEt3s+149rE64VUI3Ml2zt8Nv5JVc4QXTsw=="],
+
+ "vite/esbuild/@esbuild/android-arm": ["@esbuild/android-arm@0.25.10", "", { "os": "android", "cpu": "arm" }, "sha512-dQAxF1dW1C3zpeCDc5KqIYuZ1tgAdRXNoZP7vkBIRtKZPYe2xVr/d3SkirklCHudW1B45tGiUlz2pUWDfbDD4w=="],
+
+ "vite/esbuild/@esbuild/android-arm64": ["@esbuild/android-arm64@0.25.10", "", { "os": "android", "cpu": "arm64" }, "sha512-LSQa7eDahypv/VO6WKohZGPSJDq5OVOo3UoFR1E4t4Gj1W7zEQMUhI+lo81H+DtB+kP+tDgBp+M4oNCwp6kffg=="],
+
+ "vite/esbuild/@esbuild/android-x64": ["@esbuild/android-x64@0.25.10", "", { "os": "android", "cpu": "x64" }, "sha512-MiC9CWdPrfhibcXwr39p9ha1x0lZJ9KaVfvzA0Wxwz9ETX4v5CHfF09bx935nHlhi+MxhA63dKRRQLiVgSUtEg=="],
+
+ "vite/esbuild/@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.25.10", "", { "os": "darwin", "cpu": "arm64" }, "sha512-JC74bdXcQEpW9KkV326WpZZjLguSZ3DfS8wrrvPMHgQOIEIG/sPXEN/V8IssoJhbefLRcRqw6RQH2NnpdprtMA=="],
+
+ "vite/esbuild/@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.25.10", "", { "os": "darwin", "cpu": "x64" }, "sha512-tguWg1olF6DGqzws97pKZ8G2L7Ig1vjDmGTwcTuYHbuU6TTjJe5FXbgs5C1BBzHbJ2bo1m3WkQDbWO2PvamRcg=="],
+
+ "vite/esbuild/@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.25.10", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-3ZioSQSg1HT2N05YxeJWYR+Libe3bREVSdWhEEgExWaDtyFbbXWb49QgPvFH8u03vUPX10JhJPcz7s9t9+boWg=="],
+
+ "vite/esbuild/@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.25.10", "", { "os": "freebsd", "cpu": "x64" }, "sha512-LLgJfHJk014Aa4anGDbh8bmI5Lk+QidDmGzuC2D+vP7mv/GeSN+H39zOf7pN5N8p059FcOfs2bVlrRr4SK9WxA=="],
+
+ "vite/esbuild/@esbuild/linux-arm": ["@esbuild/linux-arm@0.25.10", "", { "os": "linux", "cpu": "arm" }, "sha512-oR31GtBTFYCqEBALI9r6WxoU/ZofZl962pouZRTEYECvNF/dtXKku8YXcJkhgK/beU+zedXfIzHijSRapJY3vg=="],
+
+ "vite/esbuild/@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.25.10", "", { "os": "linux", "cpu": "arm64" }, "sha512-5luJWN6YKBsawd5f9i4+c+geYiVEw20FVW5x0v1kEMWNq8UctFjDiMATBxLvmmHA4bf7F6hTRaJgtghFr9iziQ=="],
+
+ "vite/esbuild/@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.25.10", "", { "os": "linux", "cpu": "ia32" }, "sha512-NrSCx2Kim3EnnWgS4Txn0QGt0Xipoumb6z6sUtl5bOEZIVKhzfyp/Lyw4C1DIYvzeW/5mWYPBFJU3a/8Yr75DQ=="],
+
+ "vite/esbuild/@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-xoSphrd4AZda8+rUDDfD9J6FUMjrkTz8itpTITM4/xgerAZZcFW7Dv+sun7333IfKxGG8gAq+3NbfEMJfiY+Eg=="],
+
+ "vite/esbuild/@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-ab6eiuCwoMmYDyTnyptoKkVS3k8fy/1Uvq7Dj5czXI6DF2GqD2ToInBI0SHOp5/X1BdZ26RKc5+qjQNGRBelRA=="],
+
+ "vite/esbuild/@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.25.10", "", { "os": "linux", "cpu": "ppc64" }, "sha512-NLinzzOgZQsGpsTkEbdJTCanwA5/wozN9dSgEl12haXJBzMTpssebuXR42bthOF3z7zXFWH1AmvWunUCkBE4EA=="],
+
+ "vite/esbuild/@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.25.10", "", { "os": "linux", "cpu": "none" }, "sha512-FE557XdZDrtX8NMIeA8LBJX3dC2M8VGXwfrQWU7LB5SLOajfJIxmSdyL/gU1m64Zs9CBKvm4UAuBp5aJ8OgnrA=="],
+
+ "vite/esbuild/@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.25.10", "", { "os": "linux", "cpu": "s390x" }, "sha512-3BBSbgzuB9ajLoVZk0mGu+EHlBwkusRmeNYdqmznmMc9zGASFjSsxgkNsqmXugpPk00gJ0JNKh/97nxmjctdew=="],
+
+ "vite/esbuild/@esbuild/linux-x64": ["@esbuild/linux-x64@0.25.10", "", { "os": "linux", "cpu": "x64" }, "sha512-QSX81KhFoZGwenVyPoberggdW1nrQZSvfVDAIUXr3WqLRZGZqWk/P4T8p2SP+de2Sr5HPcvjhcJzEiulKgnxtA=="],
+
+ "vite/esbuild/@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.25.10", "", { "os": "none", "cpu": "arm64" }, "sha512-AKQM3gfYfSW8XRk8DdMCzaLUFB15dTrZfnX8WXQoOUpUBQ+NaAFCP1kPS/ykbbGYz7rxn0WS48/81l9hFl3u4A=="],
+
+ "vite/esbuild/@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.25.10", "", { "os": "none", "cpu": "x64" }, "sha512-7RTytDPGU6fek/hWuN9qQpeGPBZFfB4zZgcz2VK2Z5VpdUxEI8JKYsg3JfO0n/Z1E/6l05n0unDCNc4HnhQGig=="],
+
+ "vite/esbuild/@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.25.10", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-5Se0VM9Wtq797YFn+dLimf2Zx6McttsH2olUBsDml+lm0GOCRVebRWUvDtkY4BWYv/3NgzS8b/UM3jQNh5hYyw=="],
+
+ "vite/esbuild/@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.25.10", "", { "os": "openbsd", "cpu": "x64" }, "sha512-XkA4frq1TLj4bEMB+2HnI0+4RnjbuGZfet2gs/LNs5Hc7D89ZQBHQ0gL2ND6Lzu1+QVkjp3x1gIcPKzRNP8bXw=="],
+
+ "vite/esbuild/@esbuild/openharmony-arm64": ["@esbuild/openharmony-arm64@0.25.10", "", { "os": "none", "cpu": "arm64" }, "sha512-AVTSBhTX8Y/Fz6OmIVBip9tJzZEUcY8WLh7I59+upa5/GPhh2/aM6bvOMQySspnCCHvFi79kMtdJS1w0DXAeag=="],
+
+ "vite/esbuild/@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.25.10", "", { "os": "sunos", "cpu": "x64" }, "sha512-fswk3XT0Uf2pGJmOpDB7yknqhVkJQkAQOcW/ccVOtfx05LkbWOaRAtn5SaqXypeKQra1QaEa841PgrSL9ubSPQ=="],
+
+ "vite/esbuild/@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.25.10", "", { "os": "win32", "cpu": "arm64" }, "sha512-ah+9b59KDTSfpaCg6VdJoOQvKjI33nTaQr4UluQwW7aEwZQsbMCfTmfEO4VyewOxx4RaDT/xCy9ra2GPWmO7Kw=="],
+
+ "vite/esbuild/@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.25.10", "", { "os": "win32", "cpu": "ia32" }, "sha512-QHPDbKkrGO8/cz9LKVnJU22HOi4pxZnZhhA2HYHez5Pz4JeffhDjf85E57Oyco163GnzNCVkZK0b/n4Y0UHcSw=="],
+
+ "vite/esbuild/@esbuild/win32-x64": ["@esbuild/win32-x64@0.25.10", "", { "os": "win32", "cpu": "x64" }, "sha512-9KpxSVFCu0iK1owoez6aC/s/EdUQLDN3adTxGCqxMVhrPDj6bt5dbrHDXUuq+Bs2vATFBBrQS5vdQ/Ed2P+nbw=="],
+
"wrap-ansi-cjs/string-width/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="],
"wrap-ansi-cjs/string-width/is-fullwidth-code-point": ["is-fullwidth-code-point@3.0.0", "", {}, "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="],
@@ -3546,9 +5884,41 @@
"@ai-sdk/react/ai/@ai-sdk/gateway/@vercel/oidc": ["@vercel/oidc@3.0.1", "", {}, "sha512-V/YRVrJDqM6VaMBjRUrd6qRMrTKvZjHdVdEmdXsOZMulTa3iK98ijKTc3wldBmst6W5rHpqMoKllKcBAHgN7GQ=="],
- "@electron/node-gyp/tar/minizlib/minipass": ["minipass@3.3.6", "", { "dependencies": { "yallist": "^4.0.0" } }, "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw=="],
+ "@aws-crypto/sha1-browser/@smithy/util-utf8/@smithy/util-buffer-from/@smithy/is-array-buffer": ["@smithy/is-array-buffer@2.2.0", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA=="],
+
+ "@aws-crypto/sha256-browser/@smithy/util-utf8/@smithy/util-buffer-from/@smithy/is-array-buffer": ["@smithy/is-array-buffer@2.2.0", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA=="],
+
+ "@aws-crypto/util/@smithy/util-utf8/@smithy/util-buffer-from/@smithy/is-array-buffer": ["@smithy/is-array-buffer@2.2.0", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA=="],
+
+ "@blink-sdk/scout-agent/tsdown/rolldown/@oxc-project/types": ["@oxc-project/types@0.72.3", "", {}, "sha512-CfAC4wrmMkUoISpQkFAIfMVvlPfQV3xg7ZlcqPXPOIMQhdKIId44G8W0mCPgtpWdFFAyJ+SFtiM+9vbyCkoVng=="],
+
+ "@blink-sdk/scout-agent/tsdown/rolldown/@rolldown/binding-darwin-arm64": ["@rolldown/binding-darwin-arm64@1.0.0-beta.13-commit.024b632", "", { "os": "darwin", "cpu": "arm64" }, "sha512-dkMfisSkfS3Rbyj+qL6HFQmGNlwCKhkwH7pKg2oVhzpEQYnuP0YIUGV4WXsTd3hxoHNgs+LQU5LJe78IhE2q6g=="],
+
+ "@blink-sdk/scout-agent/tsdown/rolldown/@rolldown/binding-darwin-x64": ["@rolldown/binding-darwin-x64@1.0.0-beta.13-commit.024b632", "", { "os": "darwin", "cpu": "x64" }, "sha512-qbtggWQ+iiwls7A+M9RymMcMwga/LscZ+XamWNhDVzHPVEnv0bYePN7Kh+kPQDNdYxM+6xhZyZWBkMdLj1MNqg=="],
+
+ "@blink-sdk/scout-agent/tsdown/rolldown/@rolldown/binding-freebsd-x64": ["@rolldown/binding-freebsd-x64@1.0.0-beta.13-commit.024b632", "", { "os": "freebsd", "cpu": "x64" }, "sha512-GrSy4boSJd7dR1fP0chqcxTdbDYa+KaRuffqZXZjh4aTaSuCEyuH0lmciDeJKOXBJaBoPFuisx7+Q/WDWdW0ng=="],
+
+ "@blink-sdk/scout-agent/tsdown/rolldown/@rolldown/binding-linux-arm-gnueabihf": ["@rolldown/binding-linux-arm-gnueabihf@1.0.0-beta.13-commit.024b632", "", { "os": "linux", "cpu": "arm" }, "sha512-AcTYqfzSbTsR5pxOdZeUR+7JzWojQSFcLQ8SrdmrQBOmubvMNhnObDJ+OqEFql8TrLhqRPJ+nzfdENGjVmMxEw=="],
+
+ "@blink-sdk/scout-agent/tsdown/rolldown/@rolldown/binding-linux-arm64-gnu": ["@rolldown/binding-linux-arm64-gnu@1.0.0-beta.13-commit.024b632", "", { "os": "linux", "cpu": "arm64" }, "sha512-Z2kfzCFGZcksDqXHiOddcPuMkEJNLG8wgBW3FmK8ucmiwIrYz4goqQcHvUkQ+n3FKKyq2h67EuBHHCXi4CnDWg=="],
+
+ "@blink-sdk/scout-agent/tsdown/rolldown/@rolldown/binding-linux-arm64-musl": ["@rolldown/binding-linux-arm64-musl@1.0.0-beta.13-commit.024b632", "", { "os": "linux", "cpu": "arm64" }, "sha512-2YOaZ6vsE6NDpj6PTo2nBRu/bjMSkhRG80oQahX0bt+pvigaWT3x0Nw522fT9FOuhvKhzsqaFhtVl8SFYcXYTQ=="],
+
+ "@blink-sdk/scout-agent/tsdown/rolldown/@rolldown/binding-linux-x64-gnu": ["@rolldown/binding-linux-x64-gnu@1.0.0-beta.13-commit.024b632", "", { "os": "linux", "cpu": "x64" }, "sha512-bqb+MXYXcRTW9z26VmqttxDGYmhudne1jt1jvjbkIqDomjIJPCY6Gu6dQ9nPk561Zs2c5MB737KTc+HJe/EapA=="],
- "@electron/rebuild/tar/minizlib/minipass": ["minipass@3.3.6", "", { "dependencies": { "yallist": "^4.0.0" } }, "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw=="],
+ "@blink-sdk/scout-agent/tsdown/rolldown/@rolldown/binding-linux-x64-musl": ["@rolldown/binding-linux-x64-musl@1.0.0-beta.13-commit.024b632", "", { "os": "linux", "cpu": "x64" }, "sha512-oynj2ltmiV1gMYiuJ/HHqmRgfk7+a0tk9RoLt0xRSwQXPHWPMftcZYJh8r2pi0/bR/AGypDfpY9fsYcULa2Hpw=="],
+
+ "@blink-sdk/scout-agent/tsdown/rolldown/@rolldown/binding-wasm32-wasi": ["@rolldown/binding-wasm32-wasi@1.0.0-beta.13-commit.024b632", "", { "dependencies": { "@napi-rs/wasm-runtime": "^0.2.10" }, "cpu": "none" }, "sha512-7bOTebAR3zVY/TZTaaMnD6kGedlfPLlgcpD5Kuo02EHFgJnf02HpOvqRdzW39+mI/mDOf5K0JOULiXjgdKw5Zg=="],
+
+ "@blink-sdk/scout-agent/tsdown/rolldown/@rolldown/binding-win32-arm64-msvc": ["@rolldown/binding-win32-arm64-msvc@1.0.0-beta.13-commit.024b632", "", { "os": "win32", "cpu": "arm64" }, "sha512-bwUSHGdMFf2UmEfEqKBRdVW2Qt2Nhmk+4H8lSDsG4lMx8aJ2nAVK0Vem1skmuOZJYocJEe4lJZBxl8q8SAAgAg=="],
+
+ "@blink-sdk/scout-agent/tsdown/rolldown/@rolldown/binding-win32-ia32-msvc": ["@rolldown/binding-win32-ia32-msvc@1.0.0-beta.13-commit.024b632", "", { "os": "win32", "cpu": "ia32" }, "sha512-QG+EWXIa7IcQgpVF6zpxjAikc82NP5Zmu2GjoOiRRWFHQNLaEZx9/WNt/k6ncRA2yI0+f9vNdq9G34Z0pW+Fwg=="],
+
+ "@blink-sdk/scout-agent/tsdown/rolldown/@rolldown/binding-win32-x64-msvc": ["@rolldown/binding-win32-x64-msvc@1.0.0-beta.13-commit.024b632", "", { "os": "win32", "cpu": "x64" }, "sha512-40gOnsAJOP/jqnAgkYsj7kQD1+U5ZJcRA4hHeL6ouCsqMFIqS4bmOhUYDOM3O9dDawmrG7zadY+gu1FKtMix9g=="],
+
+ "@blink-sdk/scout-agent/tsdown/rolldown/@rolldown/pluginutils": ["@rolldown/pluginutils@1.0.0-beta.13-commit.024b632", "", {}, "sha512-9/h9ID36/orsoJx8kd2E/wxQ+bif87Blg/7LAu3t9wqfXPPezu02MYR96NOH9G/Aiwr8YgdaKfDE97IZcg/MTw=="],
+
+ "@blink.so/site/next-auth/@auth/core/preact": ["preact@10.24.3", "", {}, "sha512-Z2dPnBnMUfyQfSQ+GBdsGa16hz35YmLmtTLhM169uW944hYL6xzTYkJjC07j+Wosz733pMWx0fgON3JNw1jJQA=="],
"@google/gemini-cli-core/@opentelemetry/exporter-trace-otlp-http/@opentelemetry/otlp-transformer/@opentelemetry/api-logs": ["@opentelemetry/api-logs@0.203.0", "", { "dependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-9B9RU0H7Ya1Dx/Rkyc4stuBZSGVQF27WigitInx2QQoj6KUpEFYPKoWjdFTunJYxmXmh17HeBvbMa1EhGyPmqQ=="],
@@ -3576,6 +5946,12 @@
"@google/gemini-cli-core/@opentelemetry/sdk-node/@opentelemetry/sdk-trace-node/@opentelemetry/context-async-hooks": ["@opentelemetry/context-async-hooks@2.0.1", "", { "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-XuY23lSI3d4PEqKA+7SLtAgwqIfc6E/E9eAQWLN1vlpC53ybO3o6jW4BsXo1xvz9lYyyWItfQDDLzezER01mCw=="],
+ "@inquirer/core/wrap-ansi/string-width/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="],
+
+ "@inquirer/core/wrap-ansi/string-width/is-fullwidth-code-point": ["is-fullwidth-code-point@3.0.0", "", {}, "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="],
+
+ "@inquirer/core/wrap-ansi/strip-ansi/ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="],
+
"@joshua.litt/get-ripgrep/got/cacheable-request/mimic-response": ["mimic-response@4.0.0", "", {}, "sha512-e5ISH9xMYU0DzrT+jl8q2ze9D6eWBto+I8CNpe+VI+K2J/F/k3PdkdTdz4wvGVH4NTpo+NRYTVIuMQEMMcsLqg=="],
"@joshua.litt/get-ripgrep/got/cacheable-request/normalize-url": ["normalize-url@8.1.0", "", {}, "sha512-X06Mfd/5aKsRHc0O0J5CUedwnPmnDtLF2+nq+KN9KSDlJHkPuh0JUviWjEWMe0SW/9TDdSLVPuk7L5gGTIA1/w=="],
@@ -3584,7 +5960,7 @@
"ansi-align/string-width/strip-ansi/ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="],
- "app-builder-lib/tar/minizlib/minipass": ["minipass@3.3.6", "", { "dependencies": { "yallist": "^4.0.0" } }, "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw=="],
+ "bl/readable-stream/string_decoder/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
"blink/tsdown/rolldown/@oxc-project/types": ["@oxc-project/types@0.93.0", "", {}, "sha512-yNtwmWZIBtJsMr5TEfoZFDxIWV6OdScOpza/f5YxbqUMJk+j6QX3Cf3jgZShGEFYWQJ5j9mJ6jM0tZHu2J9Yrg=="],
@@ -3620,8 +5996,6 @@
"cacache/rimraf/glob/minimatch": ["minimatch@3.1.2", "", { "dependencies": { "brace-expansion": "^1.1.7" } }, "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw=="],
- "cacache/tar/minizlib/minipass": ["minipass@3.3.6", "", { "dependencies": { "yallist": "^4.0.0" } }, "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw=="],
-
"cli-highlight/yargs/cliui/strip-ansi": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="],
"cli-highlight/yargs/cliui/wrap-ansi": ["wrap-ansi@7.0.0", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="],
@@ -3646,10 +6020,18 @@
"mdast-util-mdx-jsx/parse-entities/is-alphanumerical/is-alphabetical": ["is-alphabetical@2.0.1", "", {}, "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ=="],
+ "pkg-dir/find-up/locate-path/p-locate": ["p-locate@5.0.0", "", { "dependencies": { "p-limit": "^3.0.2" } }, "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw=="],
+
"rimraf/glob/minimatch/brace-expansion": ["brace-expansion@1.1.12", "", { "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg=="],
+ "stream-browserify/readable-stream/string_decoder/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
+ "stream-http/readable-stream/string_decoder/safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
+
"yargs/string-width/strip-ansi/ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="],
+ "@blink-sdk/scout-agent/tsdown/rolldown/@rolldown/binding-wasm32-wasi/@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@0.2.12", "", { "dependencies": { "@emnapi/core": "^1.4.3", "@emnapi/runtime": "^1.4.3", "@tybys/wasm-util": "^0.10.0" } }, "sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ=="],
+
"@npmcli/move-file/rimraf/glob/minimatch/brace-expansion": ["brace-expansion@1.1.12", "", { "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg=="],
"blink/tsdown/rolldown/@rolldown/binding-wasm32-wasi/@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@1.0.6", "", { "dependencies": { "@emnapi/core": "^1.5.0", "@emnapi/runtime": "^1.5.0", "@tybys/wasm-util": "^0.10.1" } }, "sha512-DXj75ewm11LIWUk198QSKUTxjyRjsBwk09MuMk5DGK+GDUtyPhhEHOGP/Xwwj3DjQXXkivoBirmOnKrLfc0+9g=="],
@@ -3663,5 +6045,9 @@
"cli-highlight/yargs/string-width/strip-ansi/ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="],
"iconv-corefoundation/cli-truncate/string-width/strip-ansi/ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="],
+
+ "@blink-sdk/scout-agent/tsdown/rolldown/@rolldown/binding-wasm32-wasi/@napi-rs/wasm-runtime/@emnapi/runtime": ["@emnapi/runtime@1.5.0", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-97/BJ3iXHww3djw6hYIfErCZFee7qCtrneuLa20UXFCOTCfBM2cvQHjWJ2EG0s0MtdNwInarqCTz35i4wWXHsQ=="],
+
+ "blink/tsdown/rolldown/@rolldown/binding-wasm32-wasi/@napi-rs/wasm-runtime/@emnapi/runtime": ["@emnapi/runtime@1.5.0", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-97/BJ3iXHww3djw6hYIfErCZFee7qCtrneuLa20UXFCOTCfBM2cvQHjWJ2EG0s0MtdNwInarqCTz35i4wWXHsQ=="],
}
}
diff --git a/package.json b/package.json
index 0b69b03..629d32b 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,7 @@
"scripts": {
"format": "prettier --write --cache .",
"test": "bun test",
- "typecheck": "tsgo --noEmit"
+ "typecheck": "bun run --filter='*' typecheck"
},
"workspaces": [
"packages/*"
diff --git a/packages/api/.gitignore b/packages/api/.gitignore
new file mode 100644
index 0000000..61c9b5a
--- /dev/null
+++ b/packages/api/.gitignore
@@ -0,0 +1,2 @@
+# This is required for the package to be published.
+!dist/package.json
\ No newline at end of file
diff --git a/packages/api/package.json b/packages/api/package.json
new file mode 100644
index 0000000..df2846e
--- /dev/null
+++ b/packages/api/package.json
@@ -0,0 +1,59 @@
+{
+ "name": "@blink.so/api",
+ "description": "The internal module for the Blink API.",
+ "private": true,
+ "type": "module",
+ "main": "./src/client.node.ts",
+ "browser": "./src/client.browser.ts",
+ "exports": {
+ ".": {
+ "browser": "./src/client.browser.ts",
+ "default": "./src/client.node.ts"
+ },
+ "./react": {
+ "browser": "./src/react/index.ts",
+ "default": "./src/react/index.ts"
+ },
+ "./server": "./src/server.ts",
+ "./test": "./src/test.ts",
+ "./agents/me": "./src/routes/agents/me/me.client.ts",
+ "./agents/me/server": "./src/routes/agents/me/me.server.ts",
+ "./util/chat": "./src/util/chat.ts"
+ },
+ "scripts": {
+ "build": "tsdown",
+ "pack": "bun run build && cd dist && npm pack",
+ "typecheck": "tsgo --noEmit",
+ "publish": "bun run pack && cd dist && npm publish"
+ },
+ "devDependencies": {
+ "@bufbuild/protobuf": "^2.9.0",
+ "@testing-library/react": "^16.3.0",
+ "eventsource-parser": "^3.0.6",
+ "happy-dom": "^18.0.1",
+ "hono": "^4.9.7",
+ "msw": "^2.12.1",
+ "react": "19.1.2",
+ "react-dom": "19.1.2",
+ "tsdown": "^0.15.1",
+ "zod": "^4.1.9",
+ "zod-validation-error": "^4.0.1"
+ },
+ "peerDependencies": {
+ "ai": ">= 5",
+ "zod": ">= 4",
+ "react": ">= 18"
+ },
+ "peerDependenciesMeta": {
+ "react": {
+ "optional": true
+ }
+ },
+ "optionalDependencies": {
+ "@blink-sdk/compute-protocol": ">= 0.0.2"
+ },
+ "dependencies": {
+ "bcrypt-ts": "^7.1.0",
+ "next-auth": "5.0.0-beta.28"
+ }
+}
diff --git a/packages/api/package.public.json b/packages/api/package.public.json
new file mode 100644
index 0000000..4ba3c68
--- /dev/null
+++ b/packages/api/package.public.json
@@ -0,0 +1,41 @@
+{
+ "name": "@blink.so/api",
+ "description": "The TypeScript SDK for the Blink API.",
+ "version": "1.0.0",
+ "author": "Coder",
+ "type": "module",
+ "license": "MIT",
+ "homepage": "https://blink.so",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/coder/blink.git"
+ },
+ "publishConfig": {
+ "access": "public"
+ },
+ "files": ["dist"],
+ "exports": {
+ ".": {
+ "browser": "./dist/client.browser.js",
+ "import": "./dist/client.node.js",
+ "require": "./dist/client.node.cjs",
+ "default": "./dist/client.node.js"
+ },
+ "./react": {
+ "import": "./dist/react/index.js",
+ "require": "./dist/react/index.cjs"
+ },
+ "./package.json": "./package.json"
+ },
+ "peerDependencies": {
+ "ai": ">= 5",
+ "react": ">= 18",
+ "zod": ">= 4"
+ },
+ "peerDependenciesMeta": {
+ "react": { "optional": true }
+ },
+ "optionalDependencies": {
+ "@blink-sdk/compute-protocol": ">= 0.0.2"
+ }
+}
diff --git a/packages/api/runtime/package.json b/packages/api/runtime/package.json
new file mode 100644
index 0000000..9f31e08
--- /dev/null
+++ b/packages/api/runtime/package.json
@@ -0,0 +1,16 @@
+{
+ "name": "@blink.so/runtime",
+ "private": true,
+ "type": "module",
+ "exports": {
+ "./server": "./src/server.ts",
+ "./types": "./src/types.ts",
+ "./node/wrapper": "./src/node/wrapper-node.generated.ts",
+ "./lambda": "./src/lambda/runtime-lambda.ts"
+ },
+ "dependencies": {},
+ "devDependencies": {
+ "aws4fetch": "^1.0.20",
+ "jszip": "^3.10.1"
+ }
+}
diff --git a/packages/api/runtime/scripts/generate.ts b/packages/api/runtime/scripts/generate.ts
new file mode 100644
index 0000000..4109d1d
--- /dev/null
+++ b/packages/api/runtime/scripts/generate.ts
@@ -0,0 +1,49 @@
+#!/usr/bin/env bun
+import { join } from "node:path";
+
+const wrapperNode = join(__dirname, "../src/node/wrapper-node.ts");
+
+let result = await Bun.build({
+ entrypoints: [wrapperNode],
+ target: "node",
+ format: "esm",
+ minify: true,
+});
+
+let output = result.outputs[0];
+if (!output) {
+ throw new Error("No output generated");
+}
+
+await Bun.write(
+ join(__dirname, "../src/node/wrapper-node.generated.ts"),
+ `
+// This file has been generated by the ${import.meta.filename} script.
+// Do not edit this file manually.
+
+export default ${JSON.stringify(await output.text())}
+`.trim()
+);
+
+const wrapperLambda = join(__dirname, "../src/lambda/wrapper-lambda.ts");
+
+result = await Bun.build({
+ entrypoints: [wrapperLambda],
+ target: "node",
+ format: "esm",
+});
+
+output = result.outputs[0];
+if (!output) {
+ throw new Error("No output generated");
+}
+
+await Bun.write(
+ join(__dirname, "../src/lambda/wrapper-lambda.generated.ts"),
+ `
+// This file has been generated by the ${import.meta.filename} script.
+// Do not edit this file manually.
+
+export default ${JSON.stringify(await output.text())}
+`.trim()
+);
diff --git a/packages/api/runtime/src/lambda/fixtures/client-using-storage.ts b/packages/api/runtime/src/lambda/fixtures/client-using-storage.ts
new file mode 100644
index 0000000..32e33b3
--- /dev/null
+++ b/packages/api/runtime/src/lambda/fixtures/client-using-storage.ts
@@ -0,0 +1,32 @@
+import { APIServerURLEnvironmentVariable } from "blink/client";
+import { api } from "blink/control";
+import { hc } from "hono/client";
+import http from "http";
+
+// Here we're going to make it actually attempt to request the Blink API.
+const client = hc(process.env[APIServerURLEnvironmentVariable]!);
+
+http
+ .createServer(async (req, res) => {
+ await client.kv[":key"].$post({
+ param: {
+ key: "test",
+ },
+ json: {
+ value: "Hello, world!",
+ },
+ });
+
+ const resp = await client.kv[":key"].$get({
+ param: {
+ key: "test",
+ },
+ });
+ if (!resp.ok) {
+ throw new Error(`Failed to get storage: ${await resp.text()}`);
+ }
+ const value = await resp.json();
+ res.end(value.value);
+ })
+ .listen(parseInt(process.env.PORT as string))
+ .unref();
diff --git a/packages/api/runtime/src/lambda/runtime-lambda.ts b/packages/api/runtime/src/lambda/runtime-lambda.ts
new file mode 100644
index 0000000..66b5b0f
--- /dev/null
+++ b/packages/api/runtime/src/lambda/runtime-lambda.ts
@@ -0,0 +1,341 @@
+import { AwsClient } from "aws4fetch";
+import JSZip from "jszip";
+import { Readable } from "node:stream";
+import lambdaWrapperCode from "./wrapper-lambda.generated";
+
+const defaultRuntime = "nodejs22.x";
+
+export interface AWSOptions {
+ readonly accessKeyId: string;
+ readonly secretAccessKey: string;
+ readonly region: string;
+}
+
+export interface DeployOptions {
+ readonly aws: AWSOptions;
+ readonly lambdaRoleArn: string;
+
+ // ID is a unique identifier for the deployment.
+ // This becomes the `FunctionName` for the Lambda.
+ readonly id: string;
+ readonly logGroupName: string;
+
+ readonly files:
+ | Record
+ | AsyncIterable<{ path: string; content: string | ReadableStream }>;
+
+ readonly entrypoint: string;
+ readonly env?: Record;
+
+ // The memory size of the Lambda function.
+ // 128MB - 10240MB. Defaults to 256MB.
+ readonly memoryMB?: number;
+}
+
+export interface Deployment {
+ readonly url: string;
+ readonly arn: string;
+}
+
+/**
+ * Upserts a Lambda function by ID returning it's
+ * accessible URL and ARN.
+ *
+ * @param options - The options for the deployment.
+ * @returns The deployment information.
+ * @example
+ * ```ts
+ * const { url, arn } = await deploy({
+ * aws: {
+ * accessKeyId: process.env.AWS_ACCESS_KEY_ID!,
+ * secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY!,
+ * region: "us-east-1",
+ * },
+ * lambdaRoleArn: "arn:aws:iam::816024705661:role/user-http-lambda-role",
+ * id: "blink-test-agent",
+ * files: {
+ * "index.js": "",
+ * },
+ * entrypoint: "index.js",
+ * env: {
+ * AI_GATEWAY_API_KEY: process.env.AI_GATEWAY_API_KEY,
+ * },
+ * });
+ * ```
+ */
+export async function deploy(options: DeployOptions): Promise {
+ const aws = createAWSClient(options.aws);
+
+ // Create or update CloudWatch log group
+ await upsertLogGroup(aws, options.aws.region, options.logGroupName);
+
+ const zip = new JSZip();
+
+ // Process files one at a time to reduce memory pressure
+ if (Symbol.asyncIterator in options.files) {
+ for await (const { path, content } of options.files) {
+ // Convert ReadableStream to Promise which JSZip supports
+ if (content instanceof ReadableStream) {
+ // This works - it's just hacky because of web/node types.
+ zip.file(path, Readable.fromWeb(content as any));
+ } else {
+ zip.file(path, content);
+ }
+ }
+ } else {
+ for (const [path, content] of Object.entries(options.files)) {
+ zip.file(path, content);
+ }
+ }
+
+ const wrapperEntrypoint = `__wrapper`;
+ const lambdaHandler = `${wrapperEntrypoint}.handler`;
+ // This wrapper code is a simple conversion of the default `fetch` function
+ // agents export to run on AWS Lambda. We intentionally avoid doing any
+ // platform-specific code at build, so that we can flexibly migrate to
+ // other runtimes in the future.
+ zip.file(`${wrapperEntrypoint}.js`, lambdaWrapperCode);
+
+ const base64 = await zip.generateAsync({
+ type: "base64",
+ compression: "DEFLATE",
+ compressionOptions: { level: 6 },
+ streamFiles: true,
+ });
+
+ // I don't know why, but there are separate versions of the API.
+ // Someone later can experiment why it needs to work this way...
+ const base2015 = `https://lambda.${options.aws.region}.amazonaws.com/2015-03-31`;
+ const base2021 = `https://lambda.${options.aws.region}.amazonaws.com/2021-10-31`;
+
+ const Environment = {
+ Variables: {
+ ...options.env,
+ // This is a special environment variable used
+ // by our wrapper code to determine the entrypoint.
+ ENTRYPOINT: options.entrypoint,
+ },
+ };
+
+ // We first attempt to update the configuration of an existing function.
+ // This is weird, but if we update the code first, this request fails
+ // with a 409 conflict.
+ let res = await aws.fetch(
+ `${base2015}/functions/${encodeURIComponent(options.id)}/configuration`,
+ {
+ method: "PUT",
+ headers: { "content-type": "application/json" },
+ body: JSON.stringify({
+ Environment,
+ Handler: lambdaHandler,
+ // The default timeout is 3 seconds, which is too short
+ // for the vast majority of agents.
+ Timeout: 300,
+ MemorySize: options.memoryMB ?? 256,
+ LoggingConfig: {
+ LogFormat: "JSON",
+ LogGroup: options.logGroupName,
+ },
+ }),
+ }
+ );
+ if (res.status === 404) {
+ // Function does not exist, so we create it.
+ res = await aws.fetch(`${base2015}/functions`, {
+ method: "POST",
+ headers: { "content-type": "application/json" },
+ body: JSON.stringify({
+ FunctionName: options.id,
+ Runtime: defaultRuntime,
+ Handler: lambdaHandler,
+ Role: options.lambdaRoleArn,
+ Code: { ZipFile: base64 },
+ Publish: true,
+ Environment,
+ Timeout: 300,
+ MemorySize: options.memoryMB ?? 256,
+ LoggingConfig: {
+ LogFormat: "JSON",
+ LogGroup: options.logGroupName,
+ },
+ }),
+ });
+
+ if (res.status !== 201) {
+ const body = await res.text();
+ throw new Error(`Failed to create function: ${res.status} ${body}`);
+ }
+ } else if (res.status !== 200) {
+ const body = await res.text();
+ throw new Error(`Failed to deploy: ${res.status} ${body}`);
+ } else {
+ // If it was a 200, we updated env vars successfully
+ // and we can now update the code.
+ res = await aws.fetch(
+ `${base2015}/functions/${encodeURIComponent(options.id)}/code`,
+ {
+ method: "PUT",
+ headers: { "content-type": "application/json" },
+ body: JSON.stringify({
+ ZipFile: base64,
+ Publish: true,
+ }),
+ }
+ );
+ }
+
+ const updatePolicy = (async () => {
+ const policyRes = await aws.fetch(
+ `${base2015}/functions/${encodeURIComponent(options.id)}/policy`,
+ {
+ method: "POST",
+ headers: { "content-type": "application/json" },
+ body: JSON.stringify({
+ StatementId: "furl-public",
+ Action: "lambda:InvokeFunctionUrl",
+ Principal: "*",
+ FunctionUrlAuthType: "NONE",
+ }),
+ }
+ );
+ if (policyRes.status !== 201 && policyRes.status !== 409) {
+ const body = await policyRes.text();
+ throw new Error(
+ `Failed to update function policy: ${policyRes.status} ${body}`
+ );
+ }
+ })();
+
+ const updateURL = (async () => {
+ // Attempt to update the function URL configuration so that we can
+ // actually invoke this bad-boy.
+ const updateURLBody = {
+ // TODO: Change this once we have the auth proxying.
+ AuthType: "NONE",
+ Cors: { AllowOrigins: ["*"] },
+ InvokeMode: "RESPONSE_STREAM",
+ };
+ res = await aws.fetch(
+ `${base2021}/functions/${encodeURIComponent(options.id)}/url`,
+ {
+ method: "PUT",
+ headers: { "content-type": "application/json" },
+ body: JSON.stringify(updateURLBody),
+ }
+ );
+ if (res.status === 404) {
+ // If the function URL configuration does not exist, we create it.
+ res = await aws.fetch(
+ `${base2021}/functions/${encodeURIComponent(options.id)}/url`,
+ {
+ method: "POST",
+ headers: { "content-type": "application/json" },
+ body: JSON.stringify(updateURLBody),
+ }
+ );
+ } else if (res.status !== 200) {
+ const body = await res.text();
+ throw new Error(
+ `Failed to update function URL configuration: ${res.status} ${body}`
+ );
+ }
+
+ const json = (await res.json()) as {
+ FunctionUrl: string;
+ FunctionArn: string;
+ };
+ return {
+ url: json.FunctionUrl,
+ arn: json.FunctionArn,
+ };
+ })();
+
+ // We put these in parallel for speed.
+ await updatePolicy;
+ return updateURL;
+}
+
+function createAWSClient(options: AWSOptions): AwsClient {
+ return new AwsClient({
+ accessKeyId: options.accessKeyId,
+ secretAccessKey: options.secretAccessKey,
+ region: options.region,
+ });
+}
+
+async function upsertLogGroup(
+ aws: AwsClient,
+ region: string,
+ logGroupName: string
+): Promise {
+ const logsBaseUrl = `https://logs.${region}.amazonaws.com/`;
+
+ // First, try to describe the log group to see if it exists
+ let logGroupExists = false;
+ try {
+ const describeRes = await aws.fetch(logsBaseUrl, {
+ method: "POST",
+ headers: {
+ "Content-Type": "application/x-amz-json-1.1",
+ "X-Amz-Target": "Logs_20140328.DescribeLogGroups",
+ },
+ body: JSON.stringify({
+ logGroupNamePrefix: logGroupName,
+ limit: 1,
+ }),
+ });
+
+ if (describeRes.ok) {
+ const data = (await describeRes.json()) as {
+ logGroups: { logGroupName: string }[];
+ };
+ logGroupExists = data.logGroups.some(
+ (lg) => lg.logGroupName === logGroupName
+ );
+ }
+ } catch (error) {
+ // If describe fails, assume log group doesn't exist
+ logGroupExists = false;
+ }
+
+ if (!logGroupExists) {
+ // Create the log group
+ const createRes = await aws.fetch(logsBaseUrl, {
+ method: "POST",
+ headers: {
+ "Content-Type": "application/x-amz-json-1.1",
+ "X-Amz-Target": "Logs_20140328.CreateLogGroup",
+ },
+ body: JSON.stringify({
+ logGroupName,
+ }),
+ });
+
+ if (!createRes.ok) {
+ const body = await createRes.text();
+ throw new Error(
+ `Failed to create log group: ${createRes.status} ${body}`
+ );
+ }
+ }
+
+ // Set retention policy to 30 days
+ const retentionRes = await aws.fetch(logsBaseUrl, {
+ method: "POST",
+ headers: {
+ "Content-Type": "application/x-amz-json-1.1",
+ "X-Amz-Target": "Logs_20140328.PutRetentionPolicy",
+ },
+ body: JSON.stringify({
+ logGroupName,
+ retentionInDays: 30,
+ }),
+ });
+
+ if (!retentionRes.ok) {
+ const body = await retentionRes.text();
+ throw new Error(
+ `Failed to set log group retention: ${retentionRes.status} ${body}`
+ );
+ }
+}
diff --git a/packages/api/runtime/src/lambda/wrapper-lambda.generated.ts b/packages/api/runtime/src/lambda/wrapper-lambda.generated.ts
new file mode 100644
index 0000000..e9a2d3c
--- /dev/null
+++ b/packages/api/runtime/src/lambda/wrapper-lambda.generated.ts
@@ -0,0 +1,4 @@
+// This file has been generated by the /home/kyle/projects/coder/blink.so/packages/runtime/scripts/generate.ts script.
+// Do not edit this file manually.
+
+export default 'import { createRequire } from "node:module";\nvar __defProp = Object.defineProperty;\nvar __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, {\n get: all[name],\n enumerable: true,\n configurable: true,\n set: (newValue) => all[name] = () => newValue\n });\n};\nvar __require = /* @__PURE__ */ createRequire(import.meta.url);\n\n// ../../node_modules/@whatwg-node/fetch/dist/shouldSkipPonyfill.js\nvar require_shouldSkipPonyfill = __commonJS((exports, module) => {\n function isNextJs() {\n return Object.keys(globalThis).some((key) => key.startsWith("__NEXT"));\n }\n module.exports = function shouldSkipPonyfill() {\n if (globalThis.Deno) {\n return true;\n }\n if (globalThis.Bun) {\n return true;\n }\n if (isNextJs()) {\n return true;\n }\n return false;\n };\n});\n\n// ../../node_modules/urlpattern-polyfill/dist/urlpattern.cjs\nvar require_urlpattern = __commonJS((exports, module) => {\n var U = Object.defineProperty;\n var Re = Object.getOwnPropertyDescriptor;\n var Ee = Object.getOwnPropertyNames;\n var Oe = Object.prototype.hasOwnProperty;\n var a = (e, t) => U(e, "name", { value: t, configurable: true });\n var ke = (e, t) => {\n for (var r in t)\n U(e, r, { get: t[r], enumerable: true });\n };\n var Te = (e, t, r, n) => {\n if (t && typeof t == "object" || typeof t == "function")\n for (let o of Ee(t))\n !Oe.call(e, o) && o !== r && U(e, o, { get: () => t[o], enumerable: !(n = Re(t, o)) || n.enumerable });\n return e;\n };\n var Ae = (e) => Te(U({}, "__esModule", { value: true }), e);\n var He = {};\n ke(He, { URLPattern: () => M });\n module.exports = Ae(He);\n var P = class {\n type = 3;\n name = "";\n prefix = "";\n value = "";\n suffix = "";\n modifier = 3;\n constructor(t, r, n, o, l, f) {\n this.type = t, this.name = r, this.prefix = n, this.value = o, this.suffix = l, this.modifier = f;\n }\n hasCustomName() {\n return this.name !== "" && typeof this.name != "number";\n }\n };\n a(P, "Part");\n var ye = /[$_\\p{ID_Start}]/u;\n var we = /[$_\\u200C\\u200D\\p{ID_Continue}]/u;\n var F = ".*";\n function Ce(e, t) {\n return (t ? /^[\\x00-\\xFF]*$/ : /^[\\x00-\\x7F]*$/).test(e);\n }\n a(Ce, "isASCII");\n function W(e, t = false) {\n let r = [], n = 0;\n for (;n < e.length; ) {\n let o = e[n], l = a(function(f) {\n if (!t)\n throw new TypeError(f);\n r.push({ type: "INVALID_CHAR", index: n, value: e[n++] });\n }, "ErrorOrInvalid");\n if (o === "*") {\n r.push({ type: "ASTERISK", index: n, value: e[n++] });\n continue;\n }\n if (o === "+" || o === "?") {\n r.push({ type: "OTHER_MODIFIER", index: n, value: e[n++] });\n continue;\n }\n if (o === "\\\\") {\n r.push({ type: "ESCAPED_CHAR", index: n++, value: e[n++] });\n continue;\n }\n if (o === "{") {\n r.push({ type: "OPEN", index: n, value: e[n++] });\n continue;\n }\n if (o === "}") {\n r.push({ type: "CLOSE", index: n, value: e[n++] });\n continue;\n }\n if (o === ":") {\n let f = "", s = n + 1;\n for (;s < e.length; ) {\n let i = e.substr(s, 1);\n if (s === n + 1 && ye.test(i) || s !== n + 1 && we.test(i)) {\n f += e[s++];\n continue;\n }\n break;\n }\n if (!f) {\n l(`Missing parameter name at ${n}`);\n continue;\n }\n r.push({ type: "NAME", index: n, value: f }), n = s;\n continue;\n }\n if (o === "(") {\n let f = 1, s = "", i = n + 1, c = false;\n if (e[i] === "?") {\n l(`Pattern cannot start with "?" at ${i}`);\n continue;\n }\n for (;i < e.length; ) {\n if (!Ce(e[i], false)) {\n l(`Invalid character \'${e[i]}\' at ${i}.`), c = true;\n break;\n }\n if (e[i] === "\\\\") {\n s += e[i++] + e[i++];\n continue;\n }\n if (e[i] === ")") {\n if (f--, f === 0) {\n i++;\n break;\n }\n } else if (e[i] === "(" && (f++, e[i + 1] !== "?")) {\n l(`Capturing groups are not allowed at ${i}`), c = true;\n break;\n }\n s += e[i++];\n }\n if (c)\n continue;\n if (f) {\n l(`Unbalanced pattern at ${n}`);\n continue;\n }\n if (!s) {\n l(`Missing pattern at ${n}`);\n continue;\n }\n r.push({ type: "REGEX", index: n, value: s }), n = i;\n continue;\n }\n r.push({ type: "CHAR", index: n, value: e[n++] });\n }\n return r.push({ type: "END", index: n, value: "" }), r;\n }\n a(W, "lexer");\n function _(e, t = {}) {\n let r = W(e);\n t.delimiter ??= "/#?", t.prefixes ??= "./";\n let n = `[^${x(t.delimiter)}]+?`, o = [], l = 0, f = 0, s = "", i = new Set, c = a((u) => {\n if (f < r.length && r[f].type === u)\n return r[f++].value;\n }, "tryConsume"), h = a(() => c("OTHER_MODIFIER") ?? c("ASTERISK"), "tryConsumeModifier"), p = a((u) => {\n let d = c(u);\n if (d !== undefined)\n return d;\n let { type: g, index: y } = r[f];\n throw new TypeError(`Unexpected ${g} at ${y}, expected ${u}`);\n }, "mustConsume"), A = a(() => {\n let u = "", d;\n for (;d = c("CHAR") ?? c("ESCAPED_CHAR"); )\n u += d;\n return u;\n }, "consumeText"), be = a((u) => u, "DefaultEncodePart"), N = t.encodePart || be, H = "", v = a((u) => {\n H += u;\n }, "appendToPendingFixedValue"), D = a(() => {\n H.length && (o.push(new P(3, "", "", N(H), "", 3)), H = "");\n }, "maybeAddPartFromPendingFixedValue"), Z = a((u, d, g, y, B) => {\n let m = 3;\n switch (B) {\n case "?":\n m = 1;\n break;\n case "*":\n m = 0;\n break;\n case "+":\n m = 2;\n break;\n }\n if (!d && !g && m === 3) {\n v(u);\n return;\n }\n if (D(), !d && !g) {\n if (!u)\n return;\n o.push(new P(3, "", "", N(u), "", m));\n return;\n }\n let S;\n g ? g === "*" ? S = F : S = g : S = n;\n let k = 2;\n S === n ? (k = 1, S = "") : S === F && (k = 0, S = "");\n let E;\n if (d ? E = d : g && (E = l++), i.has(E))\n throw new TypeError(`Duplicate name \'${E}\'.`);\n i.add(E), o.push(new P(k, E, N(u), S, N(y), m));\n }, "addPart");\n for (;f < r.length; ) {\n let u = c("CHAR"), d = c("NAME"), g = c("REGEX");\n if (!d && !g && (g = c("ASTERISK")), d || g) {\n let m = u ?? "";\n t.prefixes.indexOf(m) === -1 && (v(m), m = ""), D();\n let S = h();\n Z(m, d, g, "", S);\n continue;\n }\n let y = u ?? c("ESCAPED_CHAR");\n if (y) {\n v(y);\n continue;\n }\n if (c("OPEN")) {\n let m = A(), S = c("NAME"), k = c("REGEX");\n !S && !k && (k = c("ASTERISK"));\n let E = A();\n p("CLOSE");\n let Pe = h();\n Z(m, S, k, E, Pe);\n continue;\n }\n D(), p("END");\n }\n return o;\n }\n a(_, "parse");\n function x(e) {\n return e.replace(/([.+*?^${}()[\\]|/\\\\])/g, "\\\\$1");\n }\n a(x, "escapeString");\n function q(e) {\n return e && e.ignoreCase ? "ui" : "u";\n }\n a(q, "flags");\n function J(e, t, r) {\n return z(_(e, r), t, r);\n }\n a(J, "stringToRegexp");\n function T(e) {\n switch (e) {\n case 0:\n return "*";\n case 1:\n return "?";\n case 2:\n return "+";\n case 3:\n return "";\n }\n }\n a(T, "modifierToString");\n function z(e, t, r = {}) {\n r.delimiter ??= "/#?", r.prefixes ??= "./", r.sensitive ??= false, r.strict ??= false, r.end ??= true, r.start ??= true, r.endsWith = "";\n let n = r.start ? "^" : "";\n for (let s of e) {\n if (s.type === 3) {\n s.modifier === 3 ? n += x(s.value) : n += `(?:${x(s.value)})${T(s.modifier)}`;\n continue;\n }\n t && t.push(s.name);\n let i = `[^${x(r.delimiter)}]+?`, c = s.value;\n if (s.type === 1 ? c = i : s.type === 0 && (c = F), !s.prefix.length && !s.suffix.length) {\n s.modifier === 3 || s.modifier === 1 ? n += `(${c})${T(s.modifier)}` : n += `((?:${c})${T(s.modifier)})`;\n continue;\n }\n if (s.modifier === 3 || s.modifier === 1) {\n n += `(?:${x(s.prefix)}(${c})${x(s.suffix)})`, n += T(s.modifier);\n continue;\n }\n n += `(?:${x(s.prefix)}`, n += `((?:${c})(?:`, n += x(s.suffix), n += x(s.prefix), n += `(?:${c}))*)${x(s.suffix)})`, s.modifier === 0 && (n += "?");\n }\n let o = `[${x(r.endsWith)}]|$`, l = `[${x(r.delimiter)}]`;\n if (r.end)\n return r.strict || (n += `${l}?`), r.endsWith.length ? n += `(?=${o})` : n += "$", new RegExp(n, q(r));\n r.strict || (n += `(?:${l}(?=${o}))?`);\n let f = false;\n if (e.length) {\n let s = e[e.length - 1];\n s.type === 3 && s.modifier === 3 && (f = r.delimiter.indexOf(s) > -1);\n }\n return f || (n += `(?=${l}|${o})`), new RegExp(n, q(r));\n }\n a(z, "partsToRegexp");\n var b = { delimiter: "", prefixes: "", sensitive: true, strict: true };\n var Q = { delimiter: ".", prefixes: "", sensitive: true, strict: true };\n var ee = { delimiter: "/", prefixes: "/", sensitive: true, strict: true };\n function te(e, t) {\n return e.length ? e[0] === "/" ? true : !t || e.length < 2 ? false : (e[0] == "\\\\" || e[0] == "{") && e[1] == "/" : false;\n }\n a(te, "isAbsolutePathname");\n function re(e, t) {\n return e.startsWith(t) ? e.substring(t.length, e.length) : e;\n }\n a(re, "maybeStripPrefix");\n function Le(e, t) {\n return e.endsWith(t) ? e.substr(0, e.length - t.length) : e;\n }\n a(Le, "maybeStripSuffix");\n function j(e) {\n return !e || e.length < 2 ? false : e[0] === "[" || (e[0] === "\\\\" || e[0] === "{") && e[1] === "[";\n }\n a(j, "treatAsIPv6Hostname");\n var ne = ["ftp", "file", "http", "https", "ws", "wss"];\n function $(e) {\n if (!e)\n return true;\n for (let t of ne)\n if (e.test(t))\n return true;\n return false;\n }\n a($, "isSpecialScheme");\n function se(e, t) {\n if (e = re(e, "#"), t || e === "")\n return e;\n let r = new URL("https://example.com");\n return r.hash = e, r.hash ? r.hash.substring(1, r.hash.length) : "";\n }\n a(se, "canonicalizeHash");\n function ie(e, t) {\n if (e = re(e, "?"), t || e === "")\n return e;\n let r = new URL("https://example.com");\n return r.search = e, r.search ? r.search.substring(1, r.search.length) : "";\n }\n a(ie, "canonicalizeSearch");\n function ae(e, t) {\n return t || e === "" ? e : j(e) ? V(e) : G(e);\n }\n a(ae, "canonicalizeHostname");\n function oe(e, t) {\n if (t || e === "")\n return e;\n let r = new URL("https://example.com");\n return r.password = e, r.password;\n }\n a(oe, "canonicalizePassword");\n function ce(e, t) {\n if (t || e === "")\n return e;\n let r = new URL("https://example.com");\n return r.username = e, r.username;\n }\n a(ce, "canonicalizeUsername");\n function le(e, t, r) {\n if (r || e === "")\n return e;\n if (t && !ne.includes(t))\n return new URL(`${t}:${e}`).pathname;\n let n = e[0] == "/";\n return e = new URL(n ? e : "/-" + e, "https://example.com").pathname, n || (e = e.substring(2, e.length)), e;\n }\n a(le, "canonicalizePathname");\n function fe(e, t, r) {\n return K(t) === e && (e = ""), r || e === "" ? e : Y(e);\n }\n a(fe, "canonicalizePort");\n function he(e, t) {\n return e = Le(e, ":"), t || e === "" ? e : w(e);\n }\n a(he, "canonicalizeProtocol");\n function K(e) {\n switch (e) {\n case "ws":\n case "http":\n return "80";\n case "wws":\n case "https":\n return "443";\n case "ftp":\n return "21";\n default:\n return "";\n }\n }\n a(K, "defaultPortForProtocol");\n function w(e) {\n if (e === "")\n return e;\n if (/^[-+.A-Za-z0-9]*$/.test(e))\n return e.toLowerCase();\n throw new TypeError(`Invalid protocol \'${e}\'.`);\n }\n a(w, "protocolEncodeCallback");\n function ue(e) {\n if (e === "")\n return e;\n let t = new URL("https://example.com");\n return t.username = e, t.username;\n }\n a(ue, "usernameEncodeCallback");\n function de(e) {\n if (e === "")\n return e;\n let t = new URL("https://example.com");\n return t.password = e, t.password;\n }\n a(de, "passwordEncodeCallback");\n function G(e) {\n if (e === "")\n return e;\n if (/[\\t\\n\\r #%/:<>?@[\\]^\\\\|]/g.test(e))\n throw new TypeError(`Invalid hostname \'${e}\'`);\n let t = new URL("https://example.com");\n return t.hostname = e, t.hostname;\n }\n a(G, "hostnameEncodeCallback");\n function V(e) {\n if (e === "")\n return e;\n if (/[^0-9a-fA-F[\\]:]/g.test(e))\n throw new TypeError(`Invalid IPv6 hostname \'${e}\'`);\n return e.toLowerCase();\n }\n a(V, "ipv6HostnameEncodeCallback");\n function Y(e) {\n if (e === "" || /^[0-9]*$/.test(e) && parseInt(e) <= 65535)\n return e;\n throw new TypeError(`Invalid port \'${e}\'.`);\n }\n a(Y, "portEncodeCallback");\n function pe(e) {\n if (e === "")\n return e;\n let t = new URL("https://example.com");\n return t.pathname = e[0] !== "/" ? "/-" + e : e, e[0] !== "/" ? t.pathname.substring(2, t.pathname.length) : t.pathname;\n }\n a(pe, "standardURLPathnameEncodeCallback");\n function ge(e) {\n return e === "" ? e : new URL(`data:${e}`).pathname;\n }\n a(ge, "pathURLPathnameEncodeCallback");\n function me(e) {\n if (e === "")\n return e;\n let t = new URL("https://example.com");\n return t.search = e, t.search.substring(1, t.search.length);\n }\n a(me, "searchEncodeCallback");\n function Se(e) {\n if (e === "")\n return e;\n let t = new URL("https://example.com");\n return t.hash = e, t.hash.substring(1, t.hash.length);\n }\n a(Se, "hashEncodeCallback");\n var C = class {\n #i;\n #n = [];\n #t = {};\n #e = 0;\n #s = 1;\n #l = 0;\n #o = 0;\n #d = 0;\n #p = 0;\n #g = false;\n constructor(t) {\n this.#i = t;\n }\n get result() {\n return this.#t;\n }\n parse() {\n for (this.#n = W(this.#i, true);this.#e < this.#n.length; this.#e += this.#s) {\n if (this.#s = 1, this.#n[this.#e].type === "END") {\n if (this.#o === 0) {\n this.#b(), this.#f() ? this.#r(9, 1) : this.#h() ? this.#r(8, 1) : this.#r(7, 0);\n continue;\n } else if (this.#o === 2) {\n this.#u(5);\n continue;\n }\n this.#r(10, 0);\n break;\n }\n if (this.#d > 0)\n if (this.#A())\n this.#d -= 1;\n else\n continue;\n if (this.#T()) {\n this.#d += 1;\n continue;\n }\n switch (this.#o) {\n case 0:\n this.#P() && this.#u(1);\n break;\n case 1:\n if (this.#P()) {\n this.#C();\n let t = 7, r = 1;\n this.#E() ? (t = 2, r = 3) : this.#g && (t = 2), this.#r(t, r);\n }\n break;\n case 2:\n this.#S() ? this.#u(3) : (this.#x() || this.#h() || this.#f()) && this.#u(5);\n break;\n case 3:\n this.#O() ? this.#r(4, 1) : this.#S() && this.#r(5, 1);\n break;\n case 4:\n this.#S() && this.#r(5, 1);\n break;\n case 5:\n this.#y() ? this.#p += 1 : this.#w() && (this.#p -= 1), this.#k() && !this.#p ? this.#r(6, 1) : this.#x() ? this.#r(7, 0) : this.#h() ? this.#r(8, 1) : this.#f() && this.#r(9, 1);\n break;\n case 6:\n this.#x() ? this.#r(7, 0) : this.#h() ? this.#r(8, 1) : this.#f() && this.#r(9, 1);\n break;\n case 7:\n this.#h() ? this.#r(8, 1) : this.#f() && this.#r(9, 1);\n break;\n case 8:\n this.#f() && this.#r(9, 1);\n break;\n case 9:\n break;\n case 10:\n break;\n }\n }\n this.#t.hostname !== undefined && this.#t.port === undefined && (this.#t.port = "");\n }\n #r(t, r) {\n switch (this.#o) {\n case 0:\n break;\n case 1:\n this.#t.protocol = this.#c();\n break;\n case 2:\n break;\n case 3:\n this.#t.username = this.#c();\n break;\n case 4:\n this.#t.password = this.#c();\n break;\n case 5:\n this.#t.hostname = this.#c();\n break;\n case 6:\n this.#t.port = this.#c();\n break;\n case 7:\n this.#t.pathname = this.#c();\n break;\n case 8:\n this.#t.search = this.#c();\n break;\n case 9:\n this.#t.hash = this.#c();\n break;\n case 10:\n break;\n }\n this.#o !== 0 && t !== 10 && ([1, 2, 3, 4].includes(this.#o) && [6, 7, 8, 9].includes(t) && (this.#t.hostname ??= ""), [1, 2, 3, 4, 5, 6].includes(this.#o) && [8, 9].includes(t) && (this.#t.pathname ??= this.#g ? "/" : ""), [1, 2, 3, 4, 5, 6, 7].includes(this.#o) && t === 9 && (this.#t.search ??= "")), this.#R(t, r);\n }\n #R(t, r) {\n this.#o = t, this.#l = this.#e + r, this.#e += r, this.#s = 0;\n }\n #b() {\n this.#e = this.#l, this.#s = 0;\n }\n #u(t) {\n this.#b(), this.#o = t;\n }\n #m(t) {\n return t < 0 && (t = this.#n.length - t), t < this.#n.length ? this.#n[t] : this.#n[this.#n.length - 1];\n }\n #a(t, r) {\n let n = this.#m(t);\n return n.value === r && (n.type === "CHAR" || n.type === "ESCAPED_CHAR" || n.type === "INVALID_CHAR");\n }\n #P() {\n return this.#a(this.#e, ":");\n }\n #E() {\n return this.#a(this.#e + 1, "/") && this.#a(this.#e + 2, "/");\n }\n #S() {\n return this.#a(this.#e, "@");\n }\n #O() {\n return this.#a(this.#e, ":");\n }\n #k() {\n return this.#a(this.#e, ":");\n }\n #x() {\n return this.#a(this.#e, "/");\n }\n #h() {\n if (this.#a(this.#e, "?"))\n return true;\n if (this.#n[this.#e].value !== "?")\n return false;\n let t = this.#m(this.#e - 1);\n return t.type !== "NAME" && t.type !== "REGEX" && t.type !== "CLOSE" && t.type !== "ASTERISK";\n }\n #f() {\n return this.#a(this.#e, "#");\n }\n #T() {\n return this.#n[this.#e].type == "OPEN";\n }\n #A() {\n return this.#n[this.#e].type == "CLOSE";\n }\n #y() {\n return this.#a(this.#e, "[");\n }\n #w() {\n return this.#a(this.#e, "]");\n }\n #c() {\n let t = this.#n[this.#e], r = this.#m(this.#l).index;\n return this.#i.substring(r, t.index);\n }\n #C() {\n let t = {};\n Object.assign(t, b), t.encodePart = w;\n let r = J(this.#c(), undefined, t);\n this.#g = $(r);\n }\n };\n a(C, "Parser");\n var X = ["protocol", "username", "password", "hostname", "port", "pathname", "search", "hash"];\n var O = "*";\n function xe(e, t) {\n if (typeof e != "string")\n throw new TypeError("parameter 1 is not of type \'string\'.");\n let r = new URL(e, t);\n return { protocol: r.protocol.substring(0, r.protocol.length - 1), username: r.username, password: r.password, hostname: r.hostname, port: r.port, pathname: r.pathname, search: r.search !== "" ? r.search.substring(1, r.search.length) : undefined, hash: r.hash !== "" ? r.hash.substring(1, r.hash.length) : undefined };\n }\n a(xe, "extractValues");\n function R(e, t) {\n return t ? I(e) : e;\n }\n a(R, "processBaseURLString");\n function L(e, t, r) {\n let n;\n if (typeof t.baseURL == "string")\n try {\n n = new URL(t.baseURL), t.protocol === undefined && (e.protocol = R(n.protocol.substring(0, n.protocol.length - 1), r)), !r && t.protocol === undefined && t.hostname === undefined && t.port === undefined && t.username === undefined && (e.username = R(n.username, r)), !r && t.protocol === undefined && t.hostname === undefined && t.port === undefined && t.username === undefined && t.password === undefined && (e.password = R(n.password, r)), t.protocol === undefined && t.hostname === undefined && (e.hostname = R(n.hostname, r)), t.protocol === undefined && t.hostname === undefined && t.port === undefined && (e.port = R(n.port, r)), t.protocol === undefined && t.hostname === undefined && t.port === undefined && t.pathname === undefined && (e.pathname = R(n.pathname, r)), t.protocol === undefined && t.hostname === undefined && t.port === undefined && t.pathname === undefined && t.search === undefined && (e.search = R(n.search.substring(1, n.search.length), r)), t.protocol === undefined && t.hostname === undefined && t.port === undefined && t.pathname === undefined && t.search === undefined && t.hash === undefined && (e.hash = R(n.hash.substring(1, n.hash.length), r));\n } catch {\n throw new TypeError(`invalid baseURL \'${t.baseURL}\'.`);\n }\n if (typeof t.protocol == "string" && (e.protocol = he(t.protocol, r)), typeof t.username == "string" && (e.username = ce(t.username, r)), typeof t.password == "string" && (e.password = oe(t.password, r)), typeof t.hostname == "string" && (e.hostname = ae(t.hostname, r)), typeof t.port == "string" && (e.port = fe(t.port, e.protocol, r)), typeof t.pathname == "string") {\n if (e.pathname = t.pathname, n && !te(e.pathname, r)) {\n let o = n.pathname.lastIndexOf("/");\n o >= 0 && (e.pathname = R(n.pathname.substring(0, o + 1), r) + e.pathname);\n }\n e.pathname = le(e.pathname, e.protocol, r);\n }\n return typeof t.search == "string" && (e.search = ie(t.search, r)), typeof t.hash == "string" && (e.hash = se(t.hash, r)), e;\n }\n a(L, "applyInit");\n function I(e) {\n return e.replace(/([+*?:{}()\\\\])/g, "\\\\$1");\n }\n a(I, "escapePatternString");\n function Ie(e) {\n return e.replace(/([.+*?^${}()[\\]|/\\\\])/g, "\\\\$1");\n }\n a(Ie, "escapeRegexpString");\n function Ne(e, t) {\n t.delimiter ??= "/#?", t.prefixes ??= "./", t.sensitive ??= false, t.strict ??= false, t.end ??= true, t.start ??= true, t.endsWith = "";\n let r = ".*", n = `[^${Ie(t.delimiter)}]+?`, o = /[$_\\u200C\\u200D\\p{ID_Continue}]/u, l = "";\n for (let f = 0;f < e.length; ++f) {\n let s = e[f];\n if (s.type === 3) {\n if (s.modifier === 3) {\n l += I(s.value);\n continue;\n }\n l += `{${I(s.value)}}${T(s.modifier)}`;\n continue;\n }\n let i = s.hasCustomName(), c = !!s.suffix.length || !!s.prefix.length && (s.prefix.length !== 1 || !t.prefixes.includes(s.prefix)), h = f > 0 ? e[f - 1] : null, p = f < e.length - 1 ? e[f + 1] : null;\n if (!c && i && s.type === 1 && s.modifier === 3 && p && !p.prefix.length && !p.suffix.length)\n if (p.type === 3) {\n let A = p.value.length > 0 ? p.value[0] : "";\n c = o.test(A);\n } else\n c = !p.hasCustomName();\n if (!c && !s.prefix.length && h && h.type === 3) {\n let A = h.value[h.value.length - 1];\n c = t.prefixes.includes(A);\n }\n c && (l += "{"), l += I(s.prefix), i && (l += `:${s.name}`), s.type === 2 ? l += `(${s.value})` : s.type === 1 ? i || (l += `(${n})`) : s.type === 0 && (!i && (!h || h.type === 3 || h.modifier !== 3 || c || s.prefix !== "") ? l += "*" : l += `(${r})`), s.type === 1 && i && s.suffix.length && o.test(s.suffix[0]) && (l += "\\\\"), l += I(s.suffix), c && (l += "}"), s.modifier !== 3 && (l += T(s.modifier));\n }\n return l;\n }\n a(Ne, "partsToPattern");\n var M = class {\n #i;\n #n = {};\n #t = {};\n #e = {};\n #s = {};\n #l = false;\n constructor(t = {}, r, n) {\n try {\n let o;\n if (typeof r == "string" ? o = r : n = r, typeof t == "string") {\n let i = new C(t);\n if (i.parse(), t = i.result, o === undefined && typeof t.protocol != "string")\n throw new TypeError("A base URL must be provided for a relative constructor string.");\n t.baseURL = o;\n } else {\n if (!t || typeof t != "object")\n throw new TypeError("parameter 1 is not of type \'string\' and cannot convert to dictionary.");\n if (o)\n throw new TypeError("parameter 1 is not of type \'string\'.");\n }\n typeof n > "u" && (n = { ignoreCase: false });\n let l = { ignoreCase: n.ignoreCase === true }, f = { pathname: O, protocol: O, username: O, password: O, hostname: O, port: O, search: O, hash: O };\n this.#i = L(f, t, true), K(this.#i.protocol) === this.#i.port && (this.#i.port = "");\n let s;\n for (s of X) {\n if (!(s in this.#i))\n continue;\n let i = {}, c = this.#i[s];\n switch (this.#t[s] = [], s) {\n case "protocol":\n Object.assign(i, b), i.encodePart = w;\n break;\n case "username":\n Object.assign(i, b), i.encodePart = ue;\n break;\n case "password":\n Object.assign(i, b), i.encodePart = de;\n break;\n case "hostname":\n Object.assign(i, Q), j(c) ? i.encodePart = V : i.encodePart = G;\n break;\n case "port":\n Object.assign(i, b), i.encodePart = Y;\n break;\n case "pathname":\n $(this.#n.protocol) ? (Object.assign(i, ee, l), i.encodePart = pe) : (Object.assign(i, b, l), i.encodePart = ge);\n break;\n case "search":\n Object.assign(i, b, l), i.encodePart = me;\n break;\n case "hash":\n Object.assign(i, b, l), i.encodePart = Se;\n break;\n }\n try {\n this.#s[s] = _(c, i), this.#n[s] = z(this.#s[s], this.#t[s], i), this.#e[s] = Ne(this.#s[s], i), this.#l = this.#l || this.#s[s].some((h) => h.type === 2);\n } catch {\n throw new TypeError(`invalid ${s} pattern \'${this.#i[s]}\'.`);\n }\n }\n } catch (o) {\n throw new TypeError(`Failed to construct \'URLPattern\': ${o.message}`);\n }\n }\n get [Symbol.toStringTag]() {\n return "URLPattern";\n }\n test(t = {}, r) {\n let n = { pathname: "", protocol: "", username: "", password: "", hostname: "", port: "", search: "", hash: "" };\n if (typeof t != "string" && r)\n throw new TypeError("parameter 1 is not of type \'string\'.");\n if (typeof t > "u")\n return false;\n try {\n typeof t == "object" ? n = L(n, t, false) : n = L(n, xe(t, r), false);\n } catch {\n return false;\n }\n let o;\n for (o of X)\n if (!this.#n[o].exec(n[o]))\n return false;\n return true;\n }\n exec(t = {}, r) {\n let n = { pathname: "", protocol: "", username: "", password: "", hostname: "", port: "", search: "", hash: "" };\n if (typeof t != "string" && r)\n throw new TypeError("parameter 1 is not of type \'string\'.");\n if (typeof t > "u")\n return;\n try {\n typeof t == "object" ? n = L(n, t, false) : n = L(n, xe(t, r), false);\n } catch {\n return null;\n }\n let o = {};\n r ? o.inputs = [t, r] : o.inputs = [t];\n let l;\n for (l of X) {\n let f = this.#n[l].exec(n[l]);\n if (!f)\n return null;\n let s = {};\n for (let [i, c] of this.#t[l].entries())\n if (typeof c == "string" || typeof c == "number") {\n let h = f[i + 1];\n s[c] = h;\n }\n o[l] = { input: n[l] ?? "", groups: s };\n }\n return o;\n }\n static compareComponent(t, r, n) {\n let o = a((i, c) => {\n for (let h of ["type", "modifier", "prefix", "value", "suffix"]) {\n if (i[h] < c[h])\n return -1;\n if (i[h] === c[h])\n continue;\n return 1;\n }\n return 0;\n }, "comparePart"), l = new P(3, "", "", "", "", 3), f = new P(0, "", "", "", "", 3), s = a((i, c) => {\n let h = 0;\n for (;h < Math.min(i.length, c.length); ++h) {\n let p = o(i[h], c[h]);\n if (p)\n return p;\n }\n return i.length === c.length ? 0 : o(i[h] ?? l, c[h] ?? l);\n }, "comparePartList");\n return !r.#e[t] && !n.#e[t] ? 0 : r.#e[t] && !n.#e[t] ? s(r.#s[t], [f]) : !r.#e[t] && n.#e[t] ? s([f], n.#s[t]) : s(r.#s[t], n.#s[t]);\n }\n get protocol() {\n return this.#e.protocol;\n }\n get username() {\n return this.#e.username;\n }\n get password() {\n return this.#e.password;\n }\n get hostname() {\n return this.#e.hostname;\n }\n get port() {\n return this.#e.port;\n }\n get pathname() {\n return this.#e.pathname;\n }\n get search() {\n return this.#e.search;\n }\n get hash() {\n return this.#e.hash;\n }\n get hasRegExpGroups() {\n return this.#l;\n }\n };\n a(M, "URLPattern");\n});\n\n// ../../node_modules/urlpattern-polyfill/index.cjs\nvar require_urlpattern_polyfill = __commonJS((exports, module) => {\n var { URLPattern } = require_urlpattern();\n module.exports = { URLPattern };\n if (!globalThis.URLPattern) {\n globalThis.URLPattern = URLPattern;\n }\n});\n\n// ../../node_modules/@whatwg-node/promise-helpers/cjs/index.js\nvar require_cjs = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.isPromise = isPromise2;\n exports.isActualPromise = isActualPromise2;\n exports.handleMaybePromise = handleMaybePromise2;\n exports.fakePromise = fakePromise2;\n exports.createDeferredPromise = createDeferredPromise2;\n exports.iterateAsync = iterateAsync2;\n exports.iterateAsyncVoid = iterateAsync2;\n exports.fakeRejectPromise = fakeRejectPromise2;\n exports.mapMaybePromise = mapMaybePromise;\n exports.mapAsyncIterator = mapAsyncIterator;\n exports.promiseLikeFinally = promiseLikeFinally2;\n exports.unfakePromise = unfakePromise2;\n var kFakePromise2 = Symbol.for("@whatwg-node/promise-helpers/FakePromise");\n function isPromise2(value) {\n return value?.then != null;\n }\n function isActualPromise2(value) {\n const maybePromise = value;\n return maybePromise && maybePromise.then && maybePromise.catch && maybePromise.finally;\n }\n function handleMaybePromise2(inputFactory, outputSuccessFactory, outputErrorFactory, finallyFactory) {\n let result$ = fakePromise2().then(inputFactory).then(outputSuccessFactory, outputErrorFactory);\n if (finallyFactory) {\n result$ = result$.finally(finallyFactory);\n }\n return unfakePromise2(result$);\n }\n function fakePromise2(value) {\n if (value && isActualPromise2(value)) {\n return value;\n }\n if (isPromise2(value)) {\n return {\n then: (resolve, reject) => fakePromise2(value.then(resolve, reject)),\n catch: (reject) => fakePromise2(value.then((res) => res, reject)),\n finally: (cb) => fakePromise2(cb ? promiseLikeFinally2(value, cb) : value),\n [Symbol.toStringTag]: "Promise"\n };\n }\n return {\n then(resolve) {\n if (resolve) {\n try {\n return fakePromise2(resolve(value));\n } catch (err) {\n return fakeRejectPromise2(err);\n }\n }\n return this;\n },\n catch() {\n return this;\n },\n finally(cb) {\n if (cb) {\n try {\n return fakePromise2(cb()).then(() => value, () => value);\n } catch (err) {\n return fakeRejectPromise2(err);\n }\n }\n return this;\n },\n [Symbol.toStringTag]: "Promise",\n __fakePromiseValue: value,\n [kFakePromise2]: "resolved"\n };\n }\n function createDeferredPromise2() {\n if (Promise.withResolvers) {\n return Promise.withResolvers();\n }\n let resolveFn;\n let rejectFn;\n const promise = new Promise(function deferredPromiseExecutor(resolve, reject) {\n resolveFn = resolve;\n rejectFn = reject;\n });\n return {\n promise,\n get resolve() {\n return resolveFn;\n },\n get reject() {\n return rejectFn;\n }\n };\n }\n function iterateAsync2(iterable, callback, results) {\n if (iterable?.length === 0) {\n return;\n }\n const iterator = iterable[Symbol.iterator]();\n let index = 0;\n function iterate() {\n const { done: endOfIterator, value } = iterator.next();\n if (endOfIterator) {\n return;\n }\n let endedEarly = false;\n function endEarly() {\n endedEarly = true;\n }\n return handleMaybePromise2(function handleCallback() {\n return callback(value, endEarly, index++);\n }, function handleCallbackResult(result) {\n if (result) {\n results?.push(result);\n }\n if (endedEarly) {\n return;\n }\n return iterate();\n });\n }\n return iterate();\n }\n function fakeRejectPromise2(error) {\n return {\n then(_resolve, reject) {\n if (reject) {\n try {\n return fakePromise2(reject(error));\n } catch (err) {\n return fakeRejectPromise2(err);\n }\n }\n return this;\n },\n catch(reject) {\n if (reject) {\n try {\n return fakePromise2(reject(error));\n } catch (err) {\n return fakeRejectPromise2(err);\n }\n }\n return this;\n },\n finally(cb) {\n if (cb) {\n try {\n cb();\n } catch (err) {\n return fakeRejectPromise2(err);\n }\n }\n return this;\n },\n __fakeRejectError: error,\n [Symbol.toStringTag]: "Promise",\n [kFakePromise2]: "rejected"\n };\n }\n function mapMaybePromise(input, onSuccess, onError) {\n return handleMaybePromise2(() => input, onSuccess, onError);\n }\n function mapAsyncIterator(iterator, onNext, onError, onEnd) {\n if (Symbol.asyncIterator in iterator) {\n iterator = iterator[Symbol.asyncIterator]();\n }\n let $return;\n let abruptClose;\n let onEndWithValue;\n if (onEnd) {\n let onEndWithValueResult;\n onEndWithValue = (value) => {\n onEndWithValueResult ||= handleMaybePromise2(onEnd, () => value, () => value);\n return onEndWithValueResult;\n };\n }\n if (typeof iterator.return === "function") {\n $return = iterator.return;\n abruptClose = (error) => {\n const rethrow = () => {\n throw error;\n };\n return $return.call(iterator).then(rethrow, rethrow);\n };\n }\n function mapResult(result) {\n if (result.done) {\n return onEndWithValue ? onEndWithValue(result) : result;\n }\n return handleMaybePromise2(() => result.value, (value) => handleMaybePromise2(() => onNext(value), iteratorResult, abruptClose));\n }\n let mapReject;\n if (onError) {\n let onErrorResult;\n const reject = onError;\n mapReject = (error) => {\n onErrorResult ||= handleMaybePromise2(() => error, (error2) => handleMaybePromise2(() => reject(error2), iteratorResult, abruptClose));\n return onErrorResult;\n };\n }\n return {\n next() {\n return iterator.next().then(mapResult, mapReject);\n },\n return() {\n const res$ = $return ? $return.call(iterator).then(mapResult, mapReject) : fakePromise2({ value: undefined, done: true });\n return onEndWithValue ? res$.then(onEndWithValue) : res$;\n },\n throw(error) {\n if (typeof iterator.throw === "function") {\n return iterator.throw(error).then(mapResult, mapReject);\n }\n if (abruptClose) {\n return abruptClose(error);\n }\n return fakeRejectPromise2(error);\n },\n [Symbol.asyncIterator]() {\n return this;\n }\n };\n }\n function iteratorResult(value) {\n return { value, done: false };\n }\n function isFakePromise2(value) {\n return value?.[kFakePromise2] === "resolved";\n }\n function isFakeRejectPromise2(value) {\n return value?.[kFakePromise2] === "rejected";\n }\n function promiseLikeFinally2(value, onFinally) {\n if ("finally" in value) {\n return value.finally(onFinally);\n }\n return value.then((res) => {\n const finallyRes = onFinally();\n return isPromise2(finallyRes) ? finallyRes.then(() => res) : res;\n }, (err) => {\n const finallyRes = onFinally();\n if (isPromise2(finallyRes)) {\n return finallyRes.then(() => {\n throw err;\n });\n } else {\n throw err;\n }\n });\n }\n function unfakePromise2(promise) {\n if (isFakePromise2(promise)) {\n return promise.__fakePromiseValue;\n }\n if (isFakeRejectPromise2(promise)) {\n throw promise.__fakeRejectError;\n }\n return promise;\n }\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/node_modules/@fastify/busboy/deps/streamsearch/sbmh.js\nvar require_sbmh = __commonJS((exports, module) => {\n var { EventEmitter } = __require("node:events");\n var { inherits } = __require("node:util");\n function SBMH(needle) {\n if (typeof needle === "string") {\n needle = Buffer.from(needle);\n }\n if (!Buffer.isBuffer(needle)) {\n throw new TypeError("The needle has to be a String or a Buffer.");\n }\n const needleLength = needle.length;\n const needleLastCharIndex = needleLength - 1;\n if (needleLength === 0) {\n throw new Error("The needle cannot be an empty String/Buffer.");\n }\n if (needleLength > 256) {\n throw new Error("The needle cannot have a length bigger than 256.");\n }\n this.maxMatches = Infinity;\n this.matches = 0;\n this._occ = new Uint8Array(256).fill(needleLength);\n this._lookbehind_size = 0;\n this._needle = needle;\n this._bufpos = 0;\n this._lookbehind = Buffer.alloc(needleLastCharIndex);\n for (var i = 0;i < needleLastCharIndex; ++i) {\n this._occ[needle[i]] = needleLastCharIndex - i;\n }\n }\n inherits(SBMH, EventEmitter);\n SBMH.prototype.reset = function() {\n this._lookbehind_size = 0;\n this.matches = 0;\n this._bufpos = 0;\n };\n SBMH.prototype.push = function(chunk, pos) {\n if (!Buffer.isBuffer(chunk)) {\n chunk = Buffer.from(chunk, "binary");\n }\n const chlen = chunk.length;\n this._bufpos = pos || 0;\n let r;\n while (r !== chlen && this.matches < this.maxMatches) {\n r = this._sbmh_feed(chunk);\n }\n return r;\n };\n SBMH.prototype._sbmh_feed = function(data) {\n const len = data.length;\n const needle = this._needle;\n const needleLength = needle.length;\n const needleLastCharIndex = needleLength - 1;\n const needleLastChar = needle[needleLastCharIndex];\n let pos = -this._lookbehind_size;\n let ch;\n if (pos < 0) {\n while (pos < 0 && pos <= len - needleLength) {\n ch = data[pos + needleLastCharIndex];\n if (ch === needleLastChar && this._sbmh_memcmp(data, pos, needleLastCharIndex)) {\n this._lookbehind_size = 0;\n ++this.matches;\n this.emit("info", true);\n return this._bufpos = pos + needleLength;\n }\n pos += this._occ[ch];\n }\n while (pos < 0 && !this._sbmh_memcmp(data, pos, len - pos)) {\n ++pos;\n }\n if (pos >= 0) {\n this.emit("info", false, this._lookbehind, 0, this._lookbehind_size);\n this._lookbehind_size = 0;\n } else {\n const bytesToCutOff = this._lookbehind_size + pos;\n if (bytesToCutOff > 0) {\n this.emit("info", false, this._lookbehind, 0, bytesToCutOff);\n }\n this._lookbehind_size -= bytesToCutOff;\n this._lookbehind.copy(this._lookbehind, 0, bytesToCutOff, this._lookbehind_size);\n data.copy(this._lookbehind, this._lookbehind_size);\n this._lookbehind_size += len;\n this._bufpos = len;\n return len;\n }\n }\n pos = data.indexOf(needle, pos + this._bufpos);\n if (pos !== -1) {\n ++this.matches;\n if (pos === 0) {\n this.emit("info", true);\n } else {\n this.emit("info", true, data, this._bufpos, pos);\n }\n return this._bufpos = pos + needleLength;\n }\n pos = len - needleLastCharIndex;\n if (pos < 0) {\n pos = 0;\n }\n while (pos !== len && (data[pos] !== needle[0] || Buffer.compare(data.subarray(pos + 1, len), needle.subarray(1, len - pos)) !== 0)) {\n ++pos;\n }\n if (pos !== len) {\n data.copy(this._lookbehind, 0, pos, len);\n this._lookbehind_size = len - pos;\n }\n if (pos !== 0) {\n this.emit("info", false, data, this._bufpos, pos);\n }\n this._bufpos = len;\n return len;\n };\n SBMH.prototype._sbmh_lookup_char = function(data, pos) {\n return pos < 0 ? this._lookbehind[this._lookbehind_size + pos] : data[pos];\n };\n SBMH.prototype._sbmh_memcmp = function(data, pos, len) {\n for (var i = 0;i < len; ++i) {\n if (this._sbmh_lookup_char(data, pos + i) !== this._needle[i]) {\n return false;\n }\n }\n return true;\n };\n module.exports = SBMH;\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/node_modules/@fastify/busboy/deps/dicer/lib/PartStream.js\nvar require_PartStream = __commonJS((exports, module) => {\n var inherits = __require("node:util").inherits;\n var ReadableStream2 = __require("node:stream").Readable;\n function PartStream(opts) {\n ReadableStream2.call(this, opts);\n }\n inherits(PartStream, ReadableStream2);\n PartStream.prototype._read = function(n) {};\n module.exports = PartStream;\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/node_modules/@fastify/busboy/lib/utils/getLimit.js\nvar require_getLimit = __commonJS((exports, module) => {\n module.exports = function getLimit(limits, name, defaultLimit) {\n if (!limits || limits[name] === undefined || limits[name] === null) {\n return defaultLimit;\n }\n if (typeof limits[name] !== "number" || isNaN(limits[name])) {\n throw new TypeError("Limit " + name + " is not a valid number");\n }\n return limits[name];\n };\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/node_modules/@fastify/busboy/deps/dicer/lib/HeaderParser.js\nvar require_HeaderParser = __commonJS((exports, module) => {\n var EventEmitter = __require("node:events").EventEmitter;\n var inherits = __require("node:util").inherits;\n var getLimit = require_getLimit();\n var StreamSearch = require_sbmh();\n var B_DCRLF = Buffer.from(`\\r\n\\r\n`);\n var RE_CRLF = /\\r\\n/g;\n var RE_HDR = /^([^:]+):[ \\t]?([\\x00-\\xFF]+)?$/;\n function HeaderParser(cfg) {\n EventEmitter.call(this);\n cfg = cfg || {};\n const self2 = this;\n this.nread = 0;\n this.maxed = false;\n this.npairs = 0;\n this.maxHeaderPairs = getLimit(cfg, "maxHeaderPairs", 2000);\n this.maxHeaderSize = getLimit(cfg, "maxHeaderSize", 80 * 1024);\n this.buffer = "";\n this.header = {};\n this.finished = false;\n this.ss = new StreamSearch(B_DCRLF);\n this.ss.on("info", function(isMatch, data, start, end) {\n if (data && !self2.maxed) {\n if (self2.nread + end - start >= self2.maxHeaderSize) {\n end = self2.maxHeaderSize - self2.nread + start;\n self2.nread = self2.maxHeaderSize;\n self2.maxed = true;\n } else {\n self2.nread += end - start;\n }\n self2.buffer += data.toString("binary", start, end);\n }\n if (isMatch) {\n self2._finish();\n }\n });\n }\n inherits(HeaderParser, EventEmitter);\n HeaderParser.prototype.push = function(data) {\n const r = this.ss.push(data);\n if (this.finished) {\n return r;\n }\n };\n HeaderParser.prototype.reset = function() {\n this.finished = false;\n this.buffer = "";\n this.header = {};\n this.ss.reset();\n };\n HeaderParser.prototype._finish = function() {\n if (this.buffer) {\n this._parseHeader();\n }\n this.ss.matches = this.ss.maxMatches;\n const header = this.header;\n this.header = {};\n this.buffer = "";\n this.finished = true;\n this.nread = this.npairs = 0;\n this.maxed = false;\n this.emit("header", header);\n };\n HeaderParser.prototype._parseHeader = function() {\n if (this.npairs === this.maxHeaderPairs) {\n return;\n }\n const lines = this.buffer.split(RE_CRLF);\n const len = lines.length;\n let m, h;\n for (var i = 0;i < len; ++i) {\n if (lines[i].length === 0) {\n continue;\n }\n if (lines[i][0] === "\\t" || lines[i][0] === " ") {\n if (h) {\n this.header[h][this.header[h].length - 1] += lines[i];\n continue;\n }\n }\n const posColon = lines[i].indexOf(":");\n if (posColon === -1 || posColon === 0) {\n return;\n }\n m = RE_HDR.exec(lines[i]);\n h = m[1].toLowerCase();\n this.header[h] = this.header[h] || [];\n this.header[h].push(m[2] || "");\n if (++this.npairs === this.maxHeaderPairs) {\n break;\n }\n }\n };\n module.exports = HeaderParser;\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js\nvar require_Dicer = __commonJS((exports, module) => {\n var WritableStream2 = __require("node:stream").Writable;\n var inherits = __require("node:util").inherits;\n var StreamSearch = require_sbmh();\n var PartStream = require_PartStream();\n var HeaderParser = require_HeaderParser();\n var DASH = 45;\n var B_ONEDASH = Buffer.from("-");\n var B_CRLF = Buffer.from(`\\r\n`);\n var EMPTY_FN = function() {};\n function Dicer(cfg) {\n if (!(this instanceof Dicer)) {\n return new Dicer(cfg);\n }\n WritableStream2.call(this, cfg);\n if (!cfg || !cfg.headerFirst && typeof cfg.boundary !== "string") {\n throw new TypeError("Boundary required");\n }\n if (typeof cfg.boundary === "string") {\n this.setBoundary(cfg.boundary);\n } else {\n this._bparser = undefined;\n }\n this._headerFirst = cfg.headerFirst;\n this._dashes = 0;\n this._parts = 0;\n this._finished = false;\n this._realFinish = false;\n this._isPreamble = true;\n this._justMatched = false;\n this._firstWrite = true;\n this._inHeader = true;\n this._part = undefined;\n this._cb = undefined;\n this._ignoreData = false;\n this._partOpts = { highWaterMark: cfg.partHwm };\n this._pause = false;\n const self2 = this;\n this._hparser = new HeaderParser(cfg);\n this._hparser.on("header", function(header) {\n self2._inHeader = false;\n self2._part.emit("header", header);\n });\n }\n inherits(Dicer, WritableStream2);\n Dicer.prototype.emit = function(ev) {\n if (ev === "finish" && !this._realFinish) {\n if (!this._finished) {\n const self2 = this;\n process.nextTick(function() {\n self2.emit("error", new Error("Unexpected end of multipart data"));\n if (self2._part && !self2._ignoreData) {\n const type = self2._isPreamble ? "Preamble" : "Part";\n self2._part.emit("error", new Error(type + " terminated early due to unexpected end of multipart data"));\n self2._part.push(null);\n process.nextTick(function() {\n self2._realFinish = true;\n self2.emit("finish");\n self2._realFinish = false;\n });\n return;\n }\n self2._realFinish = true;\n self2.emit("finish");\n self2._realFinish = false;\n });\n }\n } else {\n WritableStream2.prototype.emit.apply(this, arguments);\n }\n };\n Dicer.prototype._write = function(data, encoding, cb) {\n if (!this._hparser && !this._bparser) {\n return cb();\n }\n if (this._headerFirst && this._isPreamble) {\n if (!this._part) {\n this._part = new PartStream(this._partOpts);\n if (this.listenerCount("preamble") !== 0) {\n this.emit("preamble", this._part);\n } else {\n this._ignore();\n }\n }\n const r = this._hparser.push(data);\n if (!this._inHeader && r !== undefined && r < data.length) {\n data = data.slice(r);\n } else {\n return cb();\n }\n }\n if (this._firstWrite) {\n this._bparser.push(B_CRLF);\n this._firstWrite = false;\n }\n this._bparser.push(data);\n if (this._pause) {\n this._cb = cb;\n } else {\n cb();\n }\n };\n Dicer.prototype.reset = function() {\n this._part = undefined;\n this._bparser = undefined;\n this._hparser = undefined;\n };\n Dicer.prototype.setBoundary = function(boundary) {\n const self2 = this;\n this._bparser = new StreamSearch(`\\r\n--` + boundary);\n this._bparser.on("info", function(isMatch, data, start, end) {\n self2._oninfo(isMatch, data, start, end);\n });\n };\n Dicer.prototype._ignore = function() {\n if (this._part && !this._ignoreData) {\n this._ignoreData = true;\n this._part.on("error", EMPTY_FN);\n this._part.resume();\n }\n };\n Dicer.prototype._oninfo = function(isMatch, data, start, end) {\n let buf;\n const self2 = this;\n let i = 0;\n let r;\n let shouldWriteMore = true;\n if (!this._part && this._justMatched && data) {\n while (this._dashes < 2 && start + i < end) {\n if (data[start + i] === DASH) {\n ++i;\n ++this._dashes;\n } else {\n if (this._dashes) {\n buf = B_ONEDASH;\n }\n this._dashes = 0;\n break;\n }\n }\n if (this._dashes === 2) {\n if (start + i < end && this.listenerCount("trailer") !== 0) {\n this.emit("trailer", data.slice(start + i, end));\n }\n this.reset();\n this._finished = true;\n if (self2._parts === 0) {\n self2._realFinish = true;\n self2.emit("finish");\n self2._realFinish = false;\n }\n }\n if (this._dashes) {\n return;\n }\n }\n if (this._justMatched) {\n this._justMatched = false;\n }\n if (!this._part) {\n this._part = new PartStream(this._partOpts);\n this._part._read = function(n) {\n self2._unpause();\n };\n if (this._isPreamble && this.listenerCount("preamble") !== 0) {\n this.emit("preamble", this._part);\n } else if (this._isPreamble !== true && this.listenerCount("part") !== 0) {\n this.emit("part", this._part);\n } else {\n this._ignore();\n }\n if (!this._isPreamble) {\n this._inHeader = true;\n }\n }\n if (data && start < end && !this._ignoreData) {\n if (this._isPreamble || !this._inHeader) {\n if (buf) {\n shouldWriteMore = this._part.push(buf);\n }\n shouldWriteMore = this._part.push(data.slice(start, end));\n if (!shouldWriteMore) {\n this._pause = true;\n }\n } else if (!this._isPreamble && this._inHeader) {\n if (buf) {\n this._hparser.push(buf);\n }\n r = this._hparser.push(data.slice(start, end));\n if (!this._inHeader && r !== undefined && r < end) {\n this._oninfo(false, data, start + r, end);\n }\n }\n }\n if (isMatch) {\n this._hparser.reset();\n if (this._isPreamble) {\n this._isPreamble = false;\n } else {\n if (start !== end) {\n ++this._parts;\n this._part.on("end", function() {\n if (--self2._parts === 0) {\n if (self2._finished) {\n self2._realFinish = true;\n self2.emit("finish");\n self2._realFinish = false;\n } else {\n self2._unpause();\n }\n }\n });\n }\n }\n this._part.push(null);\n this._part = undefined;\n this._ignoreData = false;\n this._justMatched = true;\n this._dashes = 0;\n }\n };\n Dicer.prototype._unpause = function() {\n if (!this._pause) {\n return;\n }\n this._pause = false;\n if (this._cb) {\n const cb = this._cb;\n this._cb = undefined;\n cb();\n }\n };\n module.exports = Dicer;\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/node_modules/@fastify/busboy/lib/utils/decodeText.js\nvar require_decodeText = __commonJS((exports, module) => {\n var utf8Decoder = new TextDecoder("utf-8");\n var textDecoders = new Map([\n ["utf-8", utf8Decoder],\n ["utf8", utf8Decoder]\n ]);\n function getDecoder(charset) {\n let lc;\n while (true) {\n switch (charset) {\n case "utf-8":\n case "utf8":\n return decoders.utf8;\n case "latin1":\n case "ascii":\n case "us-ascii":\n case "iso-8859-1":\n case "iso8859-1":\n case "iso88591":\n case "iso_8859-1":\n case "windows-1252":\n case "iso_8859-1:1987":\n case "cp1252":\n case "x-cp1252":\n return decoders.latin1;\n case "utf16le":\n case "utf-16le":\n case "ucs2":\n case "ucs-2":\n return decoders.utf16le;\n case "base64":\n return decoders.base64;\n default:\n if (lc === undefined) {\n lc = true;\n charset = charset.toLowerCase();\n continue;\n }\n return decoders.other.bind(charset);\n }\n }\n }\n var decoders = {\n utf8: (data, sourceEncoding) => {\n if (data.length === 0) {\n return "";\n }\n if (typeof data === "string") {\n data = Buffer.from(data, sourceEncoding);\n }\n return data.utf8Slice(0, data.length);\n },\n latin1: (data, sourceEncoding) => {\n if (data.length === 0) {\n return "";\n }\n if (typeof data === "string") {\n return data;\n }\n return data.latin1Slice(0, data.length);\n },\n utf16le: (data, sourceEncoding) => {\n if (data.length === 0) {\n return "";\n }\n if (typeof data === "string") {\n data = Buffer.from(data, sourceEncoding);\n }\n return data.ucs2Slice(0, data.length);\n },\n base64: (data, sourceEncoding) => {\n if (data.length === 0) {\n return "";\n }\n if (typeof data === "string") {\n data = Buffer.from(data, sourceEncoding);\n }\n return data.base64Slice(0, data.length);\n },\n other: (data, sourceEncoding) => {\n if (data.length === 0) {\n return "";\n }\n if (typeof data === "string") {\n data = Buffer.from(data, sourceEncoding);\n }\n if (textDecoders.has(exports.toString())) {\n try {\n return textDecoders.get(exports).decode(data);\n } catch {}\n }\n return typeof data === "string" ? data : data.toString();\n }\n };\n function decodeText(text, sourceEncoding, destEncoding) {\n if (text) {\n return getDecoder(destEncoding)(text, sourceEncoding);\n }\n return text;\n }\n module.exports = decodeText;\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/node_modules/@fastify/busboy/lib/utils/parseParams.js\nvar require_parseParams = __commonJS((exports, module) => {\n var decodeText = require_decodeText();\n var RE_ENCODED = /%[a-fA-F0-9][a-fA-F0-9]/g;\n var EncodedLookup = {\n "%00": "\\x00",\n "%01": "\\x01",\n "%02": "\\x02",\n "%03": "\\x03",\n "%04": "\\x04",\n "%05": "\\x05",\n "%06": "\\x06",\n "%07": "\\x07",\n "%08": "\\b",\n "%09": "\\t",\n "%0a": `\n`,\n "%0A": `\n`,\n "%0b": "\\v",\n "%0B": "\\v",\n "%0c": "\\f",\n "%0C": "\\f",\n "%0d": "\\r",\n "%0D": "\\r",\n "%0e": "\\x0E",\n "%0E": "\\x0E",\n "%0f": "\\x0F",\n "%0F": "\\x0F",\n "%10": "\\x10",\n "%11": "\\x11",\n "%12": "\\x12",\n "%13": "\\x13",\n "%14": "\\x14",\n "%15": "\\x15",\n "%16": "\\x16",\n "%17": "\\x17",\n "%18": "\\x18",\n "%19": "\\x19",\n "%1a": "\\x1A",\n "%1A": "\\x1A",\n "%1b": "\\x1B",\n "%1B": "\\x1B",\n "%1c": "\\x1C",\n "%1C": "\\x1C",\n "%1d": "\\x1D",\n "%1D": "\\x1D",\n "%1e": "\\x1E",\n "%1E": "\\x1E",\n "%1f": "\\x1F",\n "%1F": "\\x1F",\n "%20": " ",\n "%21": "!",\n "%22": \'"\',\n "%23": "#",\n "%24": "$",\n "%25": "%",\n "%26": "&",\n "%27": "\'",\n "%28": "(",\n "%29": ")",\n "%2a": "*",\n "%2A": "*",\n "%2b": "+",\n "%2B": "+",\n "%2c": ",",\n "%2C": ",",\n "%2d": "-",\n "%2D": "-",\n "%2e": ".",\n "%2E": ".",\n "%2f": "/",\n "%2F": "/",\n "%30": "0",\n "%31": "1",\n "%32": "2",\n "%33": "3",\n "%34": "4",\n "%35": "5",\n "%36": "6",\n "%37": "7",\n "%38": "8",\n "%39": "9",\n "%3a": ":",\n "%3A": ":",\n "%3b": ";",\n "%3B": ";",\n "%3c": "<",\n "%3C": "<",\n "%3d": "=",\n "%3D": "=",\n "%3e": ">",\n "%3E": ">",\n "%3f": "?",\n "%3F": "?",\n "%40": "@",\n "%41": "A",\n "%42": "B",\n "%43": "C",\n "%44": "D",\n "%45": "E",\n "%46": "F",\n "%47": "G",\n "%48": "H",\n "%49": "I",\n "%4a": "J",\n "%4A": "J",\n "%4b": "K",\n "%4B": "K",\n "%4c": "L",\n "%4C": "L",\n "%4d": "M",\n "%4D": "M",\n "%4e": "N",\n "%4E": "N",\n "%4f": "O",\n "%4F": "O",\n "%50": "P",\n "%51": "Q",\n "%52": "R",\n "%53": "S",\n "%54": "T",\n "%55": "U",\n "%56": "V",\n "%57": "W",\n "%58": "X",\n "%59": "Y",\n "%5a": "Z",\n "%5A": "Z",\n "%5b": "[",\n "%5B": "[",\n "%5c": "\\\\",\n "%5C": "\\\\",\n "%5d": "]",\n "%5D": "]",\n "%5e": "^",\n "%5E": "^",\n "%5f": "_",\n "%5F": "_",\n "%60": "`",\n "%61": "a",\n "%62": "b",\n "%63": "c",\n "%64": "d",\n "%65": "e",\n "%66": "f",\n "%67": "g",\n "%68": "h",\n "%69": "i",\n "%6a": "j",\n "%6A": "j",\n "%6b": "k",\n "%6B": "k",\n "%6c": "l",\n "%6C": "l",\n "%6d": "m",\n "%6D": "m",\n "%6e": "n",\n "%6E": "n",\n "%6f": "o",\n "%6F": "o",\n "%70": "p",\n "%71": "q",\n "%72": "r",\n "%73": "s",\n "%74": "t",\n "%75": "u",\n "%76": "v",\n "%77": "w",\n "%78": "x",\n "%79": "y",\n "%7a": "z",\n "%7A": "z",\n "%7b": "{",\n "%7B": "{",\n "%7c": "|",\n "%7C": "|",\n "%7d": "}",\n "%7D": "}",\n "%7e": "~",\n "%7E": "~",\n "%7f": "",\n "%7F": "",\n "%80": "",\n "%81": "",\n "%82": "",\n "%83": "",\n "%84": "",\n "%85": "
",\n "%86": "",\n "%87": "",\n "%88": "",\n "%89": "",\n "%8a": "",\n "%8A": "",\n "%8b": "",\n "%8B": "",\n "%8c": "",\n "%8C": "",\n "%8d": "",\n "%8D": "",\n "%8e": "",\n "%8E": "",\n "%8f": "",\n "%8F": "",\n "%90": "",\n "%91": "",\n "%92": "",\n "%93": "",\n "%94": "",\n "%95": "",\n "%96": "",\n "%97": "",\n "%98": "",\n "%99": "",\n "%9a": "",\n "%9A": "",\n "%9b": "",\n "%9B": "",\n "%9c": "",\n "%9C": "",\n "%9d": "",\n "%9D": "",\n "%9e": "",\n "%9E": "",\n "%9f": "",\n "%9F": "",\n "%a0": " ",\n "%A0": " ",\n "%a1": "¡",\n "%A1": "¡",\n "%a2": "¢",\n "%A2": "¢",\n "%a3": "£",\n "%A3": "£",\n "%a4": "¤",\n "%A4": "¤",\n "%a5": "¥",\n "%A5": "¥",\n "%a6": "¦",\n "%A6": "¦",\n "%a7": "§",\n "%A7": "§",\n "%a8": "¨",\n "%A8": "¨",\n "%a9": "©",\n "%A9": "©",\n "%aa": "ª",\n "%Aa": "ª",\n "%aA": "ª",\n "%AA": "ª",\n "%ab": "«",\n "%Ab": "«",\n "%aB": "«",\n "%AB": "«",\n "%ac": "¬",\n "%Ac": "¬",\n "%aC": "¬",\n "%AC": "¬",\n "%ad": "",\n "%Ad": "",\n "%aD": "",\n "%AD": "",\n "%ae": "®",\n "%Ae": "®",\n "%aE": "®",\n "%AE": "®",\n "%af": "¯",\n "%Af": "¯",\n "%aF": "¯",\n "%AF": "¯",\n "%b0": "°",\n "%B0": "°",\n "%b1": "±",\n "%B1": "±",\n "%b2": "²",\n "%B2": "²",\n "%b3": "³",\n "%B3": "³",\n "%b4": "´",\n "%B4": "´",\n "%b5": "µ",\n "%B5": "µ",\n "%b6": "¶",\n "%B6": "¶",\n "%b7": "·",\n "%B7": "·",\n "%b8": "¸",\n "%B8": "¸",\n "%b9": "¹",\n "%B9": "¹",\n "%ba": "º",\n "%Ba": "º",\n "%bA": "º",\n "%BA": "º",\n "%bb": "»",\n "%Bb": "»",\n "%bB": "»",\n "%BB": "»",\n "%bc": "¼",\n "%Bc": "¼",\n "%bC": "¼",\n "%BC": "¼",\n "%bd": "½",\n "%Bd": "½",\n "%bD": "½",\n "%BD": "½",\n "%be": "¾",\n "%Be": "¾",\n "%bE": "¾",\n "%BE": "¾",\n "%bf": "¿",\n "%Bf": "¿",\n "%bF": "¿",\n "%BF": "¿",\n "%c0": "À",\n "%C0": "À",\n "%c1": "Á",\n "%C1": "Á",\n "%c2": "Â",\n "%C2": "Â",\n "%c3": "Ã",\n "%C3": "Ã",\n "%c4": "Ä",\n "%C4": "Ä",\n "%c5": "Å",\n "%C5": "Å",\n "%c6": "Æ",\n "%C6": "Æ",\n "%c7": "Ç",\n "%C7": "Ç",\n "%c8": "È",\n "%C8": "È",\n "%c9": "É",\n "%C9": "É",\n "%ca": "Ê",\n "%Ca": "Ê",\n "%cA": "Ê",\n "%CA": "Ê",\n "%cb": "Ë",\n "%Cb": "Ë",\n "%cB": "Ë",\n "%CB": "Ë",\n "%cc": "Ì",\n "%Cc": "Ì",\n "%cC": "Ì",\n "%CC": "Ì",\n "%cd": "Í",\n "%Cd": "Í",\n "%cD": "Í",\n "%CD": "Í",\n "%ce": "Î",\n "%Ce": "Î",\n "%cE": "Î",\n "%CE": "Î",\n "%cf": "Ï",\n "%Cf": "Ï",\n "%cF": "Ï",\n "%CF": "Ï",\n "%d0": "Ð",\n "%D0": "Ð",\n "%d1": "Ñ",\n "%D1": "Ñ",\n "%d2": "Ò",\n "%D2": "Ò",\n "%d3": "Ó",\n "%D3": "Ó",\n "%d4": "Ô",\n "%D4": "Ô",\n "%d5": "Õ",\n "%D5": "Õ",\n "%d6": "Ö",\n "%D6": "Ö",\n "%d7": "×",\n "%D7": "×",\n "%d8": "Ø",\n "%D8": "Ø",\n "%d9": "Ù",\n "%D9": "Ù",\n "%da": "Ú",\n "%Da": "Ú",\n "%dA": "Ú",\n "%DA": "Ú",\n "%db": "Û",\n "%Db": "Û",\n "%dB": "Û",\n "%DB": "Û",\n "%dc": "Ü",\n "%Dc": "Ü",\n "%dC": "Ü",\n "%DC": "Ü",\n "%dd": "Ý",\n "%Dd": "Ý",\n "%dD": "Ý",\n "%DD": "Ý",\n "%de": "Þ",\n "%De": "Þ",\n "%dE": "Þ",\n "%DE": "Þ",\n "%df": "ß",\n "%Df": "ß",\n "%dF": "ß",\n "%DF": "ß",\n "%e0": "à",\n "%E0": "à",\n "%e1": "á",\n "%E1": "á",\n "%e2": "â",\n "%E2": "â",\n "%e3": "ã",\n "%E3": "ã",\n "%e4": "ä",\n "%E4": "ä",\n "%e5": "å",\n "%E5": "å",\n "%e6": "æ",\n "%E6": "æ",\n "%e7": "ç",\n "%E7": "ç",\n "%e8": "è",\n "%E8": "è",\n "%e9": "é",\n "%E9": "é",\n "%ea": "ê",\n "%Ea": "ê",\n "%eA": "ê",\n "%EA": "ê",\n "%eb": "ë",\n "%Eb": "ë",\n "%eB": "ë",\n "%EB": "ë",\n "%ec": "ì",\n "%Ec": "ì",\n "%eC": "ì",\n "%EC": "ì",\n "%ed": "í",\n "%Ed": "í",\n "%eD": "í",\n "%ED": "í",\n "%ee": "î",\n "%Ee": "î",\n "%eE": "î",\n "%EE": "î",\n "%ef": "ï",\n "%Ef": "ï",\n "%eF": "ï",\n "%EF": "ï",\n "%f0": "ð",\n "%F0": "ð",\n "%f1": "ñ",\n "%F1": "ñ",\n "%f2": "ò",\n "%F2": "ò",\n "%f3": "ó",\n "%F3": "ó",\n "%f4": "ô",\n "%F4": "ô",\n "%f5": "õ",\n "%F5": "õ",\n "%f6": "ö",\n "%F6": "ö",\n "%f7": "÷",\n "%F7": "÷",\n "%f8": "ø",\n "%F8": "ø",\n "%f9": "ù",\n "%F9": "ù",\n "%fa": "ú",\n "%Fa": "ú",\n "%fA": "ú",\n "%FA": "ú",\n "%fb": "û",\n "%Fb": "û",\n "%fB": "û",\n "%FB": "û",\n "%fc": "ü",\n "%Fc": "ü",\n "%fC": "ü",\n "%FC": "ü",\n "%fd": "ý",\n "%Fd": "ý",\n "%fD": "ý",\n "%FD": "ý",\n "%fe": "þ",\n "%Fe": "þ",\n "%fE": "þ",\n "%FE": "þ",\n "%ff": "ÿ",\n "%Ff": "ÿ",\n "%fF": "ÿ",\n "%FF": "ÿ"\n };\n function encodedReplacer(match) {\n return EncodedLookup[match];\n }\n var STATE_KEY = 0;\n var STATE_VALUE = 1;\n var STATE_CHARSET = 2;\n var STATE_LANG = 3;\n function parseParams(str) {\n const res = [];\n let state = STATE_KEY;\n let charset = "";\n let inquote = false;\n let escaping = false;\n let p = 0;\n let tmp = "";\n const len = str.length;\n for (var i = 0;i < len; ++i) {\n const char = str[i];\n if (char === "\\\\" && inquote) {\n if (escaping) {\n escaping = false;\n } else {\n escaping = true;\n continue;\n }\n } else if (char === \'"\') {\n if (!escaping) {\n if (inquote) {\n inquote = false;\n state = STATE_KEY;\n while (i + 1 < len && str[i + 1] !== ";") {\n ++i;\n }\n } else {\n inquote = true;\n }\n continue;\n } else {\n escaping = false;\n }\n } else {\n if (escaping && inquote) {\n tmp += "\\\\";\n }\n escaping = false;\n if ((state === STATE_CHARSET || state === STATE_LANG) && char === "\'") {\n if (state === STATE_CHARSET) {\n state = STATE_LANG;\n charset = tmp.substring(1);\n } else {\n state = STATE_VALUE;\n }\n tmp = "";\n continue;\n } else if (state === STATE_KEY && (char === "*" || char === "=") && res.length) {\n state = char === "*" ? STATE_CHARSET : STATE_VALUE;\n res[p] = [tmp, undefined];\n tmp = "";\n continue;\n } else if (!inquote && char === ";") {\n state = STATE_KEY;\n if (charset) {\n if (tmp.length) {\n tmp = decodeText(tmp.replace(RE_ENCODED, encodedReplacer), "binary", charset);\n }\n charset = "";\n } else if (tmp.length) {\n tmp = decodeText(tmp, "binary", "utf8");\n }\n if (res[p] === undefined) {\n res[p] = tmp;\n } else {\n res[p][1] = tmp;\n }\n tmp = "";\n ++p;\n continue;\n } else if (!inquote && (char === " " || char === "\\t")) {\n continue;\n }\n }\n tmp += char;\n }\n if (charset && tmp.length) {\n tmp = decodeText(tmp.replace(RE_ENCODED, encodedReplacer), "binary", charset);\n } else if (tmp) {\n tmp = decodeText(tmp, "binary", "utf8");\n }\n if (res[p] === undefined) {\n if (tmp) {\n res[p] = tmp;\n }\n } else {\n res[p][1] = tmp;\n }\n return res;\n }\n module.exports = parseParams;\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/node_modules/@fastify/busboy/lib/utils/basename.js\nvar require_basename = __commonJS((exports, module) => {\n module.exports = function basename(path) {\n if (typeof path !== "string") {\n return "";\n }\n for (var i = path.length - 1;i >= 0; --i) {\n switch (path.charCodeAt(i)) {\n case 47:\n case 92:\n path = path.slice(i + 1);\n return path === ".." || path === "." ? "" : path;\n }\n }\n return path === ".." || path === "." ? "" : path;\n };\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/node_modules/@fastify/busboy/lib/types/multipart.js\nvar require_multipart = __commonJS((exports, module) => {\n var { Readable } = __require("node:stream");\n var { inherits } = __require("node:util");\n var Dicer = require_Dicer();\n var parseParams = require_parseParams();\n var decodeText = require_decodeText();\n var basename = require_basename();\n var getLimit = require_getLimit();\n var RE_BOUNDARY = /^boundary$/i;\n var RE_FIELD = /^form-data$/i;\n var RE_CHARSET = /^charset$/i;\n var RE_FILENAME = /^filename$/i;\n var RE_NAME = /^name$/i;\n Multipart.detect = /^multipart\\/form-data/i;\n function Multipart(boy, cfg) {\n let i;\n let len;\n const self2 = this;\n let boundary;\n const limits = cfg.limits;\n const isPartAFile = cfg.isPartAFile || ((fieldName, contentType, fileName) => contentType === "application/octet-stream" || fileName !== undefined);\n const parsedConType = cfg.parsedConType || [];\n const defCharset = cfg.defCharset || "utf8";\n const preservePath = cfg.preservePath;\n const fileOpts = { highWaterMark: cfg.fileHwm };\n for (i = 0, len = parsedConType.length;i < len; ++i) {\n if (Array.isArray(parsedConType[i]) && RE_BOUNDARY.test(parsedConType[i][0])) {\n boundary = parsedConType[i][1];\n break;\n }\n }\n function checkFinished() {\n if (nends === 0 && finished && !boy._done) {\n finished = false;\n self2.end();\n }\n }\n if (typeof boundary !== "string") {\n throw new Error("Multipart: Boundary not found");\n }\n const fieldSizeLimit = getLimit(limits, "fieldSize", 1 * 1024 * 1024);\n const fileSizeLimit = getLimit(limits, "fileSize", Infinity);\n const filesLimit = getLimit(limits, "files", Infinity);\n const fieldsLimit = getLimit(limits, "fields", Infinity);\n const partsLimit = getLimit(limits, "parts", Infinity);\n const headerPairsLimit = getLimit(limits, "headerPairs", 2000);\n const headerSizeLimit = getLimit(limits, "headerSize", 80 * 1024);\n let nfiles = 0;\n let nfields = 0;\n let nends = 0;\n let curFile;\n let curField;\n let finished = false;\n this._needDrain = false;\n this._pause = false;\n this._cb = undefined;\n this._nparts = 0;\n this._boy = boy;\n const parserCfg = {\n boundary,\n maxHeaderPairs: headerPairsLimit,\n maxHeaderSize: headerSizeLimit,\n partHwm: fileOpts.highWaterMark,\n highWaterMark: cfg.highWaterMark\n };\n this.parser = new Dicer(parserCfg);\n this.parser.on("drain", function() {\n self2._needDrain = false;\n if (self2._cb && !self2._pause) {\n const cb = self2._cb;\n self2._cb = undefined;\n cb();\n }\n }).on("part", function onPart(part) {\n if (++self2._nparts > partsLimit) {\n self2.parser.removeListener("part", onPart);\n self2.parser.on("part", skipPart);\n boy.hitPartsLimit = true;\n boy.emit("partsLimit");\n return skipPart(part);\n }\n if (curField) {\n const field = curField;\n field.emit("end");\n field.removeAllListeners("end");\n }\n part.on("header", function(header) {\n let contype;\n let fieldname;\n let parsed;\n let charset;\n let encoding;\n let filename;\n let nsize = 0;\n if (header["content-type"]) {\n parsed = parseParams(header["content-type"][0]);\n if (parsed[0]) {\n contype = parsed[0].toLowerCase();\n for (i = 0, len = parsed.length;i < len; ++i) {\n if (RE_CHARSET.test(parsed[i][0])) {\n charset = parsed[i][1].toLowerCase();\n break;\n }\n }\n }\n }\n if (contype === undefined) {\n contype = "text/plain";\n }\n if (charset === undefined) {\n charset = defCharset;\n }\n if (header["content-disposition"]) {\n parsed = parseParams(header["content-disposition"][0]);\n if (!RE_FIELD.test(parsed[0])) {\n return skipPart(part);\n }\n for (i = 0, len = parsed.length;i < len; ++i) {\n if (RE_NAME.test(parsed[i][0])) {\n fieldname = parsed[i][1];\n } else if (RE_FILENAME.test(parsed[i][0])) {\n filename = parsed[i][1];\n if (!preservePath) {\n filename = basename(filename);\n }\n }\n }\n } else {\n return skipPart(part);\n }\n if (header["content-transfer-encoding"]) {\n encoding = header["content-transfer-encoding"][0].toLowerCase();\n } else {\n encoding = "7bit";\n }\n let onData, onEnd;\n if (isPartAFile(fieldname, contype, filename)) {\n if (nfiles === filesLimit) {\n if (!boy.hitFilesLimit) {\n boy.hitFilesLimit = true;\n boy.emit("filesLimit");\n }\n return skipPart(part);\n }\n ++nfiles;\n if (boy.listenerCount("file") === 0) {\n self2.parser._ignore();\n return;\n }\n ++nends;\n const file = new FileStream(fileOpts);\n curFile = file;\n file.on("end", function() {\n --nends;\n self2._pause = false;\n checkFinished();\n if (self2._cb && !self2._needDrain) {\n const cb = self2._cb;\n self2._cb = undefined;\n cb();\n }\n });\n file._read = function(n) {\n if (!self2._pause) {\n return;\n }\n self2._pause = false;\n if (self2._cb && !self2._needDrain) {\n const cb = self2._cb;\n self2._cb = undefined;\n cb();\n }\n };\n boy.emit("file", fieldname, file, filename, encoding, contype);\n onData = function(data) {\n if ((nsize += data.length) > fileSizeLimit) {\n const extralen = fileSizeLimit - nsize + data.length;\n if (extralen > 0) {\n file.push(data.slice(0, extralen));\n }\n file.truncated = true;\n file.bytesRead = fileSizeLimit;\n part.removeAllListeners("data");\n file.emit("limit");\n return;\n } else if (!file.push(data)) {\n self2._pause = true;\n }\n file.bytesRead = nsize;\n };\n onEnd = function() {\n curFile = undefined;\n file.push(null);\n };\n } else {\n if (nfields === fieldsLimit) {\n if (!boy.hitFieldsLimit) {\n boy.hitFieldsLimit = true;\n boy.emit("fieldsLimit");\n }\n return skipPart(part);\n }\n ++nfields;\n ++nends;\n let buffer = "";\n let truncated = false;\n curField = part;\n onData = function(data) {\n if ((nsize += data.length) > fieldSizeLimit) {\n const extralen = fieldSizeLimit - (nsize - data.length);\n buffer += data.toString("binary", 0, extralen);\n truncated = true;\n part.removeAllListeners("data");\n } else {\n buffer += data.toString("binary");\n }\n };\n onEnd = function() {\n curField = undefined;\n if (buffer.length) {\n buffer = decodeText(buffer, "binary", charset);\n }\n boy.emit("field", fieldname, buffer, false, truncated, encoding, contype);\n --nends;\n checkFinished();\n };\n }\n part._readableState.sync = false;\n part.on("data", onData);\n part.on("end", onEnd);\n }).on("error", function(err) {\n if (curFile) {\n curFile.emit("error", err);\n }\n });\n }).on("error", function(err) {\n boy.emit("error", err);\n }).on("finish", function() {\n finished = true;\n checkFinished();\n });\n }\n Multipart.prototype.write = function(chunk, cb) {\n const r = this.parser.write(chunk);\n if (r && !this._pause) {\n cb();\n } else {\n this._needDrain = !r;\n this._cb = cb;\n }\n };\n Multipart.prototype.end = function() {\n const self2 = this;\n if (self2.parser.writable) {\n self2.parser.end();\n } else if (!self2._boy._done) {\n process.nextTick(function() {\n self2._boy._done = true;\n self2._boy.emit("finish");\n });\n }\n };\n function skipPart(part) {\n part.resume();\n }\n function FileStream(opts) {\n Readable.call(this, opts);\n this.bytesRead = 0;\n this.truncated = false;\n }\n inherits(FileStream, Readable);\n FileStream.prototype._read = function(n) {};\n module.exports = Multipart;\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/node_modules/@fastify/busboy/lib/utils/Decoder.js\nvar require_Decoder = __commonJS((exports, module) => {\n var RE_PLUS = /\\+/g;\n var HEX = [\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 1,\n 1,\n 1,\n 1,\n 1,\n 1,\n 1,\n 1,\n 1,\n 1,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 1,\n 1,\n 1,\n 1,\n 1,\n 1,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 1,\n 1,\n 1,\n 1,\n 1,\n 1,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0,\n 0\n ];\n function Decoder() {\n this.buffer = undefined;\n }\n Decoder.prototype.write = function(str) {\n str = str.replace(RE_PLUS, " ");\n let res = "";\n let i = 0;\n let p = 0;\n const len = str.length;\n for (;i < len; ++i) {\n if (this.buffer !== undefined) {\n if (!HEX[str.charCodeAt(i)]) {\n res += "%" + this.buffer;\n this.buffer = undefined;\n --i;\n } else {\n this.buffer += str[i];\n ++p;\n if (this.buffer.length === 2) {\n res += String.fromCharCode(parseInt(this.buffer, 16));\n this.buffer = undefined;\n }\n }\n } else if (str[i] === "%") {\n if (i > p) {\n res += str.substring(p, i);\n p = i;\n }\n this.buffer = "";\n ++p;\n }\n }\n if (p < len && this.buffer === undefined) {\n res += str.substring(p);\n }\n return res;\n };\n Decoder.prototype.reset = function() {\n this.buffer = undefined;\n };\n module.exports = Decoder;\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/node_modules/@fastify/busboy/lib/types/urlencoded.js\nvar require_urlencoded = __commonJS((exports, module) => {\n var Decoder = require_Decoder();\n var decodeText = require_decodeText();\n var getLimit = require_getLimit();\n var RE_CHARSET = /^charset$/i;\n UrlEncoded.detect = /^application\\/x-www-form-urlencoded/i;\n function UrlEncoded(boy, cfg) {\n const limits = cfg.limits;\n const parsedConType = cfg.parsedConType;\n this.boy = boy;\n this.fieldSizeLimit = getLimit(limits, "fieldSize", 1 * 1024 * 1024);\n this.fieldNameSizeLimit = getLimit(limits, "fieldNameSize", 100);\n this.fieldsLimit = getLimit(limits, "fields", Infinity);\n let charset;\n for (var i = 0, len = parsedConType.length;i < len; ++i) {\n if (Array.isArray(parsedConType[i]) && RE_CHARSET.test(parsedConType[i][0])) {\n charset = parsedConType[i][1].toLowerCase();\n break;\n }\n }\n if (charset === undefined) {\n charset = cfg.defCharset || "utf8";\n }\n this.decoder = new Decoder;\n this.charset = charset;\n this._fields = 0;\n this._state = "key";\n this._checkingBytes = true;\n this._bytesKey = 0;\n this._bytesVal = 0;\n this._key = "";\n this._val = "";\n this._keyTrunc = false;\n this._valTrunc = false;\n this._hitLimit = false;\n }\n UrlEncoded.prototype.write = function(data, cb) {\n if (this._fields === this.fieldsLimit) {\n if (!this.boy.hitFieldsLimit) {\n this.boy.hitFieldsLimit = true;\n this.boy.emit("fieldsLimit");\n }\n return cb();\n }\n let idxeq;\n let idxamp;\n let i;\n let p = 0;\n const len = data.length;\n while (p < len) {\n if (this._state === "key") {\n idxeq = idxamp = undefined;\n for (i = p;i < len; ++i) {\n if (!this._checkingBytes) {\n ++p;\n }\n if (data[i] === 61) {\n idxeq = i;\n break;\n } else if (data[i] === 38) {\n idxamp = i;\n break;\n }\n if (this._checkingBytes && this._bytesKey === this.fieldNameSizeLimit) {\n this._hitLimit = true;\n break;\n } else if (this._checkingBytes) {\n ++this._bytesKey;\n }\n }\n if (idxeq !== undefined) {\n if (idxeq > p) {\n this._key += this.decoder.write(data.toString("binary", p, idxeq));\n }\n this._state = "val";\n this._hitLimit = false;\n this._checkingBytes = true;\n this._val = "";\n this._bytesVal = 0;\n this._valTrunc = false;\n this.decoder.reset();\n p = idxeq + 1;\n } else if (idxamp !== undefined) {\n ++this._fields;\n let key;\n const keyTrunc = this._keyTrunc;\n if (idxamp > p) {\n key = this._key += this.decoder.write(data.toString("binary", p, idxamp));\n } else {\n key = this._key;\n }\n this._hitLimit = false;\n this._checkingBytes = true;\n this._key = "";\n this._bytesKey = 0;\n this._keyTrunc = false;\n this.decoder.reset();\n if (key.length) {\n this.boy.emit("field", decodeText(key, "binary", this.charset), "", keyTrunc, false);\n }\n p = idxamp + 1;\n if (this._fields === this.fieldsLimit) {\n return cb();\n }\n } else if (this._hitLimit) {\n if (i > p) {\n this._key += this.decoder.write(data.toString("binary", p, i));\n }\n p = i;\n if ((this._bytesKey = this._key.length) === this.fieldNameSizeLimit) {\n this._checkingBytes = false;\n this._keyTrunc = true;\n }\n } else {\n if (p < len) {\n this._key += this.decoder.write(data.toString("binary", p));\n }\n p = len;\n }\n } else {\n idxamp = undefined;\n for (i = p;i < len; ++i) {\n if (!this._checkingBytes) {\n ++p;\n }\n if (data[i] === 38) {\n idxamp = i;\n break;\n }\n if (this._checkingBytes && this._bytesVal === this.fieldSizeLimit) {\n this._hitLimit = true;\n break;\n } else if (this._checkingBytes) {\n ++this._bytesVal;\n }\n }\n if (idxamp !== undefined) {\n ++this._fields;\n if (idxamp > p) {\n this._val += this.decoder.write(data.toString("binary", p, idxamp));\n }\n this.boy.emit("field", decodeText(this._key, "binary", this.charset), decodeText(this._val, "binary", this.charset), this._keyTrunc, this._valTrunc);\n this._state = "key";\n this._hitLimit = false;\n this._checkingBytes = true;\n this._key = "";\n this._bytesKey = 0;\n this._keyTrunc = false;\n this.decoder.reset();\n p = idxamp + 1;\n if (this._fields === this.fieldsLimit) {\n return cb();\n }\n } else if (this._hitLimit) {\n if (i > p) {\n this._val += this.decoder.write(data.toString("binary", p, i));\n }\n p = i;\n if (this._val === "" && this.fieldSizeLimit === 0 || (this._bytesVal = this._val.length) === this.fieldSizeLimit) {\n this._checkingBytes = false;\n this._valTrunc = true;\n }\n } else {\n if (p < len) {\n this._val += this.decoder.write(data.toString("binary", p));\n }\n p = len;\n }\n }\n }\n cb();\n };\n UrlEncoded.prototype.end = function() {\n if (this.boy._done) {\n return;\n }\n if (this._state === "key" && this._key.length > 0) {\n this.boy.emit("field", decodeText(this._key, "binary", this.charset), "", this._keyTrunc, false);\n } else if (this._state === "val") {\n this.boy.emit("field", decodeText(this._key, "binary", this.charset), decodeText(this._val, "binary", this.charset), this._keyTrunc, this._valTrunc);\n }\n this.boy._done = true;\n this.boy.emit("finish");\n };\n module.exports = UrlEncoded;\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/node_modules/@fastify/busboy/lib/main.js\nvar require_main = __commonJS((exports, module) => {\n var WritableStream2 = __require("node:stream").Writable;\n var { inherits } = __require("node:util");\n var Dicer = require_Dicer();\n var MultipartParser = require_multipart();\n var UrlencodedParser = require_urlencoded();\n var parseParams = require_parseParams();\n function Busboy(opts) {\n if (!(this instanceof Busboy)) {\n return new Busboy(opts);\n }\n if (typeof opts !== "object") {\n throw new TypeError("Busboy expected an options-Object.");\n }\n if (typeof opts.headers !== "object") {\n throw new TypeError("Busboy expected an options-Object with headers-attribute.");\n }\n if (typeof opts.headers["content-type"] !== "string") {\n throw new TypeError("Missing Content-Type-header.");\n }\n const {\n headers,\n ...streamOptions\n } = opts;\n this.opts = {\n autoDestroy: false,\n ...streamOptions\n };\n WritableStream2.call(this, this.opts);\n this._done = false;\n this._parser = this.getParserByHeaders(headers);\n this._finished = false;\n }\n inherits(Busboy, WritableStream2);\n Busboy.prototype.emit = function(ev) {\n if (ev === "finish") {\n if (!this._done) {\n this._parser?.end();\n return;\n } else if (this._finished) {\n return;\n }\n this._finished = true;\n }\n WritableStream2.prototype.emit.apply(this, arguments);\n };\n Busboy.prototype.getParserByHeaders = function(headers) {\n const parsed = parseParams(headers["content-type"]);\n const cfg = {\n defCharset: this.opts.defCharset,\n fileHwm: this.opts.fileHwm,\n headers,\n highWaterMark: this.opts.highWaterMark,\n isPartAFile: this.opts.isPartAFile,\n limits: this.opts.limits,\n parsedConType: parsed,\n preservePath: this.opts.preservePath\n };\n if (MultipartParser.detect.test(parsed[0])) {\n return new MultipartParser(this, cfg);\n }\n if (UrlencodedParser.detect.test(parsed[0])) {\n return new UrlencodedParser(this, cfg);\n }\n throw new Error("Unsupported Content-Type.");\n };\n Busboy.prototype._write = function(chunk, encoding, cb) {\n this._parser.write(chunk, cb);\n };\n module.exports = Busboy;\n module.exports.default = Busboy;\n module.exports.Busboy = Busboy;\n module.exports.Dicer = Dicer;\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/cjs/utils.js\nvar require_utils = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.fakePromise = undefined;\n exports.getHeadersObj = getHeadersObj;\n exports.defaultHeadersSerializer = defaultHeadersSerializer;\n exports.isArrayBufferView = isArrayBufferView;\n exports.isNodeReadable = isNodeReadable;\n exports.isIterable = isIterable;\n exports.shouldRedirect = shouldRedirect;\n exports.pipeThrough = pipeThrough;\n exports.endStream = endStream;\n exports.safeWrite = safeWrite;\n var node_events_1 = __require("node:events");\n function isHeadersInstance(obj) {\n return obj?.forEach != null;\n }\n function getHeadersObj(headers) {\n if (headers == null || !isHeadersInstance(headers)) {\n return headers;\n }\n if (headers.headersInit && !headers._map && !isHeadersInstance(headers.headersInit)) {\n return headers.headersInit;\n }\n return Object.fromEntries(headers.entries());\n }\n function defaultHeadersSerializer(headers, onContentLength) {\n const headerArray = [];\n headers.forEach((value, key) => {\n if (onContentLength && key === "content-length") {\n onContentLength(value);\n }\n headerArray.push(`${key}: ${value}`);\n });\n return headerArray;\n }\n var promise_helpers_1 = require_cjs();\n Object.defineProperty(exports, "fakePromise", { enumerable: true, get: function() {\n return promise_helpers_1.fakePromise;\n } });\n function isArrayBufferView(obj) {\n return obj != null && obj.buffer != null && obj.byteLength != null && obj.byteOffset != null;\n }\n function isNodeReadable(obj) {\n return obj != null && obj.pipe != null;\n }\n function isIterable(value) {\n return value?.[Symbol.iterator] != null;\n }\n function shouldRedirect(status) {\n return status === 301 || status === 302 || status === 303 || status === 307 || status === 308;\n }\n function pipeThrough({ src, dest, signal, onError }) {\n if (onError) {\n dest.once("error", onError);\n }\n src.once("error", (e) => {\n dest.destroy(e);\n });\n dest.once("close", () => {\n if (!src.destroyed) {\n src.destroy();\n }\n });\n if (signal) {\n let cleanup = function() {\n signalRef.deref()?.removeEventListener("abort", onAbort);\n srcRef.deref()?.removeListener("end", cleanup);\n srcRef.deref()?.removeListener("error", cleanup);\n srcRef.deref()?.removeListener("close", cleanup);\n }, onAbort = function() {\n srcRef.deref()?.destroy(new AbortError);\n cleanup();\n };\n const srcRef = new WeakRef(src);\n const signalRef = new WeakRef(signal);\n signal.addEventListener("abort", onAbort, { once: true });\n src.once("end", cleanup);\n src.once("error", cleanup);\n src.once("close", cleanup);\n }\n src.pipe(dest, { end: true });\n }\n function endStream(stream) {\n return stream.end(null, null, null);\n }\n function safeWrite(chunk, stream) {\n const result = stream.write(chunk);\n if (!result) {\n return (0, node_events_1.once)(stream, "drain");\n }\n }\n\n class AbortError extends Error {\n constructor(message = "The operation was aborted", options = undefined) {\n super(message, options);\n this.name = "AbortError";\n }\n }\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/cjs/ReadableStream.js\nvar require_ReadableStream = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.PonyfillReadableStream = undefined;\n var node_buffer_1 = __require("node:buffer");\n var node_events_1 = __require("node:events");\n var node_stream_1 = __require("node:stream");\n var promises_1 = __require("node:stream/promises");\n var promise_helpers_1 = require_cjs();\n var utils_js_1 = require_utils();\n function createController(desiredSize, readable) {\n let chunks = [];\n let _closed = false;\n let flushed = false;\n return {\n desiredSize,\n enqueue(chunk) {\n const buf = typeof chunk === "string" ? node_buffer_1.Buffer.from(chunk) : chunk;\n if (!flushed) {\n chunks.push(buf);\n } else {\n readable.push(buf);\n }\n },\n close() {\n if (chunks.length > 0) {\n this._flush();\n }\n readable.push(null);\n _closed = true;\n },\n error(error) {\n if (chunks.length > 0) {\n this._flush();\n }\n readable.destroy(error);\n },\n get _closed() {\n return _closed;\n },\n _flush() {\n flushed = true;\n if (chunks.length > 0) {\n const concatenated = chunks.length > 1 ? node_buffer_1.Buffer.concat(chunks) : chunks[0];\n readable.push(concatenated);\n chunks = [];\n }\n }\n };\n }\n function isNodeReadable(obj) {\n return obj?.read != null;\n }\n function isReadableStream(obj) {\n return obj?.getReader != null;\n }\n\n class PonyfillReadableStream {\n readable;\n constructor(underlyingSource) {\n if (underlyingSource instanceof PonyfillReadableStream && underlyingSource.readable != null) {\n this.readable = underlyingSource.readable;\n } else if (isNodeReadable(underlyingSource)) {\n this.readable = underlyingSource;\n } else if (isReadableStream(underlyingSource)) {\n this.readable = node_stream_1.Readable.fromWeb(underlyingSource);\n } else {\n let started = false;\n let ongoing = false;\n const handleStart = (desiredSize) => {\n if (!started) {\n const controller = createController(desiredSize, this.readable);\n started = true;\n return (0, promise_helpers_1.handleMaybePromise)(() => underlyingSource?.start?.(controller), () => {\n controller._flush();\n if (controller._closed) {\n return false;\n }\n return true;\n });\n }\n return true;\n };\n const readImpl = (desiredSize) => {\n return (0, promise_helpers_1.handleMaybePromise)(() => handleStart(desiredSize), (shouldContinue) => {\n if (!shouldContinue) {\n return;\n }\n const controller = createController(desiredSize, this.readable);\n return (0, promise_helpers_1.handleMaybePromise)(() => underlyingSource?.pull?.(controller), () => {\n controller._flush();\n ongoing = false;\n });\n });\n };\n this.readable = new node_stream_1.Readable({\n read(desiredSize) {\n if (ongoing) {\n return;\n }\n ongoing = true;\n return readImpl(desiredSize);\n },\n destroy(err, callback) {\n if (underlyingSource?.cancel) {\n try {\n const res$ = underlyingSource.cancel(err);\n if (res$?.then) {\n return res$.then(() => {\n callback(null);\n }, (err2) => {\n callback(err2);\n });\n }\n } catch (err2) {\n callback(err2);\n return;\n }\n }\n callback(null);\n }\n });\n }\n }\n cancel(reason) {\n this.readable.destroy(reason);\n return (0, node_events_1.once)(this.readable, "close");\n }\n locked = false;\n getReader(_options) {\n const iterator = this.readable[Symbol.asyncIterator]();\n this.locked = true;\n const thisReadable = this.readable;\n return {\n read() {\n return iterator.next();\n },\n releaseLock: () => {\n if (iterator.return) {\n const retResult$ = iterator.return();\n if (retResult$.then) {\n retResult$.then(() => {\n this.locked = false;\n });\n return;\n }\n }\n this.locked = false;\n },\n cancel: (reason) => {\n if (iterator.return) {\n const retResult$ = iterator.return(reason);\n if (retResult$.then) {\n return retResult$.then(() => {\n this.locked = false;\n });\n }\n }\n this.locked = false;\n return (0, utils_js_1.fakePromise)();\n },\n get closed() {\n return Promise.race([\n (0, node_events_1.once)(thisReadable, "end"),\n (0, node_events_1.once)(thisReadable, "error").then((err) => Promise.reject(err))\n ]);\n }\n };\n }\n [Symbol.asyncIterator]() {\n const iterator = this.readable[Symbol.asyncIterator]();\n return {\n [Symbol.asyncIterator]() {\n return this;\n },\n next: () => iterator.next(),\n return: () => {\n if (!this.readable.destroyed) {\n this.readable.destroy();\n }\n return iterator.return?.() || (0, utils_js_1.fakePromise)({ done: true, value: undefined });\n },\n throw: (err) => {\n if (!this.readable.destroyed) {\n this.readable.destroy(err);\n }\n return iterator.throw?.(err) || (0, utils_js_1.fakePromise)({ done: true, value: undefined });\n }\n };\n }\n tee() {\n throw new Error("Not implemented");\n }\n async pipeToWriter(writer) {\n try {\n for await (const chunk of this) {\n await writer.write(chunk);\n }\n await writer.close();\n } catch (err) {\n await writer.abort(err);\n }\n }\n pipeTo(destination) {\n if (isPonyfillWritableStream(destination)) {\n return (0, promises_1.pipeline)(this.readable, destination.writable, {\n end: true\n });\n } else {\n const writer = destination.getWriter();\n return this.pipeToWriter(writer);\n }\n }\n pipeThrough({ writable, readable }) {\n this.pipeTo(writable).catch((err) => {\n this.readable.destroy(err);\n });\n if (isPonyfillReadableStream(readable)) {\n readable.readable.once("error", (err) => this.readable.destroy(err));\n readable.readable.once("finish", () => this.readable.push(null));\n readable.readable.once("close", () => this.readable.push(null));\n }\n return readable;\n }\n static [Symbol.hasInstance](instance) {\n return isReadableStream(instance);\n }\n static from(iterable) {\n return new PonyfillReadableStream(node_stream_1.Readable.from(iterable));\n }\n [Symbol.toStringTag] = "ReadableStream";\n }\n exports.PonyfillReadableStream = PonyfillReadableStream;\n function isPonyfillReadableStream(obj) {\n return obj?.readable != null;\n }\n function isPonyfillWritableStream(obj) {\n return obj?.writable != null;\n }\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/cjs/Blob.js\nvar require_Blob = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.PonyfillBlob = undefined;\n exports.hasBufferMethod = hasBufferMethod;\n exports.hasArrayBufferMethod = hasArrayBufferMethod;\n exports.hasBytesMethod = hasBytesMethod;\n exports.hasTextMethod = hasTextMethod;\n exports.hasSizeProperty = hasSizeProperty;\n exports.hasStreamMethod = hasStreamMethod;\n exports.hasBlobSignature = hasBlobSignature;\n exports.isArrayBuffer = isArrayBuffer;\n var node_buffer_1 = __require("node:buffer");\n var ReadableStream_js_1 = require_ReadableStream();\n var utils_js_1 = require_utils();\n function getBlobPartAsBuffer(blobPart) {\n if (typeof blobPart === "string") {\n return node_buffer_1.Buffer.from(blobPart);\n } else if (node_buffer_1.Buffer.isBuffer(blobPart)) {\n return blobPart;\n } else if ((0, utils_js_1.isArrayBufferView)(blobPart)) {\n return node_buffer_1.Buffer.from(blobPart.buffer, blobPart.byteOffset, blobPart.byteLength);\n } else {\n return node_buffer_1.Buffer.from(blobPart);\n }\n }\n function hasBufferMethod(obj) {\n return obj != null && obj.buffer != null && typeof obj.buffer === "function";\n }\n function hasArrayBufferMethod(obj) {\n return obj != null && obj.arrayBuffer != null && typeof obj.arrayBuffer === "function";\n }\n function hasBytesMethod(obj) {\n return obj != null && obj.bytes != null && typeof obj.bytes === "function";\n }\n function hasTextMethod(obj) {\n return obj != null && obj.text != null && typeof obj.text === "function";\n }\n function hasSizeProperty(obj) {\n return obj != null && typeof obj.size === "number";\n }\n function hasStreamMethod(obj) {\n return obj != null && obj.stream != null && typeof obj.stream === "function";\n }\n function hasBlobSignature(obj) {\n return obj != null && obj[Symbol.toStringTag] === "Blob";\n }\n function isArrayBuffer(obj) {\n return obj != null && obj.byteLength != null && obj.slice != null;\n }\n\n class PonyfillBlob {\n blobParts;\n type;\n encoding;\n _size = null;\n constructor(blobParts = [], options) {\n this.blobParts = blobParts;\n this.type = options?.type || "application/octet-stream";\n this.encoding = options?.encoding || "utf8";\n this._size = options?.size || null;\n if (blobParts.length === 1 && hasBlobSignature(blobParts[0])) {\n return blobParts[0];\n }\n }\n _buffer = null;\n buffer() {\n if (this._buffer) {\n return (0, utils_js_1.fakePromise)(this._buffer);\n }\n if (this.blobParts.length === 1) {\n const blobPart = this.blobParts[0];\n if (hasBufferMethod(blobPart)) {\n return blobPart.buffer().then((buf) => {\n this._buffer = buf;\n return this._buffer;\n });\n }\n if (hasBytesMethod(blobPart)) {\n return blobPart.bytes().then((bytes) => {\n this._buffer = node_buffer_1.Buffer.from(bytes);\n return this._buffer;\n });\n }\n if (hasArrayBufferMethod(blobPart)) {\n return blobPart.arrayBuffer().then((arrayBuf) => {\n this._buffer = node_buffer_1.Buffer.from(arrayBuf, undefined, blobPart.size);\n return this._buffer;\n });\n }\n this._buffer = getBlobPartAsBuffer(blobPart);\n return (0, utils_js_1.fakePromise)(this._buffer);\n }\n const jobs = [];\n const bufferChunks = this.blobParts.map((blobPart, i) => {\n if (hasBufferMethod(blobPart)) {\n jobs.push(blobPart.buffer().then((buf) => {\n bufferChunks[i] = buf;\n }));\n return;\n } else if (hasArrayBufferMethod(blobPart)) {\n jobs.push(blobPart.arrayBuffer().then((arrayBuf) => {\n bufferChunks[i] = node_buffer_1.Buffer.from(arrayBuf, undefined, blobPart.size);\n }));\n return;\n } else if (hasBytesMethod(blobPart)) {\n jobs.push(blobPart.bytes().then((bytes) => {\n bufferChunks[i] = node_buffer_1.Buffer.from(bytes);\n }));\n return;\n } else {\n return getBlobPartAsBuffer(blobPart);\n }\n });\n if (jobs.length > 0) {\n return Promise.all(jobs).then(() => node_buffer_1.Buffer.concat(bufferChunks, this._size || undefined));\n }\n return (0, utils_js_1.fakePromise)(node_buffer_1.Buffer.concat(bufferChunks, this._size || undefined));\n }\n arrayBuffer() {\n if (this._buffer) {\n return (0, utils_js_1.fakePromise)(this._buffer);\n }\n if (this.blobParts.length === 1) {\n if (isArrayBuffer(this.blobParts[0])) {\n return (0, utils_js_1.fakePromise)(this.blobParts[0]);\n }\n if (hasArrayBufferMethod(this.blobParts[0])) {\n return this.blobParts[0].arrayBuffer();\n }\n }\n return this.buffer();\n }\n bytes() {\n if (this._buffer) {\n return (0, utils_js_1.fakePromise)(this._buffer);\n }\n if (this.blobParts.length === 1) {\n if (node_buffer_1.Buffer.isBuffer(this.blobParts[0])) {\n this._buffer = this.blobParts[0];\n return (0, utils_js_1.fakePromise)(this._buffer);\n }\n if (this.blobParts[0] instanceof Uint8Array) {\n this._buffer = node_buffer_1.Buffer.from(this.blobParts[0]);\n return (0, utils_js_1.fakePromise)(this._buffer);\n }\n if (hasBytesMethod(this.blobParts[0])) {\n return this.blobParts[0].bytes();\n }\n if (hasBufferMethod(this.blobParts[0])) {\n return this.blobParts[0].buffer();\n }\n }\n return this.buffer();\n }\n _text = null;\n text() {\n if (this._text) {\n return (0, utils_js_1.fakePromise)(this._text);\n }\n if (this.blobParts.length === 1) {\n const blobPart = this.blobParts[0];\n if (typeof blobPart === "string") {\n this._text = blobPart;\n return (0, utils_js_1.fakePromise)(this._text);\n }\n if (hasTextMethod(blobPart)) {\n return blobPart.text().then((text) => {\n this._text = text;\n return this._text;\n });\n }\n const buf = getBlobPartAsBuffer(blobPart);\n this._text = buf.toString(this.encoding);\n return (0, utils_js_1.fakePromise)(this._text);\n }\n return this.buffer().then((buf) => {\n this._text = buf.toString(this.encoding);\n return this._text;\n });\n }\n _json = null;\n json() {\n if (this._json) {\n return (0, utils_js_1.fakePromise)(this._json);\n }\n return this.text().then((text) => {\n this._json = JSON.parse(text);\n return this._json;\n });\n }\n _formData = null;\n formData() {\n if (this._formData) {\n return (0, utils_js_1.fakePromise)(this._formData);\n }\n throw new Error("Not implemented");\n }\n get size() {\n if (this._size == null) {\n this._size = 0;\n for (const blobPart of this.blobParts) {\n if (typeof blobPart === "string") {\n this._size += node_buffer_1.Buffer.byteLength(blobPart);\n } else if (hasSizeProperty(blobPart)) {\n this._size += blobPart.size;\n } else if ((0, utils_js_1.isArrayBufferView)(blobPart)) {\n this._size += blobPart.byteLength;\n }\n }\n }\n return this._size;\n }\n stream() {\n if (this.blobParts.length === 1) {\n const blobPart = this.blobParts[0];\n if (hasStreamMethod(blobPart)) {\n return blobPart.stream();\n }\n const buf = getBlobPartAsBuffer(blobPart);\n return new ReadableStream_js_1.PonyfillReadableStream({\n start: (controller) => {\n controller.enqueue(buf);\n controller.close();\n }\n });\n }\n if (this._buffer != null) {\n return new ReadableStream_js_1.PonyfillReadableStream({\n start: (controller) => {\n controller.enqueue(this._buffer);\n controller.close();\n }\n });\n }\n let blobPartIterator;\n return new ReadableStream_js_1.PonyfillReadableStream({\n start: (controller) => {\n if (this.blobParts.length === 0) {\n controller.close();\n return;\n }\n blobPartIterator = this.blobParts[Symbol.iterator]();\n },\n pull: (controller) => {\n const { value: blobPart, done } = blobPartIterator.next();\n if (done) {\n controller.close();\n return;\n }\n if (blobPart) {\n if (hasBufferMethod(blobPart)) {\n return blobPart.buffer().then((buf2) => {\n controller.enqueue(buf2);\n });\n }\n if (hasBytesMethod(blobPart)) {\n return blobPart.bytes().then((bytes) => {\n const buf2 = node_buffer_1.Buffer.from(bytes);\n controller.enqueue(buf2);\n });\n }\n if (hasArrayBufferMethod(blobPart)) {\n return blobPart.arrayBuffer().then((arrayBuffer) => {\n const buf2 = node_buffer_1.Buffer.from(arrayBuffer, undefined, blobPart.size);\n controller.enqueue(buf2);\n });\n }\n const buf = getBlobPartAsBuffer(blobPart);\n controller.enqueue(buf);\n }\n }\n });\n }\n slice() {\n throw new Error("Not implemented");\n }\n }\n exports.PonyfillBlob = PonyfillBlob;\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/cjs/File.js\nvar require_File = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.PonyfillFile = undefined;\n var Blob_js_1 = require_Blob();\n\n class PonyfillFile extends Blob_js_1.PonyfillBlob {\n name;\n lastModified;\n constructor(fileBits, name, options) {\n super(fileBits, options);\n this.name = name;\n this.lastModified = options?.lastModified || Date.now();\n }\n webkitRelativePath = "";\n }\n exports.PonyfillFile = PonyfillFile;\n});\n\n// ../../node_modules/tslib/tslib.js\nvar require_tslib = __commonJS((exports, module) => {\n var __extends;\n var __assign;\n var __rest;\n var __decorate;\n var __param;\n var __esDecorate;\n var __runInitializers;\n var __propKey;\n var __setFunctionName;\n var __metadata;\n var __awaiter;\n var __generator;\n var __exportStar;\n var __values;\n var __read;\n var __spread;\n var __spreadArrays;\n var __spreadArray;\n var __await;\n var __asyncGenerator;\n var __asyncDelegator;\n var __asyncValues;\n var __makeTemplateObject;\n var __importStar;\n var __importDefault;\n var __classPrivateFieldGet;\n var __classPrivateFieldSet;\n var __classPrivateFieldIn;\n var __createBinding;\n var __addDisposableResource;\n var __disposeResources;\n var __rewriteRelativeImportExtension;\n (function(factory) {\n var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};\n if (typeof define === "function" && define.amd) {\n define("tslib", ["exports"], function(exports2) {\n factory(createExporter(root, createExporter(exports2)));\n });\n } else if (typeof module === "object" && typeof exports === "object") {\n factory(createExporter(root, createExporter(exports)));\n } else {\n factory(createExporter(root));\n }\n function createExporter(exports2, previous) {\n if (exports2 !== root) {\n if (typeof Object.create === "function") {\n Object.defineProperty(exports2, "__esModule", { value: true });\n } else {\n exports2.__esModule = true;\n }\n }\n return function(id, v) {\n return exports2[id] = previous ? previous(id, v) : v;\n };\n }\n })(function(exporter) {\n var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {\n d.__proto__ = b;\n } || function(d, b) {\n for (var p in b)\n if (Object.prototype.hasOwnProperty.call(b, p))\n d[p] = b[p];\n };\n __extends = function(d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __);\n };\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length;i < n; i++) {\n s = arguments[i];\n for (var p in s)\n if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n __rest = function(s, e) {\n var t = {};\n for (var p in s)\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s);i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };\n __decorate = function(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === "object" && typeof Reflect.decorate === "function")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1;i >= 0; i--)\n if (d = decorators[i])\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };\n __param = function(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n };\n __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) {\n if (f !== undefined && typeof f !== "function")\n throw new TypeError("Function expected");\n return f;\n }\n var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";\n var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1;i >= 0; i--) {\n var context = {};\n for (var p in contextIn)\n context[p] = p === "access" ? {} : contextIn[p];\n for (var p in contextIn.access)\n context.access[p] = contextIn.access[p];\n context.addInitializer = function(f) {\n if (done)\n throw new TypeError("Cannot add initializers after decoration has completed");\n extraInitializers.push(accept(f || null));\n };\n var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === "accessor") {\n if (result === undefined)\n continue;\n if (result === null || typeof result !== "object")\n throw new TypeError("Object expected");\n if (_ = accept(result.get))\n descriptor.get = _;\n if (_ = accept(result.set))\n descriptor.set = _;\n if (_ = accept(result.init))\n initializers.unshift(_);\n } else if (_ = accept(result)) {\n if (kind === "field")\n initializers.unshift(_);\n else\n descriptor[key] = _;\n }\n }\n if (target)\n Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n };\n __runInitializers = function(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0;i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : undefined;\n };\n __propKey = function(x) {\n return typeof x === "symbol" ? x : "".concat(x);\n };\n __setFunctionName = function(f, name, prefix) {\n if (typeof name === "symbol")\n name = name.description ? "[".concat(name.description, "]") : "";\n return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });\n };\n __metadata = function(metadataKey, metadataValue) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function")\n return Reflect.metadata(metadataKey, metadataValue);\n };\n __awaiter = function(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator["throw"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };\n __generator = function(thisArg, body) {\n var _ = { label: 0, sent: function() {\n if (t[0] & 1)\n throw t[1];\n return t[1];\n }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);\n return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {\n return this;\n }), g;\n function verb(n) {\n return function(v) {\n return step([n, v]);\n };\n }\n function step(op) {\n if (f)\n throw new TypeError("Generator is already executing.");\n while (g && (g = 0, op[0] && (_ = 0)), _)\n try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)\n return t;\n if (y = 0, t)\n op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return { value: op[1], done: false };\n case 5:\n _.label++;\n y = op[1];\n op = [0];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2])\n _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [6, e];\n y = 0;\n } finally {\n f = t = 0;\n }\n if (op[0] & 5)\n throw op[1];\n return { value: op[0] ? op[1] : undefined, done: true };\n }\n };\n __exportStar = function(m, o) {\n for (var p in m)\n if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))\n __createBinding(o, m, p);\n };\n __createBinding = Object.create ? function(o, m, k, k2) {\n if (k2 === undefined)\n k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() {\n return m[k];\n } };\n }\n Object.defineProperty(o, k2, desc);\n } : function(o, m, k, k2) {\n if (k2 === undefined)\n k2 = k;\n o[k2] = m[k];\n };\n __values = function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m)\n return m.call(o);\n if (o && typeof o.length === "number")\n return {\n next: function() {\n if (o && i >= o.length)\n o = undefined;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };\n __read = function(o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m)\n return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === undefined || n-- > 0) && !(r = i.next()).done)\n ar.push(r.value);\n } catch (error) {\n e = { error };\n } finally {\n try {\n if (r && !r.done && (m = i["return"]))\n m.call(i);\n } finally {\n if (e)\n throw e.error;\n }\n }\n return ar;\n };\n __spread = function() {\n for (var ar = [], i = 0;i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n };\n __spreadArrays = function() {\n for (var s = 0, i = 0, il = arguments.length;i < il; i++)\n s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0;i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length;j < jl; j++, k++)\n r[k] = a[j];\n return r;\n };\n __spreadArray = function(to, from, pack) {\n if (pack || arguments.length === 2)\n for (var i = 0, l = from.length, ar;i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar)\n ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };\n __await = function(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n };\n __asyncGenerator = function(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator)\n throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function() {\n return this;\n }, i;\n function awaitReturn(f) {\n return function(v) {\n return Promise.resolve(v).then(f, reject);\n };\n }\n function verb(n, f) {\n if (g[n]) {\n i[n] = function(v) {\n return new Promise(function(a, b) {\n q.push([n, v, a, b]) > 1 || resume(n, v);\n });\n };\n if (f)\n i[n] = f(i[n]);\n }\n }\n function resume(n, v) {\n try {\n step(g[n](v));\n } catch (e) {\n settle(q[0][3], e);\n }\n }\n function step(r) {\n r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);\n }\n function fulfill(value) {\n resume("next", value);\n }\n function reject(value) {\n resume("throw", value);\n }\n function settle(f, v) {\n if (f(v), q.shift(), q.length)\n resume(q[0][0], q[0][1]);\n }\n };\n __asyncDelegator = function(o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function(e) {\n throw e;\n }), verb("return"), i[Symbol.iterator] = function() {\n return this;\n }, i;\n function verb(n, f) {\n i[n] = o[n] ? function(v) {\n return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v;\n } : f;\n }\n };\n __asyncValues = function(o) {\n if (!Symbol.asyncIterator)\n throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {\n return this;\n }, i);\n function verb(n) {\n i[n] = o[n] && function(v) {\n return new Promise(function(resolve, reject) {\n v = o[n](v), settle(resolve, reject, v.done, v.value);\n });\n };\n }\n function settle(resolve, reject, d, v) {\n Promise.resolve(v).then(function(v2) {\n resolve({ value: v2, done: d });\n }, reject);\n }\n };\n __makeTemplateObject = function(cooked, raw) {\n if (Object.defineProperty) {\n Object.defineProperty(cooked, "raw", { value: raw });\n } else {\n cooked.raw = raw;\n }\n return cooked;\n };\n var __setModuleDefault = Object.create ? function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n } : function(o, v) {\n o["default"] = v;\n };\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function(o2) {\n var ar = [];\n for (var k in o2)\n if (Object.prototype.hasOwnProperty.call(o2, k))\n ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n __importStar = function(mod) {\n if (mod && mod.__esModule)\n return mod;\n var result = {};\n if (mod != null) {\n for (var k = ownKeys(mod), i = 0;i < k.length; i++)\n if (k[i] !== "default")\n __createBinding(result, mod, k[i]);\n }\n __setModuleDefault(result, mod);\n return result;\n };\n __importDefault = function(mod) {\n return mod && mod.__esModule ? mod : { default: mod };\n };\n __classPrivateFieldGet = function(receiver, state, kind, f) {\n if (kind === "a" && !f)\n throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))\n throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };\n __classPrivateFieldSet = function(receiver, state, value, kind, f) {\n if (kind === "m")\n throw new TypeError("Private method is not writable");\n if (kind === "a" && !f)\n throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))\n throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;\n };\n __classPrivateFieldIn = function(state, receiver) {\n if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function")\n throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };\n __addDisposableResource = function(env, value, async) {\n if (value !== null && value !== undefined) {\n if (typeof value !== "object" && typeof value !== "function")\n throw new TypeError("Object expected.");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose)\n throw new TypeError("Symbol.asyncDispose is not defined.");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === undefined) {\n if (!Symbol.dispose)\n throw new TypeError("Symbol.dispose is not defined.");\n dispose = value[Symbol.dispose];\n if (async)\n inner = dispose;\n }\n if (typeof dispose !== "function")\n throw new TypeError("Object not disposable.");\n if (inner)\n dispose = function() {\n try {\n inner.call(this);\n } catch (e) {\n return Promise.reject(e);\n }\n };\n env.stack.push({ value, dispose, async });\n } else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n };\n var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {\n var e = new Error(message);\n return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;\n };\n __disposeResources = function(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1)\n return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async)\n return s |= 2, Promise.resolve(result).then(next, function(e) {\n fail(e);\n return next();\n });\n } else\n s |= 1;\n } catch (e) {\n fail(e);\n }\n }\n if (s === 1)\n return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError)\n throw env.error;\n }\n return next();\n };\n __rewriteRelativeImportExtension = function(path, preserveJsx) {\n if (typeof path === "string" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : d + ext + "." + cm.toLowerCase() + "js";\n });\n }\n return path;\n };\n exporter("__extends", __extends);\n exporter("__assign", __assign);\n exporter("__rest", __rest);\n exporter("__decorate", __decorate);\n exporter("__param", __param);\n exporter("__esDecorate", __esDecorate);\n exporter("__runInitializers", __runInitializers);\n exporter("__propKey", __propKey);\n exporter("__setFunctionName", __setFunctionName);\n exporter("__metadata", __metadata);\n exporter("__awaiter", __awaiter);\n exporter("__generator", __generator);\n exporter("__exportStar", __exportStar);\n exporter("__createBinding", __createBinding);\n exporter("__values", __values);\n exporter("__read", __read);\n exporter("__spread", __spread);\n exporter("__spreadArrays", __spreadArrays);\n exporter("__spreadArray", __spreadArray);\n exporter("__await", __await);\n exporter("__asyncGenerator", __asyncGenerator);\n exporter("__asyncDelegator", __asyncDelegator);\n exporter("__asyncValues", __asyncValues);\n exporter("__makeTemplateObject", __makeTemplateObject);\n exporter("__importStar", __importStar);\n exporter("__importDefault", __importDefault);\n exporter("__classPrivateFieldGet", __classPrivateFieldGet);\n exporter("__classPrivateFieldSet", __classPrivateFieldSet);\n exporter("__classPrivateFieldIn", __classPrivateFieldIn);\n exporter("__addDisposableResource", __addDisposableResource);\n exporter("__disposeResources", __disposeResources);\n exporter("__rewriteRelativeImportExtension", __rewriteRelativeImportExtension);\n });\n});\n\n// ../../node_modules/@whatwg-node/disposablestack/cjs/SupressedError.js\nvar require_SupressedError = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.PonyfillSuppressedError = undefined;\n\n class PonyfillSuppressedError2 extends Error {\n error;\n suppressed;\n constructor(error, suppressed, message) {\n super(message);\n this.error = error;\n this.suppressed = suppressed;\n this.name = "SuppressedError";\n Error.captureStackTrace(this, this.constructor);\n }\n }\n exports.PonyfillSuppressedError = PonyfillSuppressedError2;\n});\n\n// ../../node_modules/@whatwg-node/disposablestack/cjs/symbols.js\nvar require_symbols = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.DisposableSymbols = undefined;\n exports.patchSymbols = patchSymbols;\n exports.DisposableSymbols = {\n get dispose() {\n return Symbol.dispose || Symbol.for("dispose");\n },\n get asyncDispose() {\n return Symbol.asyncDispose || Symbol.for("asyncDispose");\n }\n };\n function patchSymbols() {\n Symbol.dispose ||= Symbol.for("dispose");\n Symbol.asyncDispose ||= Symbol.for("asyncDispose");\n }\n});\n\n// ../../node_modules/@whatwg-node/disposablestack/cjs/utils.js\nvar require_utils2 = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.isSyncDisposable = isSyncDisposable2;\n exports.isAsyncDisposable = isAsyncDisposable2;\n var symbols_js_1 = require_symbols();\n function isSyncDisposable2(obj) {\n return obj?.[symbols_js_1.DisposableSymbols.dispose] != null;\n }\n function isAsyncDisposable2(obj) {\n return obj?.[symbols_js_1.DisposableSymbols.asyncDispose] != null;\n }\n});\n\n// ../../node_modules/@whatwg-node/disposablestack/cjs/AsyncDisposableStack.js\nvar require_AsyncDisposableStack = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.PonyfillAsyncDisposableStack = undefined;\n var promise_helpers_1 = require_cjs();\n var SupressedError_js_1 = require_SupressedError();\n var symbols_js_1 = require_symbols();\n var utils_js_1 = require_utils2();\n var SuppressedError5 = globalThis.SuppressedError || SupressedError_js_1.PonyfillSuppressedError;\n\n class PonyfillAsyncDisposableStack2 {\n callbacks = [];\n get disposed() {\n return this.callbacks.length === 0;\n }\n use(value) {\n if ((0, utils_js_1.isAsyncDisposable)(value)) {\n this.callbacks.push(() => value[symbols_js_1.DisposableSymbols.asyncDispose]());\n } else if ((0, utils_js_1.isSyncDisposable)(value)) {\n this.callbacks.push(() => value[symbols_js_1.DisposableSymbols.dispose]());\n }\n return value;\n }\n adopt(value, onDisposeAsync) {\n if (onDisposeAsync) {\n this.callbacks.push(() => onDisposeAsync(value));\n }\n return value;\n }\n defer(onDisposeAsync) {\n if (onDisposeAsync) {\n this.callbacks.push(onDisposeAsync);\n }\n }\n move() {\n const stack = new PonyfillAsyncDisposableStack2;\n stack.callbacks = this.callbacks;\n this.callbacks = [];\n return stack;\n }\n disposeAsync() {\n return this[symbols_js_1.DisposableSymbols.asyncDispose]();\n }\n _error;\n _iterateCallbacks() {\n const cb = this.callbacks.pop();\n if (cb) {\n return (0, promise_helpers_1.handleMaybePromise)(cb, () => this._iterateCallbacks(), (error) => {\n this._error = this._error ? new SuppressedError5(error, this._error) : error;\n return this._iterateCallbacks();\n });\n }\n }\n [symbols_js_1.DisposableSymbols.asyncDispose]() {\n const res$ = this._iterateCallbacks();\n if (res$?.then) {\n return res$.then(() => {\n if (this._error) {\n const error = this._error;\n this._error = undefined;\n throw error;\n }\n });\n }\n if (this._error) {\n const error = this._error;\n this._error = undefined;\n throw error;\n }\n return;\n }\n [Symbol.toStringTag] = "AsyncDisposableStack";\n }\n exports.PonyfillAsyncDisposableStack = PonyfillAsyncDisposableStack2;\n});\n\n// ../../node_modules/@whatwg-node/disposablestack/cjs/DisposableStack.js\nvar require_DisposableStack = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.PonyfillDisposableStack = undefined;\n var SupressedError_js_1 = require_SupressedError();\n var symbols_js_1 = require_symbols();\n var utils_js_1 = require_utils2();\n var SuppressedError5 = globalThis.SuppressedError || SupressedError_js_1.PonyfillSuppressedError;\n\n class PonyfillDisposableStack2 {\n callbacks = [];\n get disposed() {\n return this.callbacks.length === 0;\n }\n use(value) {\n if ((0, utils_js_1.isSyncDisposable)(value)) {\n this.callbacks.push(() => value[symbols_js_1.DisposableSymbols.dispose]());\n }\n return value;\n }\n adopt(value, onDispose) {\n if (onDispose) {\n this.callbacks.push(() => onDispose(value));\n }\n return value;\n }\n defer(onDispose) {\n if (onDispose) {\n this.callbacks.push(onDispose);\n }\n }\n move() {\n const stack = new PonyfillDisposableStack2;\n stack.callbacks = this.callbacks;\n this.callbacks = [];\n return stack;\n }\n dispose() {\n return this[symbols_js_1.DisposableSymbols.dispose]();\n }\n _error;\n _iterateCallbacks() {\n const cb = this.callbacks.pop();\n if (cb) {\n try {\n cb();\n } catch (error) {\n this._error = this._error ? new SuppressedError5(error, this._error) : error;\n }\n return this._iterateCallbacks();\n }\n }\n [symbols_js_1.DisposableSymbols.dispose]() {\n this._iterateCallbacks();\n if (this._error) {\n const error = this._error;\n this._error = undefined;\n throw error;\n }\n }\n [Symbol.toStringTag] = "DisposableStack";\n }\n exports.PonyfillDisposableStack = PonyfillDisposableStack2;\n});\n\n// ../../node_modules/@whatwg-node/disposablestack/cjs/index.js\nvar require_cjs2 = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.SuppressedError = exports.AsyncDisposableStack = exports.DisposableStack = undefined;\n var tslib_1 = require_tslib();\n var AsyncDisposableStack_js_1 = require_AsyncDisposableStack();\n var DisposableStack_js_1 = require_DisposableStack();\n var SupressedError_js_1 = require_SupressedError();\n exports.DisposableStack = globalThis.DisposableStack || DisposableStack_js_1.PonyfillDisposableStack;\n exports.AsyncDisposableStack = globalThis.AsyncDisposableStack || AsyncDisposableStack_js_1.PonyfillAsyncDisposableStack;\n exports.SuppressedError = globalThis.SuppressedError || SupressedError_js_1.PonyfillSuppressedError;\n tslib_1.__exportStar(require_symbols(), exports);\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/cjs/IteratorObject.js\nvar require_IteratorObject = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.PonyfillIteratorObject = undefined;\n var node_util_1 = __require("node:util");\n var disposablestack_1 = require_cjs2();\n var utils_js_1 = require_utils();\n\n class PonyfillIteratorObject {\n iterableIterator;\n [Symbol.toStringTag] = "IteratorObject";\n constructor(iterableIterator, className) {\n this.iterableIterator = iterableIterator;\n this[Symbol.toStringTag] = className;\n }\n *map(callbackfn) {\n let index = 0;\n for (const value of this.iterableIterator) {\n yield callbackfn(value, index++);\n }\n return;\n }\n *filter(callbackfn) {\n let index = 0;\n for (const value of this.iterableIterator) {\n if (callbackfn(value, index++)) {\n yield value;\n }\n }\n return;\n }\n reduce(callbackfn, initialValue) {\n let index = 0;\n let accumulator = initialValue;\n for (const value of this.iterableIterator) {\n accumulator = callbackfn(accumulator, value, index++);\n }\n return accumulator;\n }\n forEach(callbackfn) {\n let index = 0;\n for (const value of this.iterableIterator) {\n callbackfn(value, index++);\n }\n }\n *take(limit) {\n let index = 0;\n for (const value of this.iterableIterator) {\n if (index >= limit) {\n break;\n }\n yield value;\n index++;\n }\n return;\n }\n *drop(count) {\n let index = 0;\n for (const value of this.iterableIterator) {\n if (index >= count) {\n yield value;\n }\n index++;\n }\n return;\n }\n *flatMap(callback) {\n let index = 0;\n for (const value of this.iterableIterator) {\n const iteratorOrIterable = callback(value, index++);\n if ((0, utils_js_1.isIterable)(iteratorOrIterable)) {\n for (const innerValue of iteratorOrIterable) {\n yield innerValue;\n }\n } else {\n for (const innerValue of {\n [Symbol.iterator]: () => iteratorOrIterable\n }) {\n yield innerValue;\n }\n }\n }\n return;\n }\n some(predicate) {\n let index = 0;\n for (const value of this.iterableIterator) {\n if (predicate(value, index++)) {\n return true;\n }\n }\n return false;\n }\n every(predicate) {\n let index = 0;\n for (const value of this.iterableIterator) {\n if (!predicate(value, index++)) {\n return false;\n }\n }\n return true;\n }\n find(predicate) {\n let index = 0;\n for (const value of this.iterableIterator) {\n if (predicate(value, index++)) {\n return value;\n }\n }\n return;\n }\n toArray() {\n return Array.from(this.iterableIterator);\n }\n [disposablestack_1.DisposableSymbols.dispose]() {\n this.iterableIterator.return?.();\n }\n next(...[value]) {\n return this.iterableIterator.next(value);\n }\n [Symbol.iterator]() {\n return this;\n }\n [Symbol.for("nodejs.util.inspect.custom")]() {\n const record = {};\n this.forEach((value, key) => {\n const inspectedValue = (0, node_util_1.inspect)(value);\n record[key] = inspectedValue.includes(",") ? inspectedValue.split(",").map((el) => el.trim()) : inspectedValue;\n });\n return `${this[Symbol.toStringTag]} ${(0, node_util_1.inspect)(record)}`;\n }\n }\n exports.PonyfillIteratorObject = PonyfillIteratorObject;\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/cjs/FormData.js\nvar require_FormData = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.PonyfillFormData = undefined;\n exports.getStreamFromFormData = getStreamFromFormData;\n var node_buffer_1 = __require("node:buffer");\n var IteratorObject_js_1 = require_IteratorObject();\n var ReadableStream_js_1 = require_ReadableStream();\n\n class PonyfillFormData {\n map = new Map;\n append(name, value, fileName) {\n let values = this.map.get(name);\n if (!values) {\n values = [];\n this.map.set(name, values);\n }\n const entry = isBlob(value) ? getNormalizedFile(name, value, fileName) : value;\n values.push(entry);\n }\n delete(name) {\n this.map.delete(name);\n }\n get(name) {\n const values = this.map.get(name);\n return values ? values[0] : null;\n }\n getAll(name) {\n return this.map.get(name) || [];\n }\n has(name) {\n return this.map.has(name);\n }\n set(name, value, fileName) {\n const entry = isBlob(value) ? getNormalizedFile(name, value, fileName) : value;\n this.map.set(name, [entry]);\n }\n [Symbol.iterator]() {\n return this._entries();\n }\n *_entries() {\n for (const [key, values] of this.map) {\n for (const value of values) {\n yield [key, value];\n }\n }\n }\n entries() {\n return new IteratorObject_js_1.PonyfillIteratorObject(this._entries(), "FormDataIterator");\n }\n _keys() {\n return this.map.keys();\n }\n keys() {\n return new IteratorObject_js_1.PonyfillIteratorObject(this._keys(), "FormDataIterator");\n }\n *_values() {\n for (const values of this.map.values()) {\n for (const value of values) {\n yield value;\n }\n }\n }\n values() {\n return new IteratorObject_js_1.PonyfillIteratorObject(this._values(), "FormDataIterator");\n }\n forEach(callback) {\n for (const [key, value] of this) {\n callback(value, key, this);\n }\n }\n }\n exports.PonyfillFormData = PonyfillFormData;\n function getStreamFromFormData(formData, boundary = "---") {\n let entriesIterator;\n let sentInitialHeader = false;\n let currentAsyncIterator;\n let hasBefore = false;\n function handleNextEntry(controller) {\n const { done, value } = entriesIterator.next();\n if (done) {\n controller.enqueue(node_buffer_1.Buffer.from(`\\r\n--${boundary}--\\r\n`));\n return controller.close();\n }\n if (hasBefore) {\n controller.enqueue(node_buffer_1.Buffer.from(`\\r\n--${boundary}\\r\n`));\n }\n if (value) {\n const [key, blobOrString] = value;\n if (typeof blobOrString === "string") {\n controller.enqueue(node_buffer_1.Buffer.from(`Content-Disposition: form-data; name="${key}"\\r\n\\r\n`));\n controller.enqueue(node_buffer_1.Buffer.from(blobOrString));\n } else {\n let filenamePart = "";\n if (blobOrString.name) {\n filenamePart = `; filename="${blobOrString.name}"`;\n }\n controller.enqueue(node_buffer_1.Buffer.from(`Content-Disposition: form-data; name="${key}"${filenamePart}\\r\n`));\n controller.enqueue(node_buffer_1.Buffer.from(`Content-Type: ${blobOrString.type || "application/octet-stream"}\\r\n\\r\n`));\n const entryStream = blobOrString.stream();\n currentAsyncIterator = entryStream[Symbol.asyncIterator]();\n }\n hasBefore = true;\n }\n }\n return new ReadableStream_js_1.PonyfillReadableStream({\n start: () => {\n entriesIterator = formData.entries();\n },\n pull: (controller) => {\n if (!sentInitialHeader) {\n sentInitialHeader = true;\n return controller.enqueue(node_buffer_1.Buffer.from(`--${boundary}\\r\n`));\n }\n if (currentAsyncIterator) {\n return currentAsyncIterator.next().then(({ done, value }) => {\n if (done) {\n currentAsyncIterator = undefined;\n }\n if (value) {\n return controller.enqueue(value);\n } else {\n return handleNextEntry(controller);\n }\n });\n }\n return handleNextEntry(controller);\n },\n cancel: (err) => {\n entriesIterator?.return?.(err);\n currentAsyncIterator?.return?.(err);\n }\n });\n }\n function getNormalizedFile(name, blob, fileName) {\n Object.defineProperty(blob, "name", {\n configurable: true,\n enumerable: true,\n value: fileName || blob.name || name\n });\n return blob;\n }\n function isBlob(value) {\n return value?.arrayBuffer != null;\n }\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/cjs/Body.js\nvar require_Body = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.PonyfillBody = undefined;\n var node_buffer_1 = __require("node:buffer");\n var node_stream_1 = __require("node:stream");\n var busboy_1 = require_main();\n var promise_helpers_1 = require_cjs();\n var Blob_js_1 = require_Blob();\n var File_js_1 = require_File();\n var FormData_js_1 = require_FormData();\n var ReadableStream_js_1 = require_ReadableStream();\n var utils_js_1 = require_utils();\n var BodyInitType;\n (function(BodyInitType2) {\n BodyInitType2["ReadableStream"] = "ReadableStream";\n BodyInitType2["Blob"] = "Blob";\n BodyInitType2["FormData"] = "FormData";\n BodyInitType2["String"] = "String";\n BodyInitType2["Readable"] = "Readable";\n BodyInitType2["Buffer"] = "Buffer";\n BodyInitType2["AsyncIterable"] = "AsyncIterable";\n })(BodyInitType || (BodyInitType = {}));\n\n class PonyfillBody {\n bodyInit;\n options;\n bodyUsed = false;\n contentType = null;\n contentLength = null;\n constructor(bodyInit, options = {}) {\n this.bodyInit = bodyInit;\n this.options = options;\n const { bodyFactory, contentType, contentLength, bodyType, buffer } = processBodyInit(bodyInit);\n this._bodyFactory = bodyFactory;\n this.contentType = contentType;\n this.contentLength = contentLength;\n this.bodyType = bodyType;\n this._buffer = buffer;\n this._signal = options.signal;\n }\n bodyType;\n _bodyFactory = () => null;\n _generatedBody = null;\n _buffer;\n _signal;\n generateBody() {\n if (this._generatedBody?.readable?.destroyed && this._buffer) {\n this._generatedBody.readable = node_stream_1.Readable.from(this._buffer);\n }\n if (this._generatedBody) {\n return this._generatedBody;\n }\n const body = this._bodyFactory();\n this._generatedBody = body;\n return body;\n }\n handleContentLengthHeader(forceSet = false) {\n const contentTypeInHeaders = this.headers.get("content-type");\n if (!contentTypeInHeaders) {\n if (this.contentType) {\n this.headers.set("content-type", this.contentType);\n }\n } else {\n this.contentType = contentTypeInHeaders;\n }\n const contentLengthInHeaders = this.headers.get("content-length");\n if (forceSet && this.bodyInit == null && !contentLengthInHeaders) {\n this.contentLength = 0;\n this.headers.set("content-length", "0");\n }\n if (!contentLengthInHeaders) {\n if (this.contentLength) {\n this.headers.set("content-length", this.contentLength.toString());\n }\n } else {\n this.contentLength = parseInt(contentLengthInHeaders, 10);\n }\n }\n get body() {\n const _body = this.generateBody();\n if (_body != null) {\n const ponyfillReadableStream = _body;\n const readable = _body.readable;\n return new Proxy(_body.readable, {\n get(_, prop) {\n if (prop in ponyfillReadableStream) {\n const ponyfillReadableStreamProp = ponyfillReadableStream[prop];\n if (typeof ponyfillReadableStreamProp === "function") {\n return ponyfillReadableStreamProp.bind(ponyfillReadableStream);\n }\n return ponyfillReadableStreamProp;\n }\n if (prop in readable) {\n const readableProp = readable[prop];\n if (typeof readableProp === "function") {\n return readableProp.bind(readable);\n }\n return readableProp;\n }\n }\n });\n }\n return null;\n }\n _chunks = null;\n _doCollectChunksFromReadableJob() {\n if (this.bodyType === BodyInitType.AsyncIterable) {\n if (Array.fromAsync) {\n return (0, promise_helpers_1.handleMaybePromise)(() => Array.fromAsync(this.bodyInit), (chunks3) => {\n this._chunks = chunks3;\n return this._chunks;\n });\n }\n const iterator = this.bodyInit[Symbol.asyncIterator]();\n const chunks2 = [];\n const collectValue = () => (0, promise_helpers_1.handleMaybePromise)(() => iterator.next(), ({ value, done }) => {\n if (value) {\n chunks2.push(value);\n }\n if (!done) {\n return collectValue();\n }\n this._chunks = chunks2;\n return this._chunks;\n });\n return collectValue();\n }\n const _body = this.generateBody();\n if (!_body) {\n this._chunks = [];\n return (0, utils_js_1.fakePromise)(this._chunks);\n }\n if (_body.readable.destroyed) {\n return (0, utils_js_1.fakePromise)(this._chunks = []);\n }\n const chunks = [];\n return new Promise((resolve, reject) => {\n _body.readable.on("data", (chunk) => {\n chunks.push(chunk);\n });\n _body.readable.once("error", reject);\n _body.readable.once("end", () => {\n resolve(this._chunks = chunks);\n });\n });\n }\n _collectChunksFromReadable() {\n if (this._chunks) {\n return (0, utils_js_1.fakePromise)(this._chunks);\n }\n this._chunks ||= this._doCollectChunksFromReadableJob();\n return this._chunks;\n }\n _blob = null;\n blob() {\n if (this._blob) {\n return (0, utils_js_1.fakePromise)(this._blob);\n }\n if (this.bodyType === BodyInitType.String) {\n this._text = this.bodyInit;\n this._blob = new Blob_js_1.PonyfillBlob([this._text], {\n type: this.contentType || "text/plain;charset=UTF-8",\n size: this.contentLength\n });\n }\n if (this.bodyType === BodyInitType.Blob) {\n this._blob = this.bodyInit;\n return (0, utils_js_1.fakePromise)(this._blob);\n }\n if (this._buffer) {\n this._blob = new Blob_js_1.PonyfillBlob([this._buffer], {\n type: this.contentType || "",\n size: this.contentLength\n });\n return (0, utils_js_1.fakePromise)(this._blob);\n }\n return (0, utils_js_1.fakePromise)((0, promise_helpers_1.handleMaybePromise)(() => this._collectChunksFromReadable(), (chunks) => {\n this._blob = new Blob_js_1.PonyfillBlob(chunks, {\n type: this.contentType || "",\n size: this.contentLength\n });\n return this._blob;\n }));\n }\n _formData = null;\n formData(opts) {\n if (this._formData) {\n return (0, utils_js_1.fakePromise)(this._formData);\n }\n if (this.bodyType === BodyInitType.FormData) {\n this._formData = this.bodyInit;\n return (0, utils_js_1.fakePromise)(this._formData);\n }\n this._formData = new FormData_js_1.PonyfillFormData;\n const _body = this.generateBody();\n if (_body == null) {\n return (0, utils_js_1.fakePromise)(this._formData);\n }\n const formDataLimits = {\n ...this.options.formDataLimits,\n ...opts?.formDataLimits\n };\n return new Promise((resolve, reject) => {\n const stream = this.body?.readable;\n if (!stream) {\n return reject(new Error("No stream available"));\n }\n let currFile = null;\n const bb = new busboy_1.Busboy({\n headers: {\n "content-length": typeof this.contentLength === "number" ? this.contentLength.toString() : this.contentLength || "",\n "content-type": this.contentType || ""\n },\n limits: formDataLimits,\n defCharset: "utf-8"\n });\n if (this._signal) {\n (0, node_stream_1.addAbortSignal)(this._signal, bb);\n }\n let completed = false;\n const complete = (err) => {\n if (completed)\n return;\n completed = true;\n stream.unpipe(bb);\n bb.destroy();\n if (currFile) {\n currFile.destroy();\n currFile = null;\n }\n if (err) {\n reject(err);\n } else {\n resolve(this._formData);\n }\n };\n stream.on("error", complete);\n bb.on("field", (name, value, fieldnameTruncated, valueTruncated) => {\n if (fieldnameTruncated) {\n return complete(new Error(`Field name size exceeded: ${formDataLimits?.fieldNameSize} bytes`));\n }\n if (valueTruncated) {\n return complete(new Error(`Field value size exceeded: ${formDataLimits?.fieldSize} bytes`));\n }\n this._formData.set(name, value);\n });\n bb.on("file", (name, fileStream, filename, _transferEncoding, mimeType) => {\n currFile = fileStream;\n const chunks = [];\n fileStream.on("data", (chunk) => {\n chunks.push(chunk);\n });\n fileStream.on("error", complete);\n fileStream.on("limit", () => {\n complete(new Error(`File size limit exceeded: ${formDataLimits?.fileSize} bytes`));\n });\n fileStream.on("close", () => {\n if (fileStream.truncated) {\n complete(new Error(`File size limit exceeded: ${formDataLimits?.fileSize} bytes`));\n }\n currFile = null;\n const file = new File_js_1.PonyfillFile(chunks, filename, { type: mimeType });\n this._formData.set(name, file);\n });\n });\n bb.on("fieldsLimit", () => {\n complete(new Error(`Fields limit exceeded: ${formDataLimits?.fields}`));\n });\n bb.on("filesLimit", () => {\n complete(new Error(`Files limit exceeded: ${formDataLimits?.files}`));\n });\n bb.on("partsLimit", () => {\n complete(new Error(`Parts limit exceeded: ${formDataLimits?.parts}`));\n });\n bb.on("end", complete);\n bb.on("finish", complete);\n bb.on("close", complete);\n bb.on("error", complete);\n stream.pipe(bb);\n });\n }\n buffer() {\n if (this._buffer) {\n return (0, utils_js_1.fakePromise)(this._buffer);\n }\n if (this._text) {\n this._buffer = node_buffer_1.Buffer.from(this._text, "utf-8");\n return (0, utils_js_1.fakePromise)(this._buffer);\n }\n if (this.bodyType === BodyInitType.String) {\n return this.text().then((text) => {\n this._text = text;\n this._buffer = node_buffer_1.Buffer.from(text, "utf-8");\n return this._buffer;\n });\n }\n if (this.bodyType === BodyInitType.Blob) {\n if ((0, Blob_js_1.hasBufferMethod)(this.bodyInit)) {\n return this.bodyInit.buffer().then((buf) => {\n this._buffer = buf;\n return this._buffer;\n });\n }\n if ((0, Blob_js_1.hasBytesMethod)(this.bodyInit)) {\n return this.bodyInit.bytes().then((bytes) => {\n this._buffer = node_buffer_1.Buffer.from(bytes);\n return this._buffer;\n });\n }\n if ((0, Blob_js_1.hasArrayBufferMethod)(this.bodyInit)) {\n return this.bodyInit.arrayBuffer().then((buf) => {\n this._buffer = node_buffer_1.Buffer.from(buf, undefined, buf.byteLength);\n return this._buffer;\n });\n }\n }\n return (0, utils_js_1.fakePromise)((0, promise_helpers_1.handleMaybePromise)(() => this._collectChunksFromReadable(), (chunks) => {\n if (chunks.length === 1) {\n this._buffer = chunks[0];\n return this._buffer;\n }\n this._buffer = node_buffer_1.Buffer.concat(chunks);\n return this._buffer;\n }));\n }\n bytes() {\n return this.buffer();\n }\n arrayBuffer() {\n return this.buffer();\n }\n _json = null;\n json() {\n if (this._json) {\n return (0, utils_js_1.fakePromise)(this._json);\n }\n return this.text().then((text) => {\n try {\n this._json = JSON.parse(text);\n } catch (e) {\n if (e instanceof SyntaxError) {\n e.message += `, "${text}" is not valid JSON`;\n }\n throw e;\n }\n return this._json;\n });\n }\n _text = null;\n text() {\n if (this._text) {\n return (0, utils_js_1.fakePromise)(this._text);\n }\n if (this.bodyType === BodyInitType.String) {\n this._text = this.bodyInit;\n return (0, utils_js_1.fakePromise)(this._text);\n }\n return this.buffer().then((buffer) => {\n this._text = buffer.toString("utf-8");\n return this._text;\n });\n }\n }\n exports.PonyfillBody = PonyfillBody;\n function processBodyInit(bodyInit) {\n if (bodyInit == null) {\n return {\n bodyFactory: () => null,\n contentType: null,\n contentLength: null\n };\n }\n if (typeof bodyInit === "string") {\n const contentLength = node_buffer_1.Buffer.byteLength(bodyInit);\n return {\n bodyType: BodyInitType.String,\n contentType: "text/plain;charset=UTF-8",\n contentLength,\n bodyFactory() {\n const readable = node_stream_1.Readable.from(node_buffer_1.Buffer.from(bodyInit, "utf-8"));\n return new ReadableStream_js_1.PonyfillReadableStream(readable);\n }\n };\n }\n if (node_buffer_1.Buffer.isBuffer(bodyInit)) {\n const buffer = bodyInit;\n return {\n bodyType: BodyInitType.Buffer,\n contentType: null,\n contentLength: bodyInit.length,\n buffer: bodyInit,\n bodyFactory() {\n const readable = node_stream_1.Readable.from(buffer);\n const body = new ReadableStream_js_1.PonyfillReadableStream(readable);\n return body;\n }\n };\n }\n if ((0, utils_js_1.isArrayBufferView)(bodyInit)) {\n const buffer = node_buffer_1.Buffer.from(bodyInit.buffer, bodyInit.byteOffset, bodyInit.byteLength);\n return {\n bodyType: BodyInitType.Buffer,\n contentLength: bodyInit.byteLength,\n contentType: null,\n buffer,\n bodyFactory() {\n const readable = node_stream_1.Readable.from(buffer);\n const body = new ReadableStream_js_1.PonyfillReadableStream(readable);\n return body;\n }\n };\n }\n if (bodyInit instanceof ReadableStream_js_1.PonyfillReadableStream && bodyInit.readable != null) {\n const readableStream = bodyInit;\n return {\n bodyType: BodyInitType.ReadableStream,\n bodyFactory: () => readableStream,\n contentType: null,\n contentLength: null\n };\n }\n if (isBlob(bodyInit)) {\n const blob = bodyInit;\n return {\n bodyType: BodyInitType.Blob,\n contentType: bodyInit.type,\n contentLength: bodyInit.size,\n bodyFactory() {\n return blob.stream();\n }\n };\n }\n if (bodyInit instanceof ArrayBuffer) {\n const contentLength = bodyInit.byteLength;\n const buffer = node_buffer_1.Buffer.from(bodyInit, undefined, bodyInit.byteLength);\n return {\n bodyType: BodyInitType.Buffer,\n contentType: null,\n contentLength,\n buffer,\n bodyFactory() {\n const readable = node_stream_1.Readable.from(buffer);\n const body = new ReadableStream_js_1.PonyfillReadableStream(readable);\n return body;\n }\n };\n }\n if (bodyInit instanceof node_stream_1.Readable) {\n return {\n bodyType: BodyInitType.Readable,\n contentType: null,\n contentLength: null,\n bodyFactory() {\n const body = new ReadableStream_js_1.PonyfillReadableStream(bodyInit);\n return body;\n }\n };\n }\n if (isURLSearchParams(bodyInit)) {\n const contentType = "application/x-www-form-urlencoded;charset=UTF-8";\n return {\n bodyType: BodyInitType.String,\n contentType,\n contentLength: null,\n bodyFactory() {\n const body = new ReadableStream_js_1.PonyfillReadableStream(node_stream_1.Readable.from(bodyInit.toString()));\n return body;\n }\n };\n }\n if (isFormData(bodyInit)) {\n const boundary = Math.random().toString(36).substr(2);\n const contentType = `multipart/form-data; boundary=${boundary}`;\n return {\n bodyType: BodyInitType.FormData,\n contentType,\n contentLength: null,\n bodyFactory() {\n return (0, FormData_js_1.getStreamFromFormData)(bodyInit, boundary);\n }\n };\n }\n if (isReadableStream(bodyInit)) {\n return {\n contentType: null,\n contentLength: null,\n bodyFactory() {\n return new ReadableStream_js_1.PonyfillReadableStream(bodyInit);\n }\n };\n }\n if (bodyInit[Symbol.iterator] || bodyInit[Symbol.asyncIterator]) {\n return {\n contentType: null,\n contentLength: null,\n bodyType: BodyInitType.AsyncIterable,\n bodyFactory() {\n const readable = node_stream_1.Readable.from(bodyInit);\n return new ReadableStream_js_1.PonyfillReadableStream(readable);\n }\n };\n }\n throw new Error("Unknown body type");\n }\n function isFormData(value) {\n return value?.forEach != null;\n }\n function isBlob(value) {\n return value?.stream != null && typeof value.stream === "function";\n }\n function isURLSearchParams(value) {\n return value?.sort != null;\n }\n function isReadableStream(value) {\n return value?.getReader != null;\n }\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/cjs/Headers.js\nvar require_Headers = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.PonyfillHeaders = undefined;\n exports.isHeadersLike = isHeadersLike;\n var node_util_1 = __require("node:util");\n var IteratorObject_js_1 = require_IteratorObject();\n function isHeadersLike(headers) {\n return headers?.get && headers?.forEach;\n }\n\n class PonyfillHeaders {\n headersInit;\n _map;\n objectNormalizedKeysOfHeadersInit = [];\n objectOriginalKeysOfHeadersInit = [];\n _setCookies;\n constructor(headersInit) {\n this.headersInit = headersInit;\n }\n _get(key) {\n const normalized = key.toLowerCase();\n if (normalized === "set-cookie" && this._setCookies?.length) {\n return this._setCookies.join(", ");\n }\n if (this._map) {\n return this._map.get(normalized) || null;\n }\n if (this.headersInit == null) {\n return null;\n }\n if (Array.isArray(this.headersInit)) {\n const found = this.headersInit.filter(([headerKey]) => headerKey.toLowerCase() === normalized);\n if (found.length === 0) {\n return null;\n }\n if (found.length === 1) {\n return found[0][1];\n }\n return found.map(([, value]) => value).join(", ");\n } else if (isHeadersLike(this.headersInit)) {\n return this.headersInit.get(normalized);\n } else {\n const initValue = this.headersInit[key] || this.headersInit[normalized];\n if (initValue != null) {\n return initValue;\n }\n if (!this.objectNormalizedKeysOfHeadersInit.length) {\n Object.keys(this.headersInit).forEach((k) => {\n this.objectOriginalKeysOfHeadersInit.push(k);\n this.objectNormalizedKeysOfHeadersInit.push(k.toLowerCase());\n });\n }\n const index = this.objectNormalizedKeysOfHeadersInit.indexOf(normalized);\n if (index === -1) {\n return null;\n }\n const originalKey = this.objectOriginalKeysOfHeadersInit[index];\n return this.headersInit[originalKey];\n }\n }\n getMap() {\n if (!this._map) {\n this._setCookies ||= [];\n if (this.headersInit != null) {\n if (Array.isArray(this.headersInit)) {\n this._map = new Map;\n for (const [key, value] of this.headersInit) {\n const normalizedKey = key.toLowerCase();\n if (normalizedKey === "set-cookie") {\n this._setCookies.push(value);\n continue;\n }\n this._map.set(normalizedKey, value);\n }\n } else if (isHeadersLike(this.headersInit)) {\n this._map = new Map;\n this.headersInit.forEach((value, key) => {\n if (key === "set-cookie") {\n this._setCookies ||= [];\n this._setCookies.push(value);\n return;\n }\n this._map.set(key, value);\n });\n } else {\n this._map = new Map;\n for (const initKey in this.headersInit) {\n const initValue = this.headersInit[initKey];\n if (initValue != null) {\n const normalizedKey = initKey.toLowerCase();\n if (normalizedKey === "set-cookie") {\n this._setCookies ||= [];\n this._setCookies.push(initValue);\n continue;\n }\n this._map.set(normalizedKey, initValue);\n }\n }\n }\n } else {\n this._map = new Map;\n }\n }\n return this._map;\n }\n append(name, value) {\n const key = name.toLowerCase();\n if (key === "set-cookie") {\n this._setCookies ||= [];\n this._setCookies.push(value);\n return;\n }\n const existingValue = this.getMap().get(key);\n const finalValue = existingValue ? `${existingValue}, ${value}` : value;\n this.getMap().set(key, finalValue);\n }\n get(name) {\n const value = this._get(name);\n if (value == null) {\n return null;\n }\n return value.toString();\n }\n has(name) {\n const key = name.toLowerCase();\n if (key === "set-cookie") {\n return !!this._setCookies?.length;\n }\n return !!this._get(name);\n }\n set(name, value) {\n const key = name.toLowerCase();\n if (key === "set-cookie") {\n this._setCookies = [value];\n return;\n }\n if (!this._map && this.headersInit != null) {\n if (Array.isArray(this.headersInit)) {\n const found = this.headersInit.find(([headerKey]) => headerKey.toLowerCase() === key);\n if (found) {\n found[1] = value;\n } else {\n this.headersInit.push([key, value]);\n }\n return;\n } else if (isHeadersLike(this.headersInit)) {\n this.headersInit.set(key, value);\n return;\n } else {\n this.headersInit[key] = value;\n return;\n }\n }\n this.getMap().set(key, value);\n }\n delete(name) {\n const key = name.toLowerCase();\n if (key === "set-cookie") {\n this._setCookies = [];\n return;\n }\n this.getMap().delete(key);\n }\n forEach(callback) {\n this._setCookies?.forEach((setCookie) => {\n callback(setCookie, "set-cookie", this);\n });\n if (!this._map) {\n if (this.headersInit) {\n if (Array.isArray(this.headersInit)) {\n this.headersInit.forEach(([key, value]) => {\n callback(value, key, this);\n });\n return;\n }\n if (isHeadersLike(this.headersInit)) {\n this.headersInit.forEach(callback);\n return;\n }\n Object.entries(this.headersInit).forEach(([key, value]) => {\n if (value != null) {\n callback(value, key, this);\n }\n });\n }\n return;\n }\n this.getMap().forEach((value, key) => {\n callback(value, key, this);\n });\n }\n *_keys() {\n if (this._setCookies?.length) {\n yield "set-cookie";\n }\n if (!this._map) {\n if (this.headersInit) {\n if (Array.isArray(this.headersInit)) {\n yield* this.headersInit.map(([key]) => key)[Symbol.iterator]();\n return;\n }\n if (isHeadersLike(this.headersInit)) {\n yield* this.headersInit.keys();\n return;\n }\n yield* Object.keys(this.headersInit)[Symbol.iterator]();\n return;\n }\n }\n yield* this.getMap().keys();\n }\n keys() {\n return new IteratorObject_js_1.PonyfillIteratorObject(this._keys(), "HeadersIterator");\n }\n *_values() {\n if (this._setCookies?.length) {\n yield* this._setCookies;\n }\n if (!this._map) {\n if (this.headersInit) {\n if (Array.isArray(this.headersInit)) {\n yield* this.headersInit.map(([, value]) => value)[Symbol.iterator]();\n return;\n }\n if (isHeadersLike(this.headersInit)) {\n yield* this.headersInit.values();\n return;\n }\n yield* Object.values(this.headersInit)[Symbol.iterator]();\n return;\n }\n }\n yield* this.getMap().values();\n }\n values() {\n return new IteratorObject_js_1.PonyfillIteratorObject(this._values(), "HeadersIterator");\n }\n *_entries() {\n if (this._setCookies?.length) {\n yield* this._setCookies.map((cookie) => ["set-cookie", cookie]);\n }\n if (!this._map) {\n if (this.headersInit) {\n if (Array.isArray(this.headersInit)) {\n yield* this.headersInit;\n return;\n }\n if (isHeadersLike(this.headersInit)) {\n yield* this.headersInit.entries();\n return;\n }\n yield* Object.entries(this.headersInit);\n return;\n }\n }\n yield* this.getMap().entries();\n }\n entries() {\n return new IteratorObject_js_1.PonyfillIteratorObject(this._entries(), "HeadersIterator");\n }\n getSetCookie() {\n if (!this._setCookies) {\n this.getMap();\n }\n return this._setCookies;\n }\n [Symbol.iterator]() {\n return this.entries();\n }\n [Symbol.for("nodejs.util.inspect.custom")]() {\n const record = {};\n this.forEach((value, key) => {\n if (key === "set-cookie") {\n record["set-cookie"] = this._setCookies || [];\n } else {\n record[key] = value?.includes(",") ? value.split(",").map((el) => el.trim()) : value;\n }\n });\n return `Headers ${(0, node_util_1.inspect)(record)}`;\n }\n }\n exports.PonyfillHeaders = PonyfillHeaders;\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/cjs/Response.js\nvar require_Response = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.PonyfillResponse = undefined;\n var node_http_1 = __require("node:http");\n var Body_js_1 = require_Body();\n var Headers_js_1 = require_Headers();\n var JSON_CONTENT_TYPE = "application/json; charset=utf-8";\n\n class PonyfillResponse extends Body_js_1.PonyfillBody {\n headers;\n constructor(body, init) {\n super(body || null, init);\n this.headers = init?.headers && (0, Headers_js_1.isHeadersLike)(init.headers) ? init.headers : new Headers_js_1.PonyfillHeaders(init?.headers);\n this.status = init?.status || 200;\n this.statusText = init?.statusText || node_http_1.STATUS_CODES[this.status] || "OK";\n this.url = init?.url || "";\n this.redirected = init?.redirected || false;\n this.type = init?.type || "default";\n this.handleContentLengthHeader();\n }\n get ok() {\n return this.status >= 200 && this.status < 300;\n }\n status;\n statusText;\n url;\n redirected;\n type;\n clone() {\n return this;\n }\n static error() {\n return new PonyfillResponse(null, {\n status: 500,\n statusText: "Internal Server Error"\n });\n }\n static redirect(url, status = 302) {\n if (status < 300 || status > 399) {\n throw new RangeError("Invalid status code");\n }\n return new PonyfillResponse(null, {\n headers: {\n location: url\n },\n status\n });\n }\n static json(data, init) {\n const bodyInit = JSON.stringify(data);\n if (!init) {\n init = {\n headers: {\n "content-type": JSON_CONTENT_TYPE,\n "content-length": Buffer.byteLength(bodyInit).toString()\n }\n };\n } else if (!init.headers) {\n init.headers = {\n "content-type": JSON_CONTENT_TYPE,\n "content-length": Buffer.byteLength(bodyInit).toString()\n };\n } else if ((0, Headers_js_1.isHeadersLike)(init.headers)) {\n if (!init.headers.has("content-type")) {\n init.headers.set("content-type", JSON_CONTENT_TYPE);\n }\n if (!init.headers.has("content-length")) {\n init.headers.set("content-length", Buffer.byteLength(bodyInit).toString());\n }\n } else if (Array.isArray(init.headers)) {\n let contentTypeExists = false;\n let contentLengthExists = false;\n for (const [key] of init.headers) {\n if (contentLengthExists && contentTypeExists) {\n break;\n }\n if (!contentTypeExists && key.toLowerCase() === "content-type") {\n contentTypeExists = true;\n } else if (!contentLengthExists && key.toLowerCase() === "content-length") {\n contentLengthExists = true;\n }\n }\n if (!contentTypeExists) {\n init.headers.push(["content-type", JSON_CONTENT_TYPE]);\n }\n if (!contentLengthExists) {\n init.headers.push(["content-length", Buffer.byteLength(bodyInit).toString()]);\n }\n } else if (typeof init.headers === "object") {\n if (init.headers?.["content-type"] == null) {\n init.headers["content-type"] = JSON_CONTENT_TYPE;\n }\n if (init.headers?.["content-length"] == null) {\n init.headers["content-length"] = Buffer.byteLength(bodyInit).toString();\n }\n }\n return new PonyfillResponse(bodyInit, init);\n }\n [Symbol.toStringTag] = "Response";\n }\n exports.PonyfillResponse = PonyfillResponse;\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/cjs/fetchCurl.js\nvar require_fetchCurl = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.fetchCurl = fetchCurl;\n var node_stream_1 = __require("node:stream");\n var node_tls_1 = __require("node:tls");\n var promise_helpers_1 = require_cjs();\n var Response_js_1 = require_Response();\n var utils_js_1 = require_utils();\n function fetchCurl(fetchRequest) {\n const { Curl, CurlFeature, CurlPause, CurlProgressFunc } = globalThis["libcurl"];\n const curlHandle = new Curl;\n curlHandle.enable(CurlFeature.NoDataParsing);\n curlHandle.setOpt("URL", fetchRequest.url);\n if (process.env.NODE_TLS_REJECT_UNAUTHORIZED === "0") {\n curlHandle.setOpt("SSL_VERIFYPEER", false);\n }\n if (process.env.NODE_EXTRA_CA_CERTS) {\n curlHandle.setOpt("CAINFO", process.env.NODE_EXTRA_CA_CERTS);\n } else {\n curlHandle.setOpt("CAINFO_BLOB", node_tls_1.rootCertificates.join(`\n`));\n }\n curlHandle.enable(CurlFeature.StreamResponse);\n let signal;\n if (fetchRequest._signal === null) {\n signal = undefined;\n } else if (fetchRequest._signal) {\n signal = fetchRequest._signal;\n }\n curlHandle.setStreamProgressCallback(function() {\n return signal?.aborted ? process.env.DEBUG ? CurlProgressFunc.Continue : 1 : 0;\n });\n if (fetchRequest["bodyType"] === "String") {\n curlHandle.setOpt("POSTFIELDS", fetchRequest["bodyInit"]);\n } else {\n const nodeReadable = fetchRequest.body != null ? (0, utils_js_1.isNodeReadable)(fetchRequest.body) ? fetchRequest.body : node_stream_1.Readable.from(fetchRequest.body) : null;\n if (nodeReadable) {\n curlHandle.setOpt("UPLOAD", true);\n curlHandle.setUploadStream(nodeReadable);\n }\n }\n if (process.env.DEBUG) {\n curlHandle.setOpt("VERBOSE", true);\n }\n curlHandle.setOpt("TRANSFER_ENCODING", false);\n curlHandle.setOpt("HTTP_TRANSFER_DECODING", true);\n curlHandle.setOpt("FOLLOWLOCATION", fetchRequest.redirect === "follow");\n curlHandle.setOpt("MAXREDIRS", 20);\n curlHandle.setOpt("ACCEPT_ENCODING", "");\n curlHandle.setOpt("CUSTOMREQUEST", fetchRequest.method);\n const headersSerializer = fetchRequest.headersSerializer || utils_js_1.defaultHeadersSerializer;\n let size;\n const curlHeaders = headersSerializer(fetchRequest.headers, (value) => {\n size = Number(value);\n });\n if (size != null) {\n curlHandle.setOpt("INFILESIZE", size);\n }\n curlHandle.setOpt("HTTPHEADER", curlHeaders);\n curlHandle.enable(CurlFeature.NoHeaderParsing);\n const deferredPromise = (0, promise_helpers_1.createDeferredPromise)();\n let streamResolved;\n function onAbort() {\n if (curlHandle.isOpen) {\n try {\n curlHandle.pause(CurlPause.Recv);\n } catch (e) {\n deferredPromise.reject(e);\n }\n }\n }\n signal?.addEventListener("abort", onAbort, { once: true });\n curlHandle.once("end", function endListener() {\n try {\n curlHandle.close();\n } catch (e) {\n deferredPromise.reject(e);\n }\n signal?.removeEventListener("abort", onAbort);\n });\n curlHandle.once("error", function errorListener(error) {\n if (streamResolved && !streamResolved.closed && !streamResolved.destroyed) {\n streamResolved.destroy(error);\n } else {\n if (error.message === "Operation was aborted by an application callback") {\n error.message = "The operation was aborted.";\n }\n deferredPromise.reject(error);\n }\n try {\n curlHandle.close();\n } catch (e) {\n deferredPromise.reject(e);\n }\n });\n curlHandle.once("stream", function streamListener(stream, status, headersBuf) {\n const outputStream = stream.pipe(new node_stream_1.PassThrough, {\n end: true\n });\n const headersFlat = headersBuf.toString("utf8").split(/\\r?\\n|\\r/g).filter((headerFilter) => {\n if (headerFilter && !headerFilter.startsWith("HTTP/")) {\n if (fetchRequest.redirect === "error" && headerFilter.toLowerCase().includes("location") && (0, utils_js_1.shouldRedirect)(status)) {\n if (!stream.destroyed) {\n stream.resume();\n }\n outputStream.destroy();\n deferredPromise.reject(new Error("redirect is not allowed"));\n }\n return true;\n }\n return false;\n });\n const headersInit = headersFlat.map((headerFlat) => headerFlat.split(/:\\s(.+)/).slice(0, 2));\n const ponyfillResponse = new Response_js_1.PonyfillResponse(outputStream, {\n status,\n headers: headersInit,\n url: curlHandle.getInfo(Curl.info.REDIRECT_URL)?.toString() || fetchRequest.url,\n redirected: Number(curlHandle.getInfo(Curl.info.REDIRECT_COUNT)) > 0\n });\n deferredPromise.resolve(ponyfillResponse);\n streamResolved = outputStream;\n });\n setImmediate(() => {\n curlHandle.perform();\n });\n return deferredPromise.promise;\n }\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/cjs/URL.js\nvar require_URL = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.PonyfillURL = undefined;\n var tslib_1 = require_tslib();\n var node_buffer_1 = tslib_1.__importDefault(__require("node:buffer"));\n var node_crypto_1 = __require("node:crypto");\n var NativeURL = globalThis.URL;\n\n class URL2 extends NativeURL {\n static blobRegistry = new Map;\n static createObjectURL(blob) {\n const blobUrl = `blob:whatwgnode:${(0, node_crypto_1.randomUUID)()}`;\n this.blobRegistry.set(blobUrl, blob);\n return blobUrl;\n }\n static revokeObjectURL(url) {\n if (!this.blobRegistry.has(url)) {\n NativeURL.revokeObjectURL(url);\n } else {\n this.blobRegistry.delete(url);\n }\n }\n static getBlobFromURL(url) {\n return this.blobRegistry.get(url) || node_buffer_1.default?.resolveObjectURL?.(url);\n }\n }\n exports.PonyfillURL = URL2;\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/cjs/Request.js\nvar require_Request = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.PonyfillRequest = undefined;\n var node_http_1 = __require("node:http");\n var node_https_1 = __require("node:https");\n var Body_js_1 = require_Body();\n var Headers_js_1 = require_Headers();\n var URL_js_1 = require_URL();\n function isRequest(input) {\n return input[Symbol.toStringTag] === "Request";\n }\n function isURL(obj) {\n return obj?.href != null;\n }\n\n class PonyfillRequest extends Body_js_1.PonyfillBody {\n constructor(input, options) {\n let _url;\n let _parsedUrl;\n let bodyInit = null;\n let requestInit;\n if (typeof input === "string") {\n _url = input;\n } else if (isURL(input)) {\n _parsedUrl = input;\n } else if (isRequest(input)) {\n if (input._parsedUrl) {\n _parsedUrl = input._parsedUrl;\n } else if (input._url) {\n _url = input._url;\n } else {\n _url = input.url;\n }\n bodyInit = input.body;\n requestInit = input;\n }\n if (options != null) {\n bodyInit = options.body || null;\n requestInit = options;\n }\n super(bodyInit, requestInit);\n this._url = _url;\n this._parsedUrl = _parsedUrl;\n this.cache = requestInit?.cache || "default";\n this.credentials = requestInit?.credentials || "same-origin";\n this.headers = requestInit?.headers && (0, Headers_js_1.isHeadersLike)(requestInit.headers) ? requestInit.headers : new Headers_js_1.PonyfillHeaders(requestInit?.headers);\n this.integrity = requestInit?.integrity || "";\n this.keepalive = requestInit?.keepalive != null ? requestInit?.keepalive : false;\n this.method = requestInit?.method?.toUpperCase() || "GET";\n this.mode = requestInit?.mode || "cors";\n this.redirect = requestInit?.redirect || "follow";\n this.referrer = requestInit?.referrer || "about:client";\n this.referrerPolicy = requestInit?.referrerPolicy || "no-referrer";\n this.headersSerializer = requestInit?.headersSerializer;\n this.duplex = requestInit?.duplex || "half";\n this.destination = "document";\n this.priority = "auto";\n if (this.method !== "GET" && this.method !== "HEAD") {\n this.handleContentLengthHeader(true);\n }\n if (requestInit?.agent != null) {\n const protocol = _parsedUrl?.protocol || _url || this.url;\n if (requestInit.agent === false) {\n this.agent = false;\n } else if (protocol.startsWith("http:") && requestInit.agent instanceof node_http_1.Agent) {\n this.agent = requestInit.agent;\n } else if (protocol.startsWith("https:") && requestInit.agent instanceof node_https_1.Agent) {\n this.agent = requestInit.agent;\n }\n }\n }\n headersSerializer;\n cache;\n credentials;\n destination;\n headers;\n integrity;\n keepalive;\n method;\n mode;\n priority;\n redirect;\n referrer;\n referrerPolicy;\n _url;\n get signal() {\n this._signal ||= new AbortController().signal;\n return this._signal;\n }\n get url() {\n if (this._url == null) {\n if (this._parsedUrl) {\n this._url = this._parsedUrl.toString();\n } else {\n throw new TypeError("Invalid URL");\n }\n }\n return this._url;\n }\n _parsedUrl;\n get parsedUrl() {\n if (this._parsedUrl == null) {\n if (this._url != null) {\n this._parsedUrl = new URL_js_1.PonyfillURL(this._url, "http://localhost");\n } else {\n throw new TypeError("Invalid URL");\n }\n }\n return this._parsedUrl;\n }\n duplex;\n agent;\n clone() {\n return this;\n }\n [Symbol.toStringTag] = "Request";\n }\n exports.PonyfillRequest = PonyfillRequest;\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/cjs/fetchNodeHttp.js\nvar require_fetchNodeHttp = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.fetchNodeHttp = fetchNodeHttp;\n var node_http_1 = __require("node:http");\n var node_https_1 = __require("node:https");\n var node_stream_1 = __require("node:stream");\n var node_zlib_1 = __require("node:zlib");\n var promise_helpers_1 = require_cjs();\n var Request_js_1 = require_Request();\n var Response_js_1 = require_Response();\n var URL_js_1 = require_URL();\n var utils_js_1 = require_utils();\n function getRequestFnForProtocol(url) {\n if (url.startsWith("http:")) {\n return node_http_1.request;\n } else if (url.startsWith("https:")) {\n return node_https_1.request;\n }\n throw new Error(`Unsupported protocol: ${url.split(":")[0] || url}`);\n }\n function fetchNodeHttp(fetchRequest) {\n return new Promise((resolve, reject) => {\n try {\n const requestFn = getRequestFnForProtocol(fetchRequest.parsedUrl?.protocol || fetchRequest.url);\n const headersSerializer = fetchRequest.headersSerializer || utils_js_1.getHeadersObj;\n const nodeHeaders = headersSerializer(fetchRequest.headers);\n nodeHeaders["accept-encoding"] ||= "gzip, deflate, br";\n nodeHeaders["user-agent"] ||= "node";\n let signal;\n if (fetchRequest._signal == null) {\n signal = undefined;\n } else if (fetchRequest._signal) {\n signal = fetchRequest._signal;\n }\n let nodeRequest;\n if (fetchRequest.parsedUrl) {\n nodeRequest = requestFn(fetchRequest.parsedUrl, {\n method: fetchRequest.method,\n headers: nodeHeaders,\n signal,\n agent: fetchRequest.agent\n });\n } else {\n nodeRequest = requestFn(fetchRequest.url, {\n method: fetchRequest.method,\n headers: nodeHeaders,\n signal,\n agent: fetchRequest.agent\n });\n }\n nodeRequest.once("error", reject);\n nodeRequest.once("response", (nodeResponse) => {\n let outputStream;\n const contentEncoding = nodeResponse.headers["content-encoding"];\n switch (contentEncoding) {\n case "x-gzip":\n case "gzip":\n outputStream = (0, node_zlib_1.createGunzip)();\n break;\n case "x-deflate":\n case "deflate":\n outputStream = (0, node_zlib_1.createInflate)();\n break;\n case "x-deflate-raw":\n case "deflate-raw":\n outputStream = (0, node_zlib_1.createInflateRaw)();\n break;\n case "br":\n outputStream = (0, node_zlib_1.createBrotliDecompress)();\n break;\n }\n if (nodeResponse.headers.location && (0, utils_js_1.shouldRedirect)(nodeResponse.statusCode)) {\n if (fetchRequest.redirect === "error") {\n const redirectError = new Error("Redirects are not allowed");\n reject(redirectError);\n nodeResponse.resume();\n return;\n }\n if (fetchRequest.redirect === "follow") {\n const redirectedUrl = new URL_js_1.PonyfillURL(nodeResponse.headers.location, fetchRequest.parsedUrl || fetchRequest.url);\n const redirectResponse$ = fetchNodeHttp(new Request_js_1.PonyfillRequest(redirectedUrl, fetchRequest));\n resolve(redirectResponse$.then((redirectResponse) => {\n redirectResponse.redirected = true;\n return redirectResponse;\n }));\n nodeResponse.resume();\n return;\n }\n }\n outputStream ||= new node_stream_1.PassThrough;\n (0, utils_js_1.pipeThrough)({\n src: nodeResponse,\n dest: outputStream,\n signal,\n onError: (e) => {\n if (!nodeResponse.destroyed) {\n nodeResponse.destroy(e);\n }\n if (!outputStream.destroyed) {\n outputStream.destroy(e);\n }\n reject(e);\n }\n });\n const statusCode = nodeResponse.statusCode || 200;\n let statusText = nodeResponse.statusMessage || node_http_1.STATUS_CODES[statusCode];\n if (statusText == null) {\n statusText = "";\n }\n const ponyfillResponse = new Response_js_1.PonyfillResponse(outputStream || nodeResponse, {\n status: statusCode,\n statusText,\n headers: nodeResponse.headers,\n url: fetchRequest.url,\n signal\n });\n resolve(ponyfillResponse);\n });\n if (fetchRequest["_buffer"] != null) {\n (0, promise_helpers_1.handleMaybePromise)(() => (0, utils_js_1.safeWrite)(fetchRequest["_buffer"], nodeRequest), () => (0, utils_js_1.endStream)(nodeRequest), reject);\n } else {\n const nodeReadable = fetchRequest.body != null ? (0, utils_js_1.isNodeReadable)(fetchRequest.body) ? fetchRequest.body : node_stream_1.Readable.from(fetchRequest.body) : null;\n if (nodeReadable) {\n nodeReadable.pipe(nodeRequest);\n } else {\n (0, utils_js_1.endStream)(nodeRequest);\n }\n }\n } catch (e) {\n reject(e);\n }\n });\n }\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/cjs/fetch.js\nvar require_fetch = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.fetchPonyfill = fetchPonyfill;\n var node_buffer_1 = __require("node:buffer");\n var node_fs_1 = __require("node:fs");\n var node_url_1 = __require("node:url");\n var fetchCurl_js_1 = require_fetchCurl();\n var fetchNodeHttp_js_1 = require_fetchNodeHttp();\n var Request_js_1 = require_Request();\n var Response_js_1 = require_Response();\n var URL_js_1 = require_URL();\n var utils_js_1 = require_utils();\n var BASE64_SUFFIX = ";base64";\n async function getResponseForFile(url) {\n const path = (0, node_url_1.fileURLToPath)(url);\n try {\n await node_fs_1.promises.access(path, node_fs_1.promises.constants.R_OK);\n const stats = await node_fs_1.promises.stat(path, {\n bigint: true\n });\n const readable = (0, node_fs_1.createReadStream)(path);\n return new Response_js_1.PonyfillResponse(readable, {\n status: 200,\n statusText: "OK",\n headers: {\n "content-type": "application/octet-stream",\n "last-modified": stats.mtime.toUTCString()\n }\n });\n } catch (err) {\n if (err.code === "ENOENT") {\n return new Response_js_1.PonyfillResponse(null, {\n status: 404,\n statusText: "Not Found"\n });\n } else if (err.code === "EACCES") {\n return new Response_js_1.PonyfillResponse(null, {\n status: 403,\n statusText: "Forbidden"\n });\n }\n throw err;\n }\n }\n function getResponseForDataUri(url) {\n const [mimeType = "text/plain", ...datas] = url.substring(5).split(",");\n const data = decodeURIComponent(datas.join(","));\n if (mimeType.endsWith(BASE64_SUFFIX)) {\n const buffer = node_buffer_1.Buffer.from(data, "base64url");\n const realMimeType = mimeType.slice(0, -BASE64_SUFFIX.length);\n return new Response_js_1.PonyfillResponse(buffer, {\n status: 200,\n statusText: "OK",\n headers: {\n "content-type": realMimeType\n }\n });\n }\n return new Response_js_1.PonyfillResponse(data, {\n status: 200,\n statusText: "OK",\n headers: {\n "content-type": mimeType\n }\n });\n }\n function getResponseForBlob(url) {\n const blob = URL_js_1.PonyfillURL.getBlobFromURL(url);\n if (!blob) {\n throw new TypeError("Invalid Blob URL");\n }\n return new Response_js_1.PonyfillResponse(blob, {\n status: 200,\n headers: {\n "content-type": blob.type,\n "content-length": blob.size.toString()\n }\n });\n }\n function isURL(obj) {\n return obj != null && obj.href != null;\n }\n function fetchPonyfill(info, init) {\n if (typeof info === "string" || isURL(info)) {\n const ponyfillRequest = new Request_js_1.PonyfillRequest(info, init);\n return fetchPonyfill(ponyfillRequest);\n }\n const fetchRequest = info;\n if (fetchRequest.url.startsWith("data:")) {\n const response = getResponseForDataUri(fetchRequest.url);\n return (0, utils_js_1.fakePromise)(response);\n }\n if (fetchRequest.url.startsWith("file:")) {\n const response = getResponseForFile(fetchRequest.url);\n return response;\n }\n if (fetchRequest.url.startsWith("blob:")) {\n const response = getResponseForBlob(fetchRequest.url);\n return (0, utils_js_1.fakePromise)(response);\n }\n if (globalThis.libcurl && !fetchRequest.agent) {\n return (0, fetchCurl_js_1.fetchCurl)(fetchRequest);\n }\n return (0, fetchNodeHttp_js_1.fetchNodeHttp)(fetchRequest);\n }\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/cjs/TextEncoderDecoder.js\nvar require_TextEncoderDecoder = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.PonyfillTextDecoder = exports.PonyfillTextEncoder = undefined;\n exports.PonyfillBtoa = PonyfillBtoa;\n var node_buffer_1 = __require("node:buffer");\n var utils_js_1 = require_utils();\n\n class PonyfillTextEncoder {\n encoding;\n constructor(encoding = "utf-8") {\n this.encoding = encoding;\n }\n encode(input) {\n return node_buffer_1.Buffer.from(input, this.encoding);\n }\n encodeInto(source, destination) {\n const buffer = this.encode(source);\n const copied = buffer.copy(destination);\n return {\n read: copied,\n written: copied\n };\n }\n }\n exports.PonyfillTextEncoder = PonyfillTextEncoder;\n\n class PonyfillTextDecoder {\n encoding;\n fatal = false;\n ignoreBOM = false;\n constructor(encoding = "utf-8", options) {\n this.encoding = encoding;\n if (options) {\n this.fatal = options.fatal || false;\n this.ignoreBOM = options.ignoreBOM || false;\n }\n }\n decode(input) {\n if (node_buffer_1.Buffer.isBuffer(input)) {\n return input.toString(this.encoding);\n }\n if ((0, utils_js_1.isArrayBufferView)(input)) {\n return node_buffer_1.Buffer.from(input.buffer, input.byteOffset, input.byteLength).toString(this.encoding);\n }\n return node_buffer_1.Buffer.from(input).toString(this.encoding);\n }\n }\n exports.PonyfillTextDecoder = PonyfillTextDecoder;\n function PonyfillBtoa(input) {\n return node_buffer_1.Buffer.from(input, "binary").toString("base64");\n }\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/cjs/URLSearchParams.js\nvar require_URLSearchParams = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.PonyfillURLSearchParams = undefined;\n exports.PonyfillURLSearchParams = globalThis.URLSearchParams;\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/cjs/WritableStream.js\nvar require_WritableStream = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.PonyfillWritableStream = undefined;\n var node_events_1 = __require("node:events");\n var node_stream_1 = __require("node:stream");\n var promise_helpers_1 = require_cjs();\n var utils_js_1 = require_utils();\n\n class PonyfillWritableStream {\n writable;\n constructor(underlyingSink) {\n if (underlyingSink instanceof node_stream_1.Writable) {\n this.writable = underlyingSink;\n } else if (underlyingSink) {\n const writable = new node_stream_1.Writable({\n write(chunk, _encoding, callback) {\n try {\n const result = underlyingSink.write?.(chunk, controller);\n if (result instanceof Promise) {\n result.then(() => {\n callback();\n }, (err) => {\n callback(err);\n });\n } else {\n callback();\n }\n } catch (err) {\n callback(err);\n }\n },\n final(callback) {\n const result = underlyingSink.close?.();\n if (result instanceof Promise) {\n result.then(() => {\n callback();\n }, (err) => {\n callback(err);\n });\n } else {\n callback();\n }\n }\n });\n this.writable = writable;\n const abortCtrl = new AbortController;\n const controller = {\n signal: abortCtrl.signal,\n error(e) {\n writable.destroy(e);\n }\n };\n writable.once("error", (err) => abortCtrl.abort(err));\n writable.once("close", () => abortCtrl.abort());\n } else {\n this.writable = new node_stream_1.Writable;\n }\n }\n getWriter() {\n const writable = this.writable;\n return {\n get closed() {\n return (0, node_events_1.once)(writable, "close");\n },\n get desiredSize() {\n return writable.writableLength;\n },\n get ready() {\n return (0, node_events_1.once)(writable, "drain");\n },\n releaseLock() {},\n write(chunk) {\n const promise = (0, utils_js_1.fakePromise)();\n if (chunk == null) {\n return promise;\n }\n return promise.then(() => (0, utils_js_1.safeWrite)(chunk, writable));\n },\n close() {\n if (!writable.errored && writable.closed) {\n return (0, utils_js_1.fakePromise)();\n }\n if (writable.errored) {\n return (0, promise_helpers_1.fakeRejectPromise)(writable.errored);\n }\n return (0, utils_js_1.fakePromise)().then(() => (0, utils_js_1.endStream)(writable));\n },\n abort(reason) {\n writable.destroy(reason);\n return (0, node_events_1.once)(writable, "close");\n }\n };\n }\n close() {\n if (!this.writable.errored && this.writable.closed) {\n return (0, utils_js_1.fakePromise)();\n }\n if (this.writable.errored) {\n return (0, promise_helpers_1.fakeRejectPromise)(this.writable.errored);\n }\n return (0, utils_js_1.fakePromise)().then(() => (0, utils_js_1.endStream)(this.writable));\n }\n abort(reason) {\n this.writable.destroy(reason);\n return (0, node_events_1.once)(this.writable, "close");\n }\n locked = false;\n }\n exports.PonyfillWritableStream = PonyfillWritableStream;\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/cjs/TransformStream.js\nvar require_TransformStream = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.PonyfillTransformStream = undefined;\n var node_stream_1 = __require("node:stream");\n var ReadableStream_js_1 = require_ReadableStream();\n var utils_js_1 = require_utils();\n var WritableStream_js_1 = require_WritableStream();\n\n class PonyfillTransformStream {\n transform;\n writable;\n readable;\n constructor(transformer) {\n if (transformer instanceof node_stream_1.Transform) {\n this.transform = transformer;\n } else if (transformer) {\n const controller = {\n enqueue(chunk) {\n transform.push(chunk);\n },\n error(reason) {\n transform.destroy(reason);\n },\n terminate() {\n (0, utils_js_1.endStream)(transform);\n },\n get desiredSize() {\n return transform.writableLength;\n }\n };\n const transform = new node_stream_1.Transform({\n read() {},\n write(chunk, _encoding, callback) {\n try {\n const result = transformer.transform?.(chunk, controller);\n if (result instanceof Promise) {\n result.then(() => {\n callback();\n }, (err) => {\n callback(err);\n });\n } else {\n callback();\n }\n } catch (err) {\n callback(err);\n }\n },\n final(callback) {\n try {\n const result = transformer.flush?.(controller);\n if (result instanceof Promise) {\n result.then(() => {\n callback();\n }, (err) => {\n callback(err);\n });\n } else {\n callback();\n }\n } catch (err) {\n callback(err);\n }\n }\n });\n this.transform = transform;\n } else {\n this.transform = new node_stream_1.Transform;\n }\n this.writable = new WritableStream_js_1.PonyfillWritableStream(this.transform);\n this.readable = new ReadableStream_js_1.PonyfillReadableStream(this.transform);\n }\n }\n exports.PonyfillTransformStream = PonyfillTransformStream;\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/cjs/CompressionStream.js\nvar require_CompressionStream = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.PonyfillCompressionStream = undefined;\n var node_zlib_1 = __require("node:zlib");\n var TransformStream_js_1 = require_TransformStream();\n\n class PonyfillCompressionStream extends TransformStream_js_1.PonyfillTransformStream {\n static supportedFormats = globalThis.process?.version?.startsWith("v2") ? ["gzip", "deflate", "br"] : ["gzip", "deflate", "deflate-raw", "br"];\n constructor(compressionFormat) {\n switch (compressionFormat) {\n case "x-gzip":\n case "gzip":\n super((0, node_zlib_1.createGzip)());\n break;\n case "x-deflate":\n case "deflate":\n super((0, node_zlib_1.createDeflate)());\n break;\n case "deflate-raw":\n super((0, node_zlib_1.createDeflateRaw)());\n break;\n case "br":\n super((0, node_zlib_1.createBrotliCompress)());\n break;\n default:\n throw new Error(`Unsupported compression format: ${compressionFormat}`);\n }\n }\n }\n exports.PonyfillCompressionStream = PonyfillCompressionStream;\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/cjs/DecompressionStream.js\nvar require_DecompressionStream = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.PonyfillDecompressionStream = undefined;\n var node_zlib_1 = __require("node:zlib");\n var TransformStream_js_1 = require_TransformStream();\n\n class PonyfillDecompressionStream extends TransformStream_js_1.PonyfillTransformStream {\n static supportedFormats = globalThis.process?.version?.startsWith("v2") ? ["gzip", "deflate", "br"] : ["gzip", "deflate", "deflate-raw", "br"];\n constructor(compressionFormat) {\n switch (compressionFormat) {\n case "x-gzip":\n case "gzip":\n super((0, node_zlib_1.createGunzip)());\n break;\n case "x-deflate":\n case "deflate":\n super((0, node_zlib_1.createInflate)());\n break;\n case "deflate-raw":\n super((0, node_zlib_1.createInflateRaw)());\n break;\n case "br":\n super((0, node_zlib_1.createBrotliDecompress)());\n break;\n default:\n throw new TypeError(`Unsupported compression format: \'${compressionFormat}\'`);\n }\n }\n }\n exports.PonyfillDecompressionStream = PonyfillDecompressionStream;\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/cjs/TextEncoderDecoderStream.js\nvar require_TextEncoderDecoderStream = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.PonyfillTextEncoderStream = exports.PonyfillTextDecoderStream = undefined;\n var TextEncoderDecoder_js_1 = require_TextEncoderDecoder();\n var TransformStream_js_1 = require_TransformStream();\n\n class PonyfillTextDecoderStream extends TransformStream_js_1.PonyfillTransformStream {\n textDecoder;\n constructor(encoding, options) {\n super({\n transform: (chunk, controller) => controller.enqueue(this.textDecoder.decode(chunk, { stream: true }))\n });\n this.textDecoder = new TextEncoderDecoder_js_1.PonyfillTextDecoder(encoding, options);\n }\n get encoding() {\n return this.textDecoder.encoding;\n }\n get fatal() {\n return this.textDecoder.fatal;\n }\n get ignoreBOM() {\n return this.textDecoder.ignoreBOM;\n }\n }\n exports.PonyfillTextDecoderStream = PonyfillTextDecoderStream;\n\n class PonyfillTextEncoderStream extends TransformStream_js_1.PonyfillTransformStream {\n textEncoder;\n constructor(encoding) {\n super({\n transform: (chunk, controller) => controller.enqueue(this.textEncoder.encode(chunk))\n });\n this.textEncoder = new TextEncoderDecoder_js_1.PonyfillTextEncoder(encoding);\n }\n get encoding() {\n return this.textEncoder.encoding;\n }\n encode(input) {\n return this.textEncoder.encode(input);\n }\n }\n exports.PonyfillTextEncoderStream = PonyfillTextEncoderStream;\n});\n\n// ../../node_modules/@whatwg-node/node-fetch/cjs/index.js\nvar require_cjs3 = __commonJS((exports) => {\n Object.defineProperty(exports, "__esModule", { value: true });\n exports.TextEncoderStream = exports.TextDecoderStream = exports.IteratorObject = exports.DecompressionStream = exports.CompressionStream = exports.TransformStream = exports.WritableStream = exports.URLSearchParams = exports.URL = exports.btoa = exports.TextDecoder = exports.TextEncoder = exports.Blob = exports.FormData = exports.File = exports.ReadableStream = exports.Response = exports.Request = exports.Body = exports.Headers = exports.fetch = undefined;\n var fetch_js_1 = require_fetch();\n Object.defineProperty(exports, "fetch", { enumerable: true, get: function() {\n return fetch_js_1.fetchPonyfill;\n } });\n var Headers_js_1 = require_Headers();\n Object.defineProperty(exports, "Headers", { enumerable: true, get: function() {\n return Headers_js_1.PonyfillHeaders;\n } });\n var Body_js_1 = require_Body();\n Object.defineProperty(exports, "Body", { enumerable: true, get: function() {\n return Body_js_1.PonyfillBody;\n } });\n var Request_js_1 = require_Request();\n Object.defineProperty(exports, "Request", { enumerable: true, get: function() {\n return Request_js_1.PonyfillRequest;\n } });\n var Response_js_1 = require_Response();\n Object.defineProperty(exports, "Response", { enumerable: true, get: function() {\n return Response_js_1.PonyfillResponse;\n } });\n var ReadableStream_js_1 = require_ReadableStream();\n Object.defineProperty(exports, "ReadableStream", { enumerable: true, get: function() {\n return ReadableStream_js_1.PonyfillReadableStream;\n } });\n var File_js_1 = require_File();\n Object.defineProperty(exports, "File", { enumerable: true, get: function() {\n return File_js_1.PonyfillFile;\n } });\n var FormData_js_1 = require_FormData();\n Object.defineProperty(exports, "FormData", { enumerable: true, get: function() {\n return FormData_js_1.PonyfillFormData;\n } });\n var Blob_js_1 = require_Blob();\n Object.defineProperty(exports, "Blob", { enumerable: true, get: function() {\n return Blob_js_1.PonyfillBlob;\n } });\n var TextEncoderDecoder_js_1 = require_TextEncoderDecoder();\n Object.defineProperty(exports, "TextEncoder", { enumerable: true, get: function() {\n return TextEncoderDecoder_js_1.PonyfillTextEncoder;\n } });\n Object.defineProperty(exports, "TextDecoder", { enumerable: true, get: function() {\n return TextEncoderDecoder_js_1.PonyfillTextDecoder;\n } });\n Object.defineProperty(exports, "btoa", { enumerable: true, get: function() {\n return TextEncoderDecoder_js_1.PonyfillBtoa;\n } });\n var URL_js_1 = require_URL();\n Object.defineProperty(exports, "URL", { enumerable: true, get: function() {\n return URL_js_1.PonyfillURL;\n } });\n var URLSearchParams_js_1 = require_URLSearchParams();\n Object.defineProperty(exports, "URLSearchParams", { enumerable: true, get: function() {\n return URLSearchParams_js_1.PonyfillURLSearchParams;\n } });\n var WritableStream_js_1 = require_WritableStream();\n Object.defineProperty(exports, "WritableStream", { enumerable: true, get: function() {\n return WritableStream_js_1.PonyfillWritableStream;\n } });\n var TransformStream_js_1 = require_TransformStream();\n Object.defineProperty(exports, "TransformStream", { enumerable: true, get: function() {\n return TransformStream_js_1.PonyfillTransformStream;\n } });\n var CompressionStream_js_1 = require_CompressionStream();\n Object.defineProperty(exports, "CompressionStream", { enumerable: true, get: function() {\n return CompressionStream_js_1.PonyfillCompressionStream;\n } });\n var DecompressionStream_js_1 = require_DecompressionStream();\n Object.defineProperty(exports, "DecompressionStream", { enumerable: true, get: function() {\n return DecompressionStream_js_1.PonyfillDecompressionStream;\n } });\n var IteratorObject_js_1 = require_IteratorObject();\n Object.defineProperty(exports, "IteratorObject", { enumerable: true, get: function() {\n return IteratorObject_js_1.PonyfillIteratorObject;\n } });\n var TextEncoderDecoderStream_js_1 = require_TextEncoderDecoderStream();\n Object.defineProperty(exports, "TextDecoderStream", { enumerable: true, get: function() {\n return TextEncoderDecoderStream_js_1.PonyfillTextDecoderStream;\n } });\n Object.defineProperty(exports, "TextEncoderStream", { enumerable: true, get: function() {\n return TextEncoderDecoderStream_js_1.PonyfillTextEncoderStream;\n } });\n});\n\n// ../../node_modules/@whatwg-node/fetch/dist/create-node-ponyfill.js\nvar require_create_node_ponyfill = __commonJS((exports, module) => {\n var shouldSkipPonyfill = require_shouldSkipPonyfill();\n var newNodeFetch;\n module.exports = function createNodePonyfill(opts = {}) {\n const ponyfills = {};\n ponyfills.URLPattern = globalThis.URLPattern;\n if (!ponyfills.URLPattern) {\n const urlPatternModule = require_urlpattern_polyfill();\n ponyfills.URLPattern = urlPatternModule.URLPattern;\n }\n if (opts.skipPonyfill || shouldSkipPonyfill()) {\n return {\n fetch: globalThis.fetch,\n Headers: globalThis.Headers,\n Request: globalThis.Request,\n Response: globalThis.Response,\n FormData: globalThis.FormData,\n ReadableStream: globalThis.ReadableStream,\n WritableStream: globalThis.WritableStream,\n TransformStream: globalThis.TransformStream,\n CompressionStream: globalThis.CompressionStream,\n DecompressionStream: globalThis.DecompressionStream,\n TextDecoderStream: globalThis.TextDecoderStream,\n TextEncoderStream: globalThis.TextEncoderStream,\n Blob: globalThis.Blob,\n File: globalThis.File,\n crypto: globalThis.crypto,\n btoa: globalThis.btoa,\n TextEncoder: globalThis.TextEncoder,\n TextDecoder: globalThis.TextDecoder,\n URLPattern: ponyfills.URLPattern,\n URL: globalThis.URL,\n URLSearchParams: globalThis.URLSearchParams\n };\n }\n newNodeFetch ||= require_cjs3();\n ponyfills.fetch = newNodeFetch.fetch;\n ponyfills.Request = newNodeFetch.Request;\n ponyfills.Response = newNodeFetch.Response;\n ponyfills.Headers = newNodeFetch.Headers;\n ponyfills.FormData = newNodeFetch.FormData;\n ponyfills.ReadableStream = newNodeFetch.ReadableStream;\n ponyfills.URL = newNodeFetch.URL;\n ponyfills.URLSearchParams = newNodeFetch.URLSearchParams;\n ponyfills.WritableStream = newNodeFetch.WritableStream;\n ponyfills.TransformStream = newNodeFetch.TransformStream;\n ponyfills.CompressionStream = newNodeFetch.CompressionStream;\n ponyfills.DecompressionStream = newNodeFetch.DecompressionStream;\n ponyfills.TextDecoderStream = newNodeFetch.TextDecoderStream;\n ponyfills.TextEncoderStream = newNodeFetch.TextEncoderStream;\n ponyfills.Blob = newNodeFetch.Blob;\n ponyfills.File = newNodeFetch.File;\n ponyfills.crypto = globalThis.crypto;\n ponyfills.btoa = newNodeFetch.btoa;\n ponyfills.TextEncoder = newNodeFetch.TextEncoder;\n ponyfills.TextDecoder = newNodeFetch.TextDecoder;\n if (opts.formDataLimits) {\n ponyfills.Body = class Body extends newNodeFetch.Body {\n constructor(body, userOpts) {\n super(body, {\n formDataLimits: opts.formDataLimits,\n ...userOpts\n });\n }\n };\n ponyfills.Request = class Request2 extends newNodeFetch.Request {\n constructor(input, userOpts) {\n super(input, {\n formDataLimits: opts.formDataLimits,\n ...userOpts\n });\n }\n };\n ponyfills.Response = class Response2 extends newNodeFetch.Response {\n constructor(body, userOpts) {\n super(body, {\n formDataLimits: opts.formDataLimits,\n ...userOpts\n });\n }\n };\n }\n if (!ponyfills.crypto) {\n const cryptoModule = __require("crypto");\n ponyfills.crypto = cryptoModule.webcrypto;\n }\n return ponyfills;\n };\n});\n\n// src/types.ts\nvar BlinkInvocationTokenHeader = "x-blink-invocation-token";\nvar InternalAPIServerURLEnvironmentVariable = "INTERNAL_BLINK_API_SERVER_URL";\nvar InternalAPIServerListenPortEnvironmentVariable = "INTERNAL_BLINK_API_SERVER_LISTEN_PORT";\n\n// src/lambda/wrapper-lambda.ts\nimport { resolve } from "node:path";\nimport { Writable } from "node:stream";\n\n// src/server.ts\nimport { createServer, Server } from "node:http";\n\n// ../../node_modules/@whatwg-node/promise-helpers/esm/index.js\nvar kFakePromise = Symbol.for("@whatwg-node/promise-helpers/FakePromise");\nfunction isPromise(value) {\n return value?.then != null;\n}\nfunction isActualPromise(value) {\n const maybePromise = value;\n return maybePromise && maybePromise.then && maybePromise.catch && maybePromise.finally;\n}\nfunction handleMaybePromise(inputFactory, outputSuccessFactory, outputErrorFactory, finallyFactory) {\n let result$ = fakePromise().then(inputFactory).then(outputSuccessFactory, outputErrorFactory);\n if (finallyFactory) {\n result$ = result$.finally(finallyFactory);\n }\n return unfakePromise(result$);\n}\nfunction fakePromise(value) {\n if (value && isActualPromise(value)) {\n return value;\n }\n if (isPromise(value)) {\n return {\n then: (resolve, reject) => fakePromise(value.then(resolve, reject)),\n catch: (reject) => fakePromise(value.then((res) => res, reject)),\n finally: (cb) => fakePromise(cb ? promiseLikeFinally(value, cb) : value),\n [Symbol.toStringTag]: "Promise"\n };\n }\n return {\n then(resolve) {\n if (resolve) {\n try {\n return fakePromise(resolve(value));\n } catch (err) {\n return fakeRejectPromise(err);\n }\n }\n return this;\n },\n catch() {\n return this;\n },\n finally(cb) {\n if (cb) {\n try {\n return fakePromise(cb()).then(() => value, () => value);\n } catch (err) {\n return fakeRejectPromise(err);\n }\n }\n return this;\n },\n [Symbol.toStringTag]: "Promise",\n __fakePromiseValue: value,\n [kFakePromise]: "resolved"\n };\n}\nfunction createDeferredPromise() {\n if (Promise.withResolvers) {\n return Promise.withResolvers();\n }\n let resolveFn;\n let rejectFn;\n const promise = new Promise(function deferredPromiseExecutor(resolve, reject) {\n resolveFn = resolve;\n rejectFn = reject;\n });\n return {\n promise,\n get resolve() {\n return resolveFn;\n },\n get reject() {\n return rejectFn;\n }\n };\n}\nfunction iterateAsync(iterable, callback, results) {\n if (iterable?.length === 0) {\n return;\n }\n const iterator = iterable[Symbol.iterator]();\n let index = 0;\n function iterate() {\n const { done: endOfIterator, value } = iterator.next();\n if (endOfIterator) {\n return;\n }\n let endedEarly = false;\n function endEarly() {\n endedEarly = true;\n }\n return handleMaybePromise(function handleCallback() {\n return callback(value, endEarly, index++);\n }, function handleCallbackResult(result) {\n if (result) {\n results?.push(result);\n }\n if (endedEarly) {\n return;\n }\n return iterate();\n });\n }\n return iterate();\n}\nfunction fakeRejectPromise(error) {\n return {\n then(_resolve, reject) {\n if (reject) {\n try {\n return fakePromise(reject(error));\n } catch (err) {\n return fakeRejectPromise(err);\n }\n }\n return this;\n },\n catch(reject) {\n if (reject) {\n try {\n return fakePromise(reject(error));\n } catch (err) {\n return fakeRejectPromise(err);\n }\n }\n return this;\n },\n finally(cb) {\n if (cb) {\n try {\n cb();\n } catch (err) {\n return fakeRejectPromise(err);\n }\n }\n return this;\n },\n __fakeRejectError: error,\n [Symbol.toStringTag]: "Promise",\n [kFakePromise]: "rejected"\n };\n}\nfunction isFakePromise(value) {\n return value?.[kFakePromise] === "resolved";\n}\nfunction isFakeRejectPromise(value) {\n return value?.[kFakePromise] === "rejected";\n}\nfunction promiseLikeFinally(value, onFinally) {\n if ("finally" in value) {\n return value.finally(onFinally);\n }\n return value.then((res) => {\n const finallyRes = onFinally();\n return isPromise(finallyRes) ? finallyRes.then(() => res) : res;\n }, (err) => {\n const finallyRes = onFinally();\n if (isPromise(finallyRes)) {\n return finallyRes.then(() => {\n throw err;\n });\n } else {\n throw err;\n }\n });\n}\nfunction unfakePromise(promise) {\n if (isFakePromise(promise)) {\n return promise.__fakePromiseValue;\n }\n if (isFakeRejectPromise(promise)) {\n throw promise.__fakeRejectError;\n }\n return promise;\n}\n\n// ../../node_modules/@envelop/instrumentation/esm/instrumentation.js\nfunction chain(first, next) {\n const merged = { ...next, ...first };\n for (const key of Object.keys(merged)) {\n if (key in first && key in next) {\n merged[key] = (payload, wrapped) => first[key](payload, () => next[key](payload, wrapped));\n }\n }\n return merged;\n}\nvar getInstrumented = (payload) => ({\n fn(instrument, wrapped) {\n if (!instrument) {\n return wrapped;\n }\n return (...args) => {\n let result;\n instrument(payload, () => {\n result = wrapped(...args);\n });\n return result;\n };\n },\n asyncFn(instrument, wrapped) {\n if (!instrument) {\n return wrapped;\n }\n return (...args) => {\n let result;\n return handleMaybePromise(() => instrument(payload, () => {\n result = wrapped(...args);\n return isPromise(result) ? result.then(() => {\n return;\n }) : undefined;\n }), () => {\n return result;\n });\n };\n }\n});\n\n// ../../node_modules/@whatwg-node/disposablestack/esm/SupressedError.js\nclass PonyfillSuppressedError extends Error {\n error;\n suppressed;\n constructor(error, suppressed, message) {\n super(message);\n this.error = error;\n this.suppressed = suppressed;\n this.name = "SuppressedError";\n Error.captureStackTrace(this, this.constructor);\n }\n}\n\n// ../../node_modules/@whatwg-node/disposablestack/esm/symbols.js\nvar DisposableSymbols = {\n get dispose() {\n return Symbol.dispose || Symbol.for("dispose");\n },\n get asyncDispose() {\n return Symbol.asyncDispose || Symbol.for("asyncDispose");\n }\n};\n\n// ../../node_modules/@whatwg-node/disposablestack/esm/utils.js\nfunction isSyncDisposable(obj) {\n return obj?.[DisposableSymbols.dispose] != null;\n}\nfunction isAsyncDisposable(obj) {\n return obj?.[DisposableSymbols.asyncDispose] != null;\n}\n\n// ../../node_modules/@whatwg-node/disposablestack/esm/AsyncDisposableStack.js\nvar SuppressedError2 = globalThis.SuppressedError || PonyfillSuppressedError;\n\nclass PonyfillAsyncDisposableStack {\n callbacks = [];\n get disposed() {\n return this.callbacks.length === 0;\n }\n use(value) {\n if (isAsyncDisposable(value)) {\n this.callbacks.push(() => value[DisposableSymbols.asyncDispose]());\n } else if (isSyncDisposable(value)) {\n this.callbacks.push(() => value[DisposableSymbols.dispose]());\n }\n return value;\n }\n adopt(value, onDisposeAsync) {\n if (onDisposeAsync) {\n this.callbacks.push(() => onDisposeAsync(value));\n }\n return value;\n }\n defer(onDisposeAsync) {\n if (onDisposeAsync) {\n this.callbacks.push(onDisposeAsync);\n }\n }\n move() {\n const stack = new PonyfillAsyncDisposableStack;\n stack.callbacks = this.callbacks;\n this.callbacks = [];\n return stack;\n }\n disposeAsync() {\n return this[DisposableSymbols.asyncDispose]();\n }\n _error;\n _iterateCallbacks() {\n const cb = this.callbacks.pop();\n if (cb) {\n return handleMaybePromise(cb, () => this._iterateCallbacks(), (error) => {\n this._error = this._error ? new SuppressedError2(error, this._error) : error;\n return this._iterateCallbacks();\n });\n }\n }\n [DisposableSymbols.asyncDispose]() {\n const res$ = this._iterateCallbacks();\n if (res$?.then) {\n return res$.then(() => {\n if (this._error) {\n const error = this._error;\n this._error = undefined;\n throw error;\n }\n });\n }\n if (this._error) {\n const error = this._error;\n this._error = undefined;\n throw error;\n }\n return;\n }\n [Symbol.toStringTag] = "AsyncDisposableStack";\n}\n\n// ../../node_modules/@whatwg-node/disposablestack/esm/DisposableStack.js\nvar SuppressedError3 = globalThis.SuppressedError || PonyfillSuppressedError;\n\nclass PonyfillDisposableStack {\n callbacks = [];\n get disposed() {\n return this.callbacks.length === 0;\n }\n use(value) {\n if (isSyncDisposable(value)) {\n this.callbacks.push(() => value[DisposableSymbols.dispose]());\n }\n return value;\n }\n adopt(value, onDispose) {\n if (onDispose) {\n this.callbacks.push(() => onDispose(value));\n }\n return value;\n }\n defer(onDispose) {\n if (onDispose) {\n this.callbacks.push(onDispose);\n }\n }\n move() {\n const stack = new PonyfillDisposableStack;\n stack.callbacks = this.callbacks;\n this.callbacks = [];\n return stack;\n }\n dispose() {\n return this[DisposableSymbols.dispose]();\n }\n _error;\n _iterateCallbacks() {\n const cb = this.callbacks.pop();\n if (cb) {\n try {\n cb();\n } catch (error) {\n this._error = this._error ? new SuppressedError3(error, this._error) : error;\n }\n return this._iterateCallbacks();\n }\n }\n [DisposableSymbols.dispose]() {\n this._iterateCallbacks();\n if (this._error) {\n const error = this._error;\n this._error = undefined;\n throw error;\n }\n }\n [Symbol.toStringTag] = "DisposableStack";\n}\n\n// ../../node_modules/@whatwg-node/disposablestack/esm/index.js\nvar DisposableStack = globalThis.DisposableStack || PonyfillDisposableStack;\nvar AsyncDisposableStack = globalThis.AsyncDisposableStack || PonyfillAsyncDisposableStack;\nvar SuppressedError4 = globalThis.SuppressedError || PonyfillSuppressedError;\n\n// ../../node_modules/@whatwg-node/fetch/dist/node-ponyfill.js\nvar exports_node_ponyfill = {};\n__export(exports_node_ponyfill, {\n fetch: () => $fetch,\n crypto: () => $crypto,\n createFetch: () => $createFetch,\n btoa: () => $btoa,\n WritableStream: () => $WritableStream,\n URLSearchParams: () => $URLSearchParams,\n URLPattern: () => $URLPattern,\n URL: () => $URL,\n TransformStream: () => $TransformStream,\n TextEncoderStream: () => $TextEncoderStream,\n TextEncoder: () => $TextEncoder,\n TextDecoderStream: () => $TextDecoderStream,\n TextDecoder: () => $TextDecoder,\n Response: () => $Response,\n Request: () => $Request,\n ReadableStream: () => $ReadableStream,\n Headers: () => $Headers,\n FormData: () => $FormData,\n File: () => $File,\n DecompressionStream: () => $DecompressionStream,\n CompressionStream: () => $CompressionStream,\n Blob: () => $Blob\n});\nvar createNodePonyfill = require_create_node_ponyfill();\nvar shouldSkipPonyfill = require_shouldSkipPonyfill();\nvar ponyfills = createNodePonyfill();\nif (!shouldSkipPonyfill()) {\n try {\n const nodelibcurlName = "node-libcurl";\n globalThis.libcurl = globalThis.libcurl || __require(nodelibcurlName);\n } catch (e) {}\n}\nvar $fetch = ponyfills.fetch;\nvar $Headers = ponyfills.Headers;\nvar $Request = ponyfills.Request;\nvar $Response = ponyfills.Response;\nvar $FormData = ponyfills.FormData;\nvar $ReadableStream = ponyfills.ReadableStream;\nvar $WritableStream = ponyfills.WritableStream;\nvar $TransformStream = ponyfills.TransformStream;\nvar $CompressionStream = ponyfills.CompressionStream;\nvar $DecompressionStream = ponyfills.DecompressionStream;\nvar $TextDecoderStream = ponyfills.TextDecoderStream;\nvar $TextEncoderStream = ponyfills.TextEncoderStream;\nvar $Blob = ponyfills.Blob;\nvar $File = ponyfills.File;\nvar $crypto = ponyfills.crypto;\nvar $btoa = ponyfills.btoa;\nvar $TextEncoder = ponyfills.TextEncoder;\nvar $TextDecoder = ponyfills.TextDecoder;\nvar $URLPattern = ponyfills.URLPattern;\nvar $URL = ponyfills.URL;\nvar $URLSearchParams = ponyfills.URLSearchParams;\nvar $createFetch = createNodePonyfill;\n// ../../node_modules/@whatwg-node/server/esm/utils.js\nfunction isAsyncIterable(body) {\n return body != null && typeof body === "object" && typeof body[Symbol.asyncIterator] === "function";\n}\nfunction getPort(nodeRequest) {\n if (nodeRequest.socket?.localPort) {\n return nodeRequest.socket?.localPort;\n }\n const hostInHeader = nodeRequest.headers?.[":authority"] || nodeRequest.headers?.host;\n const portInHeader = hostInHeader?.split(":")?.[1];\n if (portInHeader) {\n return portInHeader;\n }\n return 80;\n}\nfunction getHostnameWithPort(nodeRequest) {\n if (nodeRequest.headers?.[":authority"]) {\n return nodeRequest.headers?.[":authority"];\n }\n if (nodeRequest.headers?.host) {\n return nodeRequest.headers?.host;\n }\n const port = getPort(nodeRequest);\n if (nodeRequest.hostname) {\n return nodeRequest.hostname + ":" + port;\n }\n const localIp = nodeRequest.socket?.localAddress;\n if (localIp && !localIp?.includes("::") && !localIp?.includes("ffff")) {\n return `${localIp}:${port}`;\n }\n return "localhost";\n}\nfunction buildFullUrl(nodeRequest) {\n const hostnameWithPort = getHostnameWithPort(nodeRequest);\n const protocol = nodeRequest.protocol || (nodeRequest.socket?.encrypted ? "https" : "http");\n const endpoint = nodeRequest.originalUrl || nodeRequest.url || "/graphql";\n return `${protocol}://${hostnameWithPort}${endpoint}`;\n}\nfunction isRequestBody(body) {\n const stringTag = body[Symbol.toStringTag];\n if (typeof body === "string" || stringTag === "Uint8Array" || stringTag === "Blob" || stringTag === "FormData" || stringTag === "URLSearchParams" || isAsyncIterable(body)) {\n return true;\n }\n return false;\n}\nfunction normalizeNodeRequest(nodeRequest, fetchAPI, nodeResponse, __useCustomAbortCtrl) {\n const rawRequest = nodeRequest.raw || nodeRequest.req || nodeRequest;\n let fullUrl = buildFullUrl(rawRequest);\n if (nodeRequest.query) {\n const url = new fetchAPI.URL(fullUrl);\n for (const key in nodeRequest.query) {\n url.searchParams.set(key, nodeRequest.query[key]);\n }\n fullUrl = url.toString();\n }\n let normalizedHeaders = nodeRequest.headers;\n if (nodeRequest.headers?.[":method"]) {\n normalizedHeaders = {};\n for (const key in nodeRequest.headers) {\n if (!key.startsWith(":")) {\n normalizedHeaders[key] = nodeRequest.headers[key];\n }\n }\n }\n const controller = __useCustomAbortCtrl ? createCustomAbortControllerSignal() : new AbortController;\n if (nodeResponse?.once) {\n const closeEventListener = () => {\n if (!controller.signal.aborted) {\n Object.defineProperty(rawRequest, "aborted", { value: true });\n controller.abort(nodeResponse.errored ?? undefined);\n }\n };\n nodeResponse.once("error", closeEventListener);\n nodeResponse.once("close", closeEventListener);\n nodeResponse.once("finish", () => {\n nodeResponse.removeListener("close", closeEventListener);\n });\n }\n if (nodeRequest.method === "GET" || nodeRequest.method === "HEAD") {\n return new fetchAPI.Request(fullUrl, {\n method: nodeRequest.method,\n headers: normalizedHeaders,\n signal: controller.signal\n });\n }\n const maybeParsedBody = nodeRequest.body;\n if (maybeParsedBody != null && Object.keys(maybeParsedBody).length > 0) {\n if (isRequestBody(maybeParsedBody)) {\n return new fetchAPI.Request(fullUrl, {\n method: nodeRequest.method || "GET",\n headers: normalizedHeaders,\n body: maybeParsedBody,\n signal: controller.signal\n });\n }\n const request = new fetchAPI.Request(fullUrl, {\n method: nodeRequest.method || "GET",\n headers: normalizedHeaders,\n signal: controller.signal\n });\n if (!request.headers.get("content-type")?.includes("json")) {\n request.headers.set("content-type", "application/json; charset=utf-8");\n }\n return new Proxy(request, {\n get: (target, prop, receiver) => {\n switch (prop) {\n case "json":\n return () => fakePromise(maybeParsedBody);\n case "text":\n return () => fakePromise(JSON.stringify(maybeParsedBody));\n default:\n if (globalThis.Bun) {\n return Reflect.get(target, prop);\n }\n return Reflect.get(target, prop, receiver);\n }\n }\n });\n }\n return new fetchAPI.Request(fullUrl, {\n method: nodeRequest.method,\n headers: normalizedHeaders,\n signal: controller.signal,\n body: rawRequest,\n duplex: "half"\n });\n}\nfunction isReadable(stream) {\n return stream.read != null;\n}\nfunction isNodeRequest(request) {\n return isReadable(request);\n}\nfunction isServerResponse(stream) {\n return stream != null && stream.setHeader != null && stream.end != null && stream.once != null && stream.write != null;\n}\nfunction isReadableStream(stream) {\n return stream != null && stream.getReader != null;\n}\nfunction isFetchEvent(event) {\n return event != null && event.request != null && event.respondWith != null;\n}\nfunction configureSocket(rawRequest) {\n rawRequest?.socket?.setTimeout?.(0);\n rawRequest?.socket?.setNoDelay?.(true);\n rawRequest?.socket?.setKeepAlive?.(true);\n}\nfunction endResponse(serverResponse) {\n serverResponse.end(null, null, null);\n}\nfunction sendAsyncIterable(serverResponse, asyncIterable) {\n let closed = false;\n const closeEventListener = () => {\n closed = true;\n };\n serverResponse.once("error", closeEventListener);\n serverResponse.once("close", closeEventListener);\n serverResponse.once("finish", () => {\n serverResponse.removeListener("close", closeEventListener);\n serverResponse.removeListener("error", closeEventListener);\n });\n const iterator = asyncIterable[Symbol.asyncIterator]();\n const pump = () => iterator.next().then(({ done, value }) => {\n if (closed || done) {\n return;\n }\n return handleMaybePromise(() => safeWrite(value, serverResponse), () => closed ? endResponse(serverResponse) : pump());\n });\n return pump();\n}\nfunction safeWrite(chunk, serverResponse) {\n const result = serverResponse.write(chunk);\n if (!result) {\n return new Promise((resolve) => serverResponse.once("drain", resolve));\n }\n}\nfunction sendNodeResponse(fetchResponse, serverResponse, nodeRequest, __useSingleWriteHead) {\n if (serverResponse.closed || serverResponse.destroyed || serverResponse.writableEnded) {\n return;\n }\n if (!fetchResponse) {\n serverResponse.statusCode = 404;\n endResponse(serverResponse);\n return;\n }\n if (__useSingleWriteHead && fetchResponse.headers?.headersInit && !Array.isArray(fetchResponse.headers.headersInit) && !fetchResponse.headers.headersInit.get && !fetchResponse.headers._map && !fetchResponse.headers._setCookies?.length) {\n serverResponse.writeHead(fetchResponse.status, fetchResponse.statusText, fetchResponse.headers.headersInit);\n } else {\n if (serverResponse.setHeaders) {\n serverResponse.setHeaders(fetchResponse.headers);\n } else {\n let setCookiesSet = false;\n fetchResponse.headers.forEach((value, key) => {\n if (key === "set-cookie") {\n if (setCookiesSet) {\n return;\n }\n setCookiesSet = true;\n const setCookies = fetchResponse.headers.getSetCookie?.();\n if (setCookies) {\n serverResponse.setHeader("set-cookie", setCookies);\n return;\n }\n }\n serverResponse.setHeader(key, value);\n });\n }\n serverResponse.writeHead(fetchResponse.status, fetchResponse.statusText);\n }\n if (fetchResponse["bodyType"] === "String") {\n return handleMaybePromise(() => safeWrite(fetchResponse.bodyInit, serverResponse), () => endResponse(serverResponse));\n }\n const bufOfRes = fetchResponse._buffer;\n if (bufOfRes) {\n return handleMaybePromise(() => safeWrite(bufOfRes, serverResponse), () => endResponse(serverResponse));\n }\n const fetchBody = fetchResponse.body;\n if (fetchBody == null) {\n endResponse(serverResponse);\n return;\n }\n if (fetchBody[Symbol.toStringTag] === "Uint8Array") {\n return handleMaybePromise(() => safeWrite(fetchBody, serverResponse), () => endResponse(serverResponse));\n }\n configureSocket(nodeRequest);\n if (isReadable(fetchBody)) {\n serverResponse.once("close", () => {\n fetchBody.destroy();\n });\n fetchBody.pipe(serverResponse, {\n end: true\n });\n return;\n }\n if (isReadableStream(fetchBody)) {\n return sendReadableStream(nodeRequest, serverResponse, fetchBody);\n }\n if (isAsyncIterable(fetchBody)) {\n return sendAsyncIterable(serverResponse, fetchBody);\n }\n}\nfunction sendReadableStream(nodeRequest, serverResponse, readableStream) {\n const reader = readableStream.getReader();\n nodeRequest?.once?.("error", (err) => {\n reader.cancel(err);\n });\n function pump() {\n return reader.read().then(({ done, value }) => done ? endResponse(serverResponse) : handleMaybePromise(() => safeWrite(value, serverResponse), pump));\n }\n return pump();\n}\nfunction isRequestInit(val) {\n return val != null && typeof val === "object" && (("body" in val) || ("cache" in val) || ("credentials" in val) || ("headers" in val) || ("integrity" in val) || ("keepalive" in val) || ("method" in val) || ("mode" in val) || ("redirect" in val) || ("referrer" in val) || ("referrerPolicy" in val) || ("signal" in val) || ("window" in val));\n}\nfunction completeAssign(...args) {\n const [target, ...sources] = args.filter((arg) => arg != null && typeof arg === "object");\n sources.forEach((source) => {\n const descriptors = Object.getOwnPropertyNames(source).reduce((descriptors2, key) => {\n const descriptor = Object.getOwnPropertyDescriptor(source, key);\n if (descriptor) {\n descriptors2[key] = Object.getOwnPropertyDescriptor(source, key);\n }\n return descriptors2;\n }, {});\n Object.getOwnPropertySymbols(source).forEach((sym) => {\n const descriptor = Object.getOwnPropertyDescriptor(source, sym);\n if (descriptor?.enumerable) {\n descriptors[sym] = descriptor;\n }\n });\n Object.defineProperties(target, descriptors);\n });\n return target;\n}\nfunction handleErrorFromRequestHandler(error, ResponseCtor) {\n return new ResponseCtor(error.stack || error.message || error.toString(), {\n status: error.status || 500\n });\n}\nfunction isolateObject(originalCtx, waitUntilFn) {\n if (originalCtx == null) {\n if (waitUntilFn == null) {\n return {};\n }\n return {\n waitUntil: waitUntilFn\n };\n }\n return completeAssign(Object.create(originalCtx), {\n waitUntil: waitUntilFn\n }, originalCtx);\n}\nfunction handleAbortSignalAndPromiseResponse(response$, abortSignal) {\n if (abortSignal?.aborted) {\n throw abortSignal.reason;\n }\n if (isPromise(response$) && abortSignal) {\n let abortSignalFetchErrorHandler = function() {\n deferred$.reject(abortSignal.reason);\n };\n const deferred$ = createDeferredPromise();\n abortSignal.addEventListener("abort", abortSignalFetchErrorHandler, { once: true });\n response$.then(function fetchSuccessHandler(res) {\n deferred$.resolve(res);\n }).catch(function fetchErrorHandler(err) {\n deferred$.reject(err);\n }).finally(() => {\n abortSignal.removeEventListener("abort", abortSignalFetchErrorHandler);\n });\n return deferred$.promise;\n }\n return response$;\n}\nvar decompressedResponseMap = new WeakMap;\nvar supportedEncodingsByFetchAPI = new WeakMap;\nvar terminateEvents = ["SIGINT", "exit", "SIGTERM"];\nvar disposableStacks = new Set;\nvar eventListenerRegistered = false;\nfunction ensureEventListenerForDisposableStacks() {\n if (eventListenerRegistered) {\n return;\n }\n eventListenerRegistered = true;\n for (const event of terminateEvents) {\n globalThis.process.once(event, function terminateHandler() {\n return Promise.allSettled([...disposableStacks].map((stack) => !stack.disposed && stack.disposeAsync()));\n });\n }\n}\nfunction ensureDisposableStackRegisteredForTerminateEvents(disposableStack) {\n if (globalThis.process) {\n ensureEventListenerForDisposableStacks();\n if (!disposableStacks.has(disposableStack)) {\n disposableStacks.add(disposableStack);\n disposableStack.defer(() => {\n disposableStacks.delete(disposableStack);\n });\n }\n }\n}\n\nclass CustomAbortControllerSignal extends EventTarget {\n aborted = false;\n _onabort = null;\n _reason;\n constructor() {\n super();\n const nodeEvents = globalThis.process?.getBuiltinModule?.("node:events");\n if (nodeEvents?.kMaxEventTargetListeners) {\n this[nodeEvents.kMaxEventTargetListeners] = 0;\n }\n }\n throwIfAborted() {\n if (this._nativeCtrl?.signal?.throwIfAborted) {\n return this._nativeCtrl.signal.throwIfAborted();\n }\n if (this.aborted) {\n throw this._reason;\n }\n }\n _nativeCtrl;\n ensureNativeCtrl() {\n if (!this._nativeCtrl) {\n const isAborted = this.aborted;\n this._nativeCtrl = new AbortController;\n if (isAborted) {\n this._nativeCtrl.abort(this._reason);\n }\n }\n return this._nativeCtrl;\n }\n abort(reason) {\n if (this._nativeCtrl?.abort) {\n return this._nativeCtrl?.abort(reason);\n }\n this._reason = reason || new DOMException("This operation was aborted", "AbortError");\n this.aborted = true;\n this.dispatchEvent(new Event("abort"));\n }\n get signal() {\n if (this._nativeCtrl?.signal) {\n return this._nativeCtrl.signal;\n }\n return this;\n }\n get reason() {\n if (this._nativeCtrl?.signal) {\n return this._nativeCtrl.signal.reason;\n }\n return this._reason;\n }\n get onabort() {\n if (this._onabort) {\n return this._onabort;\n }\n return this._onabort;\n }\n set onabort(value) {\n if (this._nativeCtrl?.signal) {\n this._nativeCtrl.signal.onabort = value;\n return;\n }\n if (this._onabort) {\n this.removeEventListener("abort", this._onabort);\n }\n this._onabort = value;\n if (value) {\n this.addEventListener("abort", value);\n }\n }\n}\nfunction createCustomAbortControllerSignal() {\n if (globalThis.Bun || globalThis.Deno) {\n return new AbortController;\n }\n return new Proxy(new CustomAbortControllerSignal, {\n get(target, prop, receiver) {\n if (prop.toString().includes("kDependantSignals")) {\n const nativeCtrl = target.ensureNativeCtrl();\n return Reflect.get(nativeCtrl.signal, prop, nativeCtrl.signal);\n }\n return Reflect.get(target, prop, receiver);\n },\n set(target, prop, value, receiver) {\n if (prop.toString().includes("kDependantSignals")) {\n const nativeCtrl = target.ensureNativeCtrl();\n return Reflect.set(nativeCtrl.signal, prop, value, nativeCtrl.signal);\n }\n return Reflect.set(target, prop, value, receiver);\n },\n getPrototypeOf() {\n return AbortSignal.prototype;\n }\n });\n}\n\n// ../../node_modules/@whatwg-node/server/esm/uwebsockets.js\nfunction isUWSResponse(res) {\n return !!res.onData;\n}\nfunction getRequestFromUWSRequest({ req, res, fetchAPI, controller }) {\n const method = req.getMethod();\n let duplex;\n const chunks = [];\n const pushFns = [\n (chunk) => {\n chunks.push(chunk);\n }\n ];\n const push = (chunk) => {\n for (const pushFn of pushFns) {\n pushFn(chunk);\n }\n };\n let stopped = false;\n const stopFns = [\n () => {\n stopped = true;\n }\n ];\n const stop = () => {\n for (const stopFn of stopFns) {\n stopFn();\n }\n };\n res.onData(function(ab, isLast) {\n push(Buffer.from(Buffer.from(ab, 0, ab.byteLength)));\n if (isLast) {\n stop();\n }\n });\n let getReadableStream;\n if (method !== "get" && method !== "head") {\n duplex = "half";\n controller.signal.addEventListener("abort", () => {\n stop();\n }, { once: true });\n let readableStream;\n getReadableStream = () => {\n if (!readableStream) {\n readableStream = new fetchAPI.ReadableStream({\n start(streamCtrl) {\n for (const chunk of chunks) {\n streamCtrl.enqueue(chunk);\n }\n if (stopped) {\n streamCtrl.close();\n return;\n }\n pushFns.push((chunk) => {\n streamCtrl.enqueue(chunk);\n });\n stopFns.push(() => {\n if (controller.signal.reason) {\n streamCtrl.error(controller.signal.reason);\n return;\n }\n if (streamCtrl.desiredSize) {\n streamCtrl.close();\n }\n });\n }\n });\n }\n return readableStream;\n };\n }\n const headers = new fetchAPI.Headers;\n req.forEach((key, value) => {\n headers.append(key, value);\n });\n let url = `http://localhost${req.getUrl()}`;\n const query = req.getQuery();\n if (query) {\n url += `?${query}`;\n }\n let buffer;\n function getBody() {\n if (!getReadableStream) {\n return null;\n }\n if (stopped) {\n return getBufferFromChunks();\n }\n return getReadableStream();\n }\n const request = new fetchAPI.Request(url, {\n method,\n headers,\n get body() {\n return getBody();\n },\n signal: controller.signal,\n duplex\n });\n function getBufferFromChunks() {\n if (!buffer) {\n buffer = chunks.length === 1 ? chunks[0] : Buffer.concat(chunks);\n }\n return buffer;\n }\n function collectBuffer() {\n if (stopped) {\n return fakePromise(getBufferFromChunks());\n }\n return new Promise((resolve, reject) => {\n try {\n stopFns.push(() => {\n resolve(getBufferFromChunks());\n });\n } catch (e) {\n reject(e);\n }\n });\n }\n Object.defineProperties(request, {\n body: {\n get() {\n return getBody();\n },\n configurable: true,\n enumerable: true\n },\n json: {\n value() {\n return collectBuffer().then((b) => b.toString("utf8")).then((t) => JSON.parse(t));\n },\n configurable: true,\n enumerable: true\n },\n text: {\n value() {\n return collectBuffer().then((b) => b.toString("utf8"));\n },\n configurable: true,\n enumerable: true\n },\n arrayBuffer: {\n value() {\n return collectBuffer();\n },\n configurable: true,\n enumerable: true\n }\n });\n return request;\n}\nfunction createWritableFromUWS(uwsResponse, fetchAPI) {\n return new fetchAPI.WritableStream({\n write(chunk) {\n uwsResponse.cork(() => {\n uwsResponse.write(chunk);\n });\n },\n close() {\n uwsResponse.cork(() => {\n uwsResponse.end();\n });\n }\n });\n}\nfunction sendResponseToUwsOpts(uwsResponse, fetchResponse, controller, fetchAPI) {\n if (!fetchResponse) {\n uwsResponse.writeStatus("404 Not Found");\n uwsResponse.end();\n return;\n }\n const bufferOfRes = fetchResponse._buffer;\n const strBody = fetchResponse["bodyType"] === "String" ? fetchResponse.bodyInit : undefined;\n if (controller.signal.aborted) {\n return;\n }\n uwsResponse.cork(() => {\n uwsResponse.writeStatus(`${fetchResponse.status} ${fetchResponse.statusText}`);\n for (const [key, value] of fetchResponse.headers) {\n if (key !== "content-length") {\n if (key === "set-cookie") {\n const setCookies = fetchResponse.headers.getSetCookie?.();\n if (setCookies) {\n for (const setCookie of setCookies) {\n uwsResponse.writeHeader(key, setCookie);\n }\n continue;\n }\n }\n uwsResponse.writeHeader(key, value);\n }\n }\n if (strBody) {\n uwsResponse.end(strBody);\n } else if (bufferOfRes) {\n uwsResponse.end(bufferOfRes);\n } else if (!fetchResponse.body) {\n uwsResponse.end();\n }\n });\n if (strBody || bufferOfRes || !fetchResponse.body) {\n return;\n }\n controller.signal.addEventListener("abort", () => {\n if (!fetchResponse.body?.locked) {\n fetchResponse.body?.cancel(controller.signal.reason);\n }\n }, { once: true });\n return fetchResponse.body.pipeTo(createWritableFromUWS(uwsResponse, fetchAPI), {\n signal: controller.signal\n }).catch((err) => {\n if (controller.signal.aborted) {\n return;\n }\n throw err;\n });\n}\n\n// ../../node_modules/@whatwg-node/server/esm/createServerAdapter.js\nfunction isRequestAccessible(serverContext) {\n try {\n return !!serverContext?.request;\n } catch {\n return false;\n }\n}\nvar EMPTY_OBJECT = {};\nfunction createServerAdapter(serverAdapterBaseObject, options) {\n const useSingleWriteHead = options?.__useSingleWriteHead == null ? true : options.__useSingleWriteHead;\n const fetchAPI = {\n ...exports_node_ponyfill,\n ...options?.fetchAPI\n };\n const useCustomAbortCtrl = options?.__useCustomAbortCtrl == null ? fetchAPI.Request !== globalThis.Request : options.__useCustomAbortCtrl;\n const givenHandleRequest = typeof serverAdapterBaseObject === "function" ? serverAdapterBaseObject : serverAdapterBaseObject.handle;\n const onRequestHooks = [];\n const onResponseHooks = [];\n let instrumentation;\n const waitUntilPromises = new Set;\n let _disposableStack;\n function ensureDisposableStack() {\n if (!_disposableStack) {\n _disposableStack = new AsyncDisposableStack;\n if (options?.disposeOnProcessTerminate) {\n ensureDisposableStackRegisteredForTerminateEvents(_disposableStack);\n }\n _disposableStack.defer(() => {\n if (waitUntilPromises.size > 0) {\n return Promise.allSettled(waitUntilPromises).then(() => {\n waitUntilPromises.clear();\n }, () => {\n waitUntilPromises.clear();\n });\n }\n });\n }\n return _disposableStack;\n }\n function waitUntil(maybePromise) {\n if (isPromise(maybePromise)) {\n ensureDisposableStack();\n waitUntilPromises.add(maybePromise);\n maybePromise.then(() => {\n waitUntilPromises.delete(maybePromise);\n }, (err) => {\n console.error(`Unexpected error while waiting: ${err.message || err}`);\n waitUntilPromises.delete(maybePromise);\n });\n }\n }\n if (options?.plugins != null) {\n for (const plugin of options.plugins) {\n if (plugin.instrumentation) {\n instrumentation = instrumentation ? chain(instrumentation, plugin.instrumentation) : plugin.instrumentation;\n }\n if (plugin.onRequest) {\n onRequestHooks.push(plugin.onRequest);\n }\n if (plugin.onResponse) {\n onResponseHooks.push(plugin.onResponse);\n }\n const disposeFn = plugin[DisposableSymbols.dispose];\n if (disposeFn) {\n ensureDisposableStack().defer(disposeFn);\n }\n const asyncDisposeFn = plugin[DisposableSymbols.asyncDispose];\n if (asyncDisposeFn) {\n ensureDisposableStack().defer(asyncDisposeFn);\n }\n if (plugin.onDispose) {\n ensureDisposableStack().defer(plugin.onDispose);\n }\n }\n }\n let handleRequest = onRequestHooks.length > 0 || onResponseHooks.length > 0 ? function handleRequest(request, serverContext) {\n let requestHandler = givenHandleRequest;\n let response;\n if (onRequestHooks.length === 0) {\n return handleEarlyResponse();\n }\n let url = request["parsedUrl"] || new Proxy(EMPTY_OBJECT, {\n get(_target, prop, _receiver) {\n url = new fetchAPI.URL(request.url, "http://localhost");\n return Reflect.get(url, prop, url);\n }\n });\n function handleResponse(response2) {\n if (onResponseHooks.length === 0) {\n return response2;\n }\n return handleMaybePromise(() => iterateAsync(onResponseHooks, (onResponseHook) => onResponseHook({\n request,\n response: response2,\n serverContext,\n setResponse(newResponse) {\n response2 = newResponse;\n },\n fetchAPI\n })), () => response2);\n }\n function handleEarlyResponse() {\n if (!response) {\n return handleMaybePromise(() => requestHandler(request, serverContext), handleResponse);\n }\n return handleResponse(response);\n }\n return handleMaybePromise(() => iterateAsync(onRequestHooks, (onRequestHook, stopEarly) => onRequestHook({\n request,\n setRequest(newRequest) {\n request = newRequest;\n },\n serverContext,\n fetchAPI,\n url,\n requestHandler,\n setRequestHandler(newRequestHandler) {\n requestHandler = newRequestHandler;\n },\n endResponse(newResponse) {\n response = newResponse;\n if (newResponse) {\n stopEarly();\n }\n }\n })), handleEarlyResponse);\n } : givenHandleRequest;\n if (instrumentation?.request) {\n const originalRequestHandler = handleRequest;\n handleRequest = (request, initialContext) => {\n return getInstrumented({ request }).asyncFn(instrumentation.request, originalRequestHandler)(request, initialContext);\n };\n }\n function handleNodeRequest(nodeRequest, ...ctx) {\n const serverContext = ctx.length > 1 ? completeAssign(...ctx) : ctx[0] || {};\n if (!serverContext.waitUntil) {\n serverContext.waitUntil = waitUntil;\n }\n const request = normalizeNodeRequest(nodeRequest, fetchAPI, undefined, useCustomAbortCtrl);\n return handleRequest(request, serverContext);\n }\n function handleNodeRequestAndResponse(nodeRequest, nodeResponseOrContainer, ...ctx) {\n const nodeResponse = nodeResponseOrContainer.raw || nodeResponseOrContainer;\n const serverContext = ctx.length > 1 ? completeAssign(...ctx) : ctx[0] || {};\n if (!serverContext.waitUntil) {\n serverContext.waitUntil = waitUntil;\n }\n const request = normalizeNodeRequest(nodeRequest, fetchAPI, nodeResponse, useCustomAbortCtrl);\n return handleRequest(request, serverContext);\n }\n function requestListener(nodeRequest, nodeResponse, ...ctx) {\n const defaultServerContext = {\n req: nodeRequest,\n res: nodeResponse,\n waitUntil\n };\n return unfakePromise(fakePromise().then(() => handleNodeRequestAndResponse(nodeRequest, nodeResponse, defaultServerContext, ...ctx)).catch((err) => handleErrorFromRequestHandler(err, fetchAPI.Response)).then((response) => sendNodeResponse(response, nodeResponse, nodeRequest, useSingleWriteHead)).catch((err) => console.error(`Unexpected error while handling request: ${err.message || err}`)));\n }\n function handleUWS(res, req, ...ctx) {\n const defaultServerContext = {\n res,\n req,\n waitUntil\n };\n const filteredCtxParts = ctx.filter((partCtx) => partCtx != null);\n const serverContext = filteredCtxParts.length > 0 ? completeAssign(defaultServerContext, ...ctx) : defaultServerContext;\n const controller = useCustomAbortCtrl ? createCustomAbortControllerSignal() : new AbortController;\n const originalResEnd = res.end.bind(res);\n let resEnded = false;\n res.end = function(data) {\n resEnded = true;\n return originalResEnd(data);\n };\n const originalOnAborted = res.onAborted.bind(res);\n originalOnAborted(function() {\n controller.abort();\n });\n res.onAborted = function(cb) {\n controller.signal.addEventListener("abort", cb, { once: true });\n };\n const request = getRequestFromUWSRequest({\n req,\n res,\n fetchAPI,\n controller\n });\n return handleMaybePromise(() => handleMaybePromise(() => handleRequest(request, serverContext), (response) => response, (err) => handleErrorFromRequestHandler(err, fetchAPI.Response)), (response) => {\n if (!controller.signal.aborted && !resEnded) {\n return handleMaybePromise(() => sendResponseToUwsOpts(res, response, controller, fetchAPI), (r) => r, (err) => {\n console.error(`Unexpected error while handling request: ${err.message || err}`);\n });\n }\n });\n }\n function handleEvent(event, ...ctx) {\n if (!event.respondWith || !event.request) {\n throw new TypeError(`Expected FetchEvent, got ${event}`);\n }\n const filteredCtxParts = ctx.filter((partCtx) => partCtx != null);\n const serverContext = filteredCtxParts.length > 0 ? completeAssign({}, event, ...filteredCtxParts) : isolateObject(event);\n const response$ = handleRequest(event.request, serverContext);\n event.respondWith(response$);\n }\n function handleRequestWithWaitUntil(request, ...ctx) {\n const filteredCtxParts = ctx.filter((partCtx) => partCtx != null);\n const serverContext = filteredCtxParts.length > 1 ? completeAssign({}, ...filteredCtxParts) : isolateObject(filteredCtxParts[0], filteredCtxParts[0] == null || filteredCtxParts[0].waitUntil == null ? waitUntil : undefined);\n return handleRequest(request, serverContext);\n }\n const fetchFn = (input, ...maybeCtx) => {\n if (typeof input === "string" || "href" in input) {\n const [initOrCtx, ...restOfCtx] = maybeCtx;\n if (isRequestInit(initOrCtx)) {\n const request2 = new fetchAPI.Request(input, initOrCtx);\n const res$2 = handleRequestWithWaitUntil(request2, ...restOfCtx);\n const signal = initOrCtx.signal;\n if (signal) {\n return handleAbortSignalAndPromiseResponse(res$2, signal);\n }\n return res$2;\n }\n const request = new fetchAPI.Request(input);\n return handleRequestWithWaitUntil(request, ...maybeCtx);\n }\n const res$ = handleRequestWithWaitUntil(input, ...maybeCtx);\n return handleAbortSignalAndPromiseResponse(res$, input.signal);\n };\n const genericRequestHandler = (input, ...maybeCtx) => {\n const [initOrCtxOrRes, ...restOfCtx] = maybeCtx;\n if (isNodeRequest(input)) {\n if (!isServerResponse(initOrCtxOrRes)) {\n throw new TypeError(`Expected ServerResponse, got ${initOrCtxOrRes}`);\n }\n return requestListener(input, initOrCtxOrRes, ...restOfCtx);\n }\n if (isUWSResponse(input)) {\n return handleUWS(input, initOrCtxOrRes, ...restOfCtx);\n }\n if (isServerResponse(initOrCtxOrRes)) {\n throw new TypeError("Got Node response without Node request");\n }\n if (isRequestAccessible(input)) {\n if (isFetchEvent(input)) {\n return handleEvent(input, ...maybeCtx);\n }\n return handleRequestWithWaitUntil(input.request, input, ...maybeCtx);\n }\n return fetchFn(input, ...maybeCtx);\n };\n const adapterObj = {\n handleRequest: handleRequestWithWaitUntil,\n fetch: fetchFn,\n handleNodeRequest,\n handleNodeRequestAndResponse,\n requestListener,\n handleEvent,\n handleUWS,\n handle: genericRequestHandler,\n get disposableStack() {\n return ensureDisposableStack();\n },\n [DisposableSymbols.asyncDispose]() {\n if (_disposableStack && !_disposableStack.disposed) {\n return _disposableStack.disposeAsync();\n }\n return fakePromise();\n },\n dispose() {\n if (_disposableStack && !_disposableStack.disposed) {\n return _disposableStack.disposeAsync();\n }\n return fakePromise();\n },\n waitUntil\n };\n const serverAdapter = new Proxy(genericRequestHandler, {\n has: (_, prop) => {\n return prop in adapterObj || prop in genericRequestHandler || serverAdapterBaseObject && prop in serverAdapterBaseObject;\n },\n get: (_, prop) => {\n if (globalThis.Deno || prop === Symbol.asyncDispose || prop === Symbol.dispose) {\n const adapterProp2 = Reflect.get(adapterObj, prop, adapterObj);\n if (adapterProp2) {\n return adapterProp2;\n }\n }\n const adapterProp = adapterObj[prop];\n if (adapterProp) {\n if (adapterProp.bind) {\n return adapterProp.bind(adapterObj);\n }\n return adapterProp;\n }\n const handleProp = genericRequestHandler[prop];\n if (handleProp) {\n if (handleProp.bind) {\n return handleProp.bind(genericRequestHandler);\n }\n return handleProp;\n }\n if (serverAdapterBaseObject) {\n const serverAdapterBaseObjectProp = serverAdapterBaseObject[prop];\n if (serverAdapterBaseObjectProp) {\n if (serverAdapterBaseObjectProp.bind) {\n return function(...args) {\n const returnedVal = serverAdapterBaseObject[prop](...args);\n if (returnedVal === serverAdapterBaseObject) {\n return serverAdapter;\n }\n return returnedVal;\n };\n }\n return serverAdapterBaseObjectProp;\n }\n }\n },\n apply(_, __, args) {\n return genericRequestHandler(...args);\n }\n });\n return serverAdapter;\n}\n\n// ../api/src/routes/agents/me/me.client.ts\nclass AgentInvocationClient {\n baseURL;\n authToken;\n constructor(options) {\n this.baseURL = options?.baseURL ?? "https://blink.so";\n this.authToken = options?.authToken;\n }\n async deleteStorage(key) {\n const resp = await this.request("DELETE", `/api/agents/me/storage/${encodeURIComponent(key)}`);\n await this.assertResponseStatus(resp, 204);\n }\n async setStorage(key, value, options) {\n const searchParams = new URLSearchParams;\n if (options?.ttl) {\n searchParams.set("ttl", options.ttl.toString());\n }\n const resp = await this.request("PUT", `/api/agents/me/storage/${encodeURIComponent(key)}?${searchParams.toString()}`, value);\n await this.assertResponseStatus(resp, 204);\n }\n async getStorage(key) {\n const resp = await this.request("GET", `/api/agents/me/storage/${encodeURIComponent(key)}`);\n if (resp.status === 404) {\n return;\n }\n await this.assertResponseStatus(resp, 200);\n return await resp.text();\n }\n async listStorage(prefix, options) {\n const resp = await this.request("GET", `/api/agents/me/storage`, JSON.stringify({ prefix, limit: options?.limit, cursor: options?.cursor }));\n await this.assertResponseStatus(resp, 200);\n return await resp.json();\n }\n async upsertChat(key) {\n const resp = await this.request("PUT", `/api/agents/me/chats/${encodeURIComponent(key)}`);\n if (resp.status !== 200 && resp.status !== 204) {\n await this.assertResponseStatus(resp, 200);\n }\n return await resp.json();\n }\n async sendMessages(key, request) {\n const resp = await this.request("POST", `/api/agents/me/chats/${encodeURIComponent(key)}/messages`, JSON.stringify(request));\n await this.assertResponseStatus(resp, 204);\n }\n async getChat(id) {\n const resp = await this.request("GET", `/api/agents/me/chats/${encodeURIComponent(id)}`);\n if (resp.status === 404) {\n return;\n }\n await this.assertResponseStatus(resp, 200);\n return await resp.json();\n }\n async deleteChat(id) {\n const resp = await this.request("DELETE", `/api/agents/me/chats/${encodeURIComponent(id)}`);\n await this.assertResponseStatus(resp, 204);\n }\n async startChat(id) {\n const resp = await this.request("POST", `/api/agents/me/chats/${encodeURIComponent(id)}/start`);\n await this.assertResponseStatus(resp, 204);\n }\n async stopChat(id) {\n const resp = await this.request("POST", `/api/agents/me/chats/${encodeURIComponent(id)}/stop`);\n await this.assertResponseStatus(resp, 204);\n }\n async getMessages(id) {\n const resp = await this.request("GET", `/api/agents/me/chats/${encodeURIComponent(id)}/messages`);\n await this.assertResponseStatus(resp, 200);\n return await resp.json();\n }\n async deleteMessages(id, messageIds) {\n const resp = await this.request("POST", `/api/agents/me/chats/${encodeURIComponent(id)}/messages/delete`, JSON.stringify({ message_ids: messageIds }));\n await this.assertResponseStatus(resp, 204);\n }\n async proxyOtlpTraces(request) {\n if (!this.authToken) {\n const contentType = request.headers.get("content-type")?.toLowerCase() || "";\n if (contentType.includes("application/x-protobuf")) {\n return new Response(new Uint8Array(0), {\n status: 200,\n headers: { "Content-Type": "application/x-protobuf" }\n });\n }\n return new Response(JSON.stringify({}), {\n status: 200,\n headers: { "Content-Type": "application/json" }\n });\n }\n const hopByHopHeaders = new Set([\n "transfer-encoding",\n "content-length",\n "host",\n "connection",\n "keep-alive",\n "proxy-authenticate",\n "proxy-authorization",\n "te",\n "trailer",\n "upgrade"\n ]);\n const headers = {};\n request.headers.forEach((value, key) => {\n if (hopByHopHeaders.has(key.toLowerCase())) {\n return;\n }\n headers[key] = value;\n });\n return this.request(request.method, `/api/otlp/v1/traces`, request.body ?? undefined, { headers });\n }\n async assertResponseStatus(resp, status) {\n if (resp.status === status) {\n return;\n }\n const body = await resp.text();\n try {\n const parsed = JSON.parse(body);\n if (parsed.error) {\n throw new Error(parsed.error);\n }\n throw new Error(body);\n } catch (err) {\n throw new Error(`Expected status ${status}, got ${resp.status}: ${body}`);\n }\n }\n request(method, path, body, options) {\n const url = new URL(path, this.baseURL);\n const headers = new Headers;\n if (this.authToken) {\n headers.set("Authorization", `Bearer ${this.authToken}`);\n }\n if (typeof body === "string") {\n headers.set("Content-Type", "application/json");\n }\n if (options?.headers) {\n for (const [key, value] of Object.entries(options.headers)) {\n headers.set(key, value);\n }\n }\n let signal;\n if (options?.timeout) {\n signal = AbortSignal.timeout(options.timeout);\n }\n return fetch(url.toString(), {\n method,\n headers,\n body,\n signal,\n duplex: body ? "half" : undefined\n });\n }\n}\n\n// ../../node_modules/blink/dist/browser/cookie-C6gQJ2Nm.js\nvar e = (e2) => {\n let t = e2.split(`/`);\n return t[0] === `` && t.shift(), t;\n};\nvar t = (t2) => {\n let { groups: i, path: a } = n(t2), o = e(a);\n return r(o, i);\n};\nvar n = (e2) => {\n let t2 = [];\n return e2 = e2.replace(/\\{[^}]+\\}/g, (e3, n2) => {\n let r = `@${n2}`;\n return t2.push([r, e3]), r;\n }), { groups: t2, path: e2 };\n};\nvar r = (e2, t2) => {\n for (let n2 = t2.length - 1;n2 >= 0; n2--) {\n let [r2] = t2[n2];\n for (let i = e2.length - 1;i >= 0; i--)\n if (e2[i].includes(r2)) {\n e2[i] = e2[i].replace(r2, t2[n2][1]);\n break;\n }\n }\n return e2;\n};\nvar i = {};\nvar a = (e2, t2) => {\n if (e2 === `*`)\n return `*`;\n let n2 = e2.match(/^\\:([^\\{\\}]+)(?:\\{(.+)\\})?$/);\n if (n2) {\n let r2 = `${e2}#${t2}`;\n return i[r2] || (n2[2] ? i[r2] = t2 && t2[0] !== `:` && t2[0] !== `*` ? [r2, n2[1], RegExp(`^${n2[2]}(?=/${t2})`)] : [e2, n2[1], RegExp(`^${n2[2]}$`)] : i[r2] = [e2, n2[1], true]), i[r2];\n }\n return null;\n};\nvar o = (e2, t2) => {\n try {\n return t2(e2);\n } catch {\n return e2.replace(/(?:%[0-9A-Fa-f]{2})+/g, (e3) => {\n try {\n return t2(e3);\n } catch {\n return e3;\n }\n });\n }\n};\nvar s = (e2) => o(e2, decodeURI);\nvar c = (e2) => {\n let t2 = e2.url, n2 = t2.indexOf(`/`, t2.indexOf(`:`) + 4), r2 = n2;\n for (;r2 < t2.length; r2++) {\n let e3 = t2.charCodeAt(r2);\n if (e3 === 37) {\n let e4 = t2.indexOf(`?`, r2), i2 = t2.slice(n2, e4 === -1 ? undefined : e4);\n return s(i2.includes(`%25`) ? i2.replace(/%25/g, `%2525`) : i2);\n } else if (e3 === 63)\n break;\n }\n return t2.slice(n2, r2);\n};\nvar l = (e2) => {\n let t2 = c(e2);\n return t2.length > 1 && t2.at(-1) === `/` ? t2.slice(0, -1) : t2;\n};\nvar u = (e2, t2, ...n2) => (n2.length && (t2 = u(t2, ...n2)), `${e2?.[0] === `/` ? `` : `/`}${e2}${t2 === `/` ? `` : `${e2?.at(-1) === `/` ? `` : `/`}${t2?.[0] === `/` ? t2.slice(1) : t2}`}`);\nvar d = (e2) => {\n if (e2.charCodeAt(e2.length - 1) !== 63 || !e2.includes(`:`))\n return null;\n let t2 = e2.split(`/`), n2 = [], r2 = ``;\n return t2.forEach((e3) => {\n if (e3 !== `` && !/\\:/.test(e3))\n r2 += `/` + e3;\n else if (/\\:/.test(e3))\n if (/\\?/.test(e3)) {\n n2.length === 0 && r2 === `` ? n2.push(`/`) : n2.push(r2);\n let t3 = e3.replace(`?`, ``);\n r2 += `/` + t3, n2.push(r2);\n } else\n r2 += `/` + e3;\n }), n2.filter((e3, t3, n3) => n3.indexOf(e3) === t3);\n};\nvar f = (e2) => /[%+]/.test(e2) ? (e2.indexOf(`+`) !== -1 && (e2 = e2.replace(/\\+/g, ` `)), e2.indexOf(`%`) === -1 ? e2 : o(e2, g)) : e2;\nvar p = (e2, t2, n2) => {\n let r2;\n if (!n2 && t2 && !/[%+]/.test(t2)) {\n let n3 = e2.indexOf(`?${t2}`, 8);\n for (n3 === -1 && (n3 = e2.indexOf(`&${t2}`, 8));n3 !== -1; ) {\n let r3 = e2.charCodeAt(n3 + t2.length + 1);\n if (r3 === 61) {\n let r4 = n3 + t2.length + 2, i3 = e2.indexOf(`&`, r4);\n return f(e2.slice(r4, i3 === -1 ? undefined : i3));\n } else if (r3 == 38 || isNaN(r3))\n return ``;\n n3 = e2.indexOf(`&${t2}`, n3 + 1);\n }\n if (r2 = /[%+]/.test(e2), !r2)\n return;\n }\n let i2 = {};\n r2 ??= /[%+]/.test(e2);\n let a2 = e2.indexOf(`?`, 8);\n for (;a2 !== -1; ) {\n let t3 = e2.indexOf(`&`, a2 + 1), o2 = e2.indexOf(`=`, a2);\n o2 > t3 && t3 !== -1 && (o2 = -1);\n let s2 = e2.slice(a2 + 1, o2 === -1 ? t3 === -1 ? undefined : t3 : o2);\n if (r2 && (s2 = f(s2)), a2 = t3, s2 === ``)\n continue;\n let c2;\n o2 === -1 ? c2 = `` : (c2 = e2.slice(o2 + 1, t3 === -1 ? undefined : t3), r2 && (c2 = f(c2))), n2 ? (i2[s2] && Array.isArray(i2[s2]) || (i2[s2] = []), i2[s2].push(c2)) : i2[s2] ??= c2;\n }\n return t2 ? i2[t2] : i2;\n};\nvar m = p;\nvar h = (e2, t2) => p(e2, t2, true);\nvar g = decodeURIComponent;\nvar _ = /^[\\w!#$%&\'*.^`|~+-]+$/;\nvar v = /^[ !#-:<-[\\]-~]*$/;\nvar y = (e2, t2) => {\n if (t2 && e2.indexOf(t2) === -1)\n return {};\n let n2 = e2.trim().split(`;`), r2 = {};\n for (let e3 of n2) {\n e3 = e3.trim();\n let n3 = e3.indexOf(`=`);\n if (n3 === -1)\n continue;\n let i2 = e3.substring(0, n3).trim();\n if (t2 && t2 !== i2 || !_.test(i2))\n continue;\n let a2 = e3.substring(n3 + 1).trim();\n if (a2.startsWith(`"`) && a2.endsWith(`"`) && (a2 = a2.slice(1, -1)), v.test(a2) && (r2[i2] = a2.indexOf(`%`) === -1 ? a2 : o(a2, g), t2))\n break;\n }\n return r2;\n};\n\n// ../../node_modules/blink/dist/browser/control/index.js\nvar f2 = (e2, t2, n2) => (r2, i2) => {\n let a2 = -1;\n return o2(0);\n async function o2(s2) {\n if (s2 <= a2)\n throw Error(`next() called multiple times`);\n a2 = s2;\n let c2, l2 = false, u2;\n if (e2[s2] ? (u2 = e2[s2][0][0], r2.req.routeIndex = s2) : u2 = s2 === e2.length && i2 || undefined, u2)\n try {\n c2 = await u2(r2, () => o2(s2 + 1));\n } catch (e3) {\n if (e3 instanceof Error && t2)\n r2.error = e3, c2 = await t2(e3, r2), l2 = true;\n else\n throw e3;\n }\n else\n r2.finalized === false && n2 && (c2 = await n2(r2));\n return c2 && (r2.finalized === false || l2) && (r2.res = c2), r2;\n }\n};\nvar p2 = Symbol();\nvar m2 = async (e2, t2 = Object.create(null)) => {\n let { all: n2 = false, dot: r2 = false } = t2, i2 = (e2 instanceof y2 ? e2.raw.headers : e2.headers).get(`Content-Type`);\n return i2?.startsWith(`multipart/form-data`) || i2?.startsWith(`application/x-www-form-urlencoded`) ? h2(e2, { all: n2, dot: r2 }) : {};\n};\nasync function h2(e2, t2) {\n let n2 = await e2.formData();\n return n2 ? g2(n2, t2) : {};\n}\nfunction g2(e2, t2) {\n let n2 = Object.create(null);\n return e2.forEach((e3, r2) => {\n t2.all || r2.endsWith(`[]`) ? ee(n2, r2, e3) : n2[r2] = e3;\n }), t2.dot && Object.entries(n2).forEach(([e3, t3]) => {\n e3.includes(`.`) && (_2(n2, e3, t3), delete n2[e3]);\n }), n2;\n}\nvar ee = (e2, t2, n2) => {\n e2[t2] === undefined ? t2.endsWith(`[]`) ? e2[t2] = [n2] : e2[t2] = n2 : Array.isArray(e2[t2]) ? e2[t2].push(n2) : e2[t2] = [e2[t2], n2];\n};\nvar _2 = (e2, t2, n2) => {\n let r2 = e2, i2 = t2.split(`.`);\n i2.forEach((e3, t3) => {\n t3 === i2.length - 1 ? r2[e3] = n2 : ((!r2[e3] || typeof r2[e3] != `object` || Array.isArray(r2[e3]) || r2[e3] instanceof File) && (r2[e3] = Object.create(null)), r2 = r2[e3]);\n });\n};\nvar v2 = (e2) => o(e2, g);\nvar y2 = class {\n raw;\n #validatedData;\n #matchResult;\n routeIndex = 0;\n path;\n bodyCache = {};\n constructor(e2, t2 = `/`, n2 = [[]]) {\n this.raw = e2, this.path = t2, this.#matchResult = n2, this.#validatedData = {};\n }\n param(e2) {\n return e2 ? this.#getDecodedParam(e2) : this.#getAllDecodedParams();\n }\n #getDecodedParam(e2) {\n let t2 = this.#matchResult[0][this.routeIndex][1][e2], n2 = this.#getParamValue(t2);\n return n2 && /\\%/.test(n2) ? v2(n2) : n2;\n }\n #getAllDecodedParams() {\n let e2 = {}, t2 = Object.keys(this.#matchResult[0][this.routeIndex][1]);\n for (let n2 of t2) {\n let t3 = this.#getParamValue(this.#matchResult[0][this.routeIndex][1][n2]);\n t3 !== undefined && (e2[n2] = /\\%/.test(t3) ? v2(t3) : t3);\n }\n return e2;\n }\n #getParamValue(e2) {\n return this.#matchResult[1] ? this.#matchResult[1][e2] : e2;\n }\n query(e2) {\n return m(this.url, e2);\n }\n queries(e2) {\n return h(this.url, e2);\n }\n header(e2) {\n if (e2)\n return this.raw.headers.get(e2) ?? undefined;\n let t2 = {};\n return this.raw.headers.forEach((e3, n2) => {\n t2[n2] = e3;\n }), t2;\n }\n async parseBody(e2) {\n return this.bodyCache.parsedBody ??= await m2(this, e2);\n }\n #cachedBody = (e2) => {\n let { bodyCache: t2, raw: n2 } = this, r2 = t2[e2];\n if (r2)\n return r2;\n let i2 = Object.keys(t2)[0];\n return i2 ? t2[i2].then((t3) => (i2 === `json` && (t3 = JSON.stringify(t3)), new Response(t3)[e2]())) : t2[e2] = n2[e2]();\n };\n json() {\n return this.#cachedBody(`text`).then((e2) => JSON.parse(e2));\n }\n text() {\n return this.#cachedBody(`text`);\n }\n arrayBuffer() {\n return this.#cachedBody(`arrayBuffer`);\n }\n blob() {\n return this.#cachedBody(`blob`);\n }\n formData() {\n return this.#cachedBody(`formData`);\n }\n addValidatedData(e2, t2) {\n this.#validatedData[e2] = t2;\n }\n valid(e2) {\n return this.#validatedData[e2];\n }\n get url() {\n return this.raw.url;\n }\n get method() {\n return this.raw.method;\n }\n get [p2]() {\n return this.#matchResult;\n }\n get matchedRoutes() {\n return this.#matchResult[0].map(([[, e2]]) => e2);\n }\n get routePath() {\n return this.#matchResult[0].map(([[, e2]]) => e2)[this.routeIndex].path;\n }\n};\nvar te = { Stringify: 1, BeforeStream: 2, Stream: 3 };\nvar ne = (e2, t2) => {\n let n2 = new String(e2);\n return n2.isEscaped = true, n2.callbacks = t2, n2;\n};\nvar b = async (e2, t2, n2, r2, i2) => {\n typeof e2 == `object` && !(e2 instanceof String) && (e2 instanceof Promise || (e2 = e2.toString()), e2 instanceof Promise && (e2 = await e2));\n let a2 = e2.callbacks;\n if (!a2?.length)\n return Promise.resolve(e2);\n i2 ? i2[0] += e2 : i2 = [e2];\n let o2 = Promise.all(a2.map((e3) => e3({ phase: t2, buffer: i2, context: r2 }))).then((e3) => Promise.all(e3.filter(Boolean).map((e4) => b(e4, t2, false, r2, i2))).then(() => i2[0]));\n return n2 ? ne(await o2, a2) : o2;\n};\nvar x = `text/plain; charset=UTF-8`;\nvar S = (e2, t2) => ({ "Content-Type": e2, ...t2 });\nvar re = class {\n #rawRequest;\n #req;\n env = {};\n #var;\n finalized = false;\n error;\n #status;\n #executionCtx;\n #res;\n #layout;\n #renderer;\n #notFoundHandler;\n #preparedHeaders;\n #matchResult;\n #path;\n constructor(e2, t2) {\n this.#rawRequest = e2, t2 && (this.#executionCtx = t2.executionCtx, this.env = t2.env, this.#notFoundHandler = t2.notFoundHandler, this.#path = t2.path, this.#matchResult = t2.matchResult);\n }\n get req() {\n return this.#req ??= new y2(this.#rawRequest, this.#path, this.#matchResult), this.#req;\n }\n get event() {\n if (this.#executionCtx && `respondWith` in this.#executionCtx)\n return this.#executionCtx;\n throw Error(`This context has no FetchEvent`);\n }\n get executionCtx() {\n if (this.#executionCtx)\n return this.#executionCtx;\n throw Error(`This context has no ExecutionContext`);\n }\n get res() {\n return this.#res ||= new Response(null, { headers: this.#preparedHeaders ??= new Headers });\n }\n set res(e2) {\n if (this.#res && e2) {\n e2 = new Response(e2.body, e2);\n for (let [t2, n2] of this.#res.headers.entries())\n if (t2 !== `content-type`)\n if (t2 === `set-cookie`) {\n let t3 = this.#res.headers.getSetCookie();\n e2.headers.delete(`set-cookie`);\n for (let n3 of t3)\n e2.headers.append(`set-cookie`, n3);\n } else\n e2.headers.set(t2, n2);\n }\n this.#res = e2, this.finalized = true;\n }\n render = (...e2) => (this.#renderer ??= (e3) => this.html(e3), this.#renderer(...e2));\n setLayout = (e2) => this.#layout = e2;\n getLayout = () => this.#layout;\n setRenderer = (e2) => {\n this.#renderer = e2;\n };\n header = (e2, t2, n2) => {\n this.finalized && (this.#res = new Response(this.#res.body, this.#res));\n let r2 = this.#res ? this.#res.headers : this.#preparedHeaders ??= new Headers;\n t2 === undefined ? r2.delete(e2) : n2?.append ? r2.append(e2, t2) : r2.set(e2, t2);\n };\n status = (e2) => {\n this.#status = e2;\n };\n set = (e2, t2) => {\n this.#var ??= new Map, this.#var.set(e2, t2);\n };\n get = (e2) => this.#var ? this.#var.get(e2) : undefined;\n get var() {\n return this.#var ? Object.fromEntries(this.#var) : {};\n }\n #newResponse(e2, t2, n2) {\n let r2 = this.#res ? new Headers(this.#res.headers) : this.#preparedHeaders ?? new Headers;\n if (typeof t2 == `object` && `headers` in t2) {\n let e3 = t2.headers instanceof Headers ? t2.headers : new Headers(t2.headers);\n for (let [t3, n3] of e3)\n t3.toLowerCase() === `set-cookie` ? r2.append(t3, n3) : r2.set(t3, n3);\n }\n if (n2)\n for (let [e3, t3] of Object.entries(n2))\n if (typeof t3 == `string`)\n r2.set(e3, t3);\n else {\n r2.delete(e3);\n for (let n3 of t3)\n r2.append(e3, n3);\n }\n let i2 = typeof t2 == `number` ? t2 : t2?.status ?? this.#status;\n return new Response(e2, { status: i2, headers: r2 });\n }\n newResponse = (...e2) => this.#newResponse(...e2);\n body = (e2, t2, n2) => this.#newResponse(e2, t2, n2);\n text = (e2, t2, n2) => !this.#preparedHeaders && !this.#status && !t2 && !n2 && !this.finalized ? new Response(e2) : this.#newResponse(e2, t2, S(x, n2));\n json = (e2, t2, n2) => this.#newResponse(JSON.stringify(e2), t2, S(`application/json`, n2));\n html = (e2, t2, n2) => {\n let r2 = (e3) => this.#newResponse(e3, t2, S(`text/html; charset=UTF-8`, n2));\n return typeof e2 == `object` ? b(e2, te.Stringify, false, {}).then(r2) : r2(e2);\n };\n redirect = (e2, t2) => {\n let n2 = String(e2);\n return this.header(`Location`, /[^\\x00-\\xFF]/.test(n2) ? encodeURI(n2) : n2), this.newResponse(null, t2 ?? 302);\n };\n notFound = () => (this.#notFoundHandler ??= () => new Response, this.#notFoundHandler(this));\n};\nvar C = `ALL`;\nvar ie = `all`;\nvar ae = [`get`, `post`, `put`, `delete`, `options`, `patch`];\nvar w = `Can not add a route since the matcher is already built.`;\nvar T = class extends Error {\n};\nvar E = `__COMPOSED_HANDLER`;\nvar D = (e2) => e2.text(`404 Not Found`, 404);\nvar O = (e2, t2) => {\n if (`getResponse` in e2) {\n let n2 = e2.getResponse();\n return t2.newResponse(n2.body, n2);\n }\n return console.error(e2), t2.text(`Internal Server Error`, 500);\n};\nvar k = class {\n get;\n post;\n put;\n delete;\n options;\n patch;\n all;\n on;\n use;\n router;\n getPath;\n _basePath = `/`;\n #path = `/`;\n routes = [];\n constructor(e2 = {}) {\n [...ae, ie].forEach((e3) => {\n this[e3] = (t3, ...n2) => (typeof t3 == `string` ? this.#path = t3 : this.#addRoute(e3, this.#path, t3), n2.forEach((t4) => {\n this.#addRoute(e3, this.#path, t4);\n }), this);\n }), this.on = (e3, t3, ...n2) => {\n for (let r2 of [t3].flat()) {\n this.#path = r2;\n for (let t4 of [e3].flat())\n n2.map((e4) => {\n this.#addRoute(t4.toUpperCase(), this.#path, e4);\n });\n }\n return this;\n }, this.use = (e3, ...t3) => (typeof e3 == `string` ? this.#path = e3 : (this.#path = `*`, t3.unshift(e3)), t3.forEach((e4) => {\n this.#addRoute(C, this.#path, e4);\n }), this);\n let { strict: t2, ...i2 } = e2;\n Object.assign(this, i2), this.getPath = t2 ?? true ? e2.getPath ?? c : l;\n }\n #clone() {\n let e2 = new k({ router: this.router, getPath: this.getPath });\n return e2.errorHandler = this.errorHandler, e2.#notFoundHandler = this.#notFoundHandler, e2.routes = this.routes, e2;\n }\n #notFoundHandler = D;\n errorHandler = O;\n route(e2, t2) {\n let n2 = this.basePath(e2);\n return t2.routes.map((e3) => {\n let r2;\n t2.errorHandler === O ? r2 = e3.handler : (r2 = async (n3, r3) => (await f2([], t2.errorHandler)(n3, () => e3.handler(n3, r3))).res, r2[E] = e3.handler), n2.#addRoute(e3.method, e3.path, r2);\n }), this;\n }\n basePath(e2) {\n let t2 = this.#clone();\n return t2._basePath = u(this._basePath, e2), t2;\n }\n onError = (e2) => (this.errorHandler = e2, this);\n notFound = (e2) => (this.#notFoundHandler = e2, this);\n mount(e2, t2, n2) {\n let r2, i2;\n n2 && (typeof n2 == `function` ? i2 = n2 : (i2 = n2.optionHandler, r2 = n2.replaceRequest === false ? (e3) => e3 : n2.replaceRequest));\n let a2 = i2 ? (e3) => {\n let t3 = i2(e3);\n return Array.isArray(t3) ? t3 : [t3];\n } : (e3) => {\n let t3;\n try {\n t3 = e3.executionCtx;\n } catch {}\n return [e3.env, t3];\n };\n return r2 ||= (() => {\n let t3 = u(this._basePath, e2), n3 = t3 === `/` ? 0 : t3.length;\n return (e3) => {\n let t4 = new URL(e3.url);\n return t4.pathname = t4.pathname.slice(n3) || `/`, new Request(t4, e3);\n };\n })(), this.#addRoute(C, u(e2, `*`), async (e3, n3) => {\n let i3 = await t2(r2(e3.req.raw), ...a2(e3));\n if (i3)\n return i3;\n await n3();\n }), this;\n }\n #addRoute(e2, t2, n2) {\n e2 = e2.toUpperCase(), t2 = u(this._basePath, t2);\n let r2 = { basePath: this._basePath, path: t2, method: e2, handler: n2 };\n this.router.add(e2, t2, [n2, r2]), this.routes.push(r2);\n }\n #handleError(e2, t2) {\n if (e2 instanceof Error)\n return this.errorHandler(e2, t2);\n throw e2;\n }\n #dispatch(e2, t2, n2, r2) {\n if (r2 === `HEAD`)\n return (async () => new Response(null, await this.#dispatch(e2, t2, n2, `GET`)))();\n let i2 = this.getPath(e2, { env: n2 }), a2 = this.router.match(r2, i2), o2 = new re(e2, { path: i2, matchResult: a2, env: n2, executionCtx: t2, notFoundHandler: this.#notFoundHandler });\n if (a2[0].length === 1) {\n let e3;\n try {\n e3 = a2[0][0][0][0](o2, async () => {\n o2.res = await this.#notFoundHandler(o2);\n });\n } catch (e4) {\n return this.#handleError(e4, o2);\n }\n return e3 instanceof Promise ? e3.then((e4) => e4 || (o2.finalized ? o2.res : this.#notFoundHandler(o2))).catch((e4) => this.#handleError(e4, o2)) : e3 ?? this.#notFoundHandler(o2);\n }\n let s2 = f2(a2[0], this.errorHandler, this.#notFoundHandler);\n return (async () => {\n try {\n let e3 = await s2(o2);\n if (!e3.finalized)\n throw Error("Context is not finalized. Did you forget to return a Response object or `await next()`?");\n return e3.res;\n } catch (e3) {\n return this.#handleError(e3, o2);\n }\n })();\n }\n fetch = (e2, ...t2) => this.#dispatch(e2, t2[1], t2[0], e2.method);\n request = (e2, t2, n2, r2) => e2 instanceof Request ? this.fetch(t2 ? new Request(e2, t2) : e2, n2, r2) : (e2 = e2.toString(), this.fetch(new Request(/^https?:\\/\\//.test(e2) ? e2 : `http://localhost${u(`/`, e2)}`, t2), n2, r2));\n fire = () => {\n addEventListener(`fetch`, (e2) => {\n e2.respondWith(this.#dispatch(e2.request, e2, undefined, e2.request.method));\n });\n };\n};\nvar A = `[^/]+`;\nvar j = `.*`;\nvar M = `(?:|/.*)`;\nvar N = Symbol();\nvar oe = new Set(`.\\\\+*[^]$()`);\nfunction se(e2, t2) {\n return e2.length === 1 ? t2.length === 1 ? e2 < t2 ? -1 : 1 : -1 : t2.length === 1 || e2 === j || e2 === M ? 1 : t2 === j || t2 === M ? -1 : e2 === A ? 1 : t2 === A ? -1 : e2.length === t2.length ? e2 < t2 ? -1 : 1 : t2.length - e2.length;\n}\nvar P = class {\n #index;\n #varIndex;\n #children = Object.create(null);\n insert(e2, t2, n2, r2, i2) {\n if (e2.length === 0) {\n if (this.#index !== undefined)\n throw N;\n if (i2)\n return;\n this.#index = t2;\n return;\n }\n let [a2, ...o2] = e2, s2 = a2 === `*` ? o2.length === 0 ? [``, ``, j] : [``, ``, A] : a2 === `/*` ? [``, ``, M] : a2.match(/^\\:([^\\{\\}]+)(?:\\{(.+)\\})?$/), c2;\n if (s2) {\n let e3 = s2[1], t3 = s2[2] || A;\n if (e3 && s2[2] && (t3 === `.*` || (t3 = t3.replace(/^\\((?!\\?:)(?=[^)]+\\)$)/, `(?:`), /\\((?!\\?:)/.test(t3))))\n throw N;\n if (c2 = this.#children[t3], !c2) {\n if (Object.keys(this.#children).some((e4) => e4 !== j && e4 !== M))\n throw N;\n if (i2)\n return;\n c2 = this.#children[t3] = new P, e3 !== `` && (c2.#varIndex = r2.varIndex++);\n }\n !i2 && e3 !== `` && n2.push([e3, c2.#varIndex]);\n } else if (c2 = this.#children[a2], !c2) {\n if (Object.keys(this.#children).some((e3) => e3.length > 1 && e3 !== j && e3 !== M))\n throw N;\n if (i2)\n return;\n c2 = this.#children[a2] = new P;\n }\n c2.insert(o2, t2, n2, r2, i2);\n }\n buildRegExpStr() {\n let e2 = Object.keys(this.#children).sort(se).map((e3) => {\n let t2 = this.#children[e3];\n return (typeof t2.#varIndex == `number` ? `(${e3})@${t2.#varIndex}` : oe.has(e3) ? `\\\\${e3}` : e3) + t2.buildRegExpStr();\n });\n return typeof this.#index == `number` && e2.unshift(`#${this.#index}`), e2.length === 0 ? `` : e2.length === 1 ? e2[0] : `(?:` + e2.join(`|`) + `)`;\n }\n};\nvar ce = class {\n #context = { varIndex: 0 };\n #root = new P;\n insert(e2, t2, n2) {\n let r2 = [], i2 = [];\n for (let t3 = 0;; ) {\n let n3 = false;\n if (e2 = e2.replace(/\\{[^}]+\\}/g, (e3) => {\n let r3 = `@\\\\${t3}`;\n return i2[t3] = [r3, e3], t3++, n3 = true, r3;\n }), !n3)\n break;\n }\n let a2 = e2.match(/(?::[^\\/]+)|(?:\\/\\*$)|./g) || [];\n for (let e3 = i2.length - 1;e3 >= 0; e3--) {\n let [t3] = i2[e3];\n for (let n3 = a2.length - 1;n3 >= 0; n3--)\n if (a2[n3].indexOf(t3) !== -1) {\n a2[n3] = a2[n3].replace(t3, i2[e3][1]);\n break;\n }\n }\n return this.#root.insert(a2, t2, r2, this.#context, n2), r2;\n }\n buildRegExp() {\n let e2 = this.#root.buildRegExpStr();\n if (e2 === ``)\n return [/^$/, [], []];\n let t2 = 0, n2 = [], r2 = [];\n return e2 = e2.replace(/#(\\d+)|@(\\d+)|\\.\\*\\$/g, (e3, i2, a2) => i2 === undefined ? (a2 === undefined || (r2[Number(a2)] = ++t2), ``) : (n2[++t2] = Number(i2), `$()`)), [RegExp(`^${e2}`), n2, r2];\n }\n};\nvar F = [];\nvar I = [/^$/, [], Object.create(null)];\nvar L = Object.create(null);\nfunction R(e2) {\n return L[e2] ??= RegExp(e2 === `*` ? `` : `^${e2.replace(/\\/\\*$|([.\\\\+*[^\\]$()])/g, (e3, t2) => t2 ? `\\\\${t2}` : `(?:|/.*)`)}$`);\n}\nfunction z() {\n L = Object.create(null);\n}\nfunction B(e2) {\n let t2 = new ce, n2 = [];\n if (e2.length === 0)\n return I;\n let r2 = e2.map((e3) => [!/\\*|\\/:/.test(e3[0]), ...e3]).sort(([e3, t3], [n3, r3]) => e3 ? 1 : n3 ? -1 : t3.length - r3.length), i2 = Object.create(null);\n for (let e3 = 0, a3 = -1, o3 = r2.length;e3 < o3; e3++) {\n let [o4, s3, c3] = r2[e3];\n o4 ? i2[s3] = [c3.map(([e4]) => [e4, Object.create(null)]), F] : a3++;\n let l2;\n try {\n l2 = t2.insert(s3, a3, o4);\n } catch (e4) {\n throw e4 === N ? new T(s3) : e4;\n }\n o4 || (n2[a3] = c3.map(([e4, t3]) => {\n let n3 = Object.create(null);\n for (--t3;t3 >= 0; t3--) {\n let [e5, r3] = l2[t3];\n n3[e5] = r3;\n }\n return [e4, n3];\n }));\n }\n let [a2, o2, s2] = t2.buildRegExp();\n for (let e3 = 0, t3 = n2.length;e3 < t3; e3++)\n for (let t4 = 0, r3 = n2[e3].length;t4 < r3; t4++) {\n let r4 = n2[e3][t4]?.[1];\n if (!r4)\n continue;\n let i3 = Object.keys(r4);\n for (let e4 = 0, t5 = i3.length;e4 < t5; e4++)\n r4[i3[e4]] = s2[r4[i3[e4]]];\n }\n let c2 = [];\n for (let e3 in o2)\n c2[e3] = n2[o2[e3]];\n return [a2, c2, i2];\n}\nfunction V(e2, t2) {\n if (e2) {\n for (let n2 of Object.keys(e2).sort((e3, t3) => t3.length - e3.length))\n if (R(n2).test(t2))\n return [...e2[n2]];\n }\n}\nvar H = class {\n name = `RegExpRouter`;\n #middleware;\n #routes;\n constructor() {\n this.#middleware = { [C]: Object.create(null) }, this.#routes = { [C]: Object.create(null) };\n }\n add(t2, n2, r2) {\n let i2 = this.#middleware, a2 = this.#routes;\n if (!i2 || !a2)\n throw Error(w);\n i2[t2] || [i2, a2].forEach((e2) => {\n e2[t2] = Object.create(null), Object.keys(e2[C]).forEach((n3) => {\n e2[t2][n3] = [...e2[C][n3]];\n });\n }), n2 === `/*` && (n2 = `*`);\n let o2 = (n2.match(/\\/:/g) || []).length;\n if (/\\*$/.test(n2)) {\n let e2 = R(n2);\n t2 === C ? Object.keys(i2).forEach((e3) => {\n i2[e3][n2] ||= V(i2[e3], n2) || V(i2[C], n2) || [];\n }) : i2[t2][n2] ||= V(i2[t2], n2) || V(i2[C], n2) || [], Object.keys(i2).forEach((n3) => {\n (t2 === C || t2 === n3) && Object.keys(i2[n3]).forEach((t3) => {\n e2.test(t3) && i2[n3][t3].push([r2, o2]);\n });\n }), Object.keys(a2).forEach((n3) => {\n (t2 === C || t2 === n3) && Object.keys(a2[n3]).forEach((t3) => e2.test(t3) && a2[n3][t3].push([r2, o2]));\n });\n return;\n }\n let s2 = d(n2) || [n2];\n for (let e2 = 0, n3 = s2.length;e2 < n3; e2++) {\n let c2 = s2[e2];\n Object.keys(a2).forEach((s3) => {\n (t2 === C || t2 === s3) && (a2[s3][c2] ||= [...V(i2[s3], c2) || V(i2[C], c2) || []], a2[s3][c2].push([r2, o2 - n3 + e2 + 1]));\n });\n }\n }\n match(e2, t2) {\n z();\n let n2 = this.#buildAllMatchers();\n return this.match = (e3, t3) => {\n let r2 = n2[e3] || n2[C], i2 = r2[2][t3];\n if (i2)\n return i2;\n let a2 = t3.match(r2[0]);\n if (!a2)\n return [[], F];\n let o2 = a2.indexOf(``, 1);\n return [r2[1][o2], a2];\n }, this.match(e2, t2);\n }\n #buildAllMatchers() {\n let e2 = Object.create(null);\n return Object.keys(this.#routes).concat(Object.keys(this.#middleware)).forEach((t2) => {\n e2[t2] ||= this.#buildMatcher(t2);\n }), this.#middleware = this.#routes = undefined, e2;\n }\n #buildMatcher(e2) {\n let t2 = [], n2 = e2 === C;\n return [this.#middleware, this.#routes].forEach((r2) => {\n let i2 = r2[e2] ? Object.keys(r2[e2]).map((t3) => [t3, r2[e2][t3]]) : [];\n i2.length === 0 ? e2 !== C && t2.push(...Object.keys(r2[C]).map((e3) => [e3, r2[C][e3]])) : (n2 ||= true, t2.push(...i2));\n }), n2 ? B(t2) : null;\n }\n};\nvar U = class {\n name = `SmartRouter`;\n #routers = [];\n #routes = [];\n constructor(e2) {\n this.#routers = e2.routers;\n }\n add(e2, t2, n2) {\n if (!this.#routes)\n throw Error(w);\n this.#routes.push([e2, t2, n2]);\n }\n match(e2, t2) {\n if (!this.#routes)\n throw Error(`Fatal error`);\n let n2 = this.#routers, r2 = this.#routes, i2 = n2.length, a2 = 0, o2;\n for (;a2 < i2; a2++) {\n let i3 = n2[a2];\n try {\n for (let e3 = 0, t3 = r2.length;e3 < t3; e3++)\n i3.add(...r2[e3]);\n o2 = i3.match(e2, t2);\n } catch (e3) {\n if (e3 instanceof T)\n continue;\n throw e3;\n }\n this.match = i3.match.bind(i3), this.#routers = [i3], this.#routes = undefined;\n break;\n }\n if (a2 === i2)\n throw Error(`Fatal error`);\n return this.name = `SmartRouter + ${this.activeRouter.name}`, o2;\n }\n get activeRouter() {\n if (this.#routes || this.#routers.length !== 1)\n throw Error(`No active router has been determined yet.`);\n return this.#routers[0];\n }\n};\nvar W = Object.create(null);\nvar G = class {\n #methods;\n #children;\n #patterns;\n #order = 0;\n #params = W;\n constructor(e2, t2, n2) {\n if (this.#children = n2 || Object.create(null), this.#methods = [], e2 && t2) {\n let n3 = Object.create(null);\n n3[e2] = { handler: t2, possibleKeys: [], score: 0 }, this.#methods = [n3];\n }\n this.#patterns = [];\n }\n insert(e2, t2, n2) {\n this.#order = ++this.#order;\n let r2 = this, a2 = t(t2), o2 = [];\n for (let e3 = 0, t3 = a2.length;e3 < t3; e3++) {\n let t4 = a2[e3], n3 = a2[e3 + 1], s2 = a(t4, n3), c2 = Array.isArray(s2) ? s2[0] : t4;\n if (c2 in r2.#children) {\n r2 = r2.#children[c2], s2 && o2.push(s2[1]);\n continue;\n }\n r2.#children[c2] = new G, s2 && (r2.#patterns.push(s2), o2.push(s2[1])), r2 = r2.#children[c2];\n }\n return r2.#methods.push({ [e2]: { handler: n2, possibleKeys: o2.filter((e3, t3, n3) => n3.indexOf(e3) === t3), score: this.#order } }), r2;\n }\n #getHandlerSets(e2, t2, n2, r2) {\n let i2 = [];\n for (let a2 = 0, o2 = e2.#methods.length;a2 < o2; a2++) {\n let o3 = e2.#methods[a2], s2 = o3[t2] || o3[C], c2 = {};\n if (s2 !== undefined && (s2.params = Object.create(null), i2.push(s2), n2 !== W || r2 && r2 !== W))\n for (let e3 = 0, t3 = s2.possibleKeys.length;e3 < t3; e3++) {\n let t4 = s2.possibleKeys[e3], i3 = c2[s2.score];\n s2.params[t4] = r2?.[t4] && !i3 ? r2[t4] : n2[t4] ?? r2?.[t4], c2[s2.score] = true;\n }\n }\n return i2;\n }\n search(e2, t2) {\n let n2 = [];\n this.#params = W;\n let r2 = [this], i2 = e(t2), a2 = [];\n for (let t3 = 0, o2 = i2.length;t3 < o2; t3++) {\n let s2 = i2[t3], c2 = t3 === o2 - 1, l2 = [];\n for (let o3 = 0, u2 = r2.length;o3 < u2; o3++) {\n let u3 = r2[o3], d2 = u3.#children[s2];\n d2 && (d2.#params = u3.#params, c2 ? (d2.#children[`*`] && n2.push(...this.#getHandlerSets(d2.#children[`*`], e2, u3.#params)), n2.push(...this.#getHandlerSets(d2, e2, u3.#params))) : l2.push(d2));\n for (let r3 = 0, o4 = u3.#patterns.length;r3 < o4; r3++) {\n let o5 = u3.#patterns[r3], d3 = u3.#params === W ? {} : { ...u3.#params };\n if (o5 === `*`) {\n let t4 = u3.#children[`*`];\n t4 && (n2.push(...this.#getHandlerSets(t4, e2, u3.#params)), t4.#params = d3, l2.push(t4));\n continue;\n }\n let [f3, p3, m3] = o5;\n if (!s2 && !(m3 instanceof RegExp))\n continue;\n let h3 = u3.#children[f3], g3 = i2.slice(t3).join(`/`);\n if (m3 instanceof RegExp) {\n let t4 = m3.exec(g3);\n if (t4) {\n if (d3[p3] = t4[0], n2.push(...this.#getHandlerSets(h3, e2, u3.#params, d3)), Object.keys(h3.#children).length) {\n h3.#params = d3;\n let e3 = t4[0].match(/\\//)?.length ?? 0;\n (a2[e3] ||= []).push(h3);\n }\n continue;\n }\n }\n (m3 === true || m3.test(s2)) && (d3[p3] = s2, c2 ? (n2.push(...this.#getHandlerSets(h3, e2, d3, u3.#params)), h3.#children[`*`] && n2.push(...this.#getHandlerSets(h3.#children[`*`], e2, d3, u3.#params))) : (h3.#params = d3, l2.push(h3)));\n }\n }\n r2 = l2.concat(a2.shift() ?? []);\n }\n return n2.length > 1 && n2.sort((e3, t3) => e3.score - t3.score), [n2.map(({ handler: e3, params: t3 }) => [e3, t3])];\n }\n};\nvar le = class {\n name = `TrieRouter`;\n #node;\n constructor() {\n this.#node = new G;\n }\n add(t2, n2, r2) {\n let i2 = d(n2);\n if (i2) {\n for (let e2 = 0, n3 = i2.length;e2 < n3; e2++)\n this.#node.insert(t2, i2[e2], r2);\n return;\n }\n this.#node.insert(t2, n2, r2);\n }\n match(e2, t2) {\n return this.#node.search(e2, t2);\n }\n};\nvar K = class extends k {\n constructor(e2 = {}) {\n super(e2), this.router = e2.router ?? new U({ routers: [new H, new le] });\n }\n};\nvar ue = (e2, t2, n2) => {\n let r2 = e2.req.raw.headers.get(`Cookie`);\n if (typeof t2 == `string`) {\n if (!r2)\n return;\n let e3 = t2;\n return n2 === `secure` ? e3 = `__Secure-` + t2 : n2 === `host` && (e3 = `__Host-` + t2), y(r2, e3)[e3];\n }\n return r2 ? y(r2) : {};\n};\nvar q = class extends Error {\n res;\n status;\n constructor(e2 = 500, t2) {\n super(t2?.message, { cause: t2?.cause }), this.res = t2?.res, this.status = e2;\n }\n getResponse() {\n return this.res ? new Response(this.res.body, { status: this.status, headers: this.res.headers }) : new Response(this.message, { status: this.status });\n }\n};\nvar de = (e2, t2) => new Response(e2, { headers: { "Content-Type": t2 } }).formData();\nvar fe = /^application\\/([a-z-\\.]+\\+)?json(;\\s*[a-zA-Z0-9\\-]+\\=([^;]+))*$/;\nvar pe = /^multipart\\/form-data(;\\s?boundary=[a-zA-Z0-9\'"()+_,\\-./:=?]+)?$/;\nvar me = /^application\\/x-www-form-urlencoded(;\\s*[a-zA-Z0-9\\-]+\\=([^;]+))*$/;\nvar J = (e2, t2) => async (n2, r2) => {\n let i2 = {}, a2 = n2.req.header(`Content-Type`);\n switch (e2) {\n case `json`:\n if (!a2 || !fe.test(a2))\n break;\n try {\n i2 = await n2.req.json();\n } catch {\n throw new q(400, { message: `Malformed JSON in request body` });\n }\n break;\n case `form`: {\n if (!a2 || !(pe.test(a2) || me.test(a2)))\n break;\n let e3;\n if (n2.req.bodyCache.formData)\n e3 = await n2.req.bodyCache.formData;\n else\n try {\n let t4 = await n2.req.arrayBuffer();\n e3 = await de(t4, a2), n2.req.bodyCache.formData = e3;\n } catch (e4) {\n let t4 = `Malformed FormData request.`;\n throw t4 += e4 instanceof Error ? ` ${e4.message}` : ` ${String(e4)}`, new q(400, { message: t4 });\n }\n let t3 = {};\n e3.forEach((e4, n3) => {\n n3.endsWith(`[]`) ? (t3[n3] ??= []).push(e4) : Array.isArray(t3[n3]) ? t3[n3].push(e4) : (n3 in t3) ? t3[n3] = [t3[n3], e4] : t3[n3] = e4;\n }), i2 = t3;\n break;\n }\n case `query`:\n i2 = Object.fromEntries(Object.entries(n2.req.queries()).map(([e3, t3]) => t3.length === 1 ? [e3, t3[0]] : [e3, t3]));\n break;\n case `param`:\n i2 = n2.req.param();\n break;\n case `header`:\n i2 = n2.req.header();\n break;\n case `cookie`:\n i2 = ue(n2);\n break;\n }\n let o2 = await t2(i2, n2);\n if (o2 instanceof Response)\n return o2;\n n2.req.addValidatedData(e2, o2), await r2();\n};\nvar Y = (e2, t2) => e2.json({ error: t2 }, 400);\nvar X = (e2) => {\n let t2 = e2.req.param(`key`);\n return !t2 || t2 === `` ? { key: t2, err: `Key is required` } : t2.length > 475 ? { key: t2, err: `Key is too long. Max length is 475 characters.` } : { key: t2 };\n};\nvar Z = () => new K;\nvar he = Z().get(`/:key`, async (e2) => {\n let { key: t2, err: n2 } = X(e2);\n if (n2)\n return Y(e2, n2);\n let r2 = await e2.env.store.get(t2);\n return e2.json({ value: r2 }, 200);\n}).post(`/:key`, J(`json`, (e2, t2) => {\n let n2 = e2.value;\n return n2 ? typeof n2 == `string` ? n2.length > 20000 ? Y(t2, `Value is too long. Max length is 20,000 characters.`) : { value: n2 } : Y(t2, `Value must be a string`) : Y(t2, `Value is required`);\n}), async (e2) => {\n let { key: t2, err: n2 } = X(e2);\n if (n2)\n return Y(e2, n2);\n let { value: r2 } = e2.req.valid(`json`);\n return await e2.env.store.set(t2, r2), e2.body(null, 204);\n}).delete(`/:key`, async (e2) => {\n let { key: t2, err: n2 } = X(e2);\n return n2 ? Y(e2, n2) : (await e2.env.store.delete(t2), e2.body(null, 204));\n}).get(`/`, async (e2) => {\n let { cursor: t2, limit: n2, prefix: r2 } = e2.req.query(), { entries: i2, cursor: a2 } = await e2.env.store.list(r2, { cursor: t2 ? String(t2) : undefined, limit: n2 ? Number(n2) : 100 });\n return e2.json({ entries: i2, cursor: a2 });\n});\nvar ge = (e2) => {\n let t2 = e2.req.param(`key`);\n return t2 ? t2.length > 475 ? { key: t2, err: `Key is too long. Max length is 475 characters.` } : { key: t2 } : { key: t2, err: `Key is required` };\n};\nvar Q = J(`param`, (e2) => ({ id: e2.id }));\nvar $ = Z().post(`/:key`, async (e2) => {\n let { key: t2, err: n2 } = ge(e2);\n return n2 ? Y(e2, n2) : e2.json(await e2.env.chat.upsert(t2), 200);\n}).get(`/:id`, Q, async (e2) => {\n let { id: t2 } = e2.req.valid(`param`);\n return e2.json(await e2.env.chat.get(t2), 200);\n}).get(`/:id/messages`, Q, async (e2) => {\n let { id: t2 } = e2.req.valid(`param`);\n return e2.json(await e2.env.chat.getMessages(t2), 200);\n}).post(`/:id/sendMessages`, J(`json`, (e2) => ({ id: e2.id, messages: e2.messages, options: e2.options })), async (e2) => {\n let { id: t2, messages: n2, options: r2 } = e2.req.valid(`json`);\n return t2 ? (await e2.env.chat.sendMessages(t2, n2, r2), e2.body(null, 204)) : Y(e2, `ID is required`);\n}).delete(`/:id/messages`, Q, J(`query`, (e2) => (typeof e2.message == `string` && (e2.message = [e2.message]), { messages: e2.message })), async (e2) => {\n let { id: t2 } = e2.req.valid(`param`), { messages: n2 } = e2.req.valid(`query`);\n return await e2.env.chat.deleteMessages(t2, n2), e2.body(null, 204);\n}).post(`/:id/start`, Q, async (e2) => {\n let { id: t2 } = e2.req.valid(`param`);\n return await e2.env.chat.start(t2), e2.body(null, 204);\n}).post(`/:id/stop`, Q, async (e2) => {\n let { id: t2 } = e2.req.valid(`param`);\n return await e2.env.chat.stop(t2), e2.body(null, 204);\n}).delete(`/:id`, Q, async (e2) => {\n let { id: t2 } = e2.req.valid(`param`);\n return await e2.env.chat.delete(t2), e2.body(null, 204);\n});\nvar _e = Z().post(`/v1/traces`, async (e2) => e2.env.otlp ? e2.env.otlp.traces(e2.req.raw) : e2.body(null, 204));\nvar ve = new K().onError((e2, t2) => t2.json({ error: e2 instanceof Error ? e2.message : `Unknown error` }, 500)).route(`/kv`, he).route(`/chat`, $).route(`/otlp`, _e);\n\n// ../../node_modules/@ai-sdk/provider/dist/index.mjs\nvar marker = "vercel.ai.error";\nvar symbol = Symbol.for(marker);\nvar _a;\nvar _AISDKError = class _AISDKError2 extends Error {\n constructor({\n name: name14,\n message,\n cause\n }) {\n super(message);\n this[_a] = true;\n this.name = name14;\n this.cause = cause;\n }\n static isInstance(error) {\n return _AISDKError2.hasMarker(error, marker);\n }\n static hasMarker(error, marker15) {\n const markerSymbol = Symbol.for(marker15);\n return error != null && typeof error === "object" && markerSymbol in error && typeof error[markerSymbol] === "boolean" && error[markerSymbol] === true;\n }\n};\n_a = symbol;\nvar AISDKError = _AISDKError;\nvar name = "AI_APICallError";\nvar marker2 = `vercel.ai.error.${name}`;\nvar symbol2 = Symbol.for(marker2);\nvar _a2;\n_a2 = symbol2;\nvar name2 = "AI_EmptyResponseBodyError";\nvar marker3 = `vercel.ai.error.${name2}`;\nvar symbol3 = Symbol.for(marker3);\nvar _a3;\n_a3 = symbol3;\nfunction getErrorMessage(error) {\n if (error == null) {\n return "unknown error";\n }\n if (typeof error === "string") {\n return error;\n }\n if (error instanceof Error) {\n return error.message;\n }\n return JSON.stringify(error);\n}\nvar name3 = "AI_InvalidArgumentError";\nvar marker4 = `vercel.ai.error.${name3}`;\nvar symbol4 = Symbol.for(marker4);\nvar _a4;\nvar InvalidArgumentError = class extends AISDKError {\n constructor({\n message,\n cause,\n argument\n }) {\n super({ name: name3, message, cause });\n this[_a4] = true;\n this.argument = argument;\n }\n static isInstance(error) {\n return AISDKError.hasMarker(error, marker4);\n }\n};\n_a4 = symbol4;\nvar name4 = "AI_InvalidPromptError";\nvar marker5 = `vercel.ai.error.${name4}`;\nvar symbol5 = Symbol.for(marker5);\nvar _a5;\n_a5 = symbol5;\nvar name5 = "AI_InvalidResponseDataError";\nvar marker6 = `vercel.ai.error.${name5}`;\nvar symbol6 = Symbol.for(marker6);\nvar _a6;\n_a6 = symbol6;\nvar name6 = "AI_JSONParseError";\nvar marker7 = `vercel.ai.error.${name6}`;\nvar symbol7 = Symbol.for(marker7);\nvar _a7;\nvar JSONParseError = class extends AISDKError {\n constructor({ text, cause }) {\n super({\n name: name6,\n message: `JSON parsing failed: Text: ${text}.\nError message: ${getErrorMessage(cause)}`,\n cause\n });\n this[_a7] = true;\n this.text = text;\n }\n static isInstance(error) {\n return AISDKError.hasMarker(error, marker7);\n }\n};\n_a7 = symbol7;\nvar name7 = "AI_LoadAPIKeyError";\nvar marker8 = `vercel.ai.error.${name7}`;\nvar symbol8 = Symbol.for(marker8);\nvar _a8;\n_a8 = symbol8;\nvar name8 = "AI_LoadSettingError";\nvar marker9 = `vercel.ai.error.${name8}`;\nvar symbol9 = Symbol.for(marker9);\nvar _a9;\n_a9 = symbol9;\nvar name9 = "AI_NoContentGeneratedError";\nvar marker10 = `vercel.ai.error.${name9}`;\nvar symbol10 = Symbol.for(marker10);\nvar _a10;\n_a10 = symbol10;\nvar name10 = "AI_NoSuchModelError";\nvar marker11 = `vercel.ai.error.${name10}`;\nvar symbol11 = Symbol.for(marker11);\nvar _a11;\n_a11 = symbol11;\nvar name11 = "AI_TooManyEmbeddingValuesForCallError";\nvar marker12 = `vercel.ai.error.${name11}`;\nvar symbol12 = Symbol.for(marker12);\nvar _a12;\n_a12 = symbol12;\nvar name12 = "AI_TypeValidationError";\nvar marker13 = `vercel.ai.error.${name12}`;\nvar symbol13 = Symbol.for(marker13);\nvar _a13;\nvar _TypeValidationError = class _TypeValidationError2 extends AISDKError {\n constructor({ value, cause }) {\n super({\n name: name12,\n message: `Type validation failed: Value: ${JSON.stringify(value)}.\nError message: ${getErrorMessage(cause)}`,\n cause\n });\n this[_a13] = true;\n this.value = value;\n }\n static isInstance(error) {\n return AISDKError.hasMarker(error, marker13);\n }\n static wrap({\n value,\n cause\n }) {\n return _TypeValidationError2.isInstance(cause) && cause.value === value ? cause : new _TypeValidationError2({ value, cause });\n }\n};\n_a13 = symbol13;\nvar TypeValidationError = _TypeValidationError;\nvar name13 = "AI_UnsupportedFunctionalityError";\nvar marker14 = `vercel.ai.error.${name13}`;\nvar symbol14 = Symbol.for(marker14);\nvar _a14;\n_a14 = symbol14;\n\n// ../../node_modules/zod/dist/esm/v4/classic/external.js\nvar exports_external = {};\n__export(exports_external, {\n xid: () => xid2,\n void: () => _void2,\n uuidv7: () => uuidv7,\n uuidv6: () => uuidv6,\n uuidv4: () => uuidv4,\n uuid: () => uuid2,\n url: () => url,\n uppercase: () => _uppercase,\n unknown: () => unknown,\n union: () => union,\n undefined: () => _undefined3,\n ulid: () => ulid2,\n uint64: () => uint64,\n uint32: () => uint32,\n tuple: () => tuple,\n trim: () => _trim,\n treeifyError: () => treeifyError,\n transform: () => transform,\n toUpperCase: () => _toUpperCase,\n toLowerCase: () => _toLowerCase,\n toJSONSchema: () => toJSONSchema,\n templateLiteral: () => templateLiteral,\n symbol: () => symbol15,\n superRefine: () => superRefine,\n success: () => success,\n stringbool: () => stringbool,\n string: () => string2,\n strictObject: () => strictObject,\n startsWith: () => _startsWith,\n size: () => _size,\n setErrorMap: () => setErrorMap,\n set: () => set,\n safeParseAsync: () => safeParseAsync2,\n safeParse: () => safeParse2,\n registry: () => registry,\n regexes: () => exports_regexes,\n regex: () => _regex,\n refine: () => refine,\n record: () => record,\n readonly: () => readonly,\n property: () => _property,\n promise: () => promise,\n prettifyError: () => prettifyError,\n preprocess: () => preprocess,\n prefault: () => prefault,\n positive: () => _positive,\n pipe: () => pipe,\n partialRecord: () => partialRecord,\n parseAsync: () => parseAsync2,\n parse: () => parse3,\n overwrite: () => _overwrite,\n optional: () => optional,\n object: () => object,\n number: () => number2,\n nullish: () => nullish2,\n nullable: () => nullable,\n null: () => _null3,\n normalize: () => _normalize,\n nonpositive: () => _nonpositive,\n nonoptional: () => nonoptional,\n nonnegative: () => _nonnegative,\n never: () => never,\n negative: () => _negative,\n nativeEnum: () => nativeEnum,\n nanoid: () => nanoid2,\n nan: () => nan,\n multipleOf: () => _multipleOf,\n minSize: () => _minSize,\n minLength: () => _minLength,\n mime: () => _mime,\n maxSize: () => _maxSize,\n maxLength: () => _maxLength,\n map: () => map,\n lte: () => _lte,\n lt: () => _lt,\n lowercase: () => _lowercase,\n looseObject: () => looseObject,\n locales: () => exports_locales,\n literal: () => literal,\n length: () => _length,\n lazy: () => lazy,\n ksuid: () => ksuid2,\n keyof: () => keyof,\n jwt: () => jwt,\n json: () => json,\n iso: () => exports_iso,\n ipv6: () => ipv62,\n ipv4: () => ipv42,\n intersection: () => intersection,\n int64: () => int64,\n int32: () => int32,\n int: () => int,\n instanceof: () => _instanceof,\n includes: () => _includes,\n guid: () => guid2,\n gte: () => _gte,\n gt: () => _gt,\n globalRegistry: () => globalRegistry,\n getErrorMap: () => getErrorMap,\n function: () => _function,\n formatError: () => formatError,\n float64: () => float64,\n float32: () => float32,\n flattenError: () => flattenError,\n file: () => file,\n enum: () => _enum2,\n endsWith: () => _endsWith,\n emoji: () => emoji2,\n email: () => email2,\n e164: () => e1642,\n discriminatedUnion: () => discriminatedUnion,\n date: () => date3,\n custom: () => custom,\n cuid2: () => cuid22,\n cuid: () => cuid3,\n core: () => exports_core2,\n config: () => config,\n coerce: () => exports_coerce,\n clone: () => clone,\n cidrv6: () => cidrv62,\n cidrv4: () => cidrv42,\n check: () => check,\n catch: () => _catch2,\n boolean: () => boolean2,\n bigint: () => bigint2,\n base64url: () => base64url2,\n base64: () => base642,\n array: () => array,\n any: () => any,\n _default: () => _default2,\n _ZodString: () => _ZodString,\n ZodXID: () => ZodXID,\n ZodVoid: () => ZodVoid,\n ZodUnknown: () => ZodUnknown,\n ZodUnion: () => ZodUnion,\n ZodUndefined: () => ZodUndefined,\n ZodUUID: () => ZodUUID,\n ZodURL: () => ZodURL,\n ZodULID: () => ZodULID,\n ZodType: () => ZodType,\n ZodTuple: () => ZodTuple,\n ZodTransform: () => ZodTransform,\n ZodTemplateLiteral: () => ZodTemplateLiteral,\n ZodSymbol: () => ZodSymbol,\n ZodSuccess: () => ZodSuccess,\n ZodStringFormat: () => ZodStringFormat,\n ZodString: () => ZodString,\n ZodSet: () => ZodSet,\n ZodRecord: () => ZodRecord,\n ZodRealError: () => ZodRealError,\n ZodReadonly: () => ZodReadonly,\n ZodPromise: () => ZodPromise,\n ZodPrefault: () => ZodPrefault,\n ZodPipe: () => ZodPipe,\n ZodOptional: () => ZodOptional,\n ZodObject: () => ZodObject,\n ZodNumberFormat: () => ZodNumberFormat,\n ZodNumber: () => ZodNumber,\n ZodNullable: () => ZodNullable,\n ZodNull: () => ZodNull,\n ZodNonOptional: () => ZodNonOptional,\n ZodNever: () => ZodNever,\n ZodNanoID: () => ZodNanoID,\n ZodNaN: () => ZodNaN,\n ZodMap: () => ZodMap,\n ZodLiteral: () => ZodLiteral,\n ZodLazy: () => ZodLazy,\n ZodKSUID: () => ZodKSUID,\n ZodJWT: () => ZodJWT,\n ZodIssueCode: () => ZodIssueCode,\n ZodIntersection: () => ZodIntersection,\n ZodISOTime: () => ZodISOTime,\n ZodISODuration: () => ZodISODuration,\n ZodISODateTime: () => ZodISODateTime,\n ZodISODate: () => ZodISODate,\n ZodIPv6: () => ZodIPv6,\n ZodIPv4: () => ZodIPv4,\n ZodGUID: () => ZodGUID,\n ZodFile: () => ZodFile,\n ZodError: () => ZodError,\n ZodEnum: () => ZodEnum,\n ZodEmoji: () => ZodEmoji,\n ZodEmail: () => ZodEmail,\n ZodE164: () => ZodE164,\n ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,\n ZodDefault: () => ZodDefault,\n ZodDate: () => ZodDate,\n ZodCustom: () => ZodCustom,\n ZodCatch: () => ZodCatch,\n ZodCUID2: () => ZodCUID2,\n ZodCUID: () => ZodCUID,\n ZodCIDRv6: () => ZodCIDRv6,\n ZodCIDRv4: () => ZodCIDRv4,\n ZodBoolean: () => ZodBoolean,\n ZodBigIntFormat: () => ZodBigIntFormat,\n ZodBigInt: () => ZodBigInt,\n ZodBase64URL: () => ZodBase64URL,\n ZodBase64: () => ZodBase64,\n ZodArray: () => ZodArray,\n ZodAny: () => ZodAny,\n NEVER: () => NEVER,\n $output: () => $output,\n $input: () => $input,\n $brand: () => $brand\n});\n\n// ../../node_modules/zod/dist/esm/v4/core/index.js\nvar exports_core2 = {};\n__export(exports_core2, {\n version: () => version,\n util: () => exports_util,\n treeifyError: () => treeifyError,\n toJSONSchema: () => toJSONSchema,\n toDotPath: () => toDotPath,\n safeParseAsync: () => safeParseAsync,\n safeParse: () => safeParse,\n registry: () => registry,\n regexes: () => exports_regexes,\n prettifyError: () => prettifyError,\n parseAsync: () => parseAsync,\n parse: () => parse,\n locales: () => exports_locales,\n isValidJWT: () => isValidJWT,\n isValidBase64URL: () => isValidBase64URL,\n isValidBase64: () => isValidBase64,\n globalRegistry: () => globalRegistry,\n globalConfig: () => globalConfig,\n function: () => _function,\n formatError: () => formatError,\n flattenError: () => flattenError,\n config: () => config,\n clone: () => clone,\n _xid: () => _xid,\n _void: () => _void,\n _uuidv7: () => _uuidv7,\n _uuidv6: () => _uuidv6,\n _uuidv4: () => _uuidv4,\n _uuid: () => _uuid,\n _url: () => _url,\n _uppercase: () => _uppercase,\n _unknown: () => _unknown,\n _union: () => _union,\n _undefined: () => _undefined2,\n _ulid: () => _ulid,\n _uint64: () => _uint64,\n _uint32: () => _uint32,\n _tuple: () => _tuple,\n _trim: () => _trim,\n _transform: () => _transform,\n _toUpperCase: () => _toUpperCase,\n _toLowerCase: () => _toLowerCase,\n _templateLiteral: () => _templateLiteral,\n _symbol: () => _symbol,\n _success: () => _success,\n _stringbool: () => _stringbool,\n _string: () => _string,\n _startsWith: () => _startsWith,\n _size: () => _size,\n _set: () => _set,\n _safeParseAsync: () => _safeParseAsync,\n _safeParse: () => _safeParse,\n _regex: () => _regex,\n _refine: () => _refine,\n _record: () => _record,\n _readonly: () => _readonly,\n _property: () => _property,\n _promise: () => _promise,\n _positive: () => _positive,\n _pipe: () => _pipe,\n _parseAsync: () => _parseAsync,\n _parse: () => _parse,\n _overwrite: () => _overwrite,\n _optional: () => _optional,\n _number: () => _number,\n _nullable: () => _nullable,\n _null: () => _null2,\n _normalize: () => _normalize,\n _nonpositive: () => _nonpositive,\n _nonoptional: () => _nonoptional,\n _nonnegative: () => _nonnegative,\n _never: () => _never,\n _negative: () => _negative,\n _nativeEnum: () => _nativeEnum,\n _nanoid: () => _nanoid,\n _nan: () => _nan,\n _multipleOf: () => _multipleOf,\n _minSize: () => _minSize,\n _minLength: () => _minLength,\n _min: () => _gte,\n _mime: () => _mime,\n _maxSize: () => _maxSize,\n _maxLength: () => _maxLength,\n _max: () => _lte,\n _map: () => _map,\n _lte: () => _lte,\n _lt: () => _lt,\n _lowercase: () => _lowercase,\n _literal: () => _literal,\n _length: () => _length,\n _lazy: () => _lazy,\n _ksuid: () => _ksuid,\n _jwt: () => _jwt,\n _isoTime: () => _isoTime,\n _isoDuration: () => _isoDuration,\n _isoDateTime: () => _isoDateTime,\n _isoDate: () => _isoDate,\n _ipv6: () => _ipv6,\n _ipv4: () => _ipv4,\n _intersection: () => _intersection,\n _int64: () => _int64,\n _int32: () => _int32,\n _int: () => _int,\n _includes: () => _includes,\n _guid: () => _guid,\n _gte: () => _gte,\n _gt: () => _gt,\n _float64: () => _float64,\n _float32: () => _float32,\n _file: () => _file,\n _enum: () => _enum,\n _endsWith: () => _endsWith,\n _emoji: () => _emoji2,\n _email: () => _email,\n _e164: () => _e164,\n _discriminatedUnion: () => _discriminatedUnion,\n _default: () => _default,\n _date: () => _date,\n _custom: () => _custom,\n _cuid2: () => _cuid2,\n _cuid: () => _cuid,\n _coercedString: () => _coercedString,\n _coercedNumber: () => _coercedNumber,\n _coercedDate: () => _coercedDate,\n _coercedBoolean: () => _coercedBoolean,\n _coercedBigint: () => _coercedBigint,\n _cidrv6: () => _cidrv6,\n _cidrv4: () => _cidrv4,\n _catch: () => _catch,\n _boolean: () => _boolean,\n _bigint: () => _bigint,\n _base64url: () => _base64url,\n _base64: () => _base64,\n _array: () => _array,\n _any: () => _any,\n JSONSchemaGenerator: () => JSONSchemaGenerator,\n JSONSchema: () => exports_json_schema,\n Doc: () => Doc,\n $output: () => $output,\n $input: () => $input,\n $constructor: () => $constructor,\n $brand: () => $brand,\n $ZodXID: () => $ZodXID,\n $ZodVoid: () => $ZodVoid,\n $ZodUnknown: () => $ZodUnknown,\n $ZodUnion: () => $ZodUnion,\n $ZodUndefined: () => $ZodUndefined,\n $ZodUUID: () => $ZodUUID,\n $ZodURL: () => $ZodURL,\n $ZodULID: () => $ZodULID,\n $ZodType: () => $ZodType,\n $ZodTuple: () => $ZodTuple,\n $ZodTransform: () => $ZodTransform,\n $ZodTemplateLiteral: () => $ZodTemplateLiteral,\n $ZodSymbol: () => $ZodSymbol,\n $ZodSuccess: () => $ZodSuccess,\n $ZodStringFormat: () => $ZodStringFormat,\n $ZodString: () => $ZodString,\n $ZodSet: () => $ZodSet,\n $ZodRegistry: () => $ZodRegistry,\n $ZodRecord: () => $ZodRecord,\n $ZodRealError: () => $ZodRealError,\n $ZodReadonly: () => $ZodReadonly,\n $ZodPromise: () => $ZodPromise,\n $ZodPrefault: () => $ZodPrefault,\n $ZodPipe: () => $ZodPipe,\n $ZodOptional: () => $ZodOptional,\n $ZodObject: () => $ZodObject,\n $ZodNumberFormat: () => $ZodNumberFormat,\n $ZodNumber: () => $ZodNumber,\n $ZodNullable: () => $ZodNullable,\n $ZodNull: () => $ZodNull,\n $ZodNonOptional: () => $ZodNonOptional,\n $ZodNever: () => $ZodNever,\n $ZodNanoID: () => $ZodNanoID,\n $ZodNaN: () => $ZodNaN,\n $ZodMap: () => $ZodMap,\n $ZodLiteral: () => $ZodLiteral,\n $ZodLazy: () => $ZodLazy,\n $ZodKSUID: () => $ZodKSUID,\n $ZodJWT: () => $ZodJWT,\n $ZodIntersection: () => $ZodIntersection,\n $ZodISOTime: () => $ZodISOTime,\n $ZodISODuration: () => $ZodISODuration,\n $ZodISODateTime: () => $ZodISODateTime,\n $ZodISODate: () => $ZodISODate,\n $ZodIPv6: () => $ZodIPv6,\n $ZodIPv4: () => $ZodIPv4,\n $ZodGUID: () => $ZodGUID,\n $ZodFunction: () => $ZodFunction,\n $ZodFile: () => $ZodFile,\n $ZodError: () => $ZodError,\n $ZodEnum: () => $ZodEnum,\n $ZodEmoji: () => $ZodEmoji,\n $ZodEmail: () => $ZodEmail,\n $ZodE164: () => $ZodE164,\n $ZodDiscriminatedUnion: () => $ZodDiscriminatedUnion,\n $ZodDefault: () => $ZodDefault,\n $ZodDate: () => $ZodDate,\n $ZodCustom: () => $ZodCustom,\n $ZodCheckUpperCase: () => $ZodCheckUpperCase,\n $ZodCheckStringFormat: () => $ZodCheckStringFormat,\n $ZodCheckStartsWith: () => $ZodCheckStartsWith,\n $ZodCheckSizeEquals: () => $ZodCheckSizeEquals,\n $ZodCheckRegex: () => $ZodCheckRegex,\n $ZodCheckProperty: () => $ZodCheckProperty,\n $ZodCheckOverwrite: () => $ZodCheckOverwrite,\n $ZodCheckNumberFormat: () => $ZodCheckNumberFormat,\n $ZodCheckMultipleOf: () => $ZodCheckMultipleOf,\n $ZodCheckMinSize: () => $ZodCheckMinSize,\n $ZodCheckMinLength: () => $ZodCheckMinLength,\n $ZodCheckMimeType: () => $ZodCheckMimeType,\n $ZodCheckMaxSize: () => $ZodCheckMaxSize,\n $ZodCheckMaxLength: () => $ZodCheckMaxLength,\n $ZodCheckLowerCase: () => $ZodCheckLowerCase,\n $ZodCheckLessThan: () => $ZodCheckLessThan,\n $ZodCheckLengthEquals: () => $ZodCheckLengthEquals,\n $ZodCheckIncludes: () => $ZodCheckIncludes,\n $ZodCheckGreaterThan: () => $ZodCheckGreaterThan,\n $ZodCheckEndsWith: () => $ZodCheckEndsWith,\n $ZodCheckBigIntFormat: () => $ZodCheckBigIntFormat,\n $ZodCheck: () => $ZodCheck,\n $ZodCatch: () => $ZodCatch,\n $ZodCUID2: () => $ZodCUID2,\n $ZodCUID: () => $ZodCUID,\n $ZodCIDRv6: () => $ZodCIDRv6,\n $ZodCIDRv4: () => $ZodCIDRv4,\n $ZodBoolean: () => $ZodBoolean,\n $ZodBigIntFormat: () => $ZodBigIntFormat,\n $ZodBigInt: () => $ZodBigInt,\n $ZodBase64URL: () => $ZodBase64URL,\n $ZodBase64: () => $ZodBase64,\n $ZodAsyncError: () => $ZodAsyncError,\n $ZodArray: () => $ZodArray,\n $ZodAny: () => $ZodAny\n});\n\n// ../../node_modules/zod/dist/esm/v4/core/core.js\nfunction $constructor(name14, initializer, params) {\n function init(inst, def) {\n var _a15;\n Object.defineProperty(inst, "_zod", {\n value: inst._zod ?? {},\n enumerable: false\n });\n (_a15 = inst._zod).traits ?? (_a15.traits = new Set);\n inst._zod.traits.add(name14);\n initializer(inst, def);\n for (const k2 in _3.prototype) {\n if (!(k2 in inst))\n Object.defineProperty(inst, k2, { value: _3.prototype[k2].bind(inst) });\n }\n inst._zod.constr = _3;\n inst._zod.def = def;\n }\n const Parent = params?.Parent ?? Object;\n\n class Definition extends Parent {\n }\n Object.defineProperty(Definition, "name", { value: name14 });\n function _3(def) {\n var _a15;\n const inst = params?.Parent ? new Definition : this;\n init(inst, def);\n (_a15 = inst._zod).deferred ?? (_a15.deferred = []);\n for (const fn of inst._zod.deferred) {\n fn();\n }\n return inst;\n }\n Object.defineProperty(_3, "init", { value: init });\n Object.defineProperty(_3, Symbol.hasInstance, {\n value: (inst) => {\n if (params?.Parent && inst instanceof params.Parent)\n return true;\n return inst?._zod?.traits?.has(name14);\n }\n });\n Object.defineProperty(_3, "name", { value: name14 });\n return _3;\n}\nvar $brand = Symbol("zod_brand");\n\nclass $ZodAsyncError extends Error {\n constructor() {\n super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);\n }\n}\nvar globalConfig = {};\nfunction config(newConfig) {\n if (newConfig)\n Object.assign(globalConfig, newConfig);\n return globalConfig;\n}\n// ../../node_modules/zod/dist/esm/v4/core/util.js\nvar exports_util = {};\n__export(exports_util, {\n unwrapMessage: () => unwrapMessage,\n stringifyPrimitive: () => stringifyPrimitive,\n required: () => required,\n randomString: () => randomString,\n propertyKeyTypes: () => propertyKeyTypes,\n promiseAllObject: () => promiseAllObject,\n primitiveTypes: () => primitiveTypes,\n prefixIssues: () => prefixIssues,\n pick: () => pick,\n partial: () => partial,\n optionalKeys: () => optionalKeys,\n omit: () => omit,\n numKeys: () => numKeys,\n nullish: () => nullish,\n normalizeParams: () => normalizeParams,\n merge: () => merge,\n jsonStringifyReplacer: () => jsonStringifyReplacer,\n joinValues: () => joinValues,\n issue: () => issue,\n isPlainObject: () => isPlainObject,\n isObject: () => isObject,\n getSizableOrigin: () => getSizableOrigin,\n getParsedType: () => getParsedType,\n getLengthableOrigin: () => getLengthableOrigin,\n getEnumValues: () => getEnumValues,\n getElementAtPath: () => getElementAtPath,\n floatSafeRemainder: () => floatSafeRemainder,\n finalizeIssue: () => finalizeIssue,\n extend: () => extend,\n escapeRegex: () => escapeRegex,\n esc: () => esc,\n defineLazy: () => defineLazy,\n createTransparentProxy: () => createTransparentProxy,\n clone: () => clone,\n cleanRegex: () => cleanRegex,\n cleanEnum: () => cleanEnum,\n cached: () => cached,\n assignProp: () => assignProp,\n assertNotEqual: () => assertNotEqual,\n assertNever: () => assertNever,\n assertIs: () => assertIs,\n assertEqual: () => assertEqual,\n assert: () => assert,\n allowsEval: () => allowsEval,\n aborted: () => aborted,\n NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,\n Class: () => Class,\n BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES\n});\nfunction assertEqual(val) {\n return val;\n}\nfunction assertNotEqual(val) {\n return val;\n}\nfunction assertIs(_arg) {}\nfunction assertNever(_x) {\n throw new Error;\n}\nfunction assert(_3) {}\nfunction getEnumValues(entries) {\n const numericValues = Object.values(entries).filter((v3) => typeof v3 === "number");\n const values = Object.entries(entries).filter(([k2, _3]) => numericValues.indexOf(+k2) === -1).map(([_3, v3]) => v3);\n return values;\n}\nfunction joinValues(array, separator = "|") {\n return array.map((val) => stringifyPrimitive(val)).join(separator);\n}\nfunction jsonStringifyReplacer(_3, value) {\n if (typeof value === "bigint")\n return value.toString();\n return value;\n}\nfunction cached(getter) {\n const set = false;\n return {\n get value() {\n if (!set) {\n const value = getter();\n Object.defineProperty(this, "value", { value });\n return value;\n }\n throw new Error("cached value already set");\n }\n };\n}\nfunction nullish(input) {\n return input === null || input === undefined;\n}\nfunction cleanRegex(source) {\n const start = source.startsWith("^") ? 1 : 0;\n const end = source.endsWith("$") ? source.length - 1 : source.length;\n return source.slice(start, end);\n}\nfunction floatSafeRemainder(val, step) {\n const valDecCount = (val.toString().split(".")[1] || "").length;\n const stepDecCount = (step.toString().split(".")[1] || "").length;\n const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;\n const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));\n const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));\n return valInt % stepInt / 10 ** decCount;\n}\nfunction defineLazy(object, key, getter) {\n const set = false;\n Object.defineProperty(object, key, {\n get() {\n if (!set) {\n const value = getter();\n object[key] = value;\n return value;\n }\n throw new Error("cached value already set");\n },\n set(v3) {\n Object.defineProperty(object, key, {\n value: v3\n });\n },\n configurable: true\n });\n}\nfunction assignProp(target, prop, value) {\n Object.defineProperty(target, prop, {\n value,\n writable: true,\n enumerable: true,\n configurable: true\n });\n}\nfunction getElementAtPath(obj, path) {\n if (!path)\n return obj;\n return path.reduce((acc, key) => acc?.[key], obj);\n}\nfunction promiseAllObject(promisesObj) {\n const keys = Object.keys(promisesObj);\n const promises = keys.map((key) => promisesObj[key]);\n return Promise.all(promises).then((results) => {\n const resolvedObj = {};\n for (let i2 = 0;i2 < keys.length; i2++) {\n resolvedObj[keys[i2]] = results[i2];\n }\n return resolvedObj;\n });\n}\nfunction randomString(length = 10) {\n const chars = "abcdefghijklmnopqrstuvwxyz";\n let str = "";\n for (let i2 = 0;i2 < length; i2++) {\n str += chars[Math.floor(Math.random() * chars.length)];\n }\n return str;\n}\nfunction esc(str) {\n return JSON.stringify(str);\n}\nfunction isObject(data) {\n return typeof data === "object" && data !== null && !Array.isArray(data);\n}\nvar allowsEval = cached(() => {\n try {\n const F2 = Function;\n new F2("");\n return true;\n } catch (_3) {\n return false;\n }\n});\nfunction isPlainObject(data) {\n return typeof data === "object" && data !== null && (Object.getPrototypeOf(data) === Object.prototype || Object.getPrototypeOf(data) === null);\n}\nfunction numKeys(data) {\n let keyCount = 0;\n for (const key in data) {\n if (Object.prototype.hasOwnProperty.call(data, key)) {\n keyCount++;\n }\n }\n return keyCount;\n}\nvar getParsedType = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "undefined":\n return "undefined";\n case "string":\n return "string";\n case "number":\n return Number.isNaN(data) ? "nan" : "number";\n case "boolean":\n return "boolean";\n case "function":\n return "function";\n case "bigint":\n return "bigint";\n case "symbol":\n return "symbol";\n case "object":\n if (Array.isArray(data)) {\n return "array";\n }\n if (data === null) {\n return "null";\n }\n if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {\n return "promise";\n }\n if (typeof Map !== "undefined" && data instanceof Map) {\n return "map";\n }\n if (typeof Set !== "undefined" && data instanceof Set) {\n return "set";\n }\n if (typeof Date !== "undefined" && data instanceof Date) {\n return "date";\n }\n if (typeof File !== "undefined" && data instanceof File) {\n return "file";\n }\n return "object";\n default:\n throw new Error(`Unknown data type: ${t2}`);\n }\n};\nvar propertyKeyTypes = new Set(["string", "number", "symbol"]);\nvar primitiveTypes = new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);\nfunction escapeRegex(str) {\n return str.replace(/[.*+?^${}()|[\\]\\\\]/g, "\\\\$&");\n}\nfunction clone(inst, def, params) {\n const cl = new inst._zod.constr(def ?? inst._zod.def);\n if (!def || params?.parent)\n cl._zod.parent = inst;\n return cl;\n}\nfunction normalizeParams(_params) {\n const params = _params;\n if (!params)\n return {};\n if (typeof params === "string")\n return { error: () => params };\n if (params?.message !== undefined) {\n if (params?.error !== undefined)\n throw new Error("Cannot specify both `message` and `error` params");\n params.error = params.message;\n }\n delete params.message;\n if (typeof params.error === "string")\n return { ...params, error: () => params.error };\n return params;\n}\nfunction createTransparentProxy(getter) {\n let target;\n return new Proxy({}, {\n get(_3, prop, receiver) {\n target ?? (target = getter());\n return Reflect.get(target, prop, receiver);\n },\n set(_3, prop, value, receiver) {\n target ?? (target = getter());\n return Reflect.set(target, prop, value, receiver);\n },\n has(_3, prop) {\n target ?? (target = getter());\n return Reflect.has(target, prop);\n },\n deleteProperty(_3, prop) {\n target ?? (target = getter());\n return Reflect.deleteProperty(target, prop);\n },\n ownKeys(_3) {\n target ?? (target = getter());\n return Reflect.ownKeys(target);\n },\n getOwnPropertyDescriptor(_3, prop) {\n target ?? (target = getter());\n return Reflect.getOwnPropertyDescriptor(target, prop);\n },\n defineProperty(_3, prop, descriptor) {\n target ?? (target = getter());\n return Reflect.defineProperty(target, prop, descriptor);\n }\n });\n}\nfunction stringifyPrimitive(value) {\n if (typeof value === "bigint")\n return value.toString() + "n";\n if (typeof value === "string")\n return `"${value}"`;\n return `${value}`;\n}\nfunction optionalKeys(shape) {\n return Object.keys(shape).filter((k2) => {\n return shape[k2]._zod.optin === "optional" && shape[k2]._zod.optout === "optional";\n });\n}\nvar NUMBER_FORMAT_RANGES = {\n safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],\n int32: [-2147483648, 2147483647],\n uint32: [0, 4294967295],\n float32: [-340282346638528860000000000000000000000, 340282346638528860000000000000000000000],\n float64: [-Number.MAX_VALUE, Number.MAX_VALUE]\n};\nvar BIGINT_FORMAT_RANGES = {\n int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],\n uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]\n};\nfunction pick(schema, mask) {\n const newShape = {};\n const currDef = schema._zod.def;\n for (const key in mask) {\n if (!(key in currDef.shape)) {\n throw new Error(`Unrecognized key: "${key}"`);\n }\n if (!mask[key])\n continue;\n newShape[key] = currDef.shape[key];\n }\n return clone(schema, {\n ...schema._zod.def,\n shape: newShape,\n checks: []\n });\n}\nfunction omit(schema, mask) {\n const newShape = { ...schema._zod.def.shape };\n const currDef = schema._zod.def;\n for (const key in mask) {\n if (!(key in currDef.shape)) {\n throw new Error(`Unrecognized key: "${key}"`);\n }\n if (!mask[key])\n continue;\n delete newShape[key];\n }\n return clone(schema, {\n ...schema._zod.def,\n shape: newShape,\n checks: []\n });\n}\nfunction extend(schema, shape) {\n const def = {\n ...schema._zod.def,\n get shape() {\n const _shape = { ...schema._zod.def.shape, ...shape };\n assignProp(this, "shape", _shape);\n return _shape;\n },\n checks: []\n };\n return clone(schema, def);\n}\nfunction merge(a2, b2) {\n return clone(a2, {\n ...a2._zod.def,\n get shape() {\n const _shape = { ...a2._zod.def.shape, ...b2._zod.def.shape };\n assignProp(this, "shape", _shape);\n return _shape;\n },\n catchall: b2._zod.def.catchall,\n checks: []\n });\n}\nfunction partial(Class, schema, mask) {\n const oldShape = schema._zod.def.shape;\n const shape = { ...oldShape };\n if (mask) {\n for (const key in mask) {\n if (!(key in oldShape)) {\n throw new Error(`Unrecognized key: "${key}"`);\n }\n if (!mask[key])\n continue;\n shape[key] = Class ? new Class({\n type: "optional",\n innerType: oldShape[key]\n }) : oldShape[key];\n }\n } else {\n for (const key in oldShape) {\n shape[key] = Class ? new Class({\n type: "optional",\n innerType: oldShape[key]\n }) : oldShape[key];\n }\n }\n return clone(schema, {\n ...schema._zod.def,\n shape,\n checks: []\n });\n}\nfunction required(Class, schema, mask) {\n const oldShape = schema._zod.def.shape;\n const shape = { ...oldShape };\n if (mask) {\n for (const key in mask) {\n if (!(key in shape)) {\n throw new Error(`Unrecognized key: "${key}"`);\n }\n if (!mask[key])\n continue;\n shape[key] = new Class({\n type: "nonoptional",\n innerType: oldShape[key]\n });\n }\n } else {\n for (const key in oldShape) {\n shape[key] = new Class({\n type: "nonoptional",\n innerType: oldShape[key]\n });\n }\n }\n return clone(schema, {\n ...schema._zod.def,\n shape,\n checks: []\n });\n}\nfunction aborted(x2, startIndex = 0) {\n for (let i2 = startIndex;i2 < x2.issues.length; i2++) {\n if (x2.issues[i2].continue !== true)\n return true;\n }\n return false;\n}\nfunction prefixIssues(path, issues) {\n return issues.map((iss) => {\n var _a15;\n (_a15 = iss).path ?? (_a15.path = []);\n iss.path.unshift(path);\n return iss;\n });\n}\nfunction unwrapMessage(message) {\n return typeof message === "string" ? message : message?.message;\n}\nfunction finalizeIssue(iss, ctx, config2) {\n const full = { ...iss, path: iss.path ?? [] };\n if (!iss.message) {\n const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";\n full.message = message;\n }\n delete full.inst;\n delete full.continue;\n if (!ctx?.reportInput) {\n delete full.input;\n }\n return full;\n}\nfunction getSizableOrigin(input) {\n if (input instanceof Set)\n return "set";\n if (input instanceof Map)\n return "map";\n if (input instanceof File)\n return "file";\n return "unknown";\n}\nfunction getLengthableOrigin(input) {\n if (Array.isArray(input))\n return "array";\n if (typeof input === "string")\n return "string";\n return "unknown";\n}\nfunction issue(...args) {\n const [iss, input, inst] = args;\n if (typeof iss === "string") {\n return {\n message: iss,\n code: "custom",\n input,\n inst\n };\n }\n return { ...iss };\n}\nfunction cleanEnum(obj) {\n return Object.entries(obj).filter(([k2, _3]) => {\n return Number.isNaN(Number.parseInt(k2, 10));\n }).map((el) => el[1]);\n}\n\nclass Class {\n constructor(..._args) {}\n}\n\n// ../../node_modules/zod/dist/esm/v4/core/errors.js\nvar initializer = (inst, def) => {\n inst.name = "$ZodError";\n Object.defineProperty(inst, "_zod", {\n value: inst._zod,\n enumerable: false\n });\n Object.defineProperty(inst, "issues", {\n value: def,\n enumerable: false\n });\n Object.defineProperty(inst, "message", {\n get() {\n return JSON.stringify(def, jsonStringifyReplacer, 2);\n },\n enumerable: true\n });\n};\nvar $ZodError = $constructor("$ZodError", initializer);\nvar $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });\nfunction flattenError(error, mapper = (issue2) => issue2.message) {\n const fieldErrors = {};\n const formErrors = [];\n for (const sub of error.issues) {\n if (sub.path.length > 0) {\n fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];\n fieldErrors[sub.path[0]].push(mapper(sub));\n } else {\n formErrors.push(mapper(sub));\n }\n }\n return { formErrors, fieldErrors };\n}\nfunction formatError(error, _mapper) {\n const mapper = _mapper || function(issue2) {\n return issue2.message;\n };\n const fieldErrors = { _errors: [] };\n const processError = (error2) => {\n for (const issue2 of error2.issues) {\n if (issue2.code === "invalid_union" && issue2.errors.length) {\n issue2.errors.map((issues) => processError({ issues }));\n } else if (issue2.code === "invalid_key") {\n processError({ issues: issue2.issues });\n } else if (issue2.code === "invalid_element") {\n processError({ issues: issue2.issues });\n } else if (issue2.path.length === 0) {\n fieldErrors._errors.push(mapper(issue2));\n } else {\n let curr = fieldErrors;\n let i2 = 0;\n while (i2 < issue2.path.length) {\n const el = issue2.path[i2];\n const terminal = i2 === issue2.path.length - 1;\n if (!terminal) {\n curr[el] = curr[el] || { _errors: [] };\n } else {\n curr[el] = curr[el] || { _errors: [] };\n curr[el]._errors.push(mapper(issue2));\n }\n curr = curr[el];\n i2++;\n }\n }\n }\n };\n processError(error);\n return fieldErrors;\n}\nfunction treeifyError(error, _mapper) {\n const mapper = _mapper || function(issue2) {\n return issue2.message;\n };\n const result = { errors: [] };\n const processError = (error2, path = []) => {\n var _a15, _b;\n for (const issue2 of error2.issues) {\n if (issue2.code === "invalid_union" && issue2.errors.length) {\n issue2.errors.map((issues) => processError({ issues }, issue2.path));\n } else if (issue2.code === "invalid_key") {\n processError({ issues: issue2.issues }, issue2.path);\n } else if (issue2.code === "invalid_element") {\n processError({ issues: issue2.issues }, issue2.path);\n } else {\n const fullpath = [...path, ...issue2.path];\n if (fullpath.length === 0) {\n result.errors.push(mapper(issue2));\n continue;\n }\n let curr = result;\n let i2 = 0;\n while (i2 < fullpath.length) {\n const el = fullpath[i2];\n const terminal = i2 === fullpath.length - 1;\n if (typeof el === "string") {\n curr.properties ?? (curr.properties = {});\n (_a15 = curr.properties)[el] ?? (_a15[el] = { errors: [] });\n curr = curr.properties[el];\n } else {\n curr.items ?? (curr.items = []);\n (_b = curr.items)[el] ?? (_b[el] = { errors: [] });\n curr = curr.items[el];\n }\n if (terminal) {\n curr.errors.push(mapper(issue2));\n }\n i2++;\n }\n }\n }\n };\n processError(error);\n return result;\n}\nfunction toDotPath(path) {\n const segs = [];\n for (const seg of path) {\n if (typeof seg === "number")\n segs.push(`[${seg}]`);\n else if (typeof seg === "symbol")\n segs.push(`[${JSON.stringify(String(seg))}]`);\n else if (/[^\\w$]/.test(seg))\n segs.push(`[${JSON.stringify(seg)}]`);\n else {\n if (segs.length)\n segs.push(".");\n segs.push(seg);\n }\n }\n return segs.join("");\n}\nfunction prettifyError(error) {\n const lines = [];\n const issues = [...error.issues].sort((a2, b2) => a2.path.length - b2.path.length);\n for (const issue2 of issues) {\n lines.push(`✖ ${issue2.message}`);\n if (issue2.path?.length)\n lines.push(` → at ${toDotPath(issue2.path)}`);\n }\n return lines.join(`\n`);\n}\n\n// ../../node_modules/zod/dist/esm/v4/core/parse.js\nvar _parse = (_Err) => (schema, value, _ctx, _params) => {\n const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };\n const result = schema._zod.run({ value, issues: [] }, ctx);\n if (result instanceof Promise) {\n throw new $ZodAsyncError;\n }\n if (result.issues.length) {\n const e2 = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));\n Error.captureStackTrace(e2, _params?.callee);\n throw e2;\n }\n return result.value;\n};\nvar parse = /* @__PURE__ */ _parse($ZodRealError);\nvar _parseAsync = (_Err) => async (schema, value, _ctx, params) => {\n const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };\n let result = schema._zod.run({ value, issues: [] }, ctx);\n if (result instanceof Promise)\n result = await result;\n if (result.issues.length) {\n const e2 = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));\n Error.captureStackTrace(e2, params?.callee);\n throw e2;\n }\n return result.value;\n};\nvar parseAsync = /* @__PURE__ */ _parseAsync($ZodRealError);\nvar _safeParse = (_Err) => (schema, value, _ctx) => {\n const ctx = _ctx ? { ..._ctx, async: false } : { async: false };\n const result = schema._zod.run({ value, issues: [] }, ctx);\n if (result instanceof Promise) {\n throw new $ZodAsyncError;\n }\n return result.issues.length ? {\n success: false,\n error: new (_Err ?? $ZodError)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))\n } : { success: true, data: result.value };\n};\nvar safeParse = /* @__PURE__ */ _safeParse($ZodRealError);\nvar _safeParseAsync = (_Err) => async (schema, value, _ctx) => {\n const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };\n let result = schema._zod.run({ value, issues: [] }, ctx);\n if (result instanceof Promise)\n result = await result;\n return result.issues.length ? {\n success: false,\n error: new _Err(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))\n } : { success: true, data: result.value };\n};\nvar safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);\n// ../../node_modules/zod/dist/esm/v4/core/regexes.js\nvar exports_regexes = {};\n__export(exports_regexes, {\n xid: () => xid,\n uuid7: () => uuid7,\n uuid6: () => uuid6,\n uuid4: () => uuid4,\n uuid: () => uuid,\n uppercase: () => uppercase,\n unicodeEmail: () => unicodeEmail,\n undefined: () => _undefined,\n ulid: () => ulid,\n time: () => time,\n string: () => string,\n rfc5322Email: () => rfc5322Email,\n number: () => number,\n null: () => _null,\n nanoid: () => nanoid,\n lowercase: () => lowercase,\n ksuid: () => ksuid,\n ipv6: () => ipv6,\n ipv4: () => ipv4,\n integer: () => integer,\n html5Email: () => html5Email,\n hostname: () => hostname,\n guid: () => guid,\n extendedDuration: () => extendedDuration,\n emoji: () => emoji,\n email: () => email,\n e164: () => e164,\n duration: () => duration,\n domain: () => domain,\n datetime: () => datetime,\n date: () => date,\n cuid2: () => cuid2,\n cuid: () => cuid,\n cidrv6: () => cidrv6,\n cidrv4: () => cidrv4,\n browserEmail: () => browserEmail,\n boolean: () => boolean,\n bigint: () => bigint,\n base64url: () => base64url,\n base64: () => base64,\n _emoji: () => _emoji\n});\nvar cuid = /^[cC][^\\s-]{8,}$/;\nvar cuid2 = /^[0-9a-z]+$/;\nvar ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;\nvar xid = /^[0-9a-vA-V]{20}$/;\nvar ksuid = /^[A-Za-z0-9]{27}$/;\nvar nanoid = /^[a-zA-Z0-9_-]{21}$/;\nvar duration = /^P(?:(\\d+W)|(?!.*W)(?=\\d|T\\d)(\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+([.,]\\d+)?S)?)?)$/;\nvar extendedDuration = /^[-+]?P(?!$)(?:(?:[-+]?\\d+Y)|(?:[-+]?\\d+[.,]\\d+Y$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:(?:[-+]?\\d+W)|(?:[-+]?\\d+[.,]\\d+W$))?(?:(?:[-+]?\\d+D)|(?:[-+]?\\d+[.,]\\d+D$))?(?:T(?=[\\d+-])(?:(?:[-+]?\\d+H)|(?:[-+]?\\d+[.,]\\d+H$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:[-+]?\\d+(?:[.,]\\d+)?S)?)??$/;\nvar guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;\nvar uuid = (version) => {\n if (!version)\n return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/;\n return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);\n};\nvar uuid4 = /* @__PURE__ */ uuid(4);\nvar uuid6 = /* @__PURE__ */ uuid(6);\nvar uuid7 = /* @__PURE__ */ uuid(7);\nvar email = /^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_\'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/;\nvar html5Email = /^[a-zA-Z0-9.!#$%&\'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\nvar rfc5322Email = /^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\nvar unicodeEmail = /^[^\\s@"]{1,64}@[^\\s@]{1,255}$/u;\nvar browserEmail = /^[a-zA-Z0-9.!#$%&\'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\nvar _emoji = `^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$`;\nfunction emoji() {\n return new RegExp(_emoji, "u");\n}\nvar ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;\nvar ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/;\nvar cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\/([0-9]|[1-2][0-9]|3[0-2])$/;\nvar cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;\nvar base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;\nvar base64url = /^[A-Za-z0-9_-]*$/;\nvar hostname = /^([a-zA-Z0-9-]+\\.)*[a-zA-Z0-9-]+$/;\nvar domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$/;\nvar e164 = /^\\+(?:[0-9]){6,14}[0-9]$/;\nvar dateSource = `((\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\\\d|30)|(02)-(0[1-9]|1\\\\d|2[0-8])))`;\nvar date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);\nfunction timeSource(args) {\n let regex = `([01]\\\\d|2[0-3]):[0-5]\\\\d:[0-5]\\\\d`;\n if (args.precision) {\n regex = `${regex}\\\\.\\\\d{${args.precision}}`;\n } else if (args.precision == null) {\n regex = `${regex}(\\\\.\\\\d+)?`;\n }\n return regex;\n}\nfunction time(args) {\n return new RegExp(`^${timeSource(args)}$`);\n}\nfunction datetime(args) {\n let regex = `${dateSource}T${timeSource(args)}`;\n const opts = [];\n opts.push(args.local ? `Z?` : `Z`);\n if (args.offset)\n opts.push(`([+-]\\\\d{2}:?\\\\d{2})`);\n regex = `${regex}(${opts.join("|")})`;\n return new RegExp(`^${regex}$`);\n}\nvar string = (params) => {\n const regex = params ? `[\\\\s\\\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\\\s\\\\S]*`;\n return new RegExp(`^${regex}$`);\n};\nvar bigint = /^\\d+n?$/;\nvar integer = /^\\d+$/;\nvar number = /^-?\\d+(?:\\.\\d+)?/i;\nvar boolean = /true|false/i;\nvar _null = /null/i;\nvar _undefined = /undefined/i;\nvar lowercase = /^[^A-Z]*$/;\nvar uppercase = /^[^a-z]*$/;\n\n// ../../node_modules/zod/dist/esm/v4/core/checks.js\nvar $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {\n var _a15;\n inst._zod ?? (inst._zod = {});\n inst._zod.def = def;\n (_a15 = inst._zod).onattach ?? (_a15.onattach = []);\n});\nvar numericOriginMap = {\n number: "number",\n bigint: "bigint",\n object: "date"\n};\nvar $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (inst, def) => {\n $ZodCheck.init(inst, def);\n const origin = numericOriginMap[typeof def.value];\n inst._zod.onattach.push((inst2) => {\n const bag = inst2._zod.bag;\n const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;\n if (def.value < curr) {\n if (def.inclusive)\n bag.maximum = def.value;\n else\n bag.exclusiveMaximum = def.value;\n }\n });\n inst._zod.check = (payload) => {\n if (def.inclusive ? payload.value <= def.value : payload.value < def.value) {\n return;\n }\n payload.issues.push({\n origin,\n code: "too_big",\n maximum: def.value,\n input: payload.value,\n inclusive: def.inclusive,\n inst,\n continue: !def.abort\n });\n };\n});\nvar $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan", (inst, def) => {\n $ZodCheck.init(inst, def);\n const origin = numericOriginMap[typeof def.value];\n inst._zod.onattach.push((inst2) => {\n const bag = inst2._zod.bag;\n const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;\n if (def.value > curr) {\n if (def.inclusive)\n bag.minimum = def.value;\n else\n bag.exclusiveMinimum = def.value;\n }\n });\n inst._zod.check = (payload) => {\n if (def.inclusive ? payload.value >= def.value : payload.value > def.value) {\n return;\n }\n payload.issues.push({\n origin,\n code: "too_small",\n minimum: def.value,\n input: payload.value,\n inclusive: def.inclusive,\n inst,\n continue: !def.abort\n });\n };\n});\nvar $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {\n $ZodCheck.init(inst, def);\n inst._zod.onattach.push((inst2) => {\n var _a15;\n (_a15 = inst2._zod.bag).multipleOf ?? (_a15.multipleOf = def.value);\n });\n inst._zod.check = (payload) => {\n if (typeof payload.value !== typeof def.value)\n throw new Error("Cannot mix number and bigint in multiple_of check.");\n const isMultiple = typeof payload.value === "bigint" ? payload.value % def.value === BigInt(0) : floatSafeRemainder(payload.value, def.value) === 0;\n if (isMultiple)\n return;\n payload.issues.push({\n origin: typeof payload.value,\n code: "not_multiple_of",\n divisor: def.value,\n input: payload.value,\n inst,\n continue: !def.abort\n });\n };\n});\nvar $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberFormat", (inst, def) => {\n $ZodCheck.init(inst, def);\n def.format = def.format || "float64";\n const isInt = def.format?.includes("int");\n const origin = isInt ? "int" : "number";\n const [minimum, maximum] = NUMBER_FORMAT_RANGES[def.format];\n inst._zod.onattach.push((inst2) => {\n const bag = inst2._zod.bag;\n bag.format = def.format;\n bag.minimum = minimum;\n bag.maximum = maximum;\n if (isInt)\n bag.pattern = integer;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n if (isInt) {\n if (!Number.isInteger(input)) {\n payload.issues.push({\n expected: origin,\n format: def.format,\n code: "invalid_type",\n input,\n inst\n });\n return;\n }\n if (!Number.isSafeInteger(input)) {\n if (input > 0) {\n payload.issues.push({\n input,\n code: "too_big",\n maximum: Number.MAX_SAFE_INTEGER,\n note: "Integers must be within the safe integer range.",\n inst,\n origin,\n continue: !def.abort\n });\n } else {\n payload.issues.push({\n input,\n code: "too_small",\n minimum: Number.MIN_SAFE_INTEGER,\n note: "Integers must be within the safe integer range.",\n inst,\n origin,\n continue: !def.abort\n });\n }\n return;\n }\n }\n if (input < minimum) {\n payload.issues.push({\n origin: "number",\n input,\n code: "too_small",\n minimum,\n inclusive: true,\n inst,\n continue: !def.abort\n });\n }\n if (input > maximum) {\n payload.issues.push({\n origin: "number",\n input,\n code: "too_big",\n maximum,\n inst\n });\n }\n };\n});\nvar $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat", (inst, def) => {\n $ZodCheck.init(inst, def);\n const [minimum, maximum] = BIGINT_FORMAT_RANGES[def.format];\n inst._zod.onattach.push((inst2) => {\n const bag = inst2._zod.bag;\n bag.format = def.format;\n bag.minimum = minimum;\n bag.maximum = maximum;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n if (input < minimum) {\n payload.issues.push({\n origin: "bigint",\n input,\n code: "too_small",\n minimum,\n inclusive: true,\n inst,\n continue: !def.abort\n });\n }\n if (input > maximum) {\n payload.issues.push({\n origin: "bigint",\n input,\n code: "too_big",\n maximum,\n inst\n });\n }\n };\n});\nvar $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {\n $ZodCheck.init(inst, def);\n inst._zod.when = (payload) => {\n const val = payload.value;\n return !nullish(val) && val.size !== undefined;\n };\n inst._zod.onattach.push((inst2) => {\n const curr = inst2._zod.bag.maximum ?? Number.POSITIVE_INFINITY;\n if (def.maximum < curr)\n inst2._zod.bag.maximum = def.maximum;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const size = input.size;\n if (size <= def.maximum)\n return;\n payload.issues.push({\n origin: getSizableOrigin(input),\n code: "too_big",\n maximum: def.maximum,\n input,\n inst,\n continue: !def.abort\n });\n };\n});\nvar $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {\n $ZodCheck.init(inst, def);\n inst._zod.when = (payload) => {\n const val = payload.value;\n return !nullish(val) && val.size !== undefined;\n };\n inst._zod.onattach.push((inst2) => {\n const curr = inst2._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;\n if (def.minimum > curr)\n inst2._zod.bag.minimum = def.minimum;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const size = input.size;\n if (size >= def.minimum)\n return;\n payload.issues.push({\n origin: getSizableOrigin(input),\n code: "too_small",\n minimum: def.minimum,\n input,\n inst,\n continue: !def.abort\n });\n };\n});\nvar $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {\n $ZodCheck.init(inst, def);\n inst._zod.when = (payload) => {\n const val = payload.value;\n return !nullish(val) && val.size !== undefined;\n };\n inst._zod.onattach.push((inst2) => {\n const bag = inst2._zod.bag;\n bag.minimum = def.size;\n bag.maximum = def.size;\n bag.size = def.size;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const size = input.size;\n if (size === def.size)\n return;\n const tooBig = size > def.size;\n payload.issues.push({\n origin: getSizableOrigin(input),\n ...tooBig ? { code: "too_big", maximum: def.size } : { code: "too_small", minimum: def.size },\n input: payload.value,\n inst,\n continue: !def.abort\n });\n };\n});\nvar $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {\n $ZodCheck.init(inst, def);\n inst._zod.when = (payload) => {\n const val = payload.value;\n return !nullish(val) && val.length !== undefined;\n };\n inst._zod.onattach.push((inst2) => {\n const curr = inst2._zod.bag.maximum ?? Number.POSITIVE_INFINITY;\n if (def.maximum < curr)\n inst2._zod.bag.maximum = def.maximum;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const length = input.length;\n if (length <= def.maximum)\n return;\n const origin = getLengthableOrigin(input);\n payload.issues.push({\n origin,\n code: "too_big",\n maximum: def.maximum,\n inclusive: true,\n input,\n inst,\n continue: !def.abort\n });\n };\n});\nvar $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {\n $ZodCheck.init(inst, def);\n inst._zod.when = (payload) => {\n const val = payload.value;\n return !nullish(val) && val.length !== undefined;\n };\n inst._zod.onattach.push((inst2) => {\n const curr = inst2._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;\n if (def.minimum > curr)\n inst2._zod.bag.minimum = def.minimum;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const length = input.length;\n if (length >= def.minimum)\n return;\n const origin = getLengthableOrigin(input);\n payload.issues.push({\n origin,\n code: "too_small",\n minimum: def.minimum,\n inclusive: true,\n input,\n inst,\n continue: !def.abort\n });\n };\n});\nvar $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {\n $ZodCheck.init(inst, def);\n inst._zod.when = (payload) => {\n const val = payload.value;\n return !nullish(val) && val.length !== undefined;\n };\n inst._zod.onattach.push((inst2) => {\n const bag = inst2._zod.bag;\n bag.minimum = def.length;\n bag.maximum = def.length;\n bag.length = def.length;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const length = input.length;\n if (length === def.length)\n return;\n const origin = getLengthableOrigin(input);\n const tooBig = length > def.length;\n payload.issues.push({\n origin,\n ...tooBig ? { code: "too_big", maximum: def.length } : { code: "too_small", minimum: def.length },\n input: payload.value,\n inst,\n continue: !def.abort\n });\n };\n});\nvar $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {\n var _a15;\n $ZodCheck.init(inst, def);\n inst._zod.onattach.push((inst2) => {\n const bag = inst2._zod.bag;\n bag.format = def.format;\n if (def.pattern) {\n bag.patterns ?? (bag.patterns = new Set);\n bag.patterns.add(def.pattern);\n }\n });\n (_a15 = inst._zod).check ?? (_a15.check = (payload) => {\n if (!def.pattern)\n throw new Error("Not implemented.");\n def.pattern.lastIndex = 0;\n if (def.pattern.test(payload.value))\n return;\n payload.issues.push({\n origin: "string",\n code: "invalid_format",\n format: def.format,\n input: payload.value,\n ...def.pattern ? { pattern: def.pattern.toString() } : {},\n inst,\n continue: !def.abort\n });\n });\n});\nvar $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => {\n $ZodCheckStringFormat.init(inst, def);\n inst._zod.check = (payload) => {\n def.pattern.lastIndex = 0;\n if (def.pattern.test(payload.value))\n return;\n payload.issues.push({\n origin: "string",\n code: "invalid_format",\n format: "regex",\n input: payload.value,\n pattern: def.pattern.toString(),\n inst,\n continue: !def.abort\n });\n };\n});\nvar $ZodCheckLowerCase = /* @__PURE__ */ $constructor("$ZodCheckLowerCase", (inst, def) => {\n def.pattern ?? (def.pattern = lowercase);\n $ZodCheckStringFormat.init(inst, def);\n});\nvar $ZodCheckUpperCase = /* @__PURE__ */ $constructor("$ZodCheckUpperCase", (inst, def) => {\n def.pattern ?? (def.pattern = uppercase);\n $ZodCheckStringFormat.init(inst, def);\n});\nvar $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (inst, def) => {\n $ZodCheck.init(inst, def);\n const escapedRegex = escapeRegex(def.includes);\n const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);\n def.pattern = pattern;\n inst._zod.onattach.push((inst2) => {\n const bag = inst2._zod.bag;\n bag.patterns ?? (bag.patterns = new Set);\n bag.patterns.add(pattern);\n });\n inst._zod.check = (payload) => {\n if (payload.value.includes(def.includes, def.position))\n return;\n payload.issues.push({\n origin: "string",\n code: "invalid_format",\n format: "includes",\n includes: def.includes,\n input: payload.value,\n inst,\n continue: !def.abort\n });\n };\n});\nvar $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith", (inst, def) => {\n $ZodCheck.init(inst, def);\n const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);\n def.pattern ?? (def.pattern = pattern);\n inst._zod.onattach.push((inst2) => {\n const bag = inst2._zod.bag;\n bag.patterns ?? (bag.patterns = new Set);\n bag.patterns.add(pattern);\n });\n inst._zod.check = (payload) => {\n if (payload.value.startsWith(def.prefix))\n return;\n payload.issues.push({\n origin: "string",\n code: "invalid_format",\n format: "starts_with",\n prefix: def.prefix,\n input: payload.value,\n inst,\n continue: !def.abort\n });\n };\n});\nvar $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (inst, def) => {\n $ZodCheck.init(inst, def);\n const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);\n def.pattern ?? (def.pattern = pattern);\n inst._zod.onattach.push((inst2) => {\n const bag = inst2._zod.bag;\n bag.patterns ?? (bag.patterns = new Set);\n bag.patterns.add(pattern);\n });\n inst._zod.check = (payload) => {\n if (payload.value.endsWith(def.suffix))\n return;\n payload.issues.push({\n origin: "string",\n code: "invalid_format",\n format: "ends_with",\n suffix: def.suffix,\n input: payload.value,\n inst,\n continue: !def.abort\n });\n };\n});\nfunction handleCheckPropertyResult(result, payload, property) {\n if (result.issues.length) {\n payload.issues.push(...prefixIssues(property, result.issues));\n }\n}\nvar $ZodCheckProperty = /* @__PURE__ */ $constructor("$ZodCheckProperty", (inst, def) => {\n $ZodCheck.init(inst, def);\n inst._zod.check = (payload) => {\n const result = def.schema._zod.run({\n value: payload.value[def.property],\n issues: []\n }, {});\n if (result instanceof Promise) {\n return result.then((result2) => handleCheckPropertyResult(result2, payload, def.property));\n }\n handleCheckPropertyResult(result, payload, def.property);\n return;\n };\n});\nvar $ZodCheckMimeType = /* @__PURE__ */ $constructor("$ZodCheckMimeType", (inst, def) => {\n $ZodCheck.init(inst, def);\n const mimeSet = new Set(def.mime);\n inst._zod.onattach.push((inst2) => {\n inst2._zod.bag.mime = def.mime;\n });\n inst._zod.check = (payload) => {\n if (mimeSet.has(payload.value.type))\n return;\n payload.issues.push({\n code: "invalid_value",\n values: def.mime,\n input: payload.value.type,\n path: ["type"],\n inst\n });\n };\n});\nvar $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (inst, def) => {\n $ZodCheck.init(inst, def);\n inst._zod.check = (payload) => {\n payload.value = def.tx(payload.value);\n };\n});\n\n// ../../node_modules/zod/dist/esm/v4/core/doc.js\nclass Doc {\n constructor(args = []) {\n this.content = [];\n this.indent = 0;\n if (this)\n this.args = args;\n }\n indented(fn) {\n this.indent += 1;\n fn(this);\n this.indent -= 1;\n }\n write(arg) {\n if (typeof arg === "function") {\n arg(this, { execution: "sync" });\n arg(this, { execution: "async" });\n return;\n }\n const content = arg;\n const lines = content.split(`\n`).filter((x2) => x2);\n const minIndent = Math.min(...lines.map((x2) => x2.length - x2.trimStart().length));\n const dedented = lines.map((x2) => x2.slice(minIndent)).map((x2) => " ".repeat(this.indent * 2) + x2);\n for (const line of dedented) {\n this.content.push(line);\n }\n }\n compile() {\n const F2 = Function;\n const args = this?.args;\n const content = this?.content ?? [``];\n const lines = [...content.map((x2) => ` ${x2}`)];\n return new F2(...args, lines.join(`\n`));\n }\n}\n\n// ../../node_modules/zod/dist/esm/v4/core/versions.js\nvar version = {\n major: 4,\n minor: 0,\n patch: 0\n};\n\n// ../../node_modules/zod/dist/esm/v4/core/schemas.js\nvar $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {\n var _a15;\n inst ?? (inst = {});\n inst._zod.id = def.type + "_" + randomString(10);\n inst._zod.def = def;\n inst._zod.bag = inst._zod.bag || {};\n inst._zod.version = version;\n const checks = [...inst._zod.def.checks ?? []];\n if (inst._zod.traits.has("$ZodCheck")) {\n checks.unshift(inst);\n }\n for (const ch of checks) {\n for (const fn of ch._zod.onattach) {\n fn(inst);\n }\n }\n if (checks.length === 0) {\n (_a15 = inst._zod).deferred ?? (_a15.deferred = []);\n inst._zod.deferred?.push(() => {\n inst._zod.run = inst._zod.parse;\n });\n } else {\n const runChecks = (payload, checks2, ctx) => {\n let isAborted = aborted(payload);\n let asyncResult;\n for (const ch of checks2) {\n if (ch._zod.when) {\n const shouldRun = ch._zod.when(payload);\n if (!shouldRun)\n continue;\n } else {\n if (isAborted) {\n continue;\n }\n }\n const currLen = payload.issues.length;\n const _3 = ch._zod.check(payload);\n if (_3 instanceof Promise && ctx?.async === false) {\n throw new $ZodAsyncError;\n }\n if (asyncResult || _3 instanceof Promise) {\n asyncResult = (asyncResult ?? Promise.resolve()).then(async () => {\n await _3;\n const nextLen = payload.issues.length;\n if (nextLen === currLen)\n return;\n if (!isAborted)\n isAborted = aborted(payload, currLen);\n });\n } else {\n const nextLen = payload.issues.length;\n if (nextLen === currLen)\n continue;\n if (!isAborted)\n isAborted = aborted(payload, currLen);\n }\n }\n if (asyncResult) {\n return asyncResult.then(() => {\n return payload;\n });\n }\n return payload;\n };\n inst._zod.run = (payload, ctx) => {\n const result = inst._zod.parse(payload, ctx);\n if (result instanceof Promise) {\n if (ctx.async === false)\n throw new $ZodAsyncError;\n return result.then((result2) => runChecks(result2, checks, ctx));\n }\n return runChecks(result, checks, ctx);\n };\n }\n inst["~standard"] = {\n validate: (value) => {\n try {\n const r2 = safeParse(inst, value);\n return r2.success ? { value: r2.data } : { issues: r2.error?.issues };\n } catch (_3) {\n return safeParseAsync(inst, value).then((r2) => r2.success ? { value: r2.data } : { issues: r2.error?.issues });\n }\n },\n vendor: "zod",\n version: 1\n };\n});\nvar $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string(inst._zod.bag);\n inst._zod.parse = (payload, _3) => {\n if (def.coerce)\n try {\n payload.value = String(payload.value);\n } catch (_4) {}\n if (typeof payload.value === "string")\n return payload;\n payload.issues.push({\n expected: "string",\n code: "invalid_type",\n input: payload.value,\n inst\n });\n return payload;\n };\n});\nvar $ZodStringFormat = /* @__PURE__ */ $constructor("$ZodStringFormat", (inst, def) => {\n $ZodCheckStringFormat.init(inst, def);\n $ZodString.init(inst, def);\n});\nvar $ZodGUID = /* @__PURE__ */ $constructor("$ZodGUID", (inst, def) => {\n def.pattern ?? (def.pattern = guid);\n $ZodStringFormat.init(inst, def);\n});\nvar $ZodUUID = /* @__PURE__ */ $constructor("$ZodUUID", (inst, def) => {\n if (def.version) {\n const versionMap = {\n v1: 1,\n v2: 2,\n v3: 3,\n v4: 4,\n v5: 5,\n v6: 6,\n v7: 7,\n v8: 8\n };\n const v3 = versionMap[def.version];\n if (v3 === undefined)\n throw new Error(`Invalid UUID version: "${def.version}"`);\n def.pattern ?? (def.pattern = uuid(v3));\n } else\n def.pattern ?? (def.pattern = uuid());\n $ZodStringFormat.init(inst, def);\n});\nvar $ZodEmail = /* @__PURE__ */ $constructor("$ZodEmail", (inst, def) => {\n def.pattern ?? (def.pattern = email);\n $ZodStringFormat.init(inst, def);\n});\nvar $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {\n $ZodStringFormat.init(inst, def);\n inst._zod.check = (payload) => {\n try {\n const url = new URL(payload.value);\n if (def.hostname) {\n def.hostname.lastIndex = 0;\n if (!def.hostname.test(url.hostname)) {\n payload.issues.push({\n code: "invalid_format",\n format: "url",\n note: "Invalid hostname",\n pattern: hostname.source,\n input: payload.value,\n inst\n });\n }\n }\n if (def.protocol) {\n def.protocol.lastIndex = 0;\n if (!def.protocol.test(url.protocol.endsWith(":") ? url.protocol.slice(0, -1) : url.protocol)) {\n payload.issues.push({\n code: "invalid_format",\n format: "url",\n note: "Invalid protocol",\n pattern: def.protocol.source,\n input: payload.value,\n inst\n });\n }\n }\n return;\n } catch (_3) {\n payload.issues.push({\n code: "invalid_format",\n format: "url",\n input: payload.value,\n inst\n });\n }\n };\n});\nvar $ZodEmoji = /* @__PURE__ */ $constructor("$ZodEmoji", (inst, def) => {\n def.pattern ?? (def.pattern = emoji());\n $ZodStringFormat.init(inst, def);\n});\nvar $ZodNanoID = /* @__PURE__ */ $constructor("$ZodNanoID", (inst, def) => {\n def.pattern ?? (def.pattern = nanoid);\n $ZodStringFormat.init(inst, def);\n});\nvar $ZodCUID = /* @__PURE__ */ $constructor("$ZodCUID", (inst, def) => {\n def.pattern ?? (def.pattern = cuid);\n $ZodStringFormat.init(inst, def);\n});\nvar $ZodCUID2 = /* @__PURE__ */ $constructor("$ZodCUID2", (inst, def) => {\n def.pattern ?? (def.pattern = cuid2);\n $ZodStringFormat.init(inst, def);\n});\nvar $ZodULID = /* @__PURE__ */ $constructor("$ZodULID", (inst, def) => {\n def.pattern ?? (def.pattern = ulid);\n $ZodStringFormat.init(inst, def);\n});\nvar $ZodXID = /* @__PURE__ */ $constructor("$ZodXID", (inst, def) => {\n def.pattern ?? (def.pattern = xid);\n $ZodStringFormat.init(inst, def);\n});\nvar $ZodKSUID = /* @__PURE__ */ $constructor("$ZodKSUID", (inst, def) => {\n def.pattern ?? (def.pattern = ksuid);\n $ZodStringFormat.init(inst, def);\n});\nvar $ZodISODateTime = /* @__PURE__ */ $constructor("$ZodISODateTime", (inst, def) => {\n def.pattern ?? (def.pattern = datetime(def));\n $ZodStringFormat.init(inst, def);\n});\nvar $ZodISODate = /* @__PURE__ */ $constructor("$ZodISODate", (inst, def) => {\n def.pattern ?? (def.pattern = date);\n $ZodStringFormat.init(inst, def);\n});\nvar $ZodISOTime = /* @__PURE__ */ $constructor("$ZodISOTime", (inst, def) => {\n def.pattern ?? (def.pattern = time(def));\n $ZodStringFormat.init(inst, def);\n});\nvar $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, def) => {\n def.pattern ?? (def.pattern = duration);\n $ZodStringFormat.init(inst, def);\n});\nvar $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => {\n def.pattern ?? (def.pattern = ipv4);\n $ZodStringFormat.init(inst, def);\n inst._zod.onattach.push((inst2) => {\n const bag = inst2._zod.bag;\n bag.format = `ipv4`;\n });\n});\nvar $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {\n def.pattern ?? (def.pattern = ipv6);\n $ZodStringFormat.init(inst, def);\n inst._zod.onattach.push((inst2) => {\n const bag = inst2._zod.bag;\n bag.format = `ipv6`;\n });\n inst._zod.check = (payload) => {\n try {\n new URL(`http://[${payload.value}]`);\n } catch {\n payload.issues.push({\n code: "invalid_format",\n format: "ipv6",\n input: payload.value,\n inst\n });\n }\n };\n});\nvar $ZodCIDRv4 = /* @__PURE__ */ $constructor("$ZodCIDRv4", (inst, def) => {\n def.pattern ?? (def.pattern = cidrv4);\n $ZodStringFormat.init(inst, def);\n});\nvar $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {\n def.pattern ?? (def.pattern = cidrv6);\n $ZodStringFormat.init(inst, def);\n inst._zod.check = (payload) => {\n const [address, prefix] = payload.value.split("/");\n try {\n if (!prefix)\n throw new Error;\n const prefixNum = Number(prefix);\n if (`${prefixNum}` !== prefix)\n throw new Error;\n if (prefixNum < 0 || prefixNum > 128)\n throw new Error;\n new URL(`http://[${address}]`);\n } catch {\n payload.issues.push({\n code: "invalid_format",\n format: "cidrv6",\n input: payload.value,\n inst\n });\n }\n };\n});\nfunction isValidBase64(data) {\n if (data === "")\n return true;\n if (data.length % 4 !== 0)\n return false;\n try {\n atob(data);\n return true;\n } catch {\n return false;\n }\n}\nvar $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {\n def.pattern ?? (def.pattern = base64);\n $ZodStringFormat.init(inst, def);\n inst._zod.onattach.push((inst2) => {\n inst2._zod.bag.contentEncoding = "base64";\n });\n inst._zod.check = (payload) => {\n if (isValidBase64(payload.value))\n return;\n payload.issues.push({\n code: "invalid_format",\n format: "base64",\n input: payload.value,\n inst\n });\n };\n});\nfunction isValidBase64URL(data) {\n if (!base64url.test(data))\n return false;\n const base642 = data.replace(/[-_]/g, (c2) => c2 === "-" ? "+" : "/");\n const padded = base642.padEnd(Math.ceil(base642.length / 4) * 4, "=");\n return isValidBase64(padded);\n}\nvar $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {\n def.pattern ?? (def.pattern = base64url);\n $ZodStringFormat.init(inst, def);\n inst._zod.onattach.push((inst2) => {\n inst2._zod.bag.contentEncoding = "base64url";\n });\n inst._zod.check = (payload) => {\n if (isValidBase64URL(payload.value))\n return;\n payload.issues.push({\n code: "invalid_format",\n format: "base64url",\n input: payload.value,\n inst\n });\n };\n});\nvar $ZodE164 = /* @__PURE__ */ $constructor("$ZodE164", (inst, def) => {\n def.pattern ?? (def.pattern = e164);\n $ZodStringFormat.init(inst, def);\n});\nfunction isValidJWT(token, algorithm = null) {\n try {\n const tokensParts = token.split(".");\n if (tokensParts.length !== 3)\n return false;\n const [header] = tokensParts;\n const parsedHeader = JSON.parse(atob(header));\n if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT")\n return false;\n if (!parsedHeader.alg)\n return false;\n if (algorithm && (!("alg" in parsedHeader) || parsedHeader.alg !== algorithm))\n return false;\n return true;\n } catch {\n return false;\n }\n}\nvar $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {\n $ZodStringFormat.init(inst, def);\n inst._zod.check = (payload) => {\n if (isValidJWT(payload.value, def.alg))\n return;\n payload.issues.push({\n code: "invalid_format",\n format: "jwt",\n input: payload.value,\n inst\n });\n };\n});\nvar $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.pattern = inst._zod.bag.pattern ?? number;\n inst._zod.parse = (payload, _ctx) => {\n if (def.coerce)\n try {\n payload.value = Number(payload.value);\n } catch (_3) {}\n const input = payload.value;\n if (typeof input === "number" && !Number.isNaN(input) && Number.isFinite(input)) {\n return payload;\n }\n const received = typeof input === "number" ? Number.isNaN(input) ? "NaN" : !Number.isFinite(input) ? "Infinity" : undefined : undefined;\n payload.issues.push({\n expected: "number",\n code: "invalid_type",\n input,\n inst,\n ...received ? { received } : {}\n });\n return payload;\n };\n});\nvar $ZodNumberFormat = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {\n $ZodCheckNumberFormat.init(inst, def);\n $ZodNumber.init(inst, def);\n});\nvar $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.pattern = boolean;\n inst._zod.parse = (payload, _ctx) => {\n if (def.coerce)\n try {\n payload.value = Boolean(payload.value);\n } catch (_3) {}\n const input = payload.value;\n if (typeof input === "boolean")\n return payload;\n payload.issues.push({\n expected: "boolean",\n code: "invalid_type",\n input,\n inst\n });\n return payload;\n };\n});\nvar $ZodBigInt = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.pattern = bigint;\n inst._zod.parse = (payload, _ctx) => {\n if (def.coerce)\n try {\n payload.value = BigInt(payload.value);\n } catch (_3) {}\n const { value: input } = payload;\n if (typeof input === "bigint")\n return payload;\n payload.issues.push({\n expected: "bigint",\n code: "invalid_type",\n input,\n inst\n });\n return payload;\n };\n});\nvar $ZodBigIntFormat = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {\n $ZodCheckBigIntFormat.init(inst, def);\n $ZodBigInt.init(inst, def);\n});\nvar $ZodSymbol = /* @__PURE__ */ $constructor("$ZodSymbol", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, _ctx) => {\n const { value: input } = payload;\n if (typeof input === "symbol")\n return payload;\n payload.issues.push({\n expected: "symbol",\n code: "invalid_type",\n input,\n inst\n });\n return payload;\n };\n});\nvar $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.pattern = _undefined;\n inst._zod.values = new Set([undefined]);\n inst._zod.parse = (payload, _ctx) => {\n const { value: input } = payload;\n if (typeof input === "undefined")\n return payload;\n payload.issues.push({\n expected: "undefined",\n code: "invalid_type",\n input,\n inst\n });\n return payload;\n };\n});\nvar $ZodNull = /* @__PURE__ */ $constructor("$ZodNull", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.pattern = _null;\n inst._zod.values = new Set([null]);\n inst._zod.parse = (payload, _ctx) => {\n const { value: input } = payload;\n if (input === null)\n return payload;\n payload.issues.push({\n expected: "null",\n code: "invalid_type",\n input,\n inst\n });\n return payload;\n };\n});\nvar $ZodAny = /* @__PURE__ */ $constructor("$ZodAny", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload) => payload;\n});\nvar $ZodUnknown = /* @__PURE__ */ $constructor("$ZodUnknown", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload) => payload;\n});\nvar $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, _ctx) => {\n payload.issues.push({\n expected: "never",\n code: "invalid_type",\n input: payload.value,\n inst\n });\n return payload;\n };\n});\nvar $ZodVoid = /* @__PURE__ */ $constructor("$ZodVoid", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, _ctx) => {\n const { value: input } = payload;\n if (typeof input === "undefined")\n return payload;\n payload.issues.push({\n expected: "void",\n code: "invalid_type",\n input,\n inst\n });\n return payload;\n };\n});\nvar $ZodDate = /* @__PURE__ */ $constructor("$ZodDate", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, _ctx) => {\n if (def.coerce) {\n try {\n payload.value = new Date(payload.value);\n } catch (_err) {}\n }\n const input = payload.value;\n const isDate = input instanceof Date;\n const isValidDate = isDate && !Number.isNaN(input.getTime());\n if (isValidDate)\n return payload;\n payload.issues.push({\n expected: "date",\n code: "invalid_type",\n input,\n ...isDate ? { received: "Invalid Date" } : {},\n inst\n });\n return payload;\n };\n});\nfunction handleArrayResult(result, final, index) {\n if (result.issues.length) {\n final.issues.push(...prefixIssues(index, result.issues));\n }\n final.value[index] = result.value;\n}\nvar $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, ctx) => {\n const input = payload.value;\n if (!Array.isArray(input)) {\n payload.issues.push({\n expected: "array",\n code: "invalid_type",\n input,\n inst\n });\n return payload;\n }\n payload.value = Array(input.length);\n const proms = [];\n for (let i2 = 0;i2 < input.length; i2++) {\n const item = input[i2];\n const result = def.element._zod.run({\n value: item,\n issues: []\n }, ctx);\n if (result instanceof Promise) {\n proms.push(result.then((result2) => handleArrayResult(result2, payload, i2)));\n } else {\n handleArrayResult(result, payload, i2);\n }\n }\n if (proms.length) {\n return Promise.all(proms).then(() => payload);\n }\n return payload;\n };\n});\nfunction handleObjectResult(result, final, key) {\n if (result.issues.length) {\n final.issues.push(...prefixIssues(key, result.issues));\n }\n final.value[key] = result.value;\n}\nfunction handleOptionalObjectResult(result, final, key, input) {\n if (result.issues.length) {\n if (input[key] === undefined) {\n if (key in input) {\n final.value[key] = undefined;\n } else {\n final.value[key] = result.value;\n }\n } else {\n final.issues.push(...prefixIssues(key, result.issues));\n }\n } else if (result.value === undefined) {\n if (key in input)\n final.value[key] = undefined;\n } else {\n final.value[key] = result.value;\n }\n}\nvar $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {\n $ZodType.init(inst, def);\n const _normalized = cached(() => {\n const keys = Object.keys(def.shape);\n for (const k2 of keys) {\n if (!(def.shape[k2] instanceof $ZodType)) {\n throw new Error(`Invalid element at key "${k2}": expected a Zod schema`);\n }\n }\n const okeys = optionalKeys(def.shape);\n return {\n shape: def.shape,\n keys,\n keySet: new Set(keys),\n numKeys: keys.length,\n optionalKeys: new Set(okeys)\n };\n });\n defineLazy(inst._zod, "propValues", () => {\n const shape = def.shape;\n const propValues = {};\n for (const key in shape) {\n const field = shape[key]._zod;\n if (field.values) {\n propValues[key] ?? (propValues[key] = new Set);\n for (const v3 of field.values)\n propValues[key].add(v3);\n }\n }\n return propValues;\n });\n const generateFastpass = (shape) => {\n const doc = new Doc(["shape", "payload", "ctx"]);\n const { keys, optionalKeys: optionalKeys2 } = _normalized.value;\n const parseStr = (key) => {\n const k2 = esc(key);\n return `shape[${k2}]._zod.run({ value: input[${k2}], issues: [] }, ctx)`;\n };\n doc.write(`const input = payload.value;`);\n const ids = Object.create(null);\n for (const key of keys) {\n ids[key] = randomString(15);\n }\n doc.write(`const newResult = {}`);\n for (const key of keys) {\n if (optionalKeys2.has(key)) {\n const id = ids[key];\n doc.write(`const ${id} = ${parseStr(key)};`);\n const k2 = esc(key);\n doc.write(`\n if (${id}.issues.length) {\n if (input[${k2}] === undefined) {\n if (${k2} in input) {\n newResult[${k2}] = undefined;\n }\n } else {\n payload.issues = payload.issues.concat(\n ${id}.issues.map((iss) => ({\n ...iss,\n path: iss.path ? [${k2}, ...iss.path] : [${k2}],\n }))\n );\n }\n } else if (${id}.value === undefined) {\n if (${k2} in input) newResult[${k2}] = undefined;\n } else {\n newResult[${k2}] = ${id}.value;\n }\n `);\n } else {\n const id = ids[key];\n doc.write(`const ${id} = ${parseStr(key)};`);\n doc.write(`\n if (${id}.issues.length) payload.issues = payload.issues.concat(${id}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${esc(key)}, ...iss.path] : [${esc(key)}]\n })));`);\n doc.write(`newResult[${esc(key)}] = ${id}.value`);\n }\n }\n doc.write(`payload.value = newResult;`);\n doc.write(`return payload;`);\n const fn = doc.compile();\n return (payload, ctx) => fn(shape, payload, ctx);\n };\n let fastpass;\n const isObject2 = isObject;\n const jit = !globalConfig.jitless;\n const allowsEval2 = allowsEval;\n const fastEnabled = jit && allowsEval2.value;\n const { catchall } = def;\n let value;\n inst._zod.parse = (payload, ctx) => {\n value ?? (value = _normalized.value);\n const input = payload.value;\n if (!isObject2(input)) {\n payload.issues.push({\n expected: "object",\n code: "invalid_type",\n input,\n inst\n });\n return payload;\n }\n const proms = [];\n if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) {\n if (!fastpass)\n fastpass = generateFastpass(def.shape);\n payload = fastpass(payload, ctx);\n } else {\n payload.value = {};\n const shape = value.shape;\n for (const key of value.keys) {\n const el = shape[key];\n const r2 = el._zod.run({ value: input[key], issues: [] }, ctx);\n const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";\n if (r2 instanceof Promise) {\n proms.push(r2.then((r3) => isOptional ? handleOptionalObjectResult(r3, payload, key, input) : handleObjectResult(r3, payload, key)));\n } else {\n if (isOptional) {\n handleOptionalObjectResult(r2, payload, key, input);\n } else {\n handleObjectResult(r2, payload, key);\n }\n }\n }\n }\n if (!catchall) {\n return proms.length ? Promise.all(proms).then(() => payload) : payload;\n }\n const unrecognized = [];\n const keySet = value.keySet;\n const _catchall = catchall._zod;\n const t2 = _catchall.def.type;\n for (const key of Object.keys(input)) {\n if (keySet.has(key))\n continue;\n if (t2 === "never") {\n unrecognized.push(key);\n continue;\n }\n const r2 = _catchall.run({ value: input[key], issues: [] }, ctx);\n if (r2 instanceof Promise) {\n proms.push(r2.then((r3) => handleObjectResult(r3, payload, key)));\n } else {\n handleObjectResult(r2, payload, key);\n }\n }\n if (unrecognized.length) {\n payload.issues.push({\n code: "unrecognized_keys",\n keys: unrecognized,\n input,\n inst\n });\n }\n if (!proms.length)\n return payload;\n return Promise.all(proms).then(() => {\n return payload;\n });\n };\n});\nfunction handleUnionResults(results, final, inst, ctx) {\n for (const result of results) {\n if (result.issues.length === 0) {\n final.value = result.value;\n return final;\n }\n }\n final.issues.push({\n code: "invalid_union",\n input: final.value,\n inst,\n errors: results.map((result) => result.issues.map((iss) => finalizeIssue(iss, ctx, config())))\n });\n return final;\n}\nvar $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {\n $ZodType.init(inst, def);\n defineLazy(inst._zod, "values", () => {\n if (def.options.every((o2) => o2._zod.values)) {\n return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));\n }\n return;\n });\n defineLazy(inst._zod, "pattern", () => {\n if (def.options.every((o2) => o2._zod.pattern)) {\n const patterns = def.options.map((o2) => o2._zod.pattern);\n return new RegExp(`^(${patterns.map((p3) => cleanRegex(p3.source)).join("|")})$`);\n }\n return;\n });\n inst._zod.parse = (payload, ctx) => {\n let async = false;\n const results = [];\n for (const option of def.options) {\n const result = option._zod.run({\n value: payload.value,\n issues: []\n }, ctx);\n if (result instanceof Promise) {\n results.push(result);\n async = true;\n } else {\n if (result.issues.length === 0)\n return result;\n results.push(result);\n }\n }\n if (!async)\n return handleUnionResults(results, payload, inst, ctx);\n return Promise.all(results).then((results2) => {\n return handleUnionResults(results2, payload, inst, ctx);\n });\n };\n});\nvar $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnion", (inst, def) => {\n $ZodUnion.init(inst, def);\n const _super = inst._zod.parse;\n defineLazy(inst._zod, "propValues", () => {\n const propValues = {};\n for (const option of def.options) {\n const pv = option._zod.propValues;\n if (!pv || Object.keys(pv).length === 0)\n throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);\n for (const [k2, v3] of Object.entries(pv)) {\n if (!propValues[k2])\n propValues[k2] = new Set;\n for (const val of v3) {\n propValues[k2].add(val);\n }\n }\n }\n return propValues;\n });\n const disc = cached(() => {\n const opts = def.options;\n const map = new Map;\n for (const o2 of opts) {\n const values = o2._zod.propValues[def.discriminator];\n if (!values || values.size === 0)\n throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(o2)}"`);\n for (const v3 of values) {\n if (map.has(v3)) {\n throw new Error(`Duplicate discriminator value "${String(v3)}"`);\n }\n map.set(v3, o2);\n }\n }\n return map;\n });\n inst._zod.parse = (payload, ctx) => {\n const input = payload.value;\n if (!isObject(input)) {\n payload.issues.push({\n code: "invalid_type",\n expected: "object",\n input,\n inst\n });\n return payload;\n }\n const opt = disc.value.get(input?.[def.discriminator]);\n if (opt) {\n return opt._zod.run(payload, ctx);\n }\n if (def.unionFallback) {\n return _super(payload, ctx);\n }\n payload.issues.push({\n code: "invalid_union",\n errors: [],\n note: "No matching discriminator",\n input,\n path: [def.discriminator],\n inst\n });\n return payload;\n };\n});\nvar $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, ctx) => {\n const { value: input } = payload;\n const left = def.left._zod.run({ value: input, issues: [] }, ctx);\n const right = def.right._zod.run({ value: input, issues: [] }, ctx);\n const async = left instanceof Promise || right instanceof Promise;\n if (async) {\n return Promise.all([left, right]).then(([left2, right2]) => {\n return handleIntersectionResults(payload, left2, right2);\n });\n }\n return handleIntersectionResults(payload, left, right);\n };\n});\nfunction mergeValues(a2, b2) {\n if (a2 === b2) {\n return { valid: true, data: a2 };\n }\n if (a2 instanceof Date && b2 instanceof Date && +a2 === +b2) {\n return { valid: true, data: a2 };\n }\n if (isPlainObject(a2) && isPlainObject(b2)) {\n const bKeys = Object.keys(b2);\n const sharedKeys = Object.keys(a2).filter((key) => bKeys.indexOf(key) !== -1);\n const newObj = { ...a2, ...b2 };\n for (const key of sharedKeys) {\n const sharedValue = mergeValues(a2[key], b2[key]);\n if (!sharedValue.valid) {\n return {\n valid: false,\n mergeErrorPath: [key, ...sharedValue.mergeErrorPath]\n };\n }\n newObj[key] = sharedValue.data;\n }\n return { valid: true, data: newObj };\n }\n if (Array.isArray(a2) && Array.isArray(b2)) {\n if (a2.length !== b2.length) {\n return { valid: false, mergeErrorPath: [] };\n }\n const newArray = [];\n for (let index = 0;index < a2.length; index++) {\n const itemA = a2[index];\n const itemB = b2[index];\n const sharedValue = mergeValues(itemA, itemB);\n if (!sharedValue.valid) {\n return {\n valid: false,\n mergeErrorPath: [index, ...sharedValue.mergeErrorPath]\n };\n }\n newArray.push(sharedValue.data);\n }\n return { valid: true, data: newArray };\n }\n return { valid: false, mergeErrorPath: [] };\n}\nfunction handleIntersectionResults(result, left, right) {\n if (left.issues.length) {\n result.issues.push(...left.issues);\n }\n if (right.issues.length) {\n result.issues.push(...right.issues);\n }\n if (aborted(result))\n return result;\n const merged = mergeValues(left.value, right.value);\n if (!merged.valid) {\n throw new Error(`Unmergable intersection. Error path: ` + `${JSON.stringify(merged.mergeErrorPath)}`);\n }\n result.value = merged.data;\n return result;\n}\nvar $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {\n $ZodType.init(inst, def);\n const items = def.items;\n const optStart = items.length - [...items].reverse().findIndex((item) => item._zod.optin !== "optional");\n inst._zod.parse = (payload, ctx) => {\n const input = payload.value;\n if (!Array.isArray(input)) {\n payload.issues.push({\n input,\n inst,\n expected: "tuple",\n code: "invalid_type"\n });\n return payload;\n }\n payload.value = [];\n const proms = [];\n if (!def.rest) {\n const tooBig = input.length > items.length;\n const tooSmall = input.length < optStart - 1;\n if (tooBig || tooSmall) {\n payload.issues.push({\n input,\n inst,\n origin: "array",\n ...tooBig ? { code: "too_big", maximum: items.length } : { code: "too_small", minimum: items.length }\n });\n return payload;\n }\n }\n let i2 = -1;\n for (const item of items) {\n i2++;\n if (i2 >= input.length) {\n if (i2 >= optStart)\n continue;\n }\n const result = item._zod.run({\n value: input[i2],\n issues: []\n }, ctx);\n if (result instanceof Promise) {\n proms.push(result.then((result2) => handleTupleResult(result2, payload, i2)));\n } else {\n handleTupleResult(result, payload, i2);\n }\n }\n if (def.rest) {\n const rest = input.slice(items.length);\n for (const el of rest) {\n i2++;\n const result = def.rest._zod.run({\n value: el,\n issues: []\n }, ctx);\n if (result instanceof Promise) {\n proms.push(result.then((result2) => handleTupleResult(result2, payload, i2)));\n } else {\n handleTupleResult(result, payload, i2);\n }\n }\n }\n if (proms.length)\n return Promise.all(proms).then(() => payload);\n return payload;\n };\n});\nfunction handleTupleResult(result, final, index) {\n if (result.issues.length) {\n final.issues.push(...prefixIssues(index, result.issues));\n }\n final.value[index] = result.value;\n}\nvar $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, ctx) => {\n const input = payload.value;\n if (!isPlainObject(input)) {\n payload.issues.push({\n expected: "record",\n code: "invalid_type",\n input,\n inst\n });\n return payload;\n }\n const proms = [];\n if (def.keyType._zod.values) {\n const values = def.keyType._zod.values;\n payload.value = {};\n for (const key of values) {\n if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {\n const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);\n if (result instanceof Promise) {\n proms.push(result.then((result2) => {\n if (result2.issues.length) {\n payload.issues.push(...prefixIssues(key, result2.issues));\n }\n payload.value[key] = result2.value;\n }));\n } else {\n if (result.issues.length) {\n payload.issues.push(...prefixIssues(key, result.issues));\n }\n payload.value[key] = result.value;\n }\n }\n }\n let unrecognized;\n for (const key in input) {\n if (!values.has(key)) {\n unrecognized = unrecognized ?? [];\n unrecognized.push(key);\n }\n }\n if (unrecognized && unrecognized.length > 0) {\n payload.issues.push({\n code: "unrecognized_keys",\n input,\n inst,\n keys: unrecognized\n });\n }\n } else {\n payload.value = {};\n for (const key of Reflect.ownKeys(input)) {\n if (key === "__proto__")\n continue;\n const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);\n if (keyResult instanceof Promise) {\n throw new Error("Async schemas not supported in object keys currently");\n }\n if (keyResult.issues.length) {\n payload.issues.push({\n origin: "record",\n code: "invalid_key",\n issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),\n input: key,\n path: [key],\n inst\n });\n payload.value[keyResult.value] = keyResult.value;\n continue;\n }\n const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);\n if (result instanceof Promise) {\n proms.push(result.then((result2) => {\n if (result2.issues.length) {\n payload.issues.push(...prefixIssues(key, result2.issues));\n }\n payload.value[keyResult.value] = result2.value;\n }));\n } else {\n if (result.issues.length) {\n payload.issues.push(...prefixIssues(key, result.issues));\n }\n payload.value[keyResult.value] = result.value;\n }\n }\n }\n if (proms.length) {\n return Promise.all(proms).then(() => payload);\n }\n return payload;\n };\n});\nvar $ZodMap = /* @__PURE__ */ $constructor("$ZodMap", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, ctx) => {\n const input = payload.value;\n if (!(input instanceof Map)) {\n payload.issues.push({\n expected: "map",\n code: "invalid_type",\n input,\n inst\n });\n return payload;\n }\n const proms = [];\n payload.value = new Map;\n for (const [key, value] of input) {\n const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);\n const valueResult = def.valueType._zod.run({ value, issues: [] }, ctx);\n if (keyResult instanceof Promise || valueResult instanceof Promise) {\n proms.push(Promise.all([keyResult, valueResult]).then(([keyResult2, valueResult2]) => {\n handleMapResult(keyResult2, valueResult2, payload, key, input, inst, ctx);\n }));\n } else {\n handleMapResult(keyResult, valueResult, payload, key, input, inst, ctx);\n }\n }\n if (proms.length)\n return Promise.all(proms).then(() => payload);\n return payload;\n };\n});\nfunction handleMapResult(keyResult, valueResult, final, key, input, inst, ctx) {\n if (keyResult.issues.length) {\n if (propertyKeyTypes.has(typeof key)) {\n final.issues.push(...prefixIssues(key, keyResult.issues));\n } else {\n final.issues.push({\n origin: "map",\n code: "invalid_key",\n input,\n inst,\n issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config()))\n });\n }\n }\n if (valueResult.issues.length) {\n if (propertyKeyTypes.has(typeof key)) {\n final.issues.push(...prefixIssues(key, valueResult.issues));\n } else {\n final.issues.push({\n origin: "map",\n code: "invalid_element",\n input,\n inst,\n key,\n issues: valueResult.issues.map((iss) => finalizeIssue(iss, ctx, config()))\n });\n }\n }\n final.value.set(keyResult.value, valueResult.value);\n}\nvar $ZodSet = /* @__PURE__ */ $constructor("$ZodSet", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, ctx) => {\n const input = payload.value;\n if (!(input instanceof Set)) {\n payload.issues.push({\n input,\n inst,\n expected: "set",\n code: "invalid_type"\n });\n return payload;\n }\n const proms = [];\n payload.value = new Set;\n for (const item of input) {\n const result = def.valueType._zod.run({ value: item, issues: [] }, ctx);\n if (result instanceof Promise) {\n proms.push(result.then((result2) => handleSetResult(result2, payload)));\n } else\n handleSetResult(result, payload);\n }\n if (proms.length)\n return Promise.all(proms).then(() => payload);\n return payload;\n };\n});\nfunction handleSetResult(result, final) {\n if (result.issues.length) {\n final.issues.push(...result.issues);\n }\n final.value.add(result.value);\n}\nvar $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {\n $ZodType.init(inst, def);\n const values = getEnumValues(def.entries);\n inst._zod.values = new Set(values);\n inst._zod.pattern = new RegExp(`^(${values.filter((k2) => propertyKeyTypes.has(typeof k2)).map((o2) => typeof o2 === "string" ? escapeRegex(o2) : o2.toString()).join("|")})$`);\n inst._zod.parse = (payload, _ctx) => {\n const input = payload.value;\n if (inst._zod.values.has(input)) {\n return payload;\n }\n payload.issues.push({\n code: "invalid_value",\n values,\n input,\n inst\n });\n return payload;\n };\n});\nvar $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.values = new Set(def.values);\n inst._zod.pattern = new RegExp(`^(${def.values.map((o2) => typeof o2 === "string" ? escapeRegex(o2) : o2 ? o2.toString() : String(o2)).join("|")})$`);\n inst._zod.parse = (payload, _ctx) => {\n const input = payload.value;\n if (inst._zod.values.has(input)) {\n return payload;\n }\n payload.issues.push({\n code: "invalid_value",\n values: def.values,\n input,\n inst\n });\n return payload;\n };\n});\nvar $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, _ctx) => {\n const input = payload.value;\n if (input instanceof File)\n return payload;\n payload.issues.push({\n expected: "file",\n code: "invalid_type",\n input,\n inst\n });\n return payload;\n };\n});\nvar $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, _ctx) => {\n const _out = def.transform(payload.value, payload);\n if (_ctx.async) {\n const output = _out instanceof Promise ? _out : Promise.resolve(_out);\n return output.then((output2) => {\n payload.value = output2;\n return payload;\n });\n }\n if (_out instanceof Promise) {\n throw new $ZodAsyncError;\n }\n payload.value = _out;\n return payload;\n };\n});\nvar $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.optin = "optional";\n inst._zod.optout = "optional";\n defineLazy(inst._zod, "values", () => {\n return def.innerType._zod.values ? new Set([...def.innerType._zod.values, undefined]) : undefined;\n });\n defineLazy(inst._zod, "pattern", () => {\n const pattern = def.innerType._zod.pattern;\n return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : undefined;\n });\n inst._zod.parse = (payload, ctx) => {\n if (payload.value === undefined) {\n return payload;\n }\n return def.innerType._zod.run(payload, ctx);\n };\n});\nvar $ZodNullable = /* @__PURE__ */ $constructor("$ZodNullable", (inst, def) => {\n $ZodType.init(inst, def);\n defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);\n defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);\n defineLazy(inst._zod, "pattern", () => {\n const pattern = def.innerType._zod.pattern;\n return pattern ? new RegExp(`^(${cleanRegex(pattern.source)}|null)$`) : undefined;\n });\n defineLazy(inst._zod, "values", () => {\n return def.innerType._zod.values ? new Set([...def.innerType._zod.values, null]) : undefined;\n });\n inst._zod.parse = (payload, ctx) => {\n if (payload.value === null)\n return payload;\n return def.innerType._zod.run(payload, ctx);\n };\n});\nvar $ZodDefault = /* @__PURE__ */ $constructor("$ZodDefault", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.optin = "optional";\n defineLazy(inst._zod, "values", () => def.innerType._zod.values);\n inst._zod.parse = (payload, ctx) => {\n if (payload.value === undefined) {\n payload.value = def.defaultValue;\n return payload;\n }\n const result = def.innerType._zod.run(payload, ctx);\n if (result instanceof Promise) {\n return result.then((result2) => handleDefaultResult(result2, def));\n }\n return handleDefaultResult(result, def);\n };\n});\nfunction handleDefaultResult(payload, def) {\n if (payload.value === undefined) {\n payload.value = def.defaultValue;\n }\n return payload;\n}\nvar $ZodPrefault = /* @__PURE__ */ $constructor("$ZodPrefault", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.optin = "optional";\n defineLazy(inst._zod, "values", () => def.innerType._zod.values);\n inst._zod.parse = (payload, ctx) => {\n if (payload.value === undefined) {\n payload.value = def.defaultValue;\n }\n return def.innerType._zod.run(payload, ctx);\n };\n});\nvar $ZodNonOptional = /* @__PURE__ */ $constructor("$ZodNonOptional", (inst, def) => {\n $ZodType.init(inst, def);\n defineLazy(inst._zod, "values", () => {\n const v3 = def.innerType._zod.values;\n return v3 ? new Set([...v3].filter((x2) => x2 !== undefined)) : undefined;\n });\n inst._zod.parse = (payload, ctx) => {\n const result = def.innerType._zod.run(payload, ctx);\n if (result instanceof Promise) {\n return result.then((result2) => handleNonOptionalResult(result2, inst));\n }\n return handleNonOptionalResult(result, inst);\n };\n});\nfunction handleNonOptionalResult(payload, inst) {\n if (!payload.issues.length && payload.value === undefined) {\n payload.issues.push({\n code: "invalid_type",\n expected: "nonoptional",\n input: payload.value,\n inst\n });\n }\n return payload;\n}\nvar $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, ctx) => {\n const result = def.innerType._zod.run(payload, ctx);\n if (result instanceof Promise) {\n return result.then((result2) => {\n payload.value = result2.issues.length === 0;\n return payload;\n });\n }\n payload.value = result.issues.length === 0;\n return payload;\n };\n});\nvar $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {\n $ZodType.init(inst, def);\n defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);\n defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);\n defineLazy(inst._zod, "values", () => def.innerType._zod.values);\n inst._zod.parse = (payload, ctx) => {\n const result = def.innerType._zod.run(payload, ctx);\n if (result instanceof Promise) {\n return result.then((result2) => {\n payload.value = result2.value;\n if (result2.issues.length) {\n payload.value = def.catchValue({\n ...payload,\n error: {\n issues: result2.issues.map((iss) => finalizeIssue(iss, ctx, config()))\n },\n input: payload.value\n });\n payload.issues = [];\n }\n return payload;\n });\n }\n payload.value = result.value;\n if (result.issues.length) {\n payload.value = def.catchValue({\n ...payload,\n error: {\n issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config()))\n },\n input: payload.value\n });\n payload.issues = [];\n }\n return payload;\n };\n});\nvar $ZodNaN = /* @__PURE__ */ $constructor("$ZodNaN", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, _ctx) => {\n if (typeof payload.value !== "number" || !Number.isNaN(payload.value)) {\n payload.issues.push({\n input: payload.value,\n inst,\n expected: "nan",\n code: "invalid_type"\n });\n return payload;\n }\n return payload;\n };\n});\nvar $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {\n $ZodType.init(inst, def);\n defineLazy(inst._zod, "values", () => def.in._zod.values);\n defineLazy(inst._zod, "optin", () => def.in._zod.optin);\n defineLazy(inst._zod, "optout", () => def.out._zod.optout);\n inst._zod.parse = (payload, ctx) => {\n const left = def.in._zod.run(payload, ctx);\n if (left instanceof Promise) {\n return left.then((left2) => handlePipeResult(left2, def, ctx));\n }\n return handlePipeResult(left, def, ctx);\n };\n});\nfunction handlePipeResult(left, def, ctx) {\n if (aborted(left)) {\n return left;\n }\n return def.out._zod.run({ value: left.value, issues: left.issues }, ctx);\n}\nvar $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {\n $ZodType.init(inst, def);\n defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);\n defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);\n defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);\n inst._zod.parse = (payload, ctx) => {\n const result = def.innerType._zod.run(payload, ctx);\n if (result instanceof Promise) {\n return result.then(handleReadonlyResult);\n }\n return handleReadonlyResult(result);\n };\n});\nfunction handleReadonlyResult(payload) {\n payload.value = Object.freeze(payload.value);\n return payload;\n}\nvar $ZodTemplateLiteral = /* @__PURE__ */ $constructor("$ZodTemplateLiteral", (inst, def) => {\n $ZodType.init(inst, def);\n const regexParts = [];\n for (const part of def.parts) {\n if (part instanceof $ZodType) {\n if (!part._zod.pattern) {\n throw new Error(`Invalid template literal part, no pattern found: ${[...part._zod.traits].shift()}`);\n }\n const source = part._zod.pattern instanceof RegExp ? part._zod.pattern.source : part._zod.pattern;\n if (!source)\n throw new Error(`Invalid template literal part: ${part._zod.traits}`);\n const start = source.startsWith("^") ? 1 : 0;\n const end = source.endsWith("$") ? source.length - 1 : source.length;\n regexParts.push(source.slice(start, end));\n } else if (part === null || primitiveTypes.has(typeof part)) {\n regexParts.push(escapeRegex(`${part}`));\n } else {\n throw new Error(`Invalid template literal part: ${part}`);\n }\n }\n inst._zod.pattern = new RegExp(`^${regexParts.join("")}$`);\n inst._zod.parse = (payload, _ctx) => {\n if (typeof payload.value !== "string") {\n payload.issues.push({\n input: payload.value,\n inst,\n expected: "template_literal",\n code: "invalid_type"\n });\n return payload;\n }\n inst._zod.pattern.lastIndex = 0;\n if (!inst._zod.pattern.test(payload.value)) {\n payload.issues.push({\n input: payload.value,\n inst,\n code: "invalid_format",\n format: "template_literal",\n pattern: inst._zod.pattern.source\n });\n return payload;\n }\n return payload;\n };\n});\nvar $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, ctx) => {\n return Promise.resolve(payload.value).then((inner) => def.innerType._zod.run({ value: inner, issues: [] }, ctx));\n };\n});\nvar $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {\n $ZodType.init(inst, def);\n defineLazy(inst._zod, "innerType", () => def.getter());\n defineLazy(inst._zod, "pattern", () => inst._zod.innerType._zod.pattern);\n defineLazy(inst._zod, "propValues", () => inst._zod.innerType._zod.propValues);\n defineLazy(inst._zod, "optin", () => inst._zod.innerType._zod.optin);\n defineLazy(inst._zod, "optout", () => inst._zod.innerType._zod.optout);\n inst._zod.parse = (payload, ctx) => {\n const inner = inst._zod.innerType;\n return inner._zod.run(payload, ctx);\n };\n});\nvar $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => {\n $ZodCheck.init(inst, def);\n $ZodType.init(inst, def);\n inst._zod.parse = (payload, _3) => {\n return payload;\n };\n inst._zod.check = (payload) => {\n const input = payload.value;\n const r2 = def.fn(input);\n if (r2 instanceof Promise) {\n return r2.then((r3) => handleRefineResult(r3, payload, input, inst));\n }\n handleRefineResult(r2, payload, input, inst);\n return;\n };\n});\nfunction handleRefineResult(result, payload, input, inst) {\n if (!result) {\n const _iss = {\n code: "custom",\n input,\n inst,\n path: [...inst._zod.def.path ?? []],\n continue: !inst._zod.def.abort\n };\n if (inst._zod.def.params)\n _iss.params = inst._zod.def.params;\n payload.issues.push(issue(_iss));\n }\n}\n// ../../node_modules/zod/dist/esm/v4/locales/index.js\nvar exports_locales = {};\n__export(exports_locales, {\n zhTW: () => zh_TW_default,\n zhCN: () => zh_CN_default,\n vi: () => vi_default,\n ur: () => ur_default,\n ua: () => ua_default,\n tr: () => tr_default,\n th: () => th_default,\n ta: () => ta_default,\n sv: () => sv_default,\n sl: () => sl_default,\n ru: () => ru_default,\n pt: () => pt_default,\n pl: () => pl_default,\n ota: () => ota_default,\n no: () => no_default,\n nl: () => nl_default,\n ms: () => ms_default,\n mk: () => mk_default,\n ko: () => ko_default,\n kh: () => kh_default,\n ja: () => ja_default,\n it: () => it_default,\n id: () => id_default,\n hu: () => hu_default,\n he: () => he_default,\n frCA: () => fr_CA_default,\n fr: () => fr_default,\n fi: () => fi_default,\n fa: () => fa_default,\n es: () => es_default,\n en: () => en_default,\n de: () => de_default,\n cs: () => cs_default,\n ca: () => ca_default,\n be: () => be_default,\n az: () => az_default,\n ar: () => ar_default\n});\n\n// ../../node_modules/zod/dist/esm/v4/locales/ar.js\nvar error = () => {\n const Sizable = {\n string: { unit: "حرف", verb: "أن يحوي" },\n file: { unit: "بايت", verb: "أن يحوي" },\n array: { unit: "عنصر", verb: "أن يحوي" },\n set: { unit: "عنصر", verb: "أن يحوي" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "number";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "array";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "مدخل",\n email: "بريد إلكتروني",\n url: "رابط",\n emoji: "إيموجي",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "تاريخ ووقت بمعيار ISO",\n date: "تاريخ بمعيار ISO",\n time: "وقت بمعيار ISO",\n duration: "مدة بمعيار ISO",\n ipv4: "عنوان IPv4",\n ipv6: "عنوان IPv6",\n cidrv4: "مدى عناوين بصيغة IPv4",\n cidrv6: "مدى عناوين بصيغة IPv6",\n base64: "نَص بترميز base64-encoded",\n base64url: "نَص بترميز base64url-encoded",\n json_string: "نَص على هيئة JSON",\n e164: "رقم هاتف بمعيار E.164",\n jwt: "JWT",\n template_literal: "مدخل"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `مدخلات غير مقبولة: يفترض إدخال ${issue2.expected}، ولكن تم إدخال ${parsedType(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `مدخلات غير مقبولة: يفترض إدخال ${stringifyPrimitive(issue2.values[0])}`;\n return `اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return ` أكبر من اللازم: يفترض أن تكون ${issue2.origin ?? "القيمة"} ${adj} ${issue2.maximum.toString()} ${sizing.unit ?? "عنصر"}`;\n return `أكبر من اللازم: يفترض أن تكون ${issue2.origin ?? "القيمة"} ${adj} ${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `أصغر من اللازم: يفترض لـ ${issue2.origin} أن يكون ${adj} ${issue2.minimum.toString()} ${sizing.unit}`;\n }\n return `أصغر من اللازم: يفترض لـ ${issue2.origin} أن يكون ${adj} ${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `نَص غير مقبول: يجب أن يبدأ بـ "${issue2.prefix}"`;\n if (_issue.format === "ends_with")\n return `نَص غير مقبول: يجب أن ينتهي بـ "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `نَص غير مقبول: يجب أن يتضمَّن "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `نَص غير مقبول: يجب أن يطابق النمط ${_issue.pattern}`;\n return `${Nouns[_issue.format] ?? issue2.format} غير مقبول`;\n }\n case "not_multiple_of":\n return `رقم غير مقبول: يجب أن يكون من مضاعفات ${issue2.divisor}`;\n case "unrecognized_keys":\n return `معرف${issue2.keys.length > 1 ? "ات" : ""} غريب${issue2.keys.length > 1 ? "ة" : ""}: ${joinValues(issue2.keys, "، ")}`;\n case "invalid_key":\n return `معرف غير مقبول في ${issue2.origin}`;\n case "invalid_union":\n return "مدخل غير مقبول";\n case "invalid_element":\n return `مدخل غير مقبول في ${issue2.origin}`;\n default:\n return "مدخل غير مقبول";\n }\n };\n};\nfunction ar_default() {\n return {\n localeError: error()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/az.js\nvar error2 = () => {\n const Sizable = {\n string: { unit: "simvol", verb: "olmalıdır" },\n file: { unit: "bayt", verb: "olmalıdır" },\n array: { unit: "element", verb: "olmalıdır" },\n set: { unit: "element", verb: "olmalıdır" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "number";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "array";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "input",\n email: "email address",\n url: "URL",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "ISO datetime",\n date: "ISO date",\n time: "ISO time",\n duration: "ISO duration",\n ipv4: "IPv4 address",\n ipv6: "IPv6 address",\n cidrv4: "IPv4 range",\n cidrv6: "IPv6 range",\n base64: "base64-encoded string",\n base64url: "base64url-encoded string",\n json_string: "JSON string",\n e164: "E.164 number",\n jwt: "JWT",\n template_literal: "input"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Yanlış dəyər: gözlənilən ${issue2.expected}, daxil olan ${parsedType(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Yanlış dəyər: gözlənilən ${stringifyPrimitive(issue2.values[0])}`;\n return `Yanlış seçim: aşağıdakılardan biri olmalıdır: ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `Çox böyük: gözlənilən ${issue2.origin ?? "dəyər"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "element"}`;\n return `Çox böyük: gözlənilən ${issue2.origin ?? "dəyər"} ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `Çox kiçik: gözlənilən ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;\n return `Çox kiçik: gözlənilən ${issue2.origin} ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `Yanlış mətn: "${_issue.prefix}" ilə başlamalıdır`;\n if (_issue.format === "ends_with")\n return `Yanlış mətn: "${_issue.suffix}" ilə bitməlidir`;\n if (_issue.format === "includes")\n return `Yanlış mətn: "${_issue.includes}" daxil olmalıdır`;\n if (_issue.format === "regex")\n return `Yanlış mətn: ${_issue.pattern} şablonuna uyğun olmalıdır`;\n return `Yanlış ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `Yanlış ədəd: ${issue2.divisor} ilə bölünə bilən olmalıdır`;\n case "unrecognized_keys":\n return `Tanınmayan açar${issue2.keys.length > 1 ? "lar" : ""}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `${issue2.origin} daxilində yanlış açar`;\n case "invalid_union":\n return "Yanlış dəyər";\n case "invalid_element":\n return `${issue2.origin} daxilində yanlış dəyər`;\n default:\n return `Yanlış dəyər`;\n }\n };\n};\nfunction az_default() {\n return {\n localeError: error2()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/be.js\nfunction getBelarusianPlural(count, one, few, many) {\n const absCount = Math.abs(count);\n const lastDigit = absCount % 10;\n const lastTwoDigits = absCount % 100;\n if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {\n return many;\n }\n if (lastDigit === 1) {\n return one;\n }\n if (lastDigit >= 2 && lastDigit <= 4) {\n return few;\n }\n return many;\n}\nvar error3 = () => {\n const Sizable = {\n string: {\n unit: {\n one: "сімвал",\n few: "сімвалы",\n many: "сімвалаў"\n },\n verb: "мець"\n },\n array: {\n unit: {\n one: "элемент",\n few: "элементы",\n many: "элементаў"\n },\n verb: "мець"\n },\n set: {\n unit: {\n one: "элемент",\n few: "элементы",\n many: "элементаў"\n },\n verb: "мець"\n },\n file: {\n unit: {\n one: "байт",\n few: "байты",\n many: "байтаў"\n },\n verb: "мець"\n }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "лік";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "масіў";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "увод",\n email: "email адрас",\n url: "URL",\n emoji: "эмодзі",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "ISO дата і час",\n date: "ISO дата",\n time: "ISO час",\n duration: "ISO працягласць",\n ipv4: "IPv4 адрас",\n ipv6: "IPv6 адрас",\n cidrv4: "IPv4 дыяпазон",\n cidrv6: "IPv6 дыяпазон",\n base64: "радок у фармаце base64",\n base64url: "радок у фармаце base64url",\n json_string: "JSON радок",\n e164: "нумар E.164",\n jwt: "JWT",\n template_literal: "увод"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Няправільны ўвод: чакаўся ${issue2.expected}, атрымана ${parsedType(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Няправільны ўвод: чакалася ${stringifyPrimitive(issue2.values[0])}`;\n return `Няправільны варыянт: чакаўся адзін з ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n const maxValue = Number(issue2.maximum);\n const unit = getBelarusianPlural(maxValue, sizing.unit.one, sizing.unit.few, sizing.unit.many);\n return `Занадта вялікі: чакалася, што ${issue2.origin ?? "значэнне"} павінна ${sizing.verb} ${adj}${issue2.maximum.toString()} ${unit}`;\n }\n return `Занадта вялікі: чакалася, што ${issue2.origin ?? "значэнне"} павінна быць ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n const minValue = Number(issue2.minimum);\n const unit = getBelarusianPlural(minValue, sizing.unit.one, sizing.unit.few, sizing.unit.many);\n return `Занадта малы: чакалася, што ${issue2.origin} павінна ${sizing.verb} ${adj}${issue2.minimum.toString()} ${unit}`;\n }\n return `Занадта малы: чакалася, што ${issue2.origin} павінна быць ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `Няправільны радок: павінен пачынацца з "${_issue.prefix}"`;\n if (_issue.format === "ends_with")\n return `Няправільны радок: павінен заканчвацца на "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `Няправільны радок: павінен змяшчаць "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `Няправільны радок: павінен адпавядаць шаблону ${_issue.pattern}`;\n return `Няправільны ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `Няправільны лік: павінен быць кратным ${issue2.divisor}`;\n case "unrecognized_keys":\n return `Нераспазнаны ${issue2.keys.length > 1 ? "ключы" : "ключ"}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `Няправільны ключ у ${issue2.origin}`;\n case "invalid_union":\n return "Няправільны ўвод";\n case "invalid_element":\n return `Няправільнае значэнне ў ${issue2.origin}`;\n default:\n return `Няправільны ўвод`;\n }\n };\n};\nfunction be_default() {\n return {\n localeError: error3()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/ca.js\nvar error4 = () => {\n const Sizable = {\n string: { unit: "caràcters", verb: "contenir" },\n file: { unit: "bytes", verb: "contenir" },\n array: { unit: "elements", verb: "contenir" },\n set: { unit: "elements", verb: "contenir" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "number";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "array";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "entrada",\n email: "adreça electrònica",\n url: "URL",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "data i hora ISO",\n date: "data ISO",\n time: "hora ISO",\n duration: "durada ISO",\n ipv4: "adreça IPv4",\n ipv6: "adreça IPv6",\n cidrv4: "rang IPv4",\n cidrv6: "rang IPv6",\n base64: "cadena codificada en base64",\n base64url: "cadena codificada en base64url",\n json_string: "cadena JSON",\n e164: "número E.164",\n jwt: "JWT",\n template_literal: "entrada"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Tipus invàlid: s\'esperava ${issue2.expected}, s\'ha rebut ${parsedType(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Valor invàlid: s\'esperava ${stringifyPrimitive(issue2.values[0])}`;\n return `Opció invàlida: s\'esperava una de ${joinValues(issue2.values, " o ")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "com a màxim" : "menys de";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `Massa gran: s\'esperava que ${issue2.origin ?? "el valor"} contingués ${adj} ${issue2.maximum.toString()} ${sizing.unit ?? "elements"}`;\n return `Massa gran: s\'esperava que ${issue2.origin ?? "el valor"} fos ${adj} ${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? "com a mínim" : "més de";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Massa petit: s\'esperava que ${issue2.origin} contingués ${adj} ${issue2.minimum.toString()} ${sizing.unit}`;\n }\n return `Massa petit: s\'esperava que ${issue2.origin} fos ${adj} ${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with") {\n return `Format invàlid: ha de començar amb "${_issue.prefix}"`;\n }\n if (_issue.format === "ends_with")\n return `Format invàlid: ha d\'acabar amb "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `Format invàlid: ha d\'incloure "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `Format invàlid: ha de coincidir amb el patró ${_issue.pattern}`;\n return `Format invàlid per a ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `Número invàlid: ha de ser múltiple de ${issue2.divisor}`;\n case "unrecognized_keys":\n return `Clau${issue2.keys.length > 1 ? "s" : ""} no reconeguda${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `Clau invàlida a ${issue2.origin}`;\n case "invalid_union":\n return "Entrada invàlida";\n case "invalid_element":\n return `Element invàlid a ${issue2.origin}`;\n default:\n return `Entrada invàlida`;\n }\n };\n};\nfunction ca_default() {\n return {\n localeError: error4()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/cs.js\nvar error5 = () => {\n const Sizable = {\n string: { unit: "znaků", verb: "mít" },\n file: { unit: "bajtů", verb: "mít" },\n array: { unit: "prvků", verb: "mít" },\n set: { unit: "prvků", verb: "mít" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "číslo";\n }\n case "string": {\n return "řetězec";\n }\n case "boolean": {\n return "boolean";\n }\n case "bigint": {\n return "bigint";\n }\n case "function": {\n return "funkce";\n }\n case "symbol": {\n return "symbol";\n }\n case "undefined": {\n return "undefined";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "pole";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "regulární výraz",\n email: "e-mailová adresa",\n url: "URL",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "datum a čas ve formátu ISO",\n date: "datum ve formátu ISO",\n time: "čas ve formátu ISO",\n duration: "doba trvání ISO",\n ipv4: "IPv4 adresa",\n ipv6: "IPv6 adresa",\n cidrv4: "rozsah IPv4",\n cidrv6: "rozsah IPv6",\n base64: "řetězec zakódovaný ve formátu base64",\n base64url: "řetězec zakódovaný ve formátu base64url",\n json_string: "řetězec ve formátu JSON",\n e164: "číslo E.164",\n jwt: "JWT",\n template_literal: "vstup"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Neplatný vstup: očekáváno ${issue2.expected}, obdrženo ${parsedType(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Neplatný vstup: očekáváno ${stringifyPrimitive(issue2.values[0])}`;\n return `Neplatná možnost: očekávána jedna z hodnot ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Hodnota je příliš velká: ${issue2.origin ?? "hodnota"} musí mít ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "prvků"}`;\n }\n return `Hodnota je příliš velká: ${issue2.origin ?? "hodnota"} musí být ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Hodnota je příliš malá: ${issue2.origin ?? "hodnota"} musí mít ${adj}${issue2.minimum.toString()} ${sizing.unit ?? "prvků"}`;\n }\n return `Hodnota je příliš malá: ${issue2.origin ?? "hodnota"} musí být ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `Neplatný řetězec: musí začínat na "${_issue.prefix}"`;\n if (_issue.format === "ends_with")\n return `Neplatný řetězec: musí končit na "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `Neplatný řetězec: musí obsahovat "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `Neplatný řetězec: musí odpovídat vzoru ${_issue.pattern}`;\n return `Neplatný formát ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `Neplatné číslo: musí být násobkem ${issue2.divisor}`;\n case "unrecognized_keys":\n return `Neznámé klíče: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `Neplatný klíč v ${issue2.origin}`;\n case "invalid_union":\n return "Neplatný vstup";\n case "invalid_element":\n return `Neplatná hodnota v ${issue2.origin}`;\n default:\n return `Neplatný vstup`;\n }\n };\n};\nfunction cs_default() {\n return {\n localeError: error5()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/de.js\nvar error6 = () => {\n const Sizable = {\n string: { unit: "Zeichen", verb: "zu haben" },\n file: { unit: "Bytes", verb: "zu haben" },\n array: { unit: "Elemente", verb: "zu haben" },\n set: { unit: "Elemente", verb: "zu haben" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "Zahl";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "Array";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "Eingabe",\n email: "E-Mail-Adresse",\n url: "URL",\n emoji: "Emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "ISO-Datum und -Uhrzeit",\n date: "ISO-Datum",\n time: "ISO-Uhrzeit",\n duration: "ISO-Dauer",\n ipv4: "IPv4-Adresse",\n ipv6: "IPv6-Adresse",\n cidrv4: "IPv4-Bereich",\n cidrv6: "IPv6-Bereich",\n base64: "Base64-codierter String",\n base64url: "Base64-URL-codierter String",\n json_string: "JSON-String",\n e164: "E.164-Nummer",\n jwt: "JWT",\n template_literal: "Eingabe"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Ungültige Eingabe: erwartet ${issue2.expected}, erhalten ${parsedType(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Ungültige Eingabe: erwartet ${stringifyPrimitive(issue2.values[0])}`;\n return `Ungültige Option: erwartet eine von ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `Zu groß: erwartet, dass ${issue2.origin ?? "Wert"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "Elemente"} hat`;\n return `Zu groß: erwartet, dass ${issue2.origin ?? "Wert"} ${adj}${issue2.maximum.toString()} ist`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Zu klein: erwartet, dass ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} hat`;\n }\n return `Zu klein: erwartet, dass ${issue2.origin} ${adj}${issue2.minimum.toString()} ist`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `Ungültiger String: muss mit "${_issue.prefix}" beginnen`;\n if (_issue.format === "ends_with")\n return `Ungültiger String: muss mit "${_issue.suffix}" enden`;\n if (_issue.format === "includes")\n return `Ungültiger String: muss "${_issue.includes}" enthalten`;\n if (_issue.format === "regex")\n return `Ungültiger String: muss dem Muster ${_issue.pattern} entsprechen`;\n return `Ungültig: ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `Ungültige Zahl: muss ein Vielfaches von ${issue2.divisor} sein`;\n case "unrecognized_keys":\n return `${issue2.keys.length > 1 ? "Unbekannte Schlüssel" : "Unbekannter Schlüssel"}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `Ungültiger Schlüssel in ${issue2.origin}`;\n case "invalid_union":\n return "Ungültige Eingabe";\n case "invalid_element":\n return `Ungültiger Wert in ${issue2.origin}`;\n default:\n return `Ungültige Eingabe`;\n }\n };\n};\nfunction de_default() {\n return {\n localeError: error6()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/en.js\nvar parsedType = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "number";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "array";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n};\nvar error7 = () => {\n const Sizable = {\n string: { unit: "characters", verb: "to have" },\n file: { unit: "bytes", verb: "to have" },\n array: { unit: "items", verb: "to have" },\n set: { unit: "items", verb: "to have" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const Nouns = {\n regex: "input",\n email: "email address",\n url: "URL",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "ISO datetime",\n date: "ISO date",\n time: "ISO time",\n duration: "ISO duration",\n ipv4: "IPv4 address",\n ipv6: "IPv6 address",\n cidrv4: "IPv4 range",\n cidrv6: "IPv6 range",\n base64: "base64-encoded string",\n base64url: "base64url-encoded string",\n json_string: "JSON string",\n e164: "E.164 number",\n jwt: "JWT",\n template_literal: "input"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Invalid input: expected ${issue2.expected}, received ${parsedType(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`;\n return `Invalid option: expected one of ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `Too big: expected ${issue2.origin ?? "value"} to have ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elements"}`;\n return `Too big: expected ${issue2.origin ?? "value"} to be ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Too small: expected ${issue2.origin} to have ${adj}${issue2.minimum.toString()} ${sizing.unit}`;\n }\n return `Too small: expected ${issue2.origin} to be ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with") {\n return `Invalid string: must start with "${_issue.prefix}"`;\n }\n if (_issue.format === "ends_with")\n return `Invalid string: must end with "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `Invalid string: must include "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `Invalid string: must match pattern ${_issue.pattern}`;\n return `Invalid ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `Invalid number: must be a multiple of ${issue2.divisor}`;\n case "unrecognized_keys":\n return `Unrecognized key${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `Invalid key in ${issue2.origin}`;\n case "invalid_union":\n return "Invalid input";\n case "invalid_element":\n return `Invalid value in ${issue2.origin}`;\n default:\n return `Invalid input`;\n }\n };\n};\nfunction en_default() {\n return {\n localeError: error7()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/es.js\nvar error8 = () => {\n const Sizable = {\n string: { unit: "caracteres", verb: "tener" },\n file: { unit: "bytes", verb: "tener" },\n array: { unit: "elementos", verb: "tener" },\n set: { unit: "elementos", verb: "tener" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "número";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "arreglo";\n }\n if (data === null) {\n return "nulo";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "entrada",\n email: "dirección de correo electrónico",\n url: "URL",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "fecha y hora ISO",\n date: "fecha ISO",\n time: "hora ISO",\n duration: "duración ISO",\n ipv4: "dirección IPv4",\n ipv6: "dirección IPv6",\n cidrv4: "rango IPv4",\n cidrv6: "rango IPv6",\n base64: "cadena codificada en base64",\n base64url: "URL codificada en base64",\n json_string: "cadena JSON",\n e164: "número E.164",\n jwt: "JWT",\n template_literal: "entrada"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Entrada inválida: se esperaba ${issue2.expected}, recibido ${parsedType2(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Entrada inválida: se esperaba ${stringifyPrimitive(issue2.values[0])}`;\n return `Opción inválida: se esperaba una de ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `Demasiado grande: se esperaba que ${issue2.origin ?? "valor"} tuviera ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementos"}`;\n return `Demasiado grande: se esperaba que ${issue2.origin ?? "valor"} fuera ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Demasiado pequeño: se esperaba que ${issue2.origin} tuviera ${adj}${issue2.minimum.toString()} ${sizing.unit}`;\n }\n return `Demasiado pequeño: se esperaba que ${issue2.origin} fuera ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `Cadena inválida: debe comenzar con "${_issue.prefix}"`;\n if (_issue.format === "ends_with")\n return `Cadena inválida: debe terminar en "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `Cadena inválida: debe incluir "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `Cadena inválida: debe coincidir con el patrón ${_issue.pattern}`;\n return `Inválido ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `Número inválido: debe ser múltiplo de ${issue2.divisor}`;\n case "unrecognized_keys":\n return `Llave${issue2.keys.length > 1 ? "s" : ""} desconocida${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `Llave inválida en ${issue2.origin}`;\n case "invalid_union":\n return "Entrada inválida";\n case "invalid_element":\n return `Valor inválido en ${issue2.origin}`;\n default:\n return `Entrada inválida`;\n }\n };\n};\nfunction es_default() {\n return {\n localeError: error8()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/fa.js\nvar error9 = () => {\n const Sizable = {\n string: { unit: "کاراکتر", verb: "داشته باشد" },\n file: { unit: "بایت", verb: "داشته باشد" },\n array: { unit: "آیتم", verb: "داشته باشد" },\n set: { unit: "آیتم", verb: "داشته باشد" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "عدد";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "آرایه";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "ورودی",\n email: "آدرس ایمیل",\n url: "URL",\n emoji: "ایموجی",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "تاریخ و زمان ایزو",\n date: "تاریخ ایزو",\n time: "زمان ایزو",\n duration: "مدت زمان ایزو",\n ipv4: "IPv4 آدرس",\n ipv6: "IPv6 آدرس",\n cidrv4: "IPv4 دامنه",\n cidrv6: "IPv6 دامنه",\n base64: "base64-encoded رشته",\n base64url: "base64url-encoded رشته",\n json_string: "JSON رشته",\n e164: "E.164 عدد",\n jwt: "JWT",\n template_literal: "ورودی"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `ورودی نامعتبر: میبایست ${issue2.expected} میبود، ${parsedType2(issue2.input)} دریافت شد`;\n case "invalid_value":\n if (issue2.values.length === 1) {\n return `ورودی نامعتبر: میبایست ${stringifyPrimitive(issue2.values[0])} میبود`;\n }\n return `گزینه نامعتبر: میبایست یکی از ${joinValues(issue2.values, "|")} میبود`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `خیلی بزرگ: ${issue2.origin ?? "مقدار"} باید ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "عنصر"} باشد`;\n }\n return `خیلی بزرگ: ${issue2.origin ?? "مقدار"} باید ${adj}${issue2.maximum.toString()} باشد`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `خیلی کوچک: ${issue2.origin} باید ${adj}${issue2.minimum.toString()} ${sizing.unit} باشد`;\n }\n return `خیلی کوچک: ${issue2.origin} باید ${adj}${issue2.minimum.toString()} باشد`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with") {\n return `رشته نامعتبر: باید با "${_issue.prefix}" شروع شود`;\n }\n if (_issue.format === "ends_with") {\n return `رشته نامعتبر: باید با "${_issue.suffix}" تمام شود`;\n }\n if (_issue.format === "includes") {\n return `رشته نامعتبر: باید شامل "${_issue.includes}" باشد`;\n }\n if (_issue.format === "regex") {\n return `رشته نامعتبر: باید با الگوی ${_issue.pattern} مطابقت داشته باشد`;\n }\n return `${Nouns[_issue.format] ?? issue2.format} نامعتبر`;\n }\n case "not_multiple_of":\n return `عدد نامعتبر: باید مضرب ${issue2.divisor} باشد`;\n case "unrecognized_keys":\n return `کلید${issue2.keys.length > 1 ? "های" : ""} ناشناس: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `کلید ناشناس در ${issue2.origin}`;\n case "invalid_union":\n return `ورودی نامعتبر`;\n case "invalid_element":\n return `مقدار نامعتبر در ${issue2.origin}`;\n default:\n return `ورودی نامعتبر`;\n }\n };\n};\nfunction fa_default() {\n return {\n localeError: error9()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/fi.js\nvar error10 = () => {\n const Sizable = {\n string: { unit: "merkkiä", subject: "merkkijonon" },\n file: { unit: "tavua", subject: "tiedoston" },\n array: { unit: "alkiota", subject: "listan" },\n set: { unit: "alkiota", subject: "joukon" },\n number: { unit: "", subject: "luvun" },\n bigint: { unit: "", subject: "suuren kokonaisluvun" },\n int: { unit: "", subject: "kokonaisluvun" },\n date: { unit: "", subject: "päivämäärän" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "number";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "array";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "säännöllinen lauseke",\n email: "sähköpostiosoite",\n url: "URL-osoite",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "ISO-aikaleima",\n date: "ISO-päivämäärä",\n time: "ISO-aika",\n duration: "ISO-kesto",\n ipv4: "IPv4-osoite",\n ipv6: "IPv6-osoite",\n cidrv4: "IPv4-alue",\n cidrv6: "IPv6-alue",\n base64: "base64-koodattu merkkijono",\n base64url: "base64url-koodattu merkkijono",\n json_string: "JSON-merkkijono",\n e164: "E.164-luku",\n jwt: "JWT",\n template_literal: "templaattimerkkijono"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Virheellinen tyyppi: odotettiin ${issue2.expected}, oli ${parsedType2(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Virheellinen syöte: täytyy olla ${stringifyPrimitive(issue2.values[0])}`;\n return `Virheellinen valinta: täytyy olla yksi seuraavista: ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Liian suuri: ${sizing.subject} täytyy olla ${adj}${issue2.maximum.toString()} ${sizing.unit}`.trim();\n }\n return `Liian suuri: arvon täytyy olla ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Liian pieni: ${sizing.subject} täytyy olla ${adj}${issue2.minimum.toString()} ${sizing.unit}`.trim();\n }\n return `Liian pieni: arvon täytyy olla ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `Virheellinen syöte: täytyy alkaa "${_issue.prefix}"`;\n if (_issue.format === "ends_with")\n return `Virheellinen syöte: täytyy loppua "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `Virheellinen syöte: täytyy sisältää "${_issue.includes}"`;\n if (_issue.format === "regex") {\n return `Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${_issue.pattern}`;\n }\n return `Virheellinen ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `Virheellinen luku: täytyy olla luvun ${issue2.divisor} monikerta`;\n case "unrecognized_keys":\n return `${issue2.keys.length > 1 ? "Tuntemattomat avaimet" : "Tuntematon avain"}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return "Virheellinen avain tietueessa";\n case "invalid_union":\n return "Virheellinen unioni";\n case "invalid_element":\n return "Virheellinen arvo joukossa";\n default:\n return `Virheellinen syöte`;\n }\n };\n};\nfunction fi_default() {\n return {\n localeError: error10()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/fr.js\nvar error11 = () => {\n const Sizable = {\n string: { unit: "caractères", verb: "avoir" },\n file: { unit: "octets", verb: "avoir" },\n array: { unit: "éléments", verb: "avoir" },\n set: { unit: "éléments", verb: "avoir" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "nombre";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "tableau";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "entrée",\n email: "adresse e-mail",\n url: "URL",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "date et heure ISO",\n date: "date ISO",\n time: "heure ISO",\n duration: "durée ISO",\n ipv4: "adresse IPv4",\n ipv6: "adresse IPv6",\n cidrv4: "plage IPv4",\n cidrv6: "plage IPv6",\n base64: "chaîne encodée en base64",\n base64url: "chaîne encodée en base64url",\n json_string: "chaîne JSON",\n e164: "numéro E.164",\n jwt: "JWT",\n template_literal: "entrée"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Entrée invalide : ${issue2.expected} attendu, ${parsedType2(issue2.input)} reçu`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Entrée invalide : ${stringifyPrimitive(issue2.values[0])} attendu`;\n return `Option invalide : une valeur parmi ${joinValues(issue2.values, "|")} attendue`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "élément(s)"}`;\n return `Trop grand : ${issue2.origin ?? "valeur"} doit être ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;\n }\n return `Trop petit : ${issue2.origin} doit être ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `Chaîne invalide : doit commencer par "${_issue.prefix}"`;\n if (_issue.format === "ends_with")\n return `Chaîne invalide : doit se terminer par "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `Chaîne invalide : doit inclure "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `Chaîne invalide : doit correspondre au modèle ${_issue.pattern}`;\n return `${Nouns[_issue.format] ?? issue2.format} invalide`;\n }\n case "not_multiple_of":\n return `Nombre invalide : doit être un multiple de ${issue2.divisor}`;\n case "unrecognized_keys":\n return `Clé${issue2.keys.length > 1 ? "s" : ""} non reconnue${issue2.keys.length > 1 ? "s" : ""} : ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `Clé invalide dans ${issue2.origin}`;\n case "invalid_union":\n return "Entrée invalide";\n case "invalid_element":\n return `Valeur invalide dans ${issue2.origin}`;\n default:\n return `Entrée invalide`;\n }\n };\n};\nfunction fr_default() {\n return {\n localeError: error11()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/fr-CA.js\nvar error12 = () => {\n const Sizable = {\n string: { unit: "caractères", verb: "avoir" },\n file: { unit: "octets", verb: "avoir" },\n array: { unit: "éléments", verb: "avoir" },\n set: { unit: "éléments", verb: "avoir" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "number";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "array";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "entrée",\n email: "adresse courriel",\n url: "URL",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "date-heure ISO",\n date: "date ISO",\n time: "heure ISO",\n duration: "durée ISO",\n ipv4: "adresse IPv4",\n ipv6: "adresse IPv6",\n cidrv4: "plage IPv4",\n cidrv6: "plage IPv6",\n base64: "chaîne encodée en base64",\n base64url: "chaîne encodée en base64url",\n json_string: "chaîne JSON",\n e164: "numéro E.164",\n jwt: "JWT",\n template_literal: "entrée"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Entrée invalide : attendu ${issue2.expected}, reçu ${parsedType2(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Entrée invalide : attendu ${stringifyPrimitive(issue2.values[0])}`;\n return `Option invalide : attendu l\'une des valeurs suivantes ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "≤" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `Trop grand : attendu que ${issue2.origin ?? "la valeur"} ait ${adj}${issue2.maximum.toString()} ${sizing.unit}`;\n return `Trop grand : attendu que ${issue2.origin ?? "la valeur"} soit ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? "≥" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Trop petit : attendu que ${issue2.origin} ait ${adj}${issue2.minimum.toString()} ${sizing.unit}`;\n }\n return `Trop petit : attendu que ${issue2.origin} soit ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with") {\n return `Chaîne invalide : doit commencer par "${_issue.prefix}"`;\n }\n if (_issue.format === "ends_with")\n return `Chaîne invalide : doit se terminer par "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `Chaîne invalide : doit inclure "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `Chaîne invalide : doit correspondre au motif ${_issue.pattern}`;\n return `${Nouns[_issue.format] ?? issue2.format} invalide`;\n }\n case "not_multiple_of":\n return `Nombre invalide : doit être un multiple de ${issue2.divisor}`;\n case "unrecognized_keys":\n return `Clé${issue2.keys.length > 1 ? "s" : ""} non reconnue${issue2.keys.length > 1 ? "s" : ""} : ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `Clé invalide dans ${issue2.origin}`;\n case "invalid_union":\n return "Entrée invalide";\n case "invalid_element":\n return `Valeur invalide dans ${issue2.origin}`;\n default:\n return `Entrée invalide`;\n }\n };\n};\nfunction fr_CA_default() {\n return {\n localeError: error12()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/he.js\nvar error13 = () => {\n const Sizable = {\n string: { unit: "אותיות", verb: "לכלול" },\n file: { unit: "בייטים", verb: "לכלול" },\n array: { unit: "פריטים", verb: "לכלול" },\n set: { unit: "פריטים", verb: "לכלול" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "number";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "array";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "קלט",\n email: "כתובת אימייל",\n url: "כתובת רשת",\n emoji: "אימוג\'י",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "תאריך וזמן ISO",\n date: "תאריך ISO",\n time: "זמן ISO",\n duration: "משך זמן ISO",\n ipv4: "כתובת IPv4",\n ipv6: "כתובת IPv6",\n cidrv4: "טווח IPv4",\n cidrv6: "טווח IPv6",\n base64: "מחרוזת בבסיס 64",\n base64url: "מחרוזת בבסיס 64 לכתובות רשת",\n json_string: "מחרוזת JSON",\n e164: "מספר E.164",\n jwt: "JWT",\n template_literal: "קלט"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `קלט לא תקין: צריך ${issue2.expected}, התקבל ${parsedType2(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `קלט לא תקין: צריך ${stringifyPrimitive(issue2.values[0])}`;\n return `קלט לא תקין: צריך אחת מהאפשרויות ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `גדול מדי: ${issue2.origin ?? "value"} צריך להיות ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elements"}`;\n return `גדול מדי: ${issue2.origin ?? "value"} צריך להיות ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `קטן מדי: ${issue2.origin} צריך להיות ${adj}${issue2.minimum.toString()} ${sizing.unit}`;\n }\n return `קטן מדי: ${issue2.origin} צריך להיות ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `מחרוזת לא תקינה: חייבת להתחיל ב"${_issue.prefix}"`;\n if (_issue.format === "ends_with")\n return `מחרוזת לא תקינה: חייבת להסתיים ב "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `מחרוזת לא תקינה: חייבת לכלול "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `מחרוזת לא תקינה: חייבת להתאים לתבנית ${_issue.pattern}`;\n return `${Nouns[_issue.format] ?? issue2.format} לא תקין`;\n }\n case "not_multiple_of":\n return `מספר לא תקין: חייב להיות מכפלה של ${issue2.divisor}`;\n case "unrecognized_keys":\n return `מפתח${issue2.keys.length > 1 ? "ות" : ""} לא מזוה${issue2.keys.length > 1 ? "ים" : "ה"}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `מפתח לא תקין ב${issue2.origin}`;\n case "invalid_union":\n return "קלט לא תקין";\n case "invalid_element":\n return `ערך לא תקין ב${issue2.origin}`;\n default:\n return `קלט לא תקין`;\n }\n };\n};\nfunction he_default() {\n return {\n localeError: error13()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/hu.js\nvar error14 = () => {\n const Sizable = {\n string: { unit: "karakter", verb: "legyen" },\n file: { unit: "byte", verb: "legyen" },\n array: { unit: "elem", verb: "legyen" },\n set: { unit: "elem", verb: "legyen" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "szám";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "tömb";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "bemenet",\n email: "email cím",\n url: "URL",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "ISO időbélyeg",\n date: "ISO dátum",\n time: "ISO idő",\n duration: "ISO időintervallum",\n ipv4: "IPv4 cím",\n ipv6: "IPv6 cím",\n cidrv4: "IPv4 tartomány",\n cidrv6: "IPv6 tartomány",\n base64: "base64-kódolt string",\n base64url: "base64url-kódolt string",\n json_string: "JSON string",\n e164: "E.164 szám",\n jwt: "JWT",\n template_literal: "bemenet"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Érvénytelen bemenet: a várt érték ${issue2.expected}, a kapott érték ${parsedType2(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Érvénytelen bemenet: a várt érték ${stringifyPrimitive(issue2.values[0])}`;\n return `Érvénytelen opció: valamelyik érték várt ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `Túl nagy: ${issue2.origin ?? "érték"} mérete túl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;\n return `Túl nagy: a bemeneti érték ${issue2.origin ?? "érték"} túl nagy: ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Túl kicsi: a bemeneti érték ${issue2.origin} mérete túl kicsi ${adj}${issue2.minimum.toString()} ${sizing.unit}`;\n }\n return `Túl kicsi: a bemeneti érték ${issue2.origin} túl kicsi ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `Érvénytelen string: "${_issue.prefix}" értékkel kell kezdődnie`;\n if (_issue.format === "ends_with")\n return `Érvénytelen string: "${_issue.suffix}" értékkel kell végződnie`;\n if (_issue.format === "includes")\n return `Érvénytelen string: "${_issue.includes}" értéket kell tartalmaznia`;\n if (_issue.format === "regex")\n return `Érvénytelen string: ${_issue.pattern} mintának kell megfelelnie`;\n return `Érvénytelen ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `Érvénytelen szám: ${issue2.divisor} többszörösének kell lennie`;\n case "unrecognized_keys":\n return `Ismeretlen kulcs${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `Érvénytelen kulcs ${issue2.origin}`;\n case "invalid_union":\n return "Érvénytelen bemenet";\n case "invalid_element":\n return `Érvénytelen érték: ${issue2.origin}`;\n default:\n return `Érvénytelen bemenet`;\n }\n };\n};\nfunction hu_default() {\n return {\n localeError: error14()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/id.js\nvar error15 = () => {\n const Sizable = {\n string: { unit: "karakter", verb: "memiliki" },\n file: { unit: "byte", verb: "memiliki" },\n array: { unit: "item", verb: "memiliki" },\n set: { unit: "item", verb: "memiliki" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "number";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "array";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "input",\n email: "alamat email",\n url: "URL",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "tanggal dan waktu format ISO",\n date: "tanggal format ISO",\n time: "jam format ISO",\n duration: "durasi format ISO",\n ipv4: "alamat IPv4",\n ipv6: "alamat IPv6",\n cidrv4: "rentang alamat IPv4",\n cidrv6: "rentang alamat IPv6",\n base64: "string dengan enkode base64",\n base64url: "string dengan enkode base64url",\n json_string: "string JSON",\n e164: "angka E.164",\n jwt: "JWT",\n template_literal: "input"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Input tidak valid: diharapkan ${issue2.expected}, diterima ${parsedType2(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Input tidak valid: diharapkan ${stringifyPrimitive(issue2.values[0])}`;\n return `Pilihan tidak valid: diharapkan salah satu dari ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `Terlalu besar: diharapkan ${issue2.origin ?? "value"} memiliki ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemen"}`;\n return `Terlalu besar: diharapkan ${issue2.origin ?? "value"} menjadi ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Terlalu kecil: diharapkan ${issue2.origin} memiliki ${adj}${issue2.minimum.toString()} ${sizing.unit}`;\n }\n return `Terlalu kecil: diharapkan ${issue2.origin} menjadi ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `String tidak valid: harus dimulai dengan "${_issue.prefix}"`;\n if (_issue.format === "ends_with")\n return `String tidak valid: harus berakhir dengan "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `String tidak valid: harus menyertakan "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `String tidak valid: harus sesuai pola ${_issue.pattern}`;\n return `${Nouns[_issue.format] ?? issue2.format} tidak valid`;\n }\n case "not_multiple_of":\n return `Angka tidak valid: harus kelipatan dari ${issue2.divisor}`;\n case "unrecognized_keys":\n return `Kunci tidak dikenali ${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `Kunci tidak valid di ${issue2.origin}`;\n case "invalid_union":\n return "Input tidak valid";\n case "invalid_element":\n return `Nilai tidak valid di ${issue2.origin}`;\n default:\n return `Input tidak valid`;\n }\n };\n};\nfunction id_default() {\n return {\n localeError: error15()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/it.js\nvar error16 = () => {\n const Sizable = {\n string: { unit: "caratteri", verb: "avere" },\n file: { unit: "byte", verb: "avere" },\n array: { unit: "elementi", verb: "avere" },\n set: { unit: "elementi", verb: "avere" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "numero";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "vettore";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "input",\n email: "indirizzo email",\n url: "URL",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "data e ora ISO",\n date: "data ISO",\n time: "ora ISO",\n duration: "durata ISO",\n ipv4: "indirizzo IPv4",\n ipv6: "indirizzo IPv6",\n cidrv4: "intervallo IPv4",\n cidrv6: "intervallo IPv6",\n base64: "stringa codificata in base64",\n base64url: "URL codificata in base64",\n json_string: "stringa JSON",\n e164: "numero E.164",\n jwt: "JWT",\n template_literal: "input"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Input non valido: atteso ${issue2.expected}, ricevuto ${parsedType2(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Input non valido: atteso ${stringifyPrimitive(issue2.values[0])}`;\n return `Opzione non valida: atteso uno tra ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `Troppo grande: ${issue2.origin ?? "valore"} deve avere ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementi"}`;\n return `Troppo grande: ${issue2.origin ?? "valore"} deve essere ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Troppo piccolo: ${issue2.origin} deve avere ${adj}${issue2.minimum.toString()} ${sizing.unit}`;\n }\n return `Troppo piccolo: ${issue2.origin} deve essere ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `Stringa non valida: deve iniziare con "${_issue.prefix}"`;\n if (_issue.format === "ends_with")\n return `Stringa non valida: deve terminare con "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `Stringa non valida: deve includere "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;\n return `Invalid ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;\n case "unrecognized_keys":\n return `Chiav${issue2.keys.length > 1 ? "i" : "e"} non riconosciut${issue2.keys.length > 1 ? "e" : "a"}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `Chiave non valida in ${issue2.origin}`;\n case "invalid_union":\n return "Input non valido";\n case "invalid_element":\n return `Valore non valido in ${issue2.origin}`;\n default:\n return `Input non valido`;\n }\n };\n};\nfunction it_default() {\n return {\n localeError: error16()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/ja.js\nvar error17 = () => {\n const Sizable = {\n string: { unit: "文字", verb: "である" },\n file: { unit: "バイト", verb: "である" },\n array: { unit: "要素", verb: "である" },\n set: { unit: "要素", verb: "である" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "数値";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "配列";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "入力値",\n email: "メールアドレス",\n url: "URL",\n emoji: "絵文字",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "ISO日時",\n date: "ISO日付",\n time: "ISO時刻",\n duration: "ISO期間",\n ipv4: "IPv4アドレス",\n ipv6: "IPv6アドレス",\n cidrv4: "IPv4範囲",\n cidrv6: "IPv6範囲",\n base64: "base64エンコード文字列",\n base64url: "base64urlエンコード文字列",\n json_string: "JSON文字列",\n e164: "E.164番号",\n jwt: "JWT",\n template_literal: "入力値"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `無効な入力: ${issue2.expected}が期待されましたが、${parsedType2(issue2.input)}が入力されました`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `無効な入力: ${stringifyPrimitive(issue2.values[0])}が期待されました`;\n return `無効な選択: ${joinValues(issue2.values, "、")}のいずれかである必要があります`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `大きすぎる値: ${issue2.origin ?? "値"}は${issue2.maximum.toString()}${sizing.unit ?? "要素"}${adj}である必要があります`;\n return `大きすぎる値: ${issue2.origin ?? "値"}は${issue2.maximum.toString()}${adj}である必要があります`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `小さすぎる値: ${issue2.origin}は${issue2.minimum.toString()}${sizing.unit}${adj}である必要があります`;\n return `小さすぎる値: ${issue2.origin}は${issue2.minimum.toString()}${adj}である必要があります`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `無効な文字列: "${_issue.prefix}"で始まる必要があります`;\n if (_issue.format === "ends_with")\n return `無効な文字列: "${_issue.suffix}"で終わる必要があります`;\n if (_issue.format === "includes")\n return `無効な文字列: "${_issue.includes}"を含む必要があります`;\n if (_issue.format === "regex")\n return `無効な文字列: パターン${_issue.pattern}に一致する必要があります`;\n return `無効な${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `無効な数値: ${issue2.divisor}の倍数である必要があります`;\n case "unrecognized_keys":\n return `認識されていないキー${issue2.keys.length > 1 ? "群" : ""}: ${joinValues(issue2.keys, "、")}`;\n case "invalid_key":\n return `${issue2.origin}内の無効なキー`;\n case "invalid_union":\n return "無効な入力";\n case "invalid_element":\n return `${issue2.origin}内の無効な値`;\n default:\n return `無効な入力`;\n }\n };\n};\nfunction ja_default() {\n return {\n localeError: error17()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/kh.js\nvar error18 = () => {\n const Sizable = {\n string: { unit: "តួអក្សរ", verb: "គួរមាន" },\n file: { unit: "បៃ", verb: "គួរមាន" },\n array: { unit: "ធាតុ", verb: "គួរមាន" },\n set: { unit: "ធាតុ", verb: "គួរមាន" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "មិនមែនជាលេខ (NaN)" : "លេខ";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "អារេ (Array)";\n }\n if (data === null) {\n return "គ្មានតម្លៃ (null)";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "ទិន្នន័យបញ្ចូល",\n email: "អាសយដ្ឋានអ៊ីមែល",\n url: "URL",\n emoji: "សញ្ញាអារម្មណ៍",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "កាលបរិច្ឆេទ និងម៉ោង ISO",\n date: "កាលបរិច្ឆេទ ISO",\n time: "ម៉ោង ISO",\n duration: "រយៈពេល ISO",\n ipv4: "អាសយដ្ឋាន IPv4",\n ipv6: "អាសយដ្ឋាន IPv6",\n cidrv4: "ដែនអាសយដ្ឋាន IPv4",\n cidrv6: "ដែនអាសយដ្ឋាន IPv6",\n base64: "ខ្សែអក្សរអ៊ិកូដ base64",\n base64url: "ខ្សែអក្សរអ៊ិកូដ base64url",\n json_string: "ខ្សែអក្សរ JSON",\n e164: "លេខ E.164",\n jwt: "JWT",\n template_literal: "ទិន្នន័យបញ្ចូល"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${issue2.expected} ប៉ុន្តែទទួលបាន ${parsedType2(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${stringifyPrimitive(issue2.values[0])}`;\n return `ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `ធំពេក៖ ត្រូវការ ${issue2.origin ?? "តម្លៃ"} ${adj} ${issue2.maximum.toString()} ${sizing.unit ?? "ធាតុ"}`;\n return `ធំពេក៖ ត្រូវការ ${issue2.origin ?? "តម្លៃ"} ${adj} ${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `តូចពេក៖ ត្រូវការ ${issue2.origin} ${adj} ${issue2.minimum.toString()} ${sizing.unit}`;\n }\n return `តូចពេក៖ ត្រូវការ ${issue2.origin} ${adj} ${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with") {\n return `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${_issue.prefix}"`;\n }\n if (_issue.format === "ends_with")\n return `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${_issue.pattern}`;\n return `មិនត្រឹមត្រូវ៖ ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${issue2.divisor}`;\n case "unrecognized_keys":\n return `រកឃើញសោមិនស្គាល់៖ ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `សោមិនត្រឹមត្រូវនៅក្នុង ${issue2.origin}`;\n case "invalid_union":\n return `ទិន្នន័យមិនត្រឹមត្រូវ`;\n case "invalid_element":\n return `ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${issue2.origin}`;\n default:\n return `ទិន្នន័យមិនត្រឹមត្រូវ`;\n }\n };\n};\nfunction kh_default() {\n return {\n localeError: error18()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/ko.js\nvar error19 = () => {\n const Sizable = {\n string: { unit: "문자", verb: "to have" },\n file: { unit: "바이트", verb: "to have" },\n array: { unit: "개", verb: "to have" },\n set: { unit: "개", verb: "to have" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "number";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "array";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "입력",\n email: "이메일 주소",\n url: "URL",\n emoji: "이모지",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "ISO 날짜시간",\n date: "ISO 날짜",\n time: "ISO 시간",\n duration: "ISO 기간",\n ipv4: "IPv4 주소",\n ipv6: "IPv6 주소",\n cidrv4: "IPv4 범위",\n cidrv6: "IPv6 범위",\n base64: "base64 인코딩 문자열",\n base64url: "base64url 인코딩 문자열",\n json_string: "JSON 문자열",\n e164: "E.164 번호",\n jwt: "JWT",\n template_literal: "입력"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `잘못된 입력: 예상 타입은 ${issue2.expected}, 받은 타입은 ${parsedType2(issue2.input)}입니다`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `잘못된 입력: 값은 ${stringifyPrimitive(issue2.values[0])} 이어야 합니다`;\n return `잘못된 옵션: ${joinValues(issue2.values, "또는 ")} 중 하나여야 합니다`;\n case "too_big": {\n const adj = issue2.inclusive ? "이하" : "미만";\n const suffix = adj === "미만" ? "이어야 합니다" : "여야 합니다";\n const sizing = getSizing(issue2.origin);\n const unit = sizing?.unit ?? "요소";\n if (sizing)\n return `${issue2.origin ?? "값"}이 너무 큽니다: ${issue2.maximum.toString()}${unit} ${adj}${suffix}`;\n return `${issue2.origin ?? "값"}이 너무 큽니다: ${issue2.maximum.toString()} ${adj}${suffix}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? "이상" : "초과";\n const suffix = adj === "이상" ? "이어야 합니다" : "여야 합니다";\n const sizing = getSizing(issue2.origin);\n const unit = sizing?.unit ?? "요소";\n if (sizing) {\n return `${issue2.origin ?? "값"}이 너무 작습니다: ${issue2.minimum.toString()}${unit} ${adj}${suffix}`;\n }\n return `${issue2.origin ?? "값"}이 너무 작습니다: ${issue2.minimum.toString()} ${adj}${suffix}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with") {\n return `잘못된 문자열: "${_issue.prefix}"(으)로 시작해야 합니다`;\n }\n if (_issue.format === "ends_with")\n return `잘못된 문자열: "${_issue.suffix}"(으)로 끝나야 합니다`;\n if (_issue.format === "includes")\n return `잘못된 문자열: "${_issue.includes}"을(를) 포함해야 합니다`;\n if (_issue.format === "regex")\n return `잘못된 문자열: 정규식 ${_issue.pattern} 패턴과 일치해야 합니다`;\n return `잘못된 ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `잘못된 숫자: ${issue2.divisor}의 배수여야 합니다`;\n case "unrecognized_keys":\n return `인식할 수 없는 키: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `잘못된 키: ${issue2.origin}`;\n case "invalid_union":\n return `잘못된 입력`;\n case "invalid_element":\n return `잘못된 값: ${issue2.origin}`;\n default:\n return `잘못된 입력`;\n }\n };\n};\nfunction ko_default() {\n return {\n localeError: error19()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/mk.js\nvar error20 = () => {\n const Sizable = {\n string: { unit: "знаци", verb: "да имаат" },\n file: { unit: "бајти", verb: "да имаат" },\n array: { unit: "ставки", verb: "да имаат" },\n set: { unit: "ставки", verb: "да имаат" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "број";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "низа";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "внес",\n email: "адреса на е-пошта",\n url: "URL",\n emoji: "емоџи",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "ISO датум и време",\n date: "ISO датум",\n time: "ISO време",\n duration: "ISO времетраење",\n ipv4: "IPv4 адреса",\n ipv6: "IPv6 адреса",\n cidrv4: "IPv4 опсег",\n cidrv6: "IPv6 опсег",\n base64: "base64-енкодирана низа",\n base64url: "base64url-енкодирана низа",\n json_string: "JSON низа",\n e164: "E.164 број",\n jwt: "JWT",\n template_literal: "внес"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Грешен внес: се очекува ${issue2.expected}, примено ${parsedType2(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`;\n return `Грешана опција: се очекува една ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `Премногу голем: се очекува ${issue2.origin ?? "вредноста"} да има ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "елементи"}`;\n return `Премногу голем: се очекува ${issue2.origin ?? "вредноста"} да биде ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Премногу мал: се очекува ${issue2.origin} да има ${adj}${issue2.minimum.toString()} ${sizing.unit}`;\n }\n return `Премногу мал: се очекува ${issue2.origin} да биде ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with") {\n return `Неважечка низа: мора да започнува со "${_issue.prefix}"`;\n }\n if (_issue.format === "ends_with")\n return `Неважечка низа: мора да завршува со "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `Неважечка низа: мора да вклучува "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `Неважечка низа: мора да одгоара на патернот ${_issue.pattern}`;\n return `Invalid ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `Грешен број: мора да биде делив со ${issue2.divisor}`;\n case "unrecognized_keys":\n return `${issue2.keys.length > 1 ? "Непрепознаени клучеви" : "Непрепознаен клуч"}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `Грешен клуч во ${issue2.origin}`;\n case "invalid_union":\n return "Грешен внес";\n case "invalid_element":\n return `Грешна вредност во ${issue2.origin}`;\n default:\n return `Грешен внес`;\n }\n };\n};\nfunction mk_default() {\n return {\n localeError: error20()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/ms.js\nvar error21 = () => {\n const Sizable = {\n string: { unit: "aksara", verb: "mempunyai" },\n file: { unit: "bait", verb: "mempunyai" },\n array: { unit: "elemen", verb: "mempunyai" },\n set: { unit: "elemen", verb: "mempunyai" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "nombor";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "array";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "input",\n email: "alamat e-mel",\n url: "URL",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "tarikh masa ISO",\n date: "tarikh ISO",\n time: "masa ISO",\n duration: "tempoh ISO",\n ipv4: "alamat IPv4",\n ipv6: "alamat IPv6",\n cidrv4: "julat IPv4",\n cidrv6: "julat IPv6",\n base64: "string dikodkan base64",\n base64url: "string dikodkan base64url",\n json_string: "string JSON",\n e164: "nombor E.164",\n jwt: "JWT",\n template_literal: "input"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Input tidak sah: dijangka ${issue2.expected}, diterima ${parsedType2(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Input tidak sah: dijangka ${stringifyPrimitive(issue2.values[0])}`;\n return `Pilihan tidak sah: dijangka salah satu daripada ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `Terlalu besar: dijangka ${issue2.origin ?? "nilai"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemen"}`;\n return `Terlalu besar: dijangka ${issue2.origin ?? "nilai"} adalah ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Terlalu kecil: dijangka ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;\n }\n return `Terlalu kecil: dijangka ${issue2.origin} adalah ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `String tidak sah: mesti bermula dengan "${_issue.prefix}"`;\n if (_issue.format === "ends_with")\n return `String tidak sah: mesti berakhir dengan "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `String tidak sah: mesti mengandungi "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `String tidak sah: mesti sepadan dengan corak ${_issue.pattern}`;\n return `${Nouns[_issue.format] ?? issue2.format} tidak sah`;\n }\n case "not_multiple_of":\n return `Nombor tidak sah: perlu gandaan ${issue2.divisor}`;\n case "unrecognized_keys":\n return `Kunci tidak dikenali: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `Kunci tidak sah dalam ${issue2.origin}`;\n case "invalid_union":\n return "Input tidak sah";\n case "invalid_element":\n return `Nilai tidak sah dalam ${issue2.origin}`;\n default:\n return `Input tidak sah`;\n }\n };\n};\nfunction ms_default() {\n return {\n localeError: error21()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/nl.js\nvar error22 = () => {\n const Sizable = {\n string: { unit: "tekens" },\n file: { unit: "bytes" },\n array: { unit: "elementen" },\n set: { unit: "elementen" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "getal";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "array";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "invoer",\n email: "emailadres",\n url: "URL",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "ISO datum en tijd",\n date: "ISO datum",\n time: "ISO tijd",\n duration: "ISO duur",\n ipv4: "IPv4-adres",\n ipv6: "IPv6-adres",\n cidrv4: "IPv4-bereik",\n cidrv6: "IPv6-bereik",\n base64: "base64-gecodeerde tekst",\n base64url: "base64 URL-gecodeerde tekst",\n json_string: "JSON string",\n e164: "E.164-nummer",\n jwt: "JWT",\n template_literal: "invoer"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Ongeldige invoer: verwacht ${issue2.expected}, ontving ${parsedType2(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Ongeldige invoer: verwacht ${stringifyPrimitive(issue2.values[0])}`;\n return `Ongeldige optie: verwacht één van ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `Te lang: verwacht dat ${issue2.origin ?? "waarde"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementen"} bevat`;\n return `Te lang: verwacht dat ${issue2.origin ?? "waarde"} ${adj}${issue2.maximum.toString()} is`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Te kort: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} bevat`;\n }\n return `Te kort: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} is`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with") {\n return `Ongeldige tekst: moet met "${_issue.prefix}" beginnen`;\n }\n if (_issue.format === "ends_with")\n return `Ongeldige tekst: moet op "${_issue.suffix}" eindigen`;\n if (_issue.format === "includes")\n return `Ongeldige tekst: moet "${_issue.includes}" bevatten`;\n if (_issue.format === "regex")\n return `Ongeldige tekst: moet overeenkomen met patroon ${_issue.pattern}`;\n return `Ongeldig: ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `Ongeldig getal: moet een veelvoud van ${issue2.divisor} zijn`;\n case "unrecognized_keys":\n return `Onbekende key${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `Ongeldige key in ${issue2.origin}`;\n case "invalid_union":\n return "Ongeldige invoer";\n case "invalid_element":\n return `Ongeldige waarde in ${issue2.origin}`;\n default:\n return `Ongeldige invoer`;\n }\n };\n};\nfunction nl_default() {\n return {\n localeError: error22()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/no.js\nvar error23 = () => {\n const Sizable = {\n string: { unit: "tegn", verb: "å ha" },\n file: { unit: "bytes", verb: "å ha" },\n array: { unit: "elementer", verb: "å inneholde" },\n set: { unit: "elementer", verb: "å inneholde" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "tall";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "liste";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "input",\n email: "e-postadresse",\n url: "URL",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "ISO dato- og klokkeslett",\n date: "ISO-dato",\n time: "ISO-klokkeslett",\n duration: "ISO-varighet",\n ipv4: "IPv4-område",\n ipv6: "IPv6-område",\n cidrv4: "IPv4-spekter",\n cidrv6: "IPv6-spekter",\n base64: "base64-enkodet streng",\n base64url: "base64url-enkodet streng",\n json_string: "JSON-streng",\n e164: "E.164-nummer",\n jwt: "JWT",\n template_literal: "input"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Ugyldig input: forventet ${issue2.expected}, fikk ${parsedType2(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Ugyldig verdi: forventet ${stringifyPrimitive(issue2.values[0])}`;\n return `Ugyldig valg: forventet en av ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `For stor(t): forventet ${issue2.origin ?? "value"} til å ha ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementer"}`;\n return `For stor(t): forventet ${issue2.origin ?? "value"} til å ha ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `For lite(n): forventet ${issue2.origin} til å ha ${adj}${issue2.minimum.toString()} ${sizing.unit}`;\n }\n return `For lite(n): forventet ${issue2.origin} til å ha ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `Ugyldig streng: må starte med "${_issue.prefix}"`;\n if (_issue.format === "ends_with")\n return `Ugyldig streng: må ende med "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `Ugyldig streng: må inneholde "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `Ugyldig streng: må matche mønsteret ${_issue.pattern}`;\n return `Ugyldig ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `Ugyldig tall: må være et multiplum av ${issue2.divisor}`;\n case "unrecognized_keys":\n return `${issue2.keys.length > 1 ? "Ukjente nøkler" : "Ukjent nøkkel"}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `Ugyldig nøkkel i ${issue2.origin}`;\n case "invalid_union":\n return "Ugyldig input";\n case "invalid_element":\n return `Ugyldig verdi i ${issue2.origin}`;\n default:\n return `Ugyldig input`;\n }\n };\n};\nfunction no_default() {\n return {\n localeError: error23()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/ota.js\nvar error24 = () => {\n const Sizable = {\n string: { unit: "harf", verb: "olmalıdır" },\n file: { unit: "bayt", verb: "olmalıdır" },\n array: { unit: "unsur", verb: "olmalıdır" },\n set: { unit: "unsur", verb: "olmalıdır" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "numara";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "saf";\n }\n if (data === null) {\n return "gayb";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "giren",\n email: "epostagâh",\n url: "URL",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "ISO hengâmı",\n date: "ISO tarihi",\n time: "ISO zamanı",\n duration: "ISO müddeti",\n ipv4: "IPv4 nişânı",\n ipv6: "IPv6 nişânı",\n cidrv4: "IPv4 menzili",\n cidrv6: "IPv6 menzili",\n base64: "base64-şifreli metin",\n base64url: "base64url-şifreli metin",\n json_string: "JSON metin",\n e164: "E.164 sayısı",\n jwt: "JWT",\n template_literal: "giren"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Fâsit giren: umulan ${issue2.expected}, alınan ${parsedType2(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Fâsit giren: umulan ${stringifyPrimitive(issue2.values[0])}`;\n return `Fâsit tercih: mûteberler ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `Fazla büyük: ${issue2.origin ?? "value"}, ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elements"} sahip olmalıydı.`;\n return `Fazla büyük: ${issue2.origin ?? "value"}, ${adj}${issue2.maximum.toString()} olmalıydı.`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Fazla küçük: ${issue2.origin}, ${adj}${issue2.minimum.toString()} ${sizing.unit} sahip olmalıydı.`;\n }\n return `Fazla küçük: ${issue2.origin}, ${adj}${issue2.minimum.toString()} olmalıydı.`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `Fâsit metin: "${_issue.prefix}" ile başlamalı.`;\n if (_issue.format === "ends_with")\n return `Fâsit metin: "${_issue.suffix}" ile bitmeli.`;\n if (_issue.format === "includes")\n return `Fâsit metin: "${_issue.includes}" ihtivâ etmeli.`;\n if (_issue.format === "regex")\n return `Fâsit metin: ${_issue.pattern} nakşına uymalı.`;\n return `Fâsit ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `Fâsit sayı: ${issue2.divisor} katı olmalıydı.`;\n case "unrecognized_keys":\n return `Tanınmayan anahtar ${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `${issue2.origin} için tanınmayan anahtar var.`;\n case "invalid_union":\n return "Giren tanınamadı.";\n case "invalid_element":\n return `${issue2.origin} için tanınmayan kıymet var.`;\n default:\n return `Kıymet tanınamadı.`;\n }\n };\n};\nfunction ota_default() {\n return {\n localeError: error24()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/pl.js\nvar error25 = () => {\n const Sizable = {\n string: { unit: "znaków", verb: "mieć" },\n file: { unit: "bajtów", verb: "mieć" },\n array: { unit: "elementów", verb: "mieć" },\n set: { unit: "elementów", verb: "mieć" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "liczba";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "tablica";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "wyrażenie",\n email: "adres email",\n url: "URL",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "data i godzina w formacie ISO",\n date: "data w formacie ISO",\n time: "godzina w formacie ISO",\n duration: "czas trwania ISO",\n ipv4: "adres IPv4",\n ipv6: "adres IPv6",\n cidrv4: "zakres IPv4",\n cidrv6: "zakres IPv6",\n base64: "ciąg znaków zakodowany w formacie base64",\n base64url: "ciąg znaków zakodowany w formacie base64url",\n json_string: "ciąg znaków w formacie JSON",\n e164: "liczba E.164",\n jwt: "JWT",\n template_literal: "wejście"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Nieprawidłowe dane wejściowe: oczekiwano ${issue2.expected}, otrzymano ${parsedType2(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Nieprawidłowe dane wejściowe: oczekiwano ${stringifyPrimitive(issue2.values[0])}`;\n return `Nieprawidłowa opcja: oczekiwano jednej z wartości ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Za duża wartość: oczekiwano, że ${issue2.origin ?? "wartość"} będzie mieć ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementów"}`;\n }\n return `Zbyt duż(y/a/e): oczekiwano, że ${issue2.origin ?? "wartość"} będzie wynosić ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Za mała wartość: oczekiwano, że ${issue2.origin ?? "wartość"} będzie mieć ${adj}${issue2.minimum.toString()} ${sizing.unit ?? "elementów"}`;\n }\n return `Zbyt mał(y/a/e): oczekiwano, że ${issue2.origin ?? "wartość"} będzie wynosić ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `Nieprawidłowy ciąg znaków: musi zaczynać się od "${_issue.prefix}"`;\n if (_issue.format === "ends_with")\n return `Nieprawidłowy ciąg znaków: musi kończyć się na "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `Nieprawidłowy ciąg znaków: musi zawierać "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${_issue.pattern}`;\n return `Nieprawidłow(y/a/e) ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `Nieprawidłowa liczba: musi być wielokrotnością ${issue2.divisor}`;\n case "unrecognized_keys":\n return `Nierozpoznane klucze${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `Nieprawidłowy klucz w ${issue2.origin}`;\n case "invalid_union":\n return "Nieprawidłowe dane wejściowe";\n case "invalid_element":\n return `Nieprawidłowa wartość w ${issue2.origin}`;\n default:\n return `Nieprawidłowe dane wejściowe`;\n }\n };\n};\nfunction pl_default() {\n return {\n localeError: error25()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/pt.js\nvar error26 = () => {\n const Sizable = {\n string: { unit: "caracteres", verb: "ter" },\n file: { unit: "bytes", verb: "ter" },\n array: { unit: "itens", verb: "ter" },\n set: { unit: "itens", verb: "ter" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "número";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "array";\n }\n if (data === null) {\n return "nulo";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "padrão",\n email: "endereço de e-mail",\n url: "URL",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "data e hora ISO",\n date: "data ISO",\n time: "hora ISO",\n duration: "duração ISO",\n ipv4: "endereço IPv4",\n ipv6: "endereço IPv6",\n cidrv4: "faixa de IPv4",\n cidrv6: "faixa de IPv6",\n base64: "texto codificado em base64",\n base64url: "URL codificada em base64",\n json_string: "texto JSON",\n e164: "número E.164",\n jwt: "JWT",\n template_literal: "entrada"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Tipo inválido: esperado ${issue2.expected}, recebido ${parsedType2(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Entrada inválida: esperado ${stringifyPrimitive(issue2.values[0])}`;\n return `Opção inválida: esperada uma das ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `Muito grande: esperado que ${issue2.origin ?? "valor"} tivesse ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementos"}`;\n return `Muito grande: esperado que ${issue2.origin ?? "valor"} fosse ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Muito pequeno: esperado que ${issue2.origin} tivesse ${adj}${issue2.minimum.toString()} ${sizing.unit}`;\n }\n return `Muito pequeno: esperado que ${issue2.origin} fosse ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `Texto inválido: deve começar com "${_issue.prefix}"`;\n if (_issue.format === "ends_with")\n return `Texto inválido: deve terminar com "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `Texto inválido: deve incluir "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `Texto inválido: deve corresponder ao padrão ${_issue.pattern}`;\n return `${Nouns[_issue.format] ?? issue2.format} inválido`;\n }\n case "not_multiple_of":\n return `Número inválido: deve ser múltiplo de ${issue2.divisor}`;\n case "unrecognized_keys":\n return `Chave${issue2.keys.length > 1 ? "s" : ""} desconhecida${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `Chave inválida em ${issue2.origin}`;\n case "invalid_union":\n return "Entrada inválida";\n case "invalid_element":\n return `Valor inválido em ${issue2.origin}`;\n default:\n return `Campo inválido`;\n }\n };\n};\nfunction pt_default() {\n return {\n localeError: error26()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/ru.js\nfunction getRussianPlural(count, one, few, many) {\n const absCount = Math.abs(count);\n const lastDigit = absCount % 10;\n const lastTwoDigits = absCount % 100;\n if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {\n return many;\n }\n if (lastDigit === 1) {\n return one;\n }\n if (lastDigit >= 2 && lastDigit <= 4) {\n return few;\n }\n return many;\n}\nvar error27 = () => {\n const Sizable = {\n string: {\n unit: {\n one: "символ",\n few: "символа",\n many: "символов"\n },\n verb: "иметь"\n },\n file: {\n unit: {\n one: "байт",\n few: "байта",\n many: "байт"\n },\n verb: "иметь"\n },\n array: {\n unit: {\n one: "элемент",\n few: "элемента",\n many: "элементов"\n },\n verb: "иметь"\n },\n set: {\n unit: {\n one: "элемент",\n few: "элемента",\n many: "элементов"\n },\n verb: "иметь"\n }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "число";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "массив";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "ввод",\n email: "email адрес",\n url: "URL",\n emoji: "эмодзи",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "ISO дата и время",\n date: "ISO дата",\n time: "ISO время",\n duration: "ISO длительность",\n ipv4: "IPv4 адрес",\n ipv6: "IPv6 адрес",\n cidrv4: "IPv4 диапазон",\n cidrv6: "IPv6 диапазон",\n base64: "строка в формате base64",\n base64url: "строка в формате base64url",\n json_string: "JSON строка",\n e164: "номер E.164",\n jwt: "JWT",\n template_literal: "ввод"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Неверный ввод: ожидалось ${issue2.expected}, получено ${parsedType2(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Неверный ввод: ожидалось ${stringifyPrimitive(issue2.values[0])}`;\n return `Неверный вариант: ожидалось одно из ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n const maxValue = Number(issue2.maximum);\n const unit = getRussianPlural(maxValue, sizing.unit.one, sizing.unit.few, sizing.unit.many);\n return `Слишком большое значение: ожидалось, что ${issue2.origin ?? "значение"} будет иметь ${adj}${issue2.maximum.toString()} ${unit}`;\n }\n return `Слишком большое значение: ожидалось, что ${issue2.origin ?? "значение"} будет ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n const minValue = Number(issue2.minimum);\n const unit = getRussianPlural(minValue, sizing.unit.one, sizing.unit.few, sizing.unit.many);\n return `Слишком маленькое значение: ожидалось, что ${issue2.origin} будет иметь ${adj}${issue2.minimum.toString()} ${unit}`;\n }\n return `Слишком маленькое значение: ожидалось, что ${issue2.origin} будет ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `Неверная строка: должна начинаться с "${_issue.prefix}"`;\n if (_issue.format === "ends_with")\n return `Неверная строка: должна заканчиваться на "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `Неверная строка: должна содержать "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `Неверная строка: должна соответствовать шаблону ${_issue.pattern}`;\n return `Неверный ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `Неверное число: должно быть кратным ${issue2.divisor}`;\n case "unrecognized_keys":\n return `Нераспознанн${issue2.keys.length > 1 ? "ые" : "ый"} ключ${issue2.keys.length > 1 ? "и" : ""}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `Неверный ключ в ${issue2.origin}`;\n case "invalid_union":\n return "Неверные входные данные";\n case "invalid_element":\n return `Неверное значение в ${issue2.origin}`;\n default:\n return `Неверные входные данные`;\n }\n };\n};\nfunction ru_default() {\n return {\n localeError: error27()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/sl.js\nvar error28 = () => {\n const Sizable = {\n string: { unit: "znakov", verb: "imeti" },\n file: { unit: "bajtov", verb: "imeti" },\n array: { unit: "elementov", verb: "imeti" },\n set: { unit: "elementov", verb: "imeti" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "število";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "tabela";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "vnos",\n email: "e-poštni naslov",\n url: "URL",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "ISO datum in čas",\n date: "ISO datum",\n time: "ISO čas",\n duration: "ISO trajanje",\n ipv4: "IPv4 naslov",\n ipv6: "IPv6 naslov",\n cidrv4: "obseg IPv4",\n cidrv6: "obseg IPv6",\n base64: "base64 kodiran niz",\n base64url: "base64url kodiran niz",\n json_string: "JSON niz",\n e164: "E.164 številka",\n jwt: "JWT",\n template_literal: "vnos"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Neveljaven vnos: pričakovano ${issue2.expected}, prejeto ${parsedType2(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Neveljaven vnos: pričakovano ${stringifyPrimitive(issue2.values[0])}`;\n return `Neveljavna možnost: pričakovano eno izmed ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `Preveliko: pričakovano, da bo ${issue2.origin ?? "vrednost"} imelo ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementov"}`;\n return `Preveliko: pričakovano, da bo ${issue2.origin ?? "vrednost"} ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Premajhno: pričakovano, da bo ${issue2.origin} imelo ${adj}${issue2.minimum.toString()} ${sizing.unit}`;\n }\n return `Premajhno: pričakovano, da bo ${issue2.origin} ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with") {\n return `Neveljaven niz: mora se začeti z "${_issue.prefix}"`;\n }\n if (_issue.format === "ends_with")\n return `Neveljaven niz: mora se končati z "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `Neveljaven niz: mora vsebovati "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `Neveljaven niz: mora ustrezati vzorcu ${_issue.pattern}`;\n return `Neveljaven ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `Neveljavno število: mora biti večkratnik ${issue2.divisor}`;\n case "unrecognized_keys":\n return `Neprepoznan${issue2.keys.length > 1 ? "i ključi" : " ključ"}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `Neveljaven ključ v ${issue2.origin}`;\n case "invalid_union":\n return "Neveljaven vnos";\n case "invalid_element":\n return `Neveljavna vrednost v ${issue2.origin}`;\n default:\n return "Neveljaven vnos";\n }\n };\n};\nfunction sl_default() {\n return {\n localeError: error28()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/sv.js\nvar error29 = () => {\n const Sizable = {\n string: { unit: "tecken", verb: "att ha" },\n file: { unit: "bytes", verb: "att ha" },\n array: { unit: "objekt", verb: "att innehålla" },\n set: { unit: "objekt", verb: "att innehålla" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "antal";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "lista";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "reguljärt uttryck",\n email: "e-postadress",\n url: "URL",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "ISO-datum och tid",\n date: "ISO-datum",\n time: "ISO-tid",\n duration: "ISO-varaktighet",\n ipv4: "IPv4-intervall",\n ipv6: "IPv6-intervall",\n cidrv4: "IPv4-spektrum",\n cidrv6: "IPv6-spektrum",\n base64: "base64-kodad sträng",\n base64url: "base64url-kodad sträng",\n json_string: "JSON-sträng",\n e164: "E.164-nummer",\n jwt: "JWT",\n template_literal: "mall-literal"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Ogiltig inmatning: förväntat ${issue2.expected}, fick ${parsedType2(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Ogiltig inmatning: förväntat ${stringifyPrimitive(issue2.values[0])}`;\n return `Ogiltigt val: förväntade en av ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `För stor(t): förväntade ${issue2.origin ?? "värdet"} att ha ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "element"}`;\n }\n return `För stor(t): förväntat ${issue2.origin ?? "värdet"} att ha ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `För lite(t): förväntade ${issue2.origin ?? "värdet"} att ha ${adj}${issue2.minimum.toString()} ${sizing.unit}`;\n }\n return `För lite(t): förväntade ${issue2.origin ?? "värdet"} att ha ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with") {\n return `Ogiltig sträng: måste börja med "${_issue.prefix}"`;\n }\n if (_issue.format === "ends_with")\n return `Ogiltig sträng: måste sluta med "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `Ogiltig sträng: måste innehålla "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `Ogiltig sträng: måste matcha mönstret "${_issue.pattern}"`;\n return `Ogiltig(t) ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `Ogiltigt tal: måste vara en multipel av ${issue2.divisor}`;\n case "unrecognized_keys":\n return `${issue2.keys.length > 1 ? "Okända nycklar" : "Okänd nyckel"}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `Ogiltig nyckel i ${issue2.origin ?? "värdet"}`;\n case "invalid_union":\n return "Ogiltig input";\n case "invalid_element":\n return `Ogiltigt värde i ${issue2.origin ?? "värdet"}`;\n default:\n return `Ogiltig input`;\n }\n };\n};\nfunction sv_default() {\n return {\n localeError: error29()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/ta.js\nvar error30 = () => {\n const Sizable = {\n string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" },\n file: { unit: "பைட்டுகள்", verb: "கொண்டிருக்க வேண்டும்" },\n array: { unit: "உறுப்புகள்", verb: "கொண்டிருக்க வேண்டும்" },\n set: { unit: "உறுப்புகள்", verb: "கொண்டிருக்க வேண்டும்" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "எண் அல்லாதது" : "எண்";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "அணி";\n }\n if (data === null) {\n return "வெறுமை";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "உள்ளீடு",\n email: "மின்னஞ்சல் முகவரி",\n url: "URL",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "ISO தேதி நேரம்",\n date: "ISO தேதி",\n time: "ISO நேரம்",\n duration: "ISO கால அளவு",\n ipv4: "IPv4 முகவரி",\n ipv6: "IPv6 முகவரி",\n cidrv4: "IPv4 வரம்பு",\n cidrv6: "IPv6 வரம்பு",\n base64: "base64-encoded சரம்",\n base64url: "base64url-encoded சரம்",\n json_string: "JSON சரம்",\n e164: "E.164 எண்",\n jwt: "JWT",\n template_literal: "input"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${issue2.expected}, பெறப்பட்டது ${parsedType2(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${stringifyPrimitive(issue2.values[0])}`;\n return `தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${joinValues(issue2.values, "|")} இல் ஒன்று`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `மிக பெரியது: எதிர்பார்க்கப்பட்டது ${issue2.origin ?? "மதிப்பு"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "உறுப்புகள்"} ஆக இருக்க வேண்டும்`;\n }\n return `மிக பெரியது: எதிர்பார்க்கப்பட்டது ${issue2.origin ?? "மதிப்பு"} ${adj}${issue2.maximum.toString()} ஆக இருக்க வேண்டும்`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} ஆக இருக்க வேண்டும்`;\n }\n return `மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${issue2.origin} ${adj}${issue2.minimum.toString()} ஆக இருக்க வேண்டும்`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `தவறான சரம்: "${_issue.prefix}" இல் தொடங்க வேண்டும்`;\n if (_issue.format === "ends_with")\n return `தவறான சரம்: "${_issue.suffix}" இல் முடிவடைய வேண்டும்`;\n if (_issue.format === "includes")\n return `தவறான சரம்: "${_issue.includes}" ஐ உள்ளடக்க வேண்டும்`;\n if (_issue.format === "regex")\n return `தவறான சரம்: ${_issue.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;\n return `தவறான ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `தவறான எண்: ${issue2.divisor} இன் பலமாக இருக்க வேண்டும்`;\n case "unrecognized_keys":\n return `அடையாளம் தெரியாத விசை${issue2.keys.length > 1 ? "கள்" : ""}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `${issue2.origin} இல் தவறான விசை`;\n case "invalid_union":\n return "தவறான உள்ளீடு";\n case "invalid_element":\n return `${issue2.origin} இல் தவறான மதிப்பு`;\n default:\n return `தவறான உள்ளீடு`;\n }\n };\n};\nfunction ta_default() {\n return {\n localeError: error30()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/th.js\nvar error31 = () => {\n const Sizable = {\n string: { unit: "ตัวอักษร", verb: "ควรมี" },\n file: { unit: "ไบต์", verb: "ควรมี" },\n array: { unit: "รายการ", verb: "ควรมี" },\n set: { unit: "รายการ", verb: "ควรมี" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "ไม่ใช่ตัวเลข (NaN)" : "ตัวเลข";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "อาร์เรย์ (Array)";\n }\n if (data === null) {\n return "ไม่มีค่า (null)";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "ข้อมูลที่ป้อน",\n email: "ที่อยู่อีเมล",\n url: "URL",\n emoji: "อิโมจิ",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "วันที่เวลาแบบ ISO",\n date: "วันที่แบบ ISO",\n time: "เวลาแบบ ISO",\n duration: "ช่วงเวลาแบบ ISO",\n ipv4: "ที่อยู่ IPv4",\n ipv6: "ที่อยู่ IPv6",\n cidrv4: "ช่วง IP แบบ IPv4",\n cidrv6: "ช่วง IP แบบ IPv6",\n base64: "ข้อความแบบ Base64",\n base64url: "ข้อความแบบ Base64 สำหรับ URL",\n json_string: "ข้อความแบบ JSON",\n e164: "เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",\n jwt: "โทเคน JWT",\n template_literal: "ข้อมูลที่ป้อน"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${issue2.expected} แต่ได้รับ ${parsedType2(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `ค่าไม่ถูกต้อง: ควรเป็น ${stringifyPrimitive(issue2.values[0])}`;\n return `ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "ไม่เกิน" : "น้อยกว่า";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `เกินกำหนด: ${issue2.origin ?? "ค่า"} ควรมี${adj} ${issue2.maximum.toString()} ${sizing.unit ?? "รายการ"}`;\n return `เกินกำหนด: ${issue2.origin ?? "ค่า"} ควรมี${adj} ${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? "อย่างน้อย" : "มากกว่า";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `น้อยกว่ากำหนด: ${issue2.origin} ควรมี${adj} ${issue2.minimum.toString()} ${sizing.unit}`;\n }\n return `น้อยกว่ากำหนด: ${issue2.origin} ควรมี${adj} ${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with") {\n return `รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${_issue.prefix}"`;\n }\n if (_issue.format === "ends_with")\n return `รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${_issue.includes}" อยู่ในข้อความ`;\n if (_issue.format === "regex")\n return `รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${_issue.pattern}`;\n return `รูปแบบไม่ถูกต้อง: ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${issue2.divisor} ได้ลงตัว`;\n case "unrecognized_keys":\n return `พบคีย์ที่ไม่รู้จัก: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `คีย์ไม่ถูกต้องใน ${issue2.origin}`;\n case "invalid_union":\n return "ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";\n case "invalid_element":\n return `ข้อมูลไม่ถูกต้องใน ${issue2.origin}`;\n default:\n return `ข้อมูลไม่ถูกต้อง`;\n }\n };\n};\nfunction th_default() {\n return {\n localeError: error31()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/tr.js\nvar parsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "number";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "array";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n};\nvar error32 = () => {\n const Sizable = {\n string: { unit: "karakter", verb: "olmalı" },\n file: { unit: "bayt", verb: "olmalı" },\n array: { unit: "öğe", verb: "olmalı" },\n set: { unit: "öğe", verb: "olmalı" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const Nouns = {\n regex: "girdi",\n email: "e-posta adresi",\n url: "URL",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "ISO tarih ve saat",\n date: "ISO tarih",\n time: "ISO saat",\n duration: "ISO süre",\n ipv4: "IPv4 adresi",\n ipv6: "IPv6 adresi",\n cidrv4: "IPv4 aralığı",\n cidrv6: "IPv6 aralığı",\n base64: "base64 ile şifrelenmiş metin",\n base64url: "base64url ile şifrelenmiş metin",\n json_string: "JSON dizesi",\n e164: "E.164 sayısı",\n jwt: "JWT",\n template_literal: "Şablon dizesi"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Geçersiz değer: beklenen ${issue2.expected}, alınan ${parsedType2(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Geçersiz değer: beklenen ${stringifyPrimitive(issue2.values[0])}`;\n return `Geçersiz seçenek: aşağıdakilerden biri olmalı: ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `Çok büyük: beklenen ${issue2.origin ?? "değer"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "öğe"}`;\n return `Çok büyük: beklenen ${issue2.origin ?? "değer"} ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `Çok küçük: beklenen ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;\n return `Çok küçük: beklenen ${issue2.origin} ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `Geçersiz metin: "${_issue.prefix}" ile başlamalı`;\n if (_issue.format === "ends_with")\n return `Geçersiz metin: "${_issue.suffix}" ile bitmeli`;\n if (_issue.format === "includes")\n return `Geçersiz metin: "${_issue.includes}" içermeli`;\n if (_issue.format === "regex")\n return `Geçersiz metin: ${_issue.pattern} desenine uymalı`;\n return `Geçersiz ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `Geçersiz sayı: ${issue2.divisor} ile tam bölünebilmeli`;\n case "unrecognized_keys":\n return `Tanınmayan anahtar${issue2.keys.length > 1 ? "lar" : ""}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `${issue2.origin} içinde geçersiz anahtar`;\n case "invalid_union":\n return "Geçersiz değer";\n case "invalid_element":\n return `${issue2.origin} içinde geçersiz değer`;\n default:\n return `Geçersiz değer`;\n }\n };\n};\nfunction tr_default() {\n return {\n localeError: error32()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/ua.js\nvar error33 = () => {\n const Sizable = {\n string: { unit: "символів", verb: "матиме" },\n file: { unit: "байтів", verb: "матиме" },\n array: { unit: "елементів", verb: "матиме" },\n set: { unit: "елементів", verb: "матиме" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType3 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "число";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "масив";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "вхідні дані",\n email: "адреса електронної пошти",\n url: "URL",\n emoji: "емодзі",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "дата та час ISO",\n date: "дата ISO",\n time: "час ISO",\n duration: "тривалість ISO",\n ipv4: "адреса IPv4",\n ipv6: "адреса IPv6",\n cidrv4: "діапазон IPv4",\n cidrv6: "діапазон IPv6",\n base64: "рядок у кодуванні base64",\n base64url: "рядок у кодуванні base64url",\n json_string: "рядок JSON",\n e164: "номер E.164",\n jwt: "JWT",\n template_literal: "вхідні дані"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Неправильні вхідні дані: очікується ${issue2.expected}, отримано ${parsedType3(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Неправильні вхідні дані: очікується ${stringifyPrimitive(issue2.values[0])}`;\n return `Неправильна опція: очікується одне з ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `Занадто велике: очікується, що ${issue2.origin ?? "значення"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "елементів"}`;\n return `Занадто велике: очікується, що ${issue2.origin ?? "значення"} буде ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Занадто мале: очікується, що ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;\n }\n return `Занадто мале: очікується, що ${issue2.origin} буде ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `Неправильний рядок: повинен починатися з "${_issue.prefix}"`;\n if (_issue.format === "ends_with")\n return `Неправильний рядок: повинен закінчуватися на "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `Неправильний рядок: повинен містити "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `Неправильний рядок: повинен відповідати шаблону ${_issue.pattern}`;\n return `Неправильний ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `Неправильне число: повинно бути кратним ${issue2.divisor}`;\n case "unrecognized_keys":\n return `Нерозпізнаний ключ${issue2.keys.length > 1 ? "і" : ""}: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `Неправильний ключ у ${issue2.origin}`;\n case "invalid_union":\n return "Неправильні вхідні дані";\n case "invalid_element":\n return `Неправильне значення у ${issue2.origin}`;\n default:\n return `Неправильні вхідні дані`;\n }\n };\n};\nfunction ua_default() {\n return {\n localeError: error33()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/ur.js\nvar error34 = () => {\n const Sizable = {\n string: { unit: "حروف", verb: "ہونا" },\n file: { unit: "بائٹس", verb: "ہونا" },\n array: { unit: "آئٹمز", verb: "ہونا" },\n set: { unit: "آئٹمز", verb: "ہونا" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType3 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "نمبر";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "آرے";\n }\n if (data === null) {\n return "نل";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "ان پٹ",\n email: "ای میل ایڈریس",\n url: "یو آر ایل",\n emoji: "ایموجی",\n uuid: "یو یو آئی ڈی",\n uuidv4: "یو یو آئی ڈی وی 4",\n uuidv6: "یو یو آئی ڈی وی 6",\n nanoid: "نینو آئی ڈی",\n guid: "جی یو آئی ڈی",\n cuid: "سی یو آئی ڈی",\n cuid2: "سی یو آئی ڈی 2",\n ulid: "یو ایل آئی ڈی",\n xid: "ایکس آئی ڈی",\n ksuid: "کے ایس یو آئی ڈی",\n datetime: "آئی ایس او ڈیٹ ٹائم",\n date: "آئی ایس او تاریخ",\n time: "آئی ایس او وقت",\n duration: "آئی ایس او مدت",\n ipv4: "آئی پی وی 4 ایڈریس",\n ipv6: "آئی پی وی 6 ایڈریس",\n cidrv4: "آئی پی وی 4 رینج",\n cidrv6: "آئی پی وی 6 رینج",\n base64: "بیس 64 ان کوڈڈ سٹرنگ",\n base64url: "بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",\n json_string: "جے ایس او این سٹرنگ",\n e164: "ای 164 نمبر",\n jwt: "جے ڈبلیو ٹی",\n template_literal: "ان پٹ"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `غلط ان پٹ: ${issue2.expected} متوقع تھا، ${parsedType3(issue2.input)} موصول ہوا`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `غلط ان پٹ: ${stringifyPrimitive(issue2.values[0])} متوقع تھا`;\n return `غلط آپشن: ${joinValues(issue2.values, "|")} میں سے ایک متوقع تھا`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `بہت بڑا: ${issue2.origin ?? "ویلیو"} کے ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "عناصر"} ہونے متوقع تھے`;\n return `بہت بڑا: ${issue2.origin ?? "ویلیو"} کا ${adj}${issue2.maximum.toString()} ہونا متوقع تھا`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `بہت چھوٹا: ${issue2.origin} کے ${adj}${issue2.minimum.toString()} ${sizing.unit} ہونے متوقع تھے`;\n }\n return `بہت چھوٹا: ${issue2.origin} کا ${adj}${issue2.minimum.toString()} ہونا متوقع تھا`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with") {\n return `غلط سٹرنگ: "${_issue.prefix}" سے شروع ہونا چاہیے`;\n }\n if (_issue.format === "ends_with")\n return `غلط سٹرنگ: "${_issue.suffix}" پر ختم ہونا چاہیے`;\n if (_issue.format === "includes")\n return `غلط سٹرنگ: "${_issue.includes}" شامل ہونا چاہیے`;\n if (_issue.format === "regex")\n return `غلط سٹرنگ: پیٹرن ${_issue.pattern} سے میچ ہونا چاہیے`;\n return `غلط ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `غلط نمبر: ${issue2.divisor} کا مضاعف ہونا چاہیے`;\n case "unrecognized_keys":\n return `غیر تسلیم شدہ کی${issue2.keys.length > 1 ? "ز" : ""}: ${joinValues(issue2.keys, "، ")}`;\n case "invalid_key":\n return `${issue2.origin} میں غلط کی`;\n case "invalid_union":\n return "غلط ان پٹ";\n case "invalid_element":\n return `${issue2.origin} میں غلط ویلیو`;\n default:\n return `غلط ان پٹ`;\n }\n };\n};\nfunction ur_default() {\n return {\n localeError: error34()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/vi.js\nvar error35 = () => {\n const Sizable = {\n string: { unit: "ký tự", verb: "có" },\n file: { unit: "byte", verb: "có" },\n array: { unit: "phần tử", verb: "có" },\n set: { unit: "phần tử", verb: "có" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType3 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "số";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "mảng";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "đầu vào",\n email: "địa chỉ email",\n url: "URL",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "ngày giờ ISO",\n date: "ngày ISO",\n time: "giờ ISO",\n duration: "khoảng thời gian ISO",\n ipv4: "địa chỉ IPv4",\n ipv6: "địa chỉ IPv6",\n cidrv4: "dải IPv4",\n cidrv6: "dải IPv6",\n base64: "chuỗi mã hóa base64",\n base64url: "chuỗi mã hóa base64url",\n json_string: "chuỗi JSON",\n e164: "số E.164",\n jwt: "JWT",\n template_literal: "đầu vào"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `Đầu vào không hợp lệ: mong đợi ${issue2.expected}, nhận được ${parsedType3(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `Đầu vào không hợp lệ: mong đợi ${stringifyPrimitive(issue2.values[0])}`;\n return `Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `Quá lớn: mong đợi ${issue2.origin ?? "giá trị"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "phần tử"}`;\n return `Quá lớn: mong đợi ${issue2.origin ?? "giá trị"} ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `Quá nhỏ: mong đợi ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;\n }\n return `Quá nhỏ: mong đợi ${issue2.origin} ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `Chuỗi không hợp lệ: phải bắt đầu bằng "${_issue.prefix}"`;\n if (_issue.format === "ends_with")\n return `Chuỗi không hợp lệ: phải kết thúc bằng "${_issue.suffix}"`;\n if (_issue.format === "includes")\n return `Chuỗi không hợp lệ: phải bao gồm "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `Chuỗi không hợp lệ: phải khớp với mẫu ${_issue.pattern}`;\n return `${Nouns[_issue.format] ?? issue2.format} không hợp lệ`;\n }\n case "not_multiple_of":\n return `Số không hợp lệ: phải là bội số của ${issue2.divisor}`;\n case "unrecognized_keys":\n return `Khóa không được nhận dạng: ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `Khóa không hợp lệ trong ${issue2.origin}`;\n case "invalid_union":\n return "Đầu vào không hợp lệ";\n case "invalid_element":\n return `Giá trị không hợp lệ trong ${issue2.origin}`;\n default:\n return `Đầu vào không hợp lệ`;\n }\n };\n};\nfunction vi_default() {\n return {\n localeError: error35()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/zh-CN.js\nvar error36 = () => {\n const Sizable = {\n string: { unit: "字符", verb: "包含" },\n file: { unit: "字节", verb: "包含" },\n array: { unit: "项", verb: "包含" },\n set: { unit: "项", verb: "包含" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType3 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "非数字(NaN)" : "数字";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "数组";\n }\n if (data === null) {\n return "空值(null)";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "输入",\n email: "电子邮件",\n url: "URL",\n emoji: "表情符号",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "ISO日期时间",\n date: "ISO日期",\n time: "ISO时间",\n duration: "ISO时长",\n ipv4: "IPv4地址",\n ipv6: "IPv6地址",\n cidrv4: "IPv4网段",\n cidrv6: "IPv6网段",\n base64: "base64编码字符串",\n base64url: "base64url编码字符串",\n json_string: "JSON字符串",\n e164: "E.164号码",\n jwt: "JWT",\n template_literal: "输入"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `无效输入:期望 ${issue2.expected},实际接收 ${parsedType3(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `无效输入:期望 ${stringifyPrimitive(issue2.values[0])}`;\n return `无效选项:期望以下之一 ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `数值过大:期望 ${issue2.origin ?? "值"} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "个元素"}`;\n return `数值过大:期望 ${issue2.origin ?? "值"} ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `数值过小:期望 ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;\n }\n return `数值过小:期望 ${issue2.origin} ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with")\n return `无效字符串:必须以 "${_issue.prefix}" 开头`;\n if (_issue.format === "ends_with")\n return `无效字符串:必须以 "${_issue.suffix}" 结尾`;\n if (_issue.format === "includes")\n return `无效字符串:必须包含 "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `无效字符串:必须满足正则表达式 ${_issue.pattern}`;\n return `无效${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `无效数字:必须是 ${issue2.divisor} 的倍数`;\n case "unrecognized_keys":\n return `出现未知的键(key): ${joinValues(issue2.keys, ", ")}`;\n case "invalid_key":\n return `${issue2.origin} 中的键(key)无效`;\n case "invalid_union":\n return "无效输入";\n case "invalid_element":\n return `${issue2.origin} 中包含无效值(value)`;\n default:\n return `无效输入`;\n }\n };\n};\nfunction zh_CN_default() {\n return {\n localeError: error36()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/locales/zh-TW.js\nvar error37 = () => {\n const Sizable = {\n string: { unit: "字元", verb: "擁有" },\n file: { unit: "位元組", verb: "擁有" },\n array: { unit: "項目", verb: "擁有" },\n set: { unit: "項目", verb: "擁有" }\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const parsedType3 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "number": {\n return Number.isNaN(data) ? "NaN" : "number";\n }\n case "object": {\n if (Array.isArray(data)) {\n return "array";\n }\n if (data === null) {\n return "null";\n }\n if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {\n return data.constructor.name;\n }\n }\n }\n return t2;\n };\n const Nouns = {\n regex: "輸入",\n email: "郵件地址",\n url: "URL",\n emoji: "emoji",\n uuid: "UUID",\n uuidv4: "UUIDv4",\n uuidv6: "UUIDv6",\n nanoid: "nanoid",\n guid: "GUID",\n cuid: "cuid",\n cuid2: "cuid2",\n ulid: "ULID",\n xid: "XID",\n ksuid: "KSUID",\n datetime: "ISO 日期時間",\n date: "ISO 日期",\n time: "ISO 時間",\n duration: "ISO 期間",\n ipv4: "IPv4 位址",\n ipv6: "IPv6 位址",\n cidrv4: "IPv4 範圍",\n cidrv6: "IPv6 範圍",\n base64: "base64 編碼字串",\n base64url: "base64url 編碼字串",\n json_string: "JSON 字串",\n e164: "E.164 數值",\n jwt: "JWT",\n template_literal: "輸入"\n };\n return (issue2) => {\n switch (issue2.code) {\n case "invalid_type":\n return `無效的輸入值:預期為 ${issue2.expected},但收到 ${parsedType3(issue2.input)}`;\n case "invalid_value":\n if (issue2.values.length === 1)\n return `無效的輸入值:預期為 ${stringifyPrimitive(issue2.values[0])}`;\n return `無效的選項:預期為以下其中之一 ${joinValues(issue2.values, "|")}`;\n case "too_big": {\n const adj = issue2.inclusive ? "<=" : "<";\n const sizing = getSizing(issue2.origin);\n if (sizing)\n return `數值過大:預期 ${issue2.origin ?? "值"} 應為 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "個元素"}`;\n return `數值過大:預期 ${issue2.origin ?? "值"} 應為 ${adj}${issue2.maximum.toString()}`;\n }\n case "too_small": {\n const adj = issue2.inclusive ? ">=" : ">";\n const sizing = getSizing(issue2.origin);\n if (sizing) {\n return `數值過小:預期 ${issue2.origin} 應為 ${adj}${issue2.minimum.toString()} ${sizing.unit}`;\n }\n return `數值過小:預期 ${issue2.origin} 應為 ${adj}${issue2.minimum.toString()}`;\n }\n case "invalid_format": {\n const _issue = issue2;\n if (_issue.format === "starts_with") {\n return `無效的字串:必須以 "${_issue.prefix}" 開頭`;\n }\n if (_issue.format === "ends_with")\n return `無效的字串:必須以 "${_issue.suffix}" 結尾`;\n if (_issue.format === "includes")\n return `無效的字串:必須包含 "${_issue.includes}"`;\n if (_issue.format === "regex")\n return `無效的字串:必須符合格式 ${_issue.pattern}`;\n return `無效的 ${Nouns[_issue.format] ?? issue2.format}`;\n }\n case "not_multiple_of":\n return `無效的數字:必須為 ${issue2.divisor} 的倍數`;\n case "unrecognized_keys":\n return `無法識別的鍵值${issue2.keys.length > 1 ? "們" : ""}:${joinValues(issue2.keys, "、")}`;\n case "invalid_key":\n return `${issue2.origin} 中有無效的鍵值`;\n case "invalid_union":\n return "無效的輸入值";\n case "invalid_element":\n return `${issue2.origin} 中有無效的值`;\n default:\n return `無效的輸入值`;\n }\n };\n};\nfunction zh_TW_default() {\n return {\n localeError: error37()\n };\n}\n// ../../node_modules/zod/dist/esm/v4/core/registries.js\nvar $output = Symbol("ZodOutput");\nvar $input = Symbol("ZodInput");\n\nclass $ZodRegistry {\n constructor() {\n this._map = new WeakMap;\n this._idmap = new Map;\n }\n add(schema, ..._meta) {\n const meta = _meta[0];\n this._map.set(schema, meta);\n if (meta && typeof meta === "object" && "id" in meta) {\n if (this._idmap.has(meta.id)) {\n throw new Error(`ID ${meta.id} already exists in the registry`);\n }\n this._idmap.set(meta.id, schema);\n }\n return this;\n }\n remove(schema) {\n this._map.delete(schema);\n return this;\n }\n get(schema) {\n const p3 = schema._zod.parent;\n if (p3) {\n const pm = { ...this.get(p3) ?? {} };\n delete pm.id;\n return { ...pm, ...this._map.get(schema) };\n }\n return this._map.get(schema);\n }\n has(schema) {\n return this._map.has(schema);\n }\n}\nfunction registry() {\n return new $ZodRegistry;\n}\nvar globalRegistry = /* @__PURE__ */ registry();\n// ../../node_modules/zod/dist/esm/v4/core/api.js\nfunction _string(Class2, params) {\n return new Class2({\n type: "string",\n ...normalizeParams(params)\n });\n}\nfunction _coercedString(Class2, params) {\n return new Class2({\n type: "string",\n coerce: true,\n ...normalizeParams(params)\n });\n}\nfunction _email(Class2, params) {\n return new Class2({\n type: "string",\n format: "email",\n check: "string_format",\n abort: false,\n ...normalizeParams(params)\n });\n}\nfunction _guid(Class2, params) {\n return new Class2({\n type: "string",\n format: "guid",\n check: "string_format",\n abort: false,\n ...normalizeParams(params)\n });\n}\nfunction _uuid(Class2, params) {\n return new Class2({\n type: "string",\n format: "uuid",\n check: "string_format",\n abort: false,\n ...normalizeParams(params)\n });\n}\nfunction _uuidv4(Class2, params) {\n return new Class2({\n type: "string",\n format: "uuid",\n check: "string_format",\n abort: false,\n version: "v4",\n ...normalizeParams(params)\n });\n}\nfunction _uuidv6(Class2, params) {\n return new Class2({\n type: "string",\n format: "uuid",\n check: "string_format",\n abort: false,\n version: "v6",\n ...normalizeParams(params)\n });\n}\nfunction _uuidv7(Class2, params) {\n return new Class2({\n type: "string",\n format: "uuid",\n check: "string_format",\n abort: false,\n version: "v7",\n ...normalizeParams(params)\n });\n}\nfunction _url(Class2, params) {\n return new Class2({\n type: "string",\n format: "url",\n check: "string_format",\n abort: false,\n ...normalizeParams(params)\n });\n}\nfunction _emoji2(Class2, params) {\n return new Class2({\n type: "string",\n format: "emoji",\n check: "string_format",\n abort: false,\n ...normalizeParams(params)\n });\n}\nfunction _nanoid(Class2, params) {\n return new Class2({\n type: "string",\n format: "nanoid",\n check: "string_format",\n abort: false,\n ...normalizeParams(params)\n });\n}\nfunction _cuid(Class2, params) {\n return new Class2({\n type: "string",\n format: "cuid",\n check: "string_format",\n abort: false,\n ...normalizeParams(params)\n });\n}\nfunction _cuid2(Class2, params) {\n return new Class2({\n type: "string",\n format: "cuid2",\n check: "string_format",\n abort: false,\n ...normalizeParams(params)\n });\n}\nfunction _ulid(Class2, params) {\n return new Class2({\n type: "string",\n format: "ulid",\n check: "string_format",\n abort: false,\n ...normalizeParams(params)\n });\n}\nfunction _xid(Class2, params) {\n return new Class2({\n type: "string",\n format: "xid",\n check: "string_format",\n abort: false,\n ...normalizeParams(params)\n });\n}\nfunction _ksuid(Class2, params) {\n return new Class2({\n type: "string",\n format: "ksuid",\n check: "string_format",\n abort: false,\n ...normalizeParams(params)\n });\n}\nfunction _ipv4(Class2, params) {\n return new Class2({\n type: "string",\n format: "ipv4",\n check: "string_format",\n abort: false,\n ...normalizeParams(params)\n });\n}\nfunction _ipv6(Class2, params) {\n return new Class2({\n type: "string",\n format: "ipv6",\n check: "string_format",\n abort: false,\n ...normalizeParams(params)\n });\n}\nfunction _cidrv4(Class2, params) {\n return new Class2({\n type: "string",\n format: "cidrv4",\n check: "string_format",\n abort: false,\n ...normalizeParams(params)\n });\n}\nfunction _cidrv6(Class2, params) {\n return new Class2({\n type: "string",\n format: "cidrv6",\n check: "string_format",\n abort: false,\n ...normalizeParams(params)\n });\n}\nfunction _base64(Class2, params) {\n return new Class2({\n type: "string",\n format: "base64",\n check: "string_format",\n abort: false,\n ...normalizeParams(params)\n });\n}\nfunction _base64url(Class2, params) {\n return new Class2({\n type: "string",\n format: "base64url",\n check: "string_format",\n abort: false,\n ...normalizeParams(params)\n });\n}\nfunction _e164(Class2, params) {\n return new Class2({\n type: "string",\n format: "e164",\n check: "string_format",\n abort: false,\n ...normalizeParams(params)\n });\n}\nfunction _jwt(Class2, params) {\n return new Class2({\n type: "string",\n format: "jwt",\n check: "string_format",\n abort: false,\n ...normalizeParams(params)\n });\n}\nfunction _isoDateTime(Class2, params) {\n return new Class2({\n type: "string",\n format: "datetime",\n check: "string_format",\n offset: false,\n local: false,\n precision: null,\n ...normalizeParams(params)\n });\n}\nfunction _isoDate(Class2, params) {\n return new Class2({\n type: "string",\n format: "date",\n check: "string_format",\n ...normalizeParams(params)\n });\n}\nfunction _isoTime(Class2, params) {\n return new Class2({\n type: "string",\n format: "time",\n check: "string_format",\n precision: null,\n ...normalizeParams(params)\n });\n}\nfunction _isoDuration(Class2, params) {\n return new Class2({\n type: "string",\n format: "duration",\n check: "string_format",\n ...normalizeParams(params)\n });\n}\nfunction _number(Class2, params) {\n return new Class2({\n type: "number",\n checks: [],\n ...normalizeParams(params)\n });\n}\nfunction _coercedNumber(Class2, params) {\n return new Class2({\n type: "number",\n coerce: true,\n checks: [],\n ...normalizeParams(params)\n });\n}\nfunction _int(Class2, params) {\n return new Class2({\n type: "number",\n check: "number_format",\n abort: false,\n format: "safeint",\n ...normalizeParams(params)\n });\n}\nfunction _float32(Class2, params) {\n return new Class2({\n type: "number",\n check: "number_format",\n abort: false,\n format: "float32",\n ...normalizeParams(params)\n });\n}\nfunction _float64(Class2, params) {\n return new Class2({\n type: "number",\n check: "number_format",\n abort: false,\n format: "float64",\n ...normalizeParams(params)\n });\n}\nfunction _int32(Class2, params) {\n return new Class2({\n type: "number",\n check: "number_format",\n abort: false,\n format: "int32",\n ...normalizeParams(params)\n });\n}\nfunction _uint32(Class2, params) {\n return new Class2({\n type: "number",\n check: "number_format",\n abort: false,\n format: "uint32",\n ...normalizeParams(params)\n });\n}\nfunction _boolean(Class2, params) {\n return new Class2({\n type: "boolean",\n ...normalizeParams(params)\n });\n}\nfunction _coercedBoolean(Class2, params) {\n return new Class2({\n type: "boolean",\n coerce: true,\n ...normalizeParams(params)\n });\n}\nfunction _bigint(Class2, params) {\n return new Class2({\n type: "bigint",\n ...normalizeParams(params)\n });\n}\nfunction _coercedBigint(Class2, params) {\n return new Class2({\n type: "bigint",\n coerce: true,\n ...normalizeParams(params)\n });\n}\nfunction _int64(Class2, params) {\n return new Class2({\n type: "bigint",\n check: "bigint_format",\n abort: false,\n format: "int64",\n ...normalizeParams(params)\n });\n}\nfunction _uint64(Class2, params) {\n return new Class2({\n type: "bigint",\n check: "bigint_format",\n abort: false,\n format: "uint64",\n ...normalizeParams(params)\n });\n}\nfunction _symbol(Class2, params) {\n return new Class2({\n type: "symbol",\n ...normalizeParams(params)\n });\n}\nfunction _undefined2(Class2, params) {\n return new Class2({\n type: "undefined",\n ...normalizeParams(params)\n });\n}\nfunction _null2(Class2, params) {\n return new Class2({\n type: "null",\n ...normalizeParams(params)\n });\n}\nfunction _any(Class2) {\n return new Class2({\n type: "any"\n });\n}\nfunction _unknown(Class2) {\n return new Class2({\n type: "unknown"\n });\n}\nfunction _never(Class2, params) {\n return new Class2({\n type: "never",\n ...normalizeParams(params)\n });\n}\nfunction _void(Class2, params) {\n return new Class2({\n type: "void",\n ...normalizeParams(params)\n });\n}\nfunction _date(Class2, params) {\n return new Class2({\n type: "date",\n ...normalizeParams(params)\n });\n}\nfunction _coercedDate(Class2, params) {\n return new Class2({\n type: "date",\n coerce: true,\n ...normalizeParams(params)\n });\n}\nfunction _nan(Class2, params) {\n return new Class2({\n type: "nan",\n ...normalizeParams(params)\n });\n}\nfunction _lt(value, params) {\n return new $ZodCheckLessThan({\n check: "less_than",\n ...normalizeParams(params),\n value,\n inclusive: false\n });\n}\nfunction _lte(value, params) {\n return new $ZodCheckLessThan({\n check: "less_than",\n ...normalizeParams(params),\n value,\n inclusive: true\n });\n}\nfunction _gt(value, params) {\n return new $ZodCheckGreaterThan({\n check: "greater_than",\n ...normalizeParams(params),\n value,\n inclusive: false\n });\n}\nfunction _gte(value, params) {\n return new $ZodCheckGreaterThan({\n check: "greater_than",\n ...normalizeParams(params),\n value,\n inclusive: true\n });\n}\nfunction _positive(params) {\n return _gt(0, params);\n}\nfunction _negative(params) {\n return _lt(0, params);\n}\nfunction _nonpositive(params) {\n return _lte(0, params);\n}\nfunction _nonnegative(params) {\n return _gte(0, params);\n}\nfunction _multipleOf(value, params) {\n return new $ZodCheckMultipleOf({\n check: "multiple_of",\n ...normalizeParams(params),\n value\n });\n}\nfunction _maxSize(maximum, params) {\n return new $ZodCheckMaxSize({\n check: "max_size",\n ...normalizeParams(params),\n maximum\n });\n}\nfunction _minSize(minimum, params) {\n return new $ZodCheckMinSize({\n check: "min_size",\n ...normalizeParams(params),\n minimum\n });\n}\nfunction _size(size, params) {\n return new $ZodCheckSizeEquals({\n check: "size_equals",\n ...normalizeParams(params),\n size\n });\n}\nfunction _maxLength(maximum, params) {\n const ch = new $ZodCheckMaxLength({\n check: "max_length",\n ...normalizeParams(params),\n maximum\n });\n return ch;\n}\nfunction _minLength(minimum, params) {\n return new $ZodCheckMinLength({\n check: "min_length",\n ...normalizeParams(params),\n minimum\n });\n}\nfunction _length(length, params) {\n return new $ZodCheckLengthEquals({\n check: "length_equals",\n ...normalizeParams(params),\n length\n });\n}\nfunction _regex(pattern, params) {\n return new $ZodCheckRegex({\n check: "string_format",\n format: "regex",\n ...normalizeParams(params),\n pattern\n });\n}\nfunction _lowercase(params) {\n return new $ZodCheckLowerCase({\n check: "string_format",\n format: "lowercase",\n ...normalizeParams(params)\n });\n}\nfunction _uppercase(params) {\n return new $ZodCheckUpperCase({\n check: "string_format",\n format: "uppercase",\n ...normalizeParams(params)\n });\n}\nfunction _includes(includes, params) {\n return new $ZodCheckIncludes({\n check: "string_format",\n format: "includes",\n ...normalizeParams(params),\n includes\n });\n}\nfunction _startsWith(prefix, params) {\n return new $ZodCheckStartsWith({\n check: "string_format",\n format: "starts_with",\n ...normalizeParams(params),\n prefix\n });\n}\nfunction _endsWith(suffix, params) {\n return new $ZodCheckEndsWith({\n check: "string_format",\n format: "ends_with",\n ...normalizeParams(params),\n suffix\n });\n}\nfunction _property(property, schema, params) {\n return new $ZodCheckProperty({\n check: "property",\n property,\n schema,\n ...normalizeParams(params)\n });\n}\nfunction _mime(types, params) {\n return new $ZodCheckMimeType({\n check: "mime_type",\n mime: types,\n ...normalizeParams(params)\n });\n}\nfunction _overwrite(tx) {\n return new $ZodCheckOverwrite({\n check: "overwrite",\n tx\n });\n}\nfunction _normalize(form) {\n return _overwrite((input) => input.normalize(form));\n}\nfunction _trim() {\n return _overwrite((input) => input.trim());\n}\nfunction _toLowerCase() {\n return _overwrite((input) => input.toLowerCase());\n}\nfunction _toUpperCase() {\n return _overwrite((input) => input.toUpperCase());\n}\nfunction _array(Class2, element, params) {\n return new Class2({\n type: "array",\n element,\n ...normalizeParams(params)\n });\n}\nfunction _union(Class2, options, params) {\n return new Class2({\n type: "union",\n options,\n ...normalizeParams(params)\n });\n}\nfunction _discriminatedUnion(Class2, discriminator, options, params) {\n return new Class2({\n type: "union",\n options,\n discriminator,\n ...normalizeParams(params)\n });\n}\nfunction _intersection(Class2, left, right) {\n return new Class2({\n type: "intersection",\n left,\n right\n });\n}\nfunction _tuple(Class2, items, _paramsOrRest, _params) {\n const hasRest = _paramsOrRest instanceof $ZodType;\n const params = hasRest ? _params : _paramsOrRest;\n const rest = hasRest ? _paramsOrRest : null;\n return new Class2({\n type: "tuple",\n items,\n rest,\n ...normalizeParams(params)\n });\n}\nfunction _record(Class2, keyType, valueType, params) {\n return new Class2({\n type: "record",\n keyType,\n valueType,\n ...normalizeParams(params)\n });\n}\nfunction _map(Class2, keyType, valueType, params) {\n return new Class2({\n type: "map",\n keyType,\n valueType,\n ...normalizeParams(params)\n });\n}\nfunction _set(Class2, valueType, params) {\n return new Class2({\n type: "set",\n valueType,\n ...normalizeParams(params)\n });\n}\nfunction _enum(Class2, values, params) {\n const entries = Array.isArray(values) ? Object.fromEntries(values.map((v3) => [v3, v3])) : values;\n return new Class2({\n type: "enum",\n entries,\n ...normalizeParams(params)\n });\n}\nfunction _nativeEnum(Class2, entries, params) {\n return new Class2({\n type: "enum",\n entries,\n ...normalizeParams(params)\n });\n}\nfunction _literal(Class2, value, params) {\n return new Class2({\n type: "literal",\n values: Array.isArray(value) ? value : [value],\n ...normalizeParams(params)\n });\n}\nfunction _file(Class2, params) {\n return new Class2({\n type: "file",\n ...normalizeParams(params)\n });\n}\nfunction _transform(Class2, fn) {\n return new Class2({\n type: "transform",\n transform: fn\n });\n}\nfunction _optional(Class2, innerType) {\n return new Class2({\n type: "optional",\n innerType\n });\n}\nfunction _nullable(Class2, innerType) {\n return new Class2({\n type: "nullable",\n innerType\n });\n}\nfunction _default(Class2, innerType, defaultValue) {\n return new Class2({\n type: "default",\n innerType,\n get defaultValue() {\n return typeof defaultValue === "function" ? defaultValue() : defaultValue;\n }\n });\n}\nfunction _nonoptional(Class2, innerType, params) {\n return new Class2({\n type: "nonoptional",\n innerType,\n ...normalizeParams(params)\n });\n}\nfunction _success(Class2, innerType) {\n return new Class2({\n type: "success",\n innerType\n });\n}\nfunction _catch(Class2, innerType, catchValue) {\n return new Class2({\n type: "catch",\n innerType,\n catchValue: typeof catchValue === "function" ? catchValue : () => catchValue\n });\n}\nfunction _pipe(Class2, in_, out) {\n return new Class2({\n type: "pipe",\n in: in_,\n out\n });\n}\nfunction _readonly(Class2, innerType) {\n return new Class2({\n type: "readonly",\n innerType\n });\n}\nfunction _templateLiteral(Class2, parts, params) {\n return new Class2({\n type: "template_literal",\n parts,\n ...normalizeParams(params)\n });\n}\nfunction _lazy(Class2, getter) {\n return new Class2({\n type: "lazy",\n getter\n });\n}\nfunction _promise(Class2, innerType) {\n return new Class2({\n type: "promise",\n innerType\n });\n}\nfunction _custom(Class2, fn, _params) {\n const norm = normalizeParams(_params);\n norm.abort ?? (norm.abort = true);\n const schema = new Class2({\n type: "custom",\n check: "custom",\n fn,\n ...norm\n });\n return schema;\n}\nfunction _refine(Class2, fn, _params) {\n const schema = new Class2({\n type: "custom",\n check: "custom",\n fn,\n ...normalizeParams(_params)\n });\n return schema;\n}\nfunction _stringbool(Classes, _params) {\n const { case: _case, error: error38, truthy, falsy } = normalizeParams(_params);\n const trueValues = new Set(truthy ?? ["true", "1", "yes", "on", "y", "enabled"]);\n const falseValues = new Set(falsy ?? ["false", "0", "no", "off", "n", "disabled"]);\n const _Pipe = Classes.Pipe ?? $ZodPipe;\n const _Boolean = Classes.Boolean ?? $ZodBoolean;\n const _Unknown = Classes.Unknown ?? $ZodUnknown;\n const inst = new _Unknown({\n type: "unknown",\n checks: [\n {\n _zod: {\n check: (ctx) => {\n if (typeof ctx.value === "string") {\n let data = ctx.value;\n if (_case !== "sensitive")\n data = data.toLowerCase();\n if (trueValues.has(data)) {\n ctx.value = true;\n } else if (falseValues.has(data)) {\n ctx.value = false;\n } else {\n ctx.issues.push({\n code: "invalid_value",\n expected: "stringbool",\n values: [...trueValues, ...falseValues],\n input: ctx.value,\n inst\n });\n }\n } else {\n ctx.issues.push({\n code: "invalid_type",\n expected: "string",\n input: ctx.value\n });\n }\n },\n def: {\n check: "custom"\n },\n onattach: []\n }\n }\n ],\n error: error38\n });\n return new _Pipe({\n type: "pipe",\n in: inst,\n out: new _Boolean({\n type: "boolean",\n error: error38\n }),\n error: error38\n });\n}\n\n// ../../node_modules/zod/dist/esm/v4/core/function.js\nclass $ZodFunction {\n constructor(def) {\n this._def = def;\n this.def = def;\n }\n implement(func) {\n if (typeof func !== "function") {\n throw new Error("implement() must be called with a function");\n }\n const impl = (...args) => {\n const parsedArgs = this._def.input ? parse(this._def.input, args, undefined, { callee: impl }) : args;\n if (!Array.isArray(parsedArgs)) {\n throw new Error("Invalid arguments schema: not an array or tuple schema.");\n }\n const output = func(...parsedArgs);\n return this._def.output ? parse(this._def.output, output, undefined, { callee: impl }) : output;\n };\n return impl;\n }\n implementAsync(func) {\n if (typeof func !== "function") {\n throw new Error("implement() must be called with a function");\n }\n const impl = async (...args) => {\n const parsedArgs = this._def.input ? await parseAsync(this._def.input, args, undefined, { callee: impl }) : args;\n if (!Array.isArray(parsedArgs)) {\n throw new Error("Invalid arguments schema: not an array or tuple schema.");\n }\n const output = await func(...parsedArgs);\n return this._def.output ? parseAsync(this._def.output, output, undefined, { callee: impl }) : output;\n };\n return impl;\n }\n input(...args) {\n const F2 = this.constructor;\n if (Array.isArray(args[0])) {\n return new F2({\n type: "function",\n input: new $ZodTuple({\n type: "tuple",\n items: args[0],\n rest: args[1]\n }),\n output: this._def.output\n });\n }\n return new F2({\n type: "function",\n input: args[0],\n output: this._def.output\n });\n }\n output(output) {\n const F2 = this.constructor;\n return new F2({\n type: "function",\n input: this._def.input,\n output\n });\n }\n}\nfunction _function(params) {\n return new $ZodFunction({\n type: "function",\n input: Array.isArray(params?.input) ? _tuple($ZodTuple, params?.input) : params?.input ?? _array($ZodArray, _unknown($ZodUnknown)),\n output: params?.output ?? _unknown($ZodUnknown)\n });\n}\n// ../../node_modules/zod/dist/esm/v4/core/to-json-schema.js\nclass JSONSchemaGenerator {\n constructor(params) {\n this.counter = 0;\n this.metadataRegistry = params?.metadata ?? globalRegistry;\n this.target = params?.target ?? "draft-2020-12";\n this.unrepresentable = params?.unrepresentable ?? "throw";\n this.override = params?.override ?? (() => {});\n this.io = params?.io ?? "output";\n this.seen = new Map;\n }\n process(schema, _params = { path: [], schemaPath: [] }) {\n var _a15;\n const def = schema._zod.def;\n const formatMap = {\n guid: "uuid",\n url: "uri",\n datetime: "date-time",\n json_string: "json-string",\n regex: ""\n };\n const seen = this.seen.get(schema);\n if (seen) {\n seen.count++;\n const isCycle = _params.schemaPath.includes(schema);\n if (isCycle) {\n seen.cycle = _params.path;\n }\n return seen.schema;\n }\n const result = { schema: {}, count: 1, cycle: undefined };\n this.seen.set(schema, result);\n if (schema._zod.toJSONSchema) {\n result.schema = schema._zod.toJSONSchema();\n }\n const params = {\n ..._params,\n schemaPath: [..._params.schemaPath, schema],\n path: _params.path\n };\n const parent = schema._zod.parent;\n if (parent) {\n result.ref = parent;\n this.process(parent, params);\n this.seen.get(parent).isParent = true;\n } else {\n const _json = result.schema;\n switch (def.type) {\n case "string": {\n const json = _json;\n json.type = "string";\n const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag;\n if (typeof minimum === "number")\n json.minLength = minimum;\n if (typeof maximum === "number")\n json.maxLength = maximum;\n if (format) {\n json.format = formatMap[format] ?? format;\n if (json.format === "")\n delete json.format;\n }\n if (contentEncoding)\n json.contentEncoding = contentEncoding;\n if (patterns && patterns.size > 0) {\n const regexes = [...patterns];\n if (regexes.length === 1)\n json.pattern = regexes[0].source;\n else if (regexes.length > 1) {\n result.schema.allOf = [\n ...regexes.map((regex) => ({\n ...this.target === "draft-7" ? { type: "string" } : {},\n pattern: regex.source\n }))\n ];\n }\n }\n break;\n }\n case "number": {\n const json = _json;\n const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;\n if (typeof format === "string" && format.includes("int"))\n json.type = "integer";\n else\n json.type = "number";\n if (typeof exclusiveMinimum === "number")\n json.exclusiveMinimum = exclusiveMinimum;\n if (typeof minimum === "number") {\n json.minimum = minimum;\n if (typeof exclusiveMinimum === "number") {\n if (exclusiveMinimum >= minimum)\n delete json.minimum;\n else\n delete json.exclusiveMinimum;\n }\n }\n if (typeof exclusiveMaximum === "number")\n json.exclusiveMaximum = exclusiveMaximum;\n if (typeof maximum === "number") {\n json.maximum = maximum;\n if (typeof exclusiveMaximum === "number") {\n if (exclusiveMaximum <= maximum)\n delete json.maximum;\n else\n delete json.exclusiveMaximum;\n }\n }\n if (typeof multipleOf === "number")\n json.multipleOf = multipleOf;\n break;\n }\n case "boolean": {\n const json = _json;\n json.type = "boolean";\n break;\n }\n case "bigint": {\n if (this.unrepresentable === "throw") {\n throw new Error("BigInt cannot be represented in JSON Schema");\n }\n break;\n }\n case "symbol": {\n if (this.unrepresentable === "throw") {\n throw new Error("Symbols cannot be represented in JSON Schema");\n }\n break;\n }\n case "undefined": {\n const json = _json;\n json.type = "null";\n break;\n }\n case "null": {\n _json.type = "null";\n break;\n }\n case "any": {\n break;\n }\n case "unknown": {\n break;\n }\n case "never": {\n _json.not = {};\n break;\n }\n case "void": {\n if (this.unrepresentable === "throw") {\n throw new Error("Void cannot be represented in JSON Schema");\n }\n break;\n }\n case "date": {\n if (this.unrepresentable === "throw") {\n throw new Error("Date cannot be represented in JSON Schema");\n }\n break;\n }\n case "array": {\n const json = _json;\n const { minimum, maximum } = schema._zod.bag;\n if (typeof minimum === "number")\n json.minItems = minimum;\n if (typeof maximum === "number")\n json.maxItems = maximum;\n json.type = "array";\n json.items = this.process(def.element, { ...params, path: [...params.path, "items"] });\n break;\n }\n case "object": {\n const json = _json;\n json.type = "object";\n json.properties = {};\n const shape = def.shape;\n for (const key in shape) {\n json.properties[key] = this.process(shape[key], {\n ...params,\n path: [...params.path, "properties", key]\n });\n }\n const allKeys = new Set(Object.keys(shape));\n const requiredKeys = new Set([...allKeys].filter((key) => {\n const v3 = def.shape[key]._zod;\n if (this.io === "input") {\n return v3.optin === undefined;\n } else {\n return v3.optout === undefined;\n }\n }));\n if (requiredKeys.size > 0) {\n json.required = Array.from(requiredKeys);\n }\n if (def.catchall?._zod.def.type === "never") {\n json.additionalProperties = false;\n } else if (!def.catchall) {\n if (this.io === "output")\n json.additionalProperties = false;\n } else if (def.catchall) {\n json.additionalProperties = this.process(def.catchall, {\n ...params,\n path: [...params.path, "additionalProperties"]\n });\n }\n break;\n }\n case "union": {\n const json = _json;\n json.anyOf = def.options.map((x2, i2) => this.process(x2, {\n ...params,\n path: [...params.path, "anyOf", i2]\n }));\n break;\n }\n case "intersection": {\n const json = _json;\n const a2 = this.process(def.left, {\n ...params,\n path: [...params.path, "allOf", 0]\n });\n const b2 = this.process(def.right, {\n ...params,\n path: [...params.path, "allOf", 1]\n });\n const isSimpleIntersection = (val) => ("allOf" in val) && Object.keys(val).length === 1;\n const allOf = [\n ...isSimpleIntersection(a2) ? a2.allOf : [a2],\n ...isSimpleIntersection(b2) ? b2.allOf : [b2]\n ];\n json.allOf = allOf;\n break;\n }\n case "tuple": {\n const json = _json;\n json.type = "array";\n const prefixItems = def.items.map((x2, i2) => this.process(x2, { ...params, path: [...params.path, "prefixItems", i2] }));\n if (this.target === "draft-2020-12") {\n json.prefixItems = prefixItems;\n } else {\n json.items = prefixItems;\n }\n if (def.rest) {\n const rest = this.process(def.rest, {\n ...params,\n path: [...params.path, "items"]\n });\n if (this.target === "draft-2020-12") {\n json.items = rest;\n } else {\n json.additionalItems = rest;\n }\n }\n if (def.rest) {\n json.items = this.process(def.rest, {\n ...params,\n path: [...params.path, "items"]\n });\n }\n const { minimum, maximum } = schema._zod.bag;\n if (typeof minimum === "number")\n json.minItems = minimum;\n if (typeof maximum === "number")\n json.maxItems = maximum;\n break;\n }\n case "record": {\n const json = _json;\n json.type = "object";\n json.propertyNames = this.process(def.keyType, { ...params, path: [...params.path, "propertyNames"] });\n json.additionalProperties = this.process(def.valueType, {\n ...params,\n path: [...params.path, "additionalProperties"]\n });\n break;\n }\n case "map": {\n if (this.unrepresentable === "throw") {\n throw new Error("Map cannot be represented in JSON Schema");\n }\n break;\n }\n case "set": {\n if (this.unrepresentable === "throw") {\n throw new Error("Set cannot be represented in JSON Schema");\n }\n break;\n }\n case "enum": {\n const json = _json;\n const values = getEnumValues(def.entries);\n if (values.every((v3) => typeof v3 === "number"))\n json.type = "number";\n if (values.every((v3) => typeof v3 === "string"))\n json.type = "string";\n json.enum = values;\n break;\n }\n case "literal": {\n const json = _json;\n const vals = [];\n for (const val of def.values) {\n if (val === undefined) {\n if (this.unrepresentable === "throw") {\n throw new Error("Literal `undefined` cannot be represented in JSON Schema");\n } else {}\n } else if (typeof val === "bigint") {\n if (this.unrepresentable === "throw") {\n throw new Error("BigInt literals cannot be represented in JSON Schema");\n } else {\n vals.push(Number(val));\n }\n } else {\n vals.push(val);\n }\n }\n if (vals.length === 0) {} else if (vals.length === 1) {\n const val = vals[0];\n json.type = val === null ? "null" : typeof val;\n json.const = val;\n } else {\n if (vals.every((v3) => typeof v3 === "number"))\n json.type = "number";\n if (vals.every((v3) => typeof v3 === "string"))\n json.type = "string";\n if (vals.every((v3) => typeof v3 === "boolean"))\n json.type = "string";\n if (vals.every((v3) => v3 === null))\n json.type = "null";\n json.enum = vals;\n }\n break;\n }\n case "file": {\n const json = _json;\n const file = {\n type: "string",\n format: "binary",\n contentEncoding: "binary"\n };\n const { minimum, maximum, mime } = schema._zod.bag;\n if (minimum !== undefined)\n file.minLength = minimum;\n if (maximum !== undefined)\n file.maxLength = maximum;\n if (mime) {\n if (mime.length === 1) {\n file.contentMediaType = mime[0];\n Object.assign(json, file);\n } else {\n json.anyOf = mime.map((m3) => {\n const mFile = { ...file, contentMediaType: m3 };\n return mFile;\n });\n }\n } else {\n Object.assign(json, file);\n }\n break;\n }\n case "transform": {\n if (this.unrepresentable === "throw") {\n throw new Error("Transforms cannot be represented in JSON Schema");\n }\n break;\n }\n case "nullable": {\n const inner = this.process(def.innerType, params);\n _json.anyOf = [inner, { type: "null" }];\n break;\n }\n case "nonoptional": {\n this.process(def.innerType, params);\n result.ref = def.innerType;\n break;\n }\n case "success": {\n const json = _json;\n json.type = "boolean";\n break;\n }\n case "default": {\n this.process(def.innerType, params);\n result.ref = def.innerType;\n _json.default = def.defaultValue;\n break;\n }\n case "prefault": {\n this.process(def.innerType, params);\n result.ref = def.innerType;\n if (this.io === "input")\n _json._prefault = def.defaultValue;\n break;\n }\n case "catch": {\n this.process(def.innerType, params);\n result.ref = def.innerType;\n let catchValue;\n try {\n catchValue = def.catchValue(undefined);\n } catch {\n throw new Error("Dynamic catch values are not supported in JSON Schema");\n }\n _json.default = catchValue;\n break;\n }\n case "nan": {\n if (this.unrepresentable === "throw") {\n throw new Error("NaN cannot be represented in JSON Schema");\n }\n break;\n }\n case "template_literal": {\n const json = _json;\n const pattern = schema._zod.pattern;\n if (!pattern)\n throw new Error("Pattern not found in template literal");\n json.type = "string";\n json.pattern = pattern.source;\n break;\n }\n case "pipe": {\n const innerType = this.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;\n this.process(innerType, params);\n result.ref = innerType;\n break;\n }\n case "readonly": {\n this.process(def.innerType, params);\n result.ref = def.innerType;\n _json.readOnly = true;\n break;\n }\n case "promise": {\n this.process(def.innerType, params);\n result.ref = def.innerType;\n break;\n }\n case "optional": {\n this.process(def.innerType, params);\n result.ref = def.innerType;\n break;\n }\n case "lazy": {\n const innerType = schema._zod.innerType;\n this.process(innerType, params);\n result.ref = innerType;\n break;\n }\n case "custom": {\n if (this.unrepresentable === "throw") {\n throw new Error("Custom types cannot be represented in JSON Schema");\n }\n break;\n }\n default: {}\n }\n }\n const meta = this.metadataRegistry.get(schema);\n if (meta)\n Object.assign(result.schema, meta);\n if (this.io === "input" && isTransforming(schema)) {\n delete result.schema.examples;\n delete result.schema.default;\n }\n if (this.io === "input" && result.schema._prefault)\n (_a15 = result.schema).default ?? (_a15.default = result.schema._prefault);\n delete result.schema._prefault;\n const _result = this.seen.get(schema);\n return _result.schema;\n }\n emit(schema, _params) {\n const params = {\n cycles: _params?.cycles ?? "ref",\n reused: _params?.reused ?? "inline",\n external: _params?.external ?? undefined\n };\n const root = this.seen.get(schema);\n if (!root)\n throw new Error("Unprocessed schema. This is a bug in Zod.");\n const makeURI = (entry) => {\n const defsSegment = this.target === "draft-2020-12" ? "$defs" : "definitions";\n if (params.external) {\n const externalId = params.external.registry.get(entry[0])?.id;\n if (externalId)\n return { ref: params.external.uri(externalId) };\n const id = entry[1].defId ?? entry[1].schema.id ?? `schema${this.counter++}`;\n entry[1].defId = id;\n return { defId: id, ref: `${params.external.uri("__shared")}#/${defsSegment}/${id}` };\n }\n if (entry[1] === root) {\n return { ref: "#" };\n }\n const uriPrefix = `#`;\n const defUriPrefix = `${uriPrefix}/${defsSegment}/`;\n const defId = entry[1].schema.id ?? `__schema${this.counter++}`;\n return { defId, ref: defUriPrefix + defId };\n };\n const extractToDef = (entry) => {\n if (entry[1].schema.$ref) {\n return;\n }\n const seen = entry[1];\n const { ref, defId } = makeURI(entry);\n seen.def = { ...seen.schema };\n if (defId)\n seen.defId = defId;\n const schema2 = seen.schema;\n for (const key in schema2) {\n delete schema2[key];\n }\n schema2.$ref = ref;\n };\n for (const entry of this.seen.entries()) {\n const seen = entry[1];\n if (schema === entry[0]) {\n extractToDef(entry);\n continue;\n }\n if (params.external) {\n const ext = params.external.registry.get(entry[0])?.id;\n if (schema !== entry[0] && ext) {\n extractToDef(entry);\n continue;\n }\n }\n const id = this.metadataRegistry.get(entry[0])?.id;\n if (id) {\n extractToDef(entry);\n continue;\n }\n if (seen.cycle) {\n if (params.cycles === "throw") {\n throw new Error("Cycle detected: " + `#/${seen.cycle?.join("/")}/` + \'\\n\\nSet the `cycles` parameter to `"ref"` to resolve cyclical schemas with defs.\');\n } else if (params.cycles === "ref") {\n extractToDef(entry);\n }\n continue;\n }\n if (seen.count > 1) {\n if (params.reused === "ref") {\n extractToDef(entry);\n continue;\n }\n }\n }\n const flattenRef = (zodSchema, params2) => {\n const seen = this.seen.get(zodSchema);\n const schema2 = seen.def ?? seen.schema;\n const _cached = { ...schema2 };\n if (seen.ref === null) {\n return;\n }\n const ref = seen.ref;\n seen.ref = null;\n if (ref) {\n flattenRef(ref, params2);\n const refSchema = this.seen.get(ref).schema;\n if (refSchema.$ref && params2.target === "draft-7") {\n schema2.allOf = schema2.allOf ?? [];\n schema2.allOf.push(refSchema);\n } else {\n Object.assign(schema2, refSchema);\n Object.assign(schema2, _cached);\n }\n }\n if (!seen.isParent)\n this.override({\n zodSchema,\n jsonSchema: schema2\n });\n };\n for (const entry of [...this.seen.entries()].reverse()) {\n flattenRef(entry[0], { target: this.target });\n }\n const result = {};\n if (this.target === "draft-2020-12") {\n result.$schema = "https://json-schema.org/draft/2020-12/schema";\n } else if (this.target === "draft-7") {\n result.$schema = "http://json-schema.org/draft-07/schema#";\n } else {\n console.warn(`Invalid target: ${this.target}`);\n }\n Object.assign(result, root.def);\n const defs = params.external?.defs ?? {};\n for (const entry of this.seen.entries()) {\n const seen = entry[1];\n if (seen.def && seen.defId) {\n defs[seen.defId] = seen.def;\n }\n }\n if (!params.external && Object.keys(defs).length > 0) {\n if (this.target === "draft-2020-12") {\n result.$defs = defs;\n } else {\n result.definitions = defs;\n }\n }\n try {\n return JSON.parse(JSON.stringify(result));\n } catch (_err) {\n throw new Error("Error converting schema to JSON.");\n }\n }\n}\nfunction toJSONSchema(input, _params) {\n if (input instanceof $ZodRegistry) {\n const gen2 = new JSONSchemaGenerator(_params);\n const defs = {};\n for (const entry of input._idmap.entries()) {\n const [_3, schema] = entry;\n gen2.process(schema);\n }\n const schemas = {};\n const external = {\n registry: input,\n uri: _params?.uri || ((id) => id),\n defs\n };\n for (const entry of input._idmap.entries()) {\n const [key, schema] = entry;\n schemas[key] = gen2.emit(schema, {\n ..._params,\n external\n });\n }\n if (Object.keys(defs).length > 0) {\n const defsSegment = gen2.target === "draft-2020-12" ? "$defs" : "definitions";\n schemas.__shared = {\n [defsSegment]: defs\n };\n }\n return { schemas };\n }\n const gen = new JSONSchemaGenerator(_params);\n gen.process(input);\n return gen.emit(input, _params);\n}\nfunction isTransforming(_schema, _ctx) {\n const ctx = _ctx ?? { seen: new Set };\n if (ctx.seen.has(_schema))\n return false;\n ctx.seen.add(_schema);\n const schema = _schema;\n const def = schema._zod.def;\n switch (def.type) {\n case "string":\n case "number":\n case "bigint":\n case "boolean":\n case "date":\n case "symbol":\n case "undefined":\n case "null":\n case "any":\n case "unknown":\n case "never":\n case "void":\n case "literal":\n case "enum":\n case "nan":\n case "file":\n case "template_literal":\n return false;\n case "array": {\n return isTransforming(def.element, ctx);\n }\n case "object": {\n for (const key in def.shape) {\n if (isTransforming(def.shape[key], ctx))\n return true;\n }\n return false;\n }\n case "union": {\n for (const option of def.options) {\n if (isTransforming(option, ctx))\n return true;\n }\n return false;\n }\n case "intersection": {\n return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);\n }\n case "tuple": {\n for (const item of def.items) {\n if (isTransforming(item, ctx))\n return true;\n }\n if (def.rest && isTransforming(def.rest, ctx))\n return true;\n return false;\n }\n case "record": {\n return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);\n }\n case "map": {\n return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);\n }\n case "set": {\n return isTransforming(def.valueType, ctx);\n }\n case "promise":\n case "optional":\n case "nonoptional":\n case "nullable":\n case "readonly":\n return isTransforming(def.innerType, ctx);\n case "lazy":\n return isTransforming(def.getter(), ctx);\n case "default": {\n return isTransforming(def.innerType, ctx);\n }\n case "prefault": {\n return isTransforming(def.innerType, ctx);\n }\n case "custom": {\n return false;\n }\n case "transform": {\n return true;\n }\n case "pipe": {\n return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);\n }\n case "success": {\n return false;\n }\n case "catch": {\n return false;\n }\n default:\n }\n throw new Error(`Unknown schema type: ${def.type}`);\n}\n// ../../node_modules/zod/dist/esm/v4/core/json-schema.js\nvar exports_json_schema = {};\n// ../../node_modules/zod/dist/esm/v4/classic/iso.js\nvar exports_iso = {};\n__export(exports_iso, {\n time: () => time2,\n duration: () => duration2,\n datetime: () => datetime2,\n date: () => date2,\n ZodISOTime: () => ZodISOTime,\n ZodISODuration: () => ZodISODuration,\n ZodISODateTime: () => ZodISODateTime,\n ZodISODate: () => ZodISODate\n});\nvar ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {\n $ZodISODateTime.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction datetime2(params) {\n return _isoDateTime(ZodISODateTime, params);\n}\nvar ZodISODate = /* @__PURE__ */ $constructor("ZodISODate", (inst, def) => {\n $ZodISODate.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction date2(params) {\n return _isoDate(ZodISODate, params);\n}\nvar ZodISOTime = /* @__PURE__ */ $constructor("ZodISOTime", (inst, def) => {\n $ZodISOTime.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction time2(params) {\n return _isoTime(ZodISOTime, params);\n}\nvar ZodISODuration = /* @__PURE__ */ $constructor("ZodISODuration", (inst, def) => {\n $ZodISODuration.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction duration2(params) {\n return _isoDuration(ZodISODuration, params);\n}\n\n// ../../node_modules/zod/dist/esm/v4/classic/errors.js\nvar initializer2 = (inst, issues) => {\n $ZodError.init(inst, issues);\n inst.name = "ZodError";\n Object.defineProperties(inst, {\n format: {\n value: (mapper) => formatError(inst, mapper)\n },\n flatten: {\n value: (mapper) => flattenError(inst, mapper)\n },\n addIssue: {\n value: (issue2) => inst.issues.push(issue2)\n },\n addIssues: {\n value: (issues2) => inst.issues.push(...issues2)\n },\n isEmpty: {\n get() {\n return inst.issues.length === 0;\n }\n }\n });\n};\nvar ZodError = $constructor("ZodError", initializer2);\nvar ZodRealError = $constructor("ZodError", initializer2, {\n Parent: Error\n});\n\n// ../../node_modules/zod/dist/esm/v4/classic/parse.js\nvar parse3 = /* @__PURE__ */ _parse(ZodRealError);\nvar parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);\nvar safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);\nvar safeParseAsync2 = /* @__PURE__ */ _safeParseAsync(ZodRealError);\n\n// ../../node_modules/zod/dist/esm/v4/classic/schemas.js\nvar ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {\n $ZodType.init(inst, def);\n inst.def = def;\n Object.defineProperty(inst, "_def", { value: def });\n inst.check = (...checks2) => {\n return inst.clone({\n ...def,\n checks: [\n ...def.checks ?? [],\n ...checks2.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)\n ]\n });\n };\n inst.clone = (def2, params) => clone(inst, def2, params);\n inst.brand = () => inst;\n inst.register = (reg, meta) => {\n reg.add(inst, meta);\n return inst;\n };\n inst.parse = (data, params) => parse3(inst, data, params, { callee: inst.parse });\n inst.safeParse = (data, params) => safeParse2(inst, data, params);\n inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });\n inst.safeParseAsync = async (data, params) => safeParseAsync2(inst, data, params);\n inst.spa = inst.safeParseAsync;\n inst.refine = (check, params) => inst.check(refine(check, params));\n inst.superRefine = (refinement) => inst.check(superRefine(refinement));\n inst.overwrite = (fn) => inst.check(_overwrite(fn));\n inst.optional = () => optional(inst);\n inst.nullable = () => nullable(inst);\n inst.nullish = () => optional(nullable(inst));\n inst.nonoptional = (params) => nonoptional(inst, params);\n inst.array = () => array(inst);\n inst.or = (arg) => union([inst, arg]);\n inst.and = (arg) => intersection(inst, arg);\n inst.transform = (tx) => pipe(inst, transform(tx));\n inst.default = (def2) => _default2(inst, def2);\n inst.prefault = (def2) => prefault(inst, def2);\n inst.catch = (params) => _catch2(inst, params);\n inst.pipe = (target) => pipe(inst, target);\n inst.readonly = () => readonly(inst);\n inst.describe = (description) => {\n const cl = inst.clone();\n globalRegistry.add(cl, { description });\n return cl;\n };\n Object.defineProperty(inst, "description", {\n get() {\n return globalRegistry.get(inst)?.description;\n },\n configurable: true\n });\n inst.meta = (...args) => {\n if (args.length === 0) {\n return globalRegistry.get(inst);\n }\n const cl = inst.clone();\n globalRegistry.add(cl, args[0]);\n return cl;\n };\n inst.isOptional = () => inst.safeParse(undefined).success;\n inst.isNullable = () => inst.safeParse(null).success;\n return inst;\n});\nvar _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {\n $ZodString.init(inst, def);\n ZodType.init(inst, def);\n const bag = inst._zod.bag;\n inst.format = bag.format ?? null;\n inst.minLength = bag.minimum ?? null;\n inst.maxLength = bag.maximum ?? null;\n inst.regex = (...args) => inst.check(_regex(...args));\n inst.includes = (...args) => inst.check(_includes(...args));\n inst.startsWith = (...args) => inst.check(_startsWith(...args));\n inst.endsWith = (...args) => inst.check(_endsWith(...args));\n inst.min = (...args) => inst.check(_minLength(...args));\n inst.max = (...args) => inst.check(_maxLength(...args));\n inst.length = (...args) => inst.check(_length(...args));\n inst.nonempty = (...args) => inst.check(_minLength(1, ...args));\n inst.lowercase = (params) => inst.check(_lowercase(params));\n inst.uppercase = (params) => inst.check(_uppercase(params));\n inst.trim = () => inst.check(_trim());\n inst.normalize = (...args) => inst.check(_normalize(...args));\n inst.toLowerCase = () => inst.check(_toLowerCase());\n inst.toUpperCase = () => inst.check(_toUpperCase());\n});\nvar ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {\n $ZodString.init(inst, def);\n _ZodString.init(inst, def);\n inst.email = (params) => inst.check(_email(ZodEmail, params));\n inst.url = (params) => inst.check(_url(ZodURL, params));\n inst.jwt = (params) => inst.check(_jwt(ZodJWT, params));\n inst.emoji = (params) => inst.check(_emoji2(ZodEmoji, params));\n inst.guid = (params) => inst.check(_guid(ZodGUID, params));\n inst.uuid = (params) => inst.check(_uuid(ZodUUID, params));\n inst.uuidv4 = (params) => inst.check(_uuidv4(ZodUUID, params));\n inst.uuidv6 = (params) => inst.check(_uuidv6(ZodUUID, params));\n inst.uuidv7 = (params) => inst.check(_uuidv7(ZodUUID, params));\n inst.nanoid = (params) => inst.check(_nanoid(ZodNanoID, params));\n inst.guid = (params) => inst.check(_guid(ZodGUID, params));\n inst.cuid = (params) => inst.check(_cuid(ZodCUID, params));\n inst.cuid2 = (params) => inst.check(_cuid2(ZodCUID2, params));\n inst.ulid = (params) => inst.check(_ulid(ZodULID, params));\n inst.base64 = (params) => inst.check(_base64(ZodBase64, params));\n inst.base64url = (params) => inst.check(_base64url(ZodBase64URL, params));\n inst.xid = (params) => inst.check(_xid(ZodXID, params));\n inst.ksuid = (params) => inst.check(_ksuid(ZodKSUID, params));\n inst.ipv4 = (params) => inst.check(_ipv4(ZodIPv4, params));\n inst.ipv6 = (params) => inst.check(_ipv6(ZodIPv6, params));\n inst.cidrv4 = (params) => inst.check(_cidrv4(ZodCIDRv4, params));\n inst.cidrv6 = (params) => inst.check(_cidrv6(ZodCIDRv6, params));\n inst.e164 = (params) => inst.check(_e164(ZodE164, params));\n inst.datetime = (params) => inst.check(datetime2(params));\n inst.date = (params) => inst.check(date2(params));\n inst.time = (params) => inst.check(time2(params));\n inst.duration = (params) => inst.check(duration2(params));\n});\nfunction string2(params) {\n return _string(ZodString, params);\n}\nvar ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => {\n $ZodStringFormat.init(inst, def);\n _ZodString.init(inst, def);\n});\nvar ZodEmail = /* @__PURE__ */ $constructor("ZodEmail", (inst, def) => {\n $ZodEmail.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction email2(params) {\n return _email(ZodEmail, params);\n}\nvar ZodGUID = /* @__PURE__ */ $constructor("ZodGUID", (inst, def) => {\n $ZodGUID.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction guid2(params) {\n return _guid(ZodGUID, params);\n}\nvar ZodUUID = /* @__PURE__ */ $constructor("ZodUUID", (inst, def) => {\n $ZodUUID.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction uuid2(params) {\n return _uuid(ZodUUID, params);\n}\nfunction uuidv4(params) {\n return _uuidv4(ZodUUID, params);\n}\nfunction uuidv6(params) {\n return _uuidv6(ZodUUID, params);\n}\nfunction uuidv7(params) {\n return _uuidv7(ZodUUID, params);\n}\nvar ZodURL = /* @__PURE__ */ $constructor("ZodURL", (inst, def) => {\n $ZodURL.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction url(params) {\n return _url(ZodURL, params);\n}\nvar ZodEmoji = /* @__PURE__ */ $constructor("ZodEmoji", (inst, def) => {\n $ZodEmoji.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction emoji2(params) {\n return _emoji2(ZodEmoji, params);\n}\nvar ZodNanoID = /* @__PURE__ */ $constructor("ZodNanoID", (inst, def) => {\n $ZodNanoID.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction nanoid2(params) {\n return _nanoid(ZodNanoID, params);\n}\nvar ZodCUID = /* @__PURE__ */ $constructor("ZodCUID", (inst, def) => {\n $ZodCUID.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction cuid3(params) {\n return _cuid(ZodCUID, params);\n}\nvar ZodCUID2 = /* @__PURE__ */ $constructor("ZodCUID2", (inst, def) => {\n $ZodCUID2.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction cuid22(params) {\n return _cuid2(ZodCUID2, params);\n}\nvar ZodULID = /* @__PURE__ */ $constructor("ZodULID", (inst, def) => {\n $ZodULID.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction ulid2(params) {\n return _ulid(ZodULID, params);\n}\nvar ZodXID = /* @__PURE__ */ $constructor("ZodXID", (inst, def) => {\n $ZodXID.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction xid2(params) {\n return _xid(ZodXID, params);\n}\nvar ZodKSUID = /* @__PURE__ */ $constructor("ZodKSUID", (inst, def) => {\n $ZodKSUID.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction ksuid2(params) {\n return _ksuid(ZodKSUID, params);\n}\nvar ZodIPv4 = /* @__PURE__ */ $constructor("ZodIPv4", (inst, def) => {\n $ZodIPv4.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction ipv42(params) {\n return _ipv4(ZodIPv4, params);\n}\nvar ZodIPv6 = /* @__PURE__ */ $constructor("ZodIPv6", (inst, def) => {\n $ZodIPv6.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction ipv62(params) {\n return _ipv6(ZodIPv6, params);\n}\nvar ZodCIDRv4 = /* @__PURE__ */ $constructor("ZodCIDRv4", (inst, def) => {\n $ZodCIDRv4.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction cidrv42(params) {\n return _cidrv4(ZodCIDRv4, params);\n}\nvar ZodCIDRv6 = /* @__PURE__ */ $constructor("ZodCIDRv6", (inst, def) => {\n $ZodCIDRv6.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction cidrv62(params) {\n return _cidrv6(ZodCIDRv6, params);\n}\nvar ZodBase64 = /* @__PURE__ */ $constructor("ZodBase64", (inst, def) => {\n $ZodBase64.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction base642(params) {\n return _base64(ZodBase64, params);\n}\nvar ZodBase64URL = /* @__PURE__ */ $constructor("ZodBase64URL", (inst, def) => {\n $ZodBase64URL.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction base64url2(params) {\n return _base64url(ZodBase64URL, params);\n}\nvar ZodE164 = /* @__PURE__ */ $constructor("ZodE164", (inst, def) => {\n $ZodE164.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction e1642(params) {\n return _e164(ZodE164, params);\n}\nvar ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {\n $ZodJWT.init(inst, def);\n ZodStringFormat.init(inst, def);\n});\nfunction jwt(params) {\n return _jwt(ZodJWT, params);\n}\nvar ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {\n $ZodNumber.init(inst, def);\n ZodType.init(inst, def);\n inst.gt = (value, params) => inst.check(_gt(value, params));\n inst.gte = (value, params) => inst.check(_gte(value, params));\n inst.min = (value, params) => inst.check(_gte(value, params));\n inst.lt = (value, params) => inst.check(_lt(value, params));\n inst.lte = (value, params) => inst.check(_lte(value, params));\n inst.max = (value, params) => inst.check(_lte(value, params));\n inst.int = (params) => inst.check(int(params));\n inst.safe = (params) => inst.check(int(params));\n inst.positive = (params) => inst.check(_gt(0, params));\n inst.nonnegative = (params) => inst.check(_gte(0, params));\n inst.negative = (params) => inst.check(_lt(0, params));\n inst.nonpositive = (params) => inst.check(_lte(0, params));\n inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));\n inst.step = (value, params) => inst.check(_multipleOf(value, params));\n inst.finite = () => inst;\n const bag = inst._zod.bag;\n inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;\n inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;\n inst.isInt = (bag.format ?? "").includes("int") || Number.isSafeInteger(bag.multipleOf ?? 0.5);\n inst.isFinite = true;\n inst.format = bag.format ?? null;\n});\nfunction number2(params) {\n return _number(ZodNumber, params);\n}\nvar ZodNumberFormat = /* @__PURE__ */ $constructor("ZodNumberFormat", (inst, def) => {\n $ZodNumberFormat.init(inst, def);\n ZodNumber.init(inst, def);\n});\nfunction int(params) {\n return _int(ZodNumberFormat, params);\n}\nfunction float32(params) {\n return _float32(ZodNumberFormat, params);\n}\nfunction float64(params) {\n return _float64(ZodNumberFormat, params);\n}\nfunction int32(params) {\n return _int32(ZodNumberFormat, params);\n}\nfunction uint32(params) {\n return _uint32(ZodNumberFormat, params);\n}\nvar ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {\n $ZodBoolean.init(inst, def);\n ZodType.init(inst, def);\n});\nfunction boolean2(params) {\n return _boolean(ZodBoolean, params);\n}\nvar ZodBigInt = /* @__PURE__ */ $constructor("ZodBigInt", (inst, def) => {\n $ZodBigInt.init(inst, def);\n ZodType.init(inst, def);\n inst.gte = (value, params) => inst.check(_gte(value, params));\n inst.min = (value, params) => inst.check(_gte(value, params));\n inst.gt = (value, params) => inst.check(_gt(value, params));\n inst.gte = (value, params) => inst.check(_gte(value, params));\n inst.min = (value, params) => inst.check(_gte(value, params));\n inst.lt = (value, params) => inst.check(_lt(value, params));\n inst.lte = (value, params) => inst.check(_lte(value, params));\n inst.max = (value, params) => inst.check(_lte(value, params));\n inst.positive = (params) => inst.check(_gt(BigInt(0), params));\n inst.negative = (params) => inst.check(_lt(BigInt(0), params));\n inst.nonpositive = (params) => inst.check(_lte(BigInt(0), params));\n inst.nonnegative = (params) => inst.check(_gte(BigInt(0), params));\n inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));\n const bag = inst._zod.bag;\n inst.minValue = bag.minimum ?? null;\n inst.maxValue = bag.maximum ?? null;\n inst.format = bag.format ?? null;\n});\nfunction bigint2(params) {\n return _bigint(ZodBigInt, params);\n}\nvar ZodBigIntFormat = /* @__PURE__ */ $constructor("ZodBigIntFormat", (inst, def) => {\n $ZodBigIntFormat.init(inst, def);\n ZodBigInt.init(inst, def);\n});\nfunction int64(params) {\n return _int64(ZodBigIntFormat, params);\n}\nfunction uint64(params) {\n return _uint64(ZodBigIntFormat, params);\n}\nvar ZodSymbol = /* @__PURE__ */ $constructor("ZodSymbol", (inst, def) => {\n $ZodSymbol.init(inst, def);\n ZodType.init(inst, def);\n});\nfunction symbol15(params) {\n return _symbol(ZodSymbol, params);\n}\nvar ZodUndefined = /* @__PURE__ */ $constructor("ZodUndefined", (inst, def) => {\n $ZodUndefined.init(inst, def);\n ZodType.init(inst, def);\n});\nfunction _undefined3(params) {\n return _undefined2(ZodUndefined, params);\n}\nvar ZodNull = /* @__PURE__ */ $constructor("ZodNull", (inst, def) => {\n $ZodNull.init(inst, def);\n ZodType.init(inst, def);\n});\nfunction _null3(params) {\n return _null2(ZodNull, params);\n}\nvar ZodAny = /* @__PURE__ */ $constructor("ZodAny", (inst, def) => {\n $ZodAny.init(inst, def);\n ZodType.init(inst, def);\n});\nfunction any() {\n return _any(ZodAny);\n}\nvar ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {\n $ZodUnknown.init(inst, def);\n ZodType.init(inst, def);\n});\nfunction unknown() {\n return _unknown(ZodUnknown);\n}\nvar ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {\n $ZodNever.init(inst, def);\n ZodType.init(inst, def);\n});\nfunction never(params) {\n return _never(ZodNever, params);\n}\nvar ZodVoid = /* @__PURE__ */ $constructor("ZodVoid", (inst, def) => {\n $ZodVoid.init(inst, def);\n ZodType.init(inst, def);\n});\nfunction _void2(params) {\n return _void(ZodVoid, params);\n}\nvar ZodDate = /* @__PURE__ */ $constructor("ZodDate", (inst, def) => {\n $ZodDate.init(inst, def);\n ZodType.init(inst, def);\n inst.min = (value, params) => inst.check(_gte(value, params));\n inst.max = (value, params) => inst.check(_lte(value, params));\n const c2 = inst._zod.bag;\n inst.minDate = c2.minimum ? new Date(c2.minimum) : null;\n inst.maxDate = c2.maximum ? new Date(c2.maximum) : null;\n});\nfunction date3(params) {\n return _date(ZodDate, params);\n}\nvar ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {\n $ZodArray.init(inst, def);\n ZodType.init(inst, def);\n inst.element = def.element;\n inst.min = (minLength, params) => inst.check(_minLength(minLength, params));\n inst.nonempty = (params) => inst.check(_minLength(1, params));\n inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));\n inst.length = (len, params) => inst.check(_length(len, params));\n inst.unwrap = () => inst.element;\n});\nfunction array(element, params) {\n return _array(ZodArray, element, params);\n}\nfunction keyof(schema) {\n const shape = schema._zod.def.shape;\n return literal(Object.keys(shape));\n}\nvar ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {\n $ZodObject.init(inst, def);\n ZodType.init(inst, def);\n exports_util.defineLazy(inst, "shape", () => {\n return Object.fromEntries(Object.entries(inst._zod.def.shape));\n });\n inst.keyof = () => _enum2(Object.keys(inst._zod.def.shape));\n inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });\n inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });\n inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() });\n inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });\n inst.strip = () => inst.clone({ ...inst._zod.def, catchall: undefined });\n inst.extend = (incoming) => {\n return exports_util.extend(inst, incoming);\n };\n inst.merge = (other) => exports_util.merge(inst, other);\n inst.pick = (mask) => exports_util.pick(inst, mask);\n inst.omit = (mask) => exports_util.omit(inst, mask);\n inst.partial = (...args) => exports_util.partial(ZodOptional, inst, args[0]);\n inst.required = (...args) => exports_util.required(ZodNonOptional, inst, args[0]);\n});\nfunction object(shape, params) {\n const def = {\n type: "object",\n get shape() {\n exports_util.assignProp(this, "shape", { ...shape });\n return this.shape;\n },\n ...exports_util.normalizeParams(params)\n };\n return new ZodObject(def);\n}\nfunction strictObject(shape, params) {\n return new ZodObject({\n type: "object",\n get shape() {\n exports_util.assignProp(this, "shape", { ...shape });\n return this.shape;\n },\n catchall: never(),\n ...exports_util.normalizeParams(params)\n });\n}\nfunction looseObject(shape, params) {\n return new ZodObject({\n type: "object",\n get shape() {\n exports_util.assignProp(this, "shape", { ...shape });\n return this.shape;\n },\n catchall: unknown(),\n ...exports_util.normalizeParams(params)\n });\n}\nvar ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => {\n $ZodUnion.init(inst, def);\n ZodType.init(inst, def);\n inst.options = def.options;\n});\nfunction union(options, params) {\n return new ZodUnion({\n type: "union",\n options,\n ...exports_util.normalizeParams(params)\n });\n}\nvar ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("ZodDiscriminatedUnion", (inst, def) => {\n ZodUnion.init(inst, def);\n $ZodDiscriminatedUnion.init(inst, def);\n});\nfunction discriminatedUnion(discriminator, options, params) {\n return new ZodDiscriminatedUnion({\n type: "union",\n options,\n discriminator,\n ...exports_util.normalizeParams(params)\n });\n}\nvar ZodIntersection = /* @__PURE__ */ $constructor("ZodIntersection", (inst, def) => {\n $ZodIntersection.init(inst, def);\n ZodType.init(inst, def);\n});\nfunction intersection(left, right) {\n return new ZodIntersection({\n type: "intersection",\n left,\n right\n });\n}\nvar ZodTuple = /* @__PURE__ */ $constructor("ZodTuple", (inst, def) => {\n $ZodTuple.init(inst, def);\n ZodType.init(inst, def);\n inst.rest = (rest) => inst.clone({\n ...inst._zod.def,\n rest\n });\n});\nfunction tuple(items, _paramsOrRest, _params) {\n const hasRest = _paramsOrRest instanceof $ZodType;\n const params = hasRest ? _params : _paramsOrRest;\n const rest = hasRest ? _paramsOrRest : null;\n return new ZodTuple({\n type: "tuple",\n items,\n rest,\n ...exports_util.normalizeParams(params)\n });\n}\nvar ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {\n $ZodRecord.init(inst, def);\n ZodType.init(inst, def);\n inst.keyType = def.keyType;\n inst.valueType = def.valueType;\n});\nfunction record(keyType, valueType, params) {\n return new ZodRecord({\n type: "record",\n keyType,\n valueType,\n ...exports_util.normalizeParams(params)\n });\n}\nfunction partialRecord(keyType, valueType, params) {\n return new ZodRecord({\n type: "record",\n keyType: union([keyType, never()]),\n valueType,\n ...exports_util.normalizeParams(params)\n });\n}\nvar ZodMap = /* @__PURE__ */ $constructor("ZodMap", (inst, def) => {\n $ZodMap.init(inst, def);\n ZodType.init(inst, def);\n inst.keyType = def.keyType;\n inst.valueType = def.valueType;\n});\nfunction map(keyType, valueType, params) {\n return new ZodMap({\n type: "map",\n keyType,\n valueType,\n ...exports_util.normalizeParams(params)\n });\n}\nvar ZodSet = /* @__PURE__ */ $constructor("ZodSet", (inst, def) => {\n $ZodSet.init(inst, def);\n ZodType.init(inst, def);\n inst.min = (...args) => inst.check(_minSize(...args));\n inst.nonempty = (params) => inst.check(_minSize(1, params));\n inst.max = (...args) => inst.check(_maxSize(...args));\n inst.size = (...args) => inst.check(_size(...args));\n});\nfunction set(valueType, params) {\n return new ZodSet({\n type: "set",\n valueType,\n ...exports_util.normalizeParams(params)\n });\n}\nvar ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {\n $ZodEnum.init(inst, def);\n ZodType.init(inst, def);\n inst.enum = def.entries;\n inst.options = Object.values(def.entries);\n const keys = new Set(Object.keys(def.entries));\n inst.extract = (values, params) => {\n const newEntries = {};\n for (const value of values) {\n if (keys.has(value)) {\n newEntries[value] = def.entries[value];\n } else\n throw new Error(`Key ${value} not found in enum`);\n }\n return new ZodEnum({\n ...def,\n checks: [],\n ...exports_util.normalizeParams(params),\n entries: newEntries\n });\n };\n inst.exclude = (values, params) => {\n const newEntries = { ...def.entries };\n for (const value of values) {\n if (keys.has(value)) {\n delete newEntries[value];\n } else\n throw new Error(`Key ${value} not found in enum`);\n }\n return new ZodEnum({\n ...def,\n checks: [],\n ...exports_util.normalizeParams(params),\n entries: newEntries\n });\n };\n});\nfunction _enum2(values, params) {\n const entries = Array.isArray(values) ? Object.fromEntries(values.map((v3) => [v3, v3])) : values;\n return new ZodEnum({\n type: "enum",\n entries,\n ...exports_util.normalizeParams(params)\n });\n}\nfunction nativeEnum(entries, params) {\n return new ZodEnum({\n type: "enum",\n entries,\n ...exports_util.normalizeParams(params)\n });\n}\nvar ZodLiteral = /* @__PURE__ */ $constructor("ZodLiteral", (inst, def) => {\n $ZodLiteral.init(inst, def);\n ZodType.init(inst, def);\n inst.values = new Set(def.values);\n Object.defineProperty(inst, "value", {\n get() {\n if (def.values.length > 1) {\n throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");\n }\n return def.values[0];\n }\n });\n});\nfunction literal(value, params) {\n return new ZodLiteral({\n type: "literal",\n values: Array.isArray(value) ? value : [value],\n ...exports_util.normalizeParams(params)\n });\n}\nvar ZodFile = /* @__PURE__ */ $constructor("ZodFile", (inst, def) => {\n $ZodFile.init(inst, def);\n ZodType.init(inst, def);\n inst.min = (size, params) => inst.check(_minSize(size, params));\n inst.max = (size, params) => inst.check(_maxSize(size, params));\n inst.mime = (types, params) => inst.check(_mime(Array.isArray(types) ? types : [types], params));\n});\nfunction file(params) {\n return _file(ZodFile, params);\n}\nvar ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {\n $ZodTransform.init(inst, def);\n ZodType.init(inst, def);\n inst._zod.parse = (payload, _ctx) => {\n payload.addIssue = (issue2) => {\n if (typeof issue2 === "string") {\n payload.issues.push(exports_util.issue(issue2, payload.value, def));\n } else {\n const _issue = issue2;\n if (_issue.fatal)\n _issue.continue = false;\n _issue.code ?? (_issue.code = "custom");\n _issue.input ?? (_issue.input = payload.value);\n _issue.inst ?? (_issue.inst = inst);\n _issue.continue ?? (_issue.continue = true);\n payload.issues.push(exports_util.issue(_issue));\n }\n };\n const output = def.transform(payload.value, payload);\n if (output instanceof Promise) {\n return output.then((output2) => {\n payload.value = output2;\n return payload;\n });\n }\n payload.value = output;\n return payload;\n };\n});\nfunction transform(fn) {\n return new ZodTransform({\n type: "transform",\n transform: fn\n });\n}\nvar ZodOptional = /* @__PURE__ */ $constructor("ZodOptional", (inst, def) => {\n $ZodOptional.init(inst, def);\n ZodType.init(inst, def);\n inst.unwrap = () => inst._zod.def.innerType;\n});\nfunction optional(innerType) {\n return new ZodOptional({\n type: "optional",\n innerType\n });\n}\nvar ZodNullable = /* @__PURE__ */ $constructor("ZodNullable", (inst, def) => {\n $ZodNullable.init(inst, def);\n ZodType.init(inst, def);\n inst.unwrap = () => inst._zod.def.innerType;\n});\nfunction nullable(innerType) {\n return new ZodNullable({\n type: "nullable",\n innerType\n });\n}\nfunction nullish2(innerType) {\n return optional(nullable(innerType));\n}\nvar ZodDefault = /* @__PURE__ */ $constructor("ZodDefault", (inst, def) => {\n $ZodDefault.init(inst, def);\n ZodType.init(inst, def);\n inst.unwrap = () => inst._zod.def.innerType;\n inst.removeDefault = inst.unwrap;\n});\nfunction _default2(innerType, defaultValue) {\n return new ZodDefault({\n type: "default",\n innerType,\n get defaultValue() {\n return typeof defaultValue === "function" ? defaultValue() : defaultValue;\n }\n });\n}\nvar ZodPrefault = /* @__PURE__ */ $constructor("ZodPrefault", (inst, def) => {\n $ZodPrefault.init(inst, def);\n ZodType.init(inst, def);\n inst.unwrap = () => inst._zod.def.innerType;\n});\nfunction prefault(innerType, defaultValue) {\n return new ZodPrefault({\n type: "prefault",\n innerType,\n get defaultValue() {\n return typeof defaultValue === "function" ? defaultValue() : defaultValue;\n }\n });\n}\nvar ZodNonOptional = /* @__PURE__ */ $constructor("ZodNonOptional", (inst, def) => {\n $ZodNonOptional.init(inst, def);\n ZodType.init(inst, def);\n inst.unwrap = () => inst._zod.def.innerType;\n});\nfunction nonoptional(innerType, params) {\n return new ZodNonOptional({\n type: "nonoptional",\n innerType,\n ...exports_util.normalizeParams(params)\n });\n}\nvar ZodSuccess = /* @__PURE__ */ $constructor("ZodSuccess", (inst, def) => {\n $ZodSuccess.init(inst, def);\n ZodType.init(inst, def);\n inst.unwrap = () => inst._zod.def.innerType;\n});\nfunction success(innerType) {\n return new ZodSuccess({\n type: "success",\n innerType\n });\n}\nvar ZodCatch = /* @__PURE__ */ $constructor("ZodCatch", (inst, def) => {\n $ZodCatch.init(inst, def);\n ZodType.init(inst, def);\n inst.unwrap = () => inst._zod.def.innerType;\n inst.removeCatch = inst.unwrap;\n});\nfunction _catch2(innerType, catchValue) {\n return new ZodCatch({\n type: "catch",\n innerType,\n catchValue: typeof catchValue === "function" ? catchValue : () => catchValue\n });\n}\nvar ZodNaN = /* @__PURE__ */ $constructor("ZodNaN", (inst, def) => {\n $ZodNaN.init(inst, def);\n ZodType.init(inst, def);\n});\nfunction nan(params) {\n return _nan(ZodNaN, params);\n}\nvar ZodPipe = /* @__PURE__ */ $constructor("ZodPipe", (inst, def) => {\n $ZodPipe.init(inst, def);\n ZodType.init(inst, def);\n inst.in = def.in;\n inst.out = def.out;\n});\nfunction pipe(in_, out) {\n return new ZodPipe({\n type: "pipe",\n in: in_,\n out\n });\n}\nvar ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {\n $ZodReadonly.init(inst, def);\n ZodType.init(inst, def);\n});\nfunction readonly(innerType) {\n return new ZodReadonly({\n type: "readonly",\n innerType\n });\n}\nvar ZodTemplateLiteral = /* @__PURE__ */ $constructor("ZodTemplateLiteral", (inst, def) => {\n $ZodTemplateLiteral.init(inst, def);\n ZodType.init(inst, def);\n});\nfunction templateLiteral(parts, params) {\n return new ZodTemplateLiteral({\n type: "template_literal",\n parts,\n ...exports_util.normalizeParams(params)\n });\n}\nvar ZodLazy = /* @__PURE__ */ $constructor("ZodLazy", (inst, def) => {\n $ZodLazy.init(inst, def);\n ZodType.init(inst, def);\n inst.unwrap = () => inst._zod.def.getter();\n});\nfunction lazy(getter) {\n return new ZodLazy({\n type: "lazy",\n getter\n });\n}\nvar ZodPromise = /* @__PURE__ */ $constructor("ZodPromise", (inst, def) => {\n $ZodPromise.init(inst, def);\n ZodType.init(inst, def);\n inst.unwrap = () => inst._zod.def.innerType;\n});\nfunction promise(innerType) {\n return new ZodPromise({\n type: "promise",\n innerType\n });\n}\nvar ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {\n $ZodCustom.init(inst, def);\n ZodType.init(inst, def);\n});\nfunction check(fn, params) {\n const ch = new $ZodCheck({\n check: "custom",\n ...exports_util.normalizeParams(params)\n });\n ch._zod.check = fn;\n return ch;\n}\nfunction custom(fn, _params) {\n return _custom(ZodCustom, fn ?? (() => true), _params);\n}\nfunction refine(fn, _params = {}) {\n return _refine(ZodCustom, fn, _params);\n}\nfunction superRefine(fn, params) {\n const ch = check((payload) => {\n payload.addIssue = (issue2) => {\n if (typeof issue2 === "string") {\n payload.issues.push(exports_util.issue(issue2, payload.value, ch._zod.def));\n } else {\n const _issue = issue2;\n if (_issue.fatal)\n _issue.continue = false;\n _issue.code ?? (_issue.code = "custom");\n _issue.input ?? (_issue.input = payload.value);\n _issue.inst ?? (_issue.inst = ch);\n _issue.continue ?? (_issue.continue = !ch._zod.def.abort);\n payload.issues.push(exports_util.issue(_issue));\n }\n };\n return fn(payload.value, payload);\n }, params);\n return ch;\n}\nfunction _instanceof(cls, params = {\n error: `Input not instance of ${cls.name}`\n}) {\n const inst = new ZodCustom({\n type: "custom",\n check: "custom",\n fn: (data) => data instanceof cls,\n abort: true,\n ...exports_util.normalizeParams(params)\n });\n inst._zod.bag.Class = cls;\n return inst;\n}\nvar stringbool = (...args) => _stringbool({\n Pipe: ZodPipe,\n Boolean: ZodBoolean,\n Unknown: ZodUnknown\n}, ...args);\nfunction json(params) {\n const jsonSchema = lazy(() => {\n return union([string2(params), number2(), boolean2(), _null3(), array(jsonSchema), record(string2(), jsonSchema)]);\n });\n return jsonSchema;\n}\nfunction preprocess(fn, schema) {\n return pipe(transform(fn), schema);\n}\n// ../../node_modules/zod/dist/esm/v4/classic/compat.js\nvar ZodIssueCode = {\n invalid_type: "invalid_type",\n too_big: "too_big",\n too_small: "too_small",\n invalid_format: "invalid_format",\n not_multiple_of: "not_multiple_of",\n unrecognized_keys: "unrecognized_keys",\n invalid_union: "invalid_union",\n invalid_key: "invalid_key",\n invalid_element: "invalid_element",\n invalid_value: "invalid_value",\n custom: "custom"\n};\nvar INVALID = Object.freeze({\n status: "aborted"\n});\nvar NEVER = INVALID;\nfunction setErrorMap(map2) {\n config({\n customError: map2\n });\n}\nfunction getErrorMap() {\n return config().customError;\n}\n// ../../node_modules/zod/dist/esm/v4/classic/coerce.js\nvar exports_coerce = {};\n__export(exports_coerce, {\n string: () => string3,\n number: () => number3,\n date: () => date4,\n boolean: () => boolean3,\n bigint: () => bigint3\n});\nfunction string3(params) {\n return _coercedString(ZodString, params);\n}\nfunction number3(params) {\n return _coercedNumber(ZodNumber, params);\n}\nfunction boolean3(params) {\n return _coercedBoolean(ZodBoolean, params);\n}\nfunction bigint3(params) {\n return _coercedBigint(ZodBigInt, params);\n}\nfunction date4(params) {\n return _coercedDate(ZodDate, params);\n}\n\n// ../../node_modules/zod/dist/esm/v4/classic/external.js\nconfig(en_default());\n// ../../node_modules/zod/dist/esm/v4/classic/index.js\nvar classic_default = exports_external;\n\n// ../../node_modules/zod/dist/esm/v4/index.js\nvar v4_default = classic_default;\n\n// ../../node_modules/zod/dist/esm/v3/helpers/util.js\nvar util;\n(function(util2) {\n util2.assertEqual = (_3) => {};\n function assertIs2(_arg) {}\n util2.assertIs = assertIs2;\n function assertNever2(_x) {\n throw new Error;\n }\n util2.assertNever = assertNever2;\n util2.arrayToEnum = (items) => {\n const obj = {};\n for (const item of items) {\n obj[item] = item;\n }\n return obj;\n };\n util2.getValidEnumValues = (obj) => {\n const validKeys = util2.objectKeys(obj).filter((k2) => typeof obj[obj[k2]] !== "number");\n const filtered = {};\n for (const k2 of validKeys) {\n filtered[k2] = obj[k2];\n }\n return util2.objectValues(filtered);\n };\n util2.objectValues = (obj) => {\n return util2.objectKeys(obj).map(function(e2) {\n return obj[e2];\n });\n };\n util2.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object2) => {\n const keys = [];\n for (const key in object2) {\n if (Object.prototype.hasOwnProperty.call(object2, key)) {\n keys.push(key);\n }\n }\n return keys;\n };\n util2.find = (arr, checker) => {\n for (const item of arr) {\n if (checker(item))\n return item;\n }\n return;\n };\n util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;\n function joinValues2(array2, separator = " | ") {\n return array2.map((val) => typeof val === "string" ? `\'${val}\'` : val).join(separator);\n }\n util2.joinValues = joinValues2;\n util2.jsonStringifyReplacer = (_3, value) => {\n if (typeof value === "bigint") {\n return value.toString();\n }\n return value;\n };\n})(util || (util = {}));\nvar objectUtil;\n(function(objectUtil2) {\n objectUtil2.mergeShapes = (first, second) => {\n return {\n ...first,\n ...second\n };\n };\n})(objectUtil || (objectUtil = {}));\nvar ZodParsedType = util.arrayToEnum([\n "string",\n "nan",\n "number",\n "integer",\n "float",\n "boolean",\n "date",\n "bigint",\n "symbol",\n "function",\n "undefined",\n "null",\n "array",\n "object",\n "unknown",\n "promise",\n "void",\n "never",\n "map",\n "set"\n]);\nvar getParsedType2 = (data) => {\n const t2 = typeof data;\n switch (t2) {\n case "undefined":\n return ZodParsedType.undefined;\n case "string":\n return ZodParsedType.string;\n case "number":\n return Number.isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;\n case "boolean":\n return ZodParsedType.boolean;\n case "function":\n return ZodParsedType.function;\n case "bigint":\n return ZodParsedType.bigint;\n case "symbol":\n return ZodParsedType.symbol;\n case "object":\n if (Array.isArray(data)) {\n return ZodParsedType.array;\n }\n if (data === null) {\n return ZodParsedType.null;\n }\n if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {\n return ZodParsedType.promise;\n }\n if (typeof Map !== "undefined" && data instanceof Map) {\n return ZodParsedType.map;\n }\n if (typeof Set !== "undefined" && data instanceof Set) {\n return ZodParsedType.set;\n }\n if (typeof Date !== "undefined" && data instanceof Date) {\n return ZodParsedType.date;\n }\n return ZodParsedType.object;\n default:\n return ZodParsedType.unknown;\n }\n};\n\n// ../../node_modules/zod/dist/esm/v3/ZodError.js\nvar ZodIssueCode2 = util.arrayToEnum([\n "invalid_type",\n "invalid_literal",\n "custom",\n "invalid_union",\n "invalid_union_discriminator",\n "invalid_enum_value",\n "unrecognized_keys",\n "invalid_arguments",\n "invalid_return_type",\n "invalid_date",\n "invalid_string",\n "too_small",\n "too_big",\n "invalid_intersection_types",\n "not_multiple_of",\n "not_finite"\n]);\nclass ZodError2 extends Error {\n get errors() {\n return this.issues;\n }\n constructor(issues) {\n super();\n this.issues = [];\n this.addIssue = (sub) => {\n this.issues = [...this.issues, sub];\n };\n this.addIssues = (subs = []) => {\n this.issues = [...this.issues, ...subs];\n };\n const actualProto = new.target.prototype;\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(this, actualProto);\n } else {\n this.__proto__ = actualProto;\n }\n this.name = "ZodError";\n this.issues = issues;\n }\n format(_mapper) {\n const mapper = _mapper || function(issue2) {\n return issue2.message;\n };\n const fieldErrors = { _errors: [] };\n const processError = (error38) => {\n for (const issue2 of error38.issues) {\n if (issue2.code === "invalid_union") {\n issue2.unionErrors.map(processError);\n } else if (issue2.code === "invalid_return_type") {\n processError(issue2.returnTypeError);\n } else if (issue2.code === "invalid_arguments") {\n processError(issue2.argumentsError);\n } else if (issue2.path.length === 0) {\n fieldErrors._errors.push(mapper(issue2));\n } else {\n let curr = fieldErrors;\n let i2 = 0;\n while (i2 < issue2.path.length) {\n const el = issue2.path[i2];\n const terminal = i2 === issue2.path.length - 1;\n if (!terminal) {\n curr[el] = curr[el] || { _errors: [] };\n } else {\n curr[el] = curr[el] || { _errors: [] };\n curr[el]._errors.push(mapper(issue2));\n }\n curr = curr[el];\n i2++;\n }\n }\n }\n };\n processError(this);\n return fieldErrors;\n }\n static assert(value) {\n if (!(value instanceof ZodError2)) {\n throw new Error(`Not a ZodError: ${value}`);\n }\n }\n toString() {\n return this.message;\n }\n get message() {\n return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2);\n }\n get isEmpty() {\n return this.issues.length === 0;\n }\n flatten(mapper = (issue2) => issue2.message) {\n const fieldErrors = {};\n const formErrors = [];\n for (const sub of this.issues) {\n if (sub.path.length > 0) {\n fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];\n fieldErrors[sub.path[0]].push(mapper(sub));\n } else {\n formErrors.push(mapper(sub));\n }\n }\n return { formErrors, fieldErrors };\n }\n get formErrors() {\n return this.flatten();\n }\n}\nZodError2.create = (issues) => {\n const error38 = new ZodError2(issues);\n return error38;\n};\n\n// ../../node_modules/zod/dist/esm/v3/locales/en.js\nvar errorMap = (issue2, _ctx) => {\n let message;\n switch (issue2.code) {\n case ZodIssueCode2.invalid_type:\n if (issue2.received === ZodParsedType.undefined) {\n message = "Required";\n } else {\n message = `Expected ${issue2.expected}, received ${issue2.received}`;\n }\n break;\n case ZodIssueCode2.invalid_literal:\n message = `Invalid literal value, expected ${JSON.stringify(issue2.expected, util.jsonStringifyReplacer)}`;\n break;\n case ZodIssueCode2.unrecognized_keys:\n message = `Unrecognized key(s) in object: ${util.joinValues(issue2.keys, ", ")}`;\n break;\n case ZodIssueCode2.invalid_union:\n message = `Invalid input`;\n break;\n case ZodIssueCode2.invalid_union_discriminator:\n message = `Invalid discriminator value. Expected ${util.joinValues(issue2.options)}`;\n break;\n case ZodIssueCode2.invalid_enum_value:\n message = `Invalid enum value. Expected ${util.joinValues(issue2.options)}, received \'${issue2.received}\'`;\n break;\n case ZodIssueCode2.invalid_arguments:\n message = `Invalid function arguments`;\n break;\n case ZodIssueCode2.invalid_return_type:\n message = `Invalid function return type`;\n break;\n case ZodIssueCode2.invalid_date:\n message = `Invalid date`;\n break;\n case ZodIssueCode2.invalid_string:\n if (typeof issue2.validation === "object") {\n if ("includes" in issue2.validation) {\n message = `Invalid input: must include "${issue2.validation.includes}"`;\n if (typeof issue2.validation.position === "number") {\n message = `${message} at one or more positions greater than or equal to ${issue2.validation.position}`;\n }\n } else if ("startsWith" in issue2.validation) {\n message = `Invalid input: must start with "${issue2.validation.startsWith}"`;\n } else if ("endsWith" in issue2.validation) {\n message = `Invalid input: must end with "${issue2.validation.endsWith}"`;\n } else {\n util.assertNever(issue2.validation);\n }\n } else if (issue2.validation !== "regex") {\n message = `Invalid ${issue2.validation}`;\n } else {\n message = "Invalid";\n }\n break;\n case ZodIssueCode2.too_small:\n if (issue2.type === "array")\n message = `Array must contain ${issue2.exact ? "exactly" : issue2.inclusive ? `at least` : `more than`} ${issue2.minimum} element(s)`;\n else if (issue2.type === "string")\n message = `String must contain ${issue2.exact ? "exactly" : issue2.inclusive ? `at least` : `over`} ${issue2.minimum} character(s)`;\n else if (issue2.type === "number")\n message = `Number must be ${issue2.exact ? `exactly equal to ` : issue2.inclusive ? `greater than or equal to ` : `greater than `}${issue2.minimum}`;\n else if (issue2.type === "date")\n message = `Date must be ${issue2.exact ? `exactly equal to ` : issue2.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue2.minimum))}`;\n else\n message = "Invalid input";\n break;\n case ZodIssueCode2.too_big:\n if (issue2.type === "array")\n message = `Array must contain ${issue2.exact ? `exactly` : issue2.inclusive ? `at most` : `less than`} ${issue2.maximum} element(s)`;\n else if (issue2.type === "string")\n message = `String must contain ${issue2.exact ? `exactly` : issue2.inclusive ? `at most` : `under`} ${issue2.maximum} character(s)`;\n else if (issue2.type === "number")\n message = `Number must be ${issue2.exact ? `exactly` : issue2.inclusive ? `less than or equal to` : `less than`} ${issue2.maximum}`;\n else if (issue2.type === "bigint")\n message = `BigInt must be ${issue2.exact ? `exactly` : issue2.inclusive ? `less than or equal to` : `less than`} ${issue2.maximum}`;\n else if (issue2.type === "date")\n message = `Date must be ${issue2.exact ? `exactly` : issue2.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue2.maximum))}`;\n else\n message = "Invalid input";\n break;\n case ZodIssueCode2.custom:\n message = `Invalid input`;\n break;\n case ZodIssueCode2.invalid_intersection_types:\n message = `Intersection results could not be merged`;\n break;\n case ZodIssueCode2.not_multiple_of:\n message = `Number must be a multiple of ${issue2.multipleOf}`;\n break;\n case ZodIssueCode2.not_finite:\n message = "Number must be finite";\n break;\n default:\n message = _ctx.defaultError;\n util.assertNever(issue2);\n }\n return { message };\n};\nvar en_default2 = errorMap;\n\n// ../../node_modules/zod/dist/esm/v3/errors.js\nvar overrideErrorMap = en_default2;\nfunction getErrorMap2() {\n return overrideErrorMap;\n}\n\n// ../../node_modules/zod/dist/esm/v3/helpers/parseUtil.js\nvar makeIssue = (params) => {\n const { data, path, errorMaps, issueData } = params;\n const fullPath = [...path, ...issueData.path || []];\n const fullIssue = {\n ...issueData,\n path: fullPath\n };\n if (issueData.message !== undefined) {\n return {\n ...issueData,\n path: fullPath,\n message: issueData.message\n };\n }\n let errorMessage = "";\n const maps = errorMaps.filter((m3) => !!m3).slice().reverse();\n for (const map2 of maps) {\n errorMessage = map2(fullIssue, { data, defaultError: errorMessage }).message;\n }\n return {\n ...issueData,\n path: fullPath,\n message: errorMessage\n };\n};\nfunction addIssueToContext(ctx, issueData) {\n const overrideMap = getErrorMap2();\n const issue2 = makeIssue({\n issueData,\n data: ctx.data,\n path: ctx.path,\n errorMaps: [\n ctx.common.contextualErrorMap,\n ctx.schemaErrorMap,\n overrideMap,\n overrideMap === en_default2 ? undefined : en_default2\n ].filter((x2) => !!x2)\n });\n ctx.common.issues.push(issue2);\n}\n\nclass ParseStatus {\n constructor() {\n this.value = "valid";\n }\n dirty() {\n if (this.value === "valid")\n this.value = "dirty";\n }\n abort() {\n if (this.value !== "aborted")\n this.value = "aborted";\n }\n static mergeArray(status, results) {\n const arrayValue = [];\n for (const s2 of results) {\n if (s2.status === "aborted")\n return INVALID2;\n if (s2.status === "dirty")\n status.dirty();\n arrayValue.push(s2.value);\n }\n return { status: status.value, value: arrayValue };\n }\n static async mergeObjectAsync(status, pairs) {\n const syncPairs = [];\n for (const pair of pairs) {\n const key = await pair.key;\n const value = await pair.value;\n syncPairs.push({\n key,\n value\n });\n }\n return ParseStatus.mergeObjectSync(status, syncPairs);\n }\n static mergeObjectSync(status, pairs) {\n const finalObject = {};\n for (const pair of pairs) {\n const { key, value } = pair;\n if (key.status === "aborted")\n return INVALID2;\n if (value.status === "aborted")\n return INVALID2;\n if (key.status === "dirty")\n status.dirty();\n if (value.status === "dirty")\n status.dirty();\n if (key.value !== "__proto__" && (typeof value.value !== "undefined" || pair.alwaysSet)) {\n finalObject[key.value] = value.value;\n }\n }\n return { status: status.value, value: finalObject };\n }\n}\nvar INVALID2 = Object.freeze({\n status: "aborted"\n});\nvar DIRTY = (value) => ({ status: "dirty", value });\nvar OK = (value) => ({ status: "valid", value });\nvar isAborted = (x2) => x2.status === "aborted";\nvar isDirty = (x2) => x2.status === "dirty";\nvar isValid = (x2) => x2.status === "valid";\nvar isAsync = (x2) => typeof Promise !== "undefined" && x2 instanceof Promise;\n\n// ../../node_modules/zod/dist/esm/v3/helpers/errorUtil.js\nvar errorUtil;\n(function(errorUtil2) {\n errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};\n errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;\n})(errorUtil || (errorUtil = {}));\n\n// ../../node_modules/zod/dist/esm/v3/types.js\nclass ParseInputLazyPath {\n constructor(parent, value, path, key) {\n this._cachedPath = [];\n this.parent = parent;\n this.data = value;\n this._path = path;\n this._key = key;\n }\n get path() {\n if (!this._cachedPath.length) {\n if (Array.isArray(this._key)) {\n this._cachedPath.push(...this._path, ...this._key);\n } else {\n this._cachedPath.push(...this._path, this._key);\n }\n }\n return this._cachedPath;\n }\n}\nvar handleResult = (ctx, result) => {\n if (isValid(result)) {\n return { success: true, data: result.value };\n } else {\n if (!ctx.common.issues.length) {\n throw new Error("Validation failed but no issues detected.");\n }\n return {\n success: false,\n get error() {\n if (this._error)\n return this._error;\n const error38 = new ZodError2(ctx.common.issues);\n this._error = error38;\n return this._error;\n }\n };\n }\n};\nfunction processCreateParams(params) {\n if (!params)\n return {};\n const { errorMap: errorMap2, invalid_type_error, required_error, description } = params;\n if (errorMap2 && (invalid_type_error || required_error)) {\n throw new Error(`Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.`);\n }\n if (errorMap2)\n return { errorMap: errorMap2, description };\n const customMap = (iss, ctx) => {\n const { message } = params;\n if (iss.code === "invalid_enum_value") {\n return { message: message ?? ctx.defaultError };\n }\n if (typeof ctx.data === "undefined") {\n return { message: message ?? required_error ?? ctx.defaultError };\n }\n if (iss.code !== "invalid_type")\n return { message: ctx.defaultError };\n return { message: message ?? invalid_type_error ?? ctx.defaultError };\n };\n return { errorMap: customMap, description };\n}\n\nclass ZodType2 {\n get description() {\n return this._def.description;\n }\n _getType(input) {\n return getParsedType2(input.data);\n }\n _getOrReturnCtx(input, ctx) {\n return ctx || {\n common: input.parent.common,\n data: input.data,\n parsedType: getParsedType2(input.data),\n schemaErrorMap: this._def.errorMap,\n path: input.path,\n parent: input.parent\n };\n }\n _processInputParams(input) {\n return {\n status: new ParseStatus,\n ctx: {\n common: input.parent.common,\n data: input.data,\n parsedType: getParsedType2(input.data),\n schemaErrorMap: this._def.errorMap,\n path: input.path,\n parent: input.parent\n }\n };\n }\n _parseSync(input) {\n const result = this._parse(input);\n if (isAsync(result)) {\n throw new Error("Synchronous parse encountered promise.");\n }\n return result;\n }\n _parseAsync(input) {\n const result = this._parse(input);\n return Promise.resolve(result);\n }\n parse(data, params) {\n const result = this.safeParse(data, params);\n if (result.success)\n return result.data;\n throw result.error;\n }\n safeParse(data, params) {\n const ctx = {\n common: {\n issues: [],\n async: params?.async ?? false,\n contextualErrorMap: params?.errorMap\n },\n path: params?.path || [],\n schemaErrorMap: this._def.errorMap,\n parent: null,\n data,\n parsedType: getParsedType2(data)\n };\n const result = this._parseSync({ data, path: ctx.path, parent: ctx });\n return handleResult(ctx, result);\n }\n "~validate"(data) {\n const ctx = {\n common: {\n issues: [],\n async: !!this["~standard"].async\n },\n path: [],\n schemaErrorMap: this._def.errorMap,\n parent: null,\n data,\n parsedType: getParsedType2(data)\n };\n if (!this["~standard"].async) {\n try {\n const result = this._parseSync({ data, path: [], parent: ctx });\n return isValid(result) ? {\n value: result.value\n } : {\n issues: ctx.common.issues\n };\n } catch (err) {\n if (err?.message?.toLowerCase()?.includes("encountered")) {\n this["~standard"].async = true;\n }\n ctx.common = {\n issues: [],\n async: true\n };\n }\n }\n return this._parseAsync({ data, path: [], parent: ctx }).then((result) => isValid(result) ? {\n value: result.value\n } : {\n issues: ctx.common.issues\n });\n }\n async parseAsync(data, params) {\n const result = await this.safeParseAsync(data, params);\n if (result.success)\n return result.data;\n throw result.error;\n }\n async safeParseAsync(data, params) {\n const ctx = {\n common: {\n issues: [],\n contextualErrorMap: params?.errorMap,\n async: true\n },\n path: params?.path || [],\n schemaErrorMap: this._def.errorMap,\n parent: null,\n data,\n parsedType: getParsedType2(data)\n };\n const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });\n const result = await (isAsync(maybeAsyncResult) ? maybeAsyncResult : Promise.resolve(maybeAsyncResult));\n return handleResult(ctx, result);\n }\n refine(check2, message) {\n const getIssueProperties = (val) => {\n if (typeof message === "string" || typeof message === "undefined") {\n return { message };\n } else if (typeof message === "function") {\n return message(val);\n } else {\n return message;\n }\n };\n return this._refinement((val, ctx) => {\n const result = check2(val);\n const setError = () => ctx.addIssue({\n code: ZodIssueCode2.custom,\n ...getIssueProperties(val)\n });\n if (typeof Promise !== "undefined" && result instanceof Promise) {\n return result.then((data) => {\n if (!data) {\n setError();\n return false;\n } else {\n return true;\n }\n });\n }\n if (!result) {\n setError();\n return false;\n } else {\n return true;\n }\n });\n }\n refinement(check2, refinementData) {\n return this._refinement((val, ctx) => {\n if (!check2(val)) {\n ctx.addIssue(typeof refinementData === "function" ? refinementData(val, ctx) : refinementData);\n return false;\n } else {\n return true;\n }\n });\n }\n _refinement(refinement) {\n return new ZodEffects({\n schema: this,\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n effect: { type: "refinement", refinement }\n });\n }\n superRefine(refinement) {\n return this._refinement(refinement);\n }\n constructor(def) {\n this.spa = this.safeParseAsync;\n this._def = def;\n this.parse = this.parse.bind(this);\n this.safeParse = this.safeParse.bind(this);\n this.parseAsync = this.parseAsync.bind(this);\n this.safeParseAsync = this.safeParseAsync.bind(this);\n this.spa = this.spa.bind(this);\n this.refine = this.refine.bind(this);\n this.refinement = this.refinement.bind(this);\n this.superRefine = this.superRefine.bind(this);\n this.optional = this.optional.bind(this);\n this.nullable = this.nullable.bind(this);\n this.nullish = this.nullish.bind(this);\n this.array = this.array.bind(this);\n this.promise = this.promise.bind(this);\n this.or = this.or.bind(this);\n this.and = this.and.bind(this);\n this.transform = this.transform.bind(this);\n this.brand = this.brand.bind(this);\n this.default = this.default.bind(this);\n this.catch = this.catch.bind(this);\n this.describe = this.describe.bind(this);\n this.pipe = this.pipe.bind(this);\n this.readonly = this.readonly.bind(this);\n this.isNullable = this.isNullable.bind(this);\n this.isOptional = this.isOptional.bind(this);\n this["~standard"] = {\n version: 1,\n vendor: "zod",\n validate: (data) => this["~validate"](data)\n };\n }\n optional() {\n return ZodOptional2.create(this, this._def);\n }\n nullable() {\n return ZodNullable2.create(this, this._def);\n }\n nullish() {\n return this.nullable().optional();\n }\n array() {\n return ZodArray2.create(this);\n }\n promise() {\n return ZodPromise2.create(this, this._def);\n }\n or(option) {\n return ZodUnion2.create([this, option], this._def);\n }\n and(incoming) {\n return ZodIntersection2.create(this, incoming, this._def);\n }\n transform(transform2) {\n return new ZodEffects({\n ...processCreateParams(this._def),\n schema: this,\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n effect: { type: "transform", transform: transform2 }\n });\n }\n default(def) {\n const defaultValueFunc = typeof def === "function" ? def : () => def;\n return new ZodDefault2({\n ...processCreateParams(this._def),\n innerType: this,\n defaultValue: defaultValueFunc,\n typeName: ZodFirstPartyTypeKind.ZodDefault\n });\n }\n brand() {\n return new ZodBranded({\n typeName: ZodFirstPartyTypeKind.ZodBranded,\n type: this,\n ...processCreateParams(this._def)\n });\n }\n catch(def) {\n const catchValueFunc = typeof def === "function" ? def : () => def;\n return new ZodCatch2({\n ...processCreateParams(this._def),\n innerType: this,\n catchValue: catchValueFunc,\n typeName: ZodFirstPartyTypeKind.ZodCatch\n });\n }\n describe(description) {\n const This = this.constructor;\n return new This({\n ...this._def,\n description\n });\n }\n pipe(target) {\n return ZodPipeline.create(this, target);\n }\n readonly() {\n return ZodReadonly2.create(this);\n }\n isOptional() {\n return this.safeParse(undefined).success;\n }\n isNullable() {\n return this.safeParse(null).success;\n }\n}\nvar cuidRegex = /^c[^\\s-]{8,}$/i;\nvar cuid2Regex = /^[0-9a-z]+$/;\nvar ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/i;\nvar uuidRegex = /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/i;\nvar nanoidRegex = /^[a-z0-9_-]{21}$/i;\nvar jwtRegex = /^[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]*$/;\nvar durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\\d+Y)|(?:[-+]?\\d+[.,]\\d+Y$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:(?:[-+]?\\d+W)|(?:[-+]?\\d+[.,]\\d+W$))?(?:(?:[-+]?\\d+D)|(?:[-+]?\\d+[.,]\\d+D$))?(?:T(?=[\\d+-])(?:(?:[-+]?\\d+H)|(?:[-+]?\\d+[.,]\\d+H$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:[-+]?\\d+(?:[.,]\\d+)?S)?)??$/;\nvar emailRegex = /^(?!\\.)(?!.*\\.\\.)([A-Z0-9_\'+\\-\\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\\-]*\\.)+[A-Z]{2,}$/i;\nvar _emojiRegex = `^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$`;\nvar emojiRegex;\nvar ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;\nvar ipv4CidrRegex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\/(3[0-2]|[12]?[0-9])$/;\nvar ipv6Regex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/;\nvar ipv6CidrRegex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;\nvar base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;\nvar base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/;\nvar dateRegexSource = `((\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\\\d|30)|(02)-(0[1-9]|1\\\\d|2[0-8])))`;\nvar dateRegex = new RegExp(`^${dateRegexSource}$`);\nfunction timeRegexSource(args) {\n let secondsRegexSource = `[0-5]\\\\d`;\n if (args.precision) {\n secondsRegexSource = `${secondsRegexSource}\\\\.\\\\d{${args.precision}}`;\n } else if (args.precision == null) {\n secondsRegexSource = `${secondsRegexSource}(\\\\.\\\\d+)?`;\n }\n const secondsQuantifier = args.precision ? "+" : "?";\n return `([01]\\\\d|2[0-3]):[0-5]\\\\d(:${secondsRegexSource})${secondsQuantifier}`;\n}\nfunction timeRegex(args) {\n return new RegExp(`^${timeRegexSource(args)}$`);\n}\nfunction datetimeRegex(args) {\n let regex = `${dateRegexSource}T${timeRegexSource(args)}`;\n const opts = [];\n opts.push(args.local ? `Z?` : `Z`);\n if (args.offset)\n opts.push(`([+-]\\\\d{2}:?\\\\d{2})`);\n regex = `${regex}(${opts.join("|")})`;\n return new RegExp(`^${regex}$`);\n}\nfunction isValidIP(ip, version2) {\n if ((version2 === "v4" || !version2) && ipv4Regex.test(ip)) {\n return true;\n }\n if ((version2 === "v6" || !version2) && ipv6Regex.test(ip)) {\n return true;\n }\n return false;\n}\nfunction isValidJWT2(jwt2, alg) {\n if (!jwtRegex.test(jwt2))\n return false;\n try {\n const [header] = jwt2.split(".");\n const base643 = header.replace(/-/g, "+").replace(/_/g, "/").padEnd(header.length + (4 - header.length % 4) % 4, "=");\n const decoded = JSON.parse(atob(base643));\n if (typeof decoded !== "object" || decoded === null)\n return false;\n if ("typ" in decoded && decoded?.typ !== "JWT")\n return false;\n if (!decoded.alg)\n return false;\n if (alg && decoded.alg !== alg)\n return false;\n return true;\n } catch {\n return false;\n }\n}\nfunction isValidCidr(ip, version2) {\n if ((version2 === "v4" || !version2) && ipv4CidrRegex.test(ip)) {\n return true;\n }\n if ((version2 === "v6" || !version2) && ipv6CidrRegex.test(ip)) {\n return true;\n }\n return false;\n}\n\nclass ZodString2 extends ZodType2 {\n _parse(input) {\n if (this._def.coerce) {\n input.data = String(input.data);\n }\n const parsedType3 = this._getType(input);\n if (parsedType3 !== ZodParsedType.string) {\n const ctx2 = this._getOrReturnCtx(input);\n addIssueToContext(ctx2, {\n code: ZodIssueCode2.invalid_type,\n expected: ZodParsedType.string,\n received: ctx2.parsedType\n });\n return INVALID2;\n }\n const status = new ParseStatus;\n let ctx = undefined;\n for (const check2 of this._def.checks) {\n if (check2.kind === "min") {\n if (input.data.length < check2.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.too_small,\n minimum: check2.value,\n type: "string",\n inclusive: true,\n exact: false,\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "max") {\n if (input.data.length > check2.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.too_big,\n maximum: check2.value,\n type: "string",\n inclusive: true,\n exact: false,\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "length") {\n const tooBig = input.data.length > check2.value;\n const tooSmall = input.data.length < check2.value;\n if (tooBig || tooSmall) {\n ctx = this._getOrReturnCtx(input, ctx);\n if (tooBig) {\n addIssueToContext(ctx, {\n code: ZodIssueCode2.too_big,\n maximum: check2.value,\n type: "string",\n inclusive: true,\n exact: true,\n message: check2.message\n });\n } else if (tooSmall) {\n addIssueToContext(ctx, {\n code: ZodIssueCode2.too_small,\n minimum: check2.value,\n type: "string",\n inclusive: true,\n exact: true,\n message: check2.message\n });\n }\n status.dirty();\n }\n } else if (check2.kind === "email") {\n if (!emailRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: "email",\n code: ZodIssueCode2.invalid_string,\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "emoji") {\n if (!emojiRegex) {\n emojiRegex = new RegExp(_emojiRegex, "u");\n }\n if (!emojiRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: "emoji",\n code: ZodIssueCode2.invalid_string,\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "uuid") {\n if (!uuidRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: "uuid",\n code: ZodIssueCode2.invalid_string,\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "nanoid") {\n if (!nanoidRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: "nanoid",\n code: ZodIssueCode2.invalid_string,\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "cuid") {\n if (!cuidRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: "cuid",\n code: ZodIssueCode2.invalid_string,\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "cuid2") {\n if (!cuid2Regex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: "cuid2",\n code: ZodIssueCode2.invalid_string,\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "ulid") {\n if (!ulidRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: "ulid",\n code: ZodIssueCode2.invalid_string,\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "url") {\n try {\n new URL(input.data);\n } catch {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: "url",\n code: ZodIssueCode2.invalid_string,\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "regex") {\n check2.regex.lastIndex = 0;\n const testResult = check2.regex.test(input.data);\n if (!testResult) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: "regex",\n code: ZodIssueCode2.invalid_string,\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "trim") {\n input.data = input.data.trim();\n } else if (check2.kind === "includes") {\n if (!input.data.includes(check2.value, check2.position)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_string,\n validation: { includes: check2.value, position: check2.position },\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "toLowerCase") {\n input.data = input.data.toLowerCase();\n } else if (check2.kind === "toUpperCase") {\n input.data = input.data.toUpperCase();\n } else if (check2.kind === "startsWith") {\n if (!input.data.startsWith(check2.value)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_string,\n validation: { startsWith: check2.value },\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "endsWith") {\n if (!input.data.endsWith(check2.value)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_string,\n validation: { endsWith: check2.value },\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "datetime") {\n const regex = datetimeRegex(check2);\n if (!regex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_string,\n validation: "datetime",\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "date") {\n const regex = dateRegex;\n if (!regex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_string,\n validation: "date",\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "time") {\n const regex = timeRegex(check2);\n if (!regex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_string,\n validation: "time",\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "duration") {\n if (!durationRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: "duration",\n code: ZodIssueCode2.invalid_string,\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "ip") {\n if (!isValidIP(input.data, check2.version)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: "ip",\n code: ZodIssueCode2.invalid_string,\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "jwt") {\n if (!isValidJWT2(input.data, check2.alg)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: "jwt",\n code: ZodIssueCode2.invalid_string,\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "cidr") {\n if (!isValidCidr(input.data, check2.version)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: "cidr",\n code: ZodIssueCode2.invalid_string,\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "base64") {\n if (!base64Regex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: "base64",\n code: ZodIssueCode2.invalid_string,\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "base64url") {\n if (!base64urlRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: "base64url",\n code: ZodIssueCode2.invalid_string,\n message: check2.message\n });\n status.dirty();\n }\n } else {\n util.assertNever(check2);\n }\n }\n return { status: status.value, value: input.data };\n }\n _regex(regex, validation, message) {\n return this.refinement((data) => regex.test(data), {\n validation,\n code: ZodIssueCode2.invalid_string,\n ...errorUtil.errToObj(message)\n });\n }\n _addCheck(check2) {\n return new ZodString2({\n ...this._def,\n checks: [...this._def.checks, check2]\n });\n }\n email(message) {\n return this._addCheck({ kind: "email", ...errorUtil.errToObj(message) });\n }\n url(message) {\n return this._addCheck({ kind: "url", ...errorUtil.errToObj(message) });\n }\n emoji(message) {\n return this._addCheck({ kind: "emoji", ...errorUtil.errToObj(message) });\n }\n uuid(message) {\n return this._addCheck({ kind: "uuid", ...errorUtil.errToObj(message) });\n }\n nanoid(message) {\n return this._addCheck({ kind: "nanoid", ...errorUtil.errToObj(message) });\n }\n cuid(message) {\n return this._addCheck({ kind: "cuid", ...errorUtil.errToObj(message) });\n }\n cuid2(message) {\n return this._addCheck({ kind: "cuid2", ...errorUtil.errToObj(message) });\n }\n ulid(message) {\n return this._addCheck({ kind: "ulid", ...errorUtil.errToObj(message) });\n }\n base64(message) {\n return this._addCheck({ kind: "base64", ...errorUtil.errToObj(message) });\n }\n base64url(message) {\n return this._addCheck({\n kind: "base64url",\n ...errorUtil.errToObj(message)\n });\n }\n jwt(options) {\n return this._addCheck({ kind: "jwt", ...errorUtil.errToObj(options) });\n }\n ip(options) {\n return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) });\n }\n cidr(options) {\n return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });\n }\n datetime(options) {\n if (typeof options === "string") {\n return this._addCheck({\n kind: "datetime",\n precision: null,\n offset: false,\n local: false,\n message: options\n });\n }\n return this._addCheck({\n kind: "datetime",\n precision: typeof options?.precision === "undefined" ? null : options?.precision,\n offset: options?.offset ?? false,\n local: options?.local ?? false,\n ...errorUtil.errToObj(options?.message)\n });\n }\n date(message) {\n return this._addCheck({ kind: "date", message });\n }\n time(options) {\n if (typeof options === "string") {\n return this._addCheck({\n kind: "time",\n precision: null,\n message: options\n });\n }\n return this._addCheck({\n kind: "time",\n precision: typeof options?.precision === "undefined" ? null : options?.precision,\n ...errorUtil.errToObj(options?.message)\n });\n }\n duration(message) {\n return this._addCheck({ kind: "duration", ...errorUtil.errToObj(message) });\n }\n regex(regex, message) {\n return this._addCheck({\n kind: "regex",\n regex,\n ...errorUtil.errToObj(message)\n });\n }\n includes(value, options) {\n return this._addCheck({\n kind: "includes",\n value,\n position: options?.position,\n ...errorUtil.errToObj(options?.message)\n });\n }\n startsWith(value, message) {\n return this._addCheck({\n kind: "startsWith",\n value,\n ...errorUtil.errToObj(message)\n });\n }\n endsWith(value, message) {\n return this._addCheck({\n kind: "endsWith",\n value,\n ...errorUtil.errToObj(message)\n });\n }\n min(minLength, message) {\n return this._addCheck({\n kind: "min",\n value: minLength,\n ...errorUtil.errToObj(message)\n });\n }\n max(maxLength, message) {\n return this._addCheck({\n kind: "max",\n value: maxLength,\n ...errorUtil.errToObj(message)\n });\n }\n length(len, message) {\n return this._addCheck({\n kind: "length",\n value: len,\n ...errorUtil.errToObj(message)\n });\n }\n nonempty(message) {\n return this.min(1, errorUtil.errToObj(message));\n }\n trim() {\n return new ZodString2({\n ...this._def,\n checks: [...this._def.checks, { kind: "trim" }]\n });\n }\n toLowerCase() {\n return new ZodString2({\n ...this._def,\n checks: [...this._def.checks, { kind: "toLowerCase" }]\n });\n }\n toUpperCase() {\n return new ZodString2({\n ...this._def,\n checks: [...this._def.checks, { kind: "toUpperCase" }]\n });\n }\n get isDatetime() {\n return !!this._def.checks.find((ch) => ch.kind === "datetime");\n }\n get isDate() {\n return !!this._def.checks.find((ch) => ch.kind === "date");\n }\n get isTime() {\n return !!this._def.checks.find((ch) => ch.kind === "time");\n }\n get isDuration() {\n return !!this._def.checks.find((ch) => ch.kind === "duration");\n }\n get isEmail() {\n return !!this._def.checks.find((ch) => ch.kind === "email");\n }\n get isURL() {\n return !!this._def.checks.find((ch) => ch.kind === "url");\n }\n get isEmoji() {\n return !!this._def.checks.find((ch) => ch.kind === "emoji");\n }\n get isUUID() {\n return !!this._def.checks.find((ch) => ch.kind === "uuid");\n }\n get isNANOID() {\n return !!this._def.checks.find((ch) => ch.kind === "nanoid");\n }\n get isCUID() {\n return !!this._def.checks.find((ch) => ch.kind === "cuid");\n }\n get isCUID2() {\n return !!this._def.checks.find((ch) => ch.kind === "cuid2");\n }\n get isULID() {\n return !!this._def.checks.find((ch) => ch.kind === "ulid");\n }\n get isIP() {\n return !!this._def.checks.find((ch) => ch.kind === "ip");\n }\n get isCIDR() {\n return !!this._def.checks.find((ch) => ch.kind === "cidr");\n }\n get isBase64() {\n return !!this._def.checks.find((ch) => ch.kind === "base64");\n }\n get isBase64url() {\n return !!this._def.checks.find((ch) => ch.kind === "base64url");\n }\n get minLength() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === "min") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min;\n }\n get maxLength() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === "max") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max;\n }\n}\nZodString2.create = (params) => {\n return new ZodString2({\n checks: [],\n typeName: ZodFirstPartyTypeKind.ZodString,\n coerce: params?.coerce ?? false,\n ...processCreateParams(params)\n });\n};\nfunction floatSafeRemainder2(val, step) {\n const valDecCount = (val.toString().split(".")[1] || "").length;\n const stepDecCount = (step.toString().split(".")[1] || "").length;\n const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;\n const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));\n const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));\n return valInt % stepInt / 10 ** decCount;\n}\n\nclass ZodNumber2 extends ZodType2 {\n constructor() {\n super(...arguments);\n this.min = this.gte;\n this.max = this.lte;\n this.step = this.multipleOf;\n }\n _parse(input) {\n if (this._def.coerce) {\n input.data = Number(input.data);\n }\n const parsedType3 = this._getType(input);\n if (parsedType3 !== ZodParsedType.number) {\n const ctx2 = this._getOrReturnCtx(input);\n addIssueToContext(ctx2, {\n code: ZodIssueCode2.invalid_type,\n expected: ZodParsedType.number,\n received: ctx2.parsedType\n });\n return INVALID2;\n }\n let ctx = undefined;\n const status = new ParseStatus;\n for (const check2 of this._def.checks) {\n if (check2.kind === "int") {\n if (!util.isInteger(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_type,\n expected: "integer",\n received: "float",\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "min") {\n const tooSmall = check2.inclusive ? input.data < check2.value : input.data <= check2.value;\n if (tooSmall) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.too_small,\n minimum: check2.value,\n type: "number",\n inclusive: check2.inclusive,\n exact: false,\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "max") {\n const tooBig = check2.inclusive ? input.data > check2.value : input.data >= check2.value;\n if (tooBig) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.too_big,\n maximum: check2.value,\n type: "number",\n inclusive: check2.inclusive,\n exact: false,\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "multipleOf") {\n if (floatSafeRemainder2(input.data, check2.value) !== 0) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.not_multiple_of,\n multipleOf: check2.value,\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "finite") {\n if (!Number.isFinite(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.not_finite,\n message: check2.message\n });\n status.dirty();\n }\n } else {\n util.assertNever(check2);\n }\n }\n return { status: status.value, value: input.data };\n }\n gte(value, message) {\n return this.setLimit("min", value, true, errorUtil.toString(message));\n }\n gt(value, message) {\n return this.setLimit("min", value, false, errorUtil.toString(message));\n }\n lte(value, message) {\n return this.setLimit("max", value, true, errorUtil.toString(message));\n }\n lt(value, message) {\n return this.setLimit("max", value, false, errorUtil.toString(message));\n }\n setLimit(kind, value, inclusive, message) {\n return new ZodNumber2({\n ...this._def,\n checks: [\n ...this._def.checks,\n {\n kind,\n value,\n inclusive,\n message: errorUtil.toString(message)\n }\n ]\n });\n }\n _addCheck(check2) {\n return new ZodNumber2({\n ...this._def,\n checks: [...this._def.checks, check2]\n });\n }\n int(message) {\n return this._addCheck({\n kind: "int",\n message: errorUtil.toString(message)\n });\n }\n positive(message) {\n return this._addCheck({\n kind: "min",\n value: 0,\n inclusive: false,\n message: errorUtil.toString(message)\n });\n }\n negative(message) {\n return this._addCheck({\n kind: "max",\n value: 0,\n inclusive: false,\n message: errorUtil.toString(message)\n });\n }\n nonpositive(message) {\n return this._addCheck({\n kind: "max",\n value: 0,\n inclusive: true,\n message: errorUtil.toString(message)\n });\n }\n nonnegative(message) {\n return this._addCheck({\n kind: "min",\n value: 0,\n inclusive: true,\n message: errorUtil.toString(message)\n });\n }\n multipleOf(value, message) {\n return this._addCheck({\n kind: "multipleOf",\n value,\n message: errorUtil.toString(message)\n });\n }\n finite(message) {\n return this._addCheck({\n kind: "finite",\n message: errorUtil.toString(message)\n });\n }\n safe(message) {\n return this._addCheck({\n kind: "min",\n inclusive: true,\n value: Number.MIN_SAFE_INTEGER,\n message: errorUtil.toString(message)\n })._addCheck({\n kind: "max",\n inclusive: true,\n value: Number.MAX_SAFE_INTEGER,\n message: errorUtil.toString(message)\n });\n }\n get minValue() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === "min") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min;\n }\n get maxValue() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === "max") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max;\n }\n get isInt() {\n return !!this._def.checks.find((ch) => ch.kind === "int" || ch.kind === "multipleOf" && util.isInteger(ch.value));\n }\n get isFinite() {\n let max = null;\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {\n return true;\n } else if (ch.kind === "min") {\n if (min === null || ch.value > min)\n min = ch.value;\n } else if (ch.kind === "max") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return Number.isFinite(min) && Number.isFinite(max);\n }\n}\nZodNumber2.create = (params) => {\n return new ZodNumber2({\n checks: [],\n typeName: ZodFirstPartyTypeKind.ZodNumber,\n coerce: params?.coerce || false,\n ...processCreateParams(params)\n });\n};\n\nclass ZodBigInt2 extends ZodType2 {\n constructor() {\n super(...arguments);\n this.min = this.gte;\n this.max = this.lte;\n }\n _parse(input) {\n if (this._def.coerce) {\n try {\n input.data = BigInt(input.data);\n } catch {\n return this._getInvalidInput(input);\n }\n }\n const parsedType3 = this._getType(input);\n if (parsedType3 !== ZodParsedType.bigint) {\n return this._getInvalidInput(input);\n }\n let ctx = undefined;\n const status = new ParseStatus;\n for (const check2 of this._def.checks) {\n if (check2.kind === "min") {\n const tooSmall = check2.inclusive ? input.data < check2.value : input.data <= check2.value;\n if (tooSmall) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.too_small,\n type: "bigint",\n minimum: check2.value,\n inclusive: check2.inclusive,\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "max") {\n const tooBig = check2.inclusive ? input.data > check2.value : input.data >= check2.value;\n if (tooBig) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.too_big,\n type: "bigint",\n maximum: check2.value,\n inclusive: check2.inclusive,\n message: check2.message\n });\n status.dirty();\n }\n } else if (check2.kind === "multipleOf") {\n if (input.data % check2.value !== BigInt(0)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.not_multiple_of,\n multipleOf: check2.value,\n message: check2.message\n });\n status.dirty();\n }\n } else {\n util.assertNever(check2);\n }\n }\n return { status: status.value, value: input.data };\n }\n _getInvalidInput(input) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_type,\n expected: ZodParsedType.bigint,\n received: ctx.parsedType\n });\n return INVALID2;\n }\n gte(value, message) {\n return this.setLimit("min", value, true, errorUtil.toString(message));\n }\n gt(value, message) {\n return this.setLimit("min", value, false, errorUtil.toString(message));\n }\n lte(value, message) {\n return this.setLimit("max", value, true, errorUtil.toString(message));\n }\n lt(value, message) {\n return this.setLimit("max", value, false, errorUtil.toString(message));\n }\n setLimit(kind, value, inclusive, message) {\n return new ZodBigInt2({\n ...this._def,\n checks: [\n ...this._def.checks,\n {\n kind,\n value,\n inclusive,\n message: errorUtil.toString(message)\n }\n ]\n });\n }\n _addCheck(check2) {\n return new ZodBigInt2({\n ...this._def,\n checks: [...this._def.checks, check2]\n });\n }\n positive(message) {\n return this._addCheck({\n kind: "min",\n value: BigInt(0),\n inclusive: false,\n message: errorUtil.toString(message)\n });\n }\n negative(message) {\n return this._addCheck({\n kind: "max",\n value: BigInt(0),\n inclusive: false,\n message: errorUtil.toString(message)\n });\n }\n nonpositive(message) {\n return this._addCheck({\n kind: "max",\n value: BigInt(0),\n inclusive: true,\n message: errorUtil.toString(message)\n });\n }\n nonnegative(message) {\n return this._addCheck({\n kind: "min",\n value: BigInt(0),\n inclusive: true,\n message: errorUtil.toString(message)\n });\n }\n multipleOf(value, message) {\n return this._addCheck({\n kind: "multipleOf",\n value,\n message: errorUtil.toString(message)\n });\n }\n get minValue() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === "min") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min;\n }\n get maxValue() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === "max") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max;\n }\n}\nZodBigInt2.create = (params) => {\n return new ZodBigInt2({\n checks: [],\n typeName: ZodFirstPartyTypeKind.ZodBigInt,\n coerce: params?.coerce ?? false,\n ...processCreateParams(params)\n });\n};\n\nclass ZodBoolean2 extends ZodType2 {\n _parse(input) {\n if (this._def.coerce) {\n input.data = Boolean(input.data);\n }\n const parsedType3 = this._getType(input);\n if (parsedType3 !== ZodParsedType.boolean) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_type,\n expected: ZodParsedType.boolean,\n received: ctx.parsedType\n });\n return INVALID2;\n }\n return OK(input.data);\n }\n}\nZodBoolean2.create = (params) => {\n return new ZodBoolean2({\n typeName: ZodFirstPartyTypeKind.ZodBoolean,\n coerce: params?.coerce || false,\n ...processCreateParams(params)\n });\n};\n\nclass ZodDate2 extends ZodType2 {\n _parse(input) {\n if (this._def.coerce) {\n input.data = new Date(input.data);\n }\n const parsedType3 = this._getType(input);\n if (parsedType3 !== ZodParsedType.date) {\n const ctx2 = this._getOrReturnCtx(input);\n addIssueToContext(ctx2, {\n code: ZodIssueCode2.invalid_type,\n expected: ZodParsedType.date,\n received: ctx2.parsedType\n });\n return INVALID2;\n }\n if (Number.isNaN(input.data.getTime())) {\n const ctx2 = this._getOrReturnCtx(input);\n addIssueToContext(ctx2, {\n code: ZodIssueCode2.invalid_date\n });\n return INVALID2;\n }\n const status = new ParseStatus;\n let ctx = undefined;\n for (const check2 of this._def.checks) {\n if (check2.kind === "min") {\n if (input.data.getTime() < check2.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.too_small,\n message: check2.message,\n inclusive: true,\n exact: false,\n minimum: check2.value,\n type: "date"\n });\n status.dirty();\n }\n } else if (check2.kind === "max") {\n if (input.data.getTime() > check2.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.too_big,\n message: check2.message,\n inclusive: true,\n exact: false,\n maximum: check2.value,\n type: "date"\n });\n status.dirty();\n }\n } else {\n util.assertNever(check2);\n }\n }\n return {\n status: status.value,\n value: new Date(input.data.getTime())\n };\n }\n _addCheck(check2) {\n return new ZodDate2({\n ...this._def,\n checks: [...this._def.checks, check2]\n });\n }\n min(minDate, message) {\n return this._addCheck({\n kind: "min",\n value: minDate.getTime(),\n message: errorUtil.toString(message)\n });\n }\n max(maxDate, message) {\n return this._addCheck({\n kind: "max",\n value: maxDate.getTime(),\n message: errorUtil.toString(message)\n });\n }\n get minDate() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === "min") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min != null ? new Date(min) : null;\n }\n get maxDate() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === "max") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max != null ? new Date(max) : null;\n }\n}\nZodDate2.create = (params) => {\n return new ZodDate2({\n checks: [],\n coerce: params?.coerce || false,\n typeName: ZodFirstPartyTypeKind.ZodDate,\n ...processCreateParams(params)\n });\n};\n\nclass ZodSymbol2 extends ZodType2 {\n _parse(input) {\n const parsedType3 = this._getType(input);\n if (parsedType3 !== ZodParsedType.symbol) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_type,\n expected: ZodParsedType.symbol,\n received: ctx.parsedType\n });\n return INVALID2;\n }\n return OK(input.data);\n }\n}\nZodSymbol2.create = (params) => {\n return new ZodSymbol2({\n typeName: ZodFirstPartyTypeKind.ZodSymbol,\n ...processCreateParams(params)\n });\n};\n\nclass ZodUndefined2 extends ZodType2 {\n _parse(input) {\n const parsedType3 = this._getType(input);\n if (parsedType3 !== ZodParsedType.undefined) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_type,\n expected: ZodParsedType.undefined,\n received: ctx.parsedType\n });\n return INVALID2;\n }\n return OK(input.data);\n }\n}\nZodUndefined2.create = (params) => {\n return new ZodUndefined2({\n typeName: ZodFirstPartyTypeKind.ZodUndefined,\n ...processCreateParams(params)\n });\n};\n\nclass ZodNull2 extends ZodType2 {\n _parse(input) {\n const parsedType3 = this._getType(input);\n if (parsedType3 !== ZodParsedType.null) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_type,\n expected: ZodParsedType.null,\n received: ctx.parsedType\n });\n return INVALID2;\n }\n return OK(input.data);\n }\n}\nZodNull2.create = (params) => {\n return new ZodNull2({\n typeName: ZodFirstPartyTypeKind.ZodNull,\n ...processCreateParams(params)\n });\n};\n\nclass ZodAny2 extends ZodType2 {\n constructor() {\n super(...arguments);\n this._any = true;\n }\n _parse(input) {\n return OK(input.data);\n }\n}\nZodAny2.create = (params) => {\n return new ZodAny2({\n typeName: ZodFirstPartyTypeKind.ZodAny,\n ...processCreateParams(params)\n });\n};\n\nclass ZodUnknown2 extends ZodType2 {\n constructor() {\n super(...arguments);\n this._unknown = true;\n }\n _parse(input) {\n return OK(input.data);\n }\n}\nZodUnknown2.create = (params) => {\n return new ZodUnknown2({\n typeName: ZodFirstPartyTypeKind.ZodUnknown,\n ...processCreateParams(params)\n });\n};\n\nclass ZodNever2 extends ZodType2 {\n _parse(input) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_type,\n expected: ZodParsedType.never,\n received: ctx.parsedType\n });\n return INVALID2;\n }\n}\nZodNever2.create = (params) => {\n return new ZodNever2({\n typeName: ZodFirstPartyTypeKind.ZodNever,\n ...processCreateParams(params)\n });\n};\n\nclass ZodVoid2 extends ZodType2 {\n _parse(input) {\n const parsedType3 = this._getType(input);\n if (parsedType3 !== ZodParsedType.undefined) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_type,\n expected: ZodParsedType.void,\n received: ctx.parsedType\n });\n return INVALID2;\n }\n return OK(input.data);\n }\n}\nZodVoid2.create = (params) => {\n return new ZodVoid2({\n typeName: ZodFirstPartyTypeKind.ZodVoid,\n ...processCreateParams(params)\n });\n};\n\nclass ZodArray2 extends ZodType2 {\n _parse(input) {\n const { ctx, status } = this._processInputParams(input);\n const def = this._def;\n if (ctx.parsedType !== ZodParsedType.array) {\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_type,\n expected: ZodParsedType.array,\n received: ctx.parsedType\n });\n return INVALID2;\n }\n if (def.exactLength !== null) {\n const tooBig = ctx.data.length > def.exactLength.value;\n const tooSmall = ctx.data.length < def.exactLength.value;\n if (tooBig || tooSmall) {\n addIssueToContext(ctx, {\n code: tooBig ? ZodIssueCode2.too_big : ZodIssueCode2.too_small,\n minimum: tooSmall ? def.exactLength.value : undefined,\n maximum: tooBig ? def.exactLength.value : undefined,\n type: "array",\n inclusive: true,\n exact: true,\n message: def.exactLength.message\n });\n status.dirty();\n }\n }\n if (def.minLength !== null) {\n if (ctx.data.length < def.minLength.value) {\n addIssueToContext(ctx, {\n code: ZodIssueCode2.too_small,\n minimum: def.minLength.value,\n type: "array",\n inclusive: true,\n exact: false,\n message: def.minLength.message\n });\n status.dirty();\n }\n }\n if (def.maxLength !== null) {\n if (ctx.data.length > def.maxLength.value) {\n addIssueToContext(ctx, {\n code: ZodIssueCode2.too_big,\n maximum: def.maxLength.value,\n type: "array",\n inclusive: true,\n exact: false,\n message: def.maxLength.message\n });\n status.dirty();\n }\n }\n if (ctx.common.async) {\n return Promise.all([...ctx.data].map((item, i2) => {\n return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i2));\n })).then((result2) => {\n return ParseStatus.mergeArray(status, result2);\n });\n }\n const result = [...ctx.data].map((item, i2) => {\n return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i2));\n });\n return ParseStatus.mergeArray(status, result);\n }\n get element() {\n return this._def.type;\n }\n min(minLength, message) {\n return new ZodArray2({\n ...this._def,\n minLength: { value: minLength, message: errorUtil.toString(message) }\n });\n }\n max(maxLength, message) {\n return new ZodArray2({\n ...this._def,\n maxLength: { value: maxLength, message: errorUtil.toString(message) }\n });\n }\n length(len, message) {\n return new ZodArray2({\n ...this._def,\n exactLength: { value: len, message: errorUtil.toString(message) }\n });\n }\n nonempty(message) {\n return this.min(1, message);\n }\n}\nZodArray2.create = (schema, params) => {\n return new ZodArray2({\n type: schema,\n minLength: null,\n maxLength: null,\n exactLength: null,\n typeName: ZodFirstPartyTypeKind.ZodArray,\n ...processCreateParams(params)\n });\n};\nfunction deepPartialify(schema) {\n if (schema instanceof ZodObject2) {\n const newShape = {};\n for (const key in schema.shape) {\n const fieldSchema = schema.shape[key];\n newShape[key] = ZodOptional2.create(deepPartialify(fieldSchema));\n }\n return new ZodObject2({\n ...schema._def,\n shape: () => newShape\n });\n } else if (schema instanceof ZodArray2) {\n return new ZodArray2({\n ...schema._def,\n type: deepPartialify(schema.element)\n });\n } else if (schema instanceof ZodOptional2) {\n return ZodOptional2.create(deepPartialify(schema.unwrap()));\n } else if (schema instanceof ZodNullable2) {\n return ZodNullable2.create(deepPartialify(schema.unwrap()));\n } else if (schema instanceof ZodTuple2) {\n return ZodTuple2.create(schema.items.map((item) => deepPartialify(item)));\n } else {\n return schema;\n }\n}\n\nclass ZodObject2 extends ZodType2 {\n constructor() {\n super(...arguments);\n this._cached = null;\n this.nonstrict = this.passthrough;\n this.augment = this.extend;\n }\n _getCached() {\n if (this._cached !== null)\n return this._cached;\n const shape = this._def.shape();\n const keys = util.objectKeys(shape);\n this._cached = { shape, keys };\n return this._cached;\n }\n _parse(input) {\n const parsedType3 = this._getType(input);\n if (parsedType3 !== ZodParsedType.object) {\n const ctx2 = this._getOrReturnCtx(input);\n addIssueToContext(ctx2, {\n code: ZodIssueCode2.invalid_type,\n expected: ZodParsedType.object,\n received: ctx2.parsedType\n });\n return INVALID2;\n }\n const { status, ctx } = this._processInputParams(input);\n const { shape, keys: shapeKeys } = this._getCached();\n const extraKeys = [];\n if (!(this._def.catchall instanceof ZodNever2 && this._def.unknownKeys === "strip")) {\n for (const key in ctx.data) {\n if (!shapeKeys.includes(key)) {\n extraKeys.push(key);\n }\n }\n }\n const pairs = [];\n for (const key of shapeKeys) {\n const keyValidator = shape[key];\n const value = ctx.data[key];\n pairs.push({\n key: { status: "valid", value: key },\n value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),\n alwaysSet: key in ctx.data\n });\n }\n if (this._def.catchall instanceof ZodNever2) {\n const unknownKeys = this._def.unknownKeys;\n if (unknownKeys === "passthrough") {\n for (const key of extraKeys) {\n pairs.push({\n key: { status: "valid", value: key },\n value: { status: "valid", value: ctx.data[key] }\n });\n }\n } else if (unknownKeys === "strict") {\n if (extraKeys.length > 0) {\n addIssueToContext(ctx, {\n code: ZodIssueCode2.unrecognized_keys,\n keys: extraKeys\n });\n status.dirty();\n }\n } else if (unknownKeys === "strip") {} else {\n throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);\n }\n } else {\n const catchall = this._def.catchall;\n for (const key of extraKeys) {\n const value = ctx.data[key];\n pairs.push({\n key: { status: "valid", value: key },\n value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),\n alwaysSet: key in ctx.data\n });\n }\n }\n if (ctx.common.async) {\n return Promise.resolve().then(async () => {\n const syncPairs = [];\n for (const pair of pairs) {\n const key = await pair.key;\n const value = await pair.value;\n syncPairs.push({\n key,\n value,\n alwaysSet: pair.alwaysSet\n });\n }\n return syncPairs;\n }).then((syncPairs) => {\n return ParseStatus.mergeObjectSync(status, syncPairs);\n });\n } else {\n return ParseStatus.mergeObjectSync(status, pairs);\n }\n }\n get shape() {\n return this._def.shape();\n }\n strict(message) {\n errorUtil.errToObj;\n return new ZodObject2({\n ...this._def,\n unknownKeys: "strict",\n ...message !== undefined ? {\n errorMap: (issue2, ctx) => {\n const defaultError = this._def.errorMap?.(issue2, ctx).message ?? ctx.defaultError;\n if (issue2.code === "unrecognized_keys")\n return {\n message: errorUtil.errToObj(message).message ?? defaultError\n };\n return {\n message: defaultError\n };\n }\n } : {}\n });\n }\n strip() {\n return new ZodObject2({\n ...this._def,\n unknownKeys: "strip"\n });\n }\n passthrough() {\n return new ZodObject2({\n ...this._def,\n unknownKeys: "passthrough"\n });\n }\n extend(augmentation) {\n return new ZodObject2({\n ...this._def,\n shape: () => ({\n ...this._def.shape(),\n ...augmentation\n })\n });\n }\n merge(merging) {\n const merged = new ZodObject2({\n unknownKeys: merging._def.unknownKeys,\n catchall: merging._def.catchall,\n shape: () => ({\n ...this._def.shape(),\n ...merging._def.shape()\n }),\n typeName: ZodFirstPartyTypeKind.ZodObject\n });\n return merged;\n }\n setKey(key, schema) {\n return this.augment({ [key]: schema });\n }\n catchall(index) {\n return new ZodObject2({\n ...this._def,\n catchall: index\n });\n }\n pick(mask) {\n const shape = {};\n for (const key of util.objectKeys(mask)) {\n if (mask[key] && this.shape[key]) {\n shape[key] = this.shape[key];\n }\n }\n return new ZodObject2({\n ...this._def,\n shape: () => shape\n });\n }\n omit(mask) {\n const shape = {};\n for (const key of util.objectKeys(this.shape)) {\n if (!mask[key]) {\n shape[key] = this.shape[key];\n }\n }\n return new ZodObject2({\n ...this._def,\n shape: () => shape\n });\n }\n deepPartial() {\n return deepPartialify(this);\n }\n partial(mask) {\n const newShape = {};\n for (const key of util.objectKeys(this.shape)) {\n const fieldSchema = this.shape[key];\n if (mask && !mask[key]) {\n newShape[key] = fieldSchema;\n } else {\n newShape[key] = fieldSchema.optional();\n }\n }\n return new ZodObject2({\n ...this._def,\n shape: () => newShape\n });\n }\n required(mask) {\n const newShape = {};\n for (const key of util.objectKeys(this.shape)) {\n if (mask && !mask[key]) {\n newShape[key] = this.shape[key];\n } else {\n const fieldSchema = this.shape[key];\n let newField = fieldSchema;\n while (newField instanceof ZodOptional2) {\n newField = newField._def.innerType;\n }\n newShape[key] = newField;\n }\n }\n return new ZodObject2({\n ...this._def,\n shape: () => newShape\n });\n }\n keyof() {\n return createZodEnum(util.objectKeys(this.shape));\n }\n}\nZodObject2.create = (shape, params) => {\n return new ZodObject2({\n shape: () => shape,\n unknownKeys: "strip",\n catchall: ZodNever2.create(),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n ...processCreateParams(params)\n });\n};\nZodObject2.strictCreate = (shape, params) => {\n return new ZodObject2({\n shape: () => shape,\n unknownKeys: "strict",\n catchall: ZodNever2.create(),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n ...processCreateParams(params)\n });\n};\nZodObject2.lazycreate = (shape, params) => {\n return new ZodObject2({\n shape,\n unknownKeys: "strip",\n catchall: ZodNever2.create(),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n ...processCreateParams(params)\n });\n};\n\nclass ZodUnion2 extends ZodType2 {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n const options = this._def.options;\n function handleResults(results) {\n for (const result of results) {\n if (result.result.status === "valid") {\n return result.result;\n }\n }\n for (const result of results) {\n if (result.result.status === "dirty") {\n ctx.common.issues.push(...result.ctx.common.issues);\n return result.result;\n }\n }\n const unionErrors = results.map((result) => new ZodError2(result.ctx.common.issues));\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_union,\n unionErrors\n });\n return INVALID2;\n }\n if (ctx.common.async) {\n return Promise.all(options.map(async (option) => {\n const childCtx = {\n ...ctx,\n common: {\n ...ctx.common,\n issues: []\n },\n parent: null\n };\n return {\n result: await option._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: childCtx\n }),\n ctx: childCtx\n };\n })).then(handleResults);\n } else {\n let dirty = undefined;\n const issues = [];\n for (const option of options) {\n const childCtx = {\n ...ctx,\n common: {\n ...ctx.common,\n issues: []\n },\n parent: null\n };\n const result = option._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: childCtx\n });\n if (result.status === "valid") {\n return result;\n } else if (result.status === "dirty" && !dirty) {\n dirty = { result, ctx: childCtx };\n }\n if (childCtx.common.issues.length) {\n issues.push(childCtx.common.issues);\n }\n }\n if (dirty) {\n ctx.common.issues.push(...dirty.ctx.common.issues);\n return dirty.result;\n }\n const unionErrors = issues.map((issues2) => new ZodError2(issues2));\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_union,\n unionErrors\n });\n return INVALID2;\n }\n }\n get options() {\n return this._def.options;\n }\n}\nZodUnion2.create = (types, params) => {\n return new ZodUnion2({\n options: types,\n typeName: ZodFirstPartyTypeKind.ZodUnion,\n ...processCreateParams(params)\n });\n};\nvar getDiscriminator = (type) => {\n if (type instanceof ZodLazy2) {\n return getDiscriminator(type.schema);\n } else if (type instanceof ZodEffects) {\n return getDiscriminator(type.innerType());\n } else if (type instanceof ZodLiteral2) {\n return [type.value];\n } else if (type instanceof ZodEnum2) {\n return type.options;\n } else if (type instanceof ZodNativeEnum) {\n return util.objectValues(type.enum);\n } else if (type instanceof ZodDefault2) {\n return getDiscriminator(type._def.innerType);\n } else if (type instanceof ZodUndefined2) {\n return [undefined];\n } else if (type instanceof ZodNull2) {\n return [null];\n } else if (type instanceof ZodOptional2) {\n return [undefined, ...getDiscriminator(type.unwrap())];\n } else if (type instanceof ZodNullable2) {\n return [null, ...getDiscriminator(type.unwrap())];\n } else if (type instanceof ZodBranded) {\n return getDiscriminator(type.unwrap());\n } else if (type instanceof ZodReadonly2) {\n return getDiscriminator(type.unwrap());\n } else if (type instanceof ZodCatch2) {\n return getDiscriminator(type._def.innerType);\n } else {\n return [];\n }\n};\n\nclass ZodDiscriminatedUnion2 extends ZodType2 {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.object) {\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_type,\n expected: ZodParsedType.object,\n received: ctx.parsedType\n });\n return INVALID2;\n }\n const discriminator = this.discriminator;\n const discriminatorValue = ctx.data[discriminator];\n const option = this.optionsMap.get(discriminatorValue);\n if (!option) {\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_union_discriminator,\n options: Array.from(this.optionsMap.keys()),\n path: [discriminator]\n });\n return INVALID2;\n }\n if (ctx.common.async) {\n return option._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx\n });\n } else {\n return option._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx\n });\n }\n }\n get discriminator() {\n return this._def.discriminator;\n }\n get options() {\n return this._def.options;\n }\n get optionsMap() {\n return this._def.optionsMap;\n }\n static create(discriminator, options, params) {\n const optionsMap = new Map;\n for (const type of options) {\n const discriminatorValues = getDiscriminator(type.shape[discriminator]);\n if (!discriminatorValues.length) {\n throw new Error(`A discriminator value for key \\`${discriminator}\\` could not be extracted from all schema options`);\n }\n for (const value of discriminatorValues) {\n if (optionsMap.has(value)) {\n throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);\n }\n optionsMap.set(value, type);\n }\n }\n return new ZodDiscriminatedUnion2({\n typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,\n discriminator,\n options,\n optionsMap,\n ...processCreateParams(params)\n });\n }\n}\nfunction mergeValues2(a2, b2) {\n const aType = getParsedType2(a2);\n const bType = getParsedType2(b2);\n if (a2 === b2) {\n return { valid: true, data: a2 };\n } else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {\n const bKeys = util.objectKeys(b2);\n const sharedKeys = util.objectKeys(a2).filter((key) => bKeys.indexOf(key) !== -1);\n const newObj = { ...a2, ...b2 };\n for (const key of sharedKeys) {\n const sharedValue = mergeValues2(a2[key], b2[key]);\n if (!sharedValue.valid) {\n return { valid: false };\n }\n newObj[key] = sharedValue.data;\n }\n return { valid: true, data: newObj };\n } else if (aType === ZodParsedType.array && bType === ZodParsedType.array) {\n if (a2.length !== b2.length) {\n return { valid: false };\n }\n const newArray = [];\n for (let index = 0;index < a2.length; index++) {\n const itemA = a2[index];\n const itemB = b2[index];\n const sharedValue = mergeValues2(itemA, itemB);\n if (!sharedValue.valid) {\n return { valid: false };\n }\n newArray.push(sharedValue.data);\n }\n return { valid: true, data: newArray };\n } else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a2 === +b2) {\n return { valid: true, data: a2 };\n } else {\n return { valid: false };\n }\n}\n\nclass ZodIntersection2 extends ZodType2 {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n const handleParsed = (parsedLeft, parsedRight) => {\n if (isAborted(parsedLeft) || isAborted(parsedRight)) {\n return INVALID2;\n }\n const merged = mergeValues2(parsedLeft.value, parsedRight.value);\n if (!merged.valid) {\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_intersection_types\n });\n return INVALID2;\n }\n if (isDirty(parsedLeft) || isDirty(parsedRight)) {\n status.dirty();\n }\n return { status: status.value, value: merged.data };\n };\n if (ctx.common.async) {\n return Promise.all([\n this._def.left._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx\n }),\n this._def.right._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx\n })\n ]).then(([left, right]) => handleParsed(left, right));\n } else {\n return handleParsed(this._def.left._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx\n }), this._def.right._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx\n }));\n }\n }\n}\nZodIntersection2.create = (left, right, params) => {\n return new ZodIntersection2({\n left,\n right,\n typeName: ZodFirstPartyTypeKind.ZodIntersection,\n ...processCreateParams(params)\n });\n};\n\nclass ZodTuple2 extends ZodType2 {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.array) {\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_type,\n expected: ZodParsedType.array,\n received: ctx.parsedType\n });\n return INVALID2;\n }\n if (ctx.data.length < this._def.items.length) {\n addIssueToContext(ctx, {\n code: ZodIssueCode2.too_small,\n minimum: this._def.items.length,\n inclusive: true,\n exact: false,\n type: "array"\n });\n return INVALID2;\n }\n const rest = this._def.rest;\n if (!rest && ctx.data.length > this._def.items.length) {\n addIssueToContext(ctx, {\n code: ZodIssueCode2.too_big,\n maximum: this._def.items.length,\n inclusive: true,\n exact: false,\n type: "array"\n });\n status.dirty();\n }\n const items = [...ctx.data].map((item, itemIndex) => {\n const schema = this._def.items[itemIndex] || this._def.rest;\n if (!schema)\n return null;\n return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));\n }).filter((x2) => !!x2);\n if (ctx.common.async) {\n return Promise.all(items).then((results) => {\n return ParseStatus.mergeArray(status, results);\n });\n } else {\n return ParseStatus.mergeArray(status, items);\n }\n }\n get items() {\n return this._def.items;\n }\n rest(rest) {\n return new ZodTuple2({\n ...this._def,\n rest\n });\n }\n}\nZodTuple2.create = (schemas3, params) => {\n if (!Array.isArray(schemas3)) {\n throw new Error("You must pass an array of schemas to z.tuple([ ... ])");\n }\n return new ZodTuple2({\n items: schemas3,\n typeName: ZodFirstPartyTypeKind.ZodTuple,\n rest: null,\n ...processCreateParams(params)\n });\n};\n\nclass ZodRecord2 extends ZodType2 {\n get keySchema() {\n return this._def.keyType;\n }\n get valueSchema() {\n return this._def.valueType;\n }\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.object) {\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_type,\n expected: ZodParsedType.object,\n received: ctx.parsedType\n });\n return INVALID2;\n }\n const pairs = [];\n const keyType = this._def.keyType;\n const valueType = this._def.valueType;\n for (const key in ctx.data) {\n pairs.push({\n key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),\n value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),\n alwaysSet: key in ctx.data\n });\n }\n if (ctx.common.async) {\n return ParseStatus.mergeObjectAsync(status, pairs);\n } else {\n return ParseStatus.mergeObjectSync(status, pairs);\n }\n }\n get element() {\n return this._def.valueType;\n }\n static create(first, second, third) {\n if (second instanceof ZodType2) {\n return new ZodRecord2({\n keyType: first,\n valueType: second,\n typeName: ZodFirstPartyTypeKind.ZodRecord,\n ...processCreateParams(third)\n });\n }\n return new ZodRecord2({\n keyType: ZodString2.create(),\n valueType: first,\n typeName: ZodFirstPartyTypeKind.ZodRecord,\n ...processCreateParams(second)\n });\n }\n}\n\nclass ZodMap2 extends ZodType2 {\n get keySchema() {\n return this._def.keyType;\n }\n get valueSchema() {\n return this._def.valueType;\n }\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.map) {\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_type,\n expected: ZodParsedType.map,\n received: ctx.parsedType\n });\n return INVALID2;\n }\n const keyType = this._def.keyType;\n const valueType = this._def.valueType;\n const pairs = [...ctx.data.entries()].map(([key, value], index) => {\n return {\n key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, "key"])),\n value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, "value"]))\n };\n });\n if (ctx.common.async) {\n const finalMap = new Map;\n return Promise.resolve().then(async () => {\n for (const pair of pairs) {\n const key = await pair.key;\n const value = await pair.value;\n if (key.status === "aborted" || value.status === "aborted") {\n return INVALID2;\n }\n if (key.status === "dirty" || value.status === "dirty") {\n status.dirty();\n }\n finalMap.set(key.value, value.value);\n }\n return { status: status.value, value: finalMap };\n });\n } else {\n const finalMap = new Map;\n for (const pair of pairs) {\n const key = pair.key;\n const value = pair.value;\n if (key.status === "aborted" || value.status === "aborted") {\n return INVALID2;\n }\n if (key.status === "dirty" || value.status === "dirty") {\n status.dirty();\n }\n finalMap.set(key.value, value.value);\n }\n return { status: status.value, value: finalMap };\n }\n }\n}\nZodMap2.create = (keyType, valueType, params) => {\n return new ZodMap2({\n valueType,\n keyType,\n typeName: ZodFirstPartyTypeKind.ZodMap,\n ...processCreateParams(params)\n });\n};\n\nclass ZodSet2 extends ZodType2 {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.set) {\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_type,\n expected: ZodParsedType.set,\n received: ctx.parsedType\n });\n return INVALID2;\n }\n const def = this._def;\n if (def.minSize !== null) {\n if (ctx.data.size < def.minSize.value) {\n addIssueToContext(ctx, {\n code: ZodIssueCode2.too_small,\n minimum: def.minSize.value,\n type: "set",\n inclusive: true,\n exact: false,\n message: def.minSize.message\n });\n status.dirty();\n }\n }\n if (def.maxSize !== null) {\n if (ctx.data.size > def.maxSize.value) {\n addIssueToContext(ctx, {\n code: ZodIssueCode2.too_big,\n maximum: def.maxSize.value,\n type: "set",\n inclusive: true,\n exact: false,\n message: def.maxSize.message\n });\n status.dirty();\n }\n }\n const valueType = this._def.valueType;\n function finalizeSet(elements2) {\n const parsedSet = new Set;\n for (const element of elements2) {\n if (element.status === "aborted")\n return INVALID2;\n if (element.status === "dirty")\n status.dirty();\n parsedSet.add(element.value);\n }\n return { status: status.value, value: parsedSet };\n }\n const elements = [...ctx.data.values()].map((item, i2) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i2)));\n if (ctx.common.async) {\n return Promise.all(elements).then((elements2) => finalizeSet(elements2));\n } else {\n return finalizeSet(elements);\n }\n }\n min(minSize, message) {\n return new ZodSet2({\n ...this._def,\n minSize: { value: minSize, message: errorUtil.toString(message) }\n });\n }\n max(maxSize, message) {\n return new ZodSet2({\n ...this._def,\n maxSize: { value: maxSize, message: errorUtil.toString(message) }\n });\n }\n size(size, message) {\n return this.min(size, message).max(size, message);\n }\n nonempty(message) {\n return this.min(1, message);\n }\n}\nZodSet2.create = (valueType, params) => {\n return new ZodSet2({\n valueType,\n minSize: null,\n maxSize: null,\n typeName: ZodFirstPartyTypeKind.ZodSet,\n ...processCreateParams(params)\n });\n};\n\nclass ZodFunction extends ZodType2 {\n constructor() {\n super(...arguments);\n this.validate = this.implement;\n }\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.function) {\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_type,\n expected: ZodParsedType.function,\n received: ctx.parsedType\n });\n return INVALID2;\n }\n function makeArgsIssue(args, error38) {\n return makeIssue({\n data: args,\n path: ctx.path,\n errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap2(), en_default2].filter((x2) => !!x2),\n issueData: {\n code: ZodIssueCode2.invalid_arguments,\n argumentsError: error38\n }\n });\n }\n function makeReturnsIssue(returns, error38) {\n return makeIssue({\n data: returns,\n path: ctx.path,\n errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap2(), en_default2].filter((x2) => !!x2),\n issueData: {\n code: ZodIssueCode2.invalid_return_type,\n returnTypeError: error38\n }\n });\n }\n const params = { errorMap: ctx.common.contextualErrorMap };\n const fn = ctx.data;\n if (this._def.returns instanceof ZodPromise2) {\n const me2 = this;\n return OK(async function(...args) {\n const error38 = new ZodError2([]);\n const parsedArgs = await me2._def.args.parseAsync(args, params).catch((e2) => {\n error38.addIssue(makeArgsIssue(args, e2));\n throw error38;\n });\n const result = await Reflect.apply(fn, this, parsedArgs);\n const parsedReturns = await me2._def.returns._def.type.parseAsync(result, params).catch((e2) => {\n error38.addIssue(makeReturnsIssue(result, e2));\n throw error38;\n });\n return parsedReturns;\n });\n } else {\n const me2 = this;\n return OK(function(...args) {\n const parsedArgs = me2._def.args.safeParse(args, params);\n if (!parsedArgs.success) {\n throw new ZodError2([makeArgsIssue(args, parsedArgs.error)]);\n }\n const result = Reflect.apply(fn, this, parsedArgs.data);\n const parsedReturns = me2._def.returns.safeParse(result, params);\n if (!parsedReturns.success) {\n throw new ZodError2([makeReturnsIssue(result, parsedReturns.error)]);\n }\n return parsedReturns.data;\n });\n }\n }\n parameters() {\n return this._def.args;\n }\n returnType() {\n return this._def.returns;\n }\n args(...items) {\n return new ZodFunction({\n ...this._def,\n args: ZodTuple2.create(items).rest(ZodUnknown2.create())\n });\n }\n returns(returnType) {\n return new ZodFunction({\n ...this._def,\n returns: returnType\n });\n }\n implement(func) {\n const validatedFunc = this.parse(func);\n return validatedFunc;\n }\n strictImplement(func) {\n const validatedFunc = this.parse(func);\n return validatedFunc;\n }\n static create(args, returns, params) {\n return new ZodFunction({\n args: args ? args : ZodTuple2.create([]).rest(ZodUnknown2.create()),\n returns: returns || ZodUnknown2.create(),\n typeName: ZodFirstPartyTypeKind.ZodFunction,\n ...processCreateParams(params)\n });\n }\n}\n\nclass ZodLazy2 extends ZodType2 {\n get schema() {\n return this._def.getter();\n }\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n const lazySchema = this._def.getter();\n return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx });\n }\n}\nZodLazy2.create = (getter, params) => {\n return new ZodLazy2({\n getter,\n typeName: ZodFirstPartyTypeKind.ZodLazy,\n ...processCreateParams(params)\n });\n};\n\nclass ZodLiteral2 extends ZodType2 {\n _parse(input) {\n if (input.data !== this._def.value) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n received: ctx.data,\n code: ZodIssueCode2.invalid_literal,\n expected: this._def.value\n });\n return INVALID2;\n }\n return { status: "valid", value: input.data };\n }\n get value() {\n return this._def.value;\n }\n}\nZodLiteral2.create = (value, params) => {\n return new ZodLiteral2({\n value,\n typeName: ZodFirstPartyTypeKind.ZodLiteral,\n ...processCreateParams(params)\n });\n};\nfunction createZodEnum(values, params) {\n return new ZodEnum2({\n values,\n typeName: ZodFirstPartyTypeKind.ZodEnum,\n ...processCreateParams(params)\n });\n}\n\nclass ZodEnum2 extends ZodType2 {\n _parse(input) {\n if (typeof input.data !== "string") {\n const ctx = this._getOrReturnCtx(input);\n const expectedValues = this._def.values;\n addIssueToContext(ctx, {\n expected: util.joinValues(expectedValues),\n received: ctx.parsedType,\n code: ZodIssueCode2.invalid_type\n });\n return INVALID2;\n }\n if (!this._cache) {\n this._cache = new Set(this._def.values);\n }\n if (!this._cache.has(input.data)) {\n const ctx = this._getOrReturnCtx(input);\n const expectedValues = this._def.values;\n addIssueToContext(ctx, {\n received: ctx.data,\n code: ZodIssueCode2.invalid_enum_value,\n options: expectedValues\n });\n return INVALID2;\n }\n return OK(input.data);\n }\n get options() {\n return this._def.values;\n }\n get enum() {\n const enumValues = {};\n for (const val of this._def.values) {\n enumValues[val] = val;\n }\n return enumValues;\n }\n get Values() {\n const enumValues = {};\n for (const val of this._def.values) {\n enumValues[val] = val;\n }\n return enumValues;\n }\n get Enum() {\n const enumValues = {};\n for (const val of this._def.values) {\n enumValues[val] = val;\n }\n return enumValues;\n }\n extract(values, newDef = this._def) {\n return ZodEnum2.create(values, {\n ...this._def,\n ...newDef\n });\n }\n exclude(values, newDef = this._def) {\n return ZodEnum2.create(this.options.filter((opt) => !values.includes(opt)), {\n ...this._def,\n ...newDef\n });\n }\n}\nZodEnum2.create = createZodEnum;\n\nclass ZodNativeEnum extends ZodType2 {\n _parse(input) {\n const nativeEnumValues = util.getValidEnumValues(this._def.values);\n const ctx = this._getOrReturnCtx(input);\n if (ctx.parsedType !== ZodParsedType.string && ctx.parsedType !== ZodParsedType.number) {\n const expectedValues = util.objectValues(nativeEnumValues);\n addIssueToContext(ctx, {\n expected: util.joinValues(expectedValues),\n received: ctx.parsedType,\n code: ZodIssueCode2.invalid_type\n });\n return INVALID2;\n }\n if (!this._cache) {\n this._cache = new Set(util.getValidEnumValues(this._def.values));\n }\n if (!this._cache.has(input.data)) {\n const expectedValues = util.objectValues(nativeEnumValues);\n addIssueToContext(ctx, {\n received: ctx.data,\n code: ZodIssueCode2.invalid_enum_value,\n options: expectedValues\n });\n return INVALID2;\n }\n return OK(input.data);\n }\n get enum() {\n return this._def.values;\n }\n}\nZodNativeEnum.create = (values, params) => {\n return new ZodNativeEnum({\n values,\n typeName: ZodFirstPartyTypeKind.ZodNativeEnum,\n ...processCreateParams(params)\n });\n};\n\nclass ZodPromise2 extends ZodType2 {\n unwrap() {\n return this._def.type;\n }\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.promise && ctx.common.async === false) {\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_type,\n expected: ZodParsedType.promise,\n received: ctx.parsedType\n });\n return INVALID2;\n }\n const promisified = ctx.parsedType === ZodParsedType.promise ? ctx.data : Promise.resolve(ctx.data);\n return OK(promisified.then((data) => {\n return this._def.type.parseAsync(data, {\n path: ctx.path,\n errorMap: ctx.common.contextualErrorMap\n });\n }));\n }\n}\nZodPromise2.create = (schema, params) => {\n return new ZodPromise2({\n type: schema,\n typeName: ZodFirstPartyTypeKind.ZodPromise,\n ...processCreateParams(params)\n });\n};\n\nclass ZodEffects extends ZodType2 {\n innerType() {\n return this._def.schema;\n }\n sourceType() {\n return this._def.schema._def.typeName === ZodFirstPartyTypeKind.ZodEffects ? this._def.schema.sourceType() : this._def.schema;\n }\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n const effect = this._def.effect || null;\n const checkCtx = {\n addIssue: (arg) => {\n addIssueToContext(ctx, arg);\n if (arg.fatal) {\n status.abort();\n } else {\n status.dirty();\n }\n },\n get path() {\n return ctx.path;\n }\n };\n checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);\n if (effect.type === "preprocess") {\n const processed = effect.transform(ctx.data, checkCtx);\n if (ctx.common.async) {\n return Promise.resolve(processed).then(async (processed2) => {\n if (status.value === "aborted")\n return INVALID2;\n const result = await this._def.schema._parseAsync({\n data: processed2,\n path: ctx.path,\n parent: ctx\n });\n if (result.status === "aborted")\n return INVALID2;\n if (result.status === "dirty")\n return DIRTY(result.value);\n if (status.value === "dirty")\n return DIRTY(result.value);\n return result;\n });\n } else {\n if (status.value === "aborted")\n return INVALID2;\n const result = this._def.schema._parseSync({\n data: processed,\n path: ctx.path,\n parent: ctx\n });\n if (result.status === "aborted")\n return INVALID2;\n if (result.status === "dirty")\n return DIRTY(result.value);\n if (status.value === "dirty")\n return DIRTY(result.value);\n return result;\n }\n }\n if (effect.type === "refinement") {\n const executeRefinement = (acc) => {\n const result = effect.refinement(acc, checkCtx);\n if (ctx.common.async) {\n return Promise.resolve(result);\n }\n if (result instanceof Promise) {\n throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");\n }\n return acc;\n };\n if (ctx.common.async === false) {\n const inner = this._def.schema._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx\n });\n if (inner.status === "aborted")\n return INVALID2;\n if (inner.status === "dirty")\n status.dirty();\n executeRefinement(inner.value);\n return { status: status.value, value: inner.value };\n } else {\n return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((inner) => {\n if (inner.status === "aborted")\n return INVALID2;\n if (inner.status === "dirty")\n status.dirty();\n return executeRefinement(inner.value).then(() => {\n return { status: status.value, value: inner.value };\n });\n });\n }\n }\n if (effect.type === "transform") {\n if (ctx.common.async === false) {\n const base = this._def.schema._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx\n });\n if (!isValid(base))\n return INVALID2;\n const result = effect.transform(base.value, checkCtx);\n if (result instanceof Promise) {\n throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);\n }\n return { status: status.value, value: result };\n } else {\n return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {\n if (!isValid(base))\n return INVALID2;\n return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({\n status: status.value,\n value: result\n }));\n });\n }\n }\n util.assertNever(effect);\n }\n}\nZodEffects.create = (schema, effect, params) => {\n return new ZodEffects({\n schema,\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n effect,\n ...processCreateParams(params)\n });\n};\nZodEffects.createWithPreprocess = (preprocess2, schema, params) => {\n return new ZodEffects({\n schema,\n effect: { type: "preprocess", transform: preprocess2 },\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n ...processCreateParams(params)\n });\n};\nclass ZodOptional2 extends ZodType2 {\n _parse(input) {\n const parsedType3 = this._getType(input);\n if (parsedType3 === ZodParsedType.undefined) {\n return OK(undefined);\n }\n return this._def.innerType._parse(input);\n }\n unwrap() {\n return this._def.innerType;\n }\n}\nZodOptional2.create = (type, params) => {\n return new ZodOptional2({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodOptional,\n ...processCreateParams(params)\n });\n};\n\nclass ZodNullable2 extends ZodType2 {\n _parse(input) {\n const parsedType3 = this._getType(input);\n if (parsedType3 === ZodParsedType.null) {\n return OK(null);\n }\n return this._def.innerType._parse(input);\n }\n unwrap() {\n return this._def.innerType;\n }\n}\nZodNullable2.create = (type, params) => {\n return new ZodNullable2({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodNullable,\n ...processCreateParams(params)\n });\n};\n\nclass ZodDefault2 extends ZodType2 {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n let data = ctx.data;\n if (ctx.parsedType === ZodParsedType.undefined) {\n data = this._def.defaultValue();\n }\n return this._def.innerType._parse({\n data,\n path: ctx.path,\n parent: ctx\n });\n }\n removeDefault() {\n return this._def.innerType;\n }\n}\nZodDefault2.create = (type, params) => {\n return new ZodDefault2({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodDefault,\n defaultValue: typeof params.default === "function" ? params.default : () => params.default,\n ...processCreateParams(params)\n });\n};\n\nclass ZodCatch2 extends ZodType2 {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n const newCtx = {\n ...ctx,\n common: {\n ...ctx.common,\n issues: []\n }\n };\n const result = this._def.innerType._parse({\n data: newCtx.data,\n path: newCtx.path,\n parent: {\n ...newCtx\n }\n });\n if (isAsync(result)) {\n return result.then((result2) => {\n return {\n status: "valid",\n value: result2.status === "valid" ? result2.value : this._def.catchValue({\n get error() {\n return new ZodError2(newCtx.common.issues);\n },\n input: newCtx.data\n })\n };\n });\n } else {\n return {\n status: "valid",\n value: result.status === "valid" ? result.value : this._def.catchValue({\n get error() {\n return new ZodError2(newCtx.common.issues);\n },\n input: newCtx.data\n })\n };\n }\n }\n removeCatch() {\n return this._def.innerType;\n }\n}\nZodCatch2.create = (type, params) => {\n return new ZodCatch2({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodCatch,\n catchValue: typeof params.catch === "function" ? params.catch : () => params.catch,\n ...processCreateParams(params)\n });\n};\n\nclass ZodNaN2 extends ZodType2 {\n _parse(input) {\n const parsedType3 = this._getType(input);\n if (parsedType3 !== ZodParsedType.nan) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode2.invalid_type,\n expected: ZodParsedType.nan,\n received: ctx.parsedType\n });\n return INVALID2;\n }\n return { status: "valid", value: input.data };\n }\n}\nZodNaN2.create = (params) => {\n return new ZodNaN2({\n typeName: ZodFirstPartyTypeKind.ZodNaN,\n ...processCreateParams(params)\n });\n};\nvar BRAND = Symbol("zod_brand");\n\nclass ZodBranded extends ZodType2 {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n const data = ctx.data;\n return this._def.type._parse({\n data,\n path: ctx.path,\n parent: ctx\n });\n }\n unwrap() {\n return this._def.type;\n }\n}\n\nclass ZodPipeline extends ZodType2 {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.common.async) {\n const handleAsync = async () => {\n const inResult = await this._def.in._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx\n });\n if (inResult.status === "aborted")\n return INVALID2;\n if (inResult.status === "dirty") {\n status.dirty();\n return DIRTY(inResult.value);\n } else {\n return this._def.out._parseAsync({\n data: inResult.value,\n path: ctx.path,\n parent: ctx\n });\n }\n };\n return handleAsync();\n } else {\n const inResult = this._def.in._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx\n });\n if (inResult.status === "aborted")\n return INVALID2;\n if (inResult.status === "dirty") {\n status.dirty();\n return {\n status: "dirty",\n value: inResult.value\n };\n } else {\n return this._def.out._parseSync({\n data: inResult.value,\n path: ctx.path,\n parent: ctx\n });\n }\n }\n }\n static create(a2, b2) {\n return new ZodPipeline({\n in: a2,\n out: b2,\n typeName: ZodFirstPartyTypeKind.ZodPipeline\n });\n }\n}\n\nclass ZodReadonly2 extends ZodType2 {\n _parse(input) {\n const result = this._def.innerType._parse(input);\n const freeze = (data) => {\n if (isValid(data)) {\n data.value = Object.freeze(data.value);\n }\n return data;\n };\n return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result);\n }\n unwrap() {\n return this._def.innerType;\n }\n}\nZodReadonly2.create = (type, params) => {\n return new ZodReadonly2({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodReadonly,\n ...processCreateParams(params)\n });\n};\nvar late = {\n object: ZodObject2.lazycreate\n};\nvar ZodFirstPartyTypeKind;\n(function(ZodFirstPartyTypeKind2) {\n ZodFirstPartyTypeKind2["ZodString"] = "ZodString";\n ZodFirstPartyTypeKind2["ZodNumber"] = "ZodNumber";\n ZodFirstPartyTypeKind2["ZodNaN"] = "ZodNaN";\n ZodFirstPartyTypeKind2["ZodBigInt"] = "ZodBigInt";\n ZodFirstPartyTypeKind2["ZodBoolean"] = "ZodBoolean";\n ZodFirstPartyTypeKind2["ZodDate"] = "ZodDate";\n ZodFirstPartyTypeKind2["ZodSymbol"] = "ZodSymbol";\n ZodFirstPartyTypeKind2["ZodUndefined"] = "ZodUndefined";\n ZodFirstPartyTypeKind2["ZodNull"] = "ZodNull";\n ZodFirstPartyTypeKind2["ZodAny"] = "ZodAny";\n ZodFirstPartyTypeKind2["ZodUnknown"] = "ZodUnknown";\n ZodFirstPartyTypeKind2["ZodNever"] = "ZodNever";\n ZodFirstPartyTypeKind2["ZodVoid"] = "ZodVoid";\n ZodFirstPartyTypeKind2["ZodArray"] = "ZodArray";\n ZodFirstPartyTypeKind2["ZodObject"] = "ZodObject";\n ZodFirstPartyTypeKind2["ZodUnion"] = "ZodUnion";\n ZodFirstPartyTypeKind2["ZodDiscriminatedUnion"] = "ZodDiscriminatedUnion";\n ZodFirstPartyTypeKind2["ZodIntersection"] = "ZodIntersection";\n ZodFirstPartyTypeKind2["ZodTuple"] = "ZodTuple";\n ZodFirstPartyTypeKind2["ZodRecord"] = "ZodRecord";\n ZodFirstPartyTypeKind2["ZodMap"] = "ZodMap";\n ZodFirstPartyTypeKind2["ZodSet"] = "ZodSet";\n ZodFirstPartyTypeKind2["ZodFunction"] = "ZodFunction";\n ZodFirstPartyTypeKind2["ZodLazy"] = "ZodLazy";\n ZodFirstPartyTypeKind2["ZodLiteral"] = "ZodLiteral";\n ZodFirstPartyTypeKind2["ZodEnum"] = "ZodEnum";\n ZodFirstPartyTypeKind2["ZodEffects"] = "ZodEffects";\n ZodFirstPartyTypeKind2["ZodNativeEnum"] = "ZodNativeEnum";\n ZodFirstPartyTypeKind2["ZodOptional"] = "ZodOptional";\n ZodFirstPartyTypeKind2["ZodNullable"] = "ZodNullable";\n ZodFirstPartyTypeKind2["ZodDefault"] = "ZodDefault";\n ZodFirstPartyTypeKind2["ZodCatch"] = "ZodCatch";\n ZodFirstPartyTypeKind2["ZodPromise"] = "ZodPromise";\n ZodFirstPartyTypeKind2["ZodBranded"] = "ZodBranded";\n ZodFirstPartyTypeKind2["ZodPipeline"] = "ZodPipeline";\n ZodFirstPartyTypeKind2["ZodReadonly"] = "ZodReadonly";\n})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));\nvar stringType = ZodString2.create;\nvar numberType = ZodNumber2.create;\nvar nanType = ZodNaN2.create;\nvar bigIntType = ZodBigInt2.create;\nvar booleanType = ZodBoolean2.create;\nvar dateType = ZodDate2.create;\nvar symbolType = ZodSymbol2.create;\nvar undefinedType = ZodUndefined2.create;\nvar nullType = ZodNull2.create;\nvar anyType = ZodAny2.create;\nvar unknownType = ZodUnknown2.create;\nvar neverType = ZodNever2.create;\nvar voidType = ZodVoid2.create;\nvar arrayType = ZodArray2.create;\nvar objectType = ZodObject2.create;\nvar strictObjectType = ZodObject2.strictCreate;\nvar unionType = ZodUnion2.create;\nvar discriminatedUnionType = ZodDiscriminatedUnion2.create;\nvar intersectionType = ZodIntersection2.create;\nvar tupleType = ZodTuple2.create;\nvar recordType = ZodRecord2.create;\nvar mapType = ZodMap2.create;\nvar setType = ZodSet2.create;\nvar functionType = ZodFunction.create;\nvar lazyType = ZodLazy2.create;\nvar literalType = ZodLiteral2.create;\nvar enumType = ZodEnum2.create;\nvar nativeEnumType = ZodNativeEnum.create;\nvar promiseType = ZodPromise2.create;\nvar effectsType = ZodEffects.create;\nvar optionalType = ZodOptional2.create;\nvar nullableType = ZodNullable2.create;\nvar preprocessType = ZodEffects.createWithPreprocess;\nvar pipelineType = ZodPipeline.create;\n// ../../node_modules/@ai-sdk/provider-utils/dist/index.mjs\nvar createIdGenerator = ({\n prefix,\n size = 16,\n alphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",\n separator = "-"\n} = {}) => {\n const generator = () => {\n const alphabetLength = alphabet.length;\n const chars = new Array(size);\n for (let i2 = 0;i2 < size; i2++) {\n chars[i2] = alphabet[Math.random() * alphabetLength | 0];\n }\n return chars.join("");\n };\n if (prefix == null) {\n return generator;\n }\n if (alphabet.includes(separator)) {\n throw new InvalidArgumentError({\n argument: "separator",\n message: `The separator "${separator}" must not be part of the alphabet "${alphabet}".`\n });\n }\n return () => `${prefix}${separator}${generator()}`;\n};\nvar generateId = createIdGenerator();\nfunction getErrorMessage2(error38) {\n if (error38 == null) {\n return "unknown error";\n }\n if (typeof error38 === "string") {\n return error38;\n }\n if (error38 instanceof Error) {\n return error38.message;\n }\n return JSON.stringify(error38);\n}\nvar suspectProtoRx = /"__proto__"\\s*:/;\nvar suspectConstructorRx = /"constructor"\\s*:/;\nfunction _parse2(text) {\n const obj = JSON.parse(text);\n if (obj === null || typeof obj !== "object") {\n return obj;\n }\n if (suspectProtoRx.test(text) === false && suspectConstructorRx.test(text) === false) {\n return obj;\n }\n return filter(obj);\n}\nfunction filter(obj) {\n let next = [obj];\n while (next.length) {\n const nodes = next;\n next = [];\n for (const node of nodes) {\n if (Object.prototype.hasOwnProperty.call(node, "__proto__")) {\n throw new SyntaxError("Object contains forbidden prototype property");\n }\n if (Object.prototype.hasOwnProperty.call(node, "constructor") && Object.prototype.hasOwnProperty.call(node.constructor, "prototype")) {\n throw new SyntaxError("Object contains forbidden prototype property");\n }\n for (const key in node) {\n const value = node[key];\n if (value && typeof value === "object") {\n next.push(value);\n }\n }\n }\n }\n return obj;\n}\nfunction secureJsonParse(text) {\n const { stackTraceLimit } = Error;\n Error.stackTraceLimit = 0;\n try {\n return _parse2(text);\n } finally {\n Error.stackTraceLimit = stackTraceLimit;\n }\n}\nvar validatorSymbol = Symbol.for("vercel.ai.validator");\nfunction validator(validate) {\n return { [validatorSymbol]: true, validate };\n}\nfunction isValidator(value) {\n return typeof value === "object" && value !== null && validatorSymbol in value && value[validatorSymbol] === true && "validate" in value;\n}\nfunction asValidator(value) {\n return isValidator(value) ? value : standardSchemaValidator(value);\n}\nfunction standardSchemaValidator(standardSchema) {\n return validator(async (value) => {\n const result = await standardSchema["~standard"].validate(value);\n return result.issues == null ? { success: true, value: result.value } : {\n success: false,\n error: new TypeValidationError({\n value,\n cause: result.issues\n })\n };\n });\n}\nasync function validateTypes({\n value,\n schema\n}) {\n const result = await safeValidateTypes({ value, schema });\n if (!result.success) {\n throw TypeValidationError.wrap({ value, cause: result.error });\n }\n return result.value;\n}\nasync function safeValidateTypes({\n value,\n schema\n}) {\n const validator2 = asValidator(schema);\n try {\n if (validator2.validate == null) {\n return { success: true, value, rawValue: value };\n }\n const result = await validator2.validate(value);\n if (result.success) {\n return { success: true, value: result.value, rawValue: value };\n }\n return {\n success: false,\n error: TypeValidationError.wrap({ value, cause: result.error }),\n rawValue: value\n };\n } catch (error38) {\n return {\n success: false,\n error: TypeValidationError.wrap({ value, cause: error38 }),\n rawValue: value\n };\n }\n}\nasync function safeParseJSON({\n text,\n schema\n}) {\n try {\n const value = secureJsonParse(text);\n if (schema == null) {\n return { success: true, value, rawValue: value };\n }\n return await safeValidateTypes({ value, schema });\n } catch (error38) {\n return {\n success: false,\n error: JSONParseError.isInstance(error38) ? error38 : new JSONParseError({ text, cause: error38 }),\n rawValue: undefined\n };\n }\n}\nvar getRelativePath = (pathA, pathB) => {\n let i2 = 0;\n for (;i2 < pathA.length && i2 < pathB.length; i2++) {\n if (pathA[i2] !== pathB[i2])\n break;\n }\n return [(pathA.length - i2).toString(), ...pathB.slice(i2)].join("/");\n};\nvar ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");\nvar defaultOptions = {\n name: undefined,\n $refStrategy: "root",\n basePath: ["#"],\n effectStrategy: "input",\n pipeStrategy: "all",\n dateStrategy: "format:date-time",\n mapStrategy: "entries",\n removeAdditionalStrategy: "passthrough",\n allowedAdditionalProperties: true,\n rejectedAdditionalProperties: false,\n definitionPath: "definitions",\n strictUnions: false,\n definitions: {},\n errorMessages: false,\n patternStrategy: "escape",\n applyRegexFlags: false,\n emailStrategy: "format:email",\n base64Strategy: "contentEncoding:base64",\n nameStrategy: "ref"\n};\nvar getDefaultOptions = (options) => typeof options === "string" ? {\n ...defaultOptions,\n name: options\n} : {\n ...defaultOptions,\n ...options\n};\nfunction parseAnyDef() {\n return {};\n}\nfunction parseArrayDef(def, refs) {\n var _a15, _b, _c;\n const res = {\n type: "array"\n };\n if (((_a15 = def.type) == null ? undefined : _a15._def) && ((_c = (_b = def.type) == null ? undefined : _b._def) == null ? undefined : _c.typeName) !== ZodFirstPartyTypeKind.ZodAny) {\n res.items = parseDef(def.type._def, {\n ...refs,\n currentPath: [...refs.currentPath, "items"]\n });\n }\n if (def.minLength) {\n res.minItems = def.minLength.value;\n }\n if (def.maxLength) {\n res.maxItems = def.maxLength.value;\n }\n if (def.exactLength) {\n res.minItems = def.exactLength.value;\n res.maxItems = def.exactLength.value;\n }\n return res;\n}\nfunction parseBigintDef(def) {\n const res = {\n type: "integer",\n format: "int64"\n };\n if (!def.checks)\n return res;\n for (const check2 of def.checks) {\n switch (check2.kind) {\n case "min":\n if (check2.inclusive) {\n res.minimum = check2.value;\n } else {\n res.exclusiveMinimum = check2.value;\n }\n break;\n case "max":\n if (check2.inclusive) {\n res.maximum = check2.value;\n } else {\n res.exclusiveMaximum = check2.value;\n }\n break;\n case "multipleOf":\n res.multipleOf = check2.value;\n break;\n }\n }\n return res;\n}\nfunction parseBooleanDef() {\n return { type: "boolean" };\n}\nfunction parseBrandedDef(_def, refs) {\n return parseDef(_def.type._def, refs);\n}\nvar parseCatchDef = (def, refs) => {\n return parseDef(def.innerType._def, refs);\n};\nfunction parseDateDef(def, refs, overrideDateStrategy) {\n const strategy = overrideDateStrategy != null ? overrideDateStrategy : refs.dateStrategy;\n if (Array.isArray(strategy)) {\n return {\n anyOf: strategy.map((item, i2) => parseDateDef(def, refs, item))\n };\n }\n switch (strategy) {\n case "string":\n case "format:date-time":\n return {\n type: "string",\n format: "date-time"\n };\n case "format:date":\n return {\n type: "string",\n format: "date"\n };\n case "integer":\n return integerDateParser(def);\n }\n}\nvar integerDateParser = (def) => {\n const res = {\n type: "integer",\n format: "unix-time"\n };\n for (const check2 of def.checks) {\n switch (check2.kind) {\n case "min":\n res.minimum = check2.value;\n break;\n case "max":\n res.maximum = check2.value;\n break;\n }\n }\n return res;\n};\nfunction parseDefaultDef(_def, refs) {\n return {\n ...parseDef(_def.innerType._def, refs),\n default: _def.defaultValue()\n };\n}\nfunction parseEffectsDef(_def, refs) {\n return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : parseAnyDef();\n}\nfunction parseEnumDef(def) {\n return {\n type: "string",\n enum: Array.from(def.values)\n };\n}\nvar isJsonSchema7AllOfType = (type) => {\n if ("type" in type && type.type === "string")\n return false;\n return "allOf" in type;\n};\nfunction parseIntersectionDef(def, refs) {\n const allOf = [\n parseDef(def.left._def, {\n ...refs,\n currentPath: [...refs.currentPath, "allOf", "0"]\n }),\n parseDef(def.right._def, {\n ...refs,\n currentPath: [...refs.currentPath, "allOf", "1"]\n })\n ].filter((x2) => !!x2);\n const mergedAllOf = [];\n allOf.forEach((schema) => {\n if (isJsonSchema7AllOfType(schema)) {\n mergedAllOf.push(...schema.allOf);\n } else {\n let nestedSchema = schema;\n if ("additionalProperties" in schema && schema.additionalProperties === false) {\n const { additionalProperties, ...rest } = schema;\n nestedSchema = rest;\n }\n mergedAllOf.push(nestedSchema);\n }\n });\n return mergedAllOf.length ? { allOf: mergedAllOf } : undefined;\n}\nfunction parseLiteralDef(def) {\n const parsedType3 = typeof def.value;\n if (parsedType3 !== "bigint" && parsedType3 !== "number" && parsedType3 !== "boolean" && parsedType3 !== "string") {\n return {\n type: Array.isArray(def.value) ? "array" : "object"\n };\n }\n return {\n type: parsedType3 === "bigint" ? "integer" : parsedType3,\n const: def.value\n };\n}\nvar emojiRegex2 = undefined;\nvar zodPatterns = {\n cuid: /^[cC][^\\s-]{8,}$/,\n cuid2: /^[0-9a-z]+$/,\n ulid: /^[0-9A-HJKMNP-TV-Z]{26}$/,\n email: /^(?!\\.)(?!.*\\.\\.)([a-zA-Z0-9_\'+\\-\\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\\-]*\\.)+[a-zA-Z]{2,}$/,\n emoji: () => {\n if (emojiRegex2 === undefined) {\n emojiRegex2 = RegExp("^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$", "u");\n }\n return emojiRegex2;\n },\n uuid: /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/,\n ipv4: /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,\n ipv4Cidr: /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\/(3[0-2]|[12]?[0-9])$/,\n ipv6: /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,\n ipv6Cidr: /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,\n base64: /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,\n base64url: /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,\n nanoid: /^[a-zA-Z0-9_-]{21}$/,\n jwt: /^[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]*$/\n};\nfunction parseStringDef(def, refs) {\n const res = {\n type: "string"\n };\n if (def.checks) {\n for (const check2 of def.checks) {\n switch (check2.kind) {\n case "min":\n res.minLength = typeof res.minLength === "number" ? Math.max(res.minLength, check2.value) : check2.value;\n break;\n case "max":\n res.maxLength = typeof res.maxLength === "number" ? Math.min(res.maxLength, check2.value) : check2.value;\n break;\n case "email":\n switch (refs.emailStrategy) {\n case "format:email":\n addFormat(res, "email", check2.message, refs);\n break;\n case "format:idn-email":\n addFormat(res, "idn-email", check2.message, refs);\n break;\n case "pattern:zod":\n addPattern(res, zodPatterns.email, check2.message, refs);\n break;\n }\n break;\n case "url":\n addFormat(res, "uri", check2.message, refs);\n break;\n case "uuid":\n addFormat(res, "uuid", check2.message, refs);\n break;\n case "regex":\n addPattern(res, check2.regex, check2.message, refs);\n break;\n case "cuid":\n addPattern(res, zodPatterns.cuid, check2.message, refs);\n break;\n case "cuid2":\n addPattern(res, zodPatterns.cuid2, check2.message, refs);\n break;\n case "startsWith":\n addPattern(res, RegExp(`^${escapeLiteralCheckValue(check2.value, refs)}`), check2.message, refs);\n break;\n case "endsWith":\n addPattern(res, RegExp(`${escapeLiteralCheckValue(check2.value, refs)}$`), check2.message, refs);\n break;\n case "datetime":\n addFormat(res, "date-time", check2.message, refs);\n break;\n case "date":\n addFormat(res, "date", check2.message, refs);\n break;\n case "time":\n addFormat(res, "time", check2.message, refs);\n break;\n case "duration":\n addFormat(res, "duration", check2.message, refs);\n break;\n case "length":\n res.minLength = typeof res.minLength === "number" ? Math.max(res.minLength, check2.value) : check2.value;\n res.maxLength = typeof res.maxLength === "number" ? Math.min(res.maxLength, check2.value) : check2.value;\n break;\n case "includes": {\n addPattern(res, RegExp(escapeLiteralCheckValue(check2.value, refs)), check2.message, refs);\n break;\n }\n case "ip": {\n if (check2.version !== "v6") {\n addFormat(res, "ipv4", check2.message, refs);\n }\n if (check2.version !== "v4") {\n addFormat(res, "ipv6", check2.message, refs);\n }\n break;\n }\n case "base64url":\n addPattern(res, zodPatterns.base64url, check2.message, refs);\n break;\n case "jwt":\n addPattern(res, zodPatterns.jwt, check2.message, refs);\n break;\n case "cidr": {\n if (check2.version !== "v6") {\n addPattern(res, zodPatterns.ipv4Cidr, check2.message, refs);\n }\n if (check2.version !== "v4") {\n addPattern(res, zodPatterns.ipv6Cidr, check2.message, refs);\n }\n break;\n }\n case "emoji":\n addPattern(res, zodPatterns.emoji(), check2.message, refs);\n break;\n case "ulid": {\n addPattern(res, zodPatterns.ulid, check2.message, refs);\n break;\n }\n case "base64": {\n switch (refs.base64Strategy) {\n case "format:binary": {\n addFormat(res, "binary", check2.message, refs);\n break;\n }\n case "contentEncoding:base64": {\n res.contentEncoding = "base64";\n break;\n }\n case "pattern:zod": {\n addPattern(res, zodPatterns.base64, check2.message, refs);\n break;\n }\n }\n break;\n }\n case "nanoid": {\n addPattern(res, zodPatterns.nanoid, check2.message, refs);\n }\n case "toLowerCase":\n case "toUpperCase":\n case "trim":\n break;\n default:\n }\n }\n }\n return res;\n}\nfunction escapeLiteralCheckValue(literal2, refs) {\n return refs.patternStrategy === "escape" ? escapeNonAlphaNumeric(literal2) : literal2;\n}\nvar ALPHA_NUMERIC = new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");\nfunction escapeNonAlphaNumeric(source) {\n let result = "";\n for (let i2 = 0;i2 < source.length; i2++) {\n if (!ALPHA_NUMERIC.has(source[i2])) {\n result += "\\\\";\n }\n result += source[i2];\n }\n return result;\n}\nfunction addFormat(schema, value, message, refs) {\n var _a15;\n if (schema.format || ((_a15 = schema.anyOf) == null ? undefined : _a15.some((x2) => x2.format))) {\n if (!schema.anyOf) {\n schema.anyOf = [];\n }\n if (schema.format) {\n schema.anyOf.push({\n format: schema.format\n });\n delete schema.format;\n }\n schema.anyOf.push({\n format: value,\n ...message && refs.errorMessages && { errorMessage: { format: message } }\n });\n } else {\n schema.format = value;\n }\n}\nfunction addPattern(schema, regex, message, refs) {\n var _a15;\n if (schema.pattern || ((_a15 = schema.allOf) == null ? undefined : _a15.some((x2) => x2.pattern))) {\n if (!schema.allOf) {\n schema.allOf = [];\n }\n if (schema.pattern) {\n schema.allOf.push({\n pattern: schema.pattern\n });\n delete schema.pattern;\n }\n schema.allOf.push({\n pattern: stringifyRegExpWithFlags(regex, refs),\n ...message && refs.errorMessages && { errorMessage: { pattern: message } }\n });\n } else {\n schema.pattern = stringifyRegExpWithFlags(regex, refs);\n }\n}\nfunction stringifyRegExpWithFlags(regex, refs) {\n var _a15;\n if (!refs.applyRegexFlags || !regex.flags) {\n return regex.source;\n }\n const flags = {\n i: regex.flags.includes("i"),\n m: regex.flags.includes("m"),\n s: regex.flags.includes("s")\n };\n const source = flags.i ? regex.source.toLowerCase() : regex.source;\n let pattern = "";\n let isEscaped = false;\n let inCharGroup = false;\n let inCharRange = false;\n for (let i2 = 0;i2 < source.length; i2++) {\n if (isEscaped) {\n pattern += source[i2];\n isEscaped = false;\n continue;\n }\n if (flags.i) {\n if (inCharGroup) {\n if (source[i2].match(/[a-z]/)) {\n if (inCharRange) {\n pattern += source[i2];\n pattern += `${source[i2 - 2]}-${source[i2]}`.toUpperCase();\n inCharRange = false;\n } else if (source[i2 + 1] === "-" && ((_a15 = source[i2 + 2]) == null ? undefined : _a15.match(/[a-z]/))) {\n pattern += source[i2];\n inCharRange = true;\n } else {\n pattern += `${source[i2]}${source[i2].toUpperCase()}`;\n }\n continue;\n }\n } else if (source[i2].match(/[a-z]/)) {\n pattern += `[${source[i2]}${source[i2].toUpperCase()}]`;\n continue;\n }\n }\n if (flags.m) {\n if (source[i2] === "^") {\n pattern += `(^|(?<=[\\r\n]))`;\n continue;\n } else if (source[i2] === "$") {\n pattern += `($|(?=[\\r\n]))`;\n continue;\n }\n }\n if (flags.s && source[i2] === ".") {\n pattern += inCharGroup ? `${source[i2]}\\r\n` : `[${source[i2]}\\r\n]`;\n continue;\n }\n pattern += source[i2];\n if (source[i2] === "\\\\") {\n isEscaped = true;\n } else if (inCharGroup && source[i2] === "]") {\n inCharGroup = false;\n } else if (!inCharGroup && source[i2] === "[") {\n inCharGroup = true;\n }\n }\n try {\n new RegExp(pattern);\n } catch (e2) {\n console.warn(`Could not convert regex pattern at ${refs.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`);\n return regex.source;\n }\n return pattern;\n}\nfunction parseRecordDef(def, refs) {\n var _a15, _b, _c, _d, _e2, _f;\n const schema = {\n type: "object",\n additionalProperties: (_a15 = parseDef(def.valueType._def, {\n ...refs,\n currentPath: [...refs.currentPath, "additionalProperties"]\n })) != null ? _a15 : refs.allowedAdditionalProperties\n };\n if (((_b = def.keyType) == null ? undefined : _b._def.typeName) === ZodFirstPartyTypeKind.ZodString && ((_c = def.keyType._def.checks) == null ? undefined : _c.length)) {\n const { type, ...keyType } = parseStringDef(def.keyType._def, refs);\n return {\n ...schema,\n propertyNames: keyType\n };\n } else if (((_d = def.keyType) == null ? undefined : _d._def.typeName) === ZodFirstPartyTypeKind.ZodEnum) {\n return {\n ...schema,\n propertyNames: {\n enum: def.keyType._def.values\n }\n };\n } else if (((_e2 = def.keyType) == null ? undefined : _e2._def.typeName) === ZodFirstPartyTypeKind.ZodBranded && def.keyType._def.type._def.typeName === ZodFirstPartyTypeKind.ZodString && ((_f = def.keyType._def.type._def.checks) == null ? undefined : _f.length)) {\n const { type, ...keyType } = parseBrandedDef(def.keyType._def, refs);\n return {\n ...schema,\n propertyNames: keyType\n };\n }\n return schema;\n}\nfunction parseMapDef(def, refs) {\n if (refs.mapStrategy === "record") {\n return parseRecordDef(def, refs);\n }\n const keys = parseDef(def.keyType._def, {\n ...refs,\n currentPath: [...refs.currentPath, "items", "items", "0"]\n }) || parseAnyDef();\n const values = parseDef(def.valueType._def, {\n ...refs,\n currentPath: [...refs.currentPath, "items", "items", "1"]\n }) || parseAnyDef();\n return {\n type: "array",\n maxItems: 125,\n items: {\n type: "array",\n items: [keys, values],\n minItems: 2,\n maxItems: 2\n }\n };\n}\nfunction parseNativeEnumDef(def) {\n const object2 = def.values;\n const actualKeys = Object.keys(def.values).filter((key) => {\n return typeof object2[object2[key]] !== "number";\n });\n const actualValues = actualKeys.map((key) => object2[key]);\n const parsedTypes = Array.from(new Set(actualValues.map((values) => typeof values)));\n return {\n type: parsedTypes.length === 1 ? parsedTypes[0] === "string" ? "string" : "number" : ["string", "number"],\n enum: actualValues\n };\n}\nfunction parseNeverDef() {\n return { not: parseAnyDef() };\n}\nfunction parseNullDef() {\n return {\n type: "null"\n };\n}\nvar primitiveMappings = {\n ZodString: "string",\n ZodNumber: "number",\n ZodBigInt: "integer",\n ZodBoolean: "boolean",\n ZodNull: "null"\n};\nfunction parseUnionDef(def, refs) {\n const options = def.options instanceof Map ? Array.from(def.options.values()) : def.options;\n if (options.every((x2) => (x2._def.typeName in primitiveMappings) && (!x2._def.checks || !x2._def.checks.length))) {\n const types = options.reduce((types2, x2) => {\n const type = primitiveMappings[x2._def.typeName];\n return type && !types2.includes(type) ? [...types2, type] : types2;\n }, []);\n return {\n type: types.length > 1 ? types : types[0]\n };\n } else if (options.every((x2) => x2._def.typeName === "ZodLiteral" && !x2.description)) {\n const types = options.reduce((acc, x2) => {\n const type = typeof x2._def.value;\n switch (type) {\n case "string":\n case "number":\n case "boolean":\n return [...acc, type];\n case "bigint":\n return [...acc, "integer"];\n case "object":\n if (x2._def.value === null)\n return [...acc, "null"];\n case "symbol":\n case "undefined":\n case "function":\n default:\n return acc;\n }\n }, []);\n if (types.length === options.length) {\n const uniqueTypes = types.filter((x2, i2, a2) => a2.indexOf(x2) === i2);\n return {\n type: uniqueTypes.length > 1 ? uniqueTypes : uniqueTypes[0],\n enum: options.reduce((acc, x2) => {\n return acc.includes(x2._def.value) ? acc : [...acc, x2._def.value];\n }, [])\n };\n }\n } else if (options.every((x2) => x2._def.typeName === "ZodEnum")) {\n return {\n type: "string",\n enum: options.reduce((acc, x2) => [\n ...acc,\n ...x2._def.values.filter((x22) => !acc.includes(x22))\n ], [])\n };\n }\n return asAnyOf(def, refs);\n}\nvar asAnyOf = (def, refs) => {\n const anyOf = (def.options instanceof Map ? Array.from(def.options.values()) : def.options).map((x2, i2) => parseDef(x2._def, {\n ...refs,\n currentPath: [...refs.currentPath, "anyOf", `${i2}`]\n })).filter((x2) => !!x2 && (!refs.strictUnions || typeof x2 === "object" && Object.keys(x2).length > 0));\n return anyOf.length ? { anyOf } : undefined;\n};\nfunction parseNullableDef(def, refs) {\n if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(def.innerType._def.typeName) && (!def.innerType._def.checks || !def.innerType._def.checks.length)) {\n return {\n type: [\n primitiveMappings[def.innerType._def.typeName],\n "null"\n ]\n };\n }\n const base = parseDef(def.innerType._def, {\n ...refs,\n currentPath: [...refs.currentPath, "anyOf", "0"]\n });\n return base && { anyOf: [base, { type: "null" }] };\n}\nfunction parseNumberDef(def) {\n const res = {\n type: "number"\n };\n if (!def.checks)\n return res;\n for (const check2 of def.checks) {\n switch (check2.kind) {\n case "int":\n res.type = "integer";\n break;\n case "min":\n if (check2.inclusive) {\n res.minimum = check2.value;\n } else {\n res.exclusiveMinimum = check2.value;\n }\n break;\n case "max":\n if (check2.inclusive) {\n res.maximum = check2.value;\n } else {\n res.exclusiveMaximum = check2.value;\n }\n break;\n case "multipleOf":\n res.multipleOf = check2.value;\n break;\n }\n }\n return res;\n}\nfunction parseObjectDef(def, refs) {\n const result = {\n type: "object",\n properties: {}\n };\n const required2 = [];\n const shape = def.shape();\n for (const propName in shape) {\n let propDef = shape[propName];\n if (propDef === undefined || propDef._def === undefined) {\n continue;\n }\n const propOptional = safeIsOptional(propDef);\n const parsedDef = parseDef(propDef._def, {\n ...refs,\n currentPath: [...refs.currentPath, "properties", propName],\n propertyPath: [...refs.currentPath, "properties", propName]\n });\n if (parsedDef === undefined) {\n continue;\n }\n result.properties[propName] = parsedDef;\n if (!propOptional) {\n required2.push(propName);\n }\n }\n if (required2.length) {\n result.required = required2;\n }\n const additionalProperties = decideAdditionalProperties(def, refs);\n if (additionalProperties !== undefined) {\n result.additionalProperties = additionalProperties;\n }\n return result;\n}\nfunction decideAdditionalProperties(def, refs) {\n if (def.catchall._def.typeName !== "ZodNever") {\n return parseDef(def.catchall._def, {\n ...refs,\n currentPath: [...refs.currentPath, "additionalProperties"]\n });\n }\n switch (def.unknownKeys) {\n case "passthrough":\n return refs.allowedAdditionalProperties;\n case "strict":\n return refs.rejectedAdditionalProperties;\n case "strip":\n return refs.removeAdditionalStrategy === "strict" ? refs.allowedAdditionalProperties : refs.rejectedAdditionalProperties;\n }\n}\nfunction safeIsOptional(schema) {\n try {\n return schema.isOptional();\n } catch (e2) {\n return true;\n }\n}\nvar parseOptionalDef = (def, refs) => {\n var _a15;\n if (refs.currentPath.toString() === ((_a15 = refs.propertyPath) == null ? undefined : _a15.toString())) {\n return parseDef(def.innerType._def, refs);\n }\n const innerSchema = parseDef(def.innerType._def, {\n ...refs,\n currentPath: [...refs.currentPath, "anyOf", "1"]\n });\n return innerSchema ? { anyOf: [{ not: parseAnyDef() }, innerSchema] } : parseAnyDef();\n};\nvar parsePipelineDef = (def, refs) => {\n if (refs.pipeStrategy === "input") {\n return parseDef(def.in._def, refs);\n } else if (refs.pipeStrategy === "output") {\n return parseDef(def.out._def, refs);\n }\n const a2 = parseDef(def.in._def, {\n ...refs,\n currentPath: [...refs.currentPath, "allOf", "0"]\n });\n const b2 = parseDef(def.out._def, {\n ...refs,\n currentPath: [...refs.currentPath, "allOf", a2 ? "1" : "0"]\n });\n return {\n allOf: [a2, b2].filter((x2) => x2 !== undefined)\n };\n};\nfunction parsePromiseDef(def, refs) {\n return parseDef(def.type._def, refs);\n}\nfunction parseSetDef(def, refs) {\n const items = parseDef(def.valueType._def, {\n ...refs,\n currentPath: [...refs.currentPath, "items"]\n });\n const schema = {\n type: "array",\n uniqueItems: true,\n items\n };\n if (def.minSize) {\n schema.minItems = def.minSize.value;\n }\n if (def.maxSize) {\n schema.maxItems = def.maxSize.value;\n }\n return schema;\n}\nfunction parseTupleDef(def, refs) {\n if (def.rest) {\n return {\n type: "array",\n minItems: def.items.length,\n items: def.items.map((x2, i2) => parseDef(x2._def, {\n ...refs,\n currentPath: [...refs.currentPath, "items", `${i2}`]\n })).reduce((acc, x2) => x2 === undefined ? acc : [...acc, x2], []),\n additionalItems: parseDef(def.rest._def, {\n ...refs,\n currentPath: [...refs.currentPath, "additionalItems"]\n })\n };\n } else {\n return {\n type: "array",\n minItems: def.items.length,\n maxItems: def.items.length,\n items: def.items.map((x2, i2) => parseDef(x2._def, {\n ...refs,\n currentPath: [...refs.currentPath, "items", `${i2}`]\n })).reduce((acc, x2) => x2 === undefined ? acc : [...acc, x2], [])\n };\n }\n}\nfunction parseUndefinedDef() {\n return {\n not: parseAnyDef()\n };\n}\nfunction parseUnknownDef() {\n return parseAnyDef();\n}\nvar parseReadonlyDef = (def, refs) => {\n return parseDef(def.innerType._def, refs);\n};\nvar selectParser = (def, typeName, refs) => {\n switch (typeName) {\n case ZodFirstPartyTypeKind.ZodString:\n return parseStringDef(def, refs);\n case ZodFirstPartyTypeKind.ZodNumber:\n return parseNumberDef(def);\n case ZodFirstPartyTypeKind.ZodObject:\n return parseObjectDef(def, refs);\n case ZodFirstPartyTypeKind.ZodBigInt:\n return parseBigintDef(def);\n case ZodFirstPartyTypeKind.ZodBoolean:\n return parseBooleanDef();\n case ZodFirstPartyTypeKind.ZodDate:\n return parseDateDef(def, refs);\n case ZodFirstPartyTypeKind.ZodUndefined:\n return parseUndefinedDef();\n case ZodFirstPartyTypeKind.ZodNull:\n return parseNullDef();\n case ZodFirstPartyTypeKind.ZodArray:\n return parseArrayDef(def, refs);\n case ZodFirstPartyTypeKind.ZodUnion:\n case ZodFirstPartyTypeKind.ZodDiscriminatedUnion:\n return parseUnionDef(def, refs);\n case ZodFirstPartyTypeKind.ZodIntersection:\n return parseIntersectionDef(def, refs);\n case ZodFirstPartyTypeKind.ZodTuple:\n return parseTupleDef(def, refs);\n case ZodFirstPartyTypeKind.ZodRecord:\n return parseRecordDef(def, refs);\n case ZodFirstPartyTypeKind.ZodLiteral:\n return parseLiteralDef(def);\n case ZodFirstPartyTypeKind.ZodEnum:\n return parseEnumDef(def);\n case ZodFirstPartyTypeKind.ZodNativeEnum:\n return parseNativeEnumDef(def);\n case ZodFirstPartyTypeKind.ZodNullable:\n return parseNullableDef(def, refs);\n case ZodFirstPartyTypeKind.ZodOptional:\n return parseOptionalDef(def, refs);\n case ZodFirstPartyTypeKind.ZodMap:\n return parseMapDef(def, refs);\n case ZodFirstPartyTypeKind.ZodSet:\n return parseSetDef(def, refs);\n case ZodFirstPartyTypeKind.ZodLazy:\n return () => def.getter()._def;\n case ZodFirstPartyTypeKind.ZodPromise:\n return parsePromiseDef(def, refs);\n case ZodFirstPartyTypeKind.ZodNaN:\n case ZodFirstPartyTypeKind.ZodNever:\n return parseNeverDef();\n case ZodFirstPartyTypeKind.ZodEffects:\n return parseEffectsDef(def, refs);\n case ZodFirstPartyTypeKind.ZodAny:\n return parseAnyDef();\n case ZodFirstPartyTypeKind.ZodUnknown:\n return parseUnknownDef();\n case ZodFirstPartyTypeKind.ZodDefault:\n return parseDefaultDef(def, refs);\n case ZodFirstPartyTypeKind.ZodBranded:\n return parseBrandedDef(def, refs);\n case ZodFirstPartyTypeKind.ZodReadonly:\n return parseReadonlyDef(def, refs);\n case ZodFirstPartyTypeKind.ZodCatch:\n return parseCatchDef(def, refs);\n case ZodFirstPartyTypeKind.ZodPipeline:\n return parsePipelineDef(def, refs);\n case ZodFirstPartyTypeKind.ZodFunction:\n case ZodFirstPartyTypeKind.ZodVoid:\n case ZodFirstPartyTypeKind.ZodSymbol:\n return;\n default:\n return /* @__PURE__ */ ((_3) => {\n return;\n })(typeName);\n }\n};\nfunction parseDef(def, refs, forceResolution = false) {\n var _a15;\n const seenItem = refs.seen.get(def);\n if (refs.override) {\n const overrideResult = (_a15 = refs.override) == null ? undefined : _a15.call(refs, def, refs, seenItem, forceResolution);\n if (overrideResult !== ignoreOverride) {\n return overrideResult;\n }\n }\n if (seenItem && !forceResolution) {\n const seenSchema = get$ref(seenItem, refs);\n if (seenSchema !== undefined) {\n return seenSchema;\n }\n }\n const newItem = { def, path: refs.currentPath, jsonSchema: undefined };\n refs.seen.set(def, newItem);\n const jsonSchemaOrGetter = selectParser(def, def.typeName, refs);\n const jsonSchema2 = typeof jsonSchemaOrGetter === "function" ? parseDef(jsonSchemaOrGetter(), refs) : jsonSchemaOrGetter;\n if (jsonSchema2) {\n addMeta(def, refs, jsonSchema2);\n }\n if (refs.postProcess) {\n const postProcessResult = refs.postProcess(jsonSchema2, def, refs);\n newItem.jsonSchema = jsonSchema2;\n return postProcessResult;\n }\n newItem.jsonSchema = jsonSchema2;\n return jsonSchema2;\n}\nvar get$ref = (item, refs) => {\n switch (refs.$refStrategy) {\n case "root":\n return { $ref: item.path.join("/") };\n case "relative":\n return { $ref: getRelativePath(refs.currentPath, item.path) };\n case "none":\n case "seen": {\n if (item.path.length < refs.currentPath.length && item.path.every((value, index) => refs.currentPath[index] === value)) {\n console.warn(`Recursive reference detected at ${refs.currentPath.join("/")}! Defaulting to any`);\n return parseAnyDef();\n }\n return refs.$refStrategy === "seen" ? parseAnyDef() : undefined;\n }\n }\n};\nvar addMeta = (def, refs, jsonSchema2) => {\n if (def.description) {\n jsonSchema2.description = def.description;\n }\n return jsonSchema2;\n};\nvar getRefs = (options) => {\n const _options = getDefaultOptions(options);\n const currentPath = _options.name !== undefined ? [..._options.basePath, _options.definitionPath, _options.name] : _options.basePath;\n return {\n ..._options,\n currentPath,\n propertyPath: undefined,\n seen: new Map(Object.entries(_options.definitions).map(([name14, def]) => [\n def._def,\n {\n def: def._def,\n path: [..._options.basePath, _options.definitionPath, name14],\n jsonSchema: undefined\n }\n ]))\n };\n};\nvar zodToJsonSchema = (schema, options) => {\n var _a15;\n const refs = getRefs(options);\n let definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name22, schema2]) => {\n var _a22;\n return {\n ...acc,\n [name22]: (_a22 = parseDef(schema2._def, {\n ...refs,\n currentPath: [...refs.basePath, refs.definitionPath, name22]\n }, true)) != null ? _a22 : parseAnyDef()\n };\n }, {}) : undefined;\n const name14 = typeof options === "string" ? options : (options == null ? undefined : options.nameStrategy) === "title" ? undefined : options == null ? undefined : options.name;\n const main = (_a15 = parseDef(schema._def, name14 === undefined ? refs : {\n ...refs,\n currentPath: [...refs.basePath, refs.definitionPath, name14]\n }, false)) != null ? _a15 : parseAnyDef();\n const title = typeof options === "object" && options.name !== undefined && options.nameStrategy === "title" ? options.name : undefined;\n if (title !== undefined) {\n main.title = title;\n }\n const combined = name14 === undefined ? definitions ? {\n ...main,\n [refs.definitionPath]: definitions\n } : main : {\n $ref: [\n ...refs.$refStrategy === "relative" ? [] : refs.basePath,\n refs.definitionPath,\n name14\n ].join("/"),\n [refs.definitionPath]: {\n ...definitions,\n [name14]: main\n }\n };\n combined.$schema = "http://json-schema.org/draft-07/schema#";\n return combined;\n};\nvar zod_to_json_schema_default = zodToJsonSchema;\nfunction zod3Schema(zodSchema2, options) {\n var _a15;\n const useReferences = (_a15 = options == null ? undefined : options.useReferences) != null ? _a15 : false;\n return jsonSchema(zod_to_json_schema_default(zodSchema2, {\n $refStrategy: useReferences ? "root" : "none"\n }), {\n validate: async (value) => {\n const result = await zodSchema2.safeParseAsync(value);\n return result.success ? { success: true, value: result.data } : { success: false, error: result.error };\n }\n });\n}\nfunction zod4Schema(zodSchema2, options) {\n var _a15;\n const useReferences = (_a15 = options == null ? undefined : options.useReferences) != null ? _a15 : false;\n const z4JSONSchema = toJSONSchema(zodSchema2, {\n target: "draft-7",\n io: "output",\n reused: useReferences ? "ref" : "inline"\n });\n return jsonSchema(z4JSONSchema, {\n validate: async (value) => {\n const result = await safeParseAsync2(zodSchema2, value);\n return result.success ? { success: true, value: result.data } : { success: false, error: result.error };\n }\n });\n}\nfunction isZod4Schema(zodSchema2) {\n return "_zod" in zodSchema2;\n}\nfunction zodSchema(zodSchema2, options) {\n if (isZod4Schema(zodSchema2)) {\n return zod4Schema(zodSchema2, options);\n } else {\n return zod3Schema(zodSchema2, options);\n }\n}\nvar schemaSymbol = Symbol.for("vercel.ai.schema");\nfunction jsonSchema(jsonSchema2, {\n validate\n} = {}) {\n return {\n [schemaSymbol]: true,\n _type: undefined,\n [validatorSymbol]: true,\n jsonSchema: jsonSchema2,\n validate\n };\n}\nfunction isSchema(value) {\n return typeof value === "object" && value !== null && schemaSymbol in value && value[schemaSymbol] === true && "jsonSchema" in value && "validate" in value;\n}\nfunction asSchema(schema) {\n return schema == null ? jsonSchema({\n properties: {},\n additionalProperties: false\n }) : isSchema(schema) ? schema : zodSchema(schema);\n}\n\n// ../../node_modules/ai/dist/index.mjs\nvar __defProp2 = Object.defineProperty;\nvar __export2 = (target, all) => {\n for (var name17 in all)\n __defProp2(target, name17, { get: all[name17], enumerable: true });\n};\nvar name14 = "AI_NoOutputSpecifiedError";\nvar marker15 = `vercel.ai.error.${name14}`;\nvar symbol17 = Symbol.for(marker15);\nvar _a15;\n_a15 = symbol17;\nvar name22 = "AI_InvalidArgumentError";\nvar marker22 = `vercel.ai.error.${name22}`;\nvar symbol22 = Symbol.for(marker22);\nvar _a22;\n_a22 = symbol22;\nvar name32 = "AI_InvalidStreamPartError";\nvar marker32 = `vercel.ai.error.${name32}`;\nvar symbol32 = Symbol.for(marker32);\nvar _a32;\n_a32 = symbol32;\nvar name42 = "AI_InvalidToolInputError";\nvar marker42 = `vercel.ai.error.${name42}`;\nvar symbol42 = Symbol.for(marker42);\nvar _a42;\n_a42 = symbol42;\nvar name52 = "AI_MCPClientError";\nvar marker52 = `vercel.ai.error.${name52}`;\nvar symbol52 = Symbol.for(marker52);\nvar _a52;\n_a52 = symbol52;\nvar name62 = "AI_NoImageGeneratedError";\nvar marker62 = `vercel.ai.error.${name62}`;\nvar symbol62 = Symbol.for(marker62);\nvar _a62;\n_a62 = symbol62;\nvar name72 = "AI_NoObjectGeneratedError";\nvar marker72 = `vercel.ai.error.${name72}`;\nvar symbol72 = Symbol.for(marker72);\nvar _a72;\nvar NoObjectGeneratedError = class extends AISDKError {\n constructor({\n message = "No object generated.",\n cause,\n text: text2,\n response,\n usage,\n finishReason\n }) {\n super({ name: name72, message, cause });\n this[_a72] = true;\n this.text = text2;\n this.response = response;\n this.usage = usage;\n this.finishReason = finishReason;\n }\n static isInstance(error38) {\n return AISDKError.hasMarker(error38, marker72);\n }\n};\n_a72 = symbol72;\nvar name82 = "AI_NoOutputGeneratedError";\nvar marker82 = `vercel.ai.error.${name82}`;\nvar symbol82 = Symbol.for(marker82);\nvar _a82;\n_a82 = symbol82;\nvar name92 = "AI_NoSuchToolError";\nvar marker92 = `vercel.ai.error.${name92}`;\nvar symbol92 = Symbol.for(marker92);\nvar _a92;\n_a92 = symbol92;\nvar name102 = "AI_ToolCallRepairError";\nvar marker102 = `vercel.ai.error.${name102}`;\nvar symbol102 = Symbol.for(marker102);\nvar _a102;\n_a102 = symbol102;\nvar name112 = "AI_InvalidDataContentError";\nvar marker112 = `vercel.ai.error.${name112}`;\nvar symbol112 = Symbol.for(marker112);\nvar _a112;\n_a112 = symbol112;\nvar name122 = "AI_InvalidMessageRoleError";\nvar marker122 = `vercel.ai.error.${name122}`;\nvar symbol122 = Symbol.for(marker122);\nvar _a122;\n_a122 = symbol122;\nvar name132 = "AI_MessageConversionError";\nvar marker132 = `vercel.ai.error.${name132}`;\nvar symbol132 = Symbol.for(marker132);\nvar _a132;\nvar MessageConversionError = class extends AISDKError {\n constructor({\n originalMessage,\n message\n }) {\n super({ name: name132, message });\n this[_a132] = true;\n this.originalMessage = originalMessage;\n }\n static isInstance(error38) {\n return AISDKError.hasMarker(error38, marker132);\n }\n};\n_a132 = symbol132;\nvar name142 = "AI_DownloadError";\nvar marker142 = `vercel.ai.error.${name142}`;\nvar symbol142 = Symbol.for(marker142);\nvar _a142;\n_a142 = symbol142;\nvar name15 = "AI_RetryError";\nvar marker152 = `vercel.ai.error.${name15}`;\nvar symbol152 = Symbol.for(marker152);\nvar _a152;\n_a152 = symbol152;\nvar dataContentSchema = exports_external.union([\n exports_external.string(),\n exports_external.instanceof(Uint8Array),\n exports_external.instanceof(ArrayBuffer),\n exports_external.custom((value) => {\n var _a17, _b;\n return (_b = (_a17 = globalThis.Buffer) == null ? undefined : _a17.isBuffer(value)) != null ? _b : false;\n }, { message: "Must be a Buffer" })\n]);\nvar jsonValueSchema = exports_external.lazy(() => exports_external.union([\n exports_external.null(),\n exports_external.string(),\n exports_external.number(),\n exports_external.boolean(),\n exports_external.record(exports_external.string(), jsonValueSchema),\n exports_external.array(jsonValueSchema)\n]));\nvar providerMetadataSchema = exports_external.record(exports_external.string(), exports_external.record(exports_external.string(), jsonValueSchema));\nvar textPartSchema = exports_external.object({\n type: exports_external.literal("text"),\n text: exports_external.string(),\n providerOptions: providerMetadataSchema.optional()\n});\nvar imagePartSchema = exports_external.object({\n type: exports_external.literal("image"),\n image: exports_external.union([dataContentSchema, exports_external.instanceof(URL)]),\n mediaType: exports_external.string().optional(),\n providerOptions: providerMetadataSchema.optional()\n});\nvar filePartSchema = exports_external.object({\n type: exports_external.literal("file"),\n data: exports_external.union([dataContentSchema, exports_external.instanceof(URL)]),\n filename: exports_external.string().optional(),\n mediaType: exports_external.string(),\n providerOptions: providerMetadataSchema.optional()\n});\nvar reasoningPartSchema = exports_external.object({\n type: exports_external.literal("reasoning"),\n text: exports_external.string(),\n providerOptions: providerMetadataSchema.optional()\n});\nvar toolCallPartSchema = exports_external.object({\n type: exports_external.literal("tool-call"),\n toolCallId: exports_external.string(),\n toolName: exports_external.string(),\n input: exports_external.unknown(),\n providerOptions: providerMetadataSchema.optional(),\n providerExecuted: exports_external.boolean().optional()\n});\nvar outputSchema = exports_external.discriminatedUnion("type", [\n exports_external.object({\n type: exports_external.literal("text"),\n value: exports_external.string()\n }),\n exports_external.object({\n type: exports_external.literal("json"),\n value: jsonValueSchema\n }),\n exports_external.object({\n type: exports_external.literal("error-text"),\n value: exports_external.string()\n }),\n exports_external.object({\n type: exports_external.literal("error-json"),\n value: jsonValueSchema\n }),\n exports_external.object({\n type: exports_external.literal("content"),\n value: exports_external.array(exports_external.union([\n exports_external.object({\n type: exports_external.literal("text"),\n text: exports_external.string()\n }),\n exports_external.object({\n type: exports_external.literal("media"),\n data: exports_external.string(),\n mediaType: exports_external.string()\n })\n ]))\n })\n]);\nvar toolResultPartSchema = exports_external.object({\n type: exports_external.literal("tool-result"),\n toolCallId: exports_external.string(),\n toolName: exports_external.string(),\n output: outputSchema,\n providerOptions: providerMetadataSchema.optional()\n});\nvar systemModelMessageSchema = exports_external.object({\n role: exports_external.literal("system"),\n content: exports_external.string(),\n providerOptions: providerMetadataSchema.optional()\n});\nvar userModelMessageSchema = exports_external.object({\n role: exports_external.literal("user"),\n content: exports_external.union([\n exports_external.string(),\n exports_external.array(exports_external.union([textPartSchema, imagePartSchema, filePartSchema]))\n ]),\n providerOptions: providerMetadataSchema.optional()\n});\nvar assistantModelMessageSchema = exports_external.object({\n role: exports_external.literal("assistant"),\n content: exports_external.union([\n exports_external.string(),\n exports_external.array(exports_external.union([\n textPartSchema,\n filePartSchema,\n reasoningPartSchema,\n toolCallPartSchema,\n toolResultPartSchema\n ]))\n ]),\n providerOptions: providerMetadataSchema.optional()\n});\nvar toolModelMessageSchema = exports_external.object({\n role: exports_external.literal("tool"),\n content: exports_external.array(toolResultPartSchema),\n providerOptions: providerMetadataSchema.optional()\n});\nvar modelMessageSchema = exports_external.union([\n systemModelMessageSchema,\n userModelMessageSchema,\n assistantModelMessageSchema,\n toolModelMessageSchema\n]);\nfunction createToolModelOutput({\n output,\n tool: tool3,\n errorMode\n}) {\n if (errorMode === "text") {\n return { type: "error-text", value: getErrorMessage(output) };\n } else if (errorMode === "json") {\n return { type: "error-json", value: toJSONValue(output) };\n }\n if (tool3 == null ? undefined : tool3.toModelOutput) {\n return tool3.toModelOutput(output);\n }\n return typeof output === "string" ? { type: "text", value: output } : { type: "json", value: toJSONValue(output) };\n}\nfunction toJSONValue(value) {\n return value === undefined ? null : value;\n}\nvar originalGenerateId = createIdGenerator({\n prefix: "aitxt",\n size: 24\n});\nvar JsonToSseTransformStream = class extends TransformStream {\n constructor() {\n super({\n transform(part, controller) {\n controller.enqueue(`data: ${JSON.stringify(part)}\n\n`);\n },\n flush(controller) {\n controller.enqueue(`data: [DONE]\n\n`);\n }\n });\n }\n};\nvar uiMessageChunkSchema = exports_external.union([\n exports_external.strictObject({\n type: exports_external.literal("text-start"),\n id: exports_external.string(),\n providerMetadata: providerMetadataSchema.optional()\n }),\n exports_external.strictObject({\n type: exports_external.literal("text-delta"),\n id: exports_external.string(),\n delta: exports_external.string(),\n providerMetadata: providerMetadataSchema.optional()\n }),\n exports_external.strictObject({\n type: exports_external.literal("text-end"),\n id: exports_external.string(),\n providerMetadata: providerMetadataSchema.optional()\n }),\n exports_external.strictObject({\n type: exports_external.literal("error"),\n errorText: exports_external.string()\n }),\n exports_external.strictObject({\n type: exports_external.literal("tool-input-start"),\n toolCallId: exports_external.string(),\n toolName: exports_external.string(),\n providerExecuted: exports_external.boolean().optional(),\n dynamic: exports_external.boolean().optional()\n }),\n exports_external.strictObject({\n type: exports_external.literal("tool-input-delta"),\n toolCallId: exports_external.string(),\n inputTextDelta: exports_external.string()\n }),\n exports_external.strictObject({\n type: exports_external.literal("tool-input-available"),\n toolCallId: exports_external.string(),\n toolName: exports_external.string(),\n input: exports_external.unknown(),\n providerExecuted: exports_external.boolean().optional(),\n providerMetadata: providerMetadataSchema.optional(),\n dynamic: exports_external.boolean().optional()\n }),\n exports_external.strictObject({\n type: exports_external.literal("tool-input-error"),\n toolCallId: exports_external.string(),\n toolName: exports_external.string(),\n input: exports_external.unknown(),\n providerExecuted: exports_external.boolean().optional(),\n providerMetadata: providerMetadataSchema.optional(),\n dynamic: exports_external.boolean().optional(),\n errorText: exports_external.string()\n }),\n exports_external.strictObject({\n type: exports_external.literal("tool-output-available"),\n toolCallId: exports_external.string(),\n output: exports_external.unknown(),\n providerExecuted: exports_external.boolean().optional(),\n dynamic: exports_external.boolean().optional(),\n preliminary: exports_external.boolean().optional()\n }),\n exports_external.strictObject({\n type: exports_external.literal("tool-output-error"),\n toolCallId: exports_external.string(),\n errorText: exports_external.string(),\n providerExecuted: exports_external.boolean().optional(),\n dynamic: exports_external.boolean().optional()\n }),\n exports_external.strictObject({\n type: exports_external.literal("reasoning"),\n text: exports_external.string(),\n providerMetadata: providerMetadataSchema.optional()\n }),\n exports_external.strictObject({\n type: exports_external.literal("reasoning-start"),\n id: exports_external.string(),\n providerMetadata: providerMetadataSchema.optional()\n }),\n exports_external.strictObject({\n type: exports_external.literal("reasoning-delta"),\n id: exports_external.string(),\n delta: exports_external.string(),\n providerMetadata: providerMetadataSchema.optional()\n }),\n exports_external.strictObject({\n type: exports_external.literal("reasoning-end"),\n id: exports_external.string(),\n providerMetadata: providerMetadataSchema.optional()\n }),\n exports_external.strictObject({\n type: exports_external.literal("reasoning-part-finish")\n }),\n exports_external.strictObject({\n type: exports_external.literal("source-url"),\n sourceId: exports_external.string(),\n url: exports_external.string(),\n title: exports_external.string().optional(),\n providerMetadata: providerMetadataSchema.optional()\n }),\n exports_external.strictObject({\n type: exports_external.literal("source-document"),\n sourceId: exports_external.string(),\n mediaType: exports_external.string(),\n title: exports_external.string(),\n filename: exports_external.string().optional(),\n providerMetadata: providerMetadataSchema.optional()\n }),\n exports_external.strictObject({\n type: exports_external.literal("file"),\n url: exports_external.string(),\n mediaType: exports_external.string(),\n providerMetadata: providerMetadataSchema.optional()\n }),\n exports_external.strictObject({\n type: exports_external.string().startsWith("data-"),\n id: exports_external.string().optional(),\n data: exports_external.unknown(),\n transient: exports_external.boolean().optional()\n }),\n exports_external.strictObject({\n type: exports_external.literal("start-step")\n }),\n exports_external.strictObject({\n type: exports_external.literal("finish-step")\n }),\n exports_external.strictObject({\n type: exports_external.literal("start"),\n messageId: exports_external.string().optional(),\n messageMetadata: exports_external.unknown().optional()\n }),\n exports_external.strictObject({\n type: exports_external.literal("finish"),\n messageMetadata: exports_external.unknown().optional()\n }),\n exports_external.strictObject({\n type: exports_external.literal("abort")\n }),\n exports_external.strictObject({\n type: exports_external.literal("message-metadata"),\n messageMetadata: exports_external.unknown()\n })\n]);\nfunction isDataUIMessageChunk(chunk) {\n return chunk.type.startsWith("data-");\n}\nfunction mergeObjects(base, overrides) {\n if (base === undefined && overrides === undefined) {\n return;\n }\n if (base === undefined) {\n return overrides;\n }\n if (overrides === undefined) {\n return base;\n }\n const result = { ...base };\n for (const key in overrides) {\n if (Object.prototype.hasOwnProperty.call(overrides, key)) {\n const overridesValue = overrides[key];\n if (overridesValue === undefined)\n continue;\n const baseValue = key in base ? base[key] : undefined;\n const isSourceObject = overridesValue !== null && typeof overridesValue === "object" && !Array.isArray(overridesValue) && !(overridesValue instanceof Date) && !(overridesValue instanceof RegExp);\n const isTargetObject = baseValue !== null && baseValue !== undefined && typeof baseValue === "object" && !Array.isArray(baseValue) && !(baseValue instanceof Date) && !(baseValue instanceof RegExp);\n if (isSourceObject && isTargetObject) {\n result[key] = mergeObjects(baseValue, overridesValue);\n } else {\n result[key] = overridesValue;\n }\n }\n }\n return result;\n}\nfunction fixJson(input) {\n const stack = ["ROOT"];\n let lastValidIndex = -1;\n let literalStart = null;\n function processValueStart(char, i2, swapState) {\n {\n switch (char) {\n case \'"\': {\n lastValidIndex = i2;\n stack.pop();\n stack.push(swapState);\n stack.push("INSIDE_STRING");\n break;\n }\n case "f":\n case "t":\n case "n": {\n lastValidIndex = i2;\n literalStart = i2;\n stack.pop();\n stack.push(swapState);\n stack.push("INSIDE_LITERAL");\n break;\n }\n case "-": {\n stack.pop();\n stack.push(swapState);\n stack.push("INSIDE_NUMBER");\n break;\n }\n case "0":\n case "1":\n case "2":\n case "3":\n case "4":\n case "5":\n case "6":\n case "7":\n case "8":\n case "9": {\n lastValidIndex = i2;\n stack.pop();\n stack.push(swapState);\n stack.push("INSIDE_NUMBER");\n break;\n }\n case "{": {\n lastValidIndex = i2;\n stack.pop();\n stack.push(swapState);\n stack.push("INSIDE_OBJECT_START");\n break;\n }\n case "[": {\n lastValidIndex = i2;\n stack.pop();\n stack.push(swapState);\n stack.push("INSIDE_ARRAY_START");\n break;\n }\n }\n }\n }\n function processAfterObjectValue(char, i2) {\n switch (char) {\n case ",": {\n stack.pop();\n stack.push("INSIDE_OBJECT_AFTER_COMMA");\n break;\n }\n case "}": {\n lastValidIndex = i2;\n stack.pop();\n break;\n }\n }\n }\n function processAfterArrayValue(char, i2) {\n switch (char) {\n case ",": {\n stack.pop();\n stack.push("INSIDE_ARRAY_AFTER_COMMA");\n break;\n }\n case "]": {\n lastValidIndex = i2;\n stack.pop();\n break;\n }\n }\n }\n for (let i2 = 0;i2 < input.length; i2++) {\n const char = input[i2];\n const currentState = stack[stack.length - 1];\n switch (currentState) {\n case "ROOT":\n processValueStart(char, i2, "FINISH");\n break;\n case "INSIDE_OBJECT_START": {\n switch (char) {\n case \'"\': {\n stack.pop();\n stack.push("INSIDE_OBJECT_KEY");\n break;\n }\n case "}": {\n lastValidIndex = i2;\n stack.pop();\n break;\n }\n }\n break;\n }\n case "INSIDE_OBJECT_AFTER_COMMA": {\n switch (char) {\n case \'"\': {\n stack.pop();\n stack.push("INSIDE_OBJECT_KEY");\n break;\n }\n }\n break;\n }\n case "INSIDE_OBJECT_KEY": {\n switch (char) {\n case \'"\': {\n stack.pop();\n stack.push("INSIDE_OBJECT_AFTER_KEY");\n break;\n }\n }\n break;\n }\n case "INSIDE_OBJECT_AFTER_KEY": {\n switch (char) {\n case ":": {\n stack.pop();\n stack.push("INSIDE_OBJECT_BEFORE_VALUE");\n break;\n }\n }\n break;\n }\n case "INSIDE_OBJECT_BEFORE_VALUE": {\n processValueStart(char, i2, "INSIDE_OBJECT_AFTER_VALUE");\n break;\n }\n case "INSIDE_OBJECT_AFTER_VALUE": {\n processAfterObjectValue(char, i2);\n break;\n }\n case "INSIDE_STRING": {\n switch (char) {\n case \'"\': {\n stack.pop();\n lastValidIndex = i2;\n break;\n }\n case "\\\\": {\n stack.push("INSIDE_STRING_ESCAPE");\n break;\n }\n default: {\n lastValidIndex = i2;\n }\n }\n break;\n }\n case "INSIDE_ARRAY_START": {\n switch (char) {\n case "]": {\n lastValidIndex = i2;\n stack.pop();\n break;\n }\n default: {\n lastValidIndex = i2;\n processValueStart(char, i2, "INSIDE_ARRAY_AFTER_VALUE");\n break;\n }\n }\n break;\n }\n case "INSIDE_ARRAY_AFTER_VALUE": {\n switch (char) {\n case ",": {\n stack.pop();\n stack.push("INSIDE_ARRAY_AFTER_COMMA");\n break;\n }\n case "]": {\n lastValidIndex = i2;\n stack.pop();\n break;\n }\n default: {\n lastValidIndex = i2;\n break;\n }\n }\n break;\n }\n case "INSIDE_ARRAY_AFTER_COMMA": {\n processValueStart(char, i2, "INSIDE_ARRAY_AFTER_VALUE");\n break;\n }\n case "INSIDE_STRING_ESCAPE": {\n stack.pop();\n lastValidIndex = i2;\n break;\n }\n case "INSIDE_NUMBER": {\n switch (char) {\n case "0":\n case "1":\n case "2":\n case "3":\n case "4":\n case "5":\n case "6":\n case "7":\n case "8":\n case "9": {\n lastValidIndex = i2;\n break;\n }\n case "e":\n case "E":\n case "-":\n case ".": {\n break;\n }\n case ",": {\n stack.pop();\n if (stack[stack.length - 1] === "INSIDE_ARRAY_AFTER_VALUE") {\n processAfterArrayValue(char, i2);\n }\n if (stack[stack.length - 1] === "INSIDE_OBJECT_AFTER_VALUE") {\n processAfterObjectValue(char, i2);\n }\n break;\n }\n case "}": {\n stack.pop();\n if (stack[stack.length - 1] === "INSIDE_OBJECT_AFTER_VALUE") {\n processAfterObjectValue(char, i2);\n }\n break;\n }\n case "]": {\n stack.pop();\n if (stack[stack.length - 1] === "INSIDE_ARRAY_AFTER_VALUE") {\n processAfterArrayValue(char, i2);\n }\n break;\n }\n default: {\n stack.pop();\n break;\n }\n }\n break;\n }\n case "INSIDE_LITERAL": {\n const partialLiteral = input.substring(literalStart, i2 + 1);\n if (!"false".startsWith(partialLiteral) && !"true".startsWith(partialLiteral) && !"null".startsWith(partialLiteral)) {\n stack.pop();\n if (stack[stack.length - 1] === "INSIDE_OBJECT_AFTER_VALUE") {\n processAfterObjectValue(char, i2);\n } else if (stack[stack.length - 1] === "INSIDE_ARRAY_AFTER_VALUE") {\n processAfterArrayValue(char, i2);\n }\n } else {\n lastValidIndex = i2;\n }\n break;\n }\n }\n }\n let result = input.slice(0, lastValidIndex + 1);\n for (let i2 = stack.length - 1;i2 >= 0; i2--) {\n const state = stack[i2];\n switch (state) {\n case "INSIDE_STRING": {\n result += \'"\';\n break;\n }\n case "INSIDE_OBJECT_KEY":\n case "INSIDE_OBJECT_AFTER_KEY":\n case "INSIDE_OBJECT_AFTER_COMMA":\n case "INSIDE_OBJECT_START":\n case "INSIDE_OBJECT_BEFORE_VALUE":\n case "INSIDE_OBJECT_AFTER_VALUE": {\n result += "}";\n break;\n }\n case "INSIDE_ARRAY_START":\n case "INSIDE_ARRAY_AFTER_COMMA":\n case "INSIDE_ARRAY_AFTER_VALUE": {\n result += "]";\n break;\n }\n case "INSIDE_LITERAL": {\n const partialLiteral = input.substring(literalStart, input.length);\n if ("true".startsWith(partialLiteral)) {\n result += "true".slice(partialLiteral.length);\n } else if ("false".startsWith(partialLiteral)) {\n result += "false".slice(partialLiteral.length);\n } else if ("null".startsWith(partialLiteral)) {\n result += "null".slice(partialLiteral.length);\n }\n }\n }\n }\n return result;\n}\nasync function parsePartialJson(jsonText) {\n if (jsonText === undefined) {\n return { value: undefined, state: "undefined-input" };\n }\n let result = await safeParseJSON({ text: jsonText });\n if (result.success) {\n return { value: result.value, state: "successful-parse" };\n }\n result = await safeParseJSON({ text: fixJson(jsonText) });\n if (result.success) {\n return { value: result.value, state: "repaired-parse" };\n }\n return { value: undefined, state: "failed-parse" };\n}\nfunction isToolUIPart(part) {\n return part.type.startsWith("tool-");\n}\nfunction isDynamicToolUIPart(part) {\n return part.type === "dynamic-tool";\n}\nfunction isToolOrDynamicToolUIPart(part) {\n return isToolUIPart(part) || isDynamicToolUIPart(part);\n}\nfunction getToolName(part) {\n return part.type.split("-").slice(1).join("-");\n}\nfunction createStreamingUIMessageState({\n lastMessage,\n messageId\n}) {\n return {\n message: (lastMessage == null ? undefined : lastMessage.role) === "assistant" ? lastMessage : {\n id: messageId,\n metadata: undefined,\n role: "assistant",\n parts: []\n },\n activeTextParts: {},\n activeReasoningParts: {},\n partialToolCalls: {}\n };\n}\nfunction processUIMessageStream({\n stream,\n messageMetadataSchema,\n dataPartSchemas,\n runUpdateMessageJob,\n onError,\n onToolCall,\n onData\n}) {\n return stream.pipeThrough(new TransformStream({\n async transform(chunk, controller) {\n await runUpdateMessageJob(async ({ state, write }) => {\n var _a17, _b, _c, _d;\n function getToolInvocation(toolCallId) {\n const toolInvocations = state.message.parts.filter(isToolUIPart);\n const toolInvocation = toolInvocations.find((invocation) => invocation.toolCallId === toolCallId);\n if (toolInvocation == null) {\n throw new Error("tool-output-error must be preceded by a tool-input-available");\n }\n return toolInvocation;\n }\n function getDynamicToolInvocation(toolCallId) {\n const toolInvocations = state.message.parts.filter((part) => part.type === "dynamic-tool");\n const toolInvocation = toolInvocations.find((invocation) => invocation.toolCallId === toolCallId);\n if (toolInvocation == null) {\n throw new Error("tool-output-error must be preceded by a tool-input-available");\n }\n return toolInvocation;\n }\n function updateToolPart(options) {\n var _a18;\n const part = state.message.parts.find((part2) => isToolUIPart(part2) && part2.toolCallId === options.toolCallId);\n const anyOptions = options;\n const anyPart = part;\n if (part != null) {\n part.state = options.state;\n anyPart.input = anyOptions.input;\n anyPart.output = anyOptions.output;\n anyPart.errorText = anyOptions.errorText;\n anyPart.rawInput = anyOptions.rawInput;\n anyPart.preliminary = anyOptions.preliminary;\n anyPart.providerExecuted = (_a18 = anyOptions.providerExecuted) != null ? _a18 : part.providerExecuted;\n if (anyOptions.providerMetadata != null && part.state === "input-available") {\n part.callProviderMetadata = anyOptions.providerMetadata;\n }\n } else {\n state.message.parts.push({\n type: `tool-${options.toolName}`,\n toolCallId: options.toolCallId,\n state: options.state,\n input: anyOptions.input,\n output: anyOptions.output,\n rawInput: anyOptions.rawInput,\n errorText: anyOptions.errorText,\n providerExecuted: anyOptions.providerExecuted,\n preliminary: anyOptions.preliminary,\n ...anyOptions.providerMetadata != null ? { callProviderMetadata: anyOptions.providerMetadata } : {}\n });\n }\n }\n function updateDynamicToolPart(options) {\n var _a18;\n const part = state.message.parts.find((part2) => part2.type === "dynamic-tool" && part2.toolCallId === options.toolCallId);\n const anyOptions = options;\n const anyPart = part;\n if (part != null) {\n part.state = options.state;\n anyPart.toolName = options.toolName;\n anyPart.input = anyOptions.input;\n anyPart.output = anyOptions.output;\n anyPart.errorText = anyOptions.errorText;\n anyPart.rawInput = (_a18 = anyOptions.rawInput) != null ? _a18 : anyPart.rawInput;\n anyPart.preliminary = anyOptions.preliminary;\n if (anyOptions.providerMetadata != null && part.state === "input-available") {\n part.callProviderMetadata = anyOptions.providerMetadata;\n }\n } else {\n state.message.parts.push({\n type: "dynamic-tool",\n toolName: options.toolName,\n toolCallId: options.toolCallId,\n state: options.state,\n input: anyOptions.input,\n output: anyOptions.output,\n errorText: anyOptions.errorText,\n preliminary: anyOptions.preliminary,\n ...anyOptions.providerMetadata != null ? { callProviderMetadata: anyOptions.providerMetadata } : {}\n });\n }\n }\n async function updateMessageMetadata(metadata) {\n if (metadata != null) {\n const mergedMetadata = state.message.metadata != null ? mergeObjects(state.message.metadata, metadata) : metadata;\n if (messageMetadataSchema != null) {\n await validateTypes({\n value: mergedMetadata,\n schema: messageMetadataSchema\n });\n }\n state.message.metadata = mergedMetadata;\n }\n }\n switch (chunk.type) {\n case "text-start": {\n const textPart = {\n type: "text",\n text: "",\n providerMetadata: chunk.providerMetadata,\n state: "streaming"\n };\n state.activeTextParts[chunk.id] = textPart;\n state.message.parts.push(textPart);\n write();\n break;\n }\n case "text-delta": {\n const textPart = state.activeTextParts[chunk.id];\n textPart.text += chunk.delta;\n textPart.providerMetadata = (_a17 = chunk.providerMetadata) != null ? _a17 : textPart.providerMetadata;\n write();\n break;\n }\n case "text-end": {\n const textPart = state.activeTextParts[chunk.id];\n textPart.state = "done";\n textPart.providerMetadata = (_b = chunk.providerMetadata) != null ? _b : textPart.providerMetadata;\n delete state.activeTextParts[chunk.id];\n write();\n break;\n }\n case "reasoning-start": {\n const reasoningPart = {\n type: "reasoning",\n text: "",\n providerMetadata: chunk.providerMetadata,\n state: "streaming"\n };\n state.activeReasoningParts[chunk.id] = reasoningPart;\n state.message.parts.push(reasoningPart);\n write();\n break;\n }\n case "reasoning-delta": {\n const reasoningPart = state.activeReasoningParts[chunk.id];\n reasoningPart.text += chunk.delta;\n reasoningPart.providerMetadata = (_c = chunk.providerMetadata) != null ? _c : reasoningPart.providerMetadata;\n write();\n break;\n }\n case "reasoning-end": {\n const reasoningPart = state.activeReasoningParts[chunk.id];\n reasoningPart.providerMetadata = (_d = chunk.providerMetadata) != null ? _d : reasoningPart.providerMetadata;\n reasoningPart.state = "done";\n delete state.activeReasoningParts[chunk.id];\n write();\n break;\n }\n case "file": {\n state.message.parts.push({\n type: "file",\n mediaType: chunk.mediaType,\n url: chunk.url\n });\n write();\n break;\n }\n case "source-url": {\n state.message.parts.push({\n type: "source-url",\n sourceId: chunk.sourceId,\n url: chunk.url,\n title: chunk.title,\n providerMetadata: chunk.providerMetadata\n });\n write();\n break;\n }\n case "source-document": {\n state.message.parts.push({\n type: "source-document",\n sourceId: chunk.sourceId,\n mediaType: chunk.mediaType,\n title: chunk.title,\n filename: chunk.filename,\n providerMetadata: chunk.providerMetadata\n });\n write();\n break;\n }\n case "tool-input-start": {\n const toolInvocations = state.message.parts.filter(isToolUIPart);\n state.partialToolCalls[chunk.toolCallId] = {\n text: "",\n toolName: chunk.toolName,\n index: toolInvocations.length,\n dynamic: chunk.dynamic\n };\n if (chunk.dynamic) {\n updateDynamicToolPart({\n toolCallId: chunk.toolCallId,\n toolName: chunk.toolName,\n state: "input-streaming",\n input: undefined\n });\n } else {\n updateToolPart({\n toolCallId: chunk.toolCallId,\n toolName: chunk.toolName,\n state: "input-streaming",\n input: undefined,\n providerExecuted: chunk.providerExecuted\n });\n }\n write();\n break;\n }\n case "tool-input-delta": {\n const partialToolCall = state.partialToolCalls[chunk.toolCallId];\n partialToolCall.text += chunk.inputTextDelta;\n const { value: partialArgs } = await parsePartialJson(partialToolCall.text);\n if (partialToolCall.dynamic) {\n updateDynamicToolPart({\n toolCallId: chunk.toolCallId,\n toolName: partialToolCall.toolName,\n state: "input-streaming",\n input: partialArgs\n });\n } else {\n updateToolPart({\n toolCallId: chunk.toolCallId,\n toolName: partialToolCall.toolName,\n state: "input-streaming",\n input: partialArgs\n });\n }\n write();\n break;\n }\n case "tool-input-available": {\n if (chunk.dynamic) {\n updateDynamicToolPart({\n toolCallId: chunk.toolCallId,\n toolName: chunk.toolName,\n state: "input-available",\n input: chunk.input,\n providerMetadata: chunk.providerMetadata\n });\n } else {\n updateToolPart({\n toolCallId: chunk.toolCallId,\n toolName: chunk.toolName,\n state: "input-available",\n input: chunk.input,\n providerExecuted: chunk.providerExecuted,\n providerMetadata: chunk.providerMetadata\n });\n }\n write();\n if (onToolCall && !chunk.providerExecuted) {\n await onToolCall({\n toolCall: chunk\n });\n }\n break;\n }\n case "tool-input-error": {\n if (chunk.dynamic) {\n updateDynamicToolPart({\n toolCallId: chunk.toolCallId,\n toolName: chunk.toolName,\n state: "output-error",\n input: chunk.input,\n errorText: chunk.errorText,\n providerMetadata: chunk.providerMetadata\n });\n } else {\n updateToolPart({\n toolCallId: chunk.toolCallId,\n toolName: chunk.toolName,\n state: "output-error",\n input: undefined,\n rawInput: chunk.input,\n errorText: chunk.errorText,\n providerExecuted: chunk.providerExecuted,\n providerMetadata: chunk.providerMetadata\n });\n }\n write();\n break;\n }\n case "tool-output-available": {\n if (chunk.dynamic) {\n const toolInvocation = getDynamicToolInvocation(chunk.toolCallId);\n updateDynamicToolPart({\n toolCallId: chunk.toolCallId,\n toolName: toolInvocation.toolName,\n state: "output-available",\n input: toolInvocation.input,\n output: chunk.output,\n preliminary: chunk.preliminary\n });\n } else {\n const toolInvocation = getToolInvocation(chunk.toolCallId);\n updateToolPart({\n toolCallId: chunk.toolCallId,\n toolName: getToolName(toolInvocation),\n state: "output-available",\n input: toolInvocation.input,\n output: chunk.output,\n providerExecuted: chunk.providerExecuted,\n preliminary: chunk.preliminary\n });\n }\n write();\n break;\n }\n case "tool-output-error": {\n if (chunk.dynamic) {\n const toolInvocation = getDynamicToolInvocation(chunk.toolCallId);\n updateDynamicToolPart({\n toolCallId: chunk.toolCallId,\n toolName: toolInvocation.toolName,\n state: "output-error",\n input: toolInvocation.input,\n errorText: chunk.errorText\n });\n } else {\n const toolInvocation = getToolInvocation(chunk.toolCallId);\n updateToolPart({\n toolCallId: chunk.toolCallId,\n toolName: getToolName(toolInvocation),\n state: "output-error",\n input: toolInvocation.input,\n rawInput: toolInvocation.rawInput,\n errorText: chunk.errorText\n });\n }\n write();\n break;\n }\n case "start-step": {\n state.message.parts.push({ type: "step-start" });\n break;\n }\n case "finish-step": {\n state.activeTextParts = {};\n state.activeReasoningParts = {};\n break;\n }\n case "start": {\n if (chunk.messageId != null) {\n state.message.id = chunk.messageId;\n }\n await updateMessageMetadata(chunk.messageMetadata);\n if (chunk.messageId != null || chunk.messageMetadata != null) {\n write();\n }\n break;\n }\n case "finish": {\n await updateMessageMetadata(chunk.messageMetadata);\n if (chunk.messageMetadata != null) {\n write();\n }\n break;\n }\n case "message-metadata": {\n await updateMessageMetadata(chunk.messageMetadata);\n if (chunk.messageMetadata != null) {\n write();\n }\n break;\n }\n case "error": {\n onError == null || onError(new Error(chunk.errorText));\n break;\n }\n default: {\n if (isDataUIMessageChunk(chunk)) {\n if ((dataPartSchemas == null ? undefined : dataPartSchemas[chunk.type]) != null) {\n await validateTypes({\n value: chunk.data,\n schema: dataPartSchemas[chunk.type]\n });\n }\n const dataChunk = chunk;\n if (dataChunk.transient) {\n onData == null || onData(dataChunk);\n break;\n }\n const existingUIPart = dataChunk.id != null ? state.message.parts.find((chunkArg) => dataChunk.type === chunkArg.type && dataChunk.id === chunkArg.id) : undefined;\n if (existingUIPart != null) {\n existingUIPart.data = dataChunk.data;\n } else {\n state.message.parts.push(dataChunk);\n }\n onData == null || onData(dataChunk);\n write();\n }\n }\n }\n controller.enqueue(chunk);\n });\n }\n }));\n}\nfunction handleUIMessageStreamFinish({\n messageId,\n originalMessages = [],\n onFinish,\n onError,\n stream\n}) {\n let lastMessage = originalMessages == null ? undefined : originalMessages[originalMessages.length - 1];\n if ((lastMessage == null ? undefined : lastMessage.role) !== "assistant") {\n lastMessage = undefined;\n } else {\n messageId = lastMessage.id;\n }\n let isAborted2 = false;\n const idInjectedStream = stream.pipeThrough(new TransformStream({\n transform(chunk, controller) {\n if (chunk.type === "start") {\n const startChunk = chunk;\n if (startChunk.messageId == null && messageId != null) {\n startChunk.messageId = messageId;\n }\n }\n if (chunk.type === "abort") {\n isAborted2 = true;\n }\n controller.enqueue(chunk);\n }\n }));\n if (onFinish == null) {\n return idInjectedStream;\n }\n const state = createStreamingUIMessageState({\n lastMessage: lastMessage ? structuredClone(lastMessage) : undefined,\n messageId: messageId != null ? messageId : ""\n });\n const runUpdateMessageJob = async (job) => {\n await job({ state, write: () => {} });\n };\n let finishCalled = false;\n const callOnFinish = async () => {\n if (finishCalled || !onFinish) {\n return;\n }\n finishCalled = true;\n const isContinuation = state.message.id === (lastMessage == null ? undefined : lastMessage.id);\n await onFinish({\n isAborted: isAborted2,\n isContinuation,\n responseMessage: state.message,\n messages: [\n ...isContinuation ? originalMessages.slice(0, -1) : originalMessages,\n state.message\n ]\n });\n };\n return processUIMessageStream({\n stream: idInjectedStream,\n runUpdateMessageJob,\n onError\n }).pipeThrough(new TransformStream({\n transform(chunk, controller) {\n controller.enqueue(chunk);\n },\n async cancel() {\n await callOnFinish();\n },\n async flush() {\n await callOnFinish();\n }\n }));\n}\nvar originalGenerateId2 = createIdGenerator({\n prefix: "aitxt",\n size: 24\n});\nfunction convertToModelMessages(messages, options) {\n const modelMessages = [];\n if (options == null ? undefined : options.ignoreIncompleteToolCalls) {\n messages = messages.map((message) => ({\n ...message,\n parts: message.parts.filter((part) => !isToolOrDynamicToolUIPart(part) || part.state !== "input-streaming" && part.state !== "input-available")\n }));\n }\n for (const message of messages) {\n switch (message.role) {\n case "system": {\n const textParts = message.parts.filter((part) => part.type === "text");\n const providerMetadata = textParts.reduce((acc, part) => {\n if (part.providerMetadata != null) {\n return { ...acc, ...part.providerMetadata };\n }\n return acc;\n }, {});\n modelMessages.push({\n role: "system",\n content: textParts.map((part) => part.text).join(""),\n ...Object.keys(providerMetadata).length > 0 ? { providerOptions: providerMetadata } : {}\n });\n break;\n }\n case "user": {\n modelMessages.push({\n role: "user",\n content: message.parts.filter((part) => part.type === "text" || part.type === "file").map((part) => {\n switch (part.type) {\n case "text":\n return {\n type: "text",\n text: part.text,\n ...part.providerMetadata != null ? { providerOptions: part.providerMetadata } : {}\n };\n case "file":\n return {\n type: "file",\n mediaType: part.mediaType,\n filename: part.filename,\n data: part.url,\n ...part.providerMetadata != null ? { providerOptions: part.providerMetadata } : {}\n };\n default:\n return part;\n }\n })\n });\n break;\n }\n case "assistant": {\n if (message.parts != null) {\n let processBlock2 = function() {\n var _a17, _b;\n if (block.length === 0) {\n return;\n }\n const content = [];\n for (const part of block) {\n if (part.type === "text") {\n content.push({\n type: "text",\n text: part.text,\n ...part.providerMetadata != null ? { providerOptions: part.providerMetadata } : {}\n });\n } else if (part.type === "file") {\n content.push({\n type: "file",\n mediaType: part.mediaType,\n filename: part.filename,\n data: part.url\n });\n } else if (part.type === "reasoning") {\n content.push({\n type: "reasoning",\n text: part.text,\n providerOptions: part.providerMetadata\n });\n } else if (part.type === "dynamic-tool") {\n const toolName = part.toolName;\n if (part.state !== "input-streaming") {\n content.push({\n type: "tool-call",\n toolCallId: part.toolCallId,\n toolName,\n input: part.input,\n ...part.callProviderMetadata != null ? { providerOptions: part.callProviderMetadata } : {}\n });\n }\n } else if (isToolUIPart(part)) {\n const toolName = getToolName(part);\n if (part.state !== "input-streaming") {\n content.push({\n type: "tool-call",\n toolCallId: part.toolCallId,\n toolName,\n input: part.state === "output-error" ? (_a17 = part.input) != null ? _a17 : part.rawInput : part.input,\n providerExecuted: part.providerExecuted,\n ...part.callProviderMetadata != null ? { providerOptions: part.callProviderMetadata } : {}\n });\n if (part.providerExecuted === true && (part.state === "output-available" || part.state === "output-error")) {\n content.push({\n type: "tool-result",\n toolCallId: part.toolCallId,\n toolName,\n output: createToolModelOutput({\n output: part.state === "output-error" ? part.errorText : part.output,\n tool: (_b = options == null ? undefined : options.tools) == null ? undefined : _b[toolName],\n errorMode: part.state === "output-error" ? "json" : "none"\n })\n });\n }\n }\n } else {\n const _exhaustiveCheck = part;\n throw new Error(`Unsupported part: ${_exhaustiveCheck}`);\n }\n }\n modelMessages.push({\n role: "assistant",\n content\n });\n const toolParts = block.filter((part) => isToolUIPart(part) && part.providerExecuted !== true || part.type === "dynamic-tool");\n if (toolParts.length > 0) {\n modelMessages.push({\n role: "tool",\n content: toolParts.map((toolPart) => {\n var _a18;\n switch (toolPart.state) {\n case "output-error":\n case "output-available": {\n const toolName = toolPart.type === "dynamic-tool" ? toolPart.toolName : getToolName(toolPart);\n return {\n type: "tool-result",\n toolCallId: toolPart.toolCallId,\n toolName,\n output: createToolModelOutput({\n output: toolPart.state === "output-error" ? toolPart.errorText : toolPart.output,\n tool: (_a18 = options == null ? undefined : options.tools) == null ? undefined : _a18[toolName],\n errorMode: toolPart.state === "output-error" ? "text" : "none"\n })\n };\n }\n default: {\n return null;\n }\n }\n }).filter((output) => output != null)\n });\n }\n block = [];\n };\n var processBlock = processBlock2;\n let block = [];\n for (const part of message.parts) {\n if (part.type === "text" || part.type === "reasoning" || part.type === "file" || part.type === "dynamic-tool" || isToolUIPart(part)) {\n block.push(part);\n } else if (part.type === "step-start") {\n processBlock2();\n }\n }\n processBlock2();\n break;\n }\n break;\n }\n default: {\n const _exhaustiveCheck = message.role;\n throw new MessageConversionError({\n originalMessage: message,\n message: `Unsupported role: ${_exhaustiveCheck}`\n });\n }\n }\n }\n return modelMessages;\n}\nvar originalGenerateId3 = createIdGenerator({ prefix: "aiobj", size: 24 });\nvar originalGenerateId4 = createIdGenerator({ prefix: "aiobj", size: 24 });\nvar output_exports = {};\n__export2(output_exports, {\n object: () => object2,\n text: () => text\n});\nvar text = () => ({\n type: "text",\n responseFormat: { type: "text" },\n async parsePartial({ text: text2 }) {\n return { partial: text2 };\n },\n async parseOutput({ text: text2 }) {\n return text2;\n }\n});\nvar object2 = ({\n schema: inputSchema\n}) => {\n const schema = asSchema(inputSchema);\n return {\n type: "object",\n responseFormat: {\n type: "json",\n schema: schema.jsonSchema\n },\n async parsePartial({ text: text2 }) {\n const result = await parsePartialJson(text2);\n switch (result.state) {\n case "failed-parse":\n case "undefined-input":\n return;\n case "repaired-parse":\n case "successful-parse":\n return {\n partial: result.value\n };\n default: {\n const _exhaustiveCheck = result.state;\n throw new Error(`Unsupported parse state: ${_exhaustiveCheck}`);\n }\n }\n },\n async parseOutput({ text: text2 }, context) {\n const parseResult = await safeParseJSON({ text: text2 });\n if (!parseResult.success) {\n throw new NoObjectGeneratedError({\n message: "No object generated: could not parse the response.",\n cause: parseResult.error,\n text: text2,\n response: context.response,\n usage: context.usage,\n finishReason: context.finishReason\n });\n }\n const validationResult = await safeValidateTypes({\n value: parseResult.value,\n schema\n });\n if (!validationResult.success) {\n throw new NoObjectGeneratedError({\n message: "No object generated: response did not match schema.",\n cause: validationResult.error,\n text: text2,\n response: context.response,\n usage: context.usage,\n finishReason: context.finishReason\n });\n }\n return validationResult.value;\n }\n };\n};\nvar name16 = "AI_NoSuchProviderError";\nvar marker16 = `vercel.ai.error.${name16}`;\nvar symbol16 = Symbol.for(marker16);\nvar _a16;\n_a16 = symbol16;\nvar ClientOrServerImplementationSchema = exports_external.looseObject({\n name: exports_external.string(),\n version: exports_external.string()\n});\nvar BaseParamsSchema = exports_external.looseObject({\n _meta: exports_external.optional(exports_external.object({}).loose())\n});\nvar ResultSchema = BaseParamsSchema;\nvar RequestSchema = exports_external.object({\n method: exports_external.string(),\n params: exports_external.optional(BaseParamsSchema)\n});\nvar ServerCapabilitiesSchema = exports_external.looseObject({\n experimental: exports_external.optional(exports_external.object({}).loose()),\n logging: exports_external.optional(exports_external.object({}).loose()),\n prompts: exports_external.optional(exports_external.looseObject({\n listChanged: exports_external.optional(exports_external.boolean())\n })),\n resources: exports_external.optional(exports_external.looseObject({\n subscribe: exports_external.optional(exports_external.boolean()),\n listChanged: exports_external.optional(exports_external.boolean())\n })),\n tools: exports_external.optional(exports_external.looseObject({\n listChanged: exports_external.optional(exports_external.boolean())\n }))\n});\nvar InitializeResultSchema = ResultSchema.extend({\n protocolVersion: exports_external.string(),\n capabilities: ServerCapabilitiesSchema,\n serverInfo: ClientOrServerImplementationSchema,\n instructions: exports_external.optional(exports_external.string())\n});\nvar PaginatedResultSchema = ResultSchema.extend({\n nextCursor: exports_external.optional(exports_external.string())\n});\nvar ToolSchema = exports_external.object({\n name: exports_external.string(),\n description: exports_external.optional(exports_external.string()),\n inputSchema: exports_external.object({\n type: exports_external.literal("object"),\n properties: exports_external.optional(exports_external.object({}).loose())\n }).loose()\n}).loose();\nvar ListToolsResultSchema = PaginatedResultSchema.extend({\n tools: exports_external.array(ToolSchema)\n});\nvar TextContentSchema = exports_external.object({\n type: exports_external.literal("text"),\n text: exports_external.string()\n}).loose();\nvar ImageContentSchema = exports_external.object({\n type: exports_external.literal("image"),\n data: exports_external.base64(),\n mimeType: exports_external.string()\n}).loose();\nvar ResourceContentsSchema = exports_external.object({\n uri: exports_external.string(),\n mimeType: exports_external.optional(exports_external.string())\n}).loose();\nvar TextResourceContentsSchema = ResourceContentsSchema.extend({\n text: exports_external.string()\n});\nvar BlobResourceContentsSchema = ResourceContentsSchema.extend({\n blob: exports_external.base64()\n});\nvar EmbeddedResourceSchema = exports_external.object({\n type: exports_external.literal("resource"),\n resource: exports_external.union([TextResourceContentsSchema, BlobResourceContentsSchema])\n}).loose();\nvar CallToolResultSchema = ResultSchema.extend({\n content: exports_external.array(exports_external.union([TextContentSchema, ImageContentSchema, EmbeddedResourceSchema])),\n isError: exports_external.boolean().default(false).optional()\n}).or(ResultSchema.extend({\n toolResult: exports_external.unknown()\n}));\nvar JSONRPC_VERSION = "2.0";\nvar JSONRPCRequestSchema = exports_external.object({\n jsonrpc: exports_external.literal(JSONRPC_VERSION),\n id: exports_external.union([exports_external.string(), exports_external.number().int()])\n}).merge(RequestSchema).strict();\nvar JSONRPCResponseSchema = exports_external.object({\n jsonrpc: exports_external.literal(JSONRPC_VERSION),\n id: exports_external.union([exports_external.string(), exports_external.number().int()]),\n result: ResultSchema\n}).strict();\nvar JSONRPCErrorSchema = exports_external.object({\n jsonrpc: exports_external.literal(JSONRPC_VERSION),\n id: exports_external.union([exports_external.string(), exports_external.number().int()]),\n error: exports_external.object({\n code: exports_external.number().int(),\n message: exports_external.string(),\n data: exports_external.optional(exports_external.unknown())\n })\n}).strict();\nvar JSONRPCNotificationSchema = exports_external.object({\n jsonrpc: exports_external.literal(JSONRPC_VERSION)\n}).merge(exports_external.object({\n method: exports_external.string(),\n params: exports_external.optional(BaseParamsSchema)\n})).strict();\nvar JSONRPCMessageSchema = exports_external.union([\n JSONRPCRequestSchema,\n JSONRPCNotificationSchema,\n JSONRPCResponseSchema,\n JSONRPCErrorSchema\n]);\nvar textUIPartSchema = exports_external.object({\n type: exports_external.literal("text"),\n text: exports_external.string(),\n state: exports_external.enum(["streaming", "done"]).optional(),\n providerMetadata: providerMetadataSchema.optional()\n});\nvar reasoningUIPartSchema = exports_external.object({\n type: exports_external.literal("reasoning"),\n text: exports_external.string(),\n state: exports_external.enum(["streaming", "done"]).optional(),\n providerMetadata: providerMetadataSchema.optional()\n});\nvar sourceUrlUIPartSchema = exports_external.object({\n type: exports_external.literal("source-url"),\n sourceId: exports_external.string(),\n url: exports_external.string(),\n title: exports_external.string().optional(),\n providerMetadata: providerMetadataSchema.optional()\n});\nvar sourceDocumentUIPartSchema = exports_external.object({\n type: exports_external.literal("source-document"),\n sourceId: exports_external.string(),\n mediaType: exports_external.string(),\n title: exports_external.string(),\n filename: exports_external.string().optional(),\n providerMetadata: providerMetadataSchema.optional()\n});\nvar fileUIPartSchema = exports_external.object({\n type: exports_external.literal("file"),\n mediaType: exports_external.string(),\n filename: exports_external.string().optional(),\n url: exports_external.string(),\n providerMetadata: providerMetadataSchema.optional()\n});\nvar stepStartUIPartSchema = exports_external.object({\n type: exports_external.literal("step-start")\n});\nvar dataUIPartSchema = exports_external.object({\n type: exports_external.string().startsWith("data-"),\n id: exports_external.string().optional(),\n data: exports_external.unknown()\n});\nvar dynamicToolUIPartSchemas = [\n exports_external.object({\n type: exports_external.literal("dynamic-tool"),\n toolName: exports_external.string(),\n toolCallId: exports_external.string(),\n state: exports_external.literal("input-streaming"),\n input: exports_external.unknown().optional(),\n output: exports_external.never().optional(),\n errorText: exports_external.never().optional()\n }),\n exports_external.object({\n type: exports_external.literal("dynamic-tool"),\n toolName: exports_external.string(),\n toolCallId: exports_external.string(),\n state: exports_external.literal("input-available"),\n input: exports_external.unknown(),\n output: exports_external.never().optional(),\n errorText: exports_external.never().optional(),\n callProviderMetadata: providerMetadataSchema.optional()\n }),\n exports_external.object({\n type: exports_external.literal("dynamic-tool"),\n toolName: exports_external.string(),\n toolCallId: exports_external.string(),\n state: exports_external.literal("output-available"),\n input: exports_external.unknown(),\n output: exports_external.unknown(),\n errorText: exports_external.never().optional(),\n callProviderMetadata: providerMetadataSchema.optional(),\n preliminary: exports_external.boolean().optional()\n }),\n exports_external.object({\n type: exports_external.literal("dynamic-tool"),\n toolName: exports_external.string(),\n toolCallId: exports_external.string(),\n state: exports_external.literal("output-error"),\n input: exports_external.unknown(),\n output: exports_external.never().optional(),\n errorText: exports_external.string(),\n callProviderMetadata: providerMetadataSchema.optional()\n })\n];\nvar toolUIPartSchemas = [\n exports_external.object({\n type: exports_external.string().startsWith("tool-"),\n toolCallId: exports_external.string(),\n state: exports_external.literal("input-streaming"),\n input: exports_external.unknown().optional(),\n output: exports_external.never().optional(),\n errorText: exports_external.never().optional()\n }),\n exports_external.object({\n type: exports_external.string().startsWith("tool-"),\n toolCallId: exports_external.string(),\n state: exports_external.literal("input-available"),\n input: exports_external.unknown(),\n output: exports_external.never().optional(),\n errorText: exports_external.never().optional(),\n callProviderMetadata: providerMetadataSchema.optional()\n }),\n exports_external.object({\n type: exports_external.string().startsWith("tool-"),\n toolCallId: exports_external.string(),\n state: exports_external.literal("output-available"),\n input: exports_external.unknown(),\n output: exports_external.unknown(),\n errorText: exports_external.never().optional(),\n callProviderMetadata: providerMetadataSchema.optional(),\n preliminary: exports_external.boolean().optional()\n }),\n exports_external.object({\n type: exports_external.string().startsWith("tool-"),\n toolCallId: exports_external.string(),\n state: exports_external.literal("output-error"),\n input: exports_external.unknown(),\n output: exports_external.never().optional(),\n errorText: exports_external.string(),\n callProviderMetadata: providerMetadataSchema.optional()\n })\n];\nvar uiMessageSchema = exports_external.object({\n id: exports_external.string(),\n role: exports_external.enum(["system", "user", "assistant"]),\n metadata: exports_external.unknown().optional(),\n parts: exports_external.array(exports_external.union([\n textUIPartSchema,\n reasoningUIPartSchema,\n sourceUrlUIPartSchema,\n sourceDocumentUIPartSchema,\n fileUIPartSchema,\n stepStartUIPartSchema,\n dataUIPartSchema,\n ...dynamicToolUIPartSchemas,\n ...toolUIPartSchemas\n ]))\n});\nfunction createUIMessageStream({\n execute,\n onError = getErrorMessage2,\n originalMessages,\n onFinish,\n generateId: generateId3 = generateId\n}) {\n let controller;\n const ongoingStreamPromises = [];\n const stream = new ReadableStream({\n start(controllerArg) {\n controller = controllerArg;\n }\n });\n function safeEnqueue(data) {\n try {\n controller.enqueue(data);\n } catch (error38) {}\n }\n try {\n const result = execute({\n writer: {\n write(part) {\n safeEnqueue(part);\n },\n merge(streamArg) {\n ongoingStreamPromises.push((async () => {\n const reader = streamArg.getReader();\n while (true) {\n const { done, value } = await reader.read();\n if (done)\n break;\n safeEnqueue(value);\n }\n })().catch((error38) => {\n safeEnqueue({\n type: "error",\n errorText: onError(error38)\n });\n }));\n },\n onError\n }\n });\n if (result) {\n ongoingStreamPromises.push(result.catch((error38) => {\n safeEnqueue({\n type: "error",\n errorText: onError(error38)\n });\n }));\n }\n } catch (error38) {\n safeEnqueue({\n type: "error",\n errorText: onError(error38)\n });\n }\n const waitForStreams = new Promise(async (resolve2) => {\n while (ongoingStreamPromises.length > 0) {\n await ongoingStreamPromises.shift();\n }\n resolve2();\n });\n waitForStreams.finally(() => {\n try {\n controller.close();\n } catch (error38) {}\n });\n return handleUIMessageStreamFinish({\n stream,\n messageId: generateId3(),\n originalMessages,\n onFinish,\n onError\n });\n}\n\n// ../../node_modules/blink/dist/browser/index.browser-D8y5NucV.js\nfunction i2(e2) {\n return typeof e2 == `object` && !!e2 && typeof e2[Symbol.asyncIterator] == `function`;\n}\nvar a2 = class extends Error {\n constructor(e2, t2) {\n super(e2), this.response = t2;\n }\n};\nvar s2 = Object.freeze({ withContext(e2, t2) {\n let n2 = {};\n for (let r2 of Object.keys(e2))\n n2[r2] = e2[r2].withContext(t2);\n return n2;\n}, with(e2, t2) {\n let n2 = {};\n for (let r2 of Object.keys(e2))\n n2[r2] = e2[r2].withContext(t2);\n return n2;\n}, async withApproval(o2) {\n let s3 = {};\n for (let [e2, t2] of Object.entries(o2.tools)) {\n let n2 = t2.execute;\n s3[e2] = { ...t2, execute: async (e3, r2) => t2.autoApprove && n2 && await t2.autoApprove(e3) ? n2(e3, r2) : { type: `tool-approval`, outcome: `pending` } };\n }\n let l2 = o2.messages[o2.messages.length - 1];\n if (!l2?.parts)\n return s3;\n let u2 = [];\n for (let e2 of l2.parts) {\n if (!isToolUIPart(e2))\n continue;\n let t2 = getToolName(e2), i3 = o2.tools[t2];\n i3 && e2.state === `output-available` && i3.execute && c2(e2.output) && e2.output.outcome === `approved` && u2.push({ toolName: getToolName(e2), tool: i3, input: e2.input, toolCallId: e2.toolCallId });\n }\n if (u2.length > 0) {\n let n2 = createUIMessageStream({ execute: async ({ writer: t2 }) => {\n t2.write({ type: `start-step` }), await Promise.all(u2.map(async (n3) => {\n if (!n3.tool.execute)\n throw Error(`Tool does not support execute.`);\n t2.write({ type: `tool-input-available`, toolCallId: n3.toolCallId, toolName: n3.toolName, input: n3.input });\n try {\n let r2 = await n3.tool.execute(n3.input, { toolCallId: n3.toolCallId, messages: convertToModelMessages(o2.messages, { tools: o2.tools }), abortSignal: o2.abortSignal });\n if (i2(r2))\n for await (let e2 of r2)\n t2.write({ type: `tool-output-available`, toolCallId: n3.toolCallId, output: e2, preliminary: true });\n t2.write({ type: `tool-output-available`, toolCallId: n3.toolCallId, output: r2 });\n } catch (e2) {\n t2.write({ type: `tool-output-error`, toolCallId: n3.toolCallId, errorText: e2 instanceof Error ? e2.message : String(e2) });\n }\n })), t2.write({ type: `finish` });\n } });\n throw new a2(`Executing tools`, n2);\n }\n return s3;\n}, prefix(e2, t2) {\n let n2 = {};\n for (let [r2, i3] of Object.entries(e2))\n n2[`${t2}${r2}`] = i3;\n return n2;\n} });\nfunction c2(e2) {\n return typeof e2 == `object` && !!e2 && `type` in e2 && e2.type === `tool-approval`;\n}\n\n// ../../node_modules/blink/dist/browser/agent/client/index.js\nvar a3 = class extends Error {\n constructor(e2, t2) {\n super(e2), this.name = `ParseError`, this.type = t2.type, this.field = t2.field, this.value = t2.value, this.line = t2.line;\n }\n};\nfunction o2(e2) {}\nfunction s3(e2) {\n if (typeof e2 == `function`)\n throw TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");\n let { onEvent: t2 = o2, onError: n2 = o2, onRetry: r2 = o2, onComment: i3 } = e2, s4 = ``, l2 = true, u3, d2 = ``, f3 = ``;\n function p3(e3) {\n let t3 = l2 ? e3.replace(/^\\xEF\\xBB\\xBF/, ``) : e3, [n3, r3] = c3(`${s4}${t3}`);\n for (let e4 of n3)\n m3(e4);\n s4 = r3, l2 = false;\n }\n function m3(e3) {\n if (e3 === ``) {\n g3();\n return;\n }\n if (e3.startsWith(`:`)) {\n i3 && i3(e3.slice(e3.startsWith(`: `) ? 2 : 1));\n return;\n }\n let t3 = e3.indexOf(`:`);\n if (t3 !== -1) {\n let n3 = e3.slice(0, t3), r3 = e3[t3 + 1] === ` ` ? 2 : 1, i4 = e3.slice(t3 + r3);\n h3(n3, i4, e3);\n return;\n }\n h3(e3, ``, e3);\n }\n function h3(e3, t3, i4) {\n switch (e3) {\n case `event`:\n f3 = t3;\n break;\n case `data`:\n d2 = `${d2}${t3}\n`;\n break;\n case `id`:\n u3 = t3.includes(`\\x00`) ? undefined : t3;\n break;\n case `retry`:\n /^\\d+$/.test(t3) ? r2(parseInt(t3, 10)) : n2(new a3(`Invalid \\`retry\\` value: "${t3}"`, { type: `invalid-retry`, value: t3, line: i4 }));\n break;\n default:\n n2(new a3(`Unknown field "${e3.length > 20 ? `${e3.slice(0, 20)}…` : e3}"`, { type: `unknown-field`, field: e3, value: t3, line: i4 }));\n break;\n }\n }\n function g3() {\n d2.length > 0 && t2({ id: u3, event: f3 || undefined, data: d2.endsWith(`\n`) ? d2.slice(0, -1) : d2 }), u3 = undefined, d2 = ``, f3 = ``;\n }\n function _3(e3 = {}) {\n s4 && e3.consume && m3(s4), l2 = true, u3 = undefined, d2 = ``, f3 = ``, s4 = ``;\n }\n return { feed: p3, reset: _3 };\n}\nfunction c3(e2) {\n let t2 = [], n2 = ``, r2 = 0;\n for (;r2 < e2.length; ) {\n let i3 = e2.indexOf(`\\r`, r2), a4 = e2.indexOf(`\n`, r2), o3 = -1;\n if (i3 !== -1 && a4 !== -1 ? o3 = Math.min(i3, a4) : i3 === -1 ? a4 !== -1 && (o3 = a4) : o3 = i3 === e2.length - 1 ? -1 : i3, o3 === -1) {\n n2 = e2.slice(r2);\n break;\n } else {\n let n3 = e2.slice(r2, o3);\n t2.push(n3), r2 = o3 + 1, e2[r2 - 1] === `\\r` && e2[r2] === `\n` && r2++;\n }\n }\n return [t2, n2];\n}\nvar l2 = class extends TransformStream {\n constructor({ onError: e2, onRetry: t2, onComment: n2 } = {}) {\n let r2;\n super({ start(i3) {\n r2 = s3({ onEvent: (e3) => {\n i3.enqueue(e3);\n }, onError(t3) {\n e2 === `terminate` ? i3.error(t3) : typeof e2 == `function` && e2(t3);\n }, onRetry: t2, onComment: n2 });\n }, transform(e3) {\n r2.feed(e3);\n } });\n }\n};\nvar b2 = `vercel.ai.error`;\nvar x3 = Symbol.for(b2);\nvar S2;\nvar C2 = class e2 extends Error {\n constructor({ name: e3, message: t2, cause: n2 }) {\n super(t2), this[S2] = true, this.name = e3, this.cause = n2;\n }\n static isInstance(t2) {\n return e2.hasMarker(t2, b2);\n }\n static hasMarker(e3, t2) {\n let n2 = Symbol.for(t2);\n return typeof e3 == `object` && !!e3 && n2 in e3 && typeof e3[n2] == `boolean` && e3[n2] === true;\n }\n};\nS2 = x3;\nvar w2 = C2;\nvar ee2 = `AI_APICallError`;\nvar te2 = `vercel.ai.error.${ee2}`;\nvar ne2 = Symbol.for(te2);\nvar re2;\nvar T2 = class extends w2 {\n constructor({ message: e3, url: t2, requestBodyValues: n2, statusCode: r2, responseHeaders: i3, responseBody: a4, cause: o3, isRetryable: s4 = r2 != null && (r2 === 408 || r2 === 409 || r2 === 429 || r2 >= 500), data: c4 }) {\n super({ name: ee2, message: e3, cause: o3 }), this[re2] = true, this.url = t2, this.requestBodyValues = n2, this.statusCode = r2, this.responseHeaders = i3, this.responseBody = a4, this.isRetryable = s4, this.data = c4;\n }\n static isInstance(e3) {\n return w2.hasMarker(e3, te2);\n }\n};\nre2 = ne2;\nvar ie2 = `AI_EmptyResponseBodyError`;\nvar ae2 = `vercel.ai.error.${ie2}`;\nvar oe2 = Symbol.for(ae2);\nvar se2;\nvar ce2 = class extends w2 {\n constructor({ message: e3 = `Empty response body` } = {}) {\n super({ name: ie2, message: e3 }), this[se2] = true;\n }\n static isInstance(e3) {\n return w2.hasMarker(e3, ae2);\n }\n};\nse2 = oe2;\nfunction le2(e3) {\n return e3 == null ? `unknown error` : typeof e3 == `string` ? e3 : e3 instanceof Error ? e3.message : JSON.stringify(e3);\n}\nvar ue2 = `AI_InvalidArgumentError`;\nvar de2 = `vercel.ai.error.${ue2}`;\nvar fe2 = Symbol.for(de2);\nvar pe2;\nvar me2 = class extends w2 {\n constructor({ message: e3, cause: t2, argument: n2 }) {\n super({ name: ue2, message: e3, cause: t2 }), this[pe2] = true, this.argument = n2;\n }\n static isInstance(e3) {\n return w2.hasMarker(e3, de2);\n }\n};\npe2 = fe2;\nvar he2 = `AI_InvalidPromptError`;\nvar ge2 = `vercel.ai.error.${he2}`;\nvar _e2 = Symbol.for(ge2);\nvar ve2;\nvar ye = class extends w2 {\n constructor({ prompt: e3, message: t2, cause: n2 }) {\n super({ name: he2, message: `Invalid prompt: ${t2}`, cause: n2 }), this[ve2] = true, this.prompt = e3;\n }\n static isInstance(e3) {\n return w2.hasMarker(e3, ge2);\n }\n};\nve2 = _e2;\nvar be = `AI_InvalidResponseDataError`;\nvar xe = `vercel.ai.error.${be}`;\nvar Se = Symbol.for(xe);\nvar Ce;\nvar E2 = class extends w2 {\n constructor({ data: e3, message: t2 = `Invalid response data: ${JSON.stringify(e3)}.` }) {\n super({ name: be, message: t2 }), this[Ce] = true, this.data = e3;\n }\n static isInstance(e3) {\n return w2.hasMarker(e3, xe);\n }\n};\nCe = Se;\nvar we = `AI_JSONParseError`;\nvar Te = `vercel.ai.error.${we}`;\nvar Ee = Symbol.for(Te);\nvar De;\nvar D2 = class extends w2 {\n constructor({ text: e3, cause: t2 }) {\n super({ name: we, message: `JSON parsing failed: Text: ${e3}.\nError message: ${le2(t2)}`, cause: t2 }), this[De] = true, this.text = e3;\n }\n static isInstance(e3) {\n return w2.hasMarker(e3, Te);\n }\n};\nDe = Ee;\nvar Oe = `AI_LoadAPIKeyError`;\nvar ke = `vercel.ai.error.${Oe}`;\nvar Ae = Symbol.for(ke);\nvar je;\nvar O2 = class extends w2 {\n constructor({ message: e3 }) {\n super({ name: Oe, message: e3 }), this[je] = true;\n }\n static isInstance(e3) {\n return w2.hasMarker(e3, ke);\n }\n};\nje = Ae;\nvar Me = `AI_NoSuchModelError`;\nvar Ne = `vercel.ai.error.${Me}`;\nvar Pe = Symbol.for(Ne);\nvar Fe;\nvar k2 = class extends w2 {\n constructor({ errorName: e3 = Me, modelId: t2, modelType: n2, message: r2 = `No such ${n2}: ${t2}` }) {\n super({ name: e3, message: r2 }), this[Fe] = true, this.modelId = t2, this.modelType = n2;\n }\n static isInstance(e3) {\n return w2.hasMarker(e3, Ne);\n }\n};\nFe = Pe;\nvar Ie = `AI_TooManyEmbeddingValuesForCallError`;\nvar Le = `vercel.ai.error.${Ie}`;\nvar Re = Symbol.for(Le);\nvar ze;\nvar Be = class extends w2 {\n constructor(e3) {\n super({ name: Ie, message: `Too many values for a single embedding call. The ${e3.provider} model "${e3.modelId}" can only embed up to ${e3.maxEmbeddingsPerCall} values per call, but ${e3.values.length} values were provided.` }), this[ze] = true, this.provider = e3.provider, this.modelId = e3.modelId, this.maxEmbeddingsPerCall = e3.maxEmbeddingsPerCall, this.values = e3.values;\n }\n static isInstance(e3) {\n return w2.hasMarker(e3, Le);\n }\n};\nze = Re;\nvar Ve = `AI_TypeValidationError`;\nvar He = `vercel.ai.error.${Ve}`;\nvar Ue = Symbol.for(He);\nvar We;\nvar Ge = class e3 extends w2 {\n constructor({ value: e4, cause: t2 }) {\n super({ name: Ve, message: `Type validation failed: Value: ${JSON.stringify(e4)}.\nError message: ${le2(t2)}`, cause: t2 }), this[We] = true, this.value = e4;\n }\n static isInstance(e4) {\n return w2.hasMarker(e4, He);\n }\n static wrap({ value: t2, cause: n2 }) {\n return e3.isInstance(n2) && n2.value === t2 ? n2 : new e3({ value: t2, cause: n2 });\n }\n};\nWe = Ue;\nvar A2 = Ge;\nvar Ke = `AI_UnsupportedFunctionalityError`;\nvar qe = `vercel.ai.error.${Ke}`;\nvar Je = Symbol.for(qe);\nvar Ye;\nvar j2 = class extends w2 {\n constructor({ functionality: e4, message: t2 = `\'${e4}\' functionality not supported.` }) {\n super({ name: Ke, message: t2 }), this[Ye] = true, this.functionality = e4;\n }\n static isInstance(e4) {\n return w2.hasMarker(e4, qe);\n }\n};\nYe = Je;\nfunction M2(...e4) {\n return e4.reduce((e5, t2) => ({ ...e5, ...t2 ?? {} }), {});\n}\nfunction N2(e4) {\n return Object.fromEntries([...e4.headers]);\n}\nfunction Xe(e4 = globalThis) {\n return e4.window ? `runtime/browser` : e4.navigator?.userAgent ? `runtime/${e4.navigator.userAgent.toLowerCase()}` : e4.process?.versions?.node ? `runtime/node.js/${e4.process.version.substring(0)}` : e4.EdgeRuntime ? `runtime/vercel-edge` : `runtime/unknown`;\n}\nfunction Ze(e4) {\n return Object.fromEntries(Object.entries(e4).filter(([e5, t2]) => t2 != null));\n}\nfunction P2(e4, ...t2) {\n let n2 = Ze(e4 ?? {}), r2 = new Headers(n2), i3 = r2.get(`user-agent`) || ``;\n return r2.set(`user-agent`, [i3, ...t2].filter(Boolean).join(` `)), Object.fromEntries(r2);\n}\nvar F2 = (({ prefix: e4, size: t2 = 16, alphabet: n2 = `0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`, separator: r2 = `-` } = {}) => {\n let i3 = () => {\n let e5 = n2.length, r3 = Array(t2);\n for (let i4 = 0;i4 < t2; i4++)\n r3[i4] = n2[Math.random() * e5 | 0];\n return r3.join(``);\n };\n if (e4 == null)\n return i3;\n if (n2.includes(r2))\n throw new me2({ argument: `separator`, message: `The separator "${r2}" must not be part of the alphabet "${n2}".` });\n return () => `${e4}${r2}${i3()}`;\n})();\nfunction Qe(e4) {\n return (e4 instanceof Error || e4 instanceof DOMException) && (e4.name === `AbortError` || e4.name === `ResponseAborted` || e4.name === `TimeoutError`);\n}\nvar $e = [`fetch failed`, `failed to fetch`];\nfunction et({ error: e4, url: t2, requestBodyValues: n2 }) {\n if (Qe(e4))\n return e4;\n if (e4 instanceof TypeError && $e.includes(e4.message.toLowerCase())) {\n let r2 = e4.cause;\n if (r2 != null)\n return new T2({ message: `Cannot connect to API: ${r2.message}`, cause: r2, url: t2, requestBodyValues: n2, isRetryable: true });\n }\n return e4;\n}\nvar tt = `3.0.10`;\nfunction I2({ apiKey: e4, environmentVariableName: t2, apiKeyParameterName: n2 = `apiKey`, description: r2 }) {\n if (typeof e4 == `string`)\n return e4;\n if (e4 != null)\n throw new O2({ message: `${r2} API key must be a string.` });\n if (typeof process > `u`)\n throw new O2({ message: `${r2} API key is missing. Pass it using the \'${n2}\' parameter. Environment variables is not supported in this environment.` });\n if (e4 = process.env[t2], e4 == null)\n throw new O2({ message: `${r2} API key is missing. Pass it using the \'${n2}\' parameter or the ${t2} environment variable.` });\n if (typeof e4 != `string`)\n throw new O2({ message: `${r2} API key must be a string. The value of the ${t2} environment variable is not a string.` });\n return e4;\n}\nfunction nt({ settingValue: e4, environmentVariableName: t2 }) {\n if (typeof e4 == `string` || !(e4 != null || typeof process > `u`) && (e4 = process.env[t2], !(e4 == null || typeof e4 != `string`)))\n return e4;\n}\nfunction rt(e4) {\n let [t2, n2 = ``] = e4.toLowerCase().split(`/`);\n return { mpeg: `mp3`, "x-wav": `wav`, opus: `ogg`, mp4: `m4a`, "x-m4a": `m4a` }[n2] ?? n2;\n}\nvar it = /"__proto__"\\s*:/;\nvar at = /"constructor"\\s*:/;\nfunction ot(e4) {\n let t2 = JSON.parse(e4);\n return typeof t2 != `object` || !t2 || it.test(e4) === false && at.test(e4) === false ? t2 : st(t2);\n}\nfunction st(e4) {\n let t2 = [e4];\n for (;t2.length; ) {\n let e5 = t2;\n t2 = [];\n for (let n2 of e5) {\n if (Object.prototype.hasOwnProperty.call(n2, `__proto__`) || Object.prototype.hasOwnProperty.call(n2, `constructor`) && Object.prototype.hasOwnProperty.call(n2.constructor, `prototype`))\n throw SyntaxError(`Object contains forbidden prototype property`);\n for (let e6 in n2) {\n let r2 = n2[e6];\n r2 && typeof r2 == `object` && t2.push(r2);\n }\n }\n }\n return e4;\n}\nfunction ct(e4) {\n let { stackTraceLimit: t2 } = Error;\n Error.stackTraceLimit = 0;\n try {\n return ot(e4);\n } finally {\n Error.stackTraceLimit = t2;\n }\n}\nvar lt = Symbol.for(`vercel.ai.validator`);\nfunction ut(e4) {\n return { [lt]: true, validate: e4 };\n}\nfunction dt(e4) {\n return typeof e4 == `object` && !!e4 && lt in e4 && e4[lt] === true && `validate` in e4;\n}\nfunction ft(e4) {\n return dt(e4) ? e4 : pt(e4);\n}\nfunction pt(e4) {\n return ut(async (t2) => {\n let n2 = await e4[`~standard`].validate(t2);\n return n2.issues == null ? { success: true, value: n2.value } : { success: false, error: new A2({ value: t2, cause: n2.issues }) };\n });\n}\nasync function mt({ value: e4, schema: t2 }) {\n let n2 = await ht({ value: e4, schema: t2 });\n if (!n2.success)\n throw A2.wrap({ value: e4, cause: n2.error });\n return n2.value;\n}\nasync function ht({ value: e4, schema: t2 }) {\n let n2 = ft(t2);\n try {\n if (n2.validate == null)\n return { success: true, value: e4, rawValue: e4 };\n let t3 = await n2.validate(e4);\n return t3.success ? { success: true, value: t3.value, rawValue: e4 } : { success: false, error: A2.wrap({ value: e4, cause: t3.error }), rawValue: e4 };\n } catch (t3) {\n return { success: false, error: A2.wrap({ value: e4, cause: t3 }), rawValue: e4 };\n }\n}\nasync function gt({ text: e4, schema: t2 }) {\n try {\n let n2 = ct(e4);\n return t2 == null ? n2 : mt({ value: n2, schema: t2 });\n } catch (t3) {\n throw D2.isInstance(t3) || A2.isInstance(t3) ? t3 : new D2({ text: e4, cause: t3 });\n }\n}\nasync function _t({ text: e4, schema: t2 }) {\n try {\n let n2 = ct(e4);\n return t2 == null ? { success: true, value: n2, rawValue: n2 } : await ht({ value: n2, schema: t2 });\n } catch (t3) {\n return { success: false, error: D2.isInstance(t3) ? t3 : new D2({ text: e4, cause: t3 }), rawValue: undefined };\n }\n}\nfunction vt(e4) {\n try {\n return ct(e4), true;\n } catch {\n return false;\n }\n}\nfunction yt({ stream: e4, schema: t2 }) {\n return e4.pipeThrough(new TextDecoderStream).pipeThrough(new l2).pipeThrough(new TransformStream({ async transform({ data: e5 }, n2) {\n e5 !== `[DONE]` && n2.enqueue(await _t({ text: e5, schema: t2 }));\n } }));\n}\nasync function L2({ provider: e4, providerOptions: t2, schema: n2 }) {\n if (t2?.[e4] == null)\n return;\n let r2 = await ht({ value: t2[e4], schema: n2 });\n if (!r2.success)\n throw new me2({ argument: `providerOptions`, message: `invalid ${e4} provider options`, cause: r2.error });\n return r2.value;\n}\nvar bt = () => globalThis.fetch;\nvar R2 = async ({ url: e4, headers: t2, body: n2, failedResponseHandler: r2, successfulResponseHandler: i3, abortSignal: a4, fetch: o3 }) => St({ url: e4, headers: { "Content-Type": `application/json`, ...t2 }, body: { content: JSON.stringify(n2), values: n2 }, failedResponseHandler: r2, successfulResponseHandler: i3, abortSignal: a4, fetch: o3 });\nvar xt = async ({ url: e4, headers: t2, formData: n2, failedResponseHandler: r2, successfulResponseHandler: i3, abortSignal: a4, fetch: o3 }) => St({ url: e4, headers: t2, body: { content: n2, values: Object.fromEntries(n2.entries()) }, failedResponseHandler: r2, successfulResponseHandler: i3, abortSignal: a4, fetch: o3 });\nvar St = async ({ url: e4, headers: t2 = {}, body: n2, successfulResponseHandler: r2, failedResponseHandler: i3, abortSignal: a4, fetch: o3 = bt() }) => {\n try {\n let s4 = await o3(e4, { method: `POST`, headers: P2(t2, `ai-sdk/provider-utils/${tt}`, Xe()), body: n2.content, signal: a4 }), c4 = N2(s4);\n if (!s4.ok) {\n let t3;\n try {\n t3 = await i3({ response: s4, url: e4, requestBodyValues: n2.values });\n } catch (t4) {\n throw Qe(t4) || T2.isInstance(t4) ? t4 : new T2({ message: `Failed to process error response`, cause: t4, statusCode: s4.status, url: e4, responseHeaders: c4, requestBodyValues: n2.values });\n }\n throw t3.value;\n }\n try {\n return await r2({ response: s4, url: e4, requestBodyValues: n2.values });\n } catch (t3) {\n throw t3 instanceof Error && (Qe(t3) || T2.isInstance(t3)) ? t3 : new T2({ message: `Failed to process successful response`, cause: t3, statusCode: s4.status, url: e4, responseHeaders: c4, requestBodyValues: n2.values });\n }\n } catch (t3) {\n throw et({ error: t3, url: e4, requestBodyValues: n2.values });\n }\n};\nfunction Ct(e4) {\n return e4;\n}\nfunction z2({ id: e4, name: t2, inputSchema: n2 }) {\n return ({ execute: r2, outputSchema: i3, toModelOutput: a4, onInputStart: o3, onInputDelta: s4, onInputAvailable: c4, ...l3 }) => Ct({ type: `provider-defined`, id: e4, name: t2, args: l3, inputSchema: n2, outputSchema: i3, execute: r2, toModelOutput: a4, onInputStart: o3, onInputDelta: s4, onInputAvailable: c4 });\n}\nfunction B2({ id: e4, name: t2, inputSchema: n2, outputSchema: r2 }) {\n return ({ execute: i3, toModelOutput: a4, onInputStart: o3, onInputDelta: s4, onInputAvailable: c4, ...l3 }) => Ct({ type: `provider-defined`, id: e4, name: t2, args: l3, inputSchema: n2, outputSchema: r2, execute: i3, toModelOutput: a4, onInputStart: o3, onInputDelta: s4, onInputAvailable: c4 });\n}\nasync function V2(e4) {\n return typeof e4 == `function` && (e4 = e4()), Promise.resolve(e4);\n}\nvar H2 = ({ errorSchema: e4, errorToMessage: t2, isRetryable: n2 }) => async ({ response: r2, url: i3, requestBodyValues: a4 }) => {\n let o3 = await r2.text(), s4 = N2(r2);\n if (o3.trim() === ``)\n return { responseHeaders: s4, value: new T2({ message: r2.statusText, url: i3, requestBodyValues: a4, statusCode: r2.status, responseHeaders: s4, responseBody: o3, isRetryable: n2?.(r2) }) };\n try {\n let c4 = await gt({ text: o3, schema: e4 });\n return { responseHeaders: s4, value: new T2({ message: t2(c4), url: i3, requestBodyValues: a4, statusCode: r2.status, responseHeaders: s4, responseBody: o3, data: c4, isRetryable: n2?.(r2, c4) }) };\n } catch {\n return { responseHeaders: s4, value: new T2({ message: r2.statusText, url: i3, requestBodyValues: a4, statusCode: r2.status, responseHeaders: s4, responseBody: o3, isRetryable: n2?.(r2) }) };\n }\n};\nvar U2 = (e4) => async ({ response: t2 }) => {\n let n2 = N2(t2);\n if (t2.body == null)\n throw new ce2({});\n return { responseHeaders: n2, value: yt({ stream: t2.body, schema: e4 }) };\n};\nvar W2 = (e4) => async ({ response: t2, url: n2, requestBodyValues: r2 }) => {\n let i3 = await t2.text(), a4 = await _t({ text: i3, schema: e4 }), o3 = N2(t2);\n if (!a4.success)\n throw new T2({ message: `Invalid JSON response`, cause: a4.error, statusCode: t2.status, responseHeaders: o3, responseBody: i3, url: n2, requestBodyValues: r2 });\n return { responseHeaders: o3, value: a4.value, rawValue: a4.rawValue };\n};\nvar wt = () => async ({ response: e4, url: t2, requestBodyValues: n2 }) => {\n let r2 = N2(e4);\n if (!e4.body)\n throw new T2({ message: `Response body is empty`, url: t2, requestBodyValues: n2, statusCode: e4.status, responseHeaders: r2, responseBody: undefined });\n try {\n let t3 = await e4.arrayBuffer();\n return { responseHeaders: r2, value: new Uint8Array(t3) };\n } catch (i3) {\n throw new T2({ message: `Failed to read response as array buffer`, url: t2, requestBodyValues: n2, statusCode: e4.status, responseHeaders: r2, responseBody: undefined, cause: i3 });\n }\n};\nvar { btoa: Tt, atob: Et } = globalThis;\nfunction Dt(e4) {\n let t2 = e4.replace(/-/g, `+`).replace(/_/g, `/`), n2 = Et(t2);\n return Uint8Array.from(n2, (e5) => e5.codePointAt(0));\n}\nfunction Ot(e4) {\n let t2 = ``;\n for (let n2 = 0;n2 < e4.length; n2++)\n t2 += String.fromCodePoint(e4[n2]);\n return Tt(t2);\n}\nfunction G2(e4) {\n return e4 instanceof Uint8Array ? Ot(e4) : e4;\n}\nfunction K2(e4) {\n return e4?.replace(/\\/$/, ``);\n}\nvar kt = `2.0.23`;\nvar At = exports_external.object({ type: exports_external.literal(`error`), error: exports_external.object({ type: exports_external.string(), message: exports_external.string() }) });\nvar jt = H2({ errorSchema: At, errorToMessage: (e4) => e4.error.message });\nvar Mt = exports_external.object({ citations: exports_external.object({ enabled: exports_external.boolean() }).optional(), title: exports_external.string().optional(), context: exports_external.string().optional() });\nvar Nt = exports_external.object({ sendReasoning: exports_external.boolean().optional(), thinking: exports_external.object({ type: exports_external.union([exports_external.literal(`enabled`), exports_external.literal(`disabled`)]), budgetTokens: exports_external.number().optional() }).optional(), disableParallelToolUse: exports_external.boolean().optional(), cacheControl: exports_external.object({ type: exports_external.literal(`ephemeral`), ttl: exports_external.union([exports_external.literal(`5m`), exports_external.literal(`1h`)]).optional() }).optional() });\nfunction q2(e4) {\n let t2 = e4?.anthropic;\n return t2?.cacheControl ?? t2?.cache_control;\n}\nvar Pt = exports_external.object({ maxCharacters: exports_external.number().optional() });\nvar Ft = z2({ id: `anthropic.text_editor_20250728`, name: `str_replace_based_edit_tool`, inputSchema: exports_external.object({ command: exports_external.enum([`view`, `create`, `str_replace`, `insert`]), path: exports_external.string(), file_text: exports_external.string().optional(), insert_line: exports_external.number().int().optional(), new_str: exports_external.string().optional(), old_str: exports_external.string().optional(), view_range: exports_external.array(exports_external.number().int()).optional() }) });\nvar It = (e4 = {}) => Ft(e4);\nvar Lt = exports_external.object({ maxUses: exports_external.number().optional(), allowedDomains: exports_external.array(exports_external.string()).optional(), blockedDomains: exports_external.array(exports_external.string()).optional(), userLocation: exports_external.object({ type: exports_external.literal(`approximate`), city: exports_external.string().optional(), region: exports_external.string().optional(), country: exports_external.string().optional(), timezone: exports_external.string().optional() }).optional() });\nvar Rt = exports_external.array(exports_external.object({ url: exports_external.string(), title: exports_external.string(), pageAge: exports_external.string().nullable(), encryptedContent: exports_external.string(), type: exports_external.literal(`web_search_result`) }));\nvar zt = B2({ id: `anthropic.web_search_20250305`, name: `web_search`, inputSchema: exports_external.object({ query: exports_external.string() }), outputSchema: Rt });\nvar Bt = (e4 = {}) => zt(e4);\nvar Vt = exports_external.object({ maxUses: exports_external.number().optional(), allowedDomains: exports_external.array(exports_external.string()).optional(), blockedDomains: exports_external.array(exports_external.string()).optional(), citations: exports_external.object({ enabled: exports_external.boolean() }).optional(), maxContentTokens: exports_external.number().optional() });\nvar Ht = exports_external.object({ type: exports_external.literal(`web_fetch_result`), url: exports_external.string(), content: exports_external.object({ type: exports_external.literal(`document`), title: exports_external.string(), citations: exports_external.object({ enabled: exports_external.boolean() }).optional(), source: exports_external.union([exports_external.object({ type: exports_external.literal(`base64`), mediaType: exports_external.literal(`application/pdf`), data: exports_external.string() }), exports_external.object({ type: exports_external.literal(`text`), mediaType: exports_external.literal(`text/plain`), data: exports_external.string() })]) }), retrievedAt: exports_external.string().nullable() });\nvar Ut = B2({ id: `anthropic.web_fetch_20250910`, name: `web_fetch`, inputSchema: exports_external.object({ url: exports_external.string() }), outputSchema: Ht });\nvar Wt = (e4 = {}) => Ut(e4);\nfunction Gt({ tools: e4, toolChoice: t2, disableParallelToolUse: n2 }) {\n e4 = e4?.length ? e4 : undefined;\n let r2 = [], i3 = new Set;\n if (e4 == null)\n return { tools: undefined, toolChoice: undefined, toolWarnings: r2, betas: i3 };\n let a4 = [];\n for (let t3 of e4)\n switch (t3.type) {\n case `function`: {\n let e5 = q2(t3.providerOptions);\n a4.push({ name: t3.name, description: t3.description, input_schema: t3.inputSchema, cache_control: e5 });\n break;\n }\n case `provider-defined`:\n switch (t3.id) {\n case `anthropic.code_execution_20250522`:\n i3.add(`code-execution-2025-05-22`), a4.push({ type: `code_execution_20250522`, name: `code_execution` });\n break;\n case `anthropic.computer_20250124`:\n i3.add(`computer-use-2025-01-24`), a4.push({ name: `computer`, type: `computer_20250124`, display_width_px: t3.args.displayWidthPx, display_height_px: t3.args.displayHeightPx, display_number: t3.args.displayNumber });\n break;\n case `anthropic.computer_20241022`:\n i3.add(`computer-use-2024-10-22`), a4.push({ name: `computer`, type: `computer_20241022`, display_width_px: t3.args.displayWidthPx, display_height_px: t3.args.displayHeightPx, display_number: t3.args.displayNumber });\n break;\n case `anthropic.text_editor_20250124`:\n i3.add(`computer-use-2025-01-24`), a4.push({ name: `str_replace_editor`, type: `text_editor_20250124` });\n break;\n case `anthropic.text_editor_20241022`:\n i3.add(`computer-use-2024-10-22`), a4.push({ name: `str_replace_editor`, type: `text_editor_20241022` });\n break;\n case `anthropic.text_editor_20250429`:\n i3.add(`computer-use-2025-01-24`), a4.push({ name: `str_replace_based_edit_tool`, type: `text_editor_20250429` });\n break;\n case `anthropic.text_editor_20250728`: {\n let e5 = Pt.parse(t3.args);\n a4.push({ name: `str_replace_based_edit_tool`, type: `text_editor_20250728`, max_characters: e5.maxCharacters });\n break;\n }\n case `anthropic.bash_20250124`:\n i3.add(`computer-use-2025-01-24`), a4.push({ name: `bash`, type: `bash_20250124` });\n break;\n case `anthropic.bash_20241022`:\n i3.add(`computer-use-2024-10-22`), a4.push({ name: `bash`, type: `bash_20241022` });\n break;\n case `anthropic.web_fetch_20250910`: {\n i3.add(`web-fetch-2025-09-10`);\n let e5 = Vt.parse(t3.args);\n a4.push({ type: `web_fetch_20250910`, name: `web_fetch`, max_uses: e5.maxUses, allowed_domains: e5.allowedDomains, blocked_domains: e5.blockedDomains, citations: e5.citations, max_content_tokens: e5.maxContentTokens });\n break;\n }\n case `anthropic.web_search_20250305`: {\n let e5 = Lt.parse(t3.args);\n a4.push({ type: `web_search_20250305`, name: `web_search`, max_uses: e5.maxUses, allowed_domains: e5.allowedDomains, blocked_domains: e5.blockedDomains, user_location: e5.userLocation });\n break;\n }\n default:\n r2.push({ type: `unsupported-tool`, tool: t3 });\n break;\n }\n break;\n default:\n r2.push({ type: `unsupported-tool`, tool: t3 });\n break;\n }\n if (t2 == null)\n return { tools: a4, toolChoice: n2 ? { type: `auto`, disable_parallel_tool_use: n2 } : undefined, toolWarnings: r2, betas: i3 };\n let o3 = t2.type;\n switch (o3) {\n case `auto`:\n return { tools: a4, toolChoice: { type: `auto`, disable_parallel_tool_use: n2 }, toolWarnings: r2, betas: i3 };\n case `required`:\n return { tools: a4, toolChoice: { type: `any`, disable_parallel_tool_use: n2 }, toolWarnings: r2, betas: i3 };\n case `none`:\n return { tools: undefined, toolChoice: undefined, toolWarnings: r2, betas: i3 };\n case `tool`:\n return { tools: a4, toolChoice: { type: `tool`, name: t2.toolName, disable_parallel_tool_use: n2 }, toolWarnings: r2, betas: i3 };\n default:\n throw new j2({ functionality: `tool choice type: ${o3}` });\n }\n}\nvar Kt = exports_external.object({ type: exports_external.literal(`code_execution_result`), stdout: exports_external.string(), stderr: exports_external.string(), return_code: exports_external.number() });\nvar qt = B2({ id: `anthropic.code_execution_20250522`, name: `code_execution`, inputSchema: exports_external.object({ code: exports_external.string() }), outputSchema: Kt });\nvar Jt = (e4 = {}) => qt(e4);\nfunction Yt(e4) {\n if (typeof e4 == `string`)\n return Buffer.from(e4, `base64`).toString(`utf-8`);\n if (e4 instanceof Uint8Array)\n return new TextDecoder().decode(e4);\n throw e4 instanceof URL ? new j2({ functionality: `URL-based text documents are not supported for citations` }) : new j2({ functionality: `unsupported data type for text documents: ${typeof e4}` });\n}\nasync function Xt({ prompt: e4, sendReasoning: t2, warnings: n2 }) {\n let r2 = new Set, i3 = Zt(e4), a4, o3 = [];\n async function s4(e5) {\n return (await L2({ provider: `anthropic`, providerOptions: e5, schema: Mt }))?.citations?.enabled ?? false;\n }\n async function c4(e5) {\n let t3 = await L2({ provider: `anthropic`, providerOptions: e5, schema: Mt });\n return { title: t3?.title, context: t3?.context };\n }\n for (let e5 = 0;e5 < i3.length; e5++) {\n let l3 = i3[e5], u3 = e5 === i3.length - 1, d2 = l3.type;\n switch (d2) {\n case `system`:\n if (a4 != null)\n throw new j2({ functionality: `Multiple system messages that are separated by user/assistant messages` });\n a4 = l3.messages.map(({ content: e6, providerOptions: t3 }) => ({ type: `text`, text: e6, cache_control: q2(t3) }));\n break;\n case `user`: {\n let e6 = [];\n for (let t3 of l3.messages) {\n let { role: n3, content: i4 } = t3;\n switch (n3) {\n case `user`:\n for (let n4 = 0;n4 < i4.length; n4++) {\n let a5 = i4[n4], o4 = n4 === i4.length - 1, l4 = q2(a5.providerOptions) ?? (o4 ? q2(t3.providerOptions) : undefined);\n switch (a5.type) {\n case `text`:\n e6.push({ type: `text`, text: a5.text, cache_control: l4 });\n break;\n case `file`:\n if (a5.mediaType.startsWith(`image/`))\n e6.push({ type: `image`, source: a5.data instanceof URL ? { type: `url`, url: a5.data.toString() } : { type: `base64`, media_type: a5.mediaType === `image/*` ? `image/jpeg` : a5.mediaType, data: G2(a5.data) }, cache_control: l4 });\n else if (a5.mediaType === `application/pdf`) {\n r2.add(`pdfs-2024-09-25`);\n let t4 = await s4(a5.providerOptions), n5 = await c4(a5.providerOptions);\n e6.push({ type: `document`, source: a5.data instanceof URL ? { type: `url`, url: a5.data.toString() } : { type: `base64`, media_type: `application/pdf`, data: G2(a5.data) }, title: n5.title ?? a5.filename, ...n5.context && { context: n5.context }, ...t4 && { citations: { enabled: true } }, cache_control: l4 });\n } else if (a5.mediaType === `text/plain`) {\n let t4 = await s4(a5.providerOptions), n5 = await c4(a5.providerOptions);\n e6.push({ type: `document`, source: a5.data instanceof URL ? { type: `url`, url: a5.data.toString() } : { type: `text`, media_type: `text/plain`, data: Yt(a5.data) }, title: n5.title ?? a5.filename, ...n5.context && { context: n5.context }, ...t4 && { citations: { enabled: true } }, cache_control: l4 });\n } else\n throw new j2({ functionality: `media type: ${a5.mediaType}` });\n break;\n }\n }\n break;\n case `tool`:\n for (let n4 = 0;n4 < i4.length; n4++) {\n let r3 = i4[n4], a5 = n4 === i4.length - 1, o4 = q2(r3.providerOptions) ?? (a5 ? q2(t3.providerOptions) : undefined), s5 = r3.output, c5;\n switch (s5.type) {\n case `content`:\n c5 = s5.value.map((e7) => {\n switch (e7.type) {\n case `text`:\n return { type: `text`, text: e7.text, cache_control: undefined };\n case `media`:\n if (e7.mediaType.startsWith(`image/`))\n return { type: `image`, source: { type: `base64`, media_type: e7.mediaType, data: e7.data }, cache_control: undefined };\n throw new j2({ functionality: `media type: ${e7.mediaType}` });\n }\n });\n break;\n case `text`:\n case `error-text`:\n c5 = s5.value;\n break;\n case `json`:\n case `error-json`:\n default:\n c5 = JSON.stringify(s5.value);\n break;\n }\n e6.push({ type: `tool_result`, tool_use_id: r3.toolCallId, content: c5, is_error: s5.type === `error-text` || s5.type === `error-json` ? true : undefined, cache_control: o4 });\n }\n break;\n default: {\n let e7 = n3;\n throw Error(`Unsupported role: ${e7}`);\n }\n }\n }\n o3.push({ role: `user`, content: e6 });\n break;\n }\n case `assistant`: {\n let e6 = [];\n for (let r3 = 0;r3 < l3.messages.length; r3++) {\n let i4 = l3.messages[r3], a5 = r3 === l3.messages.length - 1, { content: o4 } = i4;\n for (let r4 = 0;r4 < o4.length; r4++) {\n let s5 = o4[r4], c5 = r4 === o4.length - 1, l4 = q2(s5.providerOptions) ?? (c5 ? q2(i4.providerOptions) : undefined);\n switch (s5.type) {\n case `text`:\n e6.push({ type: `text`, text: u3 && a5 && c5 ? s5.text.trim() : s5.text, cache_control: l4 });\n break;\n case `reasoning`:\n if (t2) {\n let t3 = await L2({ provider: `anthropic`, providerOptions: s5.providerOptions, schema: on });\n t3 == null ? n2.push({ type: `other`, message: `unsupported reasoning metadata` }) : t3.signature == null ? t3.redactedData == null ? n2.push({ type: `other`, message: `unsupported reasoning metadata` }) : e6.push({ type: `redacted_thinking`, data: t3.redactedData, cache_control: l4 }) : e6.push({ type: `thinking`, thinking: s5.text, signature: t3.signature, cache_control: l4 });\n } else\n n2.push({ type: `other`, message: `sending reasoning content is disabled for this model` });\n break;\n case `tool-call`:\n if (s5.providerExecuted) {\n s5.toolName === `code_execution` || s5.toolName === `web_fetch` || s5.toolName === `web_search` ? e6.push({ type: `server_tool_use`, id: s5.toolCallId, name: s5.toolName, input: s5.input, cache_control: l4 }) : n2.push({ type: `other`, message: `provider executed tool call for tool ${s5.toolName} is not supported` });\n break;\n }\n e6.push({ type: `tool_use`, id: s5.toolCallId, name: s5.toolName, input: s5.input, cache_control: l4 });\n break;\n case `tool-result`:\n if (s5.toolName === `code_execution`) {\n let t3 = s5.output;\n if (t3.type !== `json`) {\n n2.push({ type: `other`, message: `provider executed tool result output type ${t3.type} for tool ${s5.toolName} is not supported` });\n break;\n }\n let r5 = Kt.parse(t3.value);\n e6.push({ type: `code_execution_tool_result`, tool_use_id: s5.toolCallId, content: { type: r5.type, stdout: r5.stdout, stderr: r5.stderr, return_code: r5.return_code }, cache_control: l4 });\n break;\n }\n if (s5.toolName === `web_fetch`) {\n let t3 = s5.output;\n if (t3.type !== `json`) {\n n2.push({ type: `other`, message: `provider executed tool result output type ${t3.type} for tool ${s5.toolName} is not supported` });\n break;\n }\n let r5 = Ht.parse(t3.value);\n e6.push({ type: `web_fetch_tool_result`, tool_use_id: s5.toolCallId, content: { type: `web_fetch_result`, url: r5.url, retrieved_at: r5.retrievedAt, content: { type: `document`, title: r5.content.title, citations: r5.content.citations, source: { type: r5.content.source.type, media_type: r5.content.source.mediaType, data: r5.content.source.data } } }, cache_control: l4 });\n break;\n }\n if (s5.toolName === `web_search`) {\n let t3 = s5.output;\n if (t3.type !== `json`) {\n n2.push({ type: `other`, message: `provider executed tool result output type ${t3.type} for tool ${s5.toolName} is not supported` });\n break;\n }\n let r5 = Rt.parse(t3.value);\n e6.push({ type: `web_search_tool_result`, tool_use_id: s5.toolCallId, content: r5.map((e7) => ({ url: e7.url, title: e7.title, page_age: e7.pageAge, encrypted_content: e7.encryptedContent, type: e7.type })), cache_control: l4 });\n break;\n }\n n2.push({ type: `other`, message: `provider executed tool result for tool ${s5.toolName} is not supported` });\n break;\n }\n }\n }\n o3.push({ role: `assistant`, content: e6 });\n break;\n }\n default: {\n let e6 = d2;\n throw Error(`content type: ${e6}`);\n }\n }\n }\n return { prompt: { system: a4, messages: o3 }, betas: r2 };\n}\nfunction Zt(e4) {\n let t2 = [], n2;\n for (let r2 of e4) {\n let { role: e5 } = r2;\n switch (e5) {\n case `system`:\n n2?.type !== `system` && (n2 = { type: `system`, messages: [] }, t2.push(n2)), n2.messages.push(r2);\n break;\n case `assistant`:\n n2?.type !== `assistant` && (n2 = { type: `assistant`, messages: [] }, t2.push(n2)), n2.messages.push(r2);\n break;\n case `user`:\n n2?.type !== `user` && (n2 = { type: `user`, messages: [] }, t2.push(n2)), n2.messages.push(r2);\n break;\n case `tool`:\n n2?.type !== `user` && (n2 = { type: `user`, messages: [] }, t2.push(n2)), n2.messages.push(r2);\n break;\n default: {\n let t3 = e5;\n throw Error(`Unsupported role: ${t3}`);\n }\n }\n }\n return t2;\n}\nfunction Qt({ finishReason: e4, isJsonResponseFromTool: t2 }) {\n switch (e4) {\n case `pause_turn`:\n case `end_turn`:\n case `stop_sequence`:\n return `stop`;\n case `refusal`:\n return `content-filter`;\n case `tool_use`:\n return t2 ? `stop` : `tool-calls`;\n case `max_tokens`:\n return `length`;\n default:\n return `unknown`;\n }\n}\nvar J2 = { webSearchResult: exports_external.object({ type: exports_external.literal(`web_search_result_location`), cited_text: exports_external.string(), url: exports_external.string(), title: exports_external.string(), encrypted_index: exports_external.string() }), pageLocation: exports_external.object({ type: exports_external.literal(`page_location`), cited_text: exports_external.string(), document_index: exports_external.number(), document_title: exports_external.string().nullable(), start_page_number: exports_external.number(), end_page_number: exports_external.number() }), charLocation: exports_external.object({ type: exports_external.literal(`char_location`), cited_text: exports_external.string(), document_index: exports_external.number(), document_title: exports_external.string().nullable(), start_char_index: exports_external.number(), end_char_index: exports_external.number() }) };\nvar $t = exports_external.discriminatedUnion(`type`, [J2.webSearchResult, J2.pageLocation, J2.charLocation]);\nexports_external.discriminatedUnion(`type`, [J2.pageLocation, J2.charLocation]);\nfunction en(e4, t2, n2, r2) {\n if (e4.type === `page_location` || e4.type === `char_location`) {\n let i3 = tn(e4, t2, n2);\n i3 && r2(i3);\n }\n}\nfunction tn(e4, t2, n2) {\n let r2 = t2[e4.document_index];\n if (!r2)\n return null;\n let i3 = e4.type === `page_location` ? { citedText: e4.cited_text, startPageNumber: e4.start_page_number, endPageNumber: e4.end_page_number } : { citedText: e4.cited_text, startCharIndex: e4.start_char_index, endCharIndex: e4.end_char_index };\n return { type: `source`, sourceType: `document`, id: n2(), mediaType: r2.mediaType, title: e4.document_title ?? r2.title, filename: r2.filename, providerMetadata: { anthropic: i3 } };\n}\nvar nn = class {\n constructor(e4, t2) {\n this.specificationVersion = `v2`, this.modelId = e4, this.config = t2, this.generateId = t2.generateId ?? F2;\n }\n supportsUrl(e4) {\n return e4.protocol === `https:`;\n }\n get provider() {\n return this.config.provider;\n }\n get supportedUrls() {\n var e4;\n return (e4 = this.config).supportedUrls?.call(e4) ?? {};\n }\n async getArgs({ prompt: e4, maxOutputTokens: t2 = 4096, temperature: n2, topP: r2, topK: i3, frequencyPenalty: a4, presencePenalty: o3, stopSequences: s4, responseFormat: c4, seed: l3, tools: u3, toolChoice: d2, providerOptions: f3 }) {\n let p3 = [];\n a4 != null && p3.push({ type: `unsupported-setting`, setting: `frequencyPenalty` }), o3 != null && p3.push({ type: `unsupported-setting`, setting: `presencePenalty` }), l3 != null && p3.push({ type: `unsupported-setting`, setting: `seed` }), c4?.type === `json` && (c4.schema == null ? p3.push({ type: `unsupported-setting`, setting: `responseFormat`, details: `JSON response format requires a schema. The response format is ignored.` }) : u3 != null && p3.push({ type: `unsupported-setting`, setting: `tools`, details: `JSON response format does not support tools. The provided tools are ignored.` }));\n let m3 = c4?.type === `json` && c4.schema != null ? { type: `function`, name: `json`, description: `Respond with a JSON object.`, inputSchema: c4.schema } : undefined, h3 = await L2({ provider: `anthropic`, providerOptions: f3, schema: Nt }), { prompt: g3, betas: _3 } = await Xt({ prompt: e4, sendReasoning: h3?.sendReasoning ?? true, warnings: p3 }), v3 = h3?.thinking?.type === `enabled`, y3 = h3?.thinking?.budgetTokens, b3 = { model: this.modelId, max_tokens: t2, temperature: n2, top_k: i3, top_p: r2, stop_sequences: s4, ...v3 && { thinking: { type: `enabled`, budget_tokens: y3 } }, system: g3.system, messages: g3.messages };\n if (v3) {\n if (y3 == null)\n throw new j2({ functionality: `thinking requires a budget` });\n b3.temperature != null && (b3.temperature = undefined, p3.push({ type: `unsupported-setting`, setting: `temperature`, details: `temperature is not supported when thinking is enabled` })), i3 != null && (b3.top_k = undefined, p3.push({ type: `unsupported-setting`, setting: `topK`, details: `topK is not supported when thinking is enabled` })), r2 != null && (b3.top_p = undefined, p3.push({ type: `unsupported-setting`, setting: `topP`, details: `topP is not supported when thinking is enabled` })), b3.max_tokens = t2 + y3;\n }\n let { tools: x4, toolChoice: S3, toolWarnings: C3, betas: w3 } = Gt(m3 == null ? { tools: u3 ?? [], toolChoice: d2, disableParallelToolUse: h3?.disableParallelToolUse } : { tools: [m3], toolChoice: { type: `tool`, toolName: m3.name }, disableParallelToolUse: true });\n return { args: { ...b3, tools: x4, tool_choice: S3 }, warnings: [...p3, ...C3], betas: new Set([..._3, ...w3]), usesJsonResponseTool: m3 != null };\n }\n async getHeaders({ betas: e4, headers: t2 }) {\n return M2(await V2(this.config.headers), e4.size > 0 ? { "anthropic-beta": Array.from(e4).join(`,`) } : {}, t2);\n }\n buildRequestUrl(e4) {\n var t2;\n return (t2 = this.config).buildRequestUrl?.call(t2, this.config.baseURL, e4) ?? `${this.config.baseURL}/messages`;\n }\n transformRequestBody(e4) {\n var t2;\n return (t2 = this.config).transformRequestBody?.call(t2, e4) ?? e4;\n }\n extractCitationDocuments(e4) {\n return e4.filter((e5) => e5.role === `user`).flatMap((e5) => e5.content).filter((e5) => e5.type !== `file` || e5.mediaType !== `application/pdf` && e5.mediaType !== `text/plain` ? false : e5.providerOptions?.anthropic?.citations?.enabled ?? false).map((e5) => {\n let t2 = e5;\n return { title: t2.filename ?? `Untitled Document`, filename: t2.filename, mediaType: t2.mediaType };\n });\n }\n async doGenerate(e4) {\n let { args: t2, warnings: n2, betas: r2, usesJsonResponseTool: i3 } = await this.getArgs(e4), a4 = this.extractCitationDocuments(e4.prompt), { responseHeaders: o3, value: s4, rawValue: c4 } = await R2({ url: this.buildRequestUrl(false), headers: await this.getHeaders({ betas: r2, headers: e4.headers }), body: this.transformRequestBody(t2), failedResponseHandler: jt, successfulResponseHandler: W2(rn), abortSignal: e4.abortSignal, fetch: this.config.fetch }), l3 = [];\n for (let e5 of s4.content)\n switch (e5.type) {\n case `text`:\n if (!i3 && (l3.push({ type: `text`, text: e5.text }), e5.citations))\n for (let t3 of e5.citations)\n en(t3, a4, this.generateId, (e6) => l3.push(e6));\n break;\n case `thinking`:\n l3.push({ type: `reasoning`, text: e5.thinking, providerMetadata: { anthropic: { signature: e5.signature } } });\n break;\n case `redacted_thinking`:\n l3.push({ type: `reasoning`, text: ``, providerMetadata: { anthropic: { redactedData: e5.data } } });\n break;\n case `tool_use`:\n l3.push(i3 ? { type: `text`, text: JSON.stringify(e5.input) } : { type: `tool-call`, toolCallId: e5.id, toolName: e5.name, input: JSON.stringify(e5.input) });\n break;\n case `server_tool_use`:\n (e5.name === `web_search` || e5.name === `code_execution` || e5.name === `web_fetch`) && l3.push({ type: `tool-call`, toolCallId: e5.id, toolName: e5.name, input: JSON.stringify(e5.input), providerExecuted: true });\n break;\n case `web_fetch_tool_result`:\n e5.content.type === `web_fetch_result` ? l3.push({ type: `tool-result`, toolCallId: e5.tool_use_id, toolName: `web_fetch`, result: { type: `web_fetch_result`, url: e5.content.url, retrievedAt: e5.content.retrieved_at, content: { type: e5.content.content.type, title: e5.content.content.title, citations: e5.content.content.citations, source: { type: e5.content.content.source.type, mediaType: e5.content.content.source.media_type, data: e5.content.content.source.data } } }, providerExecuted: true }) : e5.content.type === `web_fetch_tool_result_error` && l3.push({ type: `tool-result`, toolCallId: e5.tool_use_id, toolName: `web_fetch`, isError: true, result: { type: `web_fetch_tool_result_error`, errorCode: e5.content.error_code }, providerExecuted: true });\n break;\n case `web_search_tool_result`:\n if (Array.isArray(e5.content)) {\n l3.push({ type: `tool-result`, toolCallId: e5.tool_use_id, toolName: `web_search`, result: e5.content.map((e6) => ({ url: e6.url, title: e6.title, pageAge: e6.page_age ?? null, encryptedContent: e6.encrypted_content, type: e6.type })), providerExecuted: true });\n for (let t3 of e5.content)\n l3.push({ type: `source`, sourceType: `url`, id: this.generateId(), url: t3.url, title: t3.title, providerMetadata: { anthropic: { pageAge: t3.page_age ?? null } } });\n } else\n l3.push({ type: `tool-result`, toolCallId: e5.tool_use_id, toolName: `web_search`, isError: true, result: { type: `web_search_tool_result_error`, errorCode: e5.content.error_code }, providerExecuted: true });\n break;\n case `code_execution_tool_result`:\n e5.content.type === `code_execution_result` ? l3.push({ type: `tool-result`, toolCallId: e5.tool_use_id, toolName: `code_execution`, result: { type: e5.content.type, stdout: e5.content.stdout, stderr: e5.content.stderr, return_code: e5.content.return_code }, providerExecuted: true }) : e5.content.type === `code_execution_tool_result_error` && l3.push({ type: `tool-result`, toolCallId: e5.tool_use_id, toolName: `code_execution`, isError: true, result: { type: `code_execution_tool_result_error`, errorCode: e5.content.error_code }, providerExecuted: true });\n break;\n }\n return { content: l3, finishReason: Qt({ finishReason: s4.stop_reason, isJsonResponseFromTool: i3 }), usage: { inputTokens: s4.usage.input_tokens, outputTokens: s4.usage.output_tokens, totalTokens: s4.usage.input_tokens + s4.usage.output_tokens, cachedInputTokens: s4.usage.cache_read_input_tokens ?? undefined }, request: { body: t2 }, response: { id: s4.id ?? undefined, modelId: s4.model ?? undefined, headers: o3, body: c4 }, warnings: n2, providerMetadata: { anthropic: { usage: s4.usage, cacheCreationInputTokens: s4.usage.cache_creation_input_tokens ?? null, stopSequence: s4.stop_sequence ?? null } } };\n }\n async doStream(e4) {\n let { args: t2, warnings: n2, betas: r2, usesJsonResponseTool: i3 } = await this.getArgs(e4), a4 = this.extractCitationDocuments(e4.prompt), o3 = { ...t2, stream: true }, { responseHeaders: s4, value: c4 } = await R2({ url: this.buildRequestUrl(true), headers: await this.getHeaders({ betas: r2, headers: e4.headers }), body: this.transformRequestBody(o3), failedResponseHandler: jt, successfulResponseHandler: U2(an), abortSignal: e4.abortSignal, fetch: this.config.fetch }), l3 = `unknown`, u3 = { inputTokens: undefined, outputTokens: undefined, totalTokens: undefined }, d2 = {}, f3, p3 = null, m3 = null, h3, g3 = this.generateId;\n return { stream: c4.pipeThrough(new TransformStream({ start(e5) {\n e5.enqueue({ type: `stream-start`, warnings: n2 });\n }, transform(t3, n3) {\n if (e4.includeRawChunks && n3.enqueue({ type: `raw`, rawValue: t3.rawValue }), !t3.success) {\n n3.enqueue({ type: `error`, error: t3.error });\n return;\n }\n let r3 = t3.value;\n switch (r3.type) {\n case `ping`:\n return;\n case `content_block_start`: {\n let e5 = r3.content_block.type;\n switch (h3 = e5, e5) {\n case `text`:\n d2[r3.index] = { type: `text` }, n3.enqueue({ type: `text-start`, id: String(r3.index) });\n return;\n case `thinking`:\n d2[r3.index] = { type: `reasoning` }, n3.enqueue({ type: `reasoning-start`, id: String(r3.index) });\n return;\n case `redacted_thinking`:\n d2[r3.index] = { type: `reasoning` }, n3.enqueue({ type: `reasoning-start`, id: String(r3.index), providerMetadata: { anthropic: { redactedData: r3.content_block.data } } });\n return;\n case `tool_use`:\n d2[r3.index] = i3 ? { type: `text` } : { type: `tool-call`, toolCallId: r3.content_block.id, toolName: r3.content_block.name, input: `` }, n3.enqueue(i3 ? { type: `text-start`, id: String(r3.index) } : { type: `tool-input-start`, id: r3.content_block.id, toolName: r3.content_block.name });\n return;\n case `server_tool_use`:\n (r3.content_block.name === `web_fetch` || r3.content_block.name === `web_search` || r3.content_block.name === `code_execution`) && (d2[r3.index] = { type: `tool-call`, toolCallId: r3.content_block.id, toolName: r3.content_block.name, input: ``, providerExecuted: true }, n3.enqueue({ type: `tool-input-start`, id: r3.content_block.id, toolName: r3.content_block.name, providerExecuted: true }));\n return;\n case `web_fetch_tool_result`: {\n let e6 = r3.content_block;\n e6.content.type === `web_fetch_result` ? n3.enqueue({ type: `tool-result`, toolCallId: e6.tool_use_id, toolName: `web_fetch`, result: { type: `web_fetch_result`, url: e6.content.url, retrievedAt: e6.content.retrieved_at, content: { type: e6.content.content.type, title: e6.content.content.title, citations: e6.content.content.citations, source: { type: e6.content.content.source.type, mediaType: e6.content.content.source.media_type, data: e6.content.content.source.data } } } }) : e6.content.type === `web_fetch_tool_result_error` && n3.enqueue({ type: `tool-result`, toolCallId: e6.tool_use_id, toolName: `web_fetch`, isError: true, result: { type: `web_fetch_tool_result_error`, errorCode: e6.content.error_code }, providerExecuted: true });\n return;\n }\n case `web_search_tool_result`: {\n let e6 = r3.content_block;\n if (Array.isArray(e6.content)) {\n n3.enqueue({ type: `tool-result`, toolCallId: e6.tool_use_id, toolName: `web_search`, result: e6.content.map((e7) => ({ url: e7.url, title: e7.title, pageAge: e7.page_age ?? null, encryptedContent: e7.encrypted_content, type: e7.type })), providerExecuted: true });\n for (let t4 of e6.content)\n n3.enqueue({ type: `source`, sourceType: `url`, id: g3(), url: t4.url, title: t4.title, providerMetadata: { anthropic: { pageAge: t4.page_age ?? null } } });\n } else\n n3.enqueue({ type: `tool-result`, toolCallId: e6.tool_use_id, toolName: `web_search`, isError: true, result: { type: `web_search_tool_result_error`, errorCode: e6.content.error_code }, providerExecuted: true });\n return;\n }\n case `code_execution_tool_result`: {\n let e6 = r3.content_block;\n e6.content.type === `code_execution_result` ? n3.enqueue({ type: `tool-result`, toolCallId: e6.tool_use_id, toolName: `code_execution`, result: { type: e6.content.type, stdout: e6.content.stdout, stderr: e6.content.stderr, return_code: e6.content.return_code }, providerExecuted: true }) : e6.content.type === `code_execution_tool_result_error` && n3.enqueue({ type: `tool-result`, toolCallId: e6.tool_use_id, toolName: `code_execution`, isError: true, result: { type: `code_execution_tool_result_error`, errorCode: e6.content.error_code }, providerExecuted: true });\n return;\n }\n default: {\n let t4 = e5;\n throw Error(`Unsupported content block type: ${t4}`);\n }\n }\n }\n case `content_block_stop`:\n if (d2[r3.index] != null) {\n let e5 = d2[r3.index];\n switch (e5.type) {\n case `text`:\n n3.enqueue({ type: `text-end`, id: String(r3.index) });\n break;\n case `reasoning`:\n n3.enqueue({ type: `reasoning-end`, id: String(r3.index) });\n break;\n case `tool-call`:\n i3 || (n3.enqueue({ type: `tool-input-end`, id: e5.toolCallId }), n3.enqueue(e5));\n break;\n }\n delete d2[r3.index];\n }\n h3 = undefined;\n return;\n case `content_block_delta`: {\n let e5 = r3.delta.type;\n switch (e5) {\n case `text_delta`:\n if (i3)\n return;\n n3.enqueue({ type: `text-delta`, id: String(r3.index), delta: r3.delta.text });\n return;\n case `thinking_delta`:\n n3.enqueue({ type: `reasoning-delta`, id: String(r3.index), delta: r3.delta.thinking });\n return;\n case `signature_delta`:\n h3 === `thinking` && n3.enqueue({ type: `reasoning-delta`, id: String(r3.index), delta: ``, providerMetadata: { anthropic: { signature: r3.delta.signature } } });\n return;\n case `input_json_delta`: {\n let e6 = d2[r3.index], t4 = r3.delta.partial_json;\n if (i3) {\n if (e6?.type !== `text`)\n return;\n n3.enqueue({ type: `text-delta`, id: String(r3.index), delta: t4 });\n } else {\n if (e6?.type !== `tool-call`)\n return;\n n3.enqueue({ type: `tool-input-delta`, id: e6.toolCallId, delta: t4 }), e6.input += t4;\n }\n return;\n }\n case `citations_delta`: {\n let e6 = r3.delta.citation;\n en(e6, a4, g3, (e7) => n3.enqueue(e7));\n return;\n }\n default: {\n let t4 = e5;\n throw Error(`Unsupported delta type: ${t4}`);\n }\n }\n }\n case `message_start`:\n u3.inputTokens = r3.message.usage.input_tokens, u3.cachedInputTokens = r3.message.usage.cache_read_input_tokens ?? undefined, f3 = { ...r3.message.usage }, p3 = r3.message.usage.cache_creation_input_tokens ?? null, n3.enqueue({ type: `response-metadata`, id: r3.message.id ?? undefined, modelId: r3.message.model ?? undefined });\n return;\n case `message_delta`:\n u3.outputTokens = r3.usage.output_tokens, u3.totalTokens = (u3.inputTokens ?? 0) + (r3.usage.output_tokens ?? 0), l3 = Qt({ finishReason: r3.delta.stop_reason, isJsonResponseFromTool: i3 }), m3 = r3.delta.stop_sequence ?? null, f3 = { ...f3, ...r3.usage };\n return;\n case `message_stop`:\n n3.enqueue({ type: `finish`, finishReason: l3, usage: u3, providerMetadata: { anthropic: { usage: f3 ?? null, cacheCreationInputTokens: p3, stopSequence: m3 } } });\n return;\n case `error`:\n n3.enqueue({ type: `error`, error: r3.error });\n return;\n default: {\n let e5 = r3;\n throw Error(`Unsupported chunk type: ${e5}`);\n }\n }\n } })), request: { body: o3 }, response: { headers: s4 } };\n }\n};\nvar rn = exports_external.object({ type: exports_external.literal(`message`), id: exports_external.string().nullish(), model: exports_external.string().nullish(), content: exports_external.array(exports_external.discriminatedUnion(`type`, [exports_external.object({ type: exports_external.literal(`text`), text: exports_external.string(), citations: exports_external.array($t).optional() }), exports_external.object({ type: exports_external.literal(`thinking`), thinking: exports_external.string(), signature: exports_external.string() }), exports_external.object({ type: exports_external.literal(`redacted_thinking`), data: exports_external.string() }), exports_external.object({ type: exports_external.literal(`tool_use`), id: exports_external.string(), name: exports_external.string(), input: exports_external.unknown() }), exports_external.object({ type: exports_external.literal(`server_tool_use`), id: exports_external.string(), name: exports_external.string(), input: exports_external.record(exports_external.string(), exports_external.unknown()).nullish() }), exports_external.object({ type: exports_external.literal(`web_fetch_tool_result`), tool_use_id: exports_external.string(), content: exports_external.union([exports_external.object({ type: exports_external.literal(`web_fetch_result`), url: exports_external.string(), retrieved_at: exports_external.string(), content: exports_external.object({ type: exports_external.literal(`document`), title: exports_external.string().nullable(), citations: exports_external.object({ enabled: exports_external.boolean() }).optional(), source: exports_external.object({ type: exports_external.literal(`text`), media_type: exports_external.string(), data: exports_external.string() }) }) }), exports_external.object({ type: exports_external.literal(`web_fetch_tool_result_error`), error_code: exports_external.string() })]) }), exports_external.object({ type: exports_external.literal(`web_search_tool_result`), tool_use_id: exports_external.string(), content: exports_external.union([exports_external.array(exports_external.object({ type: exports_external.literal(`web_search_result`), url: exports_external.string(), title: exports_external.string(), encrypted_content: exports_external.string(), page_age: exports_external.string().nullish() })), exports_external.object({ type: exports_external.literal(`web_search_tool_result_error`), error_code: exports_external.string() })]) }), exports_external.object({ type: exports_external.literal(`code_execution_tool_result`), tool_use_id: exports_external.string(), content: exports_external.union([exports_external.object({ type: exports_external.literal(`code_execution_result`), stdout: exports_external.string(), stderr: exports_external.string(), return_code: exports_external.number() }), exports_external.object({ type: exports_external.literal(`code_execution_tool_result_error`), error_code: exports_external.string() })]) })])), stop_reason: exports_external.string().nullish(), stop_sequence: exports_external.string().nullish(), usage: exports_external.looseObject({ input_tokens: exports_external.number(), output_tokens: exports_external.number(), cache_creation_input_tokens: exports_external.number().nullish(), cache_read_input_tokens: exports_external.number().nullish() }) });\nvar an = exports_external.discriminatedUnion(`type`, [exports_external.object({ type: exports_external.literal(`message_start`), message: exports_external.object({ id: exports_external.string().nullish(), model: exports_external.string().nullish(), usage: exports_external.looseObject({ input_tokens: exports_external.number(), cache_creation_input_tokens: exports_external.number().nullish(), cache_read_input_tokens: exports_external.number().nullish() }) }) }), exports_external.object({ type: exports_external.literal(`content_block_start`), index: exports_external.number(), content_block: exports_external.discriminatedUnion(`type`, [exports_external.object({ type: exports_external.literal(`text`), text: exports_external.string() }), exports_external.object({ type: exports_external.literal(`thinking`), thinking: exports_external.string() }), exports_external.object({ type: exports_external.literal(`tool_use`), id: exports_external.string(), name: exports_external.string() }), exports_external.object({ type: exports_external.literal(`redacted_thinking`), data: exports_external.string() }), exports_external.object({ type: exports_external.literal(`server_tool_use`), id: exports_external.string(), name: exports_external.string(), input: exports_external.record(exports_external.string(), exports_external.unknown()).nullish() }), exports_external.object({ type: exports_external.literal(`web_fetch_tool_result`), tool_use_id: exports_external.string(), content: exports_external.union([exports_external.object({ type: exports_external.literal(`web_fetch_result`), url: exports_external.string(), retrieved_at: exports_external.string(), content: exports_external.object({ type: exports_external.literal(`document`), title: exports_external.string().nullable(), citations: exports_external.object({ enabled: exports_external.boolean() }).optional(), source: exports_external.object({ type: exports_external.literal(`text`), media_type: exports_external.string(), data: exports_external.string() }) }) }), exports_external.object({ type: exports_external.literal(`web_fetch_tool_result_error`), error_code: exports_external.string() })]) }), exports_external.object({ type: exports_external.literal(`web_search_tool_result`), tool_use_id: exports_external.string(), content: exports_external.union([exports_external.array(exports_external.object({ type: exports_external.literal(`web_search_result`), url: exports_external.string(), title: exports_external.string(), encrypted_content: exports_external.string(), page_age: exports_external.string().nullish() })), exports_external.object({ type: exports_external.literal(`web_search_tool_result_error`), error_code: exports_external.string() })]) }), exports_external.object({ type: exports_external.literal(`code_execution_tool_result`), tool_use_id: exports_external.string(), content: exports_external.union([exports_external.object({ type: exports_external.literal(`code_execution_result`), stdout: exports_external.string(), stderr: exports_external.string(), return_code: exports_external.number() }), exports_external.object({ type: exports_external.literal(`code_execution_tool_result_error`), error_code: exports_external.string() })]) })]) }), exports_external.object({ type: exports_external.literal(`content_block_delta`), index: exports_external.number(), delta: exports_external.discriminatedUnion(`type`, [exports_external.object({ type: exports_external.literal(`input_json_delta`), partial_json: exports_external.string() }), exports_external.object({ type: exports_external.literal(`text_delta`), text: exports_external.string() }), exports_external.object({ type: exports_external.literal(`thinking_delta`), thinking: exports_external.string() }), exports_external.object({ type: exports_external.literal(`signature_delta`), signature: exports_external.string() }), exports_external.object({ type: exports_external.literal(`citations_delta`), citation: $t })]) }), exports_external.object({ type: exports_external.literal(`content_block_stop`), index: exports_external.number() }), exports_external.object({ type: exports_external.literal(`error`), error: exports_external.object({ type: exports_external.string(), message: exports_external.string() }) }), exports_external.object({ type: exports_external.literal(`message_delta`), delta: exports_external.object({ stop_reason: exports_external.string().nullish(), stop_sequence: exports_external.string().nullish() }), usage: exports_external.looseObject({ output_tokens: exports_external.number(), cache_creation_input_tokens: exports_external.number().nullish() }) }), exports_external.object({ type: exports_external.literal(`message_stop`) }), exports_external.object({ type: exports_external.literal(`ping`) })]);\nvar on = exports_external.object({ signature: exports_external.string().optional(), redactedData: exports_external.string().optional() });\nvar sn = z2({ id: `anthropic.bash_20241022`, name: `bash`, inputSchema: v4_default.object({ command: v4_default.string(), restart: v4_default.boolean().optional() }) });\nvar cn = z2({ id: `anthropic.bash_20250124`, name: `bash`, inputSchema: v4_default.object({ command: v4_default.string(), restart: v4_default.boolean().optional() }) });\nvar ln = z2({ id: `anthropic.computer_20241022`, name: `computer`, inputSchema: exports_external.object({ action: exports_external.enum([`key`, `type`, `mouse_move`, `left_click`, `left_click_drag`, `right_click`, `middle_click`, `double_click`, `screenshot`, `cursor_position`]), coordinate: exports_external.array(exports_external.number().int()).optional(), text: exports_external.string().optional() }) });\nvar un = z2({ id: `anthropic.computer_20250124`, name: `computer`, inputSchema: exports_external.object({ action: exports_external.enum([`key`, `hold_key`, `type`, `cursor_position`, `mouse_move`, `left_mouse_down`, `left_mouse_up`, `left_click`, `left_click_drag`, `right_click`, `middle_click`, `double_click`, `triple_click`, `scroll`, `wait`, `screenshot`]), coordinate: exports_external.tuple([exports_external.number().int(), exports_external.number().int()]).optional(), duration: exports_external.number().optional(), scroll_amount: exports_external.number().optional(), scroll_direction: exports_external.enum([`up`, `down`, `left`, `right`]).optional(), start_coordinate: exports_external.tuple([exports_external.number().int(), exports_external.number().int()]).optional(), text: exports_external.string().optional() }) });\nvar dn = z2({ id: `anthropic.text_editor_20241022`, name: `str_replace_editor`, inputSchema: exports_external.object({ command: exports_external.enum([`view`, `create`, `str_replace`, `insert`, `undo_edit`]), path: exports_external.string(), file_text: exports_external.string().optional(), insert_line: exports_external.number().int().optional(), new_str: exports_external.string().optional(), old_str: exports_external.string().optional(), view_range: exports_external.array(exports_external.number().int()).optional() }) });\nvar fn = z2({ id: `anthropic.text_editor_20250124`, name: `str_replace_editor`, inputSchema: exports_external.object({ command: exports_external.enum([`view`, `create`, `str_replace`, `insert`, `undo_edit`]), path: exports_external.string(), file_text: exports_external.string().optional(), insert_line: exports_external.number().int().optional(), new_str: exports_external.string().optional(), old_str: exports_external.string().optional(), view_range: exports_external.array(exports_external.number().int()).optional() }) });\nvar pn = z2({ id: `anthropic.text_editor_20250429`, name: `str_replace_based_edit_tool`, inputSchema: exports_external.object({ command: exports_external.enum([`view`, `create`, `str_replace`, `insert`]), path: exports_external.string(), file_text: exports_external.string().optional(), insert_line: exports_external.number().int().optional(), new_str: exports_external.string().optional(), old_str: exports_external.string().optional(), view_range: exports_external.array(exports_external.number().int()).optional() }) });\nvar mn = { bash_20241022: sn, bash_20250124: cn, codeExecution_20250522: Jt, computer_20241022: ln, computer_20250124: un, textEditor_20241022: dn, textEditor_20250124: fn, textEditor_20250429: pn, textEditor_20250728: It, webFetch_20250910: Wt, webSearch_20250305: Bt };\nfunction hn(e4 = {}) {\n let t2 = K2(e4.baseURL) ?? `https://api.anthropic.com/v1`, n2 = () => P2({ "anthropic-version": `2023-06-01`, "x-api-key": I2({ apiKey: e4.apiKey, environmentVariableName: `ANTHROPIC_API_KEY`, description: `Anthropic` }), ...e4.headers }, `ai-sdk/anthropic/${kt}`), r2 = (r3) => new nn(r3, { provider: `anthropic.messages`, baseURL: t2, headers: n2, fetch: e4.fetch, generateId: e4.generateId ?? F2, supportedUrls: () => ({ "image/*": [/^https?:\\/\\/.*$/] }) }), i3 = function(e5) {\n if (new.target)\n throw Error(`The Anthropic model function cannot be called with the new keyword.`);\n return r2(e5);\n };\n return i3.languageModel = r2, i3.chat = r2, i3.messages = r2, i3.textEmbeddingModel = (e5) => {\n throw new k2({ modelId: e5, modelType: `textEmbeddingModel` });\n }, i3.imageModel = (e5) => {\n throw new k2({ modelId: e5, modelType: `imageModel` });\n }, i3.tools = mn, i3;\n}\nhn();\nvar gn = `2.0.17`;\nvar _n = exports_external.object({ error: exports_external.object({ code: exports_external.number().nullable(), message: exports_external.string(), status: exports_external.string() }) });\nvar Y2 = H2({ errorSchema: _n, errorToMessage: (e4) => e4.error.message });\nvar vn = exports_external.object({ outputDimensionality: exports_external.number().optional(), taskType: exports_external.enum([`SEMANTIC_SIMILARITY`, `CLASSIFICATION`, `CLUSTERING`, `RETRIEVAL_DOCUMENT`, `RETRIEVAL_QUERY`, `QUESTION_ANSWERING`, `FACT_VERIFICATION`, `CODE_RETRIEVAL_QUERY`]).optional() });\nvar yn = class {\n constructor(e4, t2) {\n this.specificationVersion = `v2`, this.maxEmbeddingsPerCall = 2048, this.supportsParallelCalls = true, this.modelId = e4, this.config = t2;\n }\n get provider() {\n return this.config.provider;\n }\n async doEmbed({ values: e4, headers: t2, abortSignal: n2, providerOptions: r2 }) {\n let i3 = await L2({ provider: `google`, providerOptions: r2, schema: vn });\n if (e4.length > this.maxEmbeddingsPerCall)\n throw new Be({ provider: this.provider, modelId: this.modelId, maxEmbeddingsPerCall: this.maxEmbeddingsPerCall, values: e4 });\n let a4 = M2(await V2(this.config.headers), t2);\n if (e4.length === 1) {\n let { responseHeaders: t3, value: r3, rawValue: o4 } = await R2({ url: `${this.config.baseURL}/models/${this.modelId}:embedContent`, headers: a4, body: { model: `models/${this.modelId}`, content: { parts: [{ text: e4[0] }] }, outputDimensionality: i3?.outputDimensionality, taskType: i3?.taskType }, failedResponseHandler: Y2, successfulResponseHandler: W2(xn), abortSignal: n2, fetch: this.config.fetch });\n return { embeddings: [r3.embedding.values], usage: undefined, response: { headers: t3, body: o4 } };\n }\n let { responseHeaders: o3, value: s4, rawValue: c4 } = await R2({ url: `${this.config.baseURL}/models/${this.modelId}:batchEmbedContents`, headers: a4, body: { requests: e4.map((e5) => ({ model: `models/${this.modelId}`, content: { role: `user`, parts: [{ text: e5 }] }, outputDimensionality: i3?.outputDimensionality, taskType: i3?.taskType })) }, failedResponseHandler: Y2, successfulResponseHandler: W2(bn), abortSignal: n2, fetch: this.config.fetch });\n return { embeddings: s4.embeddings.map((e5) => e5.values), usage: undefined, response: { headers: o3, body: c4 } };\n }\n};\nvar bn = exports_external.object({ embeddings: exports_external.array(exports_external.object({ values: exports_external.array(exports_external.number()) })) });\nvar xn = exports_external.object({ embedding: exports_external.object({ values: exports_external.array(exports_external.number()) }) });\nfunction X2(e4) {\n if (e4 == null || Sn(e4))\n return;\n if (typeof e4 == `boolean`)\n return { type: `boolean`, properties: {} };\n let { type: t2, description: n2, required: r2, properties: i3, items: a4, allOf: o3, anyOf: s4, oneOf: c4, format: l3, const: u3, minLength: d2, enum: f3 } = e4, p3 = {};\n if (n2 && (p3.description = n2), r2 && (p3.required = r2), l3 && (p3.format = l3), u3 !== undefined && (p3.enum = [u3]), t2 && (Array.isArray(t2) ? t2.includes(`null`) ? (p3.type = t2.filter((e5) => e5 !== `null`)[0], p3.nullable = true) : p3.type = t2 : t2 === `null` ? p3.type = `null` : p3.type = t2), f3 !== undefined && (p3.enum = f3), i3 != null && (p3.properties = Object.entries(i3).reduce((e5, [t3, n3]) => (e5[t3] = X2(n3), e5), {})), a4 && (p3.items = Array.isArray(a4) ? a4.map(X2) : X2(a4)), o3 && (p3.allOf = o3.map(X2)), s4)\n if (s4.some((e5) => typeof e5 == `object` && e5?.type === `null`)) {\n let e5 = s4.filter((e6) => !(typeof e6 == `object` && e6?.type === `null`));\n if (e5.length === 1) {\n let t3 = X2(e5[0]);\n typeof t3 == `object` && (p3.nullable = true, Object.assign(p3, t3));\n } else\n p3.anyOf = e5.map(X2), p3.nullable = true;\n } else\n p3.anyOf = s4.map(X2);\n return c4 && (p3.oneOf = c4.map(X2)), d2 !== undefined && (p3.minLength = d2), p3;\n}\nfunction Sn(e4) {\n return typeof e4 == `object` && !!e4 && e4.type === `object` && (e4.properties == null || Object.keys(e4.properties).length === 0) && !e4.additionalProperties;\n}\nfunction Cn(e4, t2) {\n let n2 = [], r2 = [], i3 = true, a4 = t2?.isGemmaModel ?? false;\n for (let { role: t3, content: a5 } of e4)\n switch (t3) {\n case `system`:\n if (!i3)\n throw new j2({ functionality: `system messages are only supported at the beginning of the conversation` });\n n2.push({ text: a5 });\n break;\n case `user`: {\n i3 = false;\n let e5 = [];\n for (let t4 of a5)\n switch (t4.type) {\n case `text`:\n e5.push({ text: t4.text });\n break;\n case `file`: {\n let n3 = t4.mediaType === `image/*` ? `image/jpeg` : t4.mediaType;\n e5.push(t4.data instanceof URL ? { fileData: { mimeType: n3, fileUri: t4.data.toString() } } : { inlineData: { mimeType: n3, data: G2(t4.data) } });\n break;\n }\n }\n r2.push({ role: `user`, parts: e5 });\n break;\n }\n case `assistant`:\n i3 = false, r2.push({ role: `model`, parts: a5.map((e5) => {\n switch (e5.type) {\n case `text`:\n return e5.text.length === 0 ? undefined : { text: e5.text, thoughtSignature: e5.providerOptions?.google?.thoughtSignature };\n case `reasoning`:\n return e5.text.length === 0 ? undefined : { text: e5.text, thought: true, thoughtSignature: e5.providerOptions?.google?.thoughtSignature };\n case `file`:\n if (e5.mediaType !== `image/png`)\n throw new j2({ functionality: `Only PNG images are supported in assistant messages` });\n if (e5.data instanceof URL)\n throw new j2({ functionality: `File data URLs in assistant messages are not supported` });\n return { inlineData: { mimeType: e5.mediaType, data: G2(e5.data) } };\n case `tool-call`:\n return { functionCall: { name: e5.toolName, args: e5.input }, thoughtSignature: e5.providerOptions?.google?.thoughtSignature };\n }\n }).filter((e5) => e5 !== undefined) });\n break;\n case `tool`: {\n i3 = false;\n let e5 = [];\n for (let t4 of a5) {\n let n3 = t4.output;\n if (n3.type === `content`)\n for (let r3 of n3.value)\n switch (r3.type) {\n case `text`:\n e5.push({ functionResponse: { name: t4.toolName, response: { name: t4.toolName, content: r3.text } } });\n break;\n case `media`:\n e5.push({ inlineData: { mimeType: r3.mediaType, data: r3.data } }, { text: `Tool executed successfully and returned this image as a response` });\n break;\n default:\n e5.push({ text: JSON.stringify(r3) });\n break;\n }\n else\n e5.push({ functionResponse: { name: t4.toolName, response: { name: t4.toolName, content: n3.value } } });\n }\n r2.push({ role: `user`, parts: e5 });\n break;\n }\n }\n if (a4 && n2.length > 0 && r2.length > 0 && r2[0].role === `user`) {\n let e5 = n2.map((e6) => e6.text).join(`\n\n`);\n r2[0].parts.unshift({ text: e5 + `\n\n` });\n }\n return { systemInstruction: n2.length > 0 && !a4 ? { parts: n2 } : undefined, contents: r2 };\n}\nfunction wn(e4) {\n return e4.includes(`/`) ? e4 : `models/${e4}`;\n}\nvar Tn = exports_external.object({ responseModalities: exports_external.array(exports_external.enum([`TEXT`, `IMAGE`])).optional(), thinkingConfig: exports_external.object({ thinkingBudget: exports_external.number().optional(), includeThoughts: exports_external.boolean().optional() }).optional(), cachedContent: exports_external.string().optional(), structuredOutputs: exports_external.boolean().optional(), safetySettings: exports_external.array(exports_external.object({ category: exports_external.enum([`HARM_CATEGORY_UNSPECIFIED`, `HARM_CATEGORY_HATE_SPEECH`, `HARM_CATEGORY_DANGEROUS_CONTENT`, `HARM_CATEGORY_HARASSMENT`, `HARM_CATEGORY_SEXUALLY_EXPLICIT`, `HARM_CATEGORY_CIVIC_INTEGRITY`]), threshold: exports_external.enum([`HARM_BLOCK_THRESHOLD_UNSPECIFIED`, `BLOCK_LOW_AND_ABOVE`, `BLOCK_MEDIUM_AND_ABOVE`, `BLOCK_ONLY_HIGH`, `BLOCK_NONE`, `OFF`]) })).optional(), threshold: exports_external.enum([`HARM_BLOCK_THRESHOLD_UNSPECIFIED`, `BLOCK_LOW_AND_ABOVE`, `BLOCK_MEDIUM_AND_ABOVE`, `BLOCK_ONLY_HIGH`, `BLOCK_NONE`, `OFF`]).optional(), audioTimestamp: exports_external.boolean().optional(), labels: exports_external.record(exports_external.string(), exports_external.string()).optional() });\nfunction En({ tools: e4, toolChoice: t2, modelId: n2 }) {\n e4 = e4?.length ? e4 : undefined;\n let r2 = [], i3 = n2.includes(`gemini-2`), a4 = n2.includes(`gemini-1.5-flash`) && !n2.includes(`-8b`);\n if (e4 == null)\n return { tools: undefined, toolConfig: undefined, toolWarnings: r2 };\n let o3 = e4.some((e5) => e5.type === `function`), s4 = e4.some((e5) => e5.type === `provider-defined`);\n if (o3 && s4 && r2.push({ type: `unsupported-tool`, tool: e4.find((e5) => e5.type === `function`), details: `Cannot mix function tools with provider-defined tools in the same request. Please use either function tools or provider-defined tools, but not both.` }), s4) {\n let t3 = {};\n return e4.filter((e5) => e5.type === `provider-defined`).forEach((e5) => {\n switch (e5.id) {\n case `google.google_search`:\n i3 ? t3.googleSearch = {} : a4 ? t3.googleSearchRetrieval = { dynamicRetrievalConfig: { mode: e5.args.mode, dynamicThreshold: e5.args.dynamicThreshold } } : t3.googleSearchRetrieval = {};\n break;\n case `google.url_context`:\n i3 ? t3.urlContext = {} : r2.push({ type: `unsupported-tool`, tool: e5, details: `The URL context tool is not supported with other Gemini models than Gemini 2.` });\n break;\n case `google.code_execution`:\n i3 ? t3.codeExecution = {} : r2.push({ type: `unsupported-tool`, tool: e5, details: `The code execution tools is not supported with other Gemini models than Gemini 2.` });\n break;\n default:\n r2.push({ type: `unsupported-tool`, tool: e5 });\n break;\n }\n }), { tools: Object.keys(t3).length > 0 ? t3 : undefined, toolConfig: undefined, toolWarnings: r2 };\n }\n let c4 = [];\n for (let t3 of e4)\n switch (t3.type) {\n case `function`:\n c4.push({ name: t3.name, description: t3.description ?? ``, parameters: X2(t3.inputSchema) });\n break;\n default:\n r2.push({ type: `unsupported-tool`, tool: t3 });\n break;\n }\n if (t2 == null)\n return { tools: { functionDeclarations: c4 }, toolConfig: undefined, toolWarnings: r2 };\n let l3 = t2.type;\n switch (l3) {\n case `auto`:\n return { tools: { functionDeclarations: c4 }, toolConfig: { functionCallingConfig: { mode: `AUTO` } }, toolWarnings: r2 };\n case `none`:\n return { tools: { functionDeclarations: c4 }, toolConfig: { functionCallingConfig: { mode: `NONE` } }, toolWarnings: r2 };\n case `required`:\n return { tools: { functionDeclarations: c4 }, toolConfig: { functionCallingConfig: { mode: `ANY` } }, toolWarnings: r2 };\n case `tool`:\n return { tools: { functionDeclarations: c4 }, toolConfig: { functionCallingConfig: { mode: `ANY`, allowedFunctionNames: [t2.toolName] } }, toolWarnings: r2 };\n default:\n throw new j2({ functionality: `tool choice type: ${l3}` });\n }\n}\nfunction Dn({ finishReason: e4, hasToolCalls: t2 }) {\n switch (e4) {\n case `STOP`:\n return t2 ? `tool-calls` : `stop`;\n case `MAX_TOKENS`:\n return `length`;\n case `IMAGE_SAFETY`:\n case `RECITATION`:\n case `SAFETY`:\n case `BLOCKLIST`:\n case `PROHIBITED_CONTENT`:\n case `SPII`:\n return `content-filter`;\n case `FINISH_REASON_UNSPECIFIED`:\n case `OTHER`:\n return `other`;\n case `MALFORMED_FUNCTION_CALL`:\n return `error`;\n default:\n return `unknown`;\n }\n}\nvar On = exports_external.object({ web: exports_external.object({ uri: exports_external.string(), title: exports_external.string() }).nullish(), retrievedContext: exports_external.object({ uri: exports_external.string(), title: exports_external.string() }).nullish() });\nvar kn = exports_external.object({ webSearchQueries: exports_external.array(exports_external.string()).nullish(), retrievalQueries: exports_external.array(exports_external.string()).nullish(), searchEntryPoint: exports_external.object({ renderedContent: exports_external.string() }).nullish(), groundingChunks: exports_external.array(On).nullish(), groundingSupports: exports_external.array(exports_external.object({ segment: exports_external.object({ startIndex: exports_external.number().nullish(), endIndex: exports_external.number().nullish(), text: exports_external.string().nullish() }), segment_text: exports_external.string().nullish(), groundingChunkIndices: exports_external.array(exports_external.number()).nullish(), supportChunkIndices: exports_external.array(exports_external.number()).nullish(), confidenceScores: exports_external.array(exports_external.number()).nullish(), confidenceScore: exports_external.array(exports_external.number()).nullish() })).nullish(), retrievalMetadata: exports_external.union([exports_external.object({ webDynamicRetrievalScore: exports_external.number() }), exports_external.object({})]).nullish() });\nvar An = z2({ id: `google.google_search`, name: `google_search`, inputSchema: exports_external.object({ mode: exports_external.enum([`MODE_DYNAMIC`, `MODE_UNSPECIFIED`]).default(`MODE_UNSPECIFIED`), dynamicThreshold: exports_external.number().default(1) }) });\nvar jn = exports_external.object({ retrievedUrl: exports_external.string(), urlRetrievalStatus: exports_external.string() });\nvar Mn = exports_external.object({ urlMetadata: exports_external.array(jn) });\nvar Nn = z2({ id: `google.url_context`, name: `url_context`, inputSchema: exports_external.object({}) });\nvar Pn = class {\n constructor(e4, t2) {\n this.specificationVersion = `v2`, this.modelId = e4, this.config = t2, this.generateId = t2.generateId ?? F2;\n }\n get provider() {\n return this.config.provider;\n }\n get supportedUrls() {\n var e4;\n return (e4 = this.config).supportedUrls?.call(e4) ?? {};\n }\n async getArgs({ prompt: e4, maxOutputTokens: t2, temperature: n2, topP: r2, topK: i3, frequencyPenalty: a4, presencePenalty: o3, stopSequences: s4, responseFormat: c4, seed: l3, tools: u3, toolChoice: d2, providerOptions: f3 }) {\n let p3 = [], m3 = await L2({ provider: `google`, providerOptions: f3, schema: Tn });\n m3?.thinkingConfig?.includeThoughts === true && !this.config.provider.startsWith(`google.vertex.`) && p3.push({ type: `other`, message: `The \'includeThoughts\' option is only supported with the Google Vertex provider and might not be supported or could behave unexpectedly with the current Google provider (${this.config.provider}).` });\n let h3 = this.modelId.toLowerCase().startsWith(`gemma-`), { contents: g3, systemInstruction: _3 } = Cn(e4, { isGemmaModel: h3 }), { tools: v3, toolConfig: y3, toolWarnings: b3 } = En({ tools: u3, toolChoice: d2, modelId: this.modelId });\n return { args: { generationConfig: { maxOutputTokens: t2, temperature: n2, topK: i3, topP: r2, frequencyPenalty: a4, presencePenalty: o3, stopSequences: s4, seed: l3, responseMimeType: c4?.type === `json` ? `application/json` : undefined, responseSchema: c4?.type === `json` && c4.schema != null && (m3?.structuredOutputs ?? true) ? X2(c4.schema) : undefined, ...m3?.audioTimestamp && { audioTimestamp: m3.audioTimestamp }, responseModalities: m3?.responseModalities, thinkingConfig: m3?.thinkingConfig }, contents: g3, systemInstruction: h3 ? undefined : _3, safetySettings: m3?.safetySettings, tools: v3, toolConfig: y3, cachedContent: m3?.cachedContent, labels: m3?.labels }, warnings: [...p3, ...b3] };\n }\n async doGenerate(e4) {\n let { args: t2, warnings: n2 } = await this.getArgs(e4), r2 = JSON.stringify(t2), i3 = M2(await V2(this.config.headers), e4.headers), { responseHeaders: a4, value: o3, rawValue: s4 } = await R2({ url: `${this.config.baseURL}/${wn(this.modelId)}:generateContent`, headers: i3, body: t2, failedResponseHandler: Y2, successfulResponseHandler: W2(Bn), abortSignal: e4.abortSignal, fetch: this.config.fetch }), c4 = o3.candidates[0], l3 = [], u3 = c4.content?.parts ?? [], d2 = o3.usageMetadata, f3;\n for (let e5 of u3)\n if (`executableCode` in e5 && e5.executableCode?.code) {\n let t3 = this.config.generateId();\n f3 = t3, l3.push({ type: `tool-call`, toolCallId: t3, toolName: `code_execution`, input: JSON.stringify(e5.executableCode), providerExecuted: true });\n } else\n `codeExecutionResult` in e5 && e5.codeExecutionResult ? (l3.push({ type: `tool-result`, toolCallId: f3, toolName: `code_execution`, result: { outcome: e5.codeExecutionResult.outcome, output: e5.codeExecutionResult.output }, providerExecuted: true }), f3 = undefined) : (`text` in e5) && e5.text != null && e5.text.length > 0 ? l3.push({ type: e5.thought === true ? `reasoning` : `text`, text: e5.text, providerMetadata: e5.thoughtSignature ? { google: { thoughtSignature: e5.thoughtSignature } } : undefined }) : (`functionCall` in e5) ? l3.push({ type: `tool-call`, toolCallId: this.config.generateId(), toolName: e5.functionCall.name, input: JSON.stringify(e5.functionCall.args), providerMetadata: e5.thoughtSignature ? { google: { thoughtSignature: e5.thoughtSignature } } : undefined }) : (`inlineData` in e5) && l3.push({ type: `file`, data: e5.inlineData.data, mediaType: e5.inlineData.mimeType });\n let p3 = Ln({ groundingMetadata: c4.groundingMetadata, generateId: this.config.generateId }) ?? [];\n for (let e5 of p3)\n l3.push(e5);\n return { content: l3, finishReason: Dn({ finishReason: c4.finishReason, hasToolCalls: l3.some((e5) => e5.type === `tool-call`) }), usage: { inputTokens: d2?.promptTokenCount ?? undefined, outputTokens: d2?.candidatesTokenCount ?? undefined, totalTokens: d2?.totalTokenCount ?? undefined, reasoningTokens: d2?.thoughtsTokenCount ?? undefined, cachedInputTokens: d2?.cachedContentTokenCount ?? undefined }, warnings: n2, providerMetadata: { google: { promptFeedback: o3.promptFeedback ?? null, groundingMetadata: c4.groundingMetadata ?? null, urlContextMetadata: c4.urlContextMetadata ?? null, safetyRatings: c4.safetyRatings ?? null, usageMetadata: d2 ?? null } }, request: { body: r2 }, response: { headers: a4, body: s4 } };\n }\n async doStream(e4) {\n let { args: t2, warnings: n2 } = await this.getArgs(e4), r2 = JSON.stringify(t2), i3 = M2(await V2(this.config.headers), e4.headers), { responseHeaders: a4, value: o3 } = await R2({ url: `${this.config.baseURL}/${wn(this.modelId)}:streamGenerateContent?alt=sse`, headers: i3, body: t2, failedResponseHandler: Y2, successfulResponseHandler: U2(Vn), abortSignal: e4.abortSignal, fetch: this.config.fetch }), s4 = `unknown`, c4 = { inputTokens: undefined, outputTokens: undefined, totalTokens: undefined }, l3, u3 = this.config.generateId, d2 = false, f3 = null, p3 = null, m3 = 0, h3 = new Set, g3;\n return { stream: o3.pipeThrough(new TransformStream({ start(e5) {\n e5.enqueue({ type: `stream-start`, warnings: n2 });\n }, transform(t3, n3) {\n if (e4.includeRawChunks && n3.enqueue({ type: `raw`, rawValue: t3.rawValue }), !t3.success) {\n n3.enqueue({ type: `error`, error: t3.error });\n return;\n }\n let r3 = t3.value, i4 = r3.usageMetadata;\n i4 != null && (c4.inputTokens = i4.promptTokenCount ?? undefined, c4.outputTokens = i4.candidatesTokenCount ?? undefined, c4.totalTokens = i4.totalTokenCount ?? undefined, c4.reasoningTokens = i4.thoughtsTokenCount ?? undefined, c4.cachedInputTokens = i4.cachedContentTokenCount ?? undefined);\n let a5 = r3.candidates?.[0];\n if (a5 == null)\n return;\n let o4 = a5.content, _3 = Ln({ groundingMetadata: a5.groundingMetadata, generateId: u3 });\n if (_3 != null)\n for (let e5 of _3)\n e5.sourceType === `url` && !h3.has(e5.url) && (h3.add(e5.url), n3.enqueue(e5));\n if (o4 != null) {\n let e5 = o4.parts ?? [];\n for (let t5 of e5)\n if (`executableCode` in t5 && t5.executableCode?.code) {\n let e6 = u3();\n g3 = e6, n3.enqueue({ type: `tool-call`, toolCallId: e6, toolName: `code_execution`, input: JSON.stringify(t5.executableCode), providerExecuted: true }), d2 = true;\n } else if (`codeExecutionResult` in t5 && t5.codeExecutionResult) {\n let e6 = g3;\n e6 && (n3.enqueue({ type: `tool-result`, toolCallId: e6, toolName: `code_execution`, result: { outcome: t5.codeExecutionResult.outcome, output: t5.codeExecutionResult.output }, providerExecuted: true }), g3 = undefined);\n } else\n `text` in t5 && t5.text != null && t5.text.length > 0 && (t5.thought === true ? (f3 !== null && (n3.enqueue({ type: `text-end`, id: f3 }), f3 = null), p3 === null && (p3 = String(m3++), n3.enqueue({ type: `reasoning-start`, id: p3, providerMetadata: t5.thoughtSignature ? { google: { thoughtSignature: t5.thoughtSignature } } : undefined })), n3.enqueue({ type: `reasoning-delta`, id: p3, delta: t5.text, providerMetadata: t5.thoughtSignature ? { google: { thoughtSignature: t5.thoughtSignature } } : undefined })) : (p3 !== null && (n3.enqueue({ type: `reasoning-end`, id: p3 }), p3 = null), f3 === null && (f3 = String(m3++), n3.enqueue({ type: `text-start`, id: f3, providerMetadata: t5.thoughtSignature ? { google: { thoughtSignature: t5.thoughtSignature } } : undefined })), n3.enqueue({ type: `text-delta`, id: f3, delta: t5.text, providerMetadata: t5.thoughtSignature ? { google: { thoughtSignature: t5.thoughtSignature } } : undefined })));\n let t4 = In(o4.parts);\n if (t4 != null)\n for (let e6 of t4)\n n3.enqueue({ type: `file`, mediaType: e6.inlineData.mimeType, data: e6.inlineData.data });\n let r4 = Fn({ parts: o4.parts, generateId: u3 });\n if (r4 != null)\n for (let e6 of r4)\n n3.enqueue({ type: `tool-input-start`, id: e6.toolCallId, toolName: e6.toolName, providerMetadata: e6.providerMetadata }), n3.enqueue({ type: `tool-input-delta`, id: e6.toolCallId, delta: e6.args, providerMetadata: e6.providerMetadata }), n3.enqueue({ type: `tool-input-end`, id: e6.toolCallId, providerMetadata: e6.providerMetadata }), n3.enqueue({ type: `tool-call`, toolCallId: e6.toolCallId, toolName: e6.toolName, input: e6.args, providerMetadata: e6.providerMetadata }), d2 = true;\n }\n a5.finishReason != null && (s4 = Dn({ finishReason: a5.finishReason, hasToolCalls: d2 }), l3 = { google: { promptFeedback: r3.promptFeedback ?? null, groundingMetadata: a5.groundingMetadata ?? null, urlContextMetadata: a5.urlContextMetadata ?? null, safetyRatings: a5.safetyRatings ?? null } }, i4 != null && (l3.google.usageMetadata = i4));\n }, flush(e5) {\n f3 !== null && e5.enqueue({ type: `text-end`, id: f3 }), p3 !== null && e5.enqueue({ type: `reasoning-end`, id: p3 }), e5.enqueue({ type: `finish`, finishReason: s4, usage: c4, providerMetadata: l3 });\n } })), response: { headers: a4 }, request: { body: r2 } };\n }\n};\nfunction Fn({ parts: e4, generateId: t2 }) {\n let n2 = e4?.filter((e5) => (`functionCall` in e5));\n return n2 == null || n2.length === 0 ? undefined : n2.map((e5) => ({ type: `tool-call`, toolCallId: t2(), toolName: e5.functionCall.name, args: JSON.stringify(e5.functionCall.args), providerMetadata: e5.thoughtSignature ? { google: { thoughtSignature: e5.thoughtSignature } } : undefined }));\n}\nfunction In(e4) {\n return e4?.filter((e5) => (`inlineData` in e5));\n}\nfunction Ln({ groundingMetadata: e4, generateId: t2 }) {\n return e4?.groundingChunks?.filter((e5) => e5.web != null).map((e5) => ({ type: `source`, sourceType: `url`, id: t2(), url: e5.web.uri, title: e5.web.title }));\n}\nvar Rn = exports_external.object({ parts: exports_external.array(exports_external.union([exports_external.object({ functionCall: exports_external.object({ name: exports_external.string(), args: exports_external.unknown() }), thoughtSignature: exports_external.string().nullish() }), exports_external.object({ inlineData: exports_external.object({ mimeType: exports_external.string(), data: exports_external.string() }) }), exports_external.object({ executableCode: exports_external.object({ language: exports_external.string(), code: exports_external.string() }).nullish(), codeExecutionResult: exports_external.object({ outcome: exports_external.string(), output: exports_external.string() }).nullish(), text: exports_external.string().nullish(), thought: exports_external.boolean().nullish(), thoughtSignature: exports_external.string().nullish() })])).nullish() });\nvar Z2 = exports_external.object({ category: exports_external.string().nullish(), probability: exports_external.string().nullish(), probabilityScore: exports_external.number().nullish(), severity: exports_external.string().nullish(), severityScore: exports_external.number().nullish(), blocked: exports_external.boolean().nullish() });\nvar zn = exports_external.object({ cachedContentTokenCount: exports_external.number().nullish(), thoughtsTokenCount: exports_external.number().nullish(), promptTokenCount: exports_external.number().nullish(), candidatesTokenCount: exports_external.number().nullish(), totalTokenCount: exports_external.number().nullish() });\nvar Bn = exports_external.object({ candidates: exports_external.array(exports_external.object({ content: Rn.nullish().or(exports_external.object({}).strict()), finishReason: exports_external.string().nullish(), safetyRatings: exports_external.array(Z2).nullish(), groundingMetadata: kn.nullish(), urlContextMetadata: Mn.nullish() })), usageMetadata: zn.nullish(), promptFeedback: exports_external.object({ blockReason: exports_external.string().nullish(), safetyRatings: exports_external.array(Z2).nullish() }).nullish() });\nvar Vn = exports_external.object({ candidates: exports_external.array(exports_external.object({ content: Rn.nullish(), finishReason: exports_external.string().nullish(), safetyRatings: exports_external.array(Z2).nullish(), groundingMetadata: kn.nullish(), urlContextMetadata: Mn.nullish() })).nullish(), usageMetadata: zn.nullish(), promptFeedback: exports_external.object({ blockReason: exports_external.string().nullish(), safetyRatings: exports_external.array(Z2).nullish() }).nullish() });\nvar Hn = B2({ id: `google.code_execution`, name: `code_execution`, inputSchema: exports_external.object({ language: exports_external.string().describe(`The programming language of the code.`), code: exports_external.string().describe(`The code to be executed.`) }), outputSchema: exports_external.object({ outcome: exports_external.string().describe(`The outcome of the execution (e.g., "OUTCOME_OK").`), output: exports_external.string().describe(`The output from the code execution.`) }) });\nvar Un = { googleSearch: An, urlContext: Nn, codeExecution: Hn };\nvar Wn = class {\n constructor(e4, t2, n2) {\n this.modelId = e4, this.settings = t2, this.config = n2, this.specificationVersion = `v2`;\n }\n get maxImagesPerCall() {\n return this.settings.maxImagesPerCall ?? 4;\n }\n get provider() {\n return this.config.provider;\n }\n async doGenerate(e4) {\n var t2;\n let { prompt: n2, n: r2 = 1, size: i3 = `1024x1024`, aspectRatio: a4 = `1:1`, seed: o3, providerOptions: s4, headers: c4, abortSignal: l3 } = e4, u3 = [];\n i3 != null && u3.push({ type: `unsupported-setting`, setting: `size`, details: "This model does not support the `size` option. Use `aspectRatio` instead." }), o3 != null && u3.push({ type: `unsupported-setting`, setting: `seed`, details: "This model does not support the `seed` option through this provider." });\n let d2 = await L2({ provider: `google`, providerOptions: s4, schema: Kn }), f3 = (t2 = this.config._internal)?.currentDate?.call(t2) ?? new Date, p3 = { sampleCount: r2 };\n a4 != null && (p3.aspectRatio = a4), d2 && Object.assign(p3, d2);\n let m3 = { instances: [{ prompt: n2 }], parameters: p3 }, { responseHeaders: h3, value: g3 } = await R2({ url: `${this.config.baseURL}/models/${this.modelId}:predict`, headers: M2(await V2(this.config.headers), c4), body: m3, failedResponseHandler: Y2, successfulResponseHandler: W2(Gn), abortSignal: l3, fetch: this.config.fetch });\n return { images: g3.predictions.map((e5) => e5.bytesBase64Encoded), warnings: u3 ?? [], providerMetadata: { google: { images: g3.predictions.map((e5) => ({})) } }, response: { timestamp: f3, modelId: this.modelId, headers: h3 } };\n }\n};\nvar Gn = exports_external.object({ predictions: exports_external.array(exports_external.object({ bytesBase64Encoded: exports_external.string() })).default([]) });\nvar Kn = exports_external.object({ personGeneration: exports_external.enum([`dont_allow`, `allow_adult`, `allow_all`]).nullish(), aspectRatio: exports_external.enum([`1:1`, `3:4`, `4:3`, `9:16`, `16:9`]).nullish() });\nfunction qn(e4 = {}) {\n let t2 = K2(e4.baseURL) ?? `https://generativelanguage.googleapis.com/v1beta`, n2 = () => P2({ "x-goog-api-key": I2({ apiKey: e4.apiKey, environmentVariableName: `GOOGLE_GENERATIVE_AI_API_KEY`, description: `Google Generative AI` }), ...e4.headers }, `ai-sdk/google/${gn}`), r2 = (r3) => new Pn(r3, { provider: `google.generative-ai`, baseURL: t2, headers: n2, generateId: e4.generateId ?? F2, supportedUrls: () => ({ "*": [RegExp(`^${t2}/files/.*$`), RegExp(`^https://(?:www\\\\.)?youtube\\\\.com/watch\\\\?v=[\\\\w-]+(?:&[\\\\w=&.-]*)?$`), RegExp(`^https://youtu\\\\.be/[\\\\w-]+(?:\\\\?[\\\\w=&.-]*)?$`)] }), fetch: e4.fetch }), i3 = (r3) => new yn(r3, { provider: `google.generative-ai`, baseURL: t2, headers: n2, fetch: e4.fetch }), a4 = (r3, i4 = {}) => new Wn(r3, i4, { provider: `google.generative-ai`, baseURL: t2, headers: n2, fetch: e4.fetch }), o3 = function(e5) {\n if (new.target)\n throw Error(`The Google Generative AI model function cannot be called with the new keyword.`);\n return r2(e5);\n };\n return o3.languageModel = r2, o3.chat = r2, o3.generativeAI = r2, o3.embedding = i3, o3.textEmbedding = i3, o3.textEmbeddingModel = i3, o3.image = a4, o3.imageModel = a4, o3.tools = Un, o3;\n}\nqn();\nvar Jn = exports_external.object({ error: exports_external.object({ message: exports_external.string(), type: exports_external.string().nullish(), param: exports_external.any().nullish(), code: exports_external.union([exports_external.string(), exports_external.number()]).nullish() }) });\nvar Q2 = H2({ errorSchema: Jn, errorToMessage: (e4) => e4.error.message });\nfunction Yn({ prompt: e4, systemMessageMode: t2 = `system` }) {\n let n2 = [], r2 = [];\n for (let { role: i3, content: a4 } of e4)\n switch (i3) {\n case `system`:\n switch (t2) {\n case `system`:\n n2.push({ role: `system`, content: a4 });\n break;\n case `developer`:\n n2.push({ role: `developer`, content: a4 });\n break;\n case `remove`:\n r2.push({ type: `other`, message: `system messages are removed for this model` });\n break;\n default: {\n let e5 = t2;\n throw Error(`Unsupported system message mode: ${e5}`);\n }\n }\n break;\n case `user`:\n if (a4.length === 1 && a4[0].type === `text`) {\n n2.push({ role: `user`, content: a4[0].text });\n break;\n }\n n2.push({ role: `user`, content: a4.map((e5, t3) => {\n switch (e5.type) {\n case `text`:\n return { type: `text`, text: e5.text };\n case `file`:\n if (e5.mediaType.startsWith(`image/`)) {\n let t4 = e5.mediaType === `image/*` ? `image/jpeg` : e5.mediaType;\n return { type: `image_url`, image_url: { url: e5.data instanceof URL ? e5.data.toString() : `data:${t4};base64,${G2(e5.data)}`, detail: e5.providerOptions?.openai?.imageDetail } };\n } else if (e5.mediaType.startsWith(`audio/`)) {\n if (e5.data instanceof URL)\n throw new j2({ functionality: `audio file parts with URLs` });\n switch (e5.mediaType) {\n case `audio/wav`:\n return { type: `input_audio`, input_audio: { data: G2(e5.data), format: `wav` } };\n case `audio/mp3`:\n case `audio/mpeg`:\n return { type: `input_audio`, input_audio: { data: G2(e5.data), format: `mp3` } };\n default:\n throw new j2({ functionality: `audio content parts with media type ${e5.mediaType}` });\n }\n } else if (e5.mediaType === `application/pdf`) {\n if (e5.data instanceof URL)\n throw new j2({ functionality: `PDF file parts with URLs` });\n return { type: `file`, file: typeof e5.data == `string` && e5.data.startsWith(`file-`) ? { file_id: e5.data } : { filename: e5.filename ?? `part-${t3}.pdf`, file_data: `data:application/pdf;base64,${G2(e5.data)}` } };\n } else\n throw new j2({ functionality: `file part media type ${e5.mediaType}` });\n }\n }) });\n break;\n case `assistant`: {\n let e5 = ``, t3 = [];\n for (let n3 of a4)\n switch (n3.type) {\n case `text`:\n e5 += n3.text;\n break;\n case `tool-call`:\n t3.push({ id: n3.toolCallId, type: `function`, function: { name: n3.toolName, arguments: JSON.stringify(n3.input) } });\n break;\n }\n n2.push({ role: `assistant`, content: e5, tool_calls: t3.length > 0 ? t3 : undefined });\n break;\n }\n case `tool`:\n for (let e5 of a4) {\n let t3 = e5.output, r3;\n switch (t3.type) {\n case `text`:\n case `error-text`:\n r3 = t3.value;\n break;\n case `content`:\n case `json`:\n case `error-json`:\n r3 = JSON.stringify(t3.value);\n break;\n }\n n2.push({ role: `tool`, tool_call_id: e5.toolCallId, content: r3 });\n }\n break;\n default: {\n let e5 = i3;\n throw Error(`Unsupported role: ${e5}`);\n }\n }\n return { messages: n2, warnings: r2 };\n}\nfunction Xn({ id: e4, model: t2, created: n2 }) {\n return { id: e4 ?? undefined, modelId: t2 ?? undefined, timestamp: n2 == null ? undefined : new Date(n2 * 1000) };\n}\nfunction Zn(e4) {\n switch (e4) {\n case `stop`:\n return `stop`;\n case `length`:\n return `length`;\n case `content_filter`:\n return `content-filter`;\n case `function_call`:\n case `tool_calls`:\n return `tool-calls`;\n default:\n return `unknown`;\n }\n}\nvar Qn = exports_external.object({ logitBias: exports_external.record(exports_external.coerce.number(), exports_external.number()).optional(), logprobs: exports_external.union([exports_external.boolean(), exports_external.number()]).optional(), parallelToolCalls: exports_external.boolean().optional(), user: exports_external.string().optional(), reasoningEffort: exports_external.enum([`minimal`, `low`, `medium`, `high`]).optional(), maxCompletionTokens: exports_external.number().optional(), store: exports_external.boolean().optional(), metadata: exports_external.record(exports_external.string().max(64), exports_external.string().max(512)).optional(), prediction: exports_external.record(exports_external.string(), exports_external.any()).optional(), structuredOutputs: exports_external.boolean().optional(), serviceTier: exports_external.enum([`auto`, `flex`, `priority`]).optional(), strictJsonSchema: exports_external.boolean().optional(), textVerbosity: exports_external.enum([`low`, `medium`, `high`]).optional(), promptCacheKey: exports_external.string().optional(), safetyIdentifier: exports_external.string().optional() });\nfunction $n({ tools: e4, toolChoice: t2, structuredOutputs: n2, strictJsonSchema: r2 }) {\n e4 = e4?.length ? e4 : undefined;\n let i3 = [];\n if (e4 == null)\n return { tools: undefined, toolChoice: undefined, toolWarnings: i3 };\n let a4 = [];\n for (let t3 of e4)\n switch (t3.type) {\n case `function`:\n a4.push({ type: `function`, function: { name: t3.name, description: t3.description, parameters: t3.inputSchema, strict: n2 ? r2 : undefined } });\n break;\n default:\n i3.push({ type: `unsupported-tool`, tool: t3 });\n break;\n }\n if (t2 == null)\n return { tools: a4, toolChoice: undefined, toolWarnings: i3 };\n let o3 = t2.type;\n switch (o3) {\n case `auto`:\n case `none`:\n case `required`:\n return { tools: a4, toolChoice: o3, toolWarnings: i3 };\n case `tool`:\n return { tools: a4, toolChoice: { type: `function`, function: { name: t2.toolName } }, toolWarnings: i3 };\n default:\n throw new j2({ functionality: `tool choice type: ${o3}` });\n }\n}\nvar er = class {\n constructor(e4, t2) {\n this.specificationVersion = `v2`, this.supportedUrls = { "image/*": [/^https?:\\/\\/.*$/] }, this.modelId = e4, this.config = t2;\n }\n get provider() {\n return this.config.provider;\n }\n async getArgs({ prompt: e4, maxOutputTokens: t2, temperature: n2, topP: r2, topK: i3, frequencyPenalty: a4, presencePenalty: o3, stopSequences: s4, responseFormat: c4, seed: l3, tools: u3, toolChoice: d2, providerOptions: f3 }) {\n let p3 = [], m3 = await L2({ provider: `openai`, providerOptions: f3, schema: Qn }) ?? {}, h3 = m3.structuredOutputs ?? true;\n i3 != null && p3.push({ type: `unsupported-setting`, setting: `topK` }), c4?.type === `json` && c4.schema != null && !h3 && p3.push({ type: `unsupported-setting`, setting: `responseFormat`, details: `JSON response format schema is only supported with structuredOutputs` });\n let { messages: g3, warnings: _3 } = Yn({ prompt: e4, systemMessageMode: sr(this.modelId) });\n p3.push(..._3);\n let v3 = m3.strictJsonSchema ?? false, y3 = { model: this.modelId, logit_bias: m3.logitBias, logprobs: m3.logprobs === true || typeof m3.logprobs == `number` ? true : undefined, top_logprobs: typeof m3.logprobs == `number` ? m3.logprobs : typeof m3.logprobs == `boolean` && m3.logprobs ? 0 : undefined, user: m3.user, parallel_tool_calls: m3.parallelToolCalls, max_tokens: t2, temperature: n2, top_p: r2, frequency_penalty: a4, presence_penalty: o3, response_format: c4?.type === `json` ? h3 && c4.schema != null ? { type: `json_schema`, json_schema: { schema: c4.schema, strict: v3, name: c4.name ?? `response`, description: c4.description } } : { type: `json_object` } : undefined, stop: s4, seed: l3, verbosity: m3.textVerbosity, max_completion_tokens: m3.maxCompletionTokens, store: m3.store, metadata: m3.metadata, prediction: m3.prediction, reasoning_effort: m3.reasoningEffort, service_tier: m3.serviceTier, prompt_cache_key: m3.promptCacheKey, safety_identifier: m3.safetyIdentifier, messages: g3 };\n ir(this.modelId) ? (y3.temperature != null && (y3.temperature = undefined, p3.push({ type: `unsupported-setting`, setting: `temperature`, details: `temperature is not supported for reasoning models` })), y3.top_p != null && (y3.top_p = undefined, p3.push({ type: `unsupported-setting`, setting: `topP`, details: `topP is not supported for reasoning models` })), y3.frequency_penalty != null && (y3.frequency_penalty = undefined, p3.push({ type: `unsupported-setting`, setting: `frequencyPenalty`, details: `frequencyPenalty is not supported for reasoning models` })), y3.presence_penalty != null && (y3.presence_penalty = undefined, p3.push({ type: `unsupported-setting`, setting: `presencePenalty`, details: `presencePenalty is not supported for reasoning models` })), y3.logit_bias != null && (y3.logit_bias = undefined, p3.push({ type: `other`, message: `logitBias is not supported for reasoning models` })), y3.logprobs != null && (y3.logprobs = undefined, p3.push({ type: `other`, message: `logprobs is not supported for reasoning models` })), y3.top_logprobs != null && (y3.top_logprobs = undefined, p3.push({ type: `other`, message: `topLogprobs is not supported for reasoning models` })), y3.max_tokens != null && (y3.max_completion_tokens ??= y3.max_tokens, y3.max_tokens = undefined)) : (this.modelId.startsWith(`gpt-4o-search-preview`) || this.modelId.startsWith(`gpt-4o-mini-search-preview`)) && y3.temperature != null && (y3.temperature = undefined, p3.push({ type: `unsupported-setting`, setting: `temperature`, details: `temperature is not supported for the search preview models and has been removed.` })), m3.serviceTier === `flex` && !ar(this.modelId) && (p3.push({ type: `unsupported-setting`, setting: `serviceTier`, details: `flex processing is only available for o3, o4-mini, and gpt-5 models` }), y3.service_tier = undefined), m3.serviceTier === `priority` && !or(this.modelId) && (p3.push({ type: `unsupported-setting`, setting: `serviceTier`, details: `priority processing is only available for supported models (gpt-4, gpt-5, gpt-5-mini, o3, o4-mini) and requires Enterprise access. gpt-5-nano is not supported` }), y3.service_tier = undefined);\n let { tools: b3, toolChoice: x4, toolWarnings: S3 } = $n({ tools: u3, toolChoice: d2, structuredOutputs: h3, strictJsonSchema: v3 });\n return { args: { ...y3, tools: b3, tool_choice: x4 }, warnings: [...p3, ...S3] };\n }\n async doGenerate(e4) {\n let { args: t2, warnings: n2 } = await this.getArgs(e4), { responseHeaders: r2, value: i3, rawValue: a4 } = await R2({ url: this.config.url({ path: `/chat/completions`, modelId: this.modelId }), headers: M2(this.config.headers(), e4.headers), body: t2, failedResponseHandler: Q2, successfulResponseHandler: W2(nr), abortSignal: e4.abortSignal, fetch: this.config.fetch }), o3 = i3.choices[0], s4 = [], c4 = o3.message.content;\n c4 != null && c4.length > 0 && s4.push({ type: `text`, text: c4 });\n for (let e5 of o3.message.tool_calls ?? [])\n s4.push({ type: `tool-call`, toolCallId: e5.id ?? F2(), toolName: e5.function.name, input: e5.function.arguments });\n for (let e5 of o3.message.annotations ?? [])\n s4.push({ type: `source`, sourceType: `url`, id: F2(), url: e5.url, title: e5.title });\n let l3 = i3.usage?.completion_tokens_details, u3 = i3.usage?.prompt_tokens_details, d2 = { openai: {} };\n return l3?.accepted_prediction_tokens != null && (d2.openai.acceptedPredictionTokens = l3?.accepted_prediction_tokens), l3?.rejected_prediction_tokens != null && (d2.openai.rejectedPredictionTokens = l3?.rejected_prediction_tokens), o3.logprobs?.content != null && (d2.openai.logprobs = o3.logprobs.content), { content: s4, finishReason: Zn(o3.finish_reason), usage: { inputTokens: i3.usage?.prompt_tokens ?? undefined, outputTokens: i3.usage?.completion_tokens ?? undefined, totalTokens: i3.usage?.total_tokens ?? undefined, reasoningTokens: l3?.reasoning_tokens ?? undefined, cachedInputTokens: u3?.cached_tokens ?? undefined }, request: { body: t2 }, response: { ...Xn(i3), headers: r2, body: a4 }, warnings: n2, providerMetadata: d2 };\n }\n async doStream(e4) {\n let { args: t2, warnings: n2 } = await this.getArgs(e4), r2 = { ...t2, stream: true, stream_options: { include_usage: true } }, { responseHeaders: i3, value: a4 } = await R2({ url: this.config.url({ path: `/chat/completions`, modelId: this.modelId }), headers: M2(this.config.headers(), e4.headers), body: r2, failedResponseHandler: Q2, successfulResponseHandler: U2(rr), abortSignal: e4.abortSignal, fetch: this.config.fetch }), o3 = [], s4 = `unknown`, c4 = { inputTokens: undefined, outputTokens: undefined, totalTokens: undefined }, l3 = true, u3 = false, d2 = { openai: {} };\n return { stream: a4.pipeThrough(new TransformStream({ start(e5) {\n e5.enqueue({ type: `stream-start`, warnings: n2 });\n }, transform(t3, n3) {\n if (e4.includeRawChunks && n3.enqueue({ type: `raw`, rawValue: t3.rawValue }), !t3.success) {\n s4 = `error`, n3.enqueue({ type: `error`, error: t3.error });\n return;\n }\n let r3 = t3.value;\n if (`error` in r3) {\n s4 = `error`, n3.enqueue({ type: `error`, error: r3.error });\n return;\n }\n l3 && (l3 = false, n3.enqueue({ type: `response-metadata`, ...Xn(r3) })), r3.usage != null && (c4.inputTokens = r3.usage.prompt_tokens ?? undefined, c4.outputTokens = r3.usage.completion_tokens ?? undefined, c4.totalTokens = r3.usage.total_tokens ?? undefined, c4.reasoningTokens = r3.usage.completion_tokens_details?.reasoning_tokens ?? undefined, c4.cachedInputTokens = r3.usage.prompt_tokens_details?.cached_tokens ?? undefined, r3.usage.completion_tokens_details?.accepted_prediction_tokens != null && (d2.openai.acceptedPredictionTokens = r3.usage.completion_tokens_details?.accepted_prediction_tokens), r3.usage.completion_tokens_details?.rejected_prediction_tokens != null && (d2.openai.rejectedPredictionTokens = r3.usage.completion_tokens_details?.rejected_prediction_tokens));\n let i4 = r3.choices[0];\n if (i4?.finish_reason != null && (s4 = Zn(i4.finish_reason)), i4?.logprobs?.content != null && (d2.openai.logprobs = i4.logprobs.content), i4?.delta == null)\n return;\n let a5 = i4.delta;\n if (a5.content != null && (u3 ||= (n3.enqueue({ type: `text-start`, id: `0` }), true), n3.enqueue({ type: `text-delta`, id: `0`, delta: a5.content })), a5.tool_calls != null)\n for (let e5 of a5.tool_calls) {\n let t4 = e5.index;\n if (o3[t4] == null) {\n if (e5.type !== `function`)\n throw new E2({ data: e5, message: `Expected \'function\' type.` });\n if (e5.id == null)\n throw new E2({ data: e5, message: `Expected \'id\' to be a string.` });\n if (e5.function?.name == null)\n throw new E2({ data: e5, message: `Expected \'function.name\' to be a string.` });\n n3.enqueue({ type: `tool-input-start`, id: e5.id, toolName: e5.function.name }), o3[t4] = { id: e5.id, type: `function`, function: { name: e5.function.name, arguments: e5.function.arguments ?? `` }, hasFinished: false };\n let r5 = o3[t4];\n r5.function?.name != null && r5.function?.arguments != null && (r5.function.arguments.length > 0 && n3.enqueue({ type: `tool-input-delta`, id: r5.id, delta: r5.function.arguments }), vt(r5.function.arguments) && (n3.enqueue({ type: `tool-input-end`, id: r5.id }), n3.enqueue({ type: `tool-call`, toolCallId: r5.id ?? F2(), toolName: r5.function.name, input: r5.function.arguments }), r5.hasFinished = true));\n continue;\n }\n let r4 = o3[t4];\n r4.hasFinished || (e5.function?.arguments != null && (r4.function.arguments += e5.function?.arguments ?? ``), n3.enqueue({ type: `tool-input-delta`, id: r4.id, delta: e5.function.arguments ?? `` }), r4.function?.name != null && r4.function?.arguments != null && vt(r4.function.arguments) && (n3.enqueue({ type: `tool-input-end`, id: r4.id }), n3.enqueue({ type: `tool-call`, toolCallId: r4.id ?? F2(), toolName: r4.function.name, input: r4.function.arguments }), r4.hasFinished = true));\n }\n if (a5.annotations != null)\n for (let e5 of a5.annotations)\n n3.enqueue({ type: `source`, sourceType: `url`, id: F2(), url: e5.url, title: e5.title });\n }, flush(e5) {\n u3 && e5.enqueue({ type: `text-end`, id: `0` }), e5.enqueue({ type: `finish`, finishReason: s4, usage: c4, ...d2 == null ? {} : { providerMetadata: d2 } });\n } })), request: { body: r2 }, response: { headers: i3 } };\n }\n};\nvar tr = exports_external.object({ prompt_tokens: exports_external.number().nullish(), completion_tokens: exports_external.number().nullish(), total_tokens: exports_external.number().nullish(), prompt_tokens_details: exports_external.object({ cached_tokens: exports_external.number().nullish() }).nullish(), completion_tokens_details: exports_external.object({ reasoning_tokens: exports_external.number().nullish(), accepted_prediction_tokens: exports_external.number().nullish(), rejected_prediction_tokens: exports_external.number().nullish() }).nullish() }).nullish();\nvar nr = exports_external.object({ id: exports_external.string().nullish(), created: exports_external.number().nullish(), model: exports_external.string().nullish(), choices: exports_external.array(exports_external.object({ message: exports_external.object({ role: exports_external.literal(`assistant`).nullish(), content: exports_external.string().nullish(), tool_calls: exports_external.array(exports_external.object({ id: exports_external.string().nullish(), type: exports_external.literal(`function`), function: exports_external.object({ name: exports_external.string(), arguments: exports_external.string() }) })).nullish(), annotations: exports_external.array(exports_external.object({ type: exports_external.literal(`url_citation`), start_index: exports_external.number(), end_index: exports_external.number(), url: exports_external.string(), title: exports_external.string() })).nullish() }), index: exports_external.number(), logprobs: exports_external.object({ content: exports_external.array(exports_external.object({ token: exports_external.string(), logprob: exports_external.number(), top_logprobs: exports_external.array(exports_external.object({ token: exports_external.string(), logprob: exports_external.number() })) })).nullish() }).nullish(), finish_reason: exports_external.string().nullish() })), usage: tr });\nvar rr = exports_external.union([exports_external.object({ id: exports_external.string().nullish(), created: exports_external.number().nullish(), model: exports_external.string().nullish(), choices: exports_external.array(exports_external.object({ delta: exports_external.object({ role: exports_external.enum([`assistant`]).nullish(), content: exports_external.string().nullish(), tool_calls: exports_external.array(exports_external.object({ index: exports_external.number(), id: exports_external.string().nullish(), type: exports_external.literal(`function`).nullish(), function: exports_external.object({ name: exports_external.string().nullish(), arguments: exports_external.string().nullish() }) })).nullish(), annotations: exports_external.array(exports_external.object({ type: exports_external.literal(`url_citation`), start_index: exports_external.number(), end_index: exports_external.number(), url: exports_external.string(), title: exports_external.string() })).nullish() }).nullish(), logprobs: exports_external.object({ content: exports_external.array(exports_external.object({ token: exports_external.string(), logprob: exports_external.number(), top_logprobs: exports_external.array(exports_external.object({ token: exports_external.string(), logprob: exports_external.number() })) })).nullish() }).nullish(), finish_reason: exports_external.string().nullish(), index: exports_external.number() })), usage: tr }), Jn]);\nfunction ir(e4) {\n return (e4.startsWith(`o`) || e4.startsWith(`gpt-5`)) && !e4.startsWith(`gpt-5-chat`);\n}\nfunction ar(e4) {\n return e4.startsWith(`o3`) || e4.startsWith(`o4-mini`) || e4.startsWith(`gpt-5`) && !e4.startsWith(`gpt-5-chat`);\n}\nfunction or(e4) {\n return e4.startsWith(`gpt-4`) || e4.startsWith(`gpt-5-mini`) || e4.startsWith(`gpt-5`) && !e4.startsWith(`gpt-5-nano`) && !e4.startsWith(`gpt-5-chat`) || e4.startsWith(`o3`) || e4.startsWith(`o4-mini`);\n}\nfunction sr(e4) {\n return ir(e4) ? cr[e4]?.systemMessageMode ?? `developer` : `system`;\n}\nvar cr = { "o1-mini": { systemMessageMode: `remove` }, "o1-mini-2024-09-12": { systemMessageMode: `remove` }, "o1-preview": { systemMessageMode: `remove` }, "o1-preview-2024-09-12": { systemMessageMode: `remove` }, o3: { systemMessageMode: `developer` }, "o3-2025-04-16": { systemMessageMode: `developer` }, "o3-mini": { systemMessageMode: `developer` }, "o3-mini-2025-01-31": { systemMessageMode: `developer` }, "o4-mini": { systemMessageMode: `developer` }, "o4-mini-2025-04-16": { systemMessageMode: `developer` } };\nfunction lr({ prompt: e4, user: t2 = `user`, assistant: n2 = `assistant` }) {\n let r2 = ``;\n e4[0].role === `system` && (r2 += `${e4[0].content}\n\n`, e4 = e4.slice(1));\n for (let { role: i3, content: a4 } of e4)\n switch (i3) {\n case `system`:\n throw new ye({ message: "Unexpected system message in prompt: ${content}", prompt: e4 });\n case `user`: {\n let e5 = a4.map((e6) => {\n switch (e6.type) {\n case `text`:\n return e6.text;\n }\n }).filter(Boolean).join(``);\n r2 += `${t2}:\n${e5}\n\n`;\n break;\n }\n case `assistant`: {\n let e5 = a4.map((e6) => {\n switch (e6.type) {\n case `text`:\n return e6.text;\n case `tool-call`:\n throw new j2({ functionality: `tool-call messages` });\n }\n }).join(``);\n r2 += `${n2}:\n${e5}\n\n`;\n break;\n }\n case `tool`:\n throw new j2({ functionality: `tool messages` });\n default: {\n let e5 = i3;\n throw Error(`Unsupported role: ${e5}`);\n }\n }\n return r2 += `${n2}:\n`, { prompt: r2, stopSequences: [`\n${t2}:`] };\n}\nfunction ur({ id: e4, model: t2, created: n2 }) {\n return { id: e4 ?? undefined, modelId: t2 ?? undefined, timestamp: n2 == null ? undefined : new Date(n2 * 1000) };\n}\nfunction dr(e4) {\n switch (e4) {\n case `stop`:\n return `stop`;\n case `length`:\n return `length`;\n case `content_filter`:\n return `content-filter`;\n case `function_call`:\n case `tool_calls`:\n return `tool-calls`;\n default:\n return `unknown`;\n }\n}\nvar fr = exports_external.object({ echo: exports_external.boolean().optional(), logitBias: exports_external.record(exports_external.string(), exports_external.number()).optional(), suffix: exports_external.string().optional(), user: exports_external.string().optional(), logprobs: exports_external.union([exports_external.boolean(), exports_external.number()]).optional() });\nvar pr = class {\n constructor(e4, t2) {\n this.specificationVersion = `v2`, this.supportedUrls = {}, this.modelId = e4, this.config = t2;\n }\n get providerOptionsName() {\n return this.config.provider.split(`.`)[0].trim();\n }\n get provider() {\n return this.config.provider;\n }\n async getArgs({ prompt: e4, maxOutputTokens: t2, temperature: n2, topP: r2, topK: i3, frequencyPenalty: a4, presencePenalty: o3, stopSequences: s4, responseFormat: c4, tools: l3, toolChoice: u3, seed: d2, providerOptions: f3 }) {\n let p3 = [], m3 = { ...await L2({ provider: `openai`, providerOptions: f3, schema: fr }), ...await L2({ provider: this.providerOptionsName, providerOptions: f3, schema: fr }) };\n i3 != null && p3.push({ type: `unsupported-setting`, setting: `topK` }), l3?.length && p3.push({ type: `unsupported-setting`, setting: `tools` }), u3 != null && p3.push({ type: `unsupported-setting`, setting: `toolChoice` }), c4 != null && c4.type !== `text` && p3.push({ type: `unsupported-setting`, setting: `responseFormat`, details: `JSON response format is not supported.` });\n let { prompt: h3, stopSequences: g3 } = lr({ prompt: e4 }), _3 = [...g3 ?? [], ...s4 ?? []];\n return { args: { model: this.modelId, echo: m3.echo, logit_bias: m3.logitBias, logprobs: m3?.logprobs === true ? 0 : m3?.logprobs === false ? undefined : m3?.logprobs, suffix: m3.suffix, user: m3.user, max_tokens: t2, temperature: n2, top_p: r2, frequency_penalty: a4, presence_penalty: o3, seed: d2, prompt: h3, stop: _3.length > 0 ? _3 : undefined }, warnings: p3 };\n }\n async doGenerate(e4) {\n let { args: t2, warnings: n2 } = await this.getArgs(e4), { responseHeaders: r2, value: i3, rawValue: a4 } = await R2({ url: this.config.url({ path: `/completions`, modelId: this.modelId }), headers: M2(this.config.headers(), e4.headers), body: t2, failedResponseHandler: Q2, successfulResponseHandler: W2(hr), abortSignal: e4.abortSignal, fetch: this.config.fetch }), o3 = i3.choices[0], s4 = { openai: {} };\n return o3.logprobs != null && (s4.openai.logprobs = o3.logprobs), { content: [{ type: `text`, text: o3.text }], usage: { inputTokens: i3.usage?.prompt_tokens, outputTokens: i3.usage?.completion_tokens, totalTokens: i3.usage?.total_tokens }, finishReason: dr(o3.finish_reason), request: { body: t2 }, response: { ...ur(i3), headers: r2, body: a4 }, providerMetadata: s4, warnings: n2 };\n }\n async doStream(e4) {\n let { args: t2, warnings: n2 } = await this.getArgs(e4), r2 = { ...t2, stream: true, stream_options: { include_usage: true } }, { responseHeaders: i3, value: a4 } = await R2({ url: this.config.url({ path: `/completions`, modelId: this.modelId }), headers: M2(this.config.headers(), e4.headers), body: r2, failedResponseHandler: Q2, successfulResponseHandler: U2(gr), abortSignal: e4.abortSignal, fetch: this.config.fetch }), o3 = `unknown`, s4 = { openai: {} }, c4 = { inputTokens: undefined, outputTokens: undefined, totalTokens: undefined }, l3 = true;\n return { stream: a4.pipeThrough(new TransformStream({ start(e5) {\n e5.enqueue({ type: `stream-start`, warnings: n2 });\n }, transform(t3, n3) {\n if (e4.includeRawChunks && n3.enqueue({ type: `raw`, rawValue: t3.rawValue }), !t3.success) {\n o3 = `error`, n3.enqueue({ type: `error`, error: t3.error });\n return;\n }\n let r3 = t3.value;\n if (`error` in r3) {\n o3 = `error`, n3.enqueue({ type: `error`, error: r3.error });\n return;\n }\n l3 && (l3 = false, n3.enqueue({ type: `response-metadata`, ...ur(r3) }), n3.enqueue({ type: `text-start`, id: `0` })), r3.usage != null && (c4.inputTokens = r3.usage.prompt_tokens, c4.outputTokens = r3.usage.completion_tokens, c4.totalTokens = r3.usage.total_tokens);\n let i4 = r3.choices[0];\n i4?.finish_reason != null && (o3 = dr(i4.finish_reason)), i4?.logprobs != null && (s4.openai.logprobs = i4.logprobs), i4?.text != null && i4.text.length > 0 && n3.enqueue({ type: `text-delta`, id: `0`, delta: i4.text });\n }, flush(e5) {\n l3 || e5.enqueue({ type: `text-end`, id: `0` }), e5.enqueue({ type: `finish`, finishReason: o3, providerMetadata: s4, usage: c4 });\n } })), request: { body: r2 }, response: { headers: i3 } };\n }\n};\nvar mr = exports_external.object({ prompt_tokens: exports_external.number(), completion_tokens: exports_external.number(), total_tokens: exports_external.number() });\nvar hr = exports_external.object({ id: exports_external.string().nullish(), created: exports_external.number().nullish(), model: exports_external.string().nullish(), choices: exports_external.array(exports_external.object({ text: exports_external.string(), finish_reason: exports_external.string(), logprobs: exports_external.object({ tokens: exports_external.array(exports_external.string()), token_logprobs: exports_external.array(exports_external.number()), top_logprobs: exports_external.array(exports_external.record(exports_external.string(), exports_external.number())).nullish() }).nullish() })), usage: mr.nullish() });\nvar gr = exports_external.union([exports_external.object({ id: exports_external.string().nullish(), created: exports_external.number().nullish(), model: exports_external.string().nullish(), choices: exports_external.array(exports_external.object({ text: exports_external.string(), finish_reason: exports_external.string().nullish(), index: exports_external.number(), logprobs: exports_external.object({ tokens: exports_external.array(exports_external.string()), token_logprobs: exports_external.array(exports_external.number()), top_logprobs: exports_external.array(exports_external.record(exports_external.string(), exports_external.number())).nullish() }).nullish() })), usage: mr.nullish() }), Jn]);\nvar _r = exports_external.object({ dimensions: exports_external.number().optional(), user: exports_external.string().optional() });\nvar vr = class {\n constructor(e4, t2) {\n this.specificationVersion = `v2`, this.maxEmbeddingsPerCall = 2048, this.supportsParallelCalls = true, this.modelId = e4, this.config = t2;\n }\n get provider() {\n return this.config.provider;\n }\n async doEmbed({ values: e4, headers: t2, abortSignal: n2, providerOptions: r2 }) {\n if (e4.length > this.maxEmbeddingsPerCall)\n throw new Be({ provider: this.provider, modelId: this.modelId, maxEmbeddingsPerCall: this.maxEmbeddingsPerCall, values: e4 });\n let i3 = await L2({ provider: `openai`, providerOptions: r2, schema: _r }) ?? {}, { responseHeaders: a4, value: o3, rawValue: s4 } = await R2({ url: this.config.url({ path: `/embeddings`, modelId: this.modelId }), headers: M2(this.config.headers(), t2), body: { model: this.modelId, input: e4, encoding_format: `float`, dimensions: i3.dimensions, user: i3.user }, failedResponseHandler: Q2, successfulResponseHandler: W2(yr), abortSignal: n2, fetch: this.config.fetch });\n return { embeddings: o3.data.map((e5) => e5.embedding), usage: o3.usage ? { tokens: o3.usage.prompt_tokens } : undefined, response: { headers: a4, body: s4 } };\n }\n};\nvar yr = exports_external.object({ data: exports_external.array(exports_external.object({ embedding: exports_external.array(exports_external.number()) })), usage: exports_external.object({ prompt_tokens: exports_external.number() }).nullish() });\nvar br = { "dall-e-3": 1, "dall-e-2": 10, "gpt-image-1": 10 };\nvar xr = new Set([`gpt-image-1`]);\nvar Sr = class {\n constructor(e4, t2) {\n this.modelId = e4, this.config = t2, this.specificationVersion = `v2`;\n }\n get maxImagesPerCall() {\n return br[this.modelId] ?? 1;\n }\n get provider() {\n return this.config.provider;\n }\n async doGenerate({ prompt: e4, n: t2, size: n2, aspectRatio: r2, seed: i3, providerOptions: a4, headers: o3, abortSignal: s4 }) {\n var c4;\n let l3 = [];\n r2 != null && l3.push({ type: `unsupported-setting`, setting: `aspectRatio`, details: "This model does not support aspect ratio. Use `size` instead." }), i3 != null && l3.push({ type: `unsupported-setting`, setting: `seed` });\n let u3 = (c4 = this.config._internal)?.currentDate?.call(c4) ?? new Date, { value: d2, responseHeaders: f3 } = await R2({ url: this.config.url({ path: `/images/generations`, modelId: this.modelId }), headers: M2(this.config.headers(), o3), body: { model: this.modelId, prompt: e4, n: t2, size: n2, ...a4.openai ?? {}, ...xr.has(this.modelId) ? {} : { response_format: `b64_json` } }, failedResponseHandler: Q2, successfulResponseHandler: W2(Cr), abortSignal: s4, fetch: this.config.fetch });\n return { images: d2.data.map((e5) => e5.b64_json), warnings: l3, response: { timestamp: u3, modelId: this.modelId, headers: f3 }, providerMetadata: { openai: { images: d2.data.map((e5) => e5.revised_prompt ? { revisedPrompt: e5.revised_prompt } : null) } } };\n }\n};\nvar Cr = exports_external.object({ data: exports_external.array(exports_external.object({ b64_json: exports_external.string(), revised_prompt: exports_external.string().optional() })) });\nvar wr = exports_external.object({ code: exports_external.string().nullish(), containerId: exports_external.string() });\nvar Tr = exports_external.object({ outputs: exports_external.array(exports_external.discriminatedUnion(`type`, [exports_external.object({ type: exports_external.literal(`logs`), logs: exports_external.string() }), exports_external.object({ type: exports_external.literal(`image`), url: exports_external.string() })])).nullish() });\nvar Er = exports_external.object({ container: exports_external.union([exports_external.string(), exports_external.object({ fileIds: exports_external.array(exports_external.string()).optional() })]).optional() });\nvar Dr = B2({ id: `openai.code_interpreter`, name: `code_interpreter`, inputSchema: wr, outputSchema: Tr });\nvar Or = (e4 = {}) => Dr(e4);\nvar kr = exports_external.object({ key: exports_external.string(), type: exports_external.enum([`eq`, `ne`, `gt`, `gte`, `lt`, `lte`]), value: exports_external.union([exports_external.string(), exports_external.number(), exports_external.boolean()]) });\nvar Ar = exports_external.object({ type: exports_external.enum([`and`, `or`]), filters: exports_external.array(exports_external.union([kr, exports_external.lazy(() => Ar)])) });\nvar jr = exports_external.object({ vectorStoreIds: exports_external.array(exports_external.string()), maxNumResults: exports_external.number().optional(), ranking: exports_external.object({ ranker: exports_external.string().optional(), scoreThreshold: exports_external.number().optional() }).optional(), filters: exports_external.union([kr, Ar]).optional() });\nvar Mr = exports_external.object({ queries: exports_external.array(exports_external.string()), results: exports_external.array(exports_external.object({ attributes: exports_external.record(exports_external.string(), exports_external.unknown()), fileId: exports_external.string(), filename: exports_external.string(), score: exports_external.number(), text: exports_external.string() })).nullable() });\nvar Nr = B2({ id: `openai.file_search`, name: `file_search`, inputSchema: exports_external.object({}), outputSchema: Mr });\nvar Pr = exports_external.object({ background: exports_external.enum([`auto`, `opaque`, `transparent`]).optional(), inputFidelity: exports_external.enum([`low`, `high`]).optional(), inputImageMask: exports_external.object({ fileId: exports_external.string().optional(), imageUrl: exports_external.string().optional() }).optional(), model: exports_external.string().optional(), moderation: exports_external.enum([`auto`]).optional(), outputCompression: exports_external.number().int().min(0).max(100).optional(), outputFormat: exports_external.enum([`png`, `jpeg`, `webp`]).optional(), quality: exports_external.enum([`auto`, `low`, `medium`, `high`]).optional(), size: exports_external.enum([`1024x1024`, `1024x1536`, `1536x1024`, `auto`]).optional() }).strict();\nvar Fr = exports_external.object({ result: exports_external.string() });\nvar Ir = B2({ id: `openai.image_generation`, name: `image_generation`, inputSchema: exports_external.object({}), outputSchema: Fr });\nvar Lr = (e4 = {}) => Ir(e4);\nvar Rr = exports_external.object({ action: exports_external.object({ type: exports_external.literal(`exec`), command: exports_external.array(exports_external.string()), timeoutMs: exports_external.number().optional(), user: exports_external.string().optional(), workingDirectory: exports_external.string().optional(), env: exports_external.record(exports_external.string(), exports_external.string()).optional() }) });\nvar zr = exports_external.object({ output: exports_external.string() });\nvar Br = B2({ id: `openai.local_shell`, name: `local_shell`, inputSchema: Rr, outputSchema: zr });\nvar Vr = exports_external.object({ filters: exports_external.object({ allowedDomains: exports_external.array(exports_external.string()).optional() }).optional(), searchContextSize: exports_external.enum([`low`, `medium`, `high`]).optional(), userLocation: exports_external.object({ type: exports_external.literal(`approximate`), country: exports_external.string().optional(), city: exports_external.string().optional(), region: exports_external.string().optional(), timezone: exports_external.string().optional() }).optional() });\nvar Hr = z2({ id: `openai.web_search`, name: `web_search`, inputSchema: exports_external.object({ action: exports_external.discriminatedUnion(`type`, [exports_external.object({ type: exports_external.literal(`search`), query: exports_external.string().nullish() }), exports_external.object({ type: exports_external.literal(`open_page`), url: exports_external.string() }), exports_external.object({ type: exports_external.literal(`find`), url: exports_external.string(), pattern: exports_external.string() })]).nullish() }) });\nvar Ur = (e4 = {}) => Hr(e4);\nvar Wr = exports_external.object({ searchContextSize: exports_external.enum([`low`, `medium`, `high`]).optional(), userLocation: exports_external.object({ type: exports_external.literal(`approximate`), country: exports_external.string().optional(), city: exports_external.string().optional(), region: exports_external.string().optional(), timezone: exports_external.string().optional() }).optional() });\nvar Gr = z2({ id: `openai.web_search_preview`, name: `web_search_preview`, inputSchema: exports_external.object({ action: exports_external.discriminatedUnion(`type`, [exports_external.object({ type: exports_external.literal(`search`), query: exports_external.string().nullish() }), exports_external.object({ type: exports_external.literal(`open_page`), url: exports_external.string() }), exports_external.object({ type: exports_external.literal(`find`), url: exports_external.string(), pattern: exports_external.string() })]).nullish() }) });\nvar Kr = { codeInterpreter: Or, fileSearch: Nr, imageGeneration: Lr, localShell: Br, webSearchPreview: Gr, webSearch: Ur };\nfunction qr(e4, t2) {\n return t2 ? t2.some((t3) => e4.startsWith(t3)) : false;\n}\nasync function Jr({ prompt: e4, systemMessageMode: t2, fileIdPrefixes: n2, store: r2, hasLocalShellTool: i3 = false }) {\n let a4 = [], o3 = [];\n for (let { role: s4, content: c4 } of e4)\n switch (s4) {\n case `system`:\n switch (t2) {\n case `system`:\n a4.push({ role: `system`, content: c4 });\n break;\n case `developer`:\n a4.push({ role: `developer`, content: c4 });\n break;\n case `remove`:\n o3.push({ type: `other`, message: `system messages are removed for this model` });\n break;\n default: {\n let e5 = t2;\n throw Error(`Unsupported system message mode: ${e5}`);\n }\n }\n break;\n case `user`:\n a4.push({ role: `user`, content: c4.map((e5, t3) => {\n switch (e5.type) {\n case `text`:\n return { type: `input_text`, text: e5.text };\n case `file`:\n if (e5.mediaType.startsWith(`image/`)) {\n let t4 = e5.mediaType === `image/*` ? `image/jpeg` : e5.mediaType;\n return { type: `input_image`, ...e5.data instanceof URL ? { image_url: e5.data.toString() } : typeof e5.data == `string` && qr(e5.data, n2) ? { file_id: e5.data } : { image_url: `data:${t4};base64,${G2(e5.data)}` }, detail: e5.providerOptions?.openai?.imageDetail };\n } else if (e5.mediaType === `application/pdf`)\n return e5.data instanceof URL ? { type: `input_file`, file_url: e5.data.toString() } : { type: `input_file`, ...typeof e5.data == `string` && qr(e5.data, n2) ? { file_id: e5.data } : { filename: e5.filename ?? `part-${t3}.pdf`, file_data: `data:application/pdf;base64,${G2(e5.data)}` } };\n else\n throw new j2({ functionality: `file part media type ${e5.mediaType}` });\n }\n }) });\n break;\n case `assistant`: {\n let e5 = {}, t3 = {};\n for (let n3 of c4)\n switch (n3.type) {\n case `text`:\n a4.push({ role: `assistant`, content: [{ type: `output_text`, text: n3.text }], id: n3.providerOptions?.openai?.itemId ?? undefined });\n break;\n case `tool-call`:\n if (t3[n3.toolCallId] = n3, n3.providerExecuted)\n break;\n if (i3 && n3.toolName === `local_shell`) {\n let e6 = Rr.parse(n3.input);\n a4.push({ type: `local_shell_call`, call_id: n3.toolCallId, id: n3.providerOptions?.openai?.itemId ?? undefined, action: { type: `exec`, command: e6.action.command, timeout_ms: e6.action.timeoutMs, user: e6.action.user, working_directory: e6.action.workingDirectory, env: e6.action.env } });\n break;\n }\n a4.push({ type: `function_call`, call_id: n3.toolCallId, name: n3.toolName, arguments: JSON.stringify(n3.input), id: n3.providerOptions?.openai?.itemId ?? undefined });\n break;\n case `tool-result`:\n r2 ? a4.push({ type: `item_reference`, id: n3.toolCallId }) : o3.push({ type: `other`, message: `Results for OpenAI tool ${n3.toolName} are not sent to the API when store is false` });\n break;\n case `reasoning`: {\n let t4 = await L2({ provider: `openai`, providerOptions: n3.providerOptions, schema: Yr }), i4 = t4?.itemId;\n if (i4 != null) {\n let s5 = e5[i4];\n if (r2)\n s5 === undefined && (a4.push({ type: `item_reference`, id: i4 }), e5[i4] = { type: `reasoning`, id: i4, summary: [] });\n else {\n let r3 = [];\n n3.text.length > 0 ? r3.push({ type: `summary_text`, text: n3.text }) : s5 !== undefined && o3.push({ type: `other`, message: `Cannot append empty reasoning part to existing reasoning sequence. Skipping reasoning part: ${JSON.stringify(n3)}.` }), s5 === undefined ? (e5[i4] = { type: `reasoning`, id: i4, encrypted_content: t4?.reasoningEncryptedContent, summary: r3 }, a4.push(e5[i4])) : s5.summary.push(...r3);\n }\n } else\n o3.push({ type: `other`, message: `Non-OpenAI reasoning parts are not supported. Skipping reasoning part: ${JSON.stringify(n3)}.` });\n break;\n }\n }\n break;\n }\n case `tool`:\n for (let e5 of c4) {\n let t3 = e5.output;\n if (i3 && e5.toolName === `local_shell` && t3.type === `json`) {\n a4.push({ type: `local_shell_call_output`, call_id: e5.toolCallId, output: zr.parse(t3.value).output });\n break;\n }\n let n3;\n switch (t3.type) {\n case `text`:\n case `error-text`:\n n3 = t3.value;\n break;\n case `content`:\n case `json`:\n case `error-json`:\n n3 = JSON.stringify(t3.value);\n break;\n }\n a4.push({ type: `function_call_output`, call_id: e5.toolCallId, output: n3 });\n }\n break;\n default: {\n let e5 = s4;\n throw Error(`Unsupported role: ${e5}`);\n }\n }\n return { input: a4, warnings: o3 };\n}\nvar Yr = exports_external.object({ itemId: exports_external.string().nullish(), reasoningEncryptedContent: exports_external.string().nullish() });\nfunction Xr({ finishReason: e4, hasFunctionCall: t2 }) {\n switch (e4) {\n case undefined:\n case null:\n return t2 ? `tool-calls` : `stop`;\n case `max_output_tokens`:\n return `length`;\n case `content_filter`:\n return `content-filter`;\n default:\n return t2 ? `tool-calls` : `unknown`;\n }\n}\nfunction Zr({ tools: e4, toolChoice: t2, strictJsonSchema: n2 }) {\n e4 = e4?.length ? e4 : undefined;\n let r2 = [];\n if (e4 == null)\n return { tools: undefined, toolChoice: undefined, toolWarnings: r2 };\n let i3 = [];\n for (let t3 of e4)\n switch (t3.type) {\n case `function`:\n i3.push({ type: `function`, name: t3.name, description: t3.description, parameters: t3.inputSchema, strict: n2 });\n break;\n case `provider-defined`:\n switch (t3.id) {\n case `openai.file_search`: {\n let e5 = jr.parse(t3.args);\n i3.push({ type: `file_search`, vector_store_ids: e5.vectorStoreIds, max_num_results: e5.maxNumResults, ranking_options: e5.ranking ? { ranker: e5.ranking.ranker, score_threshold: e5.ranking.scoreThreshold } : undefined, filters: e5.filters });\n break;\n }\n case `openai.local_shell`:\n i3.push({ type: `local_shell` });\n break;\n case `openai.web_search_preview`: {\n let e5 = Wr.parse(t3.args);\n i3.push({ type: `web_search_preview`, search_context_size: e5.searchContextSize, user_location: e5.userLocation });\n break;\n }\n case `openai.web_search`: {\n let e5 = Vr.parse(t3.args);\n i3.push({ type: `web_search`, filters: e5.filters == null ? undefined : { allowed_domains: e5.filters.allowedDomains }, search_context_size: e5.searchContextSize, user_location: e5.userLocation });\n break;\n }\n case `openai.code_interpreter`: {\n let e5 = Er.parse(t3.args);\n i3.push({ type: `code_interpreter`, container: e5.container == null ? { type: `auto`, file_ids: undefined } : typeof e5.container == `string` ? e5.container : { type: `auto`, file_ids: e5.container.fileIds } });\n break;\n }\n case `openai.image_generation`: {\n let e5 = Pr.parse(t3.args);\n i3.push({ type: `image_generation`, background: e5.background, input_fidelity: e5.inputFidelity, input_image_mask: e5.inputImageMask ? { file_id: e5.inputImageMask.fileId, image_url: e5.inputImageMask.imageUrl } : undefined, model: e5.model, size: e5.size, quality: e5.quality, moderation: e5.moderation, output_format: e5.outputFormat, output_compression: e5.outputCompression });\n break;\n }\n }\n break;\n default:\n r2.push({ type: `unsupported-tool`, tool: t3 });\n break;\n }\n if (t2 == null)\n return { tools: i3, toolChoice: undefined, toolWarnings: r2 };\n let a4 = t2.type;\n switch (a4) {\n case `auto`:\n case `none`:\n case `required`:\n return { tools: i3, toolChoice: a4, toolWarnings: r2 };\n case `tool`:\n return { tools: i3, toolChoice: t2.toolName === `code_interpreter` || t2.toolName === `file_search` || t2.toolName === `image_generation` || t2.toolName === `web_search_preview` || t2.toolName === `web_search` ? { type: t2.toolName } : { type: `function`, name: t2.toolName }, toolWarnings: r2 };\n default:\n throw new j2({ functionality: `tool choice type: ${a4}` });\n }\n}\nvar Qr = exports_external.object({ type: exports_external.literal(`web_search_call`), id: exports_external.string(), status: exports_external.string(), action: exports_external.discriminatedUnion(`type`, [exports_external.object({ type: exports_external.literal(`search`), query: exports_external.string().nullish() }), exports_external.object({ type: exports_external.literal(`open_page`), url: exports_external.string() }), exports_external.object({ type: exports_external.literal(`find`), url: exports_external.string(), pattern: exports_external.string() })]).nullish() });\nvar $r = exports_external.object({ type: exports_external.literal(`file_search_call`), id: exports_external.string(), queries: exports_external.array(exports_external.string()), results: exports_external.array(exports_external.object({ attributes: exports_external.record(exports_external.string(), exports_external.unknown()), file_id: exports_external.string(), filename: exports_external.string(), score: exports_external.number(), text: exports_external.string() })).nullish() });\nvar ei = exports_external.object({ type: exports_external.literal(`code_interpreter_call`), id: exports_external.string(), code: exports_external.string().nullable(), container_id: exports_external.string(), outputs: exports_external.array(exports_external.discriminatedUnion(`type`, [exports_external.object({ type: exports_external.literal(`logs`), logs: exports_external.string() }), exports_external.object({ type: exports_external.literal(`image`), url: exports_external.string() })])).nullable() });\nvar ti = exports_external.object({ type: exports_external.literal(`local_shell_call`), id: exports_external.string(), call_id: exports_external.string(), action: exports_external.object({ type: exports_external.literal(`exec`), command: exports_external.array(exports_external.string()), timeout_ms: exports_external.number().optional(), user: exports_external.string().optional(), working_directory: exports_external.string().optional(), env: exports_external.record(exports_external.string(), exports_external.string()).optional() }) });\nvar ni = exports_external.object({ type: exports_external.literal(`image_generation_call`), id: exports_external.string(), result: exports_external.string() });\nvar ri = 20;\nvar ii = exports_external.array(exports_external.object({ token: exports_external.string(), logprob: exports_external.number(), top_logprobs: exports_external.array(exports_external.object({ token: exports_external.string(), logprob: exports_external.number() })) }));\nvar ai = class {\n constructor(e4, t2) {\n this.specificationVersion = `v2`, this.supportedUrls = { "image/*": [/^https?:\\/\\/.*$/], "application/pdf": [/^https?:\\/\\/.*$/] }, this.modelId = e4, this.config = t2;\n }\n get provider() {\n return this.config.provider;\n }\n async getArgs({ maxOutputTokens: e4, temperature: t2, stopSequences: n2, topP: r2, topK: i3, presencePenalty: a4, frequencyPenalty: o3, seed: s4, prompt: c4, providerOptions: l3, tools: u3, toolChoice: d2, responseFormat: f3 }) {\n let p3 = [], m3 = Pi(this.modelId);\n i3 != null && p3.push({ type: `unsupported-setting`, setting: `topK` }), s4 != null && p3.push({ type: `unsupported-setting`, setting: `seed` }), a4 != null && p3.push({ type: `unsupported-setting`, setting: `presencePenalty` }), o3 != null && p3.push({ type: `unsupported-setting`, setting: `frequencyPenalty` }), n2 != null && p3.push({ type: `unsupported-setting`, setting: `stopSequences` });\n let h3 = await L2({ provider: `openai`, providerOptions: l3, schema: Fi }), { input: g3, warnings: _3 } = await Jr({ prompt: c4, systemMessageMode: m3.systemMessageMode, fileIdPrefixes: this.config.fileIdPrefixes, store: h3?.store ?? true, hasLocalShellTool: x4(`openai.local_shell`) });\n p3.push(..._3);\n let v3 = h3?.strictJsonSchema ?? false, y3 = h3?.include;\n function b3(e5) {\n y3 = y3 == null ? [e5] : [...y3, e5];\n }\n function x4(e5) {\n return u3?.find((t3) => t3.type === `provider-defined` && t3.id === e5) != null;\n }\n let S3 = typeof h3?.logprobs == `number` ? h3?.logprobs : h3?.logprobs === true ? ri : undefined;\n S3 && b3(`message.output_text.logprobs`);\n let C3 = u3?.find((e5) => e5.type === `provider-defined` && (e5.id === `openai.web_search` || e5.id === `openai.web_search_preview`))?.name;\n C3 && b3(`web_search_call.action.sources`), x4(`openai.code_interpreter`) && b3(`code_interpreter_call.outputs`);\n let w3 = { model: this.modelId, input: g3, temperature: t2, top_p: r2, max_output_tokens: e4, ...(f3?.type === `json` || h3?.textVerbosity) && { text: { ...f3?.type === `json` && { format: f3.schema == null ? { type: `json_object` } : { type: `json_schema`, strict: v3, name: f3.name ?? `response`, description: f3.description, schema: f3.schema } }, ...h3?.textVerbosity && { verbosity: h3.textVerbosity } } }, max_tool_calls: h3?.maxToolCalls, metadata: h3?.metadata, parallel_tool_calls: h3?.parallelToolCalls, previous_response_id: h3?.previousResponseId, store: h3?.store, user: h3?.user, instructions: h3?.instructions, service_tier: h3?.serviceTier, include: y3, prompt_cache_key: h3?.promptCacheKey, safety_identifier: h3?.safetyIdentifier, top_logprobs: S3, ...m3.isReasoningModel && (h3?.reasoningEffort != null || h3?.reasoningSummary != null) && { reasoning: { ...h3?.reasoningEffort != null && { effort: h3.reasoningEffort }, ...h3?.reasoningSummary != null && { summary: h3.reasoningSummary } } }, ...m3.requiredAutoTruncation && { truncation: `auto` } };\n m3.isReasoningModel ? (w3.temperature != null && (w3.temperature = undefined, p3.push({ type: `unsupported-setting`, setting: `temperature`, details: `temperature is not supported for reasoning models` })), w3.top_p != null && (w3.top_p = undefined, p3.push({ type: `unsupported-setting`, setting: `topP`, details: `topP is not supported for reasoning models` }))) : (h3?.reasoningEffort != null && p3.push({ type: `unsupported-setting`, setting: `reasoningEffort`, details: `reasoningEffort is not supported for non-reasoning models` }), h3?.reasoningSummary != null && p3.push({ type: `unsupported-setting`, setting: `reasoningSummary`, details: `reasoningSummary is not supported for non-reasoning models` })), h3?.serviceTier === `flex` && !m3.supportsFlexProcessing && (p3.push({ type: `unsupported-setting`, setting: `serviceTier`, details: `flex processing is only available for o3, o4-mini, and gpt-5 models` }), delete w3.service_tier), h3?.serviceTier === `priority` && !m3.supportsPriorityProcessing && (p3.push({ type: `unsupported-setting`, setting: `serviceTier`, details: `priority processing is only available for supported models (gpt-4, gpt-5, gpt-5-mini, o3, o4-mini) and requires Enterprise access. gpt-5-nano is not supported` }), delete w3.service_tier);\n let { tools: ee3, toolChoice: te3, toolWarnings: ne3 } = Zr({ tools: u3, toolChoice: d2, strictJsonSchema: v3 });\n return { webSearchToolName: C3, args: { ...w3, tools: ee3, tool_choice: te3 }, warnings: [...p3, ...ne3] };\n }\n async doGenerate(e4) {\n var t2, n2;\n let { args: r2, warnings: a4, webSearchToolName: o3 } = await this.getArgs(e4), s4 = this.config.url({ path: `/responses`, modelId: this.modelId }), { responseHeaders: c4, value: l3, rawValue: u3 } = await R2({ url: s4, headers: M2(this.config.headers(), e4.headers), body: r2, failedResponseHandler: Q2, successfulResponseHandler: W2(exports_external.object({ id: exports_external.string(), created_at: exports_external.number(), error: exports_external.object({ code: exports_external.string(), message: exports_external.string() }).nullish(), model: exports_external.string(), output: exports_external.array(exports_external.discriminatedUnion(`type`, [exports_external.object({ type: exports_external.literal(`message`), role: exports_external.literal(`assistant`), id: exports_external.string(), content: exports_external.array(exports_external.object({ type: exports_external.literal(`output_text`), text: exports_external.string(), logprobs: ii.nullish(), annotations: exports_external.array(exports_external.discriminatedUnion(`type`, [exports_external.object({ type: exports_external.literal(`url_citation`), start_index: exports_external.number(), end_index: exports_external.number(), url: exports_external.string(), title: exports_external.string() }), exports_external.object({ type: exports_external.literal(`file_citation`), file_id: exports_external.string(), filename: exports_external.string().nullish(), index: exports_external.number().nullish(), start_index: exports_external.number().nullish(), end_index: exports_external.number().nullish(), quote: exports_external.string().nullish() }), exports_external.object({ type: exports_external.literal(`container_file_citation`) })])) })) }), Qr, $r, ei, ni, ti, exports_external.object({ type: exports_external.literal(`function_call`), call_id: exports_external.string(), name: exports_external.string(), arguments: exports_external.string(), id: exports_external.string() }), exports_external.object({ type: exports_external.literal(`computer_call`), id: exports_external.string(), status: exports_external.string().optional() }), exports_external.object({ type: exports_external.literal(`reasoning`), id: exports_external.string(), encrypted_content: exports_external.string().nullish(), summary: exports_external.array(exports_external.object({ type: exports_external.literal(`summary_text`), text: exports_external.string() })) })])), service_tier: exports_external.string().nullish(), incomplete_details: exports_external.object({ reason: exports_external.string() }).nullish(), usage: oi })), abortSignal: e4.abortSignal, fetch: this.config.fetch });\n if (l3.error)\n throw new T2({ message: l3.error.message, url: s4, requestBodyValues: r2, statusCode: 400, responseHeaders: c4, responseBody: u3, isRetryable: false });\n let d2 = [], f3 = [], p3 = false;\n for (let r3 of l3.output)\n switch (r3.type) {\n case `reasoning`:\n r3.summary.length === 0 && r3.summary.push({ type: `summary_text`, text: `` });\n for (let e5 of r3.summary)\n d2.push({ type: `reasoning`, text: e5.text, providerMetadata: { openai: { itemId: r3.id, reasoningEncryptedContent: r3.encrypted_content ?? null } } });\n break;\n case `image_generation_call`:\n d2.push({ type: `tool-call`, toolCallId: r3.id, toolName: `image_generation`, input: `{}`, providerExecuted: true }), d2.push({ type: `tool-result`, toolCallId: r3.id, toolName: `image_generation`, result: { result: r3.result }, providerExecuted: true });\n break;\n case `local_shell_call`:\n d2.push({ type: `tool-call`, toolCallId: r3.call_id, toolName: `local_shell`, input: JSON.stringify({ action: r3.action }), providerMetadata: { openai: { itemId: r3.id } } });\n break;\n case `message`:\n for (let i3 of r3.content) {\n e4.providerOptions?.openai?.logprobs && i3.logprobs && f3.push(i3.logprobs), d2.push({ type: `text`, text: i3.text, providerMetadata: { openai: { itemId: r3.id } } });\n for (let e5 of i3.annotations)\n e5.type === `url_citation` ? d2.push({ type: `source`, sourceType: `url`, id: (t2 = this.config).generateId?.call(t2) ?? F2(), url: e5.url, title: e5.title }) : e5.type === `file_citation` && d2.push({ type: `source`, sourceType: `document`, id: (n2 = this.config).generateId?.call(n2) ?? F2(), mediaType: `text/plain`, title: e5.quote ?? e5.filename ?? `Document`, filename: e5.filename ?? e5.file_id });\n }\n break;\n case `function_call`:\n p3 = true, d2.push({ type: `tool-call`, toolCallId: r3.call_id, toolName: r3.name, input: r3.arguments, providerMetadata: { openai: { itemId: r3.id } } });\n break;\n case `web_search_call`:\n d2.push({ type: `tool-call`, toolCallId: r3.id, toolName: o3 ?? `web_search`, input: JSON.stringify({ action: r3.action }), providerExecuted: true }), d2.push({ type: `tool-result`, toolCallId: r3.id, toolName: o3 ?? `web_search`, result: { status: r3.status }, providerExecuted: true });\n break;\n case `computer_call`:\n d2.push({ type: `tool-call`, toolCallId: r3.id, toolName: `computer_use`, input: ``, providerExecuted: true }), d2.push({ type: `tool-result`, toolCallId: r3.id, toolName: `computer_use`, result: { type: `computer_use_tool_result`, status: r3.status || `completed` }, providerExecuted: true });\n break;\n case `file_search_call`:\n d2.push({ type: `tool-call`, toolCallId: r3.id, toolName: `file_search`, input: `{}`, providerExecuted: true }), d2.push({ type: `tool-result`, toolCallId: r3.id, toolName: `file_search`, result: { queries: r3.queries, results: r3.results?.map((e5) => ({ attributes: e5.attributes, fileId: e5.file_id, filename: e5.filename, score: e5.score, text: e5.text })) ?? null }, providerExecuted: true });\n break;\n case `code_interpreter_call`:\n d2.push({ type: `tool-call`, toolCallId: r3.id, toolName: `code_interpreter`, input: JSON.stringify({ code: r3.code, containerId: r3.container_id }), providerExecuted: true }), d2.push({ type: `tool-result`, toolCallId: r3.id, toolName: `code_interpreter`, result: { outputs: r3.outputs }, providerExecuted: true });\n break;\n }\n let m3 = { openai: { responseId: l3.id } };\n return f3.length > 0 && (m3.openai.logprobs = f3), typeof l3.service_tier == `string` && (m3.openai.serviceTier = l3.service_tier), { content: d2, finishReason: Xr({ finishReason: l3.incomplete_details?.reason, hasFunctionCall: p3 }), usage: { inputTokens: l3.usage.input_tokens, outputTokens: l3.usage.output_tokens, totalTokens: l3.usage.input_tokens + l3.usage.output_tokens, reasoningTokens: l3.usage.output_tokens_details?.reasoning_tokens ?? undefined, cachedInputTokens: l3.usage.input_tokens_details?.cached_tokens ?? undefined }, request: { body: r2 }, response: { id: l3.id, timestamp: new Date(l3.created_at * 1000), modelId: l3.model, headers: c4, body: u3 }, providerMetadata: m3, warnings: a4 };\n }\n async doStream(e4) {\n let { args: t2, warnings: n2, webSearchToolName: r2 } = await this.getArgs(e4), { responseHeaders: i3, value: a4 } = await R2({ url: this.config.url({ path: `/responses`, modelId: this.modelId }), headers: M2(this.config.headers(), e4.headers), body: { ...t2, stream: true }, failedResponseHandler: Q2, successfulResponseHandler: U2(yi), abortSignal: e4.abortSignal, fetch: this.config.fetch }), o3 = this, s4 = `unknown`, c4 = { inputTokens: undefined, outputTokens: undefined, totalTokens: undefined }, l3 = [], u3 = null, d2 = {}, f3 = false, p3 = {}, m3;\n return { stream: a4.pipeThrough(new TransformStream({ start(e5) {\n e5.enqueue({ type: `stream-start`, warnings: n2 });\n }, transform(t3, n3) {\n var i4, a5, h3;\n if (e4.includeRawChunks && n3.enqueue({ type: `raw`, rawValue: t3.rawValue }), !t3.success) {\n s4 = `error`, n3.enqueue({ type: `error`, error: t3.error });\n return;\n }\n let g3 = t3.value;\n if (Oi(g3))\n g3.item.type === `function_call` ? (d2[g3.output_index] = { toolName: g3.item.name, toolCallId: g3.item.call_id }, n3.enqueue({ type: `tool-input-start`, id: g3.item.call_id, toolName: g3.item.name })) : g3.item.type === `web_search_call` ? (d2[g3.output_index] = { toolName: r2 ?? `web_search`, toolCallId: g3.item.id }, n3.enqueue({ type: `tool-input-start`, id: g3.item.id, toolName: r2 ?? `web_search` })) : g3.item.type === `computer_call` ? (d2[g3.output_index] = { toolName: `computer_use`, toolCallId: g3.item.id }, n3.enqueue({ type: `tool-input-start`, id: g3.item.id, toolName: `computer_use` })) : g3.item.type === `code_interpreter_call` ? (d2[g3.output_index] = { toolName: `code_interpreter`, toolCallId: g3.item.id, codeInterpreter: { containerId: g3.item.container_id } }, n3.enqueue({ type: `tool-input-start`, id: g3.item.id, toolName: `code_interpreter` }), n3.enqueue({ type: `tool-input-delta`, id: g3.item.id, delta: `{"containerId":"${g3.item.container_id}","code":"` })) : g3.item.type === `file_search_call` ? n3.enqueue({ type: `tool-call`, toolCallId: g3.item.id, toolName: `file_search`, input: `{}`, providerExecuted: true }) : g3.item.type === `image_generation_call` ? n3.enqueue({ type: `tool-call`, toolCallId: g3.item.id, toolName: `image_generation`, input: `{}`, providerExecuted: true }) : g3.item.type === `message` ? n3.enqueue({ type: `text-start`, id: g3.item.id, providerMetadata: { openai: { itemId: g3.item.id } } }) : ki(g3) && (p3[g3.item.id] = { encryptedContent: g3.item.encrypted_content, summaryParts: [0] }, n3.enqueue({ type: `reasoning-start`, id: `${g3.item.id}:0`, providerMetadata: { openai: { itemId: g3.item.id, reasoningEncryptedContent: g3.item.encrypted_content ?? null } } }));\n else if (xi(g3)) {\n if (g3.item.type === `function_call`)\n d2[g3.output_index] = undefined, f3 = true, n3.enqueue({ type: `tool-input-end`, id: g3.item.call_id }), n3.enqueue({ type: `tool-call`, toolCallId: g3.item.call_id, toolName: g3.item.name, input: g3.item.arguments, providerMetadata: { openai: { itemId: g3.item.id } } });\n else if (g3.item.type === `web_search_call`)\n d2[g3.output_index] = undefined, n3.enqueue({ type: `tool-input-end`, id: g3.item.id }), n3.enqueue({ type: `tool-call`, toolCallId: g3.item.id, toolName: `web_search`, input: JSON.stringify({ action: g3.item.action }), providerExecuted: true }), n3.enqueue({ type: `tool-result`, toolCallId: g3.item.id, toolName: `web_search`, result: { status: g3.item.status }, providerExecuted: true });\n else if (g3.item.type === `computer_call`)\n d2[g3.output_index] = undefined, n3.enqueue({ type: `tool-input-end`, id: g3.item.id }), n3.enqueue({ type: `tool-call`, toolCallId: g3.item.id, toolName: `computer_use`, input: ``, providerExecuted: true }), n3.enqueue({ type: `tool-result`, toolCallId: g3.item.id, toolName: `computer_use`, result: { type: `computer_use_tool_result`, status: g3.item.status || `completed` }, providerExecuted: true });\n else if (g3.item.type === `file_search_call`)\n d2[g3.output_index] = undefined, n3.enqueue({ type: `tool-result`, toolCallId: g3.item.id, toolName: `file_search`, result: { queries: g3.item.queries, results: g3.item.results?.map((e5) => ({ attributes: e5.attributes, fileId: e5.file_id, filename: e5.filename, score: e5.score, text: e5.text })) ?? null }, providerExecuted: true });\n else if (g3.item.type === `code_interpreter_call`)\n d2[g3.output_index] = undefined, n3.enqueue({ type: `tool-result`, toolCallId: g3.item.id, toolName: `code_interpreter`, result: { outputs: g3.item.outputs }, providerExecuted: true });\n else if (g3.item.type === `image_generation_call`)\n n3.enqueue({ type: `tool-result`, toolCallId: g3.item.id, toolName: `image_generation`, result: { result: g3.item.result }, providerExecuted: true });\n else if (g3.item.type === `local_shell_call`)\n d2[g3.output_index] = undefined, n3.enqueue({ type: `tool-call`, toolCallId: g3.item.call_id, toolName: `local_shell`, input: JSON.stringify({ action: { type: `exec`, command: g3.item.action.command, timeoutMs: g3.item.action.timeout_ms, user: g3.item.action.user, workingDirectory: g3.item.action.working_directory, env: g3.item.action.env } }), providerMetadata: { openai: { itemId: g3.item.id } } });\n else if (g3.item.type === `message`)\n n3.enqueue({ type: `text-end`, id: g3.item.id });\n else if (Si(g3)) {\n let e5 = p3[g3.item.id];\n for (let t4 of e5.summaryParts)\n n3.enqueue({ type: `reasoning-end`, id: `${g3.item.id}:${t4}`, providerMetadata: { openai: { itemId: g3.item.id, reasoningEncryptedContent: g3.item.encrypted_content ?? null } } });\n delete p3[g3.item.id];\n }\n } else if (Ti(g3)) {\n let e5 = d2[g3.output_index];\n e5 != null && n3.enqueue({ type: `tool-input-delta`, id: e5.toolCallId, delta: g3.delta });\n } else if (Ei(g3)) {\n let e5 = d2[g3.output_index];\n e5 != null && n3.enqueue({ type: `tool-input-delta`, id: e5.toolCallId, delta: JSON.stringify(g3.delta).slice(1, -1) });\n } else if (Di(g3)) {\n let e5 = d2[g3.output_index];\n e5 != null && (n3.enqueue({ type: `tool-input-delta`, id: e5.toolCallId, delta: `"}` }), n3.enqueue({ type: `tool-input-end`, id: e5.toolCallId }), n3.enqueue({ type: `tool-call`, toolCallId: e5.toolCallId, toolName: `code_interpreter`, input: JSON.stringify({ code: g3.code, containerId: e5.codeInterpreter.containerId }), providerExecuted: true }));\n } else\n wi(g3) ? (u3 = g3.response.id, n3.enqueue({ type: `response-metadata`, id: g3.response.id, timestamp: new Date(g3.response.created_at * 1000), modelId: g3.response.model })) : bi(g3) ? (n3.enqueue({ type: `text-delta`, id: g3.item_id, delta: g3.delta }), e4.providerOptions?.openai?.logprobs && g3.logprobs && l3.push(g3.logprobs)) : ji(g3) ? g3.summary_index > 0 && ((i4 = p3[g3.item_id]) == null || i4.summaryParts.push(g3.summary_index), n3.enqueue({ type: `reasoning-start`, id: `${g3.item_id}:${g3.summary_index}`, providerMetadata: { openai: { itemId: g3.item_id, reasoningEncryptedContent: p3[g3.item_id]?.encryptedContent ?? null } } })) : Mi(g3) ? n3.enqueue({ type: `reasoning-delta`, id: `${g3.item_id}:${g3.summary_index}`, delta: g3.delta, providerMetadata: { openai: { itemId: g3.item_id } } }) : Ci(g3) ? (s4 = Xr({ finishReason: g3.response.incomplete_details?.reason, hasFunctionCall: f3 }), c4.inputTokens = g3.response.usage.input_tokens, c4.outputTokens = g3.response.usage.output_tokens, c4.totalTokens = g3.response.usage.input_tokens + g3.response.usage.output_tokens, c4.reasoningTokens = g3.response.usage.output_tokens_details?.reasoning_tokens ?? undefined, c4.cachedInputTokens = g3.response.usage.input_tokens_details?.cached_tokens ?? undefined, typeof g3.response.service_tier == `string` && (m3 = g3.response.service_tier)) : Ai(g3) ? g3.annotation.type === `url_citation` ? n3.enqueue({ type: `source`, sourceType: `url`, id: (a5 = o3.config).generateId?.call(a5) ?? F2(), url: g3.annotation.url, title: g3.annotation.title }) : g3.annotation.type === `file_citation` && n3.enqueue({ type: `source`, sourceType: `document`, id: (h3 = o3.config).generateId?.call(h3) ?? F2(), mediaType: `text/plain`, title: g3.annotation.quote ?? g3.annotation.filename ?? `Document`, filename: g3.annotation.filename ?? g3.annotation.file_id }) : Ni(g3) && n3.enqueue({ type: `error`, error: g3 });\n }, flush(e5) {\n let t3 = { openai: { responseId: u3 } };\n l3.length > 0 && (t3.openai.logprobs = l3), m3 !== undefined && (t3.openai.serviceTier = m3), e5.enqueue({ type: `finish`, finishReason: s4, usage: c4, providerMetadata: t3 });\n } })), request: { body: t2 }, response: { headers: i3 } };\n }\n};\nvar oi = exports_external.object({ input_tokens: exports_external.number(), input_tokens_details: exports_external.object({ cached_tokens: exports_external.number().nullish() }).nullish(), output_tokens: exports_external.number(), output_tokens_details: exports_external.object({ reasoning_tokens: exports_external.number().nullish() }).nullish() });\nvar si = exports_external.object({ type: exports_external.literal(`response.output_text.delta`), item_id: exports_external.string(), delta: exports_external.string(), logprobs: ii.nullish() });\nvar ci = exports_external.object({ type: exports_external.literal(`error`), code: exports_external.string(), message: exports_external.string(), param: exports_external.string().nullish(), sequence_number: exports_external.number() });\nvar li = exports_external.object({ type: exports_external.enum([`response.completed`, `response.incomplete`]), response: exports_external.object({ incomplete_details: exports_external.object({ reason: exports_external.string() }).nullish(), usage: oi, service_tier: exports_external.string().nullish() }) });\nvar ui = exports_external.object({ type: exports_external.literal(`response.created`), response: exports_external.object({ id: exports_external.string(), created_at: exports_external.number(), model: exports_external.string(), service_tier: exports_external.string().nullish() }) });\nvar di = exports_external.object({ type: exports_external.literal(`response.output_item.added`), output_index: exports_external.number(), item: exports_external.discriminatedUnion(`type`, [exports_external.object({ type: exports_external.literal(`message`), id: exports_external.string() }), exports_external.object({ type: exports_external.literal(`reasoning`), id: exports_external.string(), encrypted_content: exports_external.string().nullish() }), exports_external.object({ type: exports_external.literal(`function_call`), id: exports_external.string(), call_id: exports_external.string(), name: exports_external.string(), arguments: exports_external.string() }), exports_external.object({ type: exports_external.literal(`web_search_call`), id: exports_external.string(), status: exports_external.string(), action: exports_external.object({ type: exports_external.literal(`search`), query: exports_external.string().optional() }).nullish() }), exports_external.object({ type: exports_external.literal(`computer_call`), id: exports_external.string(), status: exports_external.string() }), exports_external.object({ type: exports_external.literal(`file_search_call`), id: exports_external.string() }), exports_external.object({ type: exports_external.literal(`image_generation_call`), id: exports_external.string() }), exports_external.object({ type: exports_external.literal(`code_interpreter_call`), id: exports_external.string(), container_id: exports_external.string(), code: exports_external.string().nullable(), outputs: exports_external.array(exports_external.discriminatedUnion(`type`, [exports_external.object({ type: exports_external.literal(`logs`), logs: exports_external.string() }), exports_external.object({ type: exports_external.literal(`image`), url: exports_external.string() })])).nullable(), status: exports_external.string() })]) });\nvar fi = exports_external.object({ type: exports_external.literal(`response.output_item.done`), output_index: exports_external.number(), item: exports_external.discriminatedUnion(`type`, [exports_external.object({ type: exports_external.literal(`message`), id: exports_external.string() }), exports_external.object({ type: exports_external.literal(`reasoning`), id: exports_external.string(), encrypted_content: exports_external.string().nullish() }), exports_external.object({ type: exports_external.literal(`function_call`), id: exports_external.string(), call_id: exports_external.string(), name: exports_external.string(), arguments: exports_external.string(), status: exports_external.literal(`completed`) }), ei, ni, Qr, $r, ti, exports_external.object({ type: exports_external.literal(`computer_call`), id: exports_external.string(), status: exports_external.literal(`completed`) })]) });\nvar pi = exports_external.object({ type: exports_external.literal(`response.function_call_arguments.delta`), item_id: exports_external.string(), output_index: exports_external.number(), delta: exports_external.string() });\nvar mi = exports_external.object({ type: exports_external.literal(`response.code_interpreter_call_code.delta`), item_id: exports_external.string(), output_index: exports_external.number(), delta: exports_external.string() });\nvar hi = exports_external.object({ type: exports_external.literal(`response.code_interpreter_call_code.done`), item_id: exports_external.string(), output_index: exports_external.number(), code: exports_external.string() });\nvar gi = exports_external.object({ type: exports_external.literal(`response.output_text.annotation.added`), annotation: exports_external.discriminatedUnion(`type`, [exports_external.object({ type: exports_external.literal(`url_citation`), url: exports_external.string(), title: exports_external.string() }), exports_external.object({ type: exports_external.literal(`file_citation`), file_id: exports_external.string(), filename: exports_external.string().nullish(), index: exports_external.number().nullish(), start_index: exports_external.number().nullish(), end_index: exports_external.number().nullish(), quote: exports_external.string().nullish() })]) });\nvar _i = exports_external.object({ type: exports_external.literal(`response.reasoning_summary_part.added`), item_id: exports_external.string(), summary_index: exports_external.number() });\nvar vi = exports_external.object({ type: exports_external.literal(`response.reasoning_summary_text.delta`), item_id: exports_external.string(), summary_index: exports_external.number(), delta: exports_external.string() });\nvar yi = exports_external.union([si, li, ui, di, fi, pi, mi, hi, gi, _i, vi, ci, exports_external.object({ type: exports_external.string() }).loose()]);\nfunction bi(e4) {\n return e4.type === `response.output_text.delta`;\n}\nfunction xi(e4) {\n return e4.type === `response.output_item.done`;\n}\nfunction Si(e4) {\n return xi(e4) && e4.item.type === `reasoning`;\n}\nfunction Ci(e4) {\n return e4.type === `response.completed` || e4.type === `response.incomplete`;\n}\nfunction wi(e4) {\n return e4.type === `response.created`;\n}\nfunction Ti(e4) {\n return e4.type === `response.function_call_arguments.delta`;\n}\nfunction Ei(e4) {\n return e4.type === `response.code_interpreter_call_code.delta`;\n}\nfunction Di(e4) {\n return e4.type === `response.code_interpreter_call_code.done`;\n}\nfunction Oi(e4) {\n return e4.type === `response.output_item.added`;\n}\nfunction ki(e4) {\n return Oi(e4) && e4.item.type === `reasoning`;\n}\nfunction Ai(e4) {\n return e4.type === `response.output_text.annotation.added`;\n}\nfunction ji(e4) {\n return e4.type === `response.reasoning_summary_part.added`;\n}\nfunction Mi(e4) {\n return e4.type === `response.reasoning_summary_text.delta`;\n}\nfunction Ni(e4) {\n return e4.type === `error`;\n}\nfunction Pi(e4) {\n let t2 = e4.startsWith(`o3`) || e4.startsWith(`o4-mini`) || e4.startsWith(`gpt-5`) && !e4.startsWith(`gpt-5-chat`), n2 = e4.startsWith(`gpt-4`) || e4.startsWith(`gpt-5-mini`) || e4.startsWith(`gpt-5`) && !e4.startsWith(`gpt-5-nano`) && !e4.startsWith(`gpt-5-chat`) || e4.startsWith(`o3`) || e4.startsWith(`o4-mini`), r2 = { requiredAutoTruncation: false, systemMessageMode: `system`, supportsFlexProcessing: t2, supportsPriorityProcessing: n2 };\n return e4.startsWith(`gpt-5-chat`) ? { ...r2, isReasoningModel: false } : e4.startsWith(`o`) || e4.startsWith(`gpt-5`) || e4.startsWith(`codex-`) || e4.startsWith(`computer-use`) ? e4.startsWith(`o1-mini`) || e4.startsWith(`o1-preview`) ? { ...r2, isReasoningModel: true, systemMessageMode: `remove` } : { ...r2, isReasoningModel: true, systemMessageMode: `developer` } : { ...r2, isReasoningModel: false };\n}\nvar Fi = exports_external.object({ include: exports_external.array(exports_external.enum([`reasoning.encrypted_content`, `file_search_call.results`, `message.output_text.logprobs`])).nullish(), instructions: exports_external.string().nullish(), logprobs: exports_external.union([exports_external.boolean(), exports_external.number().min(1).max(ri)]).optional(), maxToolCalls: exports_external.number().nullish(), metadata: exports_external.any().nullish(), parallelToolCalls: exports_external.boolean().nullish(), previousResponseId: exports_external.string().nullish(), promptCacheKey: exports_external.string().nullish(), reasoningEffort: exports_external.string().nullish(), reasoningSummary: exports_external.string().nullish(), safetyIdentifier: exports_external.string().nullish(), serviceTier: exports_external.enum([`auto`, `flex`, `priority`]).nullish(), store: exports_external.boolean().nullish(), strictJsonSchema: exports_external.boolean().nullish(), textVerbosity: exports_external.enum([`low`, `medium`, `high`]).nullish(), user: exports_external.string().nullish() });\nvar Ii = exports_external.object({ instructions: exports_external.string().nullish(), speed: exports_external.number().min(0.25).max(4).default(1).nullish() });\nvar Li = class {\n constructor(e4, t2) {\n this.modelId = e4, this.config = t2, this.specificationVersion = `v2`;\n }\n get provider() {\n return this.config.provider;\n }\n async getArgs({ text: e4, voice: t2 = `alloy`, outputFormat: n2 = `mp3`, speed: r2, instructions: i3, language: a4, providerOptions: o3 }) {\n let s4 = [], c4 = await L2({ provider: `openai`, providerOptions: o3, schema: Ii }), l3 = { model: this.modelId, input: e4, voice: t2, response_format: `mp3`, speed: r2, instructions: i3 };\n if (n2 && ([`mp3`, `opus`, `aac`, `flac`, `wav`, `pcm`].includes(n2) ? l3.response_format = n2 : s4.push({ type: `unsupported-setting`, setting: `outputFormat`, details: `Unsupported output format: ${n2}. Using mp3 instead.` })), c4) {\n let e5 = {};\n for (let t3 in e5) {\n let n3 = e5[t3];\n n3 !== undefined && (l3[t3] = n3);\n }\n }\n return a4 && s4.push({ type: `unsupported-setting`, setting: `language`, details: `OpenAI speech models do not support language selection. Language parameter "${a4}" was ignored.` }), { requestBody: l3, warnings: s4 };\n }\n async doGenerate(e4) {\n var t2;\n let n2 = (t2 = this.config._internal)?.currentDate?.call(t2) ?? new Date, { requestBody: r2, warnings: i3 } = await this.getArgs(e4), { value: a4, responseHeaders: o3, rawValue: s4 } = await R2({ url: this.config.url({ path: `/audio/speech`, modelId: this.modelId }), headers: M2(this.config.headers(), e4.headers), body: r2, failedResponseHandler: Q2, successfulResponseHandler: wt(), abortSignal: e4.abortSignal, fetch: this.config.fetch });\n return { audio: a4, warnings: i3, request: { body: JSON.stringify(r2) }, response: { timestamp: n2, modelId: this.modelId, headers: o3, body: s4 } };\n }\n};\nvar Ri = exports_external.object({ include: exports_external.array(exports_external.string()).optional(), language: exports_external.string().optional(), prompt: exports_external.string().optional(), temperature: exports_external.number().min(0).max(1).default(0).optional(), timestampGranularities: exports_external.array(exports_external.enum([`word`, `segment`])).default([`segment`]).optional() });\nvar zi = { afrikaans: `af`, arabic: `ar`, armenian: `hy`, azerbaijani: `az`, belarusian: `be`, bosnian: `bs`, bulgarian: `bg`, catalan: `ca`, chinese: `zh`, croatian: `hr`, czech: `cs`, danish: `da`, dutch: `nl`, english: `en`, estonian: `et`, finnish: `fi`, french: `fr`, galician: `gl`, german: `de`, greek: `el`, hebrew: `he`, hindi: `hi`, hungarian: `hu`, icelandic: `is`, indonesian: `id`, italian: `it`, japanese: `ja`, kannada: `kn`, kazakh: `kk`, korean: `ko`, latvian: `lv`, lithuanian: `lt`, macedonian: `mk`, malay: `ms`, marathi: `mr`, maori: `mi`, nepali: `ne`, norwegian: `no`, persian: `fa`, polish: `pl`, portuguese: `pt`, romanian: `ro`, russian: `ru`, serbian: `sr`, slovak: `sk`, slovenian: `sl`, spanish: `es`, swahili: `sw`, swedish: `sv`, tagalog: `tl`, tamil: `ta`, thai: `th`, turkish: `tr`, ukrainian: `uk`, urdu: `ur`, vietnamese: `vi`, welsh: `cy` };\nvar Bi = class {\n constructor(e4, t2) {\n this.modelId = e4, this.config = t2, this.specificationVersion = `v2`;\n }\n get provider() {\n return this.config.provider;\n }\n async getArgs({ audio: e4, mediaType: t2, providerOptions: n2 }) {\n let r2 = [], i3 = await L2({ provider: `openai`, providerOptions: n2, schema: Ri }), a4 = new FormData, o3 = e4 instanceof Uint8Array ? new Blob([e4]) : new Blob([Dt(e4)]);\n a4.append(`model`, this.modelId);\n let s4 = rt(t2);\n if (a4.append(`file`, new File([o3], `audio`, { type: t2 }), `audio.${s4}`), i3) {\n let e5 = { include: i3.include, language: i3.language, prompt: i3.prompt, response_format: [`gpt-4o-transcribe`, `gpt-4o-mini-transcribe`].includes(this.modelId) ? `json` : `verbose_json`, temperature: i3.temperature, timestamp_granularities: i3.timestampGranularities };\n for (let [t3, n3] of Object.entries(e5))\n if (n3 != null)\n if (Array.isArray(n3))\n for (let e6 of n3)\n a4.append(`${t3}[]`, String(e6));\n else\n a4.append(t3, String(n3));\n }\n return { formData: a4, warnings: r2 };\n }\n async doGenerate(e4) {\n var t2;\n let n2 = (t2 = this.config._internal)?.currentDate?.call(t2) ?? new Date, { formData: r2, warnings: i3 } = await this.getArgs(e4), { value: a4, responseHeaders: o3, rawValue: s4 } = await xt({ url: this.config.url({ path: `/audio/transcriptions`, modelId: this.modelId }), headers: M2(this.config.headers(), e4.headers), formData: r2, failedResponseHandler: Q2, successfulResponseHandler: W2(Vi), abortSignal: e4.abortSignal, fetch: this.config.fetch }), c4 = a4.language != null && a4.language in zi ? zi[a4.language] : undefined;\n return { text: a4.text, segments: a4.segments?.map((e5) => ({ text: e5.text, startSecond: e5.start, endSecond: e5.end })) ?? a4.words?.map((e5) => ({ text: e5.word, startSecond: e5.start, endSecond: e5.end })) ?? [], language: c4, durationInSeconds: a4.duration ?? undefined, warnings: i3, response: { timestamp: n2, modelId: this.modelId, headers: o3, body: s4 } };\n }\n};\nvar Vi = exports_external.object({ text: exports_external.string(), language: exports_external.string().nullish(), duration: exports_external.number().nullish(), words: exports_external.array(exports_external.object({ word: exports_external.string(), start: exports_external.number(), end: exports_external.number() })).nullish(), segments: exports_external.array(exports_external.object({ id: exports_external.number(), seek: exports_external.number(), start: exports_external.number(), end: exports_external.number(), text: exports_external.string(), tokens: exports_external.array(exports_external.number()), temperature: exports_external.number(), avg_logprob: exports_external.number(), compression_ratio: exports_external.number(), no_speech_prob: exports_external.number() })).nullish() });\nvar Hi = `2.0.42`;\nfunction $2(e4 = {}) {\n let t2 = K2(nt({ settingValue: e4.baseURL, environmentVariableName: `OPENAI_BASE_URL` })) ?? `https://api.openai.com/v1`, n2 = e4.name ?? `openai`, r2 = () => P2({ Authorization: `Bearer ${I2({ apiKey: e4.apiKey, environmentVariableName: `OPENAI_API_KEY`, description: `OpenAI` })}`, "OpenAI-Organization": e4.organization, "OpenAI-Project": e4.project, ...e4.headers }, `ai-sdk/openai/${Hi}`), i3 = (i4) => new er(i4, { provider: `${n2}.chat`, url: ({ path: e5 }) => `${t2}${e5}`, headers: r2, fetch: e4.fetch }), a4 = (i4) => new pr(i4, { provider: `${n2}.completion`, url: ({ path: e5 }) => `${t2}${e5}`, headers: r2, fetch: e4.fetch }), o3 = (i4) => new vr(i4, { provider: `${n2}.embedding`, url: ({ path: e5 }) => `${t2}${e5}`, headers: r2, fetch: e4.fetch }), s4 = (i4) => new Sr(i4, { provider: `${n2}.image`, url: ({ path: e5 }) => `${t2}${e5}`, headers: r2, fetch: e4.fetch }), c4 = (i4) => new Bi(i4, { provider: `${n2}.transcription`, url: ({ path: e5 }) => `${t2}${e5}`, headers: r2, fetch: e4.fetch }), l3 = (i4) => new Li(i4, { provider: `${n2}.speech`, url: ({ path: e5 }) => `${t2}${e5}`, headers: r2, fetch: e4.fetch }), u3 = (e5) => {\n if (new.target)\n throw Error(`The OpenAI model function cannot be called with the new keyword.`);\n return d2(e5);\n }, d2 = (i4) => new ai(i4, { provider: `${n2}.responses`, url: ({ path: e5 }) => `${t2}${e5}`, headers: r2, fetch: e4.fetch, fileIdPrefixes: [`file-`] }), f3 = function(e5) {\n return u3(e5);\n };\n return f3.languageModel = u3, f3.chat = i3, f3.completion = a4, f3.responses = d2, f3.embedding = o3, f3.textEmbedding = o3, f3.textEmbeddingModel = o3, f3.image = s4, f3.imageModel = s4, f3.transcription = c4, f3.transcriptionModel = c4, f3.speech = l3, f3.speechModel = l3, f3.tools = Kr, f3;\n}\n$2(), exports_external.object({ user: exports_external.string().optional(), reasoningEffort: exports_external.string().optional() });\nvar Ui = { errorSchema: exports_external.object({ error: exports_external.object({ message: exports_external.string(), type: exports_external.string().nullish(), param: exports_external.any().nullish(), code: exports_external.union([exports_external.string(), exports_external.number()]).nullish() }) }), errorToMessage: (e4) => e4.error.message };\nvar Wi = exports_external.object({ prompt_tokens: exports_external.number().nullish(), completion_tokens: exports_external.number().nullish(), total_tokens: exports_external.number().nullish(), prompt_tokens_details: exports_external.object({ cached_tokens: exports_external.number().nullish() }).nullish(), completion_tokens_details: exports_external.object({ reasoning_tokens: exports_external.number().nullish(), accepted_prediction_tokens: exports_external.number().nullish(), rejected_prediction_tokens: exports_external.number().nullish() }).nullish() }).nullish();\nexports_external.object({ id: exports_external.string().nullish(), created: exports_external.number().nullish(), model: exports_external.string().nullish(), choices: exports_external.array(exports_external.object({ message: exports_external.object({ role: exports_external.literal(`assistant`).nullish(), content: exports_external.string().nullish(), reasoning_content: exports_external.string().nullish(), reasoning: exports_external.string().nullish(), tool_calls: exports_external.array(exports_external.object({ id: exports_external.string().nullish(), function: exports_external.object({ name: exports_external.string(), arguments: exports_external.string() }) })).nullish() }), finish_reason: exports_external.string().nullish() })), usage: Wi }), exports_external.object({ echo: exports_external.boolean().optional(), logitBias: exports_external.record(exports_external.string(), exports_external.number()).optional(), suffix: exports_external.string().optional(), user: exports_external.string().optional() });\nvar Gi = exports_external.object({ prompt_tokens: exports_external.number(), completion_tokens: exports_external.number(), total_tokens: exports_external.number() });\nexports_external.object({ id: exports_external.string().nullish(), created: exports_external.number().nullish(), model: exports_external.string().nullish(), choices: exports_external.array(exports_external.object({ text: exports_external.string(), finish_reason: exports_external.string() })), usage: Gi.nullish() }), exports_external.object({ dimensions: exports_external.number().optional(), user: exports_external.string().optional() }), exports_external.object({ data: exports_external.array(exports_external.object({ embedding: exports_external.array(exports_external.number()) })), usage: exports_external.object({ prompt_tokens: exports_external.number() }).nullish(), providerMetadata: exports_external.record(exports_external.string(), exports_external.record(exports_external.string(), exports_external.any())).optional() });\nvar Ki = class {\n constructor(e4, t2) {\n this.modelId = e4, this.config = t2, this.specificationVersion = `v2`, this.maxImagesPerCall = 10;\n }\n get provider() {\n return this.config.provider;\n }\n async doGenerate({ prompt: e4, n: t2, size: n2, aspectRatio: r2, seed: i3, providerOptions: a4, headers: o3, abortSignal: s4 }) {\n var c4;\n let l3 = [];\n r2 != null && l3.push({ type: `unsupported-setting`, setting: `aspectRatio`, details: "This model does not support aspect ratio. Use `size` instead." }), i3 != null && l3.push({ type: `unsupported-setting`, setting: `seed` });\n let u3 = (c4 = this.config._internal)?.currentDate?.call(c4) ?? new Date, { value: d2, responseHeaders: f3 } = await R2({ url: this.config.url({ path: `/images/generations`, modelId: this.modelId }), headers: M2(this.config.headers(), o3), body: { model: this.modelId, prompt: e4, n: t2, size: n2, ...a4.openai ?? {}, response_format: `b64_json` }, failedResponseHandler: H2(this.config.errorStructure ?? Ui), successfulResponseHandler: W2(qi), abortSignal: s4, fetch: this.config.fetch });\n return { images: d2.data.map((e5) => e5.b64_json), warnings: l3, response: { timestamp: u3, modelId: this.modelId, headers: f3 } };\n }\n};\nvar qi = exports_external.object({ data: exports_external.array(exports_external.object({ b64_json: exports_external.string() })) });\nfunction Ji(e4) {\n let t2 = [], n2 = [];\n for (let { role: n3, content: r2 } of e4)\n switch (n3) {\n case `system`:\n t2.push({ role: `system`, content: r2 });\n break;\n case `user`:\n if (r2.length === 1 && r2[0].type === `text`) {\n t2.push({ role: `user`, content: r2[0].text });\n break;\n }\n t2.push({ role: `user`, content: r2.map((e5) => {\n switch (e5.type) {\n case `text`:\n return { type: `text`, text: e5.text };\n case `file`:\n if (e5.mediaType.startsWith(`image/`)) {\n let t3 = e5.mediaType === `image/*` ? `image/jpeg` : e5.mediaType;\n return { type: `image_url`, image_url: { url: e5.data instanceof URL ? e5.data.toString() : `data:${t3};base64,${G2(e5.data)}` } };\n } else\n throw new j2({ functionality: `file part media type ${e5.mediaType}` });\n }\n }) });\n break;\n case `assistant`: {\n let e5 = ``, n4 = [];\n for (let t3 of r2)\n switch (t3.type) {\n case `text`:\n e5 += t3.text;\n break;\n case `tool-call`:\n n4.push({ id: t3.toolCallId, type: `function`, function: { name: t3.toolName, arguments: JSON.stringify(t3.input) } });\n break;\n }\n t2.push({ role: `assistant`, content: e5, tool_calls: n4.length > 0 ? n4 : undefined });\n break;\n }\n case `tool`:\n for (let e5 of r2) {\n let n4 = e5.output, r3;\n switch (n4.type) {\n case `text`:\n case `error-text`:\n r3 = n4.value;\n break;\n case `content`:\n case `json`:\n case `error-json`:\n r3 = JSON.stringify(n4.value);\n break;\n }\n t2.push({ role: `tool`, tool_call_id: e5.toolCallId, content: r3 });\n }\n break;\n default: {\n let e5 = n3;\n throw Error(`Unsupported role: ${e5}`);\n }\n }\n return { messages: t2, warnings: n2 };\n}\nfunction Yi({ id: e4, model: t2, created: n2 }) {\n return { id: e4 ?? undefined, modelId: t2 ?? undefined, timestamp: n2 == null ? undefined : new Date(n2 * 1000) };\n}\nfunction Xi(e4) {\n switch (e4) {\n case `stop`:\n return `stop`;\n case `length`:\n return `length`;\n case `tool_calls`:\n case `function_call`:\n return `tool-calls`;\n case `content_filter`:\n return `content-filter`;\n default:\n return `unknown`;\n }\n}\nvar Zi = exports_external.object({ type: exports_external.literal(`web`), country: exports_external.string().length(2).optional(), excludedWebsites: exports_external.array(exports_external.string()).max(5).optional(), allowedWebsites: exports_external.array(exports_external.string()).max(5).optional(), safeSearch: exports_external.boolean().optional() });\nvar Qi = exports_external.object({ type: exports_external.literal(`x`), excludedXHandles: exports_external.array(exports_external.string()).optional(), includedXHandles: exports_external.array(exports_external.string()).optional(), postFavoriteCount: exports_external.number().int().optional(), postViewCount: exports_external.number().int().optional(), xHandles: exports_external.array(exports_external.string()).optional() });\nvar $i = exports_external.object({ type: exports_external.literal(`news`), country: exports_external.string().length(2).optional(), excludedWebsites: exports_external.array(exports_external.string()).max(5).optional(), safeSearch: exports_external.boolean().optional() });\nvar ea = exports_external.object({ type: exports_external.literal(`rss`), links: exports_external.array(exports_external.string().url()).max(1) });\nvar ta = exports_external.discriminatedUnion(`type`, [Zi, Qi, $i, ea]);\nvar na = exports_external.object({ reasoningEffort: exports_external.enum([`low`, `high`]).optional(), searchParameters: exports_external.object({ mode: exports_external.enum([`off`, `auto`, `on`]), returnCitations: exports_external.boolean().optional(), fromDate: exports_external.string().optional(), toDate: exports_external.string().optional(), maxSearchResults: exports_external.number().min(1).max(50).optional(), sources: exports_external.array(ta).optional() }).optional() });\nvar ra = exports_external.object({ error: exports_external.object({ message: exports_external.string(), type: exports_external.string().nullish(), param: exports_external.any().nullish(), code: exports_external.union([exports_external.string(), exports_external.number()]).nullish() }) });\nvar ia = H2({ errorSchema: ra, errorToMessage: (e4) => e4.error.message });\nfunction aa({ tools: e4, toolChoice: t2 }) {\n e4 = e4?.length ? e4 : undefined;\n let n2 = [];\n if (e4 == null)\n return { tools: undefined, toolChoice: undefined, toolWarnings: n2 };\n let r2 = [];\n for (let t3 of e4)\n t3.type === `provider-defined` ? n2.push({ type: `unsupported-tool`, tool: t3 }) : r2.push({ type: `function`, function: { name: t3.name, description: t3.description, parameters: t3.inputSchema } });\n if (t2 == null)\n return { tools: r2, toolChoice: undefined, toolWarnings: n2 };\n let i3 = t2.type;\n switch (i3) {\n case `auto`:\n case `none`:\n return { tools: r2, toolChoice: i3, toolWarnings: n2 };\n case `required`:\n return { tools: r2, toolChoice: `required`, toolWarnings: n2 };\n case `tool`:\n return { tools: r2, toolChoice: { type: `function`, function: { name: t2.toolName } }, toolWarnings: n2 };\n default:\n throw new j2({ functionality: `tool choice type: ${i3}` });\n }\n}\nvar oa = class {\n constructor(e4, t2) {\n this.specificationVersion = `v2`, this.supportedUrls = { "image/*": [/^https?:\\/\\/.*$/] }, this.modelId = e4, this.config = t2;\n }\n get provider() {\n return this.config.provider;\n }\n async getArgs({ prompt: e4, maxOutputTokens: t2, temperature: n2, topP: r2, topK: i3, frequencyPenalty: a4, presencePenalty: o3, stopSequences: s4, seed: c4, responseFormat: l3, providerOptions: u3, tools: d2, toolChoice: f3 }) {\n let p3 = [], m3 = await L2({ provider: `xai`, providerOptions: u3, schema: na }) ?? {};\n i3 != null && p3.push({ type: `unsupported-setting`, setting: `topK` }), a4 != null && p3.push({ type: `unsupported-setting`, setting: `frequencyPenalty` }), o3 != null && p3.push({ type: `unsupported-setting`, setting: `presencePenalty` }), s4 != null && p3.push({ type: `unsupported-setting`, setting: `stopSequences` }), l3 != null && l3.type === `json` && l3.schema != null && p3.push({ type: `unsupported-setting`, setting: `responseFormat`, details: `JSON response format schema is not supported` });\n let { messages: h3, warnings: g3 } = Ji(e4);\n p3.push(...g3);\n let { tools: _3, toolChoice: v3, toolWarnings: y3 } = aa({ tools: d2, toolChoice: f3 });\n return p3.push(...y3), { args: { model: this.modelId, max_tokens: t2, temperature: n2, top_p: r2, seed: c4, reasoning_effort: m3.reasoningEffort, response_format: l3?.type === `json` ? l3.schema == null ? { type: `json_object` } : { type: `json_schema`, json_schema: { name: l3.name ?? `response`, schema: l3.schema, strict: true } } : undefined, search_parameters: m3.searchParameters ? { mode: m3.searchParameters.mode, return_citations: m3.searchParameters.returnCitations, from_date: m3.searchParameters.fromDate, to_date: m3.searchParameters.toDate, max_search_results: m3.searchParameters.maxSearchResults, sources: m3.searchParameters.sources?.map((e5) => ({ type: e5.type, ...e5.type === `web` && { country: e5.country, excluded_websites: e5.excludedWebsites, allowed_websites: e5.allowedWebsites, safe_search: e5.safeSearch }, ...e5.type === `x` && { excluded_x_handles: e5.excludedXHandles, included_x_handles: e5.includedXHandles ?? e5.xHandles, post_favorite_count: e5.postFavoriteCount, post_view_count: e5.postViewCount }, ...e5.type === `news` && { country: e5.country, excluded_websites: e5.excludedWebsites, safe_search: e5.safeSearch }, ...e5.type === `rss` && { links: e5.links } })) } : undefined, messages: h3, tools: _3, tool_choice: v3 }, warnings: p3 };\n }\n async doGenerate(e4) {\n let { args: t2, warnings: n2 } = await this.getArgs(e4), { responseHeaders: r2, value: i3, rawValue: a4 } = await R2({ url: `${this.config.baseURL ?? `https://api.x.ai/v1`}/chat/completions`, headers: M2(this.config.headers(), e4.headers), body: t2, failedResponseHandler: ia, successfulResponseHandler: W2(ca), abortSignal: e4.abortSignal, fetch: this.config.fetch }), o3 = i3.choices[0], s4 = [];\n if (o3.message.content != null && o3.message.content.length > 0) {\n let e5 = o3.message.content, n3 = t2.messages[t2.messages.length - 1];\n n3?.role === `assistant` && e5 === n3.content && (e5 = ``), e5.length > 0 && s4.push({ type: `text`, text: e5 });\n }\n if (o3.message.reasoning_content != null && o3.message.reasoning_content.length > 0 && s4.push({ type: `reasoning`, text: o3.message.reasoning_content }), o3.message.tool_calls != null)\n for (let e5 of o3.message.tool_calls)\n s4.push({ type: `tool-call`, toolCallId: e5.id, toolName: e5.function.name, input: e5.function.arguments });\n if (i3.citations != null)\n for (let e5 of i3.citations)\n s4.push({ type: `source`, sourceType: `url`, id: this.config.generateId(), url: e5 });\n return { content: s4, finishReason: Xi(o3.finish_reason), usage: { inputTokens: i3.usage.prompt_tokens, outputTokens: i3.usage.completion_tokens, totalTokens: i3.usage.total_tokens, reasoningTokens: i3.usage.completion_tokens_details?.reasoning_tokens ?? undefined }, request: { body: t2 }, response: { ...Yi(i3), headers: r2, body: a4 }, warnings: n2 };\n }\n async doStream(e4) {\n let { args: t2, warnings: n2 } = await this.getArgs(e4), r2 = { ...t2, stream: true, stream_options: { include_usage: true } }, { responseHeaders: i3, value: a4 } = await R2({ url: `${this.config.baseURL ?? `https://api.x.ai/v1`}/chat/completions`, headers: M2(this.config.headers(), e4.headers), body: r2, failedResponseHandler: ia, successfulResponseHandler: U2(la), abortSignal: e4.abortSignal, fetch: this.config.fetch }), o3 = `unknown`, s4 = { inputTokens: undefined, outputTokens: undefined, totalTokens: undefined }, c4 = true, l3 = {}, u3 = {}, d2 = this;\n return { stream: a4.pipeThrough(new TransformStream({ start(e5) {\n e5.enqueue({ type: `stream-start`, warnings: n2 });\n }, transform(t3, n3) {\n if (e4.includeRawChunks && n3.enqueue({ type: `raw`, rawValue: t3.rawValue }), !t3.success) {\n n3.enqueue({ type: `error`, error: t3.error });\n return;\n }\n let i4 = t3.value;\n if (c4 &&= (n3.enqueue({ type: `response-metadata`, ...Yi(i4) }), false), i4.citations != null)\n for (let e5 of i4.citations)\n n3.enqueue({ type: `source`, sourceType: `url`, id: d2.config.generateId(), url: e5 });\n i4.usage != null && (s4.inputTokens = i4.usage.prompt_tokens, s4.outputTokens = i4.usage.completion_tokens, s4.totalTokens = i4.usage.total_tokens, s4.reasoningTokens = i4.usage.completion_tokens_details?.reasoning_tokens ?? undefined);\n let a5 = i4.choices[0];\n if (a5?.finish_reason != null && (o3 = Xi(a5.finish_reason)), a5?.delta == null)\n return;\n let { delta: f3, index: p3 } = a5;\n if (f3.content != null && f3.content.length > 0) {\n let e5 = f3.content, t4 = r2.messages[r2.messages.length - 1];\n if (t4?.role === `assistant` && e5 === t4.content)\n return;\n let a6 = `text-${i4.id || p3}`;\n l3[a6] ?? (l3[a6] = { type: `text` }, n3.enqueue({ type: `text-start`, id: a6 })), n3.enqueue({ type: `text-delta`, id: a6, delta: e5 });\n }\n if (f3.reasoning_content != null && f3.reasoning_content.length > 0) {\n let e5 = `reasoning-${i4.id || p3}`;\n if (u3[e5] === f3.reasoning_content)\n return;\n u3[e5] = f3.reasoning_content, l3[e5] ?? (l3[e5] = { type: `reasoning` }, n3.enqueue({ type: `reasoning-start`, id: e5 })), n3.enqueue({ type: `reasoning-delta`, id: e5, delta: f3.reasoning_content });\n }\n if (f3.tool_calls != null)\n for (let e5 of f3.tool_calls) {\n let t4 = e5.id;\n n3.enqueue({ type: `tool-input-start`, id: t4, toolName: e5.function.name }), n3.enqueue({ type: `tool-input-delta`, id: t4, delta: e5.function.arguments }), n3.enqueue({ type: `tool-input-end`, id: t4 }), n3.enqueue({ type: `tool-call`, toolCallId: t4, toolName: e5.function.name, input: e5.function.arguments });\n }\n }, flush(e5) {\n for (let [t3, n3] of Object.entries(l3))\n e5.enqueue({ type: n3.type === `text` ? `text-end` : `reasoning-end`, id: t3 });\n e5.enqueue({ type: `finish`, finishReason: o3, usage: s4 });\n } })), request: { body: r2 }, response: { headers: i3 } };\n }\n};\nvar sa = exports_external.object({ prompt_tokens: exports_external.number(), completion_tokens: exports_external.number(), total_tokens: exports_external.number(), completion_tokens_details: exports_external.object({ reasoning_tokens: exports_external.number().nullish() }).nullish() });\nvar ca = exports_external.object({ id: exports_external.string().nullish(), created: exports_external.number().nullish(), model: exports_external.string().nullish(), choices: exports_external.array(exports_external.object({ message: exports_external.object({ role: exports_external.literal(`assistant`), content: exports_external.string().nullish(), reasoning_content: exports_external.string().nullish(), tool_calls: exports_external.array(exports_external.object({ id: exports_external.string(), type: exports_external.literal(`function`), function: exports_external.object({ name: exports_external.string(), arguments: exports_external.string() }) })).nullish() }), index: exports_external.number(), finish_reason: exports_external.string().nullish() })), object: exports_external.literal(`chat.completion`), usage: sa, citations: exports_external.array(exports_external.string().url()).nullish() });\nvar la = exports_external.object({ id: exports_external.string().nullish(), created: exports_external.number().nullish(), model: exports_external.string().nullish(), choices: exports_external.array(exports_external.object({ delta: exports_external.object({ role: exports_external.enum([`assistant`]).optional(), content: exports_external.string().nullish(), reasoning_content: exports_external.string().nullish(), tool_calls: exports_external.array(exports_external.object({ id: exports_external.string(), type: exports_external.literal(`function`), function: exports_external.object({ name: exports_external.string(), arguments: exports_external.string() }) })).nullish() }), finish_reason: exports_external.string().nullish(), index: exports_external.number() })), usage: sa.nullish(), citations: exports_external.array(exports_external.string().url()).nullish() });\nvar ua = `2.0.23`;\nvar da = { errorSchema: ra, errorToMessage: (e4) => e4.error.message };\nfunction fa(e4 = {}) {\n let t2 = K2(e4.baseURL ?? `https://api.x.ai/v1`), n2 = () => P2({ Authorization: `Bearer ${I2({ apiKey: e4.apiKey, environmentVariableName: `XAI_API_KEY`, description: `xAI API key` })}`, ...e4.headers }, `ai-sdk/xai/${ua}`), r2 = (r3) => new oa(r3, { provider: `xai.chat`, baseURL: t2, headers: n2, generateId: F2, fetch: e4.fetch }), i3 = (r3) => new Ki(r3, { provider: `xai.image`, url: ({ path: e5 }) => `${t2}${e5}`, headers: n2, fetch: e4.fetch, errorStructure: da }), a4 = (e5) => r2(e5);\n return a4.languageModel = r2, a4.chat = r2, a4.textEmbeddingModel = (e5) => {\n throw new k2({ modelId: e5, modelType: `textEmbeddingModel` });\n }, a4.imageModel = i3, a4.image = i3, a4;\n}\nfa();\nvar ma = `BLINK_API_URL`;\n\n// src/server.ts\nfunction startInternalAPIServer() {\n let blinkAuthToken;\n const getClient = () => {\n return new AgentInvocationClient({\n baseURL: process.env[InternalAPIServerURLEnvironmentVariable],\n authToken: blinkAuthToken\n });\n };\n const port = process.env[InternalAPIServerListenPortEnvironmentVariable] ? parseInt(process.env[InternalAPIServerListenPortEnvironmentVariable]) : 12345;\n const store = {\n get(key) {\n return getClient().getStorage(key);\n },\n set(key, value) {\n return getClient().setStorage(key, value);\n },\n delete(key) {\n return getClient().deleteStorage(key);\n },\n list(prefix, options) {\n return getClient().listStorage(prefix, options);\n }\n };\n const otlp = {\n traces(request) {\n return getClient().proxyOtlpTraces(request);\n }\n };\n const chat = {\n upsert: async (key) => {\n const resp = await getClient().upsertChat(JSON.stringify(key));\n return {\n created: resp.created,\n id: resp.id,\n createdAt: resp.created_at\n };\n },\n delete: async (id) => {\n await getClient().deleteChat(id);\n },\n deleteMessages: async (id, messageIds) => {\n await getClient().deleteMessages(id, messageIds);\n },\n get: async (id) => {\n const resp = await getClient().getChat(id);\n if (!resp) {\n return;\n }\n return {\n id: resp.id,\n createdAt: resp.createdAt\n };\n },\n getMessages: async (id) => {\n const messages = await getClient().getMessages(id);\n return messages.map((message) => ({\n id: message.id,\n role: message.role,\n parts: message.parts,\n metadata: message.metadata\n }));\n },\n start: async (id) => {\n await getClient().startChat(id);\n },\n stop: async (id) => {\n await getClient().stopChat(id);\n },\n sendMessages: async (id, messages, options) => {\n await getClient().sendMessages(id, {\n messages: messages.map((msg) => ({\n id: msg.id,\n role: msg.role,\n parts: msg.parts,\n metadata: msg.metadata\n })),\n behavior: options?.behavior ?? "enqueue"\n });\n }\n };\n const server = createServer(createServerAdapter((request) => {\n return ve.fetch(request, {\n chat,\n store,\n otlp\n });\n }));\n server.listen(port, "127.0.0.1");\n process.env[ma] = `http://127.0.0.1:${port}`;\n return {\n server,\n port,\n setAuthToken(authToken) {\n blinkAuthToken = authToken;\n process.env["BLINK_INVOCATION_AUTH_TOKEN"] = authToken;\n }\n };\n}\nasync function startAgentServer(entrypoint, port, unref = false) {\n const priorEnvPort = process.env.PORT;\n process.env.PORT = port.toString();\n const originalListen = Server.prototype.listen;\n const listeningPromise = new Promise((resolve, reject) => {\n Server.prototype.listen = function(...args) {\n this.on("listening", () => {\n resolve(undefined);\n });\n this.on("error", (err) => {\n reject(err);\n });\n if (unref) {\n this.unref();\n }\n return originalListen.apply(this, args);\n };\n });\n await import(entrypoint);\n process.env.PORT = priorEnvPort;\n const agentUrl = `http://127.0.0.1:${port}`;\n const handler = createServerAdapter((request) => {\n const reqURL = new URL(request.url);\n const newURL = new URL(agentUrl);\n newURL.pathname = reqURL.pathname;\n newURL.search = reqURL.search;\n return fetch(newURL.toString(), request);\n });\n await listeningPromise;\n return handler;\n}\n\n// src/lambda/wrapper-lambda.ts\nvar { setAuthToken, server, port } = startInternalAPIServer();\nserver.unref();\nif (!process.env.ENTRYPOINT) {\n throw new Error("developer error: ENTRYPOINT is not set");\n}\nvar agent = await startAgentServer(resolve(process.env.ENTRYPOINT), port + 1, true);\nvar handler = awslambda.streamifyResponse(async (event, responseStream, context) => {\n const waitUntilSymbol = Symbol.for("@blink/waitUntil");\n let waitUntilPromises = [];\n globalThis[waitUntilSymbol] = (promise2) => {\n waitUntilPromises.push(promise2);\n };\n const isV2 = "rawPath" in event;\n const path = isV2 ? event.rawPath : event.path;\n const query = isV2 ? event.rawQueryString : new URLSearchParams(event.queryStringParameters || {}).toString();\n const method = isV2 ? event.requestContext?.http?.method : event.httpMethod;\n const url2 = new URL(path + (query ? `?${query}` : ""), "https://lambda.internal");\n const headers = buildHeaders(event);\n for (const [k3, v3] of headers.entries()) {\n if (k3.toLowerCase() === BlinkInvocationTokenHeader.toLowerCase()) {\n setAuthToken(v3);\n headers.delete(k3);\n break;\n }\n }\n let body;\n if (event.body != null && method !== "GET" && method !== "HEAD") {\n body = event.isBase64Encoded ? Buffer.from(event.body, "base64") : event.body;\n }\n const controller = new AbortController;\n const onCloseOrError = () => {\n controller.abort();\n };\n responseStream.on("close", onCloseOrError);\n responseStream.on("error", onCloseOrError);\n const msLeft = Math.max(0, context.getRemainingTimeInMillis() - 5000);\n const timeout = setTimeout(() => controller.abort(), msLeft);\n try {\n const res = await agent.fetch(url2, { method, body, headers, signal: controller.signal }, { event, lambdaContext: context });\n const resHeaders = {};\n res.headers.forEach((value, key) => {\n resHeaders[key] = value;\n });\n const cookies = res.headers.getSetCookie?.() ?? (res.headers.get("set-cookie") ? [res.headers.get("set-cookie")] : []);\n const http = awslambda.HttpResponseStream.from(responseStream, {\n statusCode: res.status,\n headers: resHeaders,\n cookies\n });\n if (res.body) {\n await res.body.pipeTo(Writable.toWeb(http), { signal: controller.signal });\n } else {\n http.end();\n }\n } catch (err) {\n try {\n const http = awslambda.HttpResponseStream.from(responseStream, {\n statusCode: controller.signal.aborted ? 499 : 502,\n headers: { "content-type": "application/json" }\n });\n http.write(JSON.stringify({\n message: controller.signal.aborted ? "client closed" : "upstream error"\n }));\n http.end();\n } catch {}\n } finally {\n clearTimeout(timeout);\n responseStream.off("close", onCloseOrError);\n responseStream.off("error", onCloseOrError);\n const flushController = new AbortController;\n const flushTimeout = setTimeout(() => flushController.abort("timeout"), 5000);\n try {\n await Promise.allSettled(waitUntilPromises);\n await agent.fetch(new URL("/_agent/flush-otel", "http://lambda.internal"), {\n method: "POST",\n signal: flushController.signal\n });\n } catch {} finally {\n clearTimeout(flushTimeout);\n }\n }\n});\nfunction buildHeaders(event) {\n const out = new Headers;\n const hv1 = event?.headers ?? {};\n for (const [k3, v3] of Object.entries(hv1)) {\n if (v3 == null)\n continue;\n out.set(k3, String(v3));\n }\n const mv = event?.multiValueHeaders ?? {};\n for (const [k3, arr] of Object.entries(mv)) {\n if (!Array.isArray(arr))\n continue;\n out.delete(k3);\n for (const v3 of arr)\n out.append(k3, String(v3));\n }\n if (Array.isArray(event?.cookies) && event.cookies.length) {\n const existing = out.get("cookie");\n const merged = [existing, event.cookies.join("; ")].filter(Boolean).join("; ");\n out.set("cookie", merged);\n }\n if (!out.has("x-forwarded-proto"))\n out.set("x-forwarded-proto", "https");\n if (!out.has("x-forwarded-host") && out.has("host")) {\n out.set("x-forwarded-host", out.get("host"));\n }\n const sourceIp = event?.requestContext?.http?.sourceIp ?? event?.requestContext?.identity?.sourceIp;\n if (sourceIp) {\n const xff = out.get("x-forwarded-for");\n out.set("x-forwarded-for", xff ? `${xff}, ${sourceIp}` : sourceIp);\n }\n return out;\n}\nexport {\n handler\n};\n';
diff --git a/packages/api/runtime/src/lambda/wrapper-lambda.test.ts b/packages/api/runtime/src/lambda/wrapper-lambda.test.ts
new file mode 100644
index 0000000..f0729af
--- /dev/null
+++ b/packages/api/runtime/src/lambda/wrapper-lambda.test.ts
@@ -0,0 +1,194 @@
+import { generateAgentInvocationToken } from "@blink.so/api/agents/me/server";
+import { serve } from "@blink.so/api/test";
+import {
+ BlinkInvocationTokenHeader,
+ InternalAPIServerListenPortEnvironmentVariable,
+ InternalAPIServerURLEnvironmentVariable,
+} from "@blink.so/runtime/types";
+import { afterAll, beforeAll, beforeEach, expect, test } from "bun:test";
+import { rm } from "node:fs/promises";
+import { tmpdir } from "node:os";
+import { join } from "node:path";
+import { Writable } from "node:stream";
+import { TransformStream, WritableStream } from "node:stream/web";
+import llambaWrapper from "./wrapper-lambda.generated";
+
+let testFile: string;
+let toRemove: string[];
+
+// Track active HTTP servers so we can forcefully close them after tests
+const activeServers: Set = new Set();
+
+beforeAll(async () => {
+ delete process.env.ENTRYPOINT;
+ testFile = join(tmpdir(), `${crypto.randomUUID()}.js`);
+ await Bun.write(testFile, llambaWrapper);
+ toRemove = [testFile];
+
+ // Monkey-patch Server.prototype.listen to track all servers
+ const http = await import("node:http");
+ const Server = http.Server;
+ const originalListen = Server.prototype.listen;
+ Server.prototype.listen = function (...args: any[]) {
+ activeServers.add(this);
+ return originalListen.apply(this, args);
+ };
+});
+
+const seen: number[] = [];
+beforeEach(() => {
+ let port = Math.floor(Math.random() * 20000 + 10000);
+ while (seen.includes(port)) {
+ port = Math.floor(Math.random() * 20000 + 10000);
+ }
+ seen.push(port);
+ delete require.cache[testFile];
+ process.env[InternalAPIServerListenPortEnvironmentVariable] = port.toString();
+});
+
+afterAll(async () => {
+ // Close all HTTP servers created during tests
+ // This is necessary because even with .unref(), servers created
+ // by the lambda wrapper and fixture code can keep the process alive
+ for (const server of activeServers) {
+ try {
+ if (server.listening) {
+ server.close();
+ }
+ } catch (e) {
+ // Ignore errors
+ }
+ }
+ activeServers.clear();
+
+ for (const file of toRemove) {
+ await rm(file);
+ }
+});
+
+test(
+ "using the storage api",
+ async () => {
+ const { url, helpers, bindings, stop } = await serve();
+ try {
+ process.env[InternalAPIServerURLEnvironmentVariable] = url.toString();
+ const { client } = await helpers.createUser();
+
+ const org = await client.organizations.create({
+ name: "test-org",
+ });
+ const agent = await client.agents.create({
+ name: "test-agent",
+ description: "Test Description",
+ organization_id: org.id,
+ });
+
+ const deployment = await client.agents.deployments.create({
+ agent_id: agent.id,
+ target: "production",
+ output_files: [
+ {
+ path: "test.js",
+ data: "console.log('Hello, world!');",
+ },
+ ],
+ });
+
+ const target = await (
+ await bindings.database()
+ ).selectAgentDeploymentTargetByName(agent.id, "production");
+ if (!target) {
+ throw new Error("Target not found");
+ }
+ const token = await generateAgentInvocationToken(bindings.AUTH_SECRET, {
+ agent_id: agent.id,
+ agent_deployment_id: deployment.id,
+ agent_deployment_target_id: target.id,
+ });
+
+ const fetch = await mockHandler(
+ require.resolve("./fixtures/client-using-storage")
+ );
+ const resp = await fetch(
+ new Request("http://localhost:3000/", {
+ headers: {
+ [BlinkInvocationTokenHeader]: token,
+ },
+ })
+ );
+ expect(await resp.text()).toBe("Hello, world!");
+ // This test can take a lil.
+ } finally {
+ stop();
+ // Force close all HTTP servers to prevent hanging
+ // The lambda wrapper and fixture create servers that need explicit cleanup
+ for (const server of activeServers) {
+ try {
+ if (server.listening) {
+ server.close();
+ }
+ } catch (e) {
+ // Ignore errors during cleanup
+ }
+ }
+ activeServers.clear();
+ }
+ },
+ { timeout: 10_000 }
+);
+
+// mockHandler mocks out AWS Lambda's handler.
+// The fixture should be the path to a TS file.
+const mockHandler = async (fixture: string) => {
+ let statusCode: number;
+ let headers: Record;
+ let cookies: string[];
+
+ globalThis.awslambda = {
+ streamifyResponse: (h) => {
+ return h;
+ },
+ HttpResponseStream: {
+ from: (
+ body: WritableStream,
+ options: {
+ statusCode: number;
+ headers: Record;
+ cookies: string[];
+ }
+ ) => {
+ statusCode = options.statusCode;
+ headers = options.headers;
+ cookies = options.cookies;
+ return body;
+ },
+ },
+ } as any;
+
+ process.env.ENTRYPOINT = require.resolve(fixture);
+ const result = await import(testFile);
+ const handler = result.handler;
+
+ return async (request: Request) => {
+ const url = new URL(request.url);
+ const event = {
+ rawPath: url.pathname,
+ rawQueryString: url.search,
+ requestContext: {
+ http: {
+ method: request.method,
+ },
+ },
+ headers: Object.fromEntries(request.headers.entries()),
+ body: await request.text(),
+ };
+ const transform = new TransformStream();
+ handler(event, Writable.fromWeb(transform.writable), {
+ getRemainingTimeInMillis: () => 10000,
+ });
+ return new Response(transform.readable as ReadableStream, {
+ status: statusCode,
+ headers: new Headers(headers),
+ });
+ };
+};
diff --git a/packages/api/runtime/src/lambda/wrapper-lambda.ts b/packages/api/runtime/src/lambda/wrapper-lambda.ts
new file mode 100644
index 0000000..d8bc491
--- /dev/null
+++ b/packages/api/runtime/src/lambda/wrapper-lambda.ts
@@ -0,0 +1,221 @@
+// The purpose of this file is to wrap the Lambda runtime
+// request/response handling in a way that is compatible with
+// the Blink Agent exports.
+//
+// After any edits are made, run `./scripts/generate.ts` to
+// regenerate this file. The generated file is source-controlled.
+
+import { BlinkInvocationTokenHeader } from "@blink.so/runtime/types";
+import { resolve } from "node:path";
+import { Writable } from "node:stream";
+import { startAgentServer, startInternalAPIServer } from "../server";
+
+const { setAuthToken, server, port } = startInternalAPIServer();
+// It is *extremely* important for Lambda's that we unref the server.
+// Otherwise, the Lambda will not exit when requests are made.
+// It will hang until the timeout.
+server.unref();
+
+if (!process.env.ENTRYPOINT) {
+ throw new Error("developer error: ENTRYPOINT is not set");
+}
+
+// We must unref here, otherwise the Lambda will stay running.
+const agent = await startAgentServer(
+ resolve(process.env.ENTRYPOINT),
+ port + 1,
+ true
+);
+
+export const handler = awslambda.streamifyResponse(
+ async (event, responseStream, context) => {
+ // This prevents Lambda's from staying alive after we respond to a request.
+ // context.callbackWaitsForEmptyEventLoop = false;
+
+ // Lambda's never handle requests concurrently, but they do sequentially.
+ //
+ // We can just reset the waitUntil func at the beginning of requests
+ // to ensure they get a clean context.
+ //
+ // This is an internal symbol we use to expose waitUntil to agent code.
+ // It's not exported from the runtime package, so it's safe to use.
+ // We use a Symbol to avoid collisions with other libraries.
+ const waitUntilSymbol = Symbol.for("@blink/waitUntil");
+ // Storage for promises registered via waitUntil
+ const waitUntilPromises: Promise[] = [];
+ // Expose waitUntil on globalThis
+ (globalThis as any)[waitUntilSymbol] = (promise: Promise) => {
+ waitUntilPromises.push(promise);
+ };
+
+ const isV2 = "rawPath" in event;
+ const path = isV2 ? event.rawPath : event.path;
+ const query = isV2
+ ? event.rawQueryString
+ : new URLSearchParams(event.queryStringParameters || {}).toString();
+ const method = isV2 ? event.requestContext?.http?.method : event.httpMethod;
+
+ const url = new URL(
+ path + (query ? `?${query}` : ""),
+ "https://lambda.internal"
+ );
+
+ // Build canonical Headers
+ const headers = buildHeaders(event);
+
+ // Strip Blink header (case-insensitive)
+ for (const [k, v] of headers.entries()) {
+ if (k.toLowerCase() === BlinkInvocationTokenHeader.toLowerCase()) {
+ setAuthToken(v);
+ headers.delete(k);
+ break;
+ }
+ }
+
+ let body: string | Buffer | undefined;
+ if (event.body != null && method !== "GET" && method !== "HEAD") {
+ body = event.isBase64Encoded
+ ? Buffer.from(event.body, "base64")
+ : event.body;
+ }
+
+ // It is *extremely* important that we have a controller here.
+ // If we do not, it's possible upstream that the request closes,
+ // and we don't notice - then the Lambda's run until timeout.
+ const controller = new AbortController();
+ const onCloseOrError = () => {
+ controller.abort();
+ };
+ responseStream.on("close", onCloseOrError);
+ responseStream.on("error", onCloseOrError);
+
+ // abort a bit before Lambda hard timeout
+ // we need a bit of extra time to call `/_agent/flush-otel` after the main request is finished
+ const msLeft = Math.max(0, context.getRemainingTimeInMillis() - 5000);
+ const timeout = setTimeout(() => controller.abort(), msLeft);
+
+ try {
+ const res: Response = await agent.fetch(
+ url,
+ { method, body, headers, signal: controller.signal },
+ { event, lambdaContext: context }
+ );
+
+ const resHeaders: Record = {};
+ res.headers.forEach((value, key) => {
+ resHeaders[key] = value;
+ });
+
+ const cookies =
+ res.headers.getSetCookie?.() ??
+ (res.headers.get("set-cookie")
+ ? [res.headers.get("set-cookie") as string]
+ : []);
+
+ const http = awslambda.HttpResponseStream.from(responseStream, {
+ statusCode: res.status,
+ headers: resHeaders,
+ cookies,
+ });
+
+ if (res.body) {
+ await res.body.pipeTo(
+ Writable.toWeb(http) as WritableStream>,
+ { signal: controller.signal }
+ );
+ } else {
+ http.end();
+ }
+ } catch (err) {
+ try {
+ const http = awslambda.HttpResponseStream.from(responseStream, {
+ statusCode: controller.signal.aborted ? 499 : 502,
+ headers: { "content-type": "application/json" },
+ });
+ http.write(
+ JSON.stringify({
+ message: controller.signal.aborted
+ ? "client closed"
+ : "upstream error",
+ })
+ );
+ http.end();
+ } catch {}
+ } finally {
+ clearTimeout(timeout);
+ responseStream.off("close", onCloseOrError);
+ responseStream.off("error", onCloseOrError);
+
+ const flushController = new AbortController();
+ const flushTimeout = setTimeout(
+ () => flushController.abort("timeout"),
+ 5000
+ );
+ try {
+ // Wait for all waitUntil promises to settle before flushing
+ await Promise.allSettled(waitUntilPromises);
+
+ // Ensure all OpenTelemetry spans are flushed before the Lambda exits.
+ await agent.fetch(
+ new URL("/_agent/flush-otel", "http://lambda.internal"),
+ {
+ method: "POST",
+ signal: flushController.signal,
+ }
+ );
+ } catch {
+ // Ignore errors. Older agents may not have the flush endpoint.
+ } finally {
+ clearTimeout(flushTimeout);
+ }
+ }
+ }
+);
+
+function buildHeaders(event: any): Headers {
+ const out = new Headers();
+
+ // 1) Start with single-value headers
+ const hv1 = event?.headers ?? {};
+ for (const [k, v] of Object.entries(hv1)) {
+ if (v == null) continue;
+ out.set(k, String(v));
+ }
+
+ // 2) Merge multiValueHeaders (v1)
+ const mv = event?.multiValueHeaders ?? {};
+ for (const [k, arr] of Object.entries(mv)) {
+ if (!Array.isArray(arr)) continue;
+ // Remove any single value we might have set, then append all
+ out.delete(k);
+ for (const v of arr) out.append(k, String(v));
+ }
+
+ // 3) Merge cookies (v2 puts them outside headers)
+ if (Array.isArray(event?.cookies) && event.cookies.length) {
+ // If caller already sent Cookie header(s), append
+ const existing = out.get("cookie");
+ const merged = [existing, event.cookies.join("; ")]
+ .filter(Boolean)
+ .join("; ");
+ out.set("cookie", merged);
+ }
+
+ // 4) Forwarding hints useful to Hono/URL building
+ // (only set if not already present)
+ if (!out.has("x-forwarded-proto")) out.set("x-forwarded-proto", "https");
+ if (!out.has("x-forwarded-host") && out.has("host")) {
+ out.set("x-forwarded-host", out.get("host")!);
+ }
+
+ // 5) Optional: source IP → X-Forwarded-For
+ const sourceIp =
+ event?.requestContext?.http?.sourceIp ??
+ event?.requestContext?.identity?.sourceIp;
+ if (sourceIp) {
+ const xff = out.get("x-forwarded-for");
+ out.set("x-forwarded-for", xff ? `${xff}, ${sourceIp}` : sourceIp);
+ }
+
+ return out;
+}
diff --git a/packages/api/runtime/src/node/wrapper-node.generated.ts b/packages/api/runtime/src/node/wrapper-node.generated.ts
new file mode 100644
index 0000000..3a7f0d1
--- /dev/null
+++ b/packages/api/runtime/src/node/wrapper-node.generated.ts
@@ -0,0 +1,4 @@
+// This file has been generated by the /home/kyle/projects/coder/blink.so/packages/runtime/scripts/generate.ts script.
+// Do not edit this file manually.
+
+export default 'import{createRequire as $j}from"node:module";var lj=Object.defineProperty;var P=(i,n)=>()=>(n||i((n={exports:{}}).exports,n),n.exports);var Xn=(i,n)=>{for(var r in n)lj(i,r,{get:n[r],enumerable:!0,configurable:!0,set:(u)=>n[r]=()=>u})};var T=$j(import.meta.url);var Do=P((wQ,Q0)=>{function Uj(){return Object.keys(globalThis).some((i)=>i.startsWith("__NEXT"))}Q0.exports=function i(){if(globalThis.Deno)return!0;if(globalThis.Bun)return!0;if(Uj())return!0;return!1}});var uw=P((bQ,rw)=>{var{defineProperty:Nu,getOwnPropertyDescriptor:Nj,getOwnPropertyNames:zj}=Object,Wj=Object.prototype.hasOwnProperty,x=(i,n)=>Nu(i,"name",{value:n,configurable:!0}),Dj=(i,n)=>{for(var r in n)Nu(i,r,{get:n[r],enumerable:!0})},Jj=(i,n,r,u)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of zj(n))!Wj.call(i,t)&&t!==r&&Nu(i,t,{get:()=>n[t],enumerable:!(u=Nj(n,t))||u.enumerable});return i},Ej=(i)=>Jj(Nu({},"__esModule",{value:!0}),i),m0={};Dj(m0,{URLPattern:()=>tw});rw.exports=Ej(m0);var vt=class{type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(i,n,r,u,t,c){this.type=i,this.name=n,this.prefix=r,this.value=u,this.suffix=t,this.modifier=c}hasCustomName(){return this.name!==""&&typeof this.name!="number"}};x(vt,"Part");var Hj=/[$_\\p{ID_Start}]/u,Gj=/[$_\\u200C\\u200D\\p{ID_Continue}]/u,Eo=".*";function S0(i,n){return(n?/^[\\x00-\\xFF]*$/:/^[\\x00-\\x7F]*$/).test(i)}x(S0,"isASCII");function qo(i,n=!1){let r=[],u=0;for(;u{if(gl("OTHER_MODIFIER")??l("ASTERISK"),"tryConsumeModifier"),w=x((j)=>{let O=l(j);if(O!==void 0)return O;let{type:W,index:E}=r[g];throw new TypeError(`Unexpected ${W} at ${E}, expected ${j}`)},"mustConsume"),b=x(()=>{let j="",O;for(;O=l("CHAR")??l("ESCAPED_CHAR");)j+=O;return j},"consumeText"),v=x((j)=>j,"DefaultEncodePart"),f=n.encodePart||v,U="",z=x((j)=>{U+=j},"appendToPendingFixedValue"),J=x(()=>{U.length&&(t.push(new vt(3,"","",f(U),"",3)),U="")},"maybeAddPartFromPendingFixedValue"),N=x((j,O,W,E,X)=>{let H=3;switch(X){case"?":H=1;break;case"*":H=0;break;case"+":H=2;break}if(!O&&!W&&H===3){z(j);return}if(J(),!O&&!W){if(!j)return;t.push(new vt(3,"","",f(j),"",H));return}let Y;W?W==="*"?Y=Eo:Y=W:Y=u;let V=2;Y===u?(V=1,Y=""):Y===Eo&&(V=0,Y="");let Q;if(O?Q=O:W&&(Q=c++),_.has(Q))throw new TypeError(`Duplicate name \'${Q}\'.`);_.add(Q),t.push(new vt(V,Q,f(j),Y,f(E),H))},"addPart");for(;g-1)}return g||(u+=`(?=${c}|${t})`),new RegExp(u,Ho(r))}x(Lo,"partsToRegexp");var In={delimiter:"",prefixes:"",sensitive:!0,strict:!0},qj={delimiter:".",prefixes:"",sensitive:!0,strict:!0},Xj={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function B0(i,n){return i.length?i[0]==="/"?!0:!n||i.length<2?!1:(i[0]=="\\\\"||i[0]=="{")&&i[1]=="/":!1}x(B0,"isAbsolutePathname");function Io(i,n){return i.startsWith(n)?i.substring(n.length,i.length):i}x(Io,"maybeStripPrefix");function K0(i,n){return i.endsWith(n)?i.substr(0,i.length-n.length):i}x(K0,"maybeStripSuffix");function Yo(i){return!i||i.length<2?!1:i[0]==="["||(i[0]==="\\\\"||i[0]==="{")&&i[1]==="["}x(Yo,"treatAsIPv6Hostname");var V0=["ftp","file","http","https","ws","wss"];function Qo(i){if(!i)return!0;for(let n of V0)if(i.test(n))return!0;return!1}x(Qo,"isSpecialScheme");function M0(i,n){if(i=Io(i,"#"),n||i==="")return i;let r=new URL("https://example.com");return r.hash=i,r.hash?r.hash.substring(1,r.hash.length):""}x(M0,"canonicalizeHash");function x0(i,n){if(i=Io(i,"?"),n||i==="")return i;let r=new URL("https://example.com");return r.search=i,r.search?r.search.substring(1,r.search.length):""}x(x0,"canonicalizeSearch");function F0(i,n){return n||i===""?i:Yo(i)?Ao(i):So(i)}x(F0,"canonicalizeHostname");function P0(i,n){if(n||i==="")return i;let r=new URL("https://example.com");return r.password=i,r.password}x(P0,"canonicalizePassword");function y0(i,n){if(n||i==="")return i;let r=new URL("https://example.com");return r.username=i,r.username}x(y0,"canonicalizeUsername");function T0(i,n,r){if(r||i==="")return i;if(n&&!V0.includes(n))return new URL(`${n}:${i}`).pathname;let u=i[0]=="/";return i=new URL(u?i:"/-"+i,"https://example.com").pathname,u||(i=i.substring(2,i.length)),i}x(T0,"canonicalizePathname");function k0(i,n,r){return mo(n)===i&&(i=""),r||i===""?i:Bo(i)}x(k0,"canonicalizePort");function C0(i,n){return i=K0(i,":"),n||i===""?i:zu(i)}x(C0,"canonicalizeProtocol");function mo(i){switch(i){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}x(mo,"defaultPortForProtocol");function zu(i){if(i==="")return i;if(/^[-+.A-Za-z0-9]*$/.test(i))return i.toLowerCase();throw new TypeError(`Invalid protocol \'${i}\'.`)}x(zu,"protocolEncodeCallback");function R0(i){if(i==="")return i;let n=new URL("https://example.com");return n.username=i,n.username}x(R0,"usernameEncodeCallback");function Z0(i){if(i==="")return i;let n=new URL("https://example.com");return n.password=i,n.password}x(Z0,"passwordEncodeCallback");function So(i){if(i==="")return i;if(/[\\t\\n\\r #%/:<>?@[\\]^\\\\|]/g.test(i))throw new TypeError(`Invalid hostname \'${i}\'`);let n=new URL("https://example.com");return n.hostname=i,n.hostname}x(So,"hostnameEncodeCallback");function Ao(i){if(i==="")return i;if(/[^0-9a-fA-F[\\]:]/g.test(i))throw new TypeError(`Invalid IPv6 hostname \'${i}\'`);return i.toLowerCase()}x(Ao,"ipv6HostnameEncodeCallback");function Bo(i){if(i===""||/^[0-9]*$/.test(i)&&parseInt(i)<=65535)return i;throw new TypeError(`Invalid port \'${i}\'.`)}x(Bo,"portEncodeCallback");function e0(i){if(i==="")return i;let n=new URL("https://example.com");return n.pathname=i[0]!=="/"?"/-"+i:i,i[0]!=="/"?n.pathname.substring(2,n.pathname.length):n.pathname}x(e0,"standardURLPathnameEncodeCallback");function p0(i){return i===""?i:new URL(`data:${i}`).pathname}x(p0,"pathURLPathnameEncodeCallback");function d0(i){if(i==="")return i;let n=new URL("https://example.com");return n.search=i,n.search.substring(1,n.search.length)}x(d0,"searchEncodeCallback");function a0(i){if(i==="")return i;let n=new URL("https://example.com");return n.hash=i,n.hash.substring(1,n.hash.length)}x(a0,"hashEncodeCallback");var s0=class{#n;#i=[];#r={};#t=0;#u=1;#c=0;#g=0;#w=0;#b=0;#l=!1;constructor(i){this.#n=i}get result(){return this.#r}parse(){for(this.#i=qo(this.#n,!0);this.#t0)if(this.#G())this.#w-=1;else continue;if(this.#H()){this.#w+=1;continue}switch(this.#g){case 0:this.#W()&&this.#j(1);break;case 1:if(this.#W()){this.#L();let i=7,n=1;this.#D()?(i=2,n=3):this.#l&&(i=2),this.#o(i,n)}break;case 2:this.#N()?this.#j(3):(this.#z()||this.#f()||this.#v())&&this.#j(5);break;case 3:this.#J()?this.#o(4,1):this.#N()&&this.#o(5,1);break;case 4:this.#N()&&this.#o(5,1);break;case 5:this.#q()?this.#b+=1:this.#X()&&(this.#b-=1),this.#E()&&!this.#b?this.#o(6,1):this.#z()?this.#o(7,0):this.#f()?this.#o(8,1):this.#v()&&this.#o(9,1);break;case 6:this.#z()?this.#o(7,0):this.#f()?this.#o(8,1):this.#v()&&this.#o(9,1);break;case 7:this.#f()?this.#o(8,1):this.#v()&&this.#o(9,1);break;case 8:this.#v()&&this.#o(9,1);break;case 9:break;case 10:break}}this.#r.hostname!==void 0&&this.#r.port===void 0&&(this.#r.port="")}#o(i,n){switch(this.#g){case 0:break;case 1:this.#r.protocol=this.#_();break;case 2:break;case 3:this.#r.username=this.#_();break;case 4:this.#r.password=this.#_();break;case 5:this.#r.hostname=this.#_();break;case 6:this.#r.port=this.#_();break;case 7:this.#r.pathname=this.#_();break;case 8:this.#r.search=this.#_();break;case 9:this.#r.hash=this.#_();break;case 10:break}this.#g!==0&&i!==10&&([1,2,3,4].includes(this.#g)&&[6,7,8,9].includes(i)&&(this.#r.hostname??=""),[1,2,3,4,5,6].includes(this.#g)&&[8,9].includes(i)&&(this.#r.pathname??=this.#l?"/":""),[1,2,3,4,5,6,7].includes(this.#g)&&i===9&&(this.#r.search??="")),this.#O(i,n)}#O(i,n){this.#g=i,this.#c=this.#t+n,this.#t+=n,this.#u=0}#$(){this.#t=this.#c,this.#u=0}#j(i){this.#$(),this.#g=i}#U(i){return i<0&&(i=this.#i.length-i),i=0&&(i.pathname=si(u.pathname.substring(0,t+1),r)+i.pathname)}i.pathname=T0(i.pathname,i.protocol,r)}return typeof n.search=="string"&&(i.search=x0(n.search,r)),typeof n.hash=="string"&&(i.hash=M0(n.hash,r)),i}x(wt,"applyInit");function bt(i){return i.replace(/([+*?:{}()\\\\])/g,"\\\\$1")}x(bt,"escapePatternString");function iw(i){return i.replace(/([.+*?^${}()[\\]|/\\\\])/g,"\\\\$1")}x(iw,"escapeRegexpString");function nw(i,n){n.delimiter??="/#?",n.prefixes??="./",n.sensitive??=!1,n.strict??=!1,n.end??=!0,n.start??=!0,n.endsWith="";let r=".*",u=`[^${iw(n.delimiter)}]+?`,t=/[$_\\u200C\\u200D\\p{ID_Continue}]/u,c="";for(let g=0;g0?i[g-1]:null,w=g0?w.value[0]:"";l=t.test(b)}else l=!w.hasCustomName();if(!l&&!h.prefix.length&&$&&$.type===3){let b=$.value[$.value.length-1];l=n.prefixes.includes(b)}l&&(c+="{"),c+=bt(h.prefix),_&&(c+=`:${h.name}`),h.type===2?c+=`(${h.value})`:h.type===1?_||(c+=`(${u})`):h.type===0&&(!_&&(!$||$.type===3||$.modifier!==3||l||h.prefix!=="")?c+="*":c+=`(${r})`),h.type===1&&_&&h.suffix.length&&t.test(h.suffix[0])&&(c+="\\\\"),c+=bt(h.suffix),l&&(c+="}"),h.modifier!==3&&(c+=Tn(h.modifier))}return c}x(nw,"partsToPattern");var tw=class{#n;#i={};#r={};#t={};#u={};#c=!1;constructor(i={},n,r){try{let u;if(typeof n=="string"?u=n:r=n,typeof i=="string"){let h=new s0(i);if(h.parse(),i=h.result,u===void 0&&typeof i.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");i.baseURL=u}else{if(!i||typeof i!="object")throw new TypeError("parameter 1 is not of type \'string\' and cannot convert to dictionary.");if(u)throw new TypeError("parameter 1 is not of type \'string\'.")}typeof r>"u"&&(r={ignoreCase:!1});let t={ignoreCase:r.ignoreCase===!0},c={pathname:Ln,protocol:Ln,username:Ln,password:Ln,hostname:Ln,port:Ln,search:Ln,hash:Ln};this.#n=wt(c,i,!0),mo(this.#n.protocol)===this.#n.port&&(this.#n.port="");let g;for(g of Jo){if(!(g in this.#n))continue;let h={},_=this.#n[g];switch(this.#r[g]=[],g){case"protocol":Object.assign(h,In),h.encodePart=zu;break;case"username":Object.assign(h,In),h.encodePart=R0;break;case"password":Object.assign(h,In),h.encodePart=Z0;break;case"hostname":Object.assign(h,qj),Yo(_)?h.encodePart=Ao:h.encodePart=So;break;case"port":Object.assign(h,In),h.encodePart=Bo;break;case"pathname":Qo(this.#i.protocol)?(Object.assign(h,Xj,t),h.encodePart=e0):(Object.assign(h,In,t),h.encodePart=p0);break;case"search":Object.assign(h,In,t),h.encodePart=d0;break;case"hash":Object.assign(h,In,t),h.encodePart=a0;break}try{this.#u[g]=Xo(_,h),this.#i[g]=Lo(this.#u[g],this.#r[g],h),this.#t[g]=nw(this.#u[g],h),this.#c=this.#c||this.#u[g].some((l)=>l.type===2)}catch{throw new TypeError(`invalid ${g} pattern \'${this.#n[g]}\'.`)}}}catch(u){throw new TypeError(`Failed to construct \'URLPattern\': ${u.message}`)}}get[Symbol.toStringTag](){return"URLPattern"}test(i={},n){let r={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof i!="string"&&n)throw new TypeError("parameter 1 is not of type \'string\'.");if(typeof i>"u")return!1;try{typeof i=="object"?r=wt(r,i,!1):r=wt(r,Go(i,n),!1)}catch{return!1}let u;for(u of Jo)if(!this.#i[u].exec(r[u]))return!1;return!0}exec(i={},n){let r={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof i!="string"&&n)throw new TypeError("parameter 1 is not of type \'string\'.");if(typeof i>"u")return;try{typeof i=="object"?r=wt(r,i,!1):r=wt(r,Go(i,n),!1)}catch{return null}let u={};n?u.inputs=[i,n]:u.inputs=[i];let t;for(t of Jo){let c=this.#i[t].exec(r[t]);if(!c)return null;let g={};for(let[h,_]of this.#r[t].entries())if(typeof _=="string"||typeof _=="number"){let l=c[h+1];g[_]=l}u[t]={input:r[t]??"",groups:g}}return u}static compareComponent(i,n,r){let u=x((h,_)=>{for(let l of["type","modifier","prefix","value","suffix"]){if(h[l]<_[l])return-1;if(h[l]===_[l])continue;return 1}return 0},"comparePart"),t=new vt(3,"","","","",3),c=new vt(0,"","","","",3),g=x((h,_)=>{let l=0;for(;l{var{URLPattern:cw}=uw();ow.exports={URLPattern:cw};if(!globalThis.URLPattern)globalThis.URLPattern=cw});var Qn=P((bw)=>{Object.defineProperty(bw,"__esModule",{value:!0});bw.isPromise=Wu;bw.isActualPromise=_w;bw.handleMaybePromise=Yn;bw.fakePromise=nn;bw.createDeferredPromise=Lj;bw.iterateAsync=lw;bw.iterateAsyncVoid=lw;bw.fakeRejectPromise=kn;bw.mapMaybePromise=Ij;bw.mapAsyncIterator=Yj;bw.promiseLikeFinally=$w;bw.unfakePromise=ww;var Du=Symbol.for("@whatwg-node/promise-helpers/FakePromise");function Wu(i){return i?.then!=null}function _w(i){let n=i;return n&&n.then&&n.catch&&n.finally}function Yn(i,n,r,u){let t=nn().then(i).then(n,r);if(u)t=t.finally(u);return ww(t)}function nn(i){if(i&&_w(i))return i;if(Wu(i))return{then:(n,r)=>nn(i.then(n,r)),catch:(n)=>nn(i.then((r)=>r,n)),finally:(n)=>nn(n?$w(i,n):i),[Symbol.toStringTag]:"Promise"};return{then(n){if(n)try{return nn(n(i))}catch(r){return kn(r)}return this},catch(){return this},finally(n){if(n)try{return nn(n()).then(()=>i,()=>i)}catch(r){return kn(r)}return this},[Symbol.toStringTag]:"Promise",__fakePromiseValue:i,[Du]:"resolved"}}function Lj(){if(Promise.withResolvers)return Promise.withResolvers();let i,n;return{promise:new Promise(function u(t,c){i=t,n=c}),get resolve(){return i},get reject(){return n}}}function lw(i,n,r){if(i?.length===0)return;let u=i[Symbol.iterator](),t=0;function c(){let{done:g,value:h}=u.next();if(g)return;let _=!1;function l(){_=!0}return Yn(function $(){return n(h,l,t++)},function $(w){if(w)r?.push(w);if(_)return;return c()})}return c()}function kn(i){return{then(n,r){if(r)try{return nn(r(i))}catch(u){return kn(u)}return this},catch(n){if(n)try{return nn(n(i))}catch(r){return kn(r)}return this},finally(n){if(n)try{n()}catch(r){return kn(r)}return this},__fakeRejectError:i,[Symbol.toStringTag]:"Promise",[Du]:"rejected"}}function Ij(i,n,r){return Yn(()=>i,n,r)}function Yj(i,n,r,u){if(Symbol.asyncIterator in i)i=i[Symbol.asyncIterator]();let t,c,g;if(u){let l;g=($)=>{return l||=Yn(u,()=>$,()=>$),l}}if(typeof i.return==="function")t=i.return,c=(l)=>{let $=()=>{throw l};return t.call(i).then($,$)};function h(l){if(l.done)return g?g(l):l;return Yn(()=>l.value,($)=>Yn(()=>n($),hw,c))}let _;if(r){let l,$=r;_=(w)=>{return l||=Yn(()=>w,(b)=>Yn(()=>$(b),hw,c)),l}}return{next(){return i.next().then(h,_)},return(){let l=t?t.call(i).then(h,_):nn({value:void 0,done:!0});return g?l.then(g):l},throw(l){if(typeof i.throw==="function")return i.throw(l).then(h,_);if(c)return c(l);return kn(l)},[Symbol.asyncIterator](){return this}}}function hw(i){return{value:i,done:!1}}function Qj(i){return i?.[Du]==="resolved"}function mj(i){return i?.[Du]==="rejected"}function $w(i,n){if("finally"in i)return i.finally(n);return i.then((r)=>{let u=n();return Wu(u)?u.then(()=>r):r},(r)=>{let u=n();if(Wu(u))return u.then(()=>{throw r});else throw r})}function ww(i){if(Qj(i))return i.__fakePromiseValue;if(mj(i))throw i.__fakeRejectError;return i}});var Ko=P((NQ,vw)=>{var{EventEmitter:Cj}=T("node:events"),{inherits:Rj}=T("node:util");function Cn(i){if(typeof i==="string")i=Buffer.from(i);if(!Buffer.isBuffer(i))throw new TypeError("The needle has to be a String or a Buffer.");let n=i.length,r=n-1;if(n===0)throw new Error("The needle cannot be an empty String/Buffer.");if(n>256)throw new Error("The needle cannot have a length bigger than 256.");this.maxMatches=1/0,this.matches=0,this._occ=new Uint8Array(256).fill(n),this._lookbehind_size=0,this._needle=i,this._bufpos=0,this._lookbehind=Buffer.alloc(r);for(var u=0;u=0)this.emit("info",!1,this._lookbehind,0,this._lookbehind_size),this._lookbehind_size=0;else{let _=this._lookbehind_size+g;if(_>0)this.emit("info",!1,this._lookbehind,0,_);return this._lookbehind_size-=_,this._lookbehind.copy(this._lookbehind,0,_,this._lookbehind_size),i.copy(this._lookbehind,this._lookbehind_size),this._lookbehind_size+=n,this._bufpos=n,n}}if(g=i.indexOf(r,g+this._bufpos),g!==-1){if(++this.matches,g===0)this.emit("info",!0);else this.emit("info",!0,i,this._bufpos,g);return this._bufpos=g+u}if(g=n-t,g<0)g=0;while(g!==n&&(i[g]!==r[0]||Buffer.compare(i.subarray(g+1,n),r.subarray(1,n-g))!==0))++g;if(g!==n)i.copy(this._lookbehind,0,g,n),this._lookbehind_size=n-g;if(g!==0)this.emit("info",!1,i,this._bufpos,g);return this._bufpos=n,n};Cn.prototype._sbmh_lookup_char=function(i,n){return n<0?this._lookbehind[this._lookbehind_size+n]:i[n]};Cn.prototype._sbmh_memcmp=function(i,n,r){for(var u=0;u{var Zj=T("node:util").inherits,fw=T("node:stream").Readable;function Vo(i){fw.call(this,i)}Zj(Vo,fw);Vo.prototype._read=function(i){};Ow.exports=Vo});var Ju=P((WQ,Uw)=>{Uw.exports=function i(n,r,u){if(!n||n[r]===void 0||n[r]===null)return u;if(typeof n[r]!=="number"||isNaN(n[r]))throw new TypeError("Limit "+r+" is not a valid number");return n[r]}});var Dw=P((DQ,Ww)=>{var zw=T("node:events").EventEmitter,ej=T("node:util").inherits,Nw=Ju(),pj=Ko(),dj=Buffer.from(`\\r\n\\r\n`),aj=/\\r\\n/g,sj=/^([^:]+):[ \\t]?([\\x00-\\xFF]+)?$/;function ft(i){zw.call(this),i=i||{};let n=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=Nw(i,"maxHeaderPairs",2000),this.maxHeaderSize=Nw(i,"maxHeaderSize",81920),this.buffer="",this.header={},this.finished=!1,this.ss=new pj(dj),this.ss.on("info",function(r,u,t,c){if(u&&!n.maxed){if(n.nread+c-t>=n.maxHeaderSize)c=n.maxHeaderSize-n.nread+t,n.nread=n.maxHeaderSize,n.maxed=!0;else n.nread+=c-t;n.buffer+=u.toString("binary",t,c)}if(r)n._finish()})}ej(ft,zw);ft.prototype.push=function(i){let n=this.ss.push(i);if(this.finished)return n};ft.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset()};ft.prototype._finish=function(){if(this.buffer)this._parseHeader();this.ss.matches=this.ss.maxMatches;let i=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",i)};ft.prototype._parseHeader=function(){if(this.npairs===this.maxHeaderPairs)return;let i=this.buffer.split(aj),n=i.length,r,u;for(var t=0;t{var Mo=T("node:stream").Writable,iU=T("node:util").inherits,nU=Ko(),Jw=jw(),tU=Dw(),rU=Buffer.from("-"),uU=Buffer.from(`\\r\n`),cU=function(){};function ki(i){if(!(this instanceof ki))return new ki(i);if(Mo.call(this,i),!i||!i.headerFirst&&typeof i.boundary!=="string")throw new TypeError("Boundary required");if(typeof i.boundary==="string")this.setBoundary(i.boundary);else this._bparser=void 0;this._headerFirst=i.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:i.partHwm},this._pause=!1;let n=this;this._hparser=new tU(i),this._hparser.on("header",function(r){n._inHeader=!1,n._part.emit("header",r)})}iU(ki,Mo);ki.prototype.emit=function(i){if(i==="finish"&&!this._realFinish){if(!this._finished){let n=this;process.nextTick(function(){if(n.emit("error",new Error("Unexpected end of multipart data")),n._part&&!n._ignoreData){let r=n._isPreamble?"Preamble":"Part";n._part.emit("error",new Error(r+" terminated early due to unexpected end of multipart data")),n._part.push(null),process.nextTick(function(){n._realFinish=!0,n.emit("finish"),n._realFinish=!1});return}n._realFinish=!0,n.emit("finish"),n._realFinish=!1})}}else Mo.prototype.emit.apply(this,arguments)};ki.prototype._write=function(i,n,r){if(!this._hparser&&!this._bparser)return r();if(this._headerFirst&&this._isPreamble){if(!this._part)if(this._part=new Jw(this._partOpts),this.listenerCount("preamble")!==0)this.emit("preamble",this._part);else this._ignore();let u=this._hparser.push(i);if(!this._inHeader&&u!==void 0&&u{var Hw=new TextDecoder("utf-8"),Gw=new Map([["utf-8",Hw],["utf8",Hw]]);function oU(i){let n;while(!0)switch(i){case"utf-8":case"utf8":return xt.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return xt.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return xt.utf16le;case"base64":return xt.base64;default:if(n===void 0){n=!0,i=i.toLowerCase();continue}return xt.other.bind(i)}}var xt={utf8:(i,n)=>{if(i.length===0)return"";if(typeof i==="string")i=Buffer.from(i,n);return i.utf8Slice(0,i.length)},latin1:(i,n)=>{if(i.length===0)return"";if(typeof i==="string")return i;return i.latin1Slice(0,i.length)},utf16le:(i,n)=>{if(i.length===0)return"";if(typeof i==="string")i=Buffer.from(i,n);return i.ucs2Slice(0,i.length)},base64:(i,n)=>{if(i.length===0)return"";if(typeof i==="string")i=Buffer.from(i,n);return i.base64Slice(0,i.length)},other:(i,n)=>{if(i.length===0)return"";if(typeof i==="string")i=Buffer.from(i,n);if(Gw.has(Fo.toString()))try{return Gw.get(Fo).decode(i)}catch{}return typeof i==="string"?i:i.toString()}};function gU(i,n,r){if(i)return oU(r)(i,n);return i}qw.exports=gU});var yo=P((EQ,Qw)=>{var Hu=Eu(),Xw=/%[a-fA-F0-9][a-fA-F0-9]/g,hU={"%00":"\\x00","%01":"\\x01","%02":"\\x02","%03":"\\x03","%04":"\\x04","%05":"\\x05","%06":"\\x06","%07":"\\x07","%08":"\\b","%09":"\\t","%0a":`\n`,"%0A":`\n`,"%0b":"\\v","%0B":"\\v","%0c":"\\f","%0C":"\\f","%0d":"\\r","%0D":"\\r","%0e":"\\x0E","%0E":"\\x0E","%0f":"\\x0F","%0F":"\\x0F","%10":"\\x10","%11":"\\x11","%12":"\\x12","%13":"\\x13","%14":"\\x14","%15":"\\x15","%16":"\\x16","%17":"\\x17","%18":"\\x18","%19":"\\x19","%1a":"\\x1A","%1A":"\\x1A","%1b":"\\x1B","%1B":"\\x1B","%1c":"\\x1C","%1C":"\\x1C","%1d":"\\x1D","%1D":"\\x1D","%1e":"\\x1E","%1E":"\\x1E","%1f":"\\x1F","%1F":"\\x1F","%20":" ","%21":"!","%22":\'"\',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"\'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\\\","%5C":"\\\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"","%81":"","%82":"","%83":"","%84":"","%85":"
","%86":"","%87":"","%88":"","%89":"","%8a":"","%8A":"","%8b":"","%8B":"","%8c":"","%8C":"","%8d":"","%8D":"","%8e":"","%8E":"","%8f":"","%8F":"","%90":"","%91":"","%92":"","%93":"","%94":"","%95":"","%96":"","%97":"","%98":"","%99":"","%9a":"","%9A":"","%9b":"","%9B":"","%9c":"","%9C":"","%9d":"","%9D":"","%9e":"","%9E":"","%9f":"","%9F":"","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"","%Ad":"","%aD":"","%AD":"","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};function Lw(i){return hU[i]}var Gu=0,Iw=1,Po=2,Yw=3;function _U(i){let n=[],r=Gu,u="",t=!1,c=!1,g=0,h="",_=i.length;for(var l=0;l<_;++l){let $=i[l];if($==="\\\\"&&t)if(c)c=!1;else{c=!0;continue}else if($===\'"\')if(!c){if(t){t=!1,r=Gu;while(l+1<_&&i[l+1]!==";")++l}else t=!0;continue}else c=!1;else{if(c&&t)h+="\\\\";if(c=!1,(r===Po||r===Yw)&&$==="\'"){if(r===Po)r=Yw,u=h.substring(1);else r=Iw;h="";continue}else if(r===Gu&&($==="*"||$==="=")&&n.length){r=$==="*"?Po:Iw,n[g]=[h,void 0],h="";continue}else if(!t&&$===";"){if(r=Gu,u){if(h.length)h=Hu(h.replace(Xw,Lw),"binary",u);u=""}else if(h.length)h=Hu(h,"binary","utf8");if(n[g]===void 0)n[g]=h;else n[g][1]=h;h="",++g;continue}else if(!t&&($===" "||$==="\\t"))continue}h+=$}if(u&&h.length)h=Hu(h.replace(Xw,Lw),"binary",u);else if(h)h=Hu(h,"binary","utf8");if(n[g]===void 0){if(h)n[g]=h}else n[g][1]=h;return n}Qw.exports=_U});var Sw=P((HQ,mw)=>{mw.exports=function i(n){if(typeof n!=="string")return"";for(var r=n.length-1;r>=0;--r)switch(n.charCodeAt(r)){case 47:case 92:return n=n.slice(r+1),n===".."||n==="."?"":n}return n===".."||n==="."?"":n}});var Vw=P((GQ,Kw)=>{var{Readable:Bw}=T("node:stream"),{inherits:lU}=T("node:util"),$U=xo(),Aw=yo(),wU=Eu(),bU=Sw(),Rn=Ju(),vU=/^boundary$/i,fU=/^form-data$/i,OU=/^charset$/i,jU=/^filename$/i,UU=/^name$/i;qu.detect=/^multipart\\/form-data/i;function qu(i,n){let r,u,t=this,c,g=n.limits,h=n.isPartAFile||((Q,M,p)=>M==="application/octet-stream"||p!==void 0),_=n.parsedConType||[],l=n.defCharset||"utf8",$=n.preservePath,w={highWaterMark:n.fileHwm};for(r=0,u=_.length;rJ)return t.parser.removeListener("part",Q),t.parser.on("part",Ot),i.hitPartsLimit=!0,i.emit("partsLimit"),Ot(M);if(H){let p=H;p.emit("end"),p.removeAllListeners("end")}M.on("header",function(p){let li,Mi,s,Ti,Di,Ni,di=0;if(p["content-type"]){if(s=Aw(p["content-type"][0]),s[0]){li=s[0].toLowerCase();for(r=0,u=s.length;rf){let _n=f-di+ai.length;if(_n>0)Oi.push(ai.slice(0,_n));Oi.truncated=!0,Oi.bytesRead=f,M.removeAllListeners("data"),Oi.emit("limit");return}else if(!Oi.push(ai))t._pause=!0;Oi.bytesRead=di},No=function(){X=void 0,Oi.push(null)}}else{if(W===z){if(!i.hitFieldsLimit)i.hitFieldsLimit=!0,i.emit("fieldsLimit");return Ot(M)}++W,++E;let Oi="",ai=!1;H=M,Uo=function(_n){if((di+=_n.length)>v){let _j=v-(di-_n.length);Oi+=_n.toString("binary",0,_j),ai=!0,M.removeAllListeners("data")}else Oi+=_n.toString("binary")},No=function(){if(H=void 0,Oi.length)Oi=wU(Oi,"binary",Ti);i.emit("field",Mi,Oi,!1,ai,Di,li),--E,b()}}M._readableState.sync=!1,M.on("data",Uo),M.on("end",No)}).on("error",function(p){if(X)X.emit("error",p)})}).on("error",function(Q){i.emit("error",Q)}).on("finish",function(){Y=!0,b()})}qu.prototype.write=function(i,n){let r=this.parser.write(i);if(r&&!this._pause)n();else this._needDrain=!r,this._cb=n};qu.prototype.end=function(){let i=this;if(i.parser.writable)i.parser.end();else if(!i._boy._done)process.nextTick(function(){i._boy._done=!0,i._boy.emit("finish")})};function Ot(i){i.resume()}function To(i){Bw.call(this,i),this.bytesRead=0,this.truncated=!1}lU(To,Bw);To.prototype._read=function(i){};Kw.exports=qu});var xw=P((qQ,Mw)=>{var NU=/\\+/g,zU=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function ko(){this.buffer=void 0}ko.prototype.write=function(i){i=i.replace(NU," ");let n="",r=0,u=0,t=i.length;for(;ru)n+=i.substring(u,r),u=r;this.buffer="",++u}if(u{var WU=xw(),jt=Eu(),Co=Ju(),DU=/^charset$/i;Xu.detect=/^application\\/x-www-form-urlencoded/i;function Xu(i,n){let{limits:r,parsedConType:u}=n;this.boy=i,this.fieldSizeLimit=Co(r,"fieldSize",1048576),this.fieldNameSizeLimit=Co(r,"fieldNameSize",100),this.fieldsLimit=Co(r,"fields",1/0);let t;for(var c=0,g=u.length;cc)this._key+=this.decoder.write(i.toString("binary",c,r));this._state="val",this._hitLimit=!1,this._checkingBytes=!0,this._val="",this._bytesVal=0,this._valTrunc=!1,this.decoder.reset(),c=r+1}else if(u!==void 0){++this._fields;let h,_=this._keyTrunc;if(u>c)h=this._key+=this.decoder.write(i.toString("binary",c,u));else h=this._key;if(this._hitLimit=!1,this._checkingBytes=!0,this._key="",this._bytesKey=0,this._keyTrunc=!1,this.decoder.reset(),h.length)this.boy.emit("field",jt(h,"binary",this.charset),"",_,!1);if(c=u+1,this._fields===this.fieldsLimit)return n()}else if(this._hitLimit){if(t>c)this._key+=this.decoder.write(i.toString("binary",c,t));if(c=t,(this._bytesKey=this._key.length)===this.fieldNameSizeLimit)this._checkingBytes=!1,this._keyTrunc=!0}else{if(cc)this._val+=this.decoder.write(i.toString("binary",c,u));if(this.boy.emit("field",jt(this._key,"binary",this.charset),jt(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc),this._state="key",this._hitLimit=!1,this._checkingBytes=!0,this._key="",this._bytesKey=0,this._keyTrunc=!1,this.decoder.reset(),c=u+1,this._fields===this.fieldsLimit)return n()}else if(this._hitLimit){if(t>c)this._val+=this.decoder.write(i.toString("binary",c,t));if(c=t,this._val===""&&this.fieldSizeLimit===0||(this._bytesVal=this._val.length)===this.fieldSizeLimit)this._checkingBytes=!1,this._valTrunc=!0}else{if(c0)this.boy.emit("field",jt(this._key,"binary",this.charset),"",this._keyTrunc,!1);else if(this._state==="val")this.boy.emit("field",jt(this._key,"binary",this.charset),jt(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc);this.boy._done=!0,this.boy.emit("finish")};Fw.exports=Xu});var kw=P((LQ,Ft)=>{var Ro=T("node:stream").Writable,{inherits:JU}=T("node:util"),EU=xo(),yw=Vw(),Tw=Pw(),HU=yo();function $n(i){if(!(this instanceof $n))return new $n(i);if(typeof i!=="object")throw new TypeError("Busboy expected an options-Object.");if(typeof i.headers!=="object")throw new TypeError("Busboy expected an options-Object with headers-attribute.");if(typeof i.headers["content-type"]!=="string")throw new TypeError("Missing Content-Type-header.");let{headers:n,...r}=i;this.opts={autoDestroy:!1,...r},Ro.call(this,this.opts),this._done=!1,this._parser=this.getParserByHeaders(n),this._finished=!1}JU($n,Ro);$n.prototype.emit=function(i){if(i==="finish"){if(!this._done){this._parser?.end();return}else if(this._finished)return;this._finished=!0}Ro.prototype.emit.apply(this,arguments)};$n.prototype.getParserByHeaders=function(i){let n=HU(i["content-type"]),r={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:i,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:n,preservePath:this.opts.preservePath};if(yw.detect.test(n[0]))return new yw(this,r);if(Tw.detect.test(n[0]))return new Tw(this,r);throw new Error("Unsupported Content-Type.")};$n.prototype._write=function(i,n,r){this._parser.write(i,r)};Ft.exports=$n;Ft.exports.default=$n;Ft.exports.Busboy=$n;Ft.exports.Dicer=EU});var Ci=P((Zo)=>{Object.defineProperty(Zo,"__esModule",{value:!0});Zo.fakePromise=void 0;Zo.getHeadersObj=qU;Zo.defaultHeadersSerializer=XU;Zo.isArrayBufferView=IU;Zo.isNodeReadable=YU;Zo.isIterable=QU;Zo.shouldRedirect=mU;Zo.pipeThrough=SU;Zo.endStream=AU;Zo.safeWrite=BU;var GU=T("node:events");function Cw(i){return i?.forEach!=null}function qU(i){if(i==null||!Cw(i))return i;if(i.headersInit&&!i._map&&!Cw(i.headersInit))return i.headersInit;return Object.fromEntries(i.entries())}function XU(i,n){let r=[];return i.forEach((u,t)=>{if(n&&t==="content-length")n(u);r.push(`${t}: ${u}`)}),r}var LU=Qn();Object.defineProperty(Zo,"fakePromise",{enumerable:!0,get:function(){return LU.fakePromise}});function IU(i){return i!=null&&i.buffer!=null&&i.byteLength!=null&&i.byteOffset!=null}function YU(i){return i!=null&&i.pipe!=null}function QU(i){return i?.[Symbol.iterator]!=null}function mU(i){return i===301||i===302||i===303||i===307||i===308}function SU({src:i,dest:n,signal:r,onError:u}){if(u)n.once("error",u);if(i.once("error",(t)=>{n.destroy(t)}),n.once("close",()=>{if(!i.destroyed)i.destroy()}),r){let g=function(){c.deref()?.removeEventListener("abort",h),t.deref()?.removeListener("end",g),t.deref()?.removeListener("error",g),t.deref()?.removeListener("close",g)},h=function(){t.deref()?.destroy(new Rw),g()},t=new WeakRef(i),c=new WeakRef(r);r.addEventListener("abort",h,{once:!0}),i.once("end",g),i.once("error",g),i.once("close",g)}i.pipe(n,{end:!0})}function AU(i){return i.end(null,null,null)}function BU(i,n){if(!n.write(i))return GU.once(n,"drain")}class Rw extends Error{constructor(i="The operation was aborted",n=void 0){super(i,n);this.name="AbortError"}}});var Ut=P((dw)=>{Object.defineProperty(dw,"__esModule",{value:!0});dw.PonyfillReadableStream=void 0;var Zw=T("node:buffer"),eo=T("node:events"),po=T("node:stream"),RU=T("node:stream/promises"),ao=Qn(),so=Ci();function ew(i,n){let r=[],u=!1,t=!1;return{desiredSize:i,enqueue(c){let g=typeof c==="string"?Zw.Buffer.from(c):c;if(!t)r.push(g);else n.push(g)},close(){if(r.length>0)this._flush();n.push(null),u=!0},error(c){if(r.length>0)this._flush();n.destroy(c)},get _closed(){return u},_flush(){if(t=!0,r.length>0){let c=r.length>1?Zw.Buffer.concat(r):r[0];n.push(c),r=[]}}}}function ZU(i){return i?.read!=null}function pw(i){return i?.getReader!=null}class Lu{readable;constructor(i){if(i instanceof Lu&&i.readable!=null)this.readable=i.readable;else if(ZU(i))this.readable=i;else if(pw(i))this.readable=po.Readable.fromWeb(i);else{let n=!1,r=!1,u=(c)=>{if(!n){let g=ew(c,this.readable);return n=!0,ao.handleMaybePromise(()=>i?.start?.(g),()=>{if(g._flush(),g._closed)return!1;return!0})}return!0},t=(c)=>{return ao.handleMaybePromise(()=>u(c),(g)=>{if(!g)return;let h=ew(c,this.readable);return ao.handleMaybePromise(()=>i?.pull?.(h),()=>{h._flush(),r=!1})})};this.readable=new po.Readable({read(c){if(r)return;return r=!0,t(c)},destroy(c,g){if(i?.cancel)try{let h=i.cancel(c);if(h?.then)return h.then(()=>{g(null)},(_)=>{g(_)})}catch(h){g(h);return}g(null)}})}}cancel(i){return this.readable.destroy(i),eo.once(this.readable,"close")}locked=!1;getReader(i){let n=this.readable[Symbol.asyncIterator]();this.locked=!0;let r=this.readable;return{read(){return n.next()},releaseLock:()=>{if(n.return){let u=n.return();if(u.then){u.then(()=>{this.locked=!1});return}}this.locked=!1},cancel:(u)=>{if(n.return){let t=n.return(u);if(t.then)return t.then(()=>{this.locked=!1})}return this.locked=!1,so.fakePromise()},get closed(){return Promise.race([eo.once(r,"end"),eo.once(r,"error").then((u)=>Promise.reject(u))])}}}[Symbol.asyncIterator](){let i=this.readable[Symbol.asyncIterator]();return{[Symbol.asyncIterator](){return this},next:()=>i.next(),return:()=>{if(!this.readable.destroyed)this.readable.destroy();return i.return?.()||so.fakePromise({done:!0,value:void 0})},throw:(n)=>{if(!this.readable.destroyed)this.readable.destroy(n);return i.throw?.(n)||so.fakePromise({done:!0,value:void 0})}}}tee(){throw new Error("Not implemented")}async pipeToWriter(i){try{for await(let n of this)await i.write(n);await i.close()}catch(n){await i.abort(n)}}pipeTo(i){if(pU(i))return RU.pipeline(this.readable,i.writable,{end:!0});else{let n=i.getWriter();return this.pipeToWriter(n)}}pipeThrough({writable:i,readable:n}){if(this.pipeTo(i).catch((r)=>{this.readable.destroy(r)}),eU(n))n.readable.once("error",(r)=>this.readable.destroy(r)),n.readable.once("finish",()=>this.readable.push(null)),n.readable.once("close",()=>this.readable.push(null));return n}static[Symbol.hasInstance](i){return pw(i)}static from(i){return new Lu(po.Readable.from(i))}[Symbol.toStringTag]="ReadableStream"}dw.PonyfillReadableStream=Lu;function eU(i){return i?.readable!=null}function pU(i){return i?.writable!=null}});var Iu=P((cb)=>{Object.defineProperty(cb,"__esModule",{value:!0});cb.PonyfillBlob=void 0;cb.hasBufferMethod=yt;cb.hasArrayBufferMethod=Tt;cb.hasBytesMethod=kt;cb.hasTextMethod=sw;cb.hasSizeProperty=ib;cb.hasStreamMethod=nb;cb.hasBlobSignature=tb;cb.isArrayBuffer=rb;var qi=T("node:buffer"),ig=Ut(),Gi=Ci();function Pt(i){if(typeof i==="string")return qi.Buffer.from(i);else if(qi.Buffer.isBuffer(i))return i;else if(Gi.isArrayBufferView(i))return qi.Buffer.from(i.buffer,i.byteOffset,i.byteLength);else return qi.Buffer.from(i)}function yt(i){return i!=null&&i.buffer!=null&&typeof i.buffer==="function"}function Tt(i){return i!=null&&i.arrayBuffer!=null&&typeof i.arrayBuffer==="function"}function kt(i){return i!=null&&i.bytes!=null&&typeof i.bytes==="function"}function sw(i){return i!=null&&i.text!=null&&typeof i.text==="function"}function ib(i){return i!=null&&typeof i.size==="number"}function nb(i){return i!=null&&i.stream!=null&&typeof i.stream==="function"}function tb(i){return i!=null&&i[Symbol.toStringTag]==="Blob"}function rb(i){return i!=null&&i.byteLength!=null&&i.slice!=null}class ub{blobParts;type;encoding;_size=null;constructor(i=[],n){if(this.blobParts=i,this.type=n?.type||"application/octet-stream",this.encoding=n?.encoding||"utf8",this._size=n?.size||null,i.length===1&&tb(i[0]))return i[0]}_buffer=null;buffer(){if(this._buffer)return Gi.fakePromise(this._buffer);if(this.blobParts.length===1){let r=this.blobParts[0];if(yt(r))return r.buffer().then((u)=>{return this._buffer=u,this._buffer});if(kt(r))return r.bytes().then((u)=>{return this._buffer=qi.Buffer.from(u),this._buffer});if(Tt(r))return r.arrayBuffer().then((u)=>{return this._buffer=qi.Buffer.from(u,void 0,r.size),this._buffer});return this._buffer=Pt(r),Gi.fakePromise(this._buffer)}let i=[],n=this.blobParts.map((r,u)=>{if(yt(r)){i.push(r.buffer().then((t)=>{n[u]=t}));return}else if(Tt(r)){i.push(r.arrayBuffer().then((t)=>{n[u]=qi.Buffer.from(t,void 0,r.size)}));return}else if(kt(r)){i.push(r.bytes().then((t)=>{n[u]=qi.Buffer.from(t)}));return}else return Pt(r)});if(i.length>0)return Promise.all(i).then(()=>qi.Buffer.concat(n,this._size||void 0));return Gi.fakePromise(qi.Buffer.concat(n,this._size||void 0))}arrayBuffer(){if(this._buffer)return Gi.fakePromise(this._buffer);if(this.blobParts.length===1){if(rb(this.blobParts[0]))return Gi.fakePromise(this.blobParts[0]);if(Tt(this.blobParts[0]))return this.blobParts[0].arrayBuffer()}return this.buffer()}bytes(){if(this._buffer)return Gi.fakePromise(this._buffer);if(this.blobParts.length===1){if(qi.Buffer.isBuffer(this.blobParts[0]))return this._buffer=this.blobParts[0],Gi.fakePromise(this._buffer);if(this.blobParts[0]instanceof Uint8Array)return this._buffer=qi.Buffer.from(this.blobParts[0]),Gi.fakePromise(this._buffer);if(kt(this.blobParts[0]))return this.blobParts[0].bytes();if(yt(this.blobParts[0]))return this.blobParts[0].buffer()}return this.buffer()}_text=null;text(){if(this._text)return Gi.fakePromise(this._text);if(this.blobParts.length===1){let i=this.blobParts[0];if(typeof i==="string")return this._text=i,Gi.fakePromise(this._text);if(sw(i))return i.text().then((r)=>{return this._text=r,this._text});let n=Pt(i);return this._text=n.toString(this.encoding),Gi.fakePromise(this._text)}return this.buffer().then((i)=>{return this._text=i.toString(this.encoding),this._text})}_json=null;json(){if(this._json)return Gi.fakePromise(this._json);return this.text().then((i)=>{return this._json=JSON.parse(i),this._json})}_formData=null;formData(){if(this._formData)return Gi.fakePromise(this._formData);throw new Error("Not implemented")}get size(){if(this._size==null){this._size=0;for(let i of this.blobParts)if(typeof i==="string")this._size+=qi.Buffer.byteLength(i);else if(ib(i))this._size+=i.size;else if(Gi.isArrayBufferView(i))this._size+=i.byteLength}return this._size}stream(){if(this.blobParts.length===1){let n=this.blobParts[0];if(nb(n))return n.stream();let r=Pt(n);return new ig.PonyfillReadableStream({start:(u)=>{u.enqueue(r),u.close()}})}if(this._buffer!=null)return new ig.PonyfillReadableStream({start:(n)=>{n.enqueue(this._buffer),n.close()}});let i;return new ig.PonyfillReadableStream({start:(n)=>{if(this.blobParts.length===0){n.close();return}i=this.blobParts[Symbol.iterator]()},pull:(n)=>{let{value:r,done:u}=i.next();if(u){n.close();return}if(r){if(yt(r))return r.buffer().then((c)=>{n.enqueue(c)});if(kt(r))return r.bytes().then((c)=>{let g=qi.Buffer.from(c);n.enqueue(g)});if(Tt(r))return r.arrayBuffer().then((c)=>{let g=qi.Buffer.from(c,void 0,r.size);n.enqueue(g)});let t=Pt(r);n.enqueue(t)}}})}slice(){throw new Error("Not implemented")}}cb.PonyfillBlob=ub});var ng=P((hb)=>{Object.defineProperty(hb,"__esModule",{value:!0});hb.PonyfillFile=void 0;var cN=Iu();class gb extends cN.PonyfillBlob{name;lastModified;constructor(i,n,r){super(i,r);this.name=n,this.lastModified=r?.lastModified||Date.now()}webkitRelativePath=""}hb.PonyfillFile=gb});var rg=P((SQ,mu)=>{var lb,$b,wb,bb,vb,fb,Ob,jb,Ub,Nb,zb,Wb,Db,Yu,tg,Jb,Eb,Hb,Nt,Gb,qb,Xb,Lb,Ib,Yb,Qb,mb,Sb,Qu,Ab,Bb,Kb;(function(i){var n=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(u){i(r(n,r(u)))});else if(typeof mu==="object"&&typeof SQ==="object")i(r(n,r(SQ)));else i(r(n));function r(u,t){if(u!==n)if(typeof Object.create==="function")Object.defineProperty(u,"__esModule",{value:!0});else u.__esModule=!0;return function(c,g){return u[c]=t?t(c,g):g}}})(function(i){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,g){c.__proto__=g}||function(c,g){for(var h in g)if(Object.prototype.hasOwnProperty.call(g,h))c[h]=g[h]};lb=function(c,g){if(typeof g!=="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");n(c,g);function h(){this.constructor=c}c.prototype=g===null?Object.create(g):(h.prototype=g.prototype,new h)},$b=Object.assign||function(c){for(var g,h=1,_=arguments.length;h<_;h++){g=arguments[h];for(var l in g)if(Object.prototype.hasOwnProperty.call(g,l))c[l]=g[l]}return c},wb=function(c,g){var h={};for(var _ in c)if(Object.prototype.hasOwnProperty.call(c,_)&&g.indexOf(_)<0)h[_]=c[_];if(c!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var l=0,_=Object.getOwnPropertySymbols(c);l<_.length;l++)if(g.indexOf(_[l])<0&&Object.prototype.propertyIsEnumerable.call(c,_[l]))h[_[l]]=c[_[l]]}return h},bb=function(c,g,h,_){var l=arguments.length,$=l<3?g:_===null?_=Object.getOwnPropertyDescriptor(g,h):_,w;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")$=Reflect.decorate(c,g,h,_);else for(var b=c.length-1;b>=0;b--)if(w=c[b])$=(l<3?w($):l>3?w(g,h,$):w(g,h))||$;return l>3&&$&&Object.defineProperty(g,h,$),$},vb=function(c,g){return function(h,_){g(h,_,c)}},fb=function(c,g,h,_,l,$){function w(E){if(E!==void 0&&typeof E!=="function")throw new TypeError("Function expected");return E}var b=_.kind,v=b==="getter"?"get":b==="setter"?"set":"value",f=!g&&c?_.static?c:c.prototype:null,U=g||(f?Object.getOwnPropertyDescriptor(f,_.name):{}),z,J=!1;for(var N=h.length-1;N>=0;N--){var j={};for(var O in _)j[O]=O==="access"?{}:_[O];for(var O in _.access)j.access[O]=_.access[O];j.addInitializer=function(E){if(J)throw new TypeError("Cannot add initializers after decoration has completed");$.push(w(E||null))};var W=h[N](b==="accessor"?{get:U.get,set:U.set}:U[v],j);if(b==="accessor"){if(W===void 0)continue;if(W===null||typeof W!=="object")throw new TypeError("Object expected");if(z=w(W.get))U.get=z;if(z=w(W.set))U.set=z;if(z=w(W.init))l.unshift(z)}else if(z=w(W))if(b==="field")l.unshift(z);else U[v]=z}if(f)Object.defineProperty(f,_.name,U);J=!0},Ob=function(c,g,h){var _=arguments.length>2;for(var l=0;l0&&$[$.length-1]))&&(f[0]===6||f[0]===2)){h=0;continue}if(f[0]===3&&(!$||f[1]>$[0]&&f[1]<$[3])){h.label=f[1];break}if(f[0]===6&&h.label<$[1]){h.label=$[1],$=f;break}if($&&h.label<$[2]){h.label=$[2],h.ops.push(f);break}if($[2])h.ops.pop();h.trys.pop();continue}f=g.call(c,h)}catch(U){f=[6,U],l=0}finally{_=$=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Db=function(c,g){for(var h in c)if(h!=="default"&&!Object.prototype.hasOwnProperty.call(g,h))Qu(g,c,h)},Qu=Object.create?function(c,g,h,_){if(_===void 0)_=h;var l=Object.getOwnPropertyDescriptor(g,h);if(!l||("get"in l?!g.__esModule:l.writable||l.configurable))l={enumerable:!0,get:function(){return g[h]}};Object.defineProperty(c,_,l)}:function(c,g,h,_){if(_===void 0)_=h;c[_]=g[h]},Yu=function(c){var g=typeof Symbol==="function"&&Symbol.iterator,h=g&&c[g],_=0;if(h)return h.call(c);if(c&&typeof c.length==="number")return{next:function(){if(c&&_>=c.length)c=void 0;return{value:c&&c[_++],done:!c}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")},tg=function(c,g){var h=typeof Symbol==="function"&&c[Symbol.iterator];if(!h)return c;var _=h.call(c),l,$=[],w;try{while((g===void 0||g-- >0)&&!(l=_.next()).done)$.push(l.value)}catch(b){w={error:b}}finally{try{if(l&&!l.done&&(h=_.return))h.call(_)}finally{if(w)throw w.error}}return $},Jb=function(){for(var c=[],g=0;g1||v(N,O)})},j)l[N]=j(l[N])}}function v(N,j){try{f(_[N](j))}catch(O){J($[0][3],O)}}function f(N){N.value instanceof Nt?Promise.resolve(N.value.v).then(U,z):J($[0][2],N)}function U(N){v("next",N)}function z(N){v("throw",N)}function J(N,j){if(N(j),$.shift(),$.length)v($[0][0],$[0][1])}},qb=function(c){var g,h;return g={},_("next"),_("throw",function(l){throw l}),_("return"),g[Symbol.iterator]=function(){return this},g;function _(l,$){g[l]=c[l]?function(w){return(h=!h)?{value:Nt(c[l](w)),done:!1}:$?$(w):w}:$}},Xb=function(c){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var g=c[Symbol.asyncIterator],h;return g?g.call(c):(c=typeof Yu==="function"?Yu(c):c[Symbol.iterator](),h={},_("next"),_("throw"),_("return"),h[Symbol.asyncIterator]=function(){return this},h);function _($){h[$]=c[$]&&function(w){return new Promise(function(b,v){w=c[$](w),l(b,v,w.done,w.value)})}}function l($,w,b,v){Promise.resolve(v).then(function(f){$({value:f,done:b})},w)}},Lb=function(c,g){if(Object.defineProperty)Object.defineProperty(c,"raw",{value:g});else c.raw=g;return c};var r=Object.create?function(c,g){Object.defineProperty(c,"default",{enumerable:!0,value:g})}:function(c,g){c.default=g},u=function(c){return u=Object.getOwnPropertyNames||function(g){var h=[];for(var _ in g)if(Object.prototype.hasOwnProperty.call(g,_))h[h.length]=_;return h},u(c)};Ib=function(c){if(c&&c.__esModule)return c;var g={};if(c!=null){for(var h=u(c),_=0;_{Object.defineProperty(Mb,"__esModule",{value:!0});Mb.PonyfillSuppressedError=void 0;class Vb extends Error{error;suppressed;constructor(i,n,r){super(r);this.error=i,this.suppressed=n,this.name="SuppressedError",Error.captureStackTrace(this,this.constructor)}}Mb.PonyfillSuppressedError=Vb});var Ct=P((Fb)=>{Object.defineProperty(Fb,"__esModule",{value:!0});Fb.DisposableSymbols=void 0;Fb.patchSymbols=oN;Fb.DisposableSymbols={get dispose(){return Symbol.dispose||Symbol.for("dispose")},get asyncDispose(){return Symbol.asyncDispose||Symbol.for("asyncDispose")}};function oN(){Symbol.dispose||=Symbol.for("dispose"),Symbol.asyncDispose||=Symbol.for("asyncDispose")}});var ug=P((Tb)=>{Object.defineProperty(Tb,"__esModule",{value:!0});Tb.isSyncDisposable=hN;Tb.isAsyncDisposable=_N;var yb=Ct();function hN(i){return i?.[yb.DisposableSymbols.dispose]!=null}function _N(i){return i?.[yb.DisposableSymbols.asyncDispose]!=null}});var Zb=P((Cb)=>{Object.defineProperty(Cb,"__esModule",{value:!0});Cb.PonyfillAsyncDisposableStack=void 0;var wN=Qn(),bN=Su(),Au=Ct(),kb=ug(),vN=globalThis.SuppressedError||bN.PonyfillSuppressedError;class cg{callbacks=[];get disposed(){return this.callbacks.length===0}use(i){if(kb.isAsyncDisposable(i))this.callbacks.push(()=>i[Au.DisposableSymbols.asyncDispose]());else if(kb.isSyncDisposable(i))this.callbacks.push(()=>i[Au.DisposableSymbols.dispose]());return i}adopt(i,n){if(n)this.callbacks.push(()=>n(i));return i}defer(i){if(i)this.callbacks.push(i)}move(){let i=new cg;return i.callbacks=this.callbacks,this.callbacks=[],i}disposeAsync(){return this[Au.DisposableSymbols.asyncDispose]()}_error;_iterateCallbacks(){let i=this.callbacks.pop();if(i)return wN.handleMaybePromise(i,()=>this._iterateCallbacks(),(n)=>{return this._error=this._error?new vN(n,this._error):n,this._iterateCallbacks()})}[Au.DisposableSymbols.asyncDispose](){let i=this._iterateCallbacks();if(i?.then)return i.then(()=>{if(this._error){let n=this._error;throw this._error=void 0,n}});if(this._error){let n=this._error;throw this._error=void 0,n}return}[Symbol.toStringTag]="AsyncDisposableStack"}Cb.PonyfillAsyncDisposableStack=cg});var db=P((eb)=>{Object.defineProperty(eb,"__esModule",{value:!0});eb.PonyfillDisposableStack=void 0;var fN=Su(),og=Ct(),ON=ug(),jN=globalThis.SuppressedError||fN.PonyfillSuppressedError;class gg{callbacks=[];get disposed(){return this.callbacks.length===0}use(i){if(ON.isSyncDisposable(i))this.callbacks.push(()=>i[og.DisposableSymbols.dispose]());return i}adopt(i,n){if(n)this.callbacks.push(()=>n(i));return i}defer(i){if(i)this.callbacks.push(i)}move(){let i=new gg;return i.callbacks=this.callbacks,this.callbacks=[],i}dispose(){return this[og.DisposableSymbols.dispose]()}_error;_iterateCallbacks(){let i=this.callbacks.pop();if(i){try{i()}catch(n){this._error=this._error?new jN(n,this._error):n}return this._iterateCallbacks()}}[og.DisposableSymbols.dispose](){if(this._iterateCallbacks(),this._error){let i=this._error;throw this._error=void 0,i}}[Symbol.toStringTag]="DisposableStack"}eb.PonyfillDisposableStack=gg});var sb=P((hg)=>{Object.defineProperty(hg,"__esModule",{value:!0});hg.SuppressedError=hg.AsyncDisposableStack=hg.DisposableStack=void 0;var UN=rg(),NN=Zb(),zN=db(),WN=Su();hg.DisposableStack=globalThis.DisposableStack||zN.PonyfillDisposableStack;hg.AsyncDisposableStack=globalThis.AsyncDisposableStack||NN.PonyfillAsyncDisposableStack;hg.SuppressedError=globalThis.SuppressedError||WN.PonyfillSuppressedError;UN.__exportStar(Ct(),hg)});var Bu=P((t1)=>{Object.defineProperty(t1,"__esModule",{value:!0});t1.PonyfillIteratorObject=void 0;var i1=T("node:util"),EN=sb(),HN=Ci();class n1{iterableIterator;[Symbol.toStringTag]="IteratorObject";constructor(i,n){this.iterableIterator=i,this[Symbol.toStringTag]=n}*map(i){let n=0;for(let r of this.iterableIterator)yield i(r,n++);return}*filter(i){let n=0;for(let r of this.iterableIterator)if(i(r,n++))yield r;return}reduce(i,n){let r=0,u=n;for(let t of this.iterableIterator)u=i(u,t,r++);return u}forEach(i){let n=0;for(let r of this.iterableIterator)i(r,n++)}*take(i){let n=0;for(let r of this.iterableIterator){if(n>=i)break;yield r,n++}return}*drop(i){let n=0;for(let r of this.iterableIterator){if(n>=i)yield r;n++}return}*flatMap(i){let n=0;for(let r of this.iterableIterator){let u=i(r,n++);if(HN.isIterable(u))for(let t of u)yield t;else for(let t of{[Symbol.iterator]:()=>u})yield t}return}some(i){let n=0;for(let r of this.iterableIterator)if(i(r,n++))return!0;return!1}every(i){let n=0;for(let r of this.iterableIterator)if(!i(r,n++))return!1;return!0}find(i){let n=0;for(let r of this.iterableIterator)if(i(r,n++))return r;return}toArray(){return Array.from(this.iterableIterator)}[EN.DisposableSymbols.dispose](){this.iterableIterator.return?.()}next(...[i]){return this.iterableIterator.next(i)}[Symbol.iterator](){return this}[Symbol.for("nodejs.util.inspect.custom")](){let i={};return this.forEach((n,r)=>{let u=i1.inspect(n);i[r]=u.includes(",")?u.split(",").map((t)=>t.trim()):u}),`${this[Symbol.toStringTag]} ${i1.inspect(i)}`}}t1.PonyfillIteratorObject=n1});var lg=P((g1)=>{Object.defineProperty(g1,"__esModule",{value:!0});g1.PonyfillFormData=void 0;g1.getStreamFromFormData=qN;var Zn=T("node:buffer"),_g=Bu(),GN=Ut();class o1{map=new Map;append(i,n,r){let u=this.map.get(i);if(!u)u=[],this.map.set(i,u);let t=c1(n)?u1(i,n,r):n;u.push(t)}delete(i){this.map.delete(i)}get(i){let n=this.map.get(i);return n?n[0]:null}getAll(i){return this.map.get(i)||[]}has(i){return this.map.has(i)}set(i,n,r){let u=c1(n)?u1(i,n,r):n;this.map.set(i,[u])}[Symbol.iterator](){return this._entries()}*_entries(){for(let[i,n]of this.map)for(let r of n)yield[i,r]}entries(){return new _g.PonyfillIteratorObject(this._entries(),"FormDataIterator")}_keys(){return this.map.keys()}keys(){return new _g.PonyfillIteratorObject(this._keys(),"FormDataIterator")}*_values(){for(let i of this.map.values())for(let n of i)yield n}values(){return new _g.PonyfillIteratorObject(this._values(),"FormDataIterator")}forEach(i){for(let[n,r]of this)i(r,n,this)}}g1.PonyfillFormData=o1;function qN(i,n="---"){let r,u=!1,t,c=!1;function g(h){let{done:_,value:l}=r.next();if(_)return h.enqueue(Zn.Buffer.from(`\\r\n--${n}--\\r\n`)),h.close();if(c)h.enqueue(Zn.Buffer.from(`\\r\n--${n}\\r\n`));if(l){let[$,w]=l;if(typeof w==="string")h.enqueue(Zn.Buffer.from(`Content-Disposition: form-data; name="${$}"\\r\n\\r\n`)),h.enqueue(Zn.Buffer.from(w));else{let b="";if(w.name)b=`; filename="${w.name}"`;h.enqueue(Zn.Buffer.from(`Content-Disposition: form-data; name="${$}"${b}\\r\n`)),h.enqueue(Zn.Buffer.from(`Content-Type: ${w.type||"application/octet-stream"}\\r\n\\r\n`)),t=w.stream()[Symbol.asyncIterator]()}c=!0}}return new GN.PonyfillReadableStream({start:()=>{r=i.entries()},pull:(h)=>{if(!u)return u=!0,h.enqueue(Zn.Buffer.from(`--${n}\\r\n`));if(t)return t.next().then(({done:_,value:l})=>{if(_)t=void 0;if(l)return h.enqueue(l);else return g(h)});return g(h)},cancel:(h)=>{r?.return?.(h),t?.return?.(h)}})}function u1(i,n,r){return Object.defineProperty(n,"name",{configurable:!0,enumerable:!0,value:r||n.name||i}),n}function c1(i){return i?.arrayBuffer!=null}});var Vu=P(($1)=>{Object.defineProperty($1,"__esModule",{value:!0});$1.PonyfillBody=void 0;var tn=T("node:buffer"),bn=T("node:stream"),LN=kw(),Ku=Qn(),zt=Iu(),IN=ng(),_1=lg(),wn=Ut(),Wi=Ci(),wi;(function(i){i.ReadableStream="ReadableStream",i.Blob="Blob",i.FormData="FormData",i.String="String",i.Readable="Readable",i.Buffer="Buffer",i.AsyncIterable="AsyncIterable"})(wi||(wi={}));class l1{bodyInit;options;bodyUsed=!1;contentType=null;contentLength=null;constructor(i,n={}){this.bodyInit=i,this.options=n;let{bodyFactory:r,contentType:u,contentLength:t,bodyType:c,buffer:g}=YN(i);this._bodyFactory=r,this.contentType=u,this.contentLength=t,this.bodyType=c,this._buffer=g,this._signal=n.signal}bodyType;_bodyFactory=()=>null;_generatedBody=null;_buffer;_signal;generateBody(){if(this._generatedBody?.readable?.destroyed&&this._buffer)this._generatedBody.readable=bn.Readable.from(this._buffer);if(this._generatedBody)return this._generatedBody;let i=this._bodyFactory();return this._generatedBody=i,i}handleContentLengthHeader(i=!1){let n=this.headers.get("content-type");if(!n){if(this.contentType)this.headers.set("content-type",this.contentType)}else this.contentType=n;let r=this.headers.get("content-length");if(i&&this.bodyInit==null&&!r)this.contentLength=0,this.headers.set("content-length","0");if(!r){if(this.contentLength)this.headers.set("content-length",this.contentLength.toString())}else this.contentLength=parseInt(r,10)}get body(){let i=this.generateBody();if(i!=null){let n=i,r=i.readable;return new Proxy(i.readable,{get(u,t){if(t in n){let c=n[t];if(typeof c==="function")return c.bind(n);return c}if(t in r){let c=r[t];if(typeof c==="function")return c.bind(r);return c}}})}return null}_chunks=null;_doCollectChunksFromReadableJob(){if(this.bodyType===wi.AsyncIterable){if(Array.fromAsync)return Ku.handleMaybePromise(()=>Array.fromAsync(this.bodyInit),(c)=>{return this._chunks=c,this._chunks});let r=this.bodyInit[Symbol.asyncIterator](),u=[],t=()=>Ku.handleMaybePromise(()=>r.next(),({value:c,done:g})=>{if(c)u.push(c);if(!g)return t();return this._chunks=u,this._chunks});return t()}let i=this.generateBody();if(!i)return this._chunks=[],Wi.fakePromise(this._chunks);if(i.readable.destroyed)return Wi.fakePromise(this._chunks=[]);let n=[];return new Promise((r,u)=>{i.readable.on("data",(t)=>{n.push(t)}),i.readable.once("error",u),i.readable.once("end",()=>{r(this._chunks=n)})})}_collectChunksFromReadable(){if(this._chunks)return Wi.fakePromise(this._chunks);return this._chunks||=this._doCollectChunksFromReadableJob(),this._chunks}_blob=null;blob(){if(this._blob)return Wi.fakePromise(this._blob);if(this.bodyType===wi.String)this._text=this.bodyInit,this._blob=new zt.PonyfillBlob([this._text],{type:this.contentType||"text/plain;charset=UTF-8",size:this.contentLength});if(this.bodyType===wi.Blob)return this._blob=this.bodyInit,Wi.fakePromise(this._blob);if(this._buffer)return this._blob=new zt.PonyfillBlob([this._buffer],{type:this.contentType||"",size:this.contentLength}),Wi.fakePromise(this._blob);return Wi.fakePromise(Ku.handleMaybePromise(()=>this._collectChunksFromReadable(),(i)=>{return this._blob=new zt.PonyfillBlob(i,{type:this.contentType||"",size:this.contentLength}),this._blob}))}_formData=null;formData(i){if(this._formData)return Wi.fakePromise(this._formData);if(this.bodyType===wi.FormData)return this._formData=this.bodyInit,Wi.fakePromise(this._formData);if(this._formData=new _1.PonyfillFormData,this.generateBody()==null)return Wi.fakePromise(this._formData);let r={...this.options.formDataLimits,...i?.formDataLimits};return new Promise((u,t)=>{let c=this.body?.readable;if(!c)return t(new Error("No stream available"));let g=null,h=new LN.Busboy({headers:{"content-length":typeof this.contentLength==="number"?this.contentLength.toString():this.contentLength||"","content-type":this.contentType||""},limits:r,defCharset:"utf-8"});if(this._signal)bn.addAbortSignal(this._signal,h);let _=!1,l=($)=>{if(_)return;if(_=!0,c.unpipe(h),h.destroy(),g)g.destroy(),g=null;if($)t($);else u(this._formData)};c.on("error",l),h.on("field",($,w,b,v)=>{if(b)return l(new Error(`Field name size exceeded: ${r?.fieldNameSize} bytes`));if(v)return l(new Error(`Field value size exceeded: ${r?.fieldSize} bytes`));this._formData.set($,w)}),h.on("file",($,w,b,v,f)=>{g=w;let U=[];w.on("data",(z)=>{U.push(z)}),w.on("error",l),w.on("limit",()=>{l(new Error(`File size limit exceeded: ${r?.fileSize} bytes`))}),w.on("close",()=>{if(w.truncated)l(new Error(`File size limit exceeded: ${r?.fileSize} bytes`));g=null;let z=new IN.PonyfillFile(U,b,{type:f});this._formData.set($,z)})}),h.on("fieldsLimit",()=>{l(new Error(`Fields limit exceeded: ${r?.fields}`))}),h.on("filesLimit",()=>{l(new Error(`Files limit exceeded: ${r?.files}`))}),h.on("partsLimit",()=>{l(new Error(`Parts limit exceeded: ${r?.parts}`))}),h.on("end",l),h.on("finish",l),h.on("close",l),h.on("error",l),c.pipe(h)})}buffer(){if(this._buffer)return Wi.fakePromise(this._buffer);if(this._text)return this._buffer=tn.Buffer.from(this._text,"utf-8"),Wi.fakePromise(this._buffer);if(this.bodyType===wi.String)return this.text().then((i)=>{return this._text=i,this._buffer=tn.Buffer.from(i,"utf-8"),this._buffer});if(this.bodyType===wi.Blob){if(zt.hasBufferMethod(this.bodyInit))return this.bodyInit.buffer().then((i)=>{return this._buffer=i,this._buffer});if(zt.hasBytesMethod(this.bodyInit))return this.bodyInit.bytes().then((i)=>{return this._buffer=tn.Buffer.from(i),this._buffer});if(zt.hasArrayBufferMethod(this.bodyInit))return this.bodyInit.arrayBuffer().then((i)=>{return this._buffer=tn.Buffer.from(i,void 0,i.byteLength),this._buffer})}return Wi.fakePromise(Ku.handleMaybePromise(()=>this._collectChunksFromReadable(),(i)=>{if(i.length===1)return this._buffer=i[0],this._buffer;return this._buffer=tn.Buffer.concat(i),this._buffer}))}bytes(){return this.buffer()}arrayBuffer(){return this.buffer()}_json=null;json(){if(this._json)return Wi.fakePromise(this._json);return this.text().then((i)=>{try{this._json=JSON.parse(i)}catch(n){if(n instanceof SyntaxError)n.message+=`, "${i}" is not valid JSON`;throw n}return this._json})}_text=null;text(){if(this._text)return Wi.fakePromise(this._text);if(this.bodyType===wi.String)return this._text=this.bodyInit,Wi.fakePromise(this._text);return this.buffer().then((i)=>{return this._text=i.toString("utf-8"),this._text})}}$1.PonyfillBody=l1;function YN(i){if(i==null)return{bodyFactory:()=>null,contentType:null,contentLength:null};if(typeof i==="string"){let n=tn.Buffer.byteLength(i);return{bodyType:wi.String,contentType:"text/plain;charset=UTF-8",contentLength:n,bodyFactory(){let r=bn.Readable.from(tn.Buffer.from(i,"utf-8"));return new wn.PonyfillReadableStream(r)}}}if(tn.Buffer.isBuffer(i)){let n=i;return{bodyType:wi.Buffer,contentType:null,contentLength:i.length,buffer:i,bodyFactory(){let r=bn.Readable.from(n);return new wn.PonyfillReadableStream(r)}}}if(Wi.isArrayBufferView(i)){let n=tn.Buffer.from(i.buffer,i.byteOffset,i.byteLength);return{bodyType:wi.Buffer,contentLength:i.byteLength,contentType:null,buffer:n,bodyFactory(){let r=bn.Readable.from(n);return new wn.PonyfillReadableStream(r)}}}if(i instanceof wn.PonyfillReadableStream&&i.readable!=null){let n=i;return{bodyType:wi.ReadableStream,bodyFactory:()=>n,contentType:null,contentLength:null}}if(mN(i)){let n=i;return{bodyType:wi.Blob,contentType:i.type,contentLength:i.size,bodyFactory(){return n.stream()}}}if(i instanceof ArrayBuffer){let n=i.byteLength,r=tn.Buffer.from(i,void 0,i.byteLength);return{bodyType:wi.Buffer,contentType:null,contentLength:n,buffer:r,bodyFactory(){let u=bn.Readable.from(r);return new wn.PonyfillReadableStream(u)}}}if(i instanceof bn.Readable)return{bodyType:wi.Readable,contentType:null,contentLength:null,bodyFactory(){return new wn.PonyfillReadableStream(i)}};if(SN(i))return{bodyType:wi.String,contentType:"application/x-www-form-urlencoded;charset=UTF-8",contentLength:null,bodyFactory(){return new wn.PonyfillReadableStream(bn.Readable.from(i.toString()))}};if(QN(i)){let n=Math.random().toString(36).substr(2),r=`multipart/form-data; boundary=${n}`;return{bodyType:wi.FormData,contentType:r,contentLength:null,bodyFactory(){return _1.getStreamFromFormData(i,n)}}}if(AN(i))return{contentType:null,contentLength:null,bodyFactory(){return new wn.PonyfillReadableStream(i)}};if(i[Symbol.iterator]||i[Symbol.asyncIterator])return{contentType:null,contentLength:null,bodyType:wi.AsyncIterable,bodyFactory(){let n=bn.Readable.from(i);return new wn.PonyfillReadableStream(n)}};throw new Error("Unknown body type")}function QN(i){return i?.forEach!=null}function mN(i){return i?.stream!=null&&typeof i.stream==="function"}function SN(i){return i?.sort!=null}function AN(i){return i?.getReader!=null}});var Mu=P((v1)=>{Object.defineProperty(v1,"__esModule",{value:!0});v1.PonyfillHeaders=void 0;v1.isHeadersLike=mn;var BN=T("node:util"),$g=Bu();function mn(i){return i?.get&&i?.forEach}class b1{headersInit;_map;objectNormalizedKeysOfHeadersInit=[];objectOriginalKeysOfHeadersInit=[];_setCookies;constructor(i){this.headersInit=i}_get(i){let n=i.toLowerCase();if(n==="set-cookie"&&this._setCookies?.length)return this._setCookies.join(", ");if(this._map)return this._map.get(n)||null;if(this.headersInit==null)return null;if(Array.isArray(this.headersInit)){let r=this.headersInit.filter(([u])=>u.toLowerCase()===n);if(r.length===0)return null;if(r.length===1)return r[0][1];return r.map(([,u])=>u).join(", ")}else if(mn(this.headersInit))return this.headersInit.get(n);else{let r=this.headersInit[i]||this.headersInit[n];if(r!=null)return r;if(!this.objectNormalizedKeysOfHeadersInit.length)Object.keys(this.headersInit).forEach((c)=>{this.objectOriginalKeysOfHeadersInit.push(c),this.objectNormalizedKeysOfHeadersInit.push(c.toLowerCase())});let u=this.objectNormalizedKeysOfHeadersInit.indexOf(n);if(u===-1)return null;let t=this.objectOriginalKeysOfHeadersInit[u];return this.headersInit[t]}}getMap(){if(!this._map)if(this._setCookies||=[],this.headersInit!=null)if(Array.isArray(this.headersInit)){this._map=new Map;for(let[i,n]of this.headersInit){let r=i.toLowerCase();if(r==="set-cookie"){this._setCookies.push(n);continue}this._map.set(r,n)}}else if(mn(this.headersInit))this._map=new Map,this.headersInit.forEach((i,n)=>{if(n==="set-cookie"){this._setCookies||=[],this._setCookies.push(i);return}this._map.set(n,i)});else{this._map=new Map;for(let i in this.headersInit){let n=this.headersInit[i];if(n!=null){let r=i.toLowerCase();if(r==="set-cookie"){this._setCookies||=[],this._setCookies.push(n);continue}this._map.set(r,n)}}}else this._map=new Map;return this._map}append(i,n){let r=i.toLowerCase();if(r==="set-cookie"){this._setCookies||=[],this._setCookies.push(n);return}let u=this.getMap().get(r),t=u?`${u}, ${n}`:n;this.getMap().set(r,t)}get(i){let n=this._get(i);if(n==null)return null;return n.toString()}has(i){if(i.toLowerCase()==="set-cookie")return!!this._setCookies?.length;return!!this._get(i)}set(i,n){let r=i.toLowerCase();if(r==="set-cookie"){this._setCookies=[n];return}if(!this._map&&this.headersInit!=null)if(Array.isArray(this.headersInit)){let u=this.headersInit.find(([t])=>t.toLowerCase()===r);if(u)u[1]=n;else this.headersInit.push([r,n]);return}else if(mn(this.headersInit)){this.headersInit.set(r,n);return}else{this.headersInit[r]=n;return}this.getMap().set(r,n)}delete(i){let n=i.toLowerCase();if(n==="set-cookie"){this._setCookies=[];return}this.getMap().delete(n)}forEach(i){if(this._setCookies?.forEach((n)=>{i(n,"set-cookie",this)}),!this._map){if(this.headersInit){if(Array.isArray(this.headersInit)){this.headersInit.forEach(([n,r])=>{i(r,n,this)});return}if(mn(this.headersInit)){this.headersInit.forEach(i);return}Object.entries(this.headersInit).forEach(([n,r])=>{if(r!=null)i(r,n,this)})}return}this.getMap().forEach((n,r)=>{i(n,r,this)})}*_keys(){if(this._setCookies?.length)yield"set-cookie";if(!this._map){if(this.headersInit){if(Array.isArray(this.headersInit)){yield*this.headersInit.map(([i])=>i)[Symbol.iterator]();return}if(mn(this.headersInit)){yield*this.headersInit.keys();return}yield*Object.keys(this.headersInit)[Symbol.iterator]();return}}yield*this.getMap().keys()}keys(){return new $g.PonyfillIteratorObject(this._keys(),"HeadersIterator")}*_values(){if(this._setCookies?.length)yield*this._setCookies;if(!this._map){if(this.headersInit){if(Array.isArray(this.headersInit)){yield*this.headersInit.map(([,i])=>i)[Symbol.iterator]();return}if(mn(this.headersInit)){yield*this.headersInit.values();return}yield*Object.values(this.headersInit)[Symbol.iterator]();return}}yield*this.getMap().values()}values(){return new $g.PonyfillIteratorObject(this._values(),"HeadersIterator")}*_entries(){if(this._setCookies?.length)yield*this._setCookies.map((i)=>["set-cookie",i]);if(!this._map){if(this.headersInit){if(Array.isArray(this.headersInit)){yield*this.headersInit;return}if(mn(this.headersInit)){yield*this.headersInit.entries();return}yield*Object.entries(this.headersInit);return}}yield*this.getMap().entries()}entries(){return new $g.PonyfillIteratorObject(this._entries(),"HeadersIterator")}getSetCookie(){if(!this._setCookies)this.getMap();return this._setCookies}[Symbol.iterator](){return this.entries()}[Symbol.for("nodejs.util.inspect.custom")](){let i={};return this.forEach((n,r)=>{if(r==="set-cookie")i["set-cookie"]=this._setCookies||[];else i[r]=n?.includes(",")?n.split(",").map((u)=>u.trim()):n}),`Headers ${BN.inspect(i)}`}}v1.PonyfillHeaders=b1});var et=P((O1)=>{Object.defineProperty(O1,"__esModule",{value:!0});O1.PonyfillResponse=void 0;var VN=T("node:http"),MN=Vu(),wg=Mu(),Rt="application/json; charset=utf-8";class Zt extends MN.PonyfillBody{headers;constructor(i,n){super(i||null,n);this.headers=n?.headers&&wg.isHeadersLike(n.headers)?n.headers:new wg.PonyfillHeaders(n?.headers),this.status=n?.status||200,this.statusText=n?.statusText||VN.STATUS_CODES[this.status]||"OK",this.url=n?.url||"",this.redirected=n?.redirected||!1,this.type=n?.type||"default",this.handleContentLengthHeader()}get ok(){return this.status>=200&&this.status<300}status;statusText;url;redirected;type;clone(){return this}static error(){return new Zt(null,{status:500,statusText:"Internal Server Error"})}static redirect(i,n=302){if(n<300||n>399)throw new RangeError("Invalid status code");return new Zt(null,{headers:{location:i},status:n})}static json(i,n){let r=JSON.stringify(i);if(!n)n={headers:{"content-type":Rt,"content-length":Buffer.byteLength(r).toString()}};else if(!n.headers)n.headers={"content-type":Rt,"content-length":Buffer.byteLength(r).toString()};else if(wg.isHeadersLike(n.headers)){if(!n.headers.has("content-type"))n.headers.set("content-type",Rt);if(!n.headers.has("content-length"))n.headers.set("content-length",Buffer.byteLength(r).toString())}else if(Array.isArray(n.headers)){let u=!1,t=!1;for(let[c]of n.headers){if(t&&u)break;if(!u&&c.toLowerCase()==="content-type")u=!0;else if(!t&&c.toLowerCase()==="content-length")t=!0}if(!u)n.headers.push(["content-type",Rt]);if(!t)n.headers.push(["content-length",Buffer.byteLength(r).toString()])}else if(typeof n.headers==="object"){if(n.headers?.["content-type"]==null)n.headers["content-type"]=Rt;if(n.headers?.["content-length"]==null)n.headers["content-length"]=Buffer.byteLength(r).toString()}return new Zt(r,n)}[Symbol.toStringTag]="Response"}O1.PonyfillResponse=Zt});var z1=P((N1)=>{Object.defineProperty(N1,"__esModule",{value:!0});N1.fetchCurl=yN;var U1=T("node:stream"),xN=T("node:tls"),FN=Qn(),PN=et(),bg=Ci();function yN(i){let{Curl:n,CurlFeature:r,CurlPause:u,CurlProgressFunc:t}=globalThis.libcurl,c=new n;if(c.enable(r.NoDataParsing),c.setOpt("URL",i.url),process.env.NODE_TLS_REJECT_UNAUTHORIZED==="0")c.setOpt("SSL_VERIFYPEER",!1);if(process.env.NODE_EXTRA_CA_CERTS)c.setOpt("CAINFO",process.env.NODE_EXTRA_CA_CERTS);else c.setOpt("CAINFO_BLOB",xN.rootCertificates.join(`\n`));c.enable(r.StreamResponse);let g;if(i._signal===null)g=void 0;else if(i._signal)g=i._signal;if(c.setStreamProgressCallback(function(){return g?.aborted?process.env.DEBUG?t.Continue:1:0}),i.bodyType==="String")c.setOpt("POSTFIELDS",i.bodyInit);else{let v=i.body!=null?bg.isNodeReadable(i.body)?i.body:U1.Readable.from(i.body):null;if(v)c.setOpt("UPLOAD",!0),c.setUploadStream(v)}if(process.env.DEBUG)c.setOpt("VERBOSE",!0);c.setOpt("TRANSFER_ENCODING",!1),c.setOpt("HTTP_TRANSFER_DECODING",!0),c.setOpt("FOLLOWLOCATION",i.redirect==="follow"),c.setOpt("MAXREDIRS",20),c.setOpt("ACCEPT_ENCODING",""),c.setOpt("CUSTOMREQUEST",i.method);let h=i.headersSerializer||bg.defaultHeadersSerializer,_,l=h(i.headers,(v)=>{_=Number(v)});if(_!=null)c.setOpt("INFILESIZE",_);c.setOpt("HTTPHEADER",l),c.enable(r.NoHeaderParsing);let $=FN.createDeferredPromise(),w;function b(){if(c.isOpen)try{c.pause(u.Recv)}catch(v){$.reject(v)}}return g?.addEventListener("abort",b,{once:!0}),c.once("end",function v(){try{c.close()}catch(f){$.reject(f)}g?.removeEventListener("abort",b)}),c.once("error",function v(f){if(w&&!w.closed&&!w.destroyed)w.destroy(f);else{if(f.message==="Operation was aborted by an application callback")f.message="The operation was aborted.";$.reject(f)}try{c.close()}catch(U){$.reject(U)}}),c.once("stream",function v(f,U,z){let J=f.pipe(new U1.PassThrough,{end:!0}),j=z.toString("utf8").split(/\\r?\\n|\\r/g).filter((W)=>{if(W&&!W.startsWith("HTTP/")){if(i.redirect==="error"&&W.toLowerCase().includes("location")&&bg.shouldRedirect(U)){if(!f.destroyed)f.resume();J.destroy(),$.reject(new Error("redirect is not allowed"))}return!0}return!1}).map((W)=>W.split(/:\\s(.+)/).slice(0,2)),O=new PN.PonyfillResponse(J,{status:U,headers:j,url:c.getInfo(n.info.REDIRECT_URL)?.toString()||i.url,redirected:Number(c.getInfo(n.info.REDIRECT_COUNT))>0});$.resolve(O),w=J}),setImmediate(()=>{c.perform()}),$.promise}});var pt=P((J1)=>{Object.defineProperty(J1,"__esModule",{value:!0});J1.PonyfillURL=void 0;var kN=rg(),CN=kN.__importDefault(T("node:buffer")),RN=T("node:crypto"),W1=globalThis.URL;class D1 extends W1{static blobRegistry=new Map;static createObjectURL(i){let n=`blob:whatwgnode:${RN.randomUUID()}`;return this.blobRegistry.set(n,i),n}static revokeObjectURL(i){if(!this.blobRegistry.has(i))W1.revokeObjectURL(i);else this.blobRegistry.delete(i)}static getBlobFromURL(i){return this.blobRegistry.get(i)||CN.default?.resolveObjectURL?.(i)}}J1.PonyfillURL=D1});var xu=P((q1)=>{Object.defineProperty(q1,"__esModule",{value:!0});q1.PonyfillRequest=void 0;var ZN=T("node:http"),eN=T("node:https"),pN=Vu(),H1=Mu(),dN=pt();function aN(i){return i[Symbol.toStringTag]==="Request"}function sN(i){return i?.href!=null}class G1 extends pN.PonyfillBody{constructor(i,n){let r,u,t=null,c;if(typeof i==="string")r=i;else if(sN(i))u=i;else if(aN(i)){if(i._parsedUrl)u=i._parsedUrl;else if(i._url)r=i._url;else r=i.url;t=i.body,c=i}if(n!=null)t=n.body||null,c=n;super(t,c);if(this._url=r,this._parsedUrl=u,this.cache=c?.cache||"default",this.credentials=c?.credentials||"same-origin",this.headers=c?.headers&&H1.isHeadersLike(c.headers)?c.headers:new H1.PonyfillHeaders(c?.headers),this.integrity=c?.integrity||"",this.keepalive=c?.keepalive!=null?c?.keepalive:!1,this.method=c?.method?.toUpperCase()||"GET",this.mode=c?.mode||"cors",this.redirect=c?.redirect||"follow",this.referrer=c?.referrer||"about:client",this.referrerPolicy=c?.referrerPolicy||"no-referrer",this.headersSerializer=c?.headersSerializer,this.duplex=c?.duplex||"half",this.destination="document",this.priority="auto",this.method!=="GET"&&this.method!=="HEAD")this.handleContentLengthHeader(!0);if(c?.agent!=null){let g=u?.protocol||r||this.url;if(c.agent===!1)this.agent=!1;else if(g.startsWith("http:")&&c.agent instanceof ZN.Agent)this.agent=c.agent;else if(g.startsWith("https:")&&c.agent instanceof eN.Agent)this.agent=c.agent}}headersSerializer;cache;credentials;destination;headers;integrity;keepalive;method;mode;priority;redirect;referrer;referrerPolicy;_url;get signal(){return this._signal||=new AbortController().signal,this._signal}get url(){if(this._url==null)if(this._parsedUrl)this._url=this._parsedUrl.toString();else throw new TypeError("Invalid URL");return this._url}_parsedUrl;get parsedUrl(){if(this._parsedUrl==null)if(this._url!=null)this._parsedUrl=new dN.PonyfillURL(this._url,"http://localhost");else throw new TypeError("Invalid URL");return this._parsedUrl}duplex;agent;clone(){return this}[Symbol.toStringTag]="Request"}q1.PonyfillRequest=G1});var m1=P((Q1)=>{Object.defineProperty(Q1,"__esModule",{value:!0});Q1.fetchNodeHttp=Y1;var I1=T("node:http"),iz=T("node:https"),L1=T("node:stream"),Fu=T("node:zlib"),nz=Qn(),tz=xu(),rz=et(),uz=pt(),en=Ci();function cz(i){if(i.startsWith("http:"))return I1.request;else if(i.startsWith("https:"))return iz.request;throw new Error(`Unsupported protocol: ${i.split(":")[0]||i}`)}function Y1(i){return new Promise((n,r)=>{try{let u=cz(i.parsedUrl?.protocol||i.url),c=(i.headersSerializer||en.getHeadersObj)(i.headers);c["accept-encoding"]||="gzip, deflate, br",c["user-agent"]||="node";let g;if(i._signal==null)g=void 0;else if(i._signal)g=i._signal;let h;if(i.parsedUrl)h=u(i.parsedUrl,{method:i.method,headers:c,signal:g,agent:i.agent});else h=u(i.url,{method:i.method,headers:c,signal:g,agent:i.agent});if(h.once("error",r),h.once("response",(_)=>{let l;switch(_.headers["content-encoding"]){case"x-gzip":case"gzip":l=Fu.createGunzip();break;case"x-deflate":case"deflate":l=Fu.createInflate();break;case"x-deflate-raw":case"deflate-raw":l=Fu.createInflateRaw();break;case"br":l=Fu.createBrotliDecompress();break}if(_.headers.location&&en.shouldRedirect(_.statusCode)){if(i.redirect==="error"){let f=new Error("Redirects are not allowed");r(f),_.resume();return}if(i.redirect==="follow"){let f=new uz.PonyfillURL(_.headers.location,i.parsedUrl||i.url),U=Y1(new tz.PonyfillRequest(f,i));n(U.then((z)=>{return z.redirected=!0,z})),_.resume();return}}l||=new L1.PassThrough,en.pipeThrough({src:_,dest:l,signal:g,onError:(f)=>{if(!_.destroyed)_.destroy(f);if(!l.destroyed)l.destroy(f);r(f)}});let w=_.statusCode||200,b=_.statusMessage||I1.STATUS_CODES[w];if(b==null)b="";let v=new rz.PonyfillResponse(l||_,{status:w,statusText:b,headers:_.headers,url:i.url,signal:g});n(v)}),i._buffer!=null)nz.handleMaybePromise(()=>en.safeWrite(i._buffer,h),()=>en.endStream(h),r);else{let _=i.body!=null?en.isNodeReadable(i.body)?i.body:L1.Readable.from(i.body):null;if(_)_.pipe(h);else en.endStream(h)}}catch(u){r(u)}})}});var V1=P((K1)=>{Object.defineProperty(K1,"__esModule",{value:!0});K1.fetchPonyfill=B1;var gz=T("node:buffer"),Pu=T("node:fs"),hz=T("node:url"),_z=z1(),lz=m1(),$z=xu(),Wt=et(),wz=pt(),S1=Ci(),A1=";base64";async function bz(i){let n=hz.fileURLToPath(i);try{await Pu.promises.access(n,Pu.promises.constants.R_OK);let r=await Pu.promises.stat(n,{bigint:!0}),u=Pu.createReadStream(n);return new Wt.PonyfillResponse(u,{status:200,statusText:"OK",headers:{"content-type":"application/octet-stream","last-modified":r.mtime.toUTCString()}})}catch(r){if(r.code==="ENOENT")return new Wt.PonyfillResponse(null,{status:404,statusText:"Not Found"});else if(r.code==="EACCES")return new Wt.PonyfillResponse(null,{status:403,statusText:"Forbidden"});throw r}}function vz(i){let[n="text/plain",...r]=i.substring(5).split(","),u=decodeURIComponent(r.join(","));if(n.endsWith(A1)){let t=gz.Buffer.from(u,"base64url"),c=n.slice(0,-A1.length);return new Wt.PonyfillResponse(t,{status:200,statusText:"OK",headers:{"content-type":c}})}return new Wt.PonyfillResponse(u,{status:200,statusText:"OK",headers:{"content-type":n}})}function fz(i){let n=wz.PonyfillURL.getBlobFromURL(i);if(!n)throw new TypeError("Invalid Blob URL");return new Wt.PonyfillResponse(n,{status:200,headers:{"content-type":n.type,"content-length":n.size.toString()}})}function Oz(i){return i!=null&&i.href!=null}function B1(i,n){if(typeof i==="string"||Oz(i)){let u=new $z.PonyfillRequest(i,n);return B1(u)}let r=i;if(r.url.startsWith("data:")){let u=vz(r.url);return S1.fakePromise(u)}if(r.url.startsWith("file:"))return bz(r.url);if(r.url.startsWith("blob:")){let u=fz(r.url);return S1.fakePromise(u)}if(globalThis.libcurl&&!r.agent)return _z.fetchCurl(r);return lz.fetchNodeHttp(r)}});var vg=P((F1)=>{Object.defineProperty(F1,"__esModule",{value:!0});F1.PonyfillTextDecoder=F1.PonyfillTextEncoder=void 0;F1.PonyfillBtoa=Nz;var dt=T("node:buffer"),Uz=Ci();class M1{encoding;constructor(i="utf-8"){this.encoding=i}encode(i){return dt.Buffer.from(i,this.encoding)}encodeInto(i,n){let u=this.encode(i).copy(n);return{read:u,written:u}}}F1.PonyfillTextEncoder=M1;class x1{encoding;fatal=!1;ignoreBOM=!1;constructor(i="utf-8",n){if(this.encoding=i,n)this.fatal=n.fatal||!1,this.ignoreBOM=n.ignoreBOM||!1}decode(i){if(dt.Buffer.isBuffer(i))return i.toString(this.encoding);if(Uz.isArrayBufferView(i))return dt.Buffer.from(i.buffer,i.byteOffset,i.byteLength).toString(this.encoding);return dt.Buffer.from(i).toString(this.encoding)}}F1.PonyfillTextDecoder=x1;function Nz(i){return dt.Buffer.from(i,"binary").toString("base64")}});var k1=P((y1)=>{Object.defineProperty(y1,"__esModule",{value:!0});y1.PonyfillURLSearchParams=void 0;y1.PonyfillURLSearchParams=globalThis.URLSearchParams});var Og=P((Z1)=>{Object.defineProperty(Z1,"__esModule",{value:!0});Z1.PonyfillWritableStream=void 0;var yu=T("node:events"),fg=T("node:stream"),C1=Qn(),Sn=Ci();class R1{writable;constructor(i){if(i instanceof fg.Writable)this.writable=i;else if(i){let n=new fg.Writable({write(t,c,g){try{let h=i.write?.(t,u);if(h instanceof Promise)h.then(()=>{g()},(_)=>{g(_)});else g()}catch(h){g(h)}},final(t){let c=i.close?.();if(c instanceof Promise)c.then(()=>{t()},(g)=>{t(g)});else t()}});this.writable=n;let r=new AbortController,u={signal:r.signal,error(t){n.destroy(t)}};n.once("error",(t)=>r.abort(t)),n.once("close",()=>r.abort())}else this.writable=new fg.Writable}getWriter(){let i=this.writable;return{get closed(){return yu.once(i,"close")},get desiredSize(){return i.writableLength},get ready(){return yu.once(i,"drain")},releaseLock(){},write(n){let r=Sn.fakePromise();if(n==null)return r;return r.then(()=>Sn.safeWrite(n,i))},close(){if(!i.errored&&i.closed)return Sn.fakePromise();if(i.errored)return C1.fakeRejectPromise(i.errored);return Sn.fakePromise().then(()=>Sn.endStream(i))},abort(n){return i.destroy(n),yu.once(i,"close")}}}close(){if(!this.writable.errored&&this.writable.closed)return Sn.fakePromise();if(this.writable.errored)return C1.fakeRejectPromise(this.writable.errored);return Sn.fakePromise().then(()=>Sn.endStream(this.writable))}abort(i){return this.writable.destroy(i),yu.once(this.writable,"close")}locked=!1}Z1.PonyfillWritableStream=R1});var at=P((d1)=>{Object.defineProperty(d1,"__esModule",{value:!0});d1.PonyfillTransformStream=void 0;var jg=T("node:stream"),Dz=Ut(),Jz=Ci(),Ez=Og();class p1{transform;writable;readable;constructor(i){if(i instanceof jg.Transform)this.transform=i;else if(i){let n={enqueue(u){r.push(u)},error(u){r.destroy(u)},terminate(){Jz.endStream(r)},get desiredSize(){return r.writableLength}},r=new jg.Transform({read(){},write(u,t,c){try{let g=i.transform?.(u,n);if(g instanceof Promise)g.then(()=>{c()},(h)=>{c(h)});else c()}catch(g){c(g)}},final(u){try{let t=i.flush?.(n);if(t instanceof Promise)t.then(()=>{u()},(c)=>{u(c)});else u()}catch(t){u(t)}}});this.transform=r}else this.transform=new jg.Transform;this.writable=new Ez.PonyfillWritableStream(this.transform),this.readable=new Dz.PonyfillReadableStream(this.transform)}}d1.PonyfillTransformStream=p1});var tv=P((iv)=>{Object.defineProperty(iv,"__esModule",{value:!0});iv.PonyfillCompressionStream=void 0;var Tu=T("node:zlib"),Hz=at();class s1 extends Hz.PonyfillTransformStream{static supportedFormats=globalThis.process?.version?.startsWith("v2")?["gzip","deflate","br"]:["gzip","deflate","deflate-raw","br"];constructor(i){switch(i){case"x-gzip":case"gzip":super(Tu.createGzip());break;case"x-deflate":case"deflate":super(Tu.createDeflate());break;case"deflate-raw":super(Tu.createDeflateRaw());break;case"br":super(Tu.createBrotliCompress());break;default:throw new Error(`Unsupported compression format: ${i}`)}}}iv.PonyfillCompressionStream=s1});var ov=P((uv)=>{Object.defineProperty(uv,"__esModule",{value:!0});uv.PonyfillDecompressionStream=void 0;var ku=T("node:zlib"),Gz=at();class rv extends Gz.PonyfillTransformStream{static supportedFormats=globalThis.process?.version?.startsWith("v2")?["gzip","deflate","br"]:["gzip","deflate","deflate-raw","br"];constructor(i){switch(i){case"x-gzip":case"gzip":super(ku.createGunzip());break;case"x-deflate":case"deflate":super(ku.createInflate());break;case"deflate-raw":super(ku.createInflateRaw());break;case"br":super(ku.createBrotliDecompress());break;default:throw new TypeError(`Unsupported compression format: \'${i}\'`)}}}uv.PonyfillDecompressionStream=rv});var bv=P(($v)=>{Object.defineProperty($v,"__esModule",{value:!0});$v.PonyfillTextEncoderStream=$v.PonyfillTextDecoderStream=void 0;var gv=vg(),hv=at();class _v extends hv.PonyfillTransformStream{textDecoder;constructor(i,n){super({transform:(r,u)=>u.enqueue(this.textDecoder.decode(r,{stream:!0}))});this.textDecoder=new gv.PonyfillTextDecoder(i,n)}get encoding(){return this.textDecoder.encoding}get fatal(){return this.textDecoder.fatal}get ignoreBOM(){return this.textDecoder.ignoreBOM}}$v.PonyfillTextDecoderStream=_v;class lv extends hv.PonyfillTransformStream{textEncoder;constructor(i){super({transform:(n,r)=>r.enqueue(this.textEncoder.encode(n))});this.textEncoder=new gv.PonyfillTextEncoder(i)}get encoding(){return this.textEncoder.encoding}encode(i){return this.textEncoder.encode(i)}}$v.PonyfillTextEncoderStream=lv});var fv=P((ti)=>{Object.defineProperty(ti,"__esModule",{value:!0});ti.TextEncoderStream=ti.TextDecoderStream=ti.IteratorObject=ti.DecompressionStream=ti.CompressionStream=ti.TransformStream=ti.WritableStream=ti.URLSearchParams=ti.URL=ti.btoa=ti.TextDecoder=ti.TextEncoder=ti.Blob=ti.FormData=ti.File=ti.ReadableStream=ti.Response=ti.Request=ti.Body=ti.Headers=ti.fetch=void 0;var Xz=V1();Object.defineProperty(ti,"fetch",{enumerable:!0,get:function(){return Xz.fetchPonyfill}});var Lz=Mu();Object.defineProperty(ti,"Headers",{enumerable:!0,get:function(){return Lz.PonyfillHeaders}});var Iz=Vu();Object.defineProperty(ti,"Body",{enumerable:!0,get:function(){return Iz.PonyfillBody}});var Yz=xu();Object.defineProperty(ti,"Request",{enumerable:!0,get:function(){return Yz.PonyfillRequest}});var Qz=et();Object.defineProperty(ti,"Response",{enumerable:!0,get:function(){return Qz.PonyfillResponse}});var mz=Ut();Object.defineProperty(ti,"ReadableStream",{enumerable:!0,get:function(){return mz.PonyfillReadableStream}});var Sz=ng();Object.defineProperty(ti,"File",{enumerable:!0,get:function(){return Sz.PonyfillFile}});var Az=lg();Object.defineProperty(ti,"FormData",{enumerable:!0,get:function(){return Az.PonyfillFormData}});var Bz=Iu();Object.defineProperty(ti,"Blob",{enumerable:!0,get:function(){return Bz.PonyfillBlob}});var Ug=vg();Object.defineProperty(ti,"TextEncoder",{enumerable:!0,get:function(){return Ug.PonyfillTextEncoder}});Object.defineProperty(ti,"TextDecoder",{enumerable:!0,get:function(){return Ug.PonyfillTextDecoder}});Object.defineProperty(ti,"btoa",{enumerable:!0,get:function(){return Ug.PonyfillBtoa}});var Kz=pt();Object.defineProperty(ti,"URL",{enumerable:!0,get:function(){return Kz.PonyfillURL}});var Vz=k1();Object.defineProperty(ti,"URLSearchParams",{enumerable:!0,get:function(){return Vz.PonyfillURLSearchParams}});var Mz=Og();Object.defineProperty(ti,"WritableStream",{enumerable:!0,get:function(){return Mz.PonyfillWritableStream}});var xz=at();Object.defineProperty(ti,"TransformStream",{enumerable:!0,get:function(){return xz.PonyfillTransformStream}});var Fz=tv();Object.defineProperty(ti,"CompressionStream",{enumerable:!0,get:function(){return Fz.PonyfillCompressionStream}});var Pz=ov();Object.defineProperty(ti,"DecompressionStream",{enumerable:!0,get:function(){return Pz.PonyfillDecompressionStream}});var yz=Bu();Object.defineProperty(ti,"IteratorObject",{enumerable:!0,get:function(){return yz.PonyfillIteratorObject}});var vv=bv();Object.defineProperty(ti,"TextDecoderStream",{enumerable:!0,get:function(){return vv.PonyfillTextDecoderStream}});Object.defineProperty(ti,"TextEncoderStream",{enumerable:!0,get:function(){return vv.PonyfillTextEncoderStream}})});var jv=P((H9,Ov)=>{var kz=Do(),ri;Ov.exports=function i(n={}){let r={};if(r.URLPattern=globalThis.URLPattern,!r.URLPattern){let u=gw();r.URLPattern=u.URLPattern}if(n.skipPonyfill||kz())return{fetch:globalThis.fetch,Headers:globalThis.Headers,Request:globalThis.Request,Response:globalThis.Response,FormData:globalThis.FormData,ReadableStream:globalThis.ReadableStream,WritableStream:globalThis.WritableStream,TransformStream:globalThis.TransformStream,CompressionStream:globalThis.CompressionStream,DecompressionStream:globalThis.DecompressionStream,TextDecoderStream:globalThis.TextDecoderStream,TextEncoderStream:globalThis.TextEncoderStream,Blob:globalThis.Blob,File:globalThis.File,crypto:globalThis.crypto,btoa:globalThis.btoa,TextEncoder:globalThis.TextEncoder,TextDecoder:globalThis.TextDecoder,URLPattern:r.URLPattern,URL:globalThis.URL,URLSearchParams:globalThis.URLSearchParams};if(ri||=fv(),r.fetch=ri.fetch,r.Request=ri.Request,r.Response=ri.Response,r.Headers=ri.Headers,r.FormData=ri.FormData,r.ReadableStream=ri.ReadableStream,r.URL=ri.URL,r.URLSearchParams=ri.URLSearchParams,r.WritableStream=ri.WritableStream,r.TransformStream=ri.TransformStream,r.CompressionStream=ri.CompressionStream,r.DecompressionStream=ri.DecompressionStream,r.TextDecoderStream=ri.TextDecoderStream,r.TextEncoderStream=ri.TextEncoderStream,r.Blob=ri.Blob,r.File=ri.File,r.crypto=globalThis.crypto,r.btoa=ri.btoa,r.TextEncoder=ri.TextEncoder,r.TextDecoder=ri.TextDecoder,n.formDataLimits)r.Body=class u extends ri.Body{constructor(t,c){super(t,{formDataLimits:n.formDataLimits,...c})}},r.Request=class u extends ri.Request{constructor(t,c){super(t,{formDataLimits:n.formDataLimits,...c})}},r.Response=class u extends ri.Response{constructor(t,c){super(t,{formDataLimits:n.formDataLimits,...c})}};if(!r.crypto){let u=T("crypto");r.crypto=u.webcrypto}return r}});var H0="x-blink-invocation-token",G0="INTERNAL_BLINK_API_SERVER_URL",zo="INTERNAL_BLINK_API_SERVER_LISTEN_PORT";import AY from"http";import{resolve as BY}from"node:path";import{createServer as SY,Server as oj}from"node:http";var vu=Symbol.for("@whatwg-node/promise-helpers/FakePromise");function ln(i){return i?.then!=null}function wj(i){let n=i;return n&&n.then&&n.catch&&n.finally}function ji(i,n,r,u){let t=zi().then(i).then(n,r);if(u)t=t.finally(u);return Wo(t)}function zi(i){if(i&&wj(i))return i;if(ln(i))return{then:(n,r)=>zi(i.then(n,r)),catch:(n)=>zi(i.then((r)=>r,n)),finally:(n)=>zi(n?fj(i,n):i),[Symbol.toStringTag]:"Promise"};return{then(n){if(n)try{return zi(n(i))}catch(r){return Mt(r)}return this},catch(){return this},finally(n){if(n)try{return zi(n()).then(()=>i,()=>i)}catch(r){return Mt(r)}return this},[Symbol.toStringTag]:"Promise",__fakePromiseValue:i,[vu]:"resolved"}}function q0(){if(Promise.withResolvers)return Promise.withResolvers();let i,n;return{promise:new Promise(function u(t,c){i=t,n=c}),get resolve(){return i},get reject(){return n}}}function fu(i,n,r){if(i?.length===0)return;let u=i[Symbol.iterator](),t=0;function c(){let{done:g,value:h}=u.next();if(g)return;let _=!1;function l(){_=!0}return ji(function $(){return n(h,l,t++)},function $(w){if(w)r?.push(w);if(_)return;return c()})}return c()}function Mt(i){return{then(n,r){if(r)try{return zi(r(i))}catch(u){return Mt(u)}return this},catch(n){if(n)try{return zi(n(i))}catch(r){return Mt(r)}return this},finally(n){if(n)try{n()}catch(r){return Mt(r)}return this},__fakeRejectError:i,[Symbol.toStringTag]:"Promise",[vu]:"rejected"}}function bj(i){return i?.[vu]==="resolved"}function vj(i){return i?.[vu]==="rejected"}function fj(i,n){if("finally"in i)return i.finally(n);return i.then((r)=>{let u=n();return ln(u)?u.then(()=>r):r},(r)=>{let u=n();if(ln(u))return u.then(()=>{throw r});else throw r})}function Wo(i){if(bj(i))return i.__fakePromiseValue;if(vj(i))throw i.__fakeRejectError;return i}function X0(i,n){let r={...n,...i};for(let u of Object.keys(r))if(u in i&&u in n)r[u]=(t,c)=>i[u](t,()=>n[u](t,c));return r}var L0=(i)=>({fn(n,r){if(!n)return r;return(...u)=>{let t;return n(i,()=>{t=r(...u)}),t}},asyncFn(n,r){if(!n)return r;return(...u)=>{let t;return ji(()=>n(i,()=>{return t=r(...u),ln(t)?t.then(()=>{return}):void 0}),()=>{return t})}}});class yn extends Error{error;suppressed;constructor(i,n,r){super(r);this.error=i,this.suppressed=n,this.name="SuppressedError",Error.captureStackTrace(this,this.constructor)}}var Ji={get dispose(){return Symbol.dispose||Symbol.for("dispose")},get asyncDispose(){return Symbol.asyncDispose||Symbol.for("asyncDispose")}};function Ou(i){return i?.[Ji.dispose]!=null}function I0(i){return i?.[Ji.asyncDispose]!=null}var Oj=globalThis.SuppressedError||yn;class ju{callbacks=[];get disposed(){return this.callbacks.length===0}use(i){if(I0(i))this.callbacks.push(()=>i[Ji.asyncDispose]());else if(Ou(i))this.callbacks.push(()=>i[Ji.dispose]());return i}adopt(i,n){if(n)this.callbacks.push(()=>n(i));return i}defer(i){if(i)this.callbacks.push(i)}move(){let i=new ju;return i.callbacks=this.callbacks,this.callbacks=[],i}disposeAsync(){return this[Ji.asyncDispose]()}_error;_iterateCallbacks(){let i=this.callbacks.pop();if(i)return ji(i,()=>this._iterateCallbacks(),(n)=>{return this._error=this._error?new Oj(n,this._error):n,this._iterateCallbacks()})}[Ji.asyncDispose](){let i=this._iterateCallbacks();if(i?.then)return i.then(()=>{if(this._error){let n=this._error;throw this._error=void 0,n}});if(this._error){let n=this._error;throw this._error=void 0,n}return}[Symbol.toStringTag]="AsyncDisposableStack"}var jj=globalThis.SuppressedError||yn;class Uu{callbacks=[];get disposed(){return this.callbacks.length===0}use(i){if(Ou(i))this.callbacks.push(()=>i[Ji.dispose]());return i}adopt(i,n){if(n)this.callbacks.push(()=>n(i));return i}defer(i){if(i)this.callbacks.push(i)}move(){let i=new Uu;return i.callbacks=this.callbacks,this.callbacks=[],i}dispose(){return this[Ji.dispose]()}_error;_iterateCallbacks(){let i=this.callbacks.pop();if(i){try{i()}catch(n){this._error=this._error?new jj(n,this._error):n}return this._iterateCallbacks()}}[Ji.dispose](){if(this._iterateCallbacks(),this._error){let i=this._error;throw this._error=void 0,i}}[Symbol.toStringTag]="DisposableStack"}var hQ=globalThis.DisposableStack||Uu,Y0=globalThis.AsyncDisposableStack||ju,_Q=globalThis.SuppressedError||yn;var Ng={};Xn(Ng,{fetch:()=>Nv,crypto:()=>mv,createFetch:()=>xv,btoa:()=>Sv,WritableStream:()=>Hv,URLSearchParams:()=>Mv,URLPattern:()=>Kv,URL:()=>Vv,TransformStream:()=>Gv,TextEncoderStream:()=>Iv,TextEncoder:()=>Av,TextDecoderStream:()=>Lv,TextDecoder:()=>Bv,Response:()=>Dv,Request:()=>Wv,ReadableStream:()=>Ev,Headers:()=>zv,FormData:()=>Jv,File:()=>Qv,DecompressionStream:()=>Xv,CompressionStream:()=>qv,Blob:()=>Yv});var Uv=jv(),Cz=Do(),hi=Uv();if(!Cz())try{globalThis.libcurl=globalThis.libcurl||(()=>{throw new Error("Cannot require module "+"node-libcurl");})()}catch(i){}var{fetch:Nv,Headers:zv,Request:Wv,Response:Dv,FormData:Jv,ReadableStream:Ev,WritableStream:Hv,TransformStream:Gv,CompressionStream:qv,DecompressionStream:Xv,TextDecoderStream:Lv,TextEncoderStream:Iv,Blob:Yv,File:Qv,crypto:mv,btoa:Sv,TextEncoder:Av,TextDecoder:Bv,URLPattern:Kv,URL:Vv,URLSearchParams:Mv}=hi,xv=Uv;function Pv(i){return i!=null&&typeof i==="object"&&typeof i[Symbol.asyncIterator]==="function"}function Rz(i){if(i.socket?.localPort)return i.socket?.localPort;let r=(i.headers?.[":authority"]||i.headers?.host)?.split(":")?.[1];if(r)return r;return 80}function Zz(i){if(i.headers?.[":authority"])return i.headers?.[":authority"];if(i.headers?.host)return i.headers?.host;let n=Rz(i);if(i.hostname)return i.hostname+":"+n;let r=i.socket?.localAddress;if(r&&!r?.includes("::")&&!r?.includes("ffff"))return`${r}:${n}`;return"localhost"}function ez(i){let n=Zz(i),r=i.protocol||(i.socket?.encrypted?"https":"http"),u=i.originalUrl||i.url||"/graphql";return`${r}://${n}${u}`}function pz(i){let n=i[Symbol.toStringTag];if(typeof i==="string"||n==="Uint8Array"||n==="Blob"||n==="FormData"||n==="URLSearchParams"||Pv(i))return!0;return!1}function zg(i,n,r,u){let t=i.raw||i.req||i,c=ez(t);if(i.query){let l=new n.URL(c);for(let $ in i.query)l.searchParams.set($,i.query[$]);c=l.toString()}let g=i.headers;if(i.headers?.[":method"]){g={};for(let l in i.headers)if(!l.startsWith(":"))g[l]=i.headers[l]}let h=u?Hg():new AbortController;if(r?.once){let l=()=>{if(!h.signal.aborted)Object.defineProperty(t,"aborted",{value:!0}),h.abort(r.errored??void 0)};r.once("error",l),r.once("close",l),r.once("finish",()=>{r.removeListener("close",l)})}if(i.method==="GET"||i.method==="HEAD")return new n.Request(c,{method:i.method,headers:g,signal:h.signal});let _=i.body;if(_!=null&&Object.keys(_).length>0){if(pz(_))return new n.Request(c,{method:i.method||"GET",headers:g,body:_,signal:h.signal});let l=new n.Request(c,{method:i.method||"GET",headers:g,signal:h.signal});if(!l.headers.get("content-type")?.includes("json"))l.headers.set("content-type","application/json; charset=utf-8");return new Proxy(l,{get:($,w,b)=>{switch(w){case"json":return()=>zi(_);case"text":return()=>zi(JSON.stringify(_));default:if(globalThis.Bun)return Reflect.get($,w);return Reflect.get($,w,b)}}})}return new n.Request(c,{method:i.method,headers:g,signal:h.signal,body:t,duplex:"half"})}function yv(i){return i.read!=null}function Tv(i){return yv(i)}function Wg(i){return i!=null&&i.setHeader!=null&&i.end!=null&&i.once!=null&&i.write!=null}function dz(i){return i!=null&&i.getReader!=null}function kv(i){return i!=null&&i.request!=null&&i.respondWith!=null}function az(i){i?.socket?.setTimeout?.(0),i?.socket?.setNoDelay?.(!0),i?.socket?.setKeepAlive?.(!0)}function pn(i){i.end(null,null,null)}function sz(i,n){let r=!1,u=()=>{r=!0};i.once("error",u),i.once("close",u),i.once("finish",()=>{i.removeListener("close",u),i.removeListener("error",u)});let t=n[Symbol.asyncIterator](),c=()=>t.next().then(({done:g,value:h})=>{if(r||g)return;return ji(()=>st(h,i),()=>r?pn(i):c())});return c()}function st(i,n){if(!n.write(i))return new Promise((u)=>n.once("drain",u))}function Cv(i,n,r,u){if(n.closed||n.destroyed||n.writableEnded)return;if(!i){n.statusCode=404,pn(n);return}if(u&&i.headers?.headersInit&&!Array.isArray(i.headers.headersInit)&&!i.headers.headersInit.get&&!i.headers._map&&!i.headers._setCookies?.length)n.writeHead(i.status,i.statusText,i.headers.headersInit);else{if(n.setHeaders)n.setHeaders(i.headers);else{let g=!1;i.headers.forEach((h,_)=>{if(_==="set-cookie"){if(g)return;g=!0;let l=i.headers.getSetCookie?.();if(l){n.setHeader("set-cookie",l);return}}n.setHeader(_,h)})}n.writeHead(i.status,i.statusText)}if(i.bodyType==="String")return ji(()=>st(i.bodyInit,n),()=>pn(n));let t=i._buffer;if(t)return ji(()=>st(t,n),()=>pn(n));let c=i.body;if(c==null){pn(n);return}if(c[Symbol.toStringTag]==="Uint8Array")return ji(()=>st(c,n),()=>pn(n));if(az(r),yv(c)){n.once("close",()=>{c.destroy()}),c.pipe(n,{end:!0});return}if(dz(c))return iW(r,n,c);if(Pv(c))return sz(n,c)}function iW(i,n,r){let u=r.getReader();i?.once?.("error",(c)=>{u.cancel(c)});function t(){return u.read().then(({done:c,value:g})=>c?pn(n):ji(()=>st(g,n),t))}return t()}function Rv(i){return i!=null&&typeof i==="object"&&(("body"in i)||("cache"in i)||("credentials"in i)||("headers"in i)||("integrity"in i)||("keepalive"in i)||("method"in i)||("mode"in i)||("redirect"in i)||("referrer"in i)||("referrerPolicy"in i)||("signal"in i)||("window"in i))}function dn(...i){let[n,...r]=i.filter((u)=>u!=null&&typeof u==="object");return r.forEach((u)=>{let t=Object.getOwnPropertyNames(u).reduce((c,g)=>{if(Object.getOwnPropertyDescriptor(u,g))c[g]=Object.getOwnPropertyDescriptor(u,g);return c},{});Object.getOwnPropertySymbols(u).forEach((c)=>{let g=Object.getOwnPropertyDescriptor(u,c);if(g?.enumerable)t[c]=g}),Object.defineProperties(n,t)}),n}function Dg(i,n){return new n(i.stack||i.message||i.toString(),{status:i.status||500})}function Jg(i,n){if(i==null){if(n==null)return{};return{waitUntil:n}}return dn(Object.create(i),{waitUntil:n},i)}function Eg(i,n){if(n?.aborted)throw n.reason;if(ln(i)&&n){let u=function(){r.reject(n.reason)},r=q0();return n.addEventListener("abort",u,{once:!0}),i.then(function t(c){r.resolve(c)}).catch(function t(c){r.reject(c)}).finally(()=>{n.removeEventListener("abort",u)}),r.promise}return i}var nW=["SIGINT","exit","SIGTERM"],Cu=new Set,Fv=!1;function tW(){if(Fv)return;Fv=!0;for(let i of nW)globalThis.process.once(i,function n(){return Promise.allSettled([...Cu].map((r)=>!r.disposed&&r.disposeAsync()))})}function Zv(i){if(globalThis.process){if(tW(),!Cu.has(i))Cu.add(i),i.defer(()=>{Cu.delete(i)})}}class ev extends EventTarget{aborted=!1;_onabort=null;_reason;constructor(){super();let i=globalThis.process?.getBuiltinModule?.("node:events");if(i?.kMaxEventTargetListeners)this[i.kMaxEventTargetListeners]=0}throwIfAborted(){if(this._nativeCtrl?.signal?.throwIfAborted)return this._nativeCtrl.signal.throwIfAborted();if(this.aborted)throw this._reason}_nativeCtrl;ensureNativeCtrl(){if(!this._nativeCtrl){let i=this.aborted;if(this._nativeCtrl=new AbortController,i)this._nativeCtrl.abort(this._reason)}return this._nativeCtrl}abort(i){if(this._nativeCtrl?.abort)return this._nativeCtrl?.abort(i);this._reason=i||new DOMException("This operation was aborted","AbortError"),this.aborted=!0,this.dispatchEvent(new Event("abort"))}get signal(){if(this._nativeCtrl?.signal)return this._nativeCtrl.signal;return this}get reason(){if(this._nativeCtrl?.signal)return this._nativeCtrl.signal.reason;return this._reason}get onabort(){if(this._onabort)return this._onabort;return this._onabort}set onabort(i){if(this._nativeCtrl?.signal){this._nativeCtrl.signal.onabort=i;return}if(this._onabort)this.removeEventListener("abort",this._onabort);if(this._onabort=i,i)this.addEventListener("abort",i)}}function Hg(){if(globalThis.Bun||globalThis.Deno)return new AbortController;return new Proxy(new ev,{get(i,n,r){if(n.toString().includes("kDependantSignals")){let u=i.ensureNativeCtrl();return Reflect.get(u.signal,n,u.signal)}return Reflect.get(i,n,r)},set(i,n,r,u){if(n.toString().includes("kDependantSignals")){let t=i.ensureNativeCtrl();return Reflect.set(t.signal,n,r,t.signal)}return Reflect.set(i,n,r,u)},getPrototypeOf(){return AbortSignal.prototype}})}function pv(i){return!!i.onData}function dv({req:i,res:n,fetchAPI:r,controller:u}){let t=i.getMethod(),c,g=[],h=[(W)=>{g.push(W)}],_=(W)=>{for(let E of h)E(W)},l=!1,$=[()=>{l=!0}],w=()=>{for(let W of $)W()};n.onData(function(W,E){if(_(Buffer.from(Buffer.from(W,0,W.byteLength))),E)w()});let b;if(t!=="get"&&t!=="head"){c="half",u.signal.addEventListener("abort",()=>{w()},{once:!0});let W;b=()=>{if(!W)W=new r.ReadableStream({start(E){for(let X of g)E.enqueue(X);if(l){E.close();return}h.push((X)=>{E.enqueue(X)}),$.push(()=>{if(u.signal.reason){E.error(u.signal.reason);return}if(E.desiredSize)E.close()})}});return W}}let v=new r.Headers;i.forEach((W,E)=>{v.append(W,E)});let f=`http://localhost${i.getUrl()}`,U=i.getQuery();if(U)f+=`?${U}`;let z;function J(){if(!b)return null;if(l)return j();return b()}let N=new r.Request(f,{method:t,headers:v,get body(){return J()},signal:u.signal,duplex:c});function j(){if(!z)z=g.length===1?g[0]:Buffer.concat(g);return z}function O(){if(l)return zi(j());return new Promise((W,E)=>{try{$.push(()=>{W(j())})}catch(X){E(X)}})}return Object.defineProperties(N,{body:{get(){return J()},configurable:!0,enumerable:!0},json:{value(){return O().then((W)=>W.toString("utf8")).then((W)=>JSON.parse(W))},configurable:!0,enumerable:!0},text:{value(){return O().then((W)=>W.toString("utf8"))},configurable:!0,enumerable:!0},arrayBuffer:{value(){return O()},configurable:!0,enumerable:!0}}),N}function rW(i,n){return new n.WritableStream({write(r){i.cork(()=>{i.write(r)})},close(){i.cork(()=>{i.end()})}})}function av(i,n,r,u){if(!n){i.writeStatus("404 Not Found"),i.end();return}let t=n._buffer,c=n.bodyType==="String"?n.bodyInit:void 0;if(r.signal.aborted)return;if(i.cork(()=>{i.writeStatus(`${n.status} ${n.statusText}`);for(let[g,h]of n.headers)if(g!=="content-length"){if(g==="set-cookie"){let _=n.headers.getSetCookie?.();if(_){for(let l of _)i.writeHeader(g,l);continue}}i.writeHeader(g,h)}if(c)i.end(c);else if(t)i.end(t);else if(!n.body)i.end()}),c||t||!n.body)return;return r.signal.addEventListener("abort",()=>{if(!n.body?.locked)n.body?.cancel(r.signal.reason)},{once:!0}),n.body.pipeTo(rW(i,u),{signal:r.signal}).catch((g)=>{if(r.signal.aborted)return;throw g})}function uW(i){try{return!!i?.request}catch{return!1}}var cW={};function Gg(i,n){let r=n?.__useSingleWriteHead==null?!0:n.__useSingleWriteHead,u={...Ng,...n?.fetchAPI},t=n?.__useCustomAbortCtrl==null?u.Request!==globalThis.Request:n.__useCustomAbortCtrl,c=typeof i==="function"?i:i.handle,g=[],h=[],_,l=new Set,$;function w(){if(!$){if($=new Y0,n?.disposeOnProcessTerminate)Zv($);$.defer(()=>{if(l.size>0)return Promise.allSettled(l).then(()=>{l.clear()},()=>{l.clear()})})}return $}function b(H){if(ln(H))w(),l.add(H),H.then(()=>{l.delete(H)},(Y)=>{console.error(`Unexpected error while waiting: ${Y.message||Y}`),l.delete(H)})}if(n?.plugins!=null)for(let H of n.plugins){if(H.instrumentation)_=_?X0(_,H.instrumentation):H.instrumentation;if(H.onRequest)g.push(H.onRequest);if(H.onResponse)h.push(H.onResponse);let Y=H[Ji.dispose];if(Y)w().defer(Y);let V=H[Ji.asyncDispose];if(V)w().defer(V);if(H.onDispose)w().defer(H.onDispose)}let v=g.length>0||h.length>0?function H(Y,V){let Q=c,M;if(g.length===0)return Mi();let p=Y.parsedUrl||new Proxy(cW,{get(s,Ti,Di){return p=new u.URL(Y.url,"http://localhost"),Reflect.get(p,Ti,p)}});function li(s){if(h.length===0)return s;return ji(()=>fu(h,(Ti)=>Ti({request:Y,response:s,serverContext:V,setResponse(Di){s=Di},fetchAPI:u})),()=>s)}function Mi(){if(!M)return ji(()=>Q(Y,V),li);return li(M)}return ji(()=>fu(g,(s,Ti)=>s({request:Y,setRequest(Di){Y=Di},serverContext:V,fetchAPI:u,url:p,requestHandler:Q,setRequestHandler(Di){Q=Di},endResponse(Di){if(M=Di,Di)Ti()}})),Mi)}:c;if(_?.request){let H=v;v=(Y,V)=>{return L0({request:Y}).asyncFn(_.request,H)(Y,V)}}function f(H,...Y){let V=Y.length>1?dn(...Y):Y[0]||{};if(!V.waitUntil)V.waitUntil=b;let Q=zg(H,u,void 0,t);return v(Q,V)}function U(H,Y,...V){let Q=Y.raw||Y,M=V.length>1?dn(...V):V[0]||{};if(!M.waitUntil)M.waitUntil=b;let p=zg(H,u,Q,t);return v(p,M)}function z(H,Y,...V){let Q={req:H,res:Y,waitUntil:b};return Wo(zi().then(()=>U(H,Y,Q,...V)).catch((M)=>Dg(M,u.Response)).then((M)=>Cv(M,Y,H,r)).catch((M)=>console.error(`Unexpected error while handling request: ${M.message||M}`)))}function J(H,Y,...V){let Q={res:H,req:Y,waitUntil:b},p=V.filter((Ni)=>Ni!=null).length>0?dn(Q,...V):Q,li=t?Hg():new AbortController,Mi=H.end.bind(H),s=!1;H.end=function(Ni){return s=!0,Mi(Ni)},H.onAborted.bind(H)(function(){li.abort()}),H.onAborted=function(Ni){li.signal.addEventListener("abort",Ni,{once:!0})};let Di=dv({req:Y,res:H,fetchAPI:u,controller:li});return ji(()=>ji(()=>v(Di,p),(Ni)=>Ni,(Ni)=>Dg(Ni,u.Response)),(Ni)=>{if(!li.signal.aborted&&!s)return ji(()=>av(H,Ni,li,u),(di)=>di,(di)=>{console.error(`Unexpected error while handling request: ${di.message||di}`)})})}function N(H,...Y){if(!H.respondWith||!H.request)throw new TypeError(`Expected FetchEvent, got ${H}`);let V=Y.filter((p)=>p!=null),Q=V.length>0?dn({},H,...V):Jg(H),M=v(H.request,Q);H.respondWith(M)}function j(H,...Y){let V=Y.filter((M)=>M!=null),Q=V.length>1?dn({},...V):Jg(V[0],V[0]==null||V[0].waitUntil==null?b:void 0);return v(H,Q)}let O=(H,...Y)=>{if(typeof H==="string"||"href"in H){let[Q,...M]=Y;if(Rv(Q)){let li=new u.Request(H,Q),Mi=j(li,...M),s=Q.signal;if(s)return Eg(Mi,s);return Mi}let p=new u.Request(H);return j(p,...Y)}let V=j(H,...Y);return Eg(V,H.signal)},W=(H,...Y)=>{let[V,...Q]=Y;if(Tv(H)){if(!Wg(V))throw new TypeError(`Expected ServerResponse, got ${V}`);return z(H,V,...Q)}if(pv(H))return J(H,V,...Q);if(Wg(V))throw new TypeError("Got Node response without Node request");if(uW(H)){if(kv(H))return N(H,...Y);return j(H.request,H,...Y)}return O(H,...Y)},E={handleRequest:j,fetch:O,handleNodeRequest:f,handleNodeRequestAndResponse:U,requestListener:z,handleEvent:N,handleUWS:J,handle:W,get disposableStack(){return w()},[Ji.asyncDispose](){if($&&!$.disposed)return $.disposeAsync();return zi()},dispose(){if($&&!$.disposed)return $.disposeAsync();return zi()},waitUntil:b},X=new Proxy(W,{has:(H,Y)=>{return Y in E||Y in W||i&&Y in i},get:(H,Y)=>{if(globalThis.Deno||Y===Symbol.asyncDispose||Y===Symbol.dispose){let M=Reflect.get(E,Y,E);if(M)return M}let V=E[Y];if(V){if(V.bind)return V.bind(E);return V}let Q=W[Y];if(Q){if(Q.bind)return Q.bind(W);return Q}if(i){let M=i[Y];if(M){if(M.bind)return function(...p){let li=i[Y](...p);if(li===i)return X;return li};return M}}},apply(H,Y,V){return W(...V)}});return X}class Ru{baseURL;authToken;constructor(i){this.baseURL=i?.baseURL??"https://blink.so",this.authToken=i?.authToken}async deleteStorage(i){let n=await this.request("DELETE",`/api/agents/me/storage/${encodeURIComponent(i)}`);await this.assertResponseStatus(n,204)}async setStorage(i,n,r){let u=new URLSearchParams;if(r?.ttl)u.set("ttl",r.ttl.toString());let t=await this.request("PUT",`/api/agents/me/storage/${encodeURIComponent(i)}?${u.toString()}`,n);await this.assertResponseStatus(t,204)}async getStorage(i){let n=await this.request("GET",`/api/agents/me/storage/${encodeURIComponent(i)}`);if(n.status===404)return;return await this.assertResponseStatus(n,200),await n.text()}async listStorage(i,n){let r=await this.request("GET","/api/agents/me/storage",JSON.stringify({prefix:i,limit:n?.limit,cursor:n?.cursor}));return await this.assertResponseStatus(r,200),await r.json()}async upsertChat(i){let n=await this.request("PUT",`/api/agents/me/chats/${encodeURIComponent(i)}`);if(n.status!==200&&n.status!==204)await this.assertResponseStatus(n,200);return await n.json()}async sendMessages(i,n){let r=await this.request("POST",`/api/agents/me/chats/${encodeURIComponent(i)}/messages`,JSON.stringify(n));await this.assertResponseStatus(r,204)}async getChat(i){let n=await this.request("GET",`/api/agents/me/chats/${encodeURIComponent(i)}`);if(n.status===404)return;return await this.assertResponseStatus(n,200),await n.json()}async deleteChat(i){let n=await this.request("DELETE",`/api/agents/me/chats/${encodeURIComponent(i)}`);await this.assertResponseStatus(n,204)}async startChat(i){let n=await this.request("POST",`/api/agents/me/chats/${encodeURIComponent(i)}/start`);await this.assertResponseStatus(n,204)}async stopChat(i){let n=await this.request("POST",`/api/agents/me/chats/${encodeURIComponent(i)}/stop`);await this.assertResponseStatus(n,204)}async getMessages(i){let n=await this.request("GET",`/api/agents/me/chats/${encodeURIComponent(i)}/messages`);return await this.assertResponseStatus(n,200),await n.json()}async deleteMessages(i,n){let r=await this.request("POST",`/api/agents/me/chats/${encodeURIComponent(i)}/messages/delete`,JSON.stringify({message_ids:n}));await this.assertResponseStatus(r,204)}async proxyOtlpTraces(i){if(!this.authToken){if((i.headers.get("content-type")?.toLowerCase()||"").includes("application/x-protobuf"))return new Response(new Uint8Array(0),{status:200,headers:{"Content-Type":"application/x-protobuf"}});return new Response(JSON.stringify({}),{status:200,headers:{"Content-Type":"application/json"}})}let n=new Set(["transfer-encoding","content-length","host","connection","keep-alive","proxy-authenticate","proxy-authorization","te","trailer","upgrade"]),r={};return i.headers.forEach((u,t)=>{if(n.has(t.toLowerCase()))return;r[t]=u}),this.request(i.method,"/api/otlp/v1/traces",i.body??void 0,{headers:r})}async assertResponseStatus(i,n){if(i.status===n)return;let r=await i.text();try{let u=JSON.parse(r);if(u.error)throw new Error(u.error);throw new Error(r)}catch(u){throw new Error(`Expected status ${n}, got ${i.status}: ${r}`)}}request(i,n,r,u){let t=new URL(n,this.baseURL),c=new Headers;if(this.authToken)c.set("Authorization",`Bearer ${this.authToken}`);if(typeof r==="string")c.set("Content-Type","application/json");if(u?.headers)for(let[h,_]of Object.entries(u.headers))c.set(h,_);let g;if(u?.timeout)g=AbortSignal.timeout(u.timeout);return fetch(t.toString(),{method:i,headers:c,body:r,signal:g,duplex:r?"half":void 0})}}var Xg=(i)=>{let n=i.split("/");return n[0]===""&&n.shift(),n},sv=(i)=>{let{groups:n,path:r}=oW(i),u=Xg(r);return gW(u,n)},oW=(i)=>{let n=[];return i=i.replace(/\\{[^}]+\\}/g,(r,u)=>{let t=`@${u}`;return n.push([t,r]),t}),{groups:n,path:i}},gW=(i,n)=>{for(let r=n.length-1;r>=0;r--){let[u]=n[r];for(let t=i.length-1;t>=0;t--)if(i[t].includes(u)){i[t]=i[t].replace(u,n[r][1]);break}}return i},Zu={},nf=(i,n)=>{if(i==="*")return"*";let r=i.match(/^\\:([^\\{\\}]+)(?:\\{(.+)\\})?$/);if(r){let u=`${i}#${n}`;return Zu[u]||(r[2]?Zu[u]=n&&n[0]!==":"&&n[0]!=="*"?[u,r[1],RegExp(`^${r[2]}(?=/${n})`)]:[i,r[1],RegExp(`^${r[2]}$`)]:Zu[u]=[i,r[1],!0]),Zu[u]}return null},ir=(i,n)=>{try{return n(i)}catch{return i.replace(/(?:%[0-9A-Fa-f]{2})+/g,(r)=>{try{return n(r)}catch{return r}})}},hW=(i)=>ir(i,decodeURI),Lg=(i)=>{let n=i.url,r=n.indexOf("/",n.indexOf(":")+4),u=r;for(;u{let n=Lg(i);return n.length>1&&n.at(-1)==="/"?n.slice(0,-1):n},an=(i,n,...r)=>(r.length&&(n=an(n,...r)),`${i?.[0]==="/"?"":"/"}${i}${n==="/"?"":`${i?.at(-1)==="/"?"":"/"}${n?.[0]==="/"?n.slice(1):n}`}`),Ig=(i)=>{if(i.charCodeAt(i.length-1)!==63||!i.includes(":"))return null;let n=i.split("/"),r=[],u="";return n.forEach((t)=>{if(t!==""&&!/\\:/.test(t))u+="/"+t;else if(/\\:/.test(t))if(/\\?/.test(t)){r.length===0&&u===""?r.push("/"):r.push(u);let c=t.replace("?","");u+="/"+c,r.push(u)}else u+="/"+t}),r.filter((t,c,g)=>g.indexOf(t)===c)},qg=(i)=>/[%+]/.test(i)?(i.indexOf("+")!==-1&&(i=i.replace(/\\+/g," ")),i.indexOf("%")===-1?i:ir(i,eu)):i,rf=(i,n,r)=>{let u;if(!r&&n&&!/[%+]/.test(n)){let g=i.indexOf(`?${n}`,8);for(g===-1&&(g=i.indexOf(`&${n}`,8));g!==-1;){let h=i.charCodeAt(g+n.length+1);if(h===61){let _=g+n.length+2,l=i.indexOf("&",_);return qg(i.slice(_,l===-1?void 0:l))}else if(h==38||isNaN(h))return"";g=i.indexOf(`&${n}`,g+1)}if(u=/[%+]/.test(i),!u)return}let t={};u??=/[%+]/.test(i);let c=i.indexOf("?",8);for(;c!==-1;){let g=i.indexOf("&",c+1),h=i.indexOf("=",c);h>g&&g!==-1&&(h=-1);let _=i.slice(c+1,h===-1?g===-1?void 0:g:h);if(u&&(_=qg(_)),c=g,_==="")continue;let l;h===-1?l="":(l=i.slice(h+1,g===-1?void 0:g),u&&(l=qg(l))),r?(t[_]&&Array.isArray(t[_])||(t[_]=[]),t[_].push(l)):t[_]??=l}return n?t[n]:t},uf=rf,cf=(i,n)=>rf(i,n,!0),eu=decodeURIComponent,_W=/^[\\w!#$%&\'*.^`|~+-]+$/,lW=/^[ !#-:<-[\\]-~]*$/,Yg=(i,n)=>{if(n&&i.indexOf(n)===-1)return{};let r=i.trim().split(";"),u={};for(let t of r){t=t.trim();let c=t.indexOf("=");if(c===-1)continue;let g=t.substring(0,c).trim();if(n&&n!==g||!_W.test(g))continue;let h=t.substring(c+1).trim();if(h.startsWith(\'"\')&&h.endsWith(\'"\')&&(h=h.slice(1,-1)),lW.test(h)&&(u[g]=h.indexOf("%")===-1?h:ir(h,eu),n))break}return u};var of=(i,n,r)=>(u,t)=>{let c=-1;return g(0);async function g(h){if(h<=c)throw Error("next() called multiple times");c=h;let _,l=!1,$;if(i[h]?($=i[h][0][0],u.req.routeIndex=h):$=h===i.length&&t||void 0,$)try{_=await $(u,()=>g(h+1))}catch(w){if(w instanceof Error&&n)u.error=w,_=await n(w,u),l=!0;else throw w}else u.finalized===!1&&r&&(_=await r(u));return _&&(u.finalized===!1||l)&&(u.res=_),u}},$W=Symbol(),wW=async(i,n=Object.create(null))=>{let{all:r=!1,dot:u=!1}=n,t=(i instanceof lf?i.raw.headers:i.headers).get("Content-Type");return t?.startsWith("multipart/form-data")||t?.startsWith("application/x-www-form-urlencoded")?bW(i,{all:r,dot:u}):{}};async function bW(i,n){let r=await i.formData();return r?vW(r,n):{}}function vW(i,n){let r=Object.create(null);return i.forEach((u,t)=>{n.all||t.endsWith("[]")?fW(r,t,u):r[t]=u}),n.dot&&Object.entries(r).forEach(([u,t])=>{u.includes(".")&&(OW(r,u,t),delete r[u])}),r}var fW=(i,n,r)=>{i[n]===void 0?n.endsWith("[]")?i[n]=[r]:i[n]=r:Array.isArray(i[n])?i[n].push(r):i[n]=[i[n],r]},OW=(i,n,r)=>{let u=i,t=n.split(".");t.forEach((c,g)=>{g===t.length-1?u[c]=r:((!u[c]||typeof u[c]!="object"||Array.isArray(u[c])||u[c]instanceof File)&&(u[c]=Object.create(null)),u=u[c])})},gf=(i)=>ir(i,eu),lf=class{raw;#n;#i;routeIndex=0;path;bodyCache={};constructor(i,n="/",r=[[]]){this.raw=i,this.path=n,this.#i=r,this.#n={}}param(i){return i?this.#r(i):this.#t()}#r(i){let n=this.#i[0][this.routeIndex][1][i],r=this.#u(n);return r&&/\\%/.test(r)?gf(r):r}#t(){let i={},n=Object.keys(this.#i[0][this.routeIndex][1]);for(let r of n){let u=this.#u(this.#i[0][this.routeIndex][1][r]);u!==void 0&&(i[r]=/\\%/.test(u)?gf(u):u)}return i}#u(i){return this.#i[1]?this.#i[1][i]:i}query(i){return uf(this.url,i)}queries(i){return cf(this.url,i)}header(i){if(i)return this.raw.headers.get(i)??void 0;let n={};return this.raw.headers.forEach((r,u)=>{n[u]=r}),n}async parseBody(i){return this.bodyCache.parsedBody??=await wW(this,i)}#c=(i)=>{let{bodyCache:n,raw:r}=this,u=n[i];if(u)return u;let t=Object.keys(n)[0];return t?n[t].then((c)=>(t==="json"&&(c=JSON.stringify(c)),new Response(c)[i]())):n[i]=r[i]()};json(){return this.#c("text").then((i)=>JSON.parse(i))}text(){return this.#c("text")}arrayBuffer(){return this.#c("arrayBuffer")}blob(){return this.#c("blob")}formData(){return this.#c("formData")}addValidatedData(i,n){this.#n[i]=n}valid(i){return this.#n[i]}get url(){return this.raw.url}get method(){return this.raw.method}get[$W](){return this.#i}get matchedRoutes(){return this.#i[0].map(([[,i]])=>i)}get routePath(){return this.#i[0].map(([[,i]])=>i)[this.routeIndex].path}},jW={Stringify:1,BeforeStream:2,Stream:3},UW=(i,n)=>{let r=new String(i);return r.isEscaped=!0,r.callbacks=n,r},$f=async(i,n,r,u,t)=>{typeof i=="object"&&!(i instanceof String)&&(i instanceof Promise||(i=i.toString()),i instanceof Promise&&(i=await i));let c=i.callbacks;if(!c?.length)return Promise.resolve(i);t?t[0]+=i:t=[i];let g=Promise.all(c.map((h)=>h({phase:n,buffer:t,context:u}))).then((h)=>Promise.all(h.filter(Boolean).map((_)=>$f(_,n,!1,u,t))).then(()=>t[0]));return r?UW(await g,c):g},NW="text/plain; charset=UTF-8",Qg=(i,n)=>({"Content-Type":i,...n}),zW=class{#n;#i;env={};#r;finalized=!1;error;#t;#u;#c;#g;#w;#b;#l;#o;#O;constructor(i,n){this.#n=i,n&&(this.#u=n.executionCtx,this.env=n.env,this.#b=n.notFoundHandler,this.#O=n.path,this.#o=n.matchResult)}get req(){return this.#i??=new lf(this.#n,this.#O,this.#o),this.#i}get event(){if(this.#u&&"respondWith"in this.#u)return this.#u;throw Error("This context has no FetchEvent")}get executionCtx(){if(this.#u)return this.#u;throw Error("This context has no ExecutionContext")}get res(){return this.#c||=new Response(null,{headers:this.#l??=new Headers})}set res(i){if(this.#c&&i){i=new Response(i.body,i);for(let[n,r]of this.#c.headers.entries())if(n!=="content-type")if(n==="set-cookie"){let u=this.#c.headers.getSetCookie();i.headers.delete("set-cookie");for(let t of u)i.headers.append("set-cookie",t)}else i.headers.set(n,r)}this.#c=i,this.finalized=!0}render=(...i)=>(this.#w??=(n)=>this.html(n),this.#w(...i));setLayout=(i)=>this.#g=i;getLayout=()=>this.#g;setRenderer=(i)=>{this.#w=i};header=(i,n,r)=>{this.finalized&&(this.#c=new Response(this.#c.body,this.#c));let u=this.#c?this.#c.headers:this.#l??=new Headers;n===void 0?u.delete(i):r?.append?u.append(i,n):u.set(i,n)};status=(i)=>{this.#t=i};set=(i,n)=>{this.#r??=new Map,this.#r.set(i,n)};get=(i)=>this.#r?this.#r.get(i):void 0;get var(){return this.#r?Object.fromEntries(this.#r):{}}#$(i,n,r){let u=this.#c?new Headers(this.#c.headers):this.#l??new Headers;if(typeof n=="object"&&"headers"in n){let c=n.headers instanceof Headers?n.headers:new Headers(n.headers);for(let[g,h]of c)g.toLowerCase()==="set-cookie"?u.append(g,h):u.set(g,h)}if(r)for(let[c,g]of Object.entries(r))if(typeof g=="string")u.set(c,g);else{u.delete(c);for(let h of g)u.append(c,h)}let t=typeof n=="number"?n:n?.status??this.#t;return new Response(i,{status:t,headers:u})}newResponse=(...i)=>this.#$(...i);body=(i,n,r)=>this.#$(i,n,r);text=(i,n,r)=>!this.#l&&!this.#t&&!n&&!r&&!this.finalized?new Response(i):this.#$(i,n,Qg(NW,r));json=(i,n,r)=>this.#$(JSON.stringify(i),n,Qg("application/json",r));html=(i,n,r)=>{let u=(t)=>this.#$(t,n,Qg("text/html; charset=UTF-8",r));return typeof i=="object"?$f(i,jW.Stringify,!1,{}).then(u):u(i)};redirect=(i,n)=>{let r=String(i);return this.header("Location",/[^\\x00-\\xFF]/.test(r)?encodeURI(r):r),this.newResponse(null,n??302)};notFound=()=>(this.#b??=()=>new Response,this.#b(this))},bi="ALL",WW="all",DW=["get","post","put","delete","options","patch"],wf="Can not add a route since the matcher is already built.",bf=class extends Error{},JW="__COMPOSED_HANDLER",EW=(i)=>i.text("404 Not Found",404),hf=(i,n)=>{if("getResponse"in i){let r=i.getResponse();return n.newResponse(r.body,r)}return console.error(i),n.text("Internal Server Error",500)},vf=class{get;post;put;delete;options;patch;all;on;use;router;getPath;_basePath="/";#n="/";routes=[];constructor(i={}){[...DW,WW].forEach((u)=>{this[u]=(t,...c)=>(typeof t=="string"?this.#n=t:this.#t(u,this.#n,t),c.forEach((g)=>{this.#t(u,this.#n,g)}),this)}),this.on=(u,t,...c)=>{for(let g of[t].flat()){this.#n=g;for(let h of[u].flat())c.map((_)=>{this.#t(h.toUpperCase(),this.#n,_)})}return this},this.use=(u,...t)=>(typeof u=="string"?this.#n=u:(this.#n="*",t.unshift(u)),t.forEach((c)=>{this.#t(bi,this.#n,c)}),this);let{strict:n,...r}=i;Object.assign(this,r),this.getPath=n??!0?i.getPath??Lg:tf}#i(){let i=new vf({router:this.router,getPath:this.getPath});return i.errorHandler=this.errorHandler,i.#r=this.#r,i.routes=this.routes,i}#r=EW;errorHandler=hf;route(i,n){let r=this.basePath(i);return n.routes.map((u)=>{let t;n.errorHandler===hf?t=u.handler:(t=async(c,g)=>(await of([],n.errorHandler)(c,()=>u.handler(c,g))).res,t[JW]=u.handler),r.#t(u.method,u.path,t)}),this}basePath(i){let n=this.#i();return n._basePath=an(this._basePath,i),n}onError=(i)=>(this.errorHandler=i,this);notFound=(i)=>(this.#r=i,this);mount(i,n,r){let u,t;r&&(typeof r=="function"?t=r:(t=r.optionHandler,u=r.replaceRequest===!1?(g)=>g:r.replaceRequest));let c=t?(g)=>{let h=t(g);return Array.isArray(h)?h:[h]}:(g)=>{let h;try{h=g.executionCtx}catch{}return[g.env,h]};return u||=(()=>{let g=an(this._basePath,i),h=g==="/"?0:g.length;return(_)=>{let l=new URL(_.url);return l.pathname=l.pathname.slice(h)||"/",new Request(l,_)}})(),this.#t(bi,an(i,"*"),async(g,h)=>{let _=await n(u(g.req.raw),...c(g));if(_)return _;await h()}),this}#t(i,n,r){i=i.toUpperCase(),n=an(this._basePath,n);let u={basePath:this._basePath,path:n,method:i,handler:r};this.router.add(i,n,[r,u]),this.routes.push(u)}#u(i,n){if(i instanceof Error)return this.errorHandler(i,n);throw i}#c(i,n,r,u){if(u==="HEAD")return(async()=>new Response(null,await this.#c(i,n,r,"GET")))();let t=this.getPath(i,{env:r}),c=this.router.match(u,t),g=new zW(i,{path:t,matchResult:c,env:r,executionCtx:n,notFoundHandler:this.#r});if(c[0].length===1){let _;try{_=c[0][0][0][0](g,async()=>{g.res=await this.#r(g)})}catch(l){return this.#u(l,g)}return _ instanceof Promise?_.then((l)=>l||(g.finalized?g.res:this.#r(g))).catch((l)=>this.#u(l,g)):_??this.#r(g)}let h=of(c[0],this.errorHandler,this.#r);return(async()=>{try{let _=await h(g);if(!_.finalized)throw Error("Context is not finalized. Did you forget to return a Response object or `await next()`?");return _.res}catch(_){return this.#u(_,g)}})()}fetch=(i,...n)=>this.#c(i,n[1],n[0],i.method);request=(i,n,r,u)=>i instanceof Request?this.fetch(n?new Request(i,n):i,r,u):(i=i.toString(),this.fetch(new Request(/^https?:\\/\\//.test(i)?i:`http://localhost${an("/",i)}`,n),r,u));fire=()=>{addEventListener("fetch",(i)=>{i.respondWith(this.#c(i.request,i,void 0,i.request.method))})}},pu="[^/]+",rr=".*",ur="(?:|/.*)",tr=Symbol(),HW=new Set(".\\\\+*[^]$()");function GW(i,n){return i.length===1?n.length===1?iw!==rr&&w!==ur))throw tr;if(t)return;_=this.#r[$]=new Sg,l!==""&&(_.#i=u.varIndex++)}!t&&l!==""&&r.push([l,_.#i])}else if(_=this.#r[c],!_){if(Object.keys(this.#r).some((l)=>l.length>1&&l!==rr&&l!==ur))throw tr;if(t)return;_=this.#r[c]=new Sg}_.insert(g,n,r,u,t)}buildRegExpStr(){let i=Object.keys(this.#r).sort(GW).map((n)=>{let r=this.#r[n];return(typeof r.#i=="number"?`(${n})@${r.#i}`:HW.has(n)?`\\\\${n}`:n)+r.buildRegExpStr()});return typeof this.#n=="number"&&i.unshift(`#${this.#n}`),i.length===0?"":i.length===1?i[0]:"(?:"+i.join("|")+")"}},qW=class{#n={varIndex:0};#i=new Sg;insert(i,n,r){let u=[],t=[];for(let g=0;;){let h=!1;if(i=i.replace(/\\{[^}]+\\}/g,(_)=>{let l=`@\\\\${g}`;return t[g]=[l,_],g++,h=!0,l}),!h)break}let c=i.match(/(?::[^\\/]+)|(?:\\/\\*$)|./g)||[];for(let g=t.length-1;g>=0;g--){let[h]=t[g];for(let _=c.length-1;_>=0;_--)if(c[_].indexOf(h)!==-1){c[_]=c[_].replace(h,t[g][1]);break}}return this.#i.insert(c,n,u,this.#n,r),u}buildRegExp(){let i=this.#i.buildRegExpStr();if(i==="")return[/^$/,[],[]];let n=0,r=[],u=[];return i=i.replace(/#(\\d+)|@(\\d+)|\\.\\*\\$/g,(t,c,g)=>c===void 0?(g===void 0||(u[Number(g)]=++n),""):(r[++n]=Number(c),"$()")),[RegExp(`^${i}`),r,u]}},ff=[],XW=[/^$/,[],Object.create(null)],Of=Object.create(null);function jf(i){return Of[i]??=RegExp(i==="*"?"":`^${i.replace(/\\/\\*$|([.\\\\+*[^\\]$()])/g,(n,r)=>r?`\\\\${r}`:"(?:|/.*)")}$`)}function LW(){Of=Object.create(null)}function IW(i){let n=new qW,r=[];if(i.length===0)return XW;let u=i.map((l)=>[!/\\*|\\/:/.test(l[0]),...l]).sort(([l,$],[w,b])=>l?1:w?-1:$.length-b.length),t=Object.create(null);for(let l=0,$=-1,w=u.length;l[z,Object.create(null)]),ff]:$++;let U;try{U=n.insert(v,$,b)}catch(z){throw z===tr?new bf(v):z}b||(r[$]=f.map(([z,J])=>{let N=Object.create(null);for(--J;J>=0;J--){let[j,O]=U[J];N[j]=O}return[z,N]}))}let[c,g,h]=n.buildRegExp();for(let l=0,$=r.length;l<$;l++)for(let w=0,b=r[l].length;wt.length-u.length))if(jf(r).test(n))return[...i[r]]}}var YW=class{name="RegExpRouter";#n;#i;constructor(){this.#n={[bi]:Object.create(null)},this.#i={[bi]:Object.create(null)}}add(i,n,r){let u=this.#n,t=this.#i;if(!u||!t)throw Error(wf);u[i]||[u,t].forEach((h)=>{h[i]=Object.create(null),Object.keys(h[bi]).forEach((_)=>{h[i][_]=[...h[bi][_]]})}),n==="/*"&&(n="*");let c=(n.match(/\\/:/g)||[]).length;if(/\\*$/.test(n)){let h=jf(n);i===bi?Object.keys(u).forEach((_)=>{u[_][n]||=Dt(u[_],n)||Dt(u[bi],n)||[]}):u[i][n]||=Dt(u[i],n)||Dt(u[bi],n)||[],Object.keys(u).forEach((_)=>{(i===bi||i===_)&&Object.keys(u[_]).forEach((l)=>{h.test(l)&&u[_][l].push([r,c])})}),Object.keys(t).forEach((_)=>{(i===bi||i===_)&&Object.keys(t[_]).forEach((l)=>h.test(l)&&t[_][l].push([r,c]))});return}let g=Ig(n)||[n];for(let h=0,_=g.length;h<_;h++){let l=g[h];Object.keys(t).forEach(($)=>{(i===bi||i===$)&&(t[$][l]||=[...Dt(u[$],l)||Dt(u[bi],l)||[]],t[$][l].push([r,c-_+h+1]))})}}match(i,n){LW();let r=this.#r();return this.match=(u,t)=>{let c=r[u]||r[bi],g=c[2][t];if(g)return g;let h=t.match(c[0]);if(!h)return[[],ff];let _=h.indexOf("",1);return[c[1][_],h]},this.match(i,n)}#r(){let i=Object.create(null);return Object.keys(this.#i).concat(Object.keys(this.#n)).forEach((n)=>{i[n]||=this.#t(n)}),this.#n=this.#i=void 0,i}#t(i){let n=[],r=i===bi;return[this.#n,this.#i].forEach((u)=>{let t=u[i]?Object.keys(u[i]).map((c)=>[c,u[i][c]]):[];t.length===0?i!==bi&&n.push(...Object.keys(u[bi]).map((c)=>[c,u[bi][c]])):(r||=!0,n.push(...t))}),r?IW(n):null}},QW=class{name="SmartRouter";#n=[];#i=[];constructor(i){this.#n=i.routers}add(i,n,r){if(!this.#i)throw Error(wf);this.#i.push([i,n,r])}match(i,n){if(!this.#i)throw Error("Fatal error");let r=this.#n,u=this.#i,t=r.length,c=0,g;for(;c_.indexOf(g)===h),score:this.#t}}),u}#c(i,n,r,u){let t=[];for(let c=0,g=i.#n.length;c1&&r.sort((g,h)=>g.score-h.score),[r.map(({handler:g,params:h})=>[g,h])]}},mW=class{name="TrieRouter";#n;constructor(){this.#n=new Uf}add(i,n,r){let u=Ig(n);if(u){for(let t=0,c=u.length;t{let u=i.req.raw.headers.get("Cookie");if(typeof n=="string"){if(!u)return;let t=n;return r==="secure"?t="__Secure-"+n:r==="host"&&(t="__Host-"+n),Yg(u,t)[t]}return u?Yg(u):{}},_f=class extends Error{res;status;constructor(i=500,n){super(n?.message,{cause:n?.cause}),this.res=n?.res,this.status=i}getResponse(){return this.res?new Response(this.res.body,{status:this.status,headers:this.res.headers}):new Response(this.message,{status:this.status})}},AW=(i,n)=>new Response(i,{headers:{"Content-Type":n}}).formData(),BW=/^application\\/([a-z-\\.]+\\+)?json(;\\s*[a-zA-Z0-9\\-]+\\=([^;]+))*$/,KW=/^multipart\\/form-data(;\\s?boundary=[a-zA-Z0-9\'"()+_,\\-./:=?]+)?$/,VW=/^application\\/x-www-form-urlencoded(;\\s*[a-zA-Z0-9\\-]+\\=([^;]+))*$/,du=(i,n)=>async(r,u)=>{let t={},c=r.req.header("Content-Type");switch(i){case"json":if(!c||!BW.test(c))break;try{t=await r.req.json()}catch{throw new _f(400,{message:"Malformed JSON in request body"})}break;case"form":{if(!c||!(KW.test(c)||VW.test(c)))break;let h;if(r.req.bodyCache.formData)h=await r.req.bodyCache.formData;else try{let l=await r.req.arrayBuffer();h=await AW(l,c),r.req.bodyCache.formData=h}catch(l){let $="Malformed FormData request.";throw $+=l instanceof Error?` ${l.message}`:` ${String(l)}`,new _f(400,{message:$})}let _={};h.forEach((l,$)=>{$.endsWith("[]")?(_[$]??=[]).push(l):Array.isArray(_[$])?_[$].push(l):($ in _)?_[$]=[_[$],l]:_[$]=l}),t=_;break}case"query":t=Object.fromEntries(Object.entries(r.req.queries()).map(([h,_])=>_.length===1?[h,_[0]]:[h,_]));break;case"param":t=r.req.param();break;case"header":t=r.req.header();break;case"cookie":t=SW(r);break}let g=await n(t,r);if(g instanceof Response)return g;r.req.addValidatedData(i,g),await u()},An=(i,n)=>i.json({error:n},400),mg=(i)=>{let n=i.req.param("key");return!n||n===""?{key:n,err:"Key is required"}:n.length>475?{key:n,err:"Key is too long. Max length is 475 characters."}:{key:n}},Ag=()=>new Nf,MW=Ag().get("/:key",async(i)=>{let{key:n,err:r}=mg(i);if(r)return An(i,r);let u=await i.env.store.get(n);return i.json({value:u},200)}).post("/:key",du("json",(i,n)=>{let r=i.value;return r?typeof r=="string"?r.length>20000?An(n,"Value is too long. Max length is 20,000 characters."):{value:r}:An(n,"Value must be a string"):An(n,"Value is required")}),async(i)=>{let{key:n,err:r}=mg(i);if(r)return An(i,r);let{value:u}=i.req.valid("json");return await i.env.store.set(n,u),i.body(null,204)}).delete("/:key",async(i)=>{let{key:n,err:r}=mg(i);return r?An(i,r):(await i.env.store.delete(n),i.body(null,204))}).get("/",async(i)=>{let{cursor:n,limit:r,prefix:u}=i.req.query(),{entries:t,cursor:c}=await i.env.store.list(u,{cursor:n?String(n):void 0,limit:r?Number(r):100});return i.json({entries:t,cursor:c})}),xW=(i)=>{let n=i.req.param("key");return n?n.length>475?{key:n,err:"Key is too long. Max length is 475 characters."}:{key:n}:{key:n,err:"Key is required"}},Jt=du("param",(i)=>({id:i.id})),FW=Ag().post("/:key",async(i)=>{let{key:n,err:r}=xW(i);return r?An(i,r):i.json(await i.env.chat.upsert(n),200)}).get("/:id",Jt,async(i)=>{let{id:n}=i.req.valid("param");return i.json(await i.env.chat.get(n),200)}).get("/:id/messages",Jt,async(i)=>{let{id:n}=i.req.valid("param");return i.json(await i.env.chat.getMessages(n),200)}).post("/:id/sendMessages",du("json",(i)=>({id:i.id,messages:i.messages,options:i.options})),async(i)=>{let{id:n,messages:r,options:u}=i.req.valid("json");return n?(await i.env.chat.sendMessages(n,r,u),i.body(null,204)):An(i,"ID is required")}).delete("/:id/messages",Jt,du("query",(i)=>(typeof i.message=="string"&&(i.message=[i.message]),{messages:i.message})),async(i)=>{let{id:n}=i.req.valid("param"),{messages:r}=i.req.valid("query");return await i.env.chat.deleteMessages(n,r),i.body(null,204)}).post("/:id/start",Jt,async(i)=>{let{id:n}=i.req.valid("param");return await i.env.chat.start(n),i.body(null,204)}).post("/:id/stop",Jt,async(i)=>{let{id:n}=i.req.valid("param");return await i.env.chat.stop(n),i.body(null,204)}).delete("/:id",Jt,async(i)=>{let{id:n}=i.req.valid("param");return await i.env.chat.delete(n),i.body(null,204)}),PW=Ag().post("/v1/traces",async(i)=>i.env.otlp?i.env.otlp.traces(i.req.raw):i.body(null,204)),zf=new Nf().onError((i,n)=>n.json({error:i instanceof Error?i.message:"Unknown error"},500)).route("/kv",MW).route("/chat",FW).route("/otlp",PW);var Wf="vercel.ai.error",yW=Symbol.for(Wf),Df,TW=class i extends Error{constructor({name:n,message:r,cause:u}){super(r);this[Df]=!0,this.name=n,this.cause=u}static isInstance(n){return i.hasMarker(n,Wf)}static hasMarker(n,r){let u=Symbol.for(r);return n!=null&&typeof n==="object"&&u in n&&typeof n[u]==="boolean"&&n[u]===!0}};Df=yW;var xi=TW,kW="AI_APICallError",CW=`vercel.ai.error.${kW}`,RW=Symbol.for(CW),ZW;ZW=RW;var eW="AI_EmptyResponseBodyError",pW=`vercel.ai.error.${eW}`,dW=Symbol.for(pW),aW;aW=dW;function au(i){if(i==null)return"unknown error";if(typeof i==="string")return i;if(i instanceof Error)return i.message;return JSON.stringify(i)}var Jf="AI_InvalidArgumentError",Ef=`vercel.ai.error.${Jf}`,sW=Symbol.for(Ef),Hf,Gf=class extends xi{constructor({message:i,cause:n,argument:r}){super({name:Jf,message:i,cause:n});this[Hf]=!0,this.argument=r}static isInstance(i){return xi.hasMarker(i,Ef)}};Hf=sW;var iD="AI_InvalidPromptError",nD=`vercel.ai.error.${iD}`,tD=Symbol.for(nD),rD;rD=tD;var uD="AI_InvalidResponseDataError",cD=`vercel.ai.error.${uD}`,oD=Symbol.for(cD),gD;gD=oD;var qf="AI_JSONParseError",Xf=`vercel.ai.error.${qf}`,hD=Symbol.for(Xf),Lf,Bg=class extends xi{constructor({text:i,cause:n}){super({name:qf,message:`JSON parsing failed: Text: ${i}.\nError message: ${au(n)}`,cause:n});this[Lf]=!0,this.text=i}static isInstance(i){return xi.hasMarker(i,Xf)}};Lf=hD;var _D="AI_LoadAPIKeyError",lD=`vercel.ai.error.${_D}`,$D=Symbol.for(lD),wD;wD=$D;var bD="AI_LoadSettingError",vD=`vercel.ai.error.${bD}`,fD=Symbol.for(vD),OD;OD=fD;var jD="AI_NoContentGeneratedError",UD=`vercel.ai.error.${jD}`,ND=Symbol.for(UD),zD;zD=ND;var WD="AI_NoSuchModelError",DD=`vercel.ai.error.${WD}`,JD=Symbol.for(DD),ED;ED=JD;var HD="AI_TooManyEmbeddingValuesForCallError",GD=`vercel.ai.error.${HD}`,qD=Symbol.for(GD),XD;XD=qD;var If="AI_TypeValidationError",Yf=`vercel.ai.error.${If}`,LD=Symbol.for(Yf),Qf,ID=class i extends xi{constructor({value:n,cause:r}){super({name:If,message:`Type validation failed: Value: ${JSON.stringify(n)}.\nError message: ${au(r)}`,cause:r});this[Qf]=!0,this.value=n}static isInstance(n){return xi.hasMarker(n,Yf)}static wrap({value:n,cause:r}){return i.isInstance(r)&&r.value===n?r:new i({value:n,cause:r})}};Qf=LD;var sn=ID,YD="AI_UnsupportedFunctionalityError",QD=`vercel.ai.error.${YD}`,mD=Symbol.for(QD),SD;SD=mD;var o={};Xn(o,{xid:()=>IE,void:()=>pE,uuidv7:()=>JE,uuidv6:()=>DE,uuidv4:()=>WE,uuid:()=>zE,url:()=>EE,uppercase:()=>Xr,unknown:()=>kc,union:()=>sc,undefined:()=>ZE,ulid:()=>LE,uint64:()=>CE,uint32:()=>yE,tuple:()=>rH,trim:()=>Sr,treeifyError:()=>Zg,transform:()=>d$,toUpperCase:()=>Br,toLowerCase:()=>Ar,toJSONSchema:()=>Vr,templateLiteral:()=>wH,symbol:()=>RE,superRefine:()=>C4,success:()=>lH,stringbool:()=>OH,string:()=>G$,strictObject:()=>iH,startsWith:()=>Ir,size:()=>Hr,setErrorMap:()=>DH,set:()=>oH,safeParseAsync:()=>Mr,safeParse:()=>H$,registry:()=>Oc,regexes:()=>rt,regex:()=>Gr,refine:()=>k4,record:()=>z4,readonly:()=>M4,property:()=>$$,promise:()=>bH,prettifyError:()=>eg,preprocess:()=>UH,prefault:()=>Q4,positive:()=>g$,pipe:()=>Zc,partialRecord:()=>uH,parseAsync:()=>E$,parse:()=>J$,overwrite:()=>Un,optional:()=>Cc,object:()=>sE,number:()=>o4,nullish:()=>_H,nullable:()=>Rc,null:()=>$4,normalize:()=>mr,nonpositive:()=>_$,nonoptional:()=>m4,nonnegative:()=>l$,never:()=>pc,negative:()=>h$,nativeEnum:()=>gH,nanoid:()=>GE,nan:()=>$H,multipleOf:()=>ct,minSize:()=>ot,minLength:()=>Vn,mime:()=>Qr,maxSize:()=>qt,maxLength:()=>Xt,map:()=>cH,lte:()=>Fi,lt:()=>On,lowercase:()=>qr,looseObject:()=>nH,locales:()=>Dr,literal:()=>H4,length:()=>Lt,lazy:()=>P4,ksuid:()=>YE,keyof:()=>aE,jwt:()=>ME,json:()=>jH,iso:()=>yc,ipv6:()=>mE,ipv4:()=>QE,intersection:()=>U4,int64:()=>kE,int32:()=>PE,int:()=>q$,instanceof:()=>fH,includes:()=>Lr,guid:()=>NE,gte:()=>Yi,gt:()=>jn,globalRegistry:()=>rn,getErrorMap:()=>JH,function:()=>U$,formatError:()=>Or,float64:()=>FE,float32:()=>xE,flattenError:()=>fr,file:()=>hH,enum:()=>J4,endsWith:()=>Yr,emoji:()=>HE,email:()=>UE,e164:()=>VE,discriminatedUnion:()=>tH,date:()=>dE,custom:()=>vH,cuid2:()=>XE,cuid:()=>qE,core:()=>Nn,config:()=>$i,coerce:()=>n0,clone:()=>Si,cidrv6:()=>AE,cidrv4:()=>SE,check:()=>T4,catch:()=>B4,boolean:()=>g4,bigint:()=>TE,base64url:()=>KE,base64:()=>BE,array:()=>Z$,any:()=>eE,_default:()=>I4,_ZodString:()=>X$,ZodXID:()=>B$,ZodVoid:()=>v4,ZodUnknown:()=>R$,ZodUnion:()=>e$,ZodUndefined:()=>_4,ZodUUID:()=>zn,ZodURL:()=>I$,ZodULID:()=>A$,ZodType:()=>C,ZodTuple:()=>N4,ZodTransform:()=>q4,ZodTemplateLiteral:()=>x4,ZodSymbol:()=>h4,ZodSuccess:()=>S4,ZodStringFormat:()=>ni,ZodString:()=>ec,ZodSet:()=>D4,ZodRecord:()=>p$,ZodRealError:()=>It,ZodReadonly:()=>V4,ZodPromise:()=>y4,ZodPrefault:()=>Y4,ZodPipe:()=>i0,ZodOptional:()=>a$,ZodObject:()=>ac,ZodNumberFormat:()=>Yt,ZodNumber:()=>Fr,ZodNullable:()=>X4,ZodNull:()=>l4,ZodNonOptional:()=>s$,ZodNever:()=>b4,ZodNanoID:()=>Q$,ZodNaN:()=>K4,ZodMap:()=>W4,ZodLiteral:()=>E4,ZodLazy:()=>F4,ZodKSUID:()=>K$,ZodJWT:()=>k$,ZodIssueCode:()=>NH,ZodIntersection:()=>j4,ZodISOTime:()=>Fc,ZodISODuration:()=>Pc,ZodISODateTime:()=>Mc,ZodISODate:()=>xc,ZodIPv6:()=>M$,ZodIPv4:()=>V$,ZodGUID:()=>Tc,ZodFile:()=>G4,ZodError:()=>OE,ZodEnum:()=>xr,ZodEmoji:()=>Y$,ZodEmail:()=>L$,ZodE164:()=>T$,ZodDiscriminatedUnion:()=>O4,ZodDefault:()=>L4,ZodDate:()=>dc,ZodCustom:()=>io,ZodCatch:()=>A4,ZodCUID2:()=>S$,ZodCUID:()=>m$,ZodCIDRv6:()=>F$,ZodCIDRv4:()=>x$,ZodBoolean:()=>Pr,ZodBigIntFormat:()=>C$,ZodBigInt:()=>yr,ZodBase64URL:()=>y$,ZodBase64:()=>P$,ZodArray:()=>f4,ZodAny:()=>w4,NEVER:()=>WH,$output:()=>Yl,$input:()=>Ql,$brand:()=>Kg});var Nn={};Xn(Nn,{version:()=>kh,util:()=>S,treeifyError:()=>Zg,toJSONSchema:()=>Vr,toDotPath:()=>Af,safeParseAsync:()=>dg,safeParse:()=>pg,registry:()=>Oc,regexes:()=>rt,prettifyError:()=>eg,parseAsync:()=>uc,parse:()=>tc,locales:()=>Dr,isValidJWT:()=>sf,isValidBase64URL:()=>af,isValidBase64:()=>w_,globalRegistry:()=>rn,globalConfig:()=>cr,function:()=>U$,formatError:()=>Or,flattenError:()=>fr,config:()=>$i,clone:()=>Si,_xid:()=>Xc,_void:()=>r$,_uuidv7:()=>Wc,_uuidv6:()=>zc,_uuidv4:()=>Nc,_uuid:()=>Uc,_url:()=>Dc,_uppercase:()=>Xr,_unknown:()=>Gt,_union:()=>ZJ,_undefined:()=>sl,_ulid:()=>qc,_uint64:()=>dl,_uint32:()=>kl,_tuple:()=>w$,_trim:()=>Sr,_transform:()=>rE,_toUpperCase:()=>Br,_toLowerCase:()=>Ar,_templateLiteral:()=>wE,_symbol:()=>al,_success:()=>hE,_stringbool:()=>O$,_string:()=>ml,_startsWith:()=>Ir,_size:()=>Hr,_set:()=>sJ,_safeParseAsync:()=>oc,_safeParse:()=>cc,_regex:()=>Gr,_refine:()=>f$,_record:()=>dJ,_readonly:()=>$E,_property:()=>$$,_promise:()=>vE,_positive:()=>g$,_pipe:()=>lE,_parseAsync:()=>rc,_parse:()=>nc,_overwrite:()=>Un,_optional:()=>uE,_number:()=>Ml,_nullable:()=>cE,_null:()=>i$,_normalize:()=>mr,_nonpositive:()=>_$,_nonoptional:()=>gE,_nonnegative:()=>l$,_never:()=>t$,_negative:()=>h$,_nativeEnum:()=>nE,_nanoid:()=>Ec,_nan:()=>o$,_multipleOf:()=>ct,_minSize:()=>ot,_minLength:()=>Vn,_min:()=>Yi,_mime:()=>Qr,_maxSize:()=>qt,_maxLength:()=>Xt,_max:()=>Fi,_map:()=>aJ,_lte:()=>Fi,_lt:()=>On,_lowercase:()=>qr,_literal:()=>tE,_length:()=>Lt,_lazy:()=>bE,_ksuid:()=>Lc,_jwt:()=>Kc,_isoTime:()=>Kl,_isoDuration:()=>Vl,_isoDateTime:()=>Al,_isoDate:()=>Bl,_ipv6:()=>Yc,_ipv4:()=>Ic,_intersection:()=>pJ,_int64:()=>pl,_int32:()=>Tl,_int:()=>Fl,_includes:()=>Lr,_guid:()=>Er,_gte:()=>Yi,_gt:()=>jn,_float64:()=>yl,_float32:()=>Pl,_file:()=>b$,_enum:()=>iE,_endsWith:()=>Yr,_emoji:()=>Jc,_email:()=>jc,_e164:()=>Bc,_discriminatedUnion:()=>eJ,_default:()=>oE,_date:()=>u$,_custom:()=>v$,_cuid2:()=>Gc,_cuid:()=>Hc,_coercedString:()=>Sl,_coercedNumber:()=>xl,_coercedDate:()=>c$,_coercedBoolean:()=>Rl,_coercedBigint:()=>el,_cidrv6:()=>mc,_cidrv4:()=>Qc,_catch:()=>_E,_boolean:()=>Cl,_bigint:()=>Zl,_base64url:()=>Ac,_base64:()=>Sc,_array:()=>Kr,_any:()=>n$,JSONSchemaGenerator:()=>Vc,JSONSchema:()=>r4,Doc:()=>lc,$output:()=>Yl,$input:()=>Ql,$constructor:()=>D,$brand:()=>Kg,$ZodXID:()=>t_,$ZodVoid:()=>E_,$ZodUnknown:()=>Kn,$ZodUnion:()=>fc,$ZodUndefined:()=>z_,$ZodUUID:()=>Zh,$ZodURL:()=>ph,$ZodULID:()=>n_,$ZodType:()=>y,$ZodTuple:()=>ut,$ZodTransform:()=>A_,$ZodTemplateLiteral:()=>k_,$ZodSymbol:()=>N_,$ZodSuccess:()=>F_,$ZodStringFormat:()=>ii,$ZodString:()=>jr,$ZodSet:()=>Y_,$ZodRegistry:()=>Jr,$ZodRecord:()=>L_,$ZodRealError:()=>Et,$ZodReadonly:()=>T_,$ZodPromise:()=>C_,$ZodPrefault:()=>M_,$ZodPipe:()=>zr,$ZodOptional:()=>B_,$ZodObject:()=>G_,$ZodNumberFormat:()=>j_,$ZodNumber:()=>bc,$ZodNullable:()=>K_,$ZodNull:()=>W_,$ZodNonOptional:()=>x_,$ZodNever:()=>J_,$ZodNanoID:()=>ah,$ZodNaN:()=>y_,$ZodMap:()=>I_,$ZodLiteral:()=>m_,$ZodLazy:()=>R_,$ZodKSUID:()=>r_,$ZodJWT:()=>O_,$ZodIntersection:()=>X_,$ZodISOTime:()=>o_,$ZodISODuration:()=>g_,$ZodISODateTime:()=>u_,$ZodISODate:()=>c_,$ZodIPv6:()=>__,$ZodIPv4:()=>h_,$ZodGUID:()=>Rh,$ZodFunction:()=>j$,$ZodFile:()=>S_,$ZodError:()=>vr,$ZodEnum:()=>Q_,$ZodEmoji:()=>dh,$ZodEmail:()=>eh,$ZodE164:()=>f_,$ZodDiscriminatedUnion:()=>q_,$ZodDefault:()=>V_,$ZodDate:()=>H_,$ZodCustom:()=>Z_,$ZodCheckUpperCase:()=>Vh,$ZodCheckStringFormat:()=>Ht,$ZodCheckStartsWith:()=>xh,$ZodCheckSizeEquals:()=>Qh,$ZodCheckRegex:()=>Bh,$ZodCheckProperty:()=>Ph,$ZodCheckOverwrite:()=>Th,$ZodCheckNumberFormat:()=>Xh,$ZodCheckMultipleOf:()=>qh,$ZodCheckMinSize:()=>Yh,$ZodCheckMinLength:()=>Sh,$ZodCheckMimeType:()=>yh,$ZodCheckMaxSize:()=>Ih,$ZodCheckMaxLength:()=>mh,$ZodCheckLowerCase:()=>Kh,$ZodCheckLessThan:()=>hc,$ZodCheckLengthEquals:()=>Ah,$ZodCheckIncludes:()=>Mh,$ZodCheckGreaterThan:()=>_c,$ZodCheckEndsWith:()=>Fh,$ZodCheckBigIntFormat:()=>Lh,$ZodCheck:()=>ui,$ZodCatch:()=>P_,$ZodCUID2:()=>i_,$ZodCUID:()=>sh,$ZodCIDRv6:()=>$_,$ZodCIDRv4:()=>l_,$ZodBoolean:()=>Ur,$ZodBigIntFormat:()=>U_,$ZodBigInt:()=>vc,$ZodBase64URL:()=>v_,$ZodBase64:()=>b_,$ZodAsyncError:()=>vn,$ZodArray:()=>Nr,$ZodAny:()=>D_});function D(i,n,r){function u(h,_){var l;Object.defineProperty(h,"_zod",{value:h._zod??{},enumerable:!1}),(l=h._zod).traits??(l.traits=new Set),h._zod.traits.add(i),n(h,_);for(let $ in g.prototype)if(!($ in h))Object.defineProperty(h,$,{value:g.prototype[$].bind(h)});h._zod.constr=g,h._zod.def=_}let t=r?.Parent??Object;class c extends t{}Object.defineProperty(c,"name",{value:i});function g(h){var _;let l=r?.Parent?new c:this;u(l,h),(_=l._zod).deferred??(_.deferred=[]);for(let $ of l._zod.deferred)$();return l}return Object.defineProperty(g,"init",{value:u}),Object.defineProperty(g,Symbol.hasInstance,{value:(h)=>{if(r?.Parent&&h instanceof r.Parent)return!0;return h?._zod?.traits?.has(i)}}),Object.defineProperty(g,"name",{value:i}),g}var Kg=Symbol("zod_brand");class vn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}var cr={};function $i(i){if(i)Object.assign(cr,i);return cr}var S={};Xn(S,{unwrapMessage:()=>or,stringifyPrimitive:()=>A,required:()=>pD,randomString:()=>su,propertyKeyTypes:()=>$r,promiseAllObject:()=>FD,primitiveTypes:()=>yg,prefixIssues:()=>Ii,pick:()=>kD,partial:()=>eD,optionalKeys:()=>Tg,omit:()=>CD,numKeys:()=>PD,nullish:()=>Bn,normalizeParams:()=>I,merge:()=>ZD,jsonStringifyReplacer:()=>Mg,joinValues:()=>G,issue:()=>Rg,isPlainObject:()=>lr,isObject:()=>ic,getSizableOrigin:()=>wr,getParsedType:()=>yD,getLengthableOrigin:()=>br,getEnumValues:()=>gr,getElementAtPath:()=>xD,floatSafeRemainder:()=>xg,finalizeIssue:()=>Ai,extend:()=>RD,escapeRegex:()=>fn,esc:()=>it,defineLazy:()=>d,createTransparentProxy:()=>TD,clone:()=>Si,cleanRegex:()=>_r,cleanEnum:()=>dD,cached:()=>hr,assignProp:()=>Fg,assertNotEqual:()=>BD,assertNever:()=>VD,assertIs:()=>KD,assertEqual:()=>AD,assert:()=>MD,allowsEval:()=>Pg,aborted:()=>nt,NUMBER_FORMAT_RANGES:()=>kg,Class:()=>mf,BIGINT_FORMAT_RANGES:()=>Cg});function AD(i){return i}function BD(i){return i}function KD(i){}function VD(i){throw new Error}function MD(i){}function gr(i){let n=Object.values(i).filter((u)=>typeof u==="number");return Object.entries(i).filter(([u,t])=>n.indexOf(+u)===-1).map(([u,t])=>t)}function G(i,n="|"){return i.map((r)=>A(r)).join(n)}function Mg(i,n){if(typeof n==="bigint")return n.toString();return n}function hr(i){return{get value(){{let r=i();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Bn(i){return i===null||i===void 0}function _r(i){let n=i.startsWith("^")?1:0,r=i.endsWith("$")?i.length-1:i.length;return i.slice(n,r)}function xg(i,n){let r=(i.toString().split(".")[1]||"").length,u=(n.toString().split(".")[1]||"").length,t=r>u?r:u,c=Number.parseInt(i.toFixed(t).replace(".","")),g=Number.parseInt(n.toFixed(t).replace(".",""));return c%g/10**t}function d(i,n,r){Object.defineProperty(i,n,{get(){{let t=r();return i[n]=t,t}throw new Error("cached value already set")},set(t){Object.defineProperty(i,n,{value:t})},configurable:!0})}function Fg(i,n,r){Object.defineProperty(i,n,{value:r,writable:!0,enumerable:!0,configurable:!0})}function xD(i,n){if(!n)return i;return n.reduce((r,u)=>r?.[u],i)}function FD(i){let n=Object.keys(i),r=n.map((u)=>i[u]);return Promise.all(r).then((u)=>{let t={};for(let c=0;c{try{return new Function(""),!0}catch(i){return!1}});function lr(i){return typeof i==="object"&&i!==null&&(Object.getPrototypeOf(i)===Object.prototype||Object.getPrototypeOf(i)===null)}function PD(i){let n=0;for(let r in i)if(Object.prototype.hasOwnProperty.call(i,r))n++;return n}var yD=(i)=>{let n=typeof i;switch(n){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(i)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(i))return"array";if(i===null)return"null";if(i.then&&typeof i.then==="function"&&i.catch&&typeof i.catch==="function")return"promise";if(typeof Map!=="undefined"&&i instanceof Map)return"map";if(typeof Set!=="undefined"&&i instanceof Set)return"set";if(typeof Date!=="undefined"&&i instanceof Date)return"date";if(typeof File!=="undefined"&&i instanceof File)return"file";return"object";default:throw new Error(`Unknown data type: ${n}`)}},$r=new Set(["string","number","symbol"]),yg=new Set(["string","number","bigint","boolean","symbol","undefined"]);function fn(i){return i.replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&")}function Si(i,n,r){let u=new i._zod.constr(n??i._zod.def);if(!n||r?.parent)u._zod.parent=i;return u}function I(i){let n=i;if(!n)return{};if(typeof n==="string")return{error:()=>n};if(n?.message!==void 0){if(n?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}if(delete n.message,typeof n.error==="string")return{...n,error:()=>n.error};return n}function TD(i){let n;return new Proxy({},{get(r,u,t){return n??(n=i()),Reflect.get(n,u,t)},set(r,u,t,c){return n??(n=i()),Reflect.set(n,u,t,c)},has(r,u){return n??(n=i()),Reflect.has(n,u)},deleteProperty(r,u){return n??(n=i()),Reflect.deleteProperty(n,u)},ownKeys(r){return n??(n=i()),Reflect.ownKeys(n)},getOwnPropertyDescriptor(r,u){return n??(n=i()),Reflect.getOwnPropertyDescriptor(n,u)},defineProperty(r,u,t){return n??(n=i()),Reflect.defineProperty(n,u,t)}})}function A(i){if(typeof i==="bigint")return i.toString()+"n";if(typeof i==="string")return`"${i}"`;return`${i}`}function Tg(i){return Object.keys(i).filter((n)=>{return i[n]._zod.optin==="optional"&&i[n]._zod.optout==="optional"})}var kg={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Cg={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function kD(i,n){let r={},u=i._zod.def;for(let t in n){if(!(t in u.shape))throw new Error(`Unrecognized key: "${t}"`);if(!n[t])continue;r[t]=u.shape[t]}return Si(i,{...i._zod.def,shape:r,checks:[]})}function CD(i,n){let r={...i._zod.def.shape},u=i._zod.def;for(let t in n){if(!(t in u.shape))throw new Error(`Unrecognized key: "${t}"`);if(!n[t])continue;delete r[t]}return Si(i,{...i._zod.def,shape:r,checks:[]})}function RD(i,n){let r={...i._zod.def,get shape(){let u={...i._zod.def.shape,...n};return Fg(this,"shape",u),u},checks:[]};return Si(i,r)}function ZD(i,n){return Si(i,{...i._zod.def,get shape(){let r={...i._zod.def.shape,...n._zod.def.shape};return Fg(this,"shape",r),r},catchall:n._zod.def.catchall,checks:[]})}function eD(i,n,r){let u=n._zod.def.shape,t={...u};if(r)for(let c in r){if(!(c in u))throw new Error(`Unrecognized key: "${c}"`);if(!r[c])continue;t[c]=i?new i({type:"optional",innerType:u[c]}):u[c]}else for(let c in u)t[c]=i?new i({type:"optional",innerType:u[c]}):u[c];return Si(n,{...n._zod.def,shape:t,checks:[]})}function pD(i,n,r){let u=n._zod.def.shape,t={...u};if(r)for(let c in r){if(!(c in t))throw new Error(`Unrecognized key: "${c}"`);if(!r[c])continue;t[c]=new i({type:"nonoptional",innerType:u[c]})}else for(let c in u)t[c]=new i({type:"nonoptional",innerType:u[c]});return Si(n,{...n._zod.def,shape:t,checks:[]})}function nt(i,n=0){for(let r=n;r{var u;return(u=r).path??(u.path=[]),r.path.unshift(i),r})}function or(i){return typeof i==="string"?i:i?.message}function Ai(i,n,r){let u={...i,path:i.path??[]};if(!i.message){let t=or(i.inst?._zod.def?.error?.(i))??or(n?.error?.(i))??or(r.customError?.(i))??or(r.localeError?.(i))??"Invalid input";u.message=t}if(delete u.inst,delete u.continue,!n?.reportInput)delete u.input;return u}function wr(i){if(i instanceof Set)return"set";if(i instanceof Map)return"map";if(i instanceof File)return"file";return"unknown"}function br(i){if(Array.isArray(i))return"array";if(typeof i==="string")return"string";return"unknown"}function Rg(...i){let[n,r,u]=i;if(typeof n==="string")return{message:n,code:"custom",input:r,inst:u};return{...n}}function dD(i){return Object.entries(i).filter(([n,r])=>{return Number.isNaN(Number.parseInt(n,10))}).map((n)=>n[1])}class mf{constructor(...i){}}var Sf=(i,n)=>{i.name="$ZodError",Object.defineProperty(i,"_zod",{value:i._zod,enumerable:!1}),Object.defineProperty(i,"issues",{value:n,enumerable:!1}),Object.defineProperty(i,"message",{get(){return JSON.stringify(n,Mg,2)},enumerable:!0})},vr=D("$ZodError",Sf),Et=D("$ZodError",Sf,{Parent:Error});function fr(i,n=(r)=>r.message){let r={},u=[];for(let t of i.issues)if(t.path.length>0)r[t.path[0]]=r[t.path[0]]||[],r[t.path[0]].push(n(t));else u.push(n(t));return{formErrors:u,fieldErrors:r}}function Or(i,n){let r=n||function(c){return c.message},u={_errors:[]},t=(c)=>{for(let g of c.issues)if(g.code==="invalid_union"&&g.errors.length)g.errors.map((h)=>t({issues:h}));else if(g.code==="invalid_key")t({issues:g.issues});else if(g.code==="invalid_element")t({issues:g.issues});else if(g.path.length===0)u._errors.push(r(g));else{let h=u,_=0;while(_{var h,_;for(let l of c.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(($)=>t({issues:$},l.path));else if(l.code==="invalid_key")t({issues:l.issues},l.path);else if(l.code==="invalid_element")t({issues:l.issues},l.path);else{let $=[...g,...l.path];if($.length===0){u.errors.push(r(l));continue}let w=u,b=0;while(b<$.length){let v=$[b],f=b===$.length-1;if(typeof v==="string")w.properties??(w.properties={}),(h=w.properties)[v]??(h[v]={errors:[]}),w=w.properties[v];else w.items??(w.items=[]),(_=w.items)[v]??(_[v]={errors:[]}),w=w.items[v];if(f)w.errors.push(r(l));b++}}};return t(i),u}function Af(i){let n=[];for(let r of i)if(typeof r==="number")n.push(`[${r}]`);else if(typeof r==="symbol")n.push(`[${JSON.stringify(String(r))}]`);else if(/[^\\w$]/.test(r))n.push(`[${JSON.stringify(r)}]`);else{if(n.length)n.push(".");n.push(r)}return n.join("")}function eg(i){let n=[],r=[...i.issues].sort((u,t)=>u.path.length-t.path.length);for(let u of r)if(n.push(`✖ ${u.message}`),u.path?.length)n.push(` → at ${Af(u.path)}`);return n.join(`\n`)}var nc=(i)=>(n,r,u,t)=>{let c=u?Object.assign(u,{async:!1}):{async:!1},g=n._zod.run({value:r,issues:[]},c);if(g instanceof Promise)throw new vn;if(g.issues.length){let h=new(t?.Err??i)(g.issues.map((_)=>Ai(_,c,$i())));throw Error.captureStackTrace(h,t?.callee),h}return g.value},tc=nc(Et),rc=(i)=>async(n,r,u,t)=>{let c=u?Object.assign(u,{async:!0}):{async:!0},g=n._zod.run({value:r,issues:[]},c);if(g instanceof Promise)g=await g;if(g.issues.length){let h=new(t?.Err??i)(g.issues.map((_)=>Ai(_,c,$i())));throw Error.captureStackTrace(h,t?.callee),h}return g.value},uc=rc(Et),cc=(i)=>(n,r,u)=>{let t=u?{...u,async:!1}:{async:!1},c=n._zod.run({value:r,issues:[]},t);if(c instanceof Promise)throw new vn;return c.issues.length?{success:!1,error:new(i??vr)(c.issues.map((g)=>Ai(g,t,$i())))}:{success:!0,data:c.value}},pg=cc(Et),oc=(i)=>async(n,r,u)=>{let t=u?Object.assign(u,{async:!0}):{async:!0},c=n._zod.run({value:r,issues:[]},t);if(c instanceof Promise)c=await c;return c.issues.length?{success:!1,error:new i(c.issues.map((g)=>Ai(g,t,$i())))}:{success:!0,data:c.value}},dg=oc(Et);var rt={};Xn(rt,{xid:()=>nh,uuid7:()=>tJ,uuid6:()=>nJ,uuid4:()=>iJ,uuid:()=>tt,uppercase:()=>Gh,unicodeEmail:()=>cJ,undefined:()=>Eh,ulid:()=>ih,time:()=>Oh,string:()=>Uh,rfc5322Email:()=>uJ,number:()=>Wh,null:()=>Jh,nanoid:()=>rh,lowercase:()=>Hh,ksuid:()=>th,ipv6:()=>_h,ipv4:()=>hh,integer:()=>zh,html5Email:()=>rJ,hostname:()=>bh,guid:()=>ch,extendedDuration:()=>sD,emoji:()=>gh,email:()=>oh,e164:()=>vh,duration:()=>uh,domain:()=>hJ,datetime:()=>jh,date:()=>fh,cuid2:()=>sg,cuid:()=>ag,cidrv6:()=>$h,cidrv4:()=>lh,browserEmail:()=>oJ,boolean:()=>Dh,bigint:()=>Nh,base64url:()=>gc,base64:()=>wh,_emoji:()=>gJ});var ag=/^[cC][^\\s-]{8,}$/,sg=/^[0-9a-z]+$/,ih=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,nh=/^[0-9a-vA-V]{20}$/,th=/^[A-Za-z0-9]{27}$/,rh=/^[a-zA-Z0-9_-]{21}$/,uh=/^P(?:(\\d+W)|(?!.*W)(?=\\d|T\\d)(\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+([.,]\\d+)?S)?)?)$/,sD=/^[-+]?P(?!$)(?:(?:[-+]?\\d+Y)|(?:[-+]?\\d+[.,]\\d+Y$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:(?:[-+]?\\d+W)|(?:[-+]?\\d+[.,]\\d+W$))?(?:(?:[-+]?\\d+D)|(?:[-+]?\\d+[.,]\\d+D$))?(?:T(?=[\\d+-])(?:(?:[-+]?\\d+H)|(?:[-+]?\\d+[.,]\\d+H$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:[-+]?\\d+(?:[.,]\\d+)?S)?)??$/,ch=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,tt=(i)=>{if(!i)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${i}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)},iJ=tt(4),nJ=tt(6),tJ=tt(7),oh=/^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_\'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/,rJ=/^[a-zA-Z0-9.!#$%&\'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,uJ=/^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/,cJ=/^[^\\s@"]{1,64}@[^\\s@]{1,255}$/u,oJ=/^[a-zA-Z0-9.!#$%&\'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,gJ="^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$";function gh(){return new RegExp("^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$","u")}var hh=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,_h=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,lh=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\/([0-9]|[1-2][0-9]|3[0-2])$/,$h=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,wh=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,gc=/^[A-Za-z0-9_-]*$/,bh=/^([a-zA-Z0-9-]+\\.)*[a-zA-Z0-9-]+$/,hJ=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$/,vh=/^\\+(?:[0-9]){6,14}[0-9]$/,Bf="((\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\\\d|30)|(02)-(0[1-9]|1\\\\d|2[0-8])))",fh=new RegExp(`^${Bf}$`);function Kf(i){let n="([01]\\\\d|2[0-3]):[0-5]\\\\d:[0-5]\\\\d";if(i.precision)n=`${n}\\\\.\\\\d{${i.precision}}`;else if(i.precision==null)n=`${n}(\\\\.\\\\d+)?`;return n}function Oh(i){return new RegExp(`^${Kf(i)}$`)}function jh(i){let n=`${Bf}T${Kf(i)}`,r=[];if(r.push(i.local?"Z?":"Z"),i.offset)r.push("([+-]\\\\d{2}:?\\\\d{2})");return n=`${n}(${r.join("|")})`,new RegExp(`^${n}$`)}var Uh=(i)=>{let n=i?`[\\\\s\\\\S]{${i?.minimum??0},${i?.maximum??""}}`:"[\\\\s\\\\S]*";return new RegExp(`^${n}$`)},Nh=/^\\d+n?$/,zh=/^\\d+$/,Wh=/^-?\\d+(?:\\.\\d+)?/i,Dh=/true|false/i,Jh=/null/i;var Eh=/undefined/i;var Hh=/^[^A-Z]*$/,Gh=/^[^a-z]*$/;var ui=D("$ZodCheck",(i,n)=>{var r;i._zod??(i._zod={}),i._zod.def=n,(r=i._zod).onattach??(r.onattach=[])}),Mf={number:"number",bigint:"bigint",object:"date"},hc=D("$ZodCheckLessThan",(i,n)=>{ui.init(i,n);let r=Mf[typeof n.value];i._zod.onattach.push((u)=>{let t=u._zod.bag,c=(n.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(n.value{if(n.inclusive?u.value<=n.value:u.value{ui.init(i,n);let r=Mf[typeof n.value];i._zod.onattach.push((u)=>{let t=u._zod.bag,c=(n.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(n.value>c)if(n.inclusive)t.minimum=n.value;else t.exclusiveMinimum=n.value}),i._zod.check=(u)=>{if(n.inclusive?u.value>=n.value:u.value>n.value)return;u.issues.push({origin:r,code:"too_small",minimum:n.value,input:u.value,inclusive:n.inclusive,inst:i,continue:!n.abort})}}),qh=D("$ZodCheckMultipleOf",(i,n)=>{ui.init(i,n),i._zod.onattach.push((r)=>{var u;(u=r._zod.bag).multipleOf??(u.multipleOf=n.value)}),i._zod.check=(r)=>{if(typeof r.value!==typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");if(typeof r.value==="bigint"?r.value%n.value===BigInt(0):xg(r.value,n.value)===0)return;r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:n.value,input:r.value,inst:i,continue:!n.abort})}}),Xh=D("$ZodCheckNumberFormat",(i,n)=>{ui.init(i,n),n.format=n.format||"float64";let r=n.format?.includes("int"),u=r?"int":"number",[t,c]=kg[n.format];i._zod.onattach.push((g)=>{let h=g._zod.bag;if(h.format=n.format,h.minimum=t,h.maximum=c,r)h.pattern=zh}),i._zod.check=(g)=>{let h=g.value;if(r){if(!Number.isInteger(h)){g.issues.push({expected:u,format:n.format,code:"invalid_type",input:h,inst:i});return}if(!Number.isSafeInteger(h)){if(h>0)g.issues.push({input:h,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:i,origin:u,continue:!n.abort});else g.issues.push({input:h,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:i,origin:u,continue:!n.abort});return}}if(hc)g.issues.push({origin:"number",input:h,code:"too_big",maximum:c,inst:i})}}),Lh=D("$ZodCheckBigIntFormat",(i,n)=>{ui.init(i,n);let[r,u]=Cg[n.format];i._zod.onattach.push((t)=>{let c=t._zod.bag;c.format=n.format,c.minimum=r,c.maximum=u}),i._zod.check=(t)=>{let c=t.value;if(cu)t.issues.push({origin:"bigint",input:c,code:"too_big",maximum:u,inst:i})}}),Ih=D("$ZodCheckMaxSize",(i,n)=>{ui.init(i,n),i._zod.when=(r)=>{let u=r.value;return!Bn(u)&&u.size!==void 0},i._zod.onattach.push((r)=>{let u=r._zod.bag.maximum??Number.POSITIVE_INFINITY;if(n.maximum{let u=r.value;if(u.size<=n.maximum)return;r.issues.push({origin:wr(u),code:"too_big",maximum:n.maximum,input:u,inst:i,continue:!n.abort})}}),Yh=D("$ZodCheckMinSize",(i,n)=>{ui.init(i,n),i._zod.when=(r)=>{let u=r.value;return!Bn(u)&&u.size!==void 0},i._zod.onattach.push((r)=>{let u=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(n.minimum>u)r._zod.bag.minimum=n.minimum}),i._zod.check=(r)=>{let u=r.value;if(u.size>=n.minimum)return;r.issues.push({origin:wr(u),code:"too_small",minimum:n.minimum,input:u,inst:i,continue:!n.abort})}}),Qh=D("$ZodCheckSizeEquals",(i,n)=>{ui.init(i,n),i._zod.when=(r)=>{let u=r.value;return!Bn(u)&&u.size!==void 0},i._zod.onattach.push((r)=>{let u=r._zod.bag;u.minimum=n.size,u.maximum=n.size,u.size=n.size}),i._zod.check=(r)=>{let u=r.value,t=u.size;if(t===n.size)return;let c=t>n.size;r.issues.push({origin:wr(u),...c?{code:"too_big",maximum:n.size}:{code:"too_small",minimum:n.size},input:r.value,inst:i,continue:!n.abort})}}),mh=D("$ZodCheckMaxLength",(i,n)=>{ui.init(i,n),i._zod.when=(r)=>{let u=r.value;return!Bn(u)&&u.length!==void 0},i._zod.onattach.push((r)=>{let u=r._zod.bag.maximum??Number.POSITIVE_INFINITY;if(n.maximum{let u=r.value;if(u.length<=n.maximum)return;let c=br(u);r.issues.push({origin:c,code:"too_big",maximum:n.maximum,inclusive:!0,input:u,inst:i,continue:!n.abort})}}),Sh=D("$ZodCheckMinLength",(i,n)=>{ui.init(i,n),i._zod.when=(r)=>{let u=r.value;return!Bn(u)&&u.length!==void 0},i._zod.onattach.push((r)=>{let u=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(n.minimum>u)r._zod.bag.minimum=n.minimum}),i._zod.check=(r)=>{let u=r.value;if(u.length>=n.minimum)return;let c=br(u);r.issues.push({origin:c,code:"too_small",minimum:n.minimum,inclusive:!0,input:u,inst:i,continue:!n.abort})}}),Ah=D("$ZodCheckLengthEquals",(i,n)=>{ui.init(i,n),i._zod.when=(r)=>{let u=r.value;return!Bn(u)&&u.length!==void 0},i._zod.onattach.push((r)=>{let u=r._zod.bag;u.minimum=n.length,u.maximum=n.length,u.length=n.length}),i._zod.check=(r)=>{let u=r.value,t=u.length;if(t===n.length)return;let c=br(u),g=t>n.length;r.issues.push({origin:c,...g?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},input:r.value,inst:i,continue:!n.abort})}}),Ht=D("$ZodCheckStringFormat",(i,n)=>{var r;ui.init(i,n),i._zod.onattach.push((u)=>{let t=u._zod.bag;if(t.format=n.format,n.pattern)t.patterns??(t.patterns=new Set),t.patterns.add(n.pattern)}),(r=i._zod).check??(r.check=(u)=>{if(!n.pattern)throw new Error("Not implemented.");if(n.pattern.lastIndex=0,n.pattern.test(u.value))return;u.issues.push({origin:"string",code:"invalid_format",format:n.format,input:u.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:i,continue:!n.abort})})}),Bh=D("$ZodCheckRegex",(i,n)=>{Ht.init(i,n),i._zod.check=(r)=>{if(n.pattern.lastIndex=0,n.pattern.test(r.value))return;r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:n.pattern.toString(),inst:i,continue:!n.abort})}}),Kh=D("$ZodCheckLowerCase",(i,n)=>{n.pattern??(n.pattern=Hh),Ht.init(i,n)}),Vh=D("$ZodCheckUpperCase",(i,n)=>{n.pattern??(n.pattern=Gh),Ht.init(i,n)}),Mh=D("$ZodCheckIncludes",(i,n)=>{ui.init(i,n);let r=fn(n.includes),u=new RegExp(typeof n.position==="number"?`^.{${n.position}}${r}`:r);n.pattern=u,i._zod.onattach.push((t)=>{let c=t._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(u)}),i._zod.check=(t)=>{if(t.value.includes(n.includes,n.position))return;t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:t.value,inst:i,continue:!n.abort})}}),xh=D("$ZodCheckStartsWith",(i,n)=>{ui.init(i,n);let r=new RegExp(`^${fn(n.prefix)}.*`);n.pattern??(n.pattern=r),i._zod.onattach.push((u)=>{let t=u._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),i._zod.check=(u)=>{if(u.value.startsWith(n.prefix))return;u.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:u.value,inst:i,continue:!n.abort})}}),Fh=D("$ZodCheckEndsWith",(i,n)=>{ui.init(i,n);let r=new RegExp(`.*${fn(n.suffix)}$`);n.pattern??(n.pattern=r),i._zod.onattach.push((u)=>{let t=u._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),i._zod.check=(u)=>{if(u.value.endsWith(n.suffix))return;u.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:u.value,inst:i,continue:!n.abort})}});function Vf(i,n,r){if(i.issues.length)n.issues.push(...Ii(r,i.issues))}var Ph=D("$ZodCheckProperty",(i,n)=>{ui.init(i,n),i._zod.check=(r)=>{let u=n.schema._zod.run({value:r.value[n.property],issues:[]},{});if(u instanceof Promise)return u.then((t)=>Vf(t,r,n.property));Vf(u,r,n.property);return}}),yh=D("$ZodCheckMimeType",(i,n)=>{ui.init(i,n);let r=new Set(n.mime);i._zod.onattach.push((u)=>{u._zod.bag.mime=n.mime}),i._zod.check=(u)=>{if(r.has(u.value.type))return;u.issues.push({code:"invalid_value",values:n.mime,input:u.value.type,path:["type"],inst:i})}}),Th=D("$ZodCheckOverwrite",(i,n)=>{ui.init(i,n),i._zod.check=(r)=>{r.value=n.tx(r.value)}});class lc{constructor(i=[]){if(this.content=[],this.indent=0,this)this.args=i}indented(i){this.indent+=1,i(this),this.indent-=1}write(i){if(typeof i==="function"){i(this,{execution:"sync"}),i(this,{execution:"async"});return}let r=i.split(`\n`).filter((c)=>c),u=Math.min(...r.map((c)=>c.length-c.trimStart().length)),t=r.map((c)=>c.slice(u)).map((c)=>" ".repeat(this.indent*2)+c);for(let c of t)this.content.push(c)}compile(){let i=Function,n=this?.args,u=[...(this?.content??[""]).map((t)=>` ${t}`)];return new i(...n,u.join(`\n`))}}var kh={major:4,minor:0,patch:0};var y=D("$ZodType",(i,n)=>{var r;i??(i={}),i._zod.id=n.type+"_"+su(10),i._zod.def=n,i._zod.bag=i._zod.bag||{},i._zod.version=kh;let u=[...i._zod.def.checks??[]];if(i._zod.traits.has("$ZodCheck"))u.unshift(i);for(let t of u)for(let c of t._zod.onattach)c(i);if(u.length===0)(r=i._zod).deferred??(r.deferred=[]),i._zod.deferred?.push(()=>{i._zod.run=i._zod.parse});else{let t=(c,g,h)=>{let _=nt(c),l;for(let $ of g){if($._zod.when){if(!$._zod.when(c))continue}else if(_)continue;let w=c.issues.length,b=$._zod.check(c);if(b instanceof Promise&&h?.async===!1)throw new vn;if(l||b instanceof Promise)l=(l??Promise.resolve()).then(async()=>{if(await b,c.issues.length===w)return;if(!_)_=nt(c,w)});else{if(c.issues.length===w)continue;if(!_)_=nt(c,w)}}if(l)return l.then(()=>{return c});return c};i._zod.run=(c,g)=>{let h=i._zod.parse(c,g);if(h instanceof Promise){if(g.async===!1)throw new vn;return h.then((_)=>t(_,u,g))}return t(h,u,g)}}i["~standard"]={validate:(t)=>{try{let c=pg(i,t);return c.success?{value:c.data}:{issues:c.error?.issues}}catch(c){return dg(i,t).then((g)=>g.success?{value:g.data}:{issues:g.error?.issues})}},vendor:"zod",version:1}}),jr=D("$ZodString",(i,n)=>{y.init(i,n),i._zod.pattern=[...i?._zod.bag?.patterns??[]].pop()??Uh(i._zod.bag),i._zod.parse=(r,u)=>{if(n.coerce)try{r.value=String(r.value)}catch(t){}if(typeof r.value==="string")return r;return r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:i}),r}}),ii=D("$ZodStringFormat",(i,n)=>{Ht.init(i,n),jr.init(i,n)}),Rh=D("$ZodGUID",(i,n)=>{n.pattern??(n.pattern=ch),ii.init(i,n)}),Zh=D("$ZodUUID",(i,n)=>{if(n.version){let u={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(u===void 0)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=tt(u))}else n.pattern??(n.pattern=tt());ii.init(i,n)}),eh=D("$ZodEmail",(i,n)=>{n.pattern??(n.pattern=oh),ii.init(i,n)}),ph=D("$ZodURL",(i,n)=>{ii.init(i,n),i._zod.check=(r)=>{try{let u=new URL(r.value);if(n.hostname){if(n.hostname.lastIndex=0,!n.hostname.test(u.hostname))r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:bh.source,input:r.value,inst:i})}if(n.protocol){if(n.protocol.lastIndex=0,!n.protocol.test(u.protocol.endsWith(":")?u.protocol.slice(0,-1):u.protocol))r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:r.value,inst:i})}return}catch(u){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:i})}}}),dh=D("$ZodEmoji",(i,n)=>{n.pattern??(n.pattern=gh()),ii.init(i,n)}),ah=D("$ZodNanoID",(i,n)=>{n.pattern??(n.pattern=rh),ii.init(i,n)}),sh=D("$ZodCUID",(i,n)=>{n.pattern??(n.pattern=ag),ii.init(i,n)}),i_=D("$ZodCUID2",(i,n)=>{n.pattern??(n.pattern=sg),ii.init(i,n)}),n_=D("$ZodULID",(i,n)=>{n.pattern??(n.pattern=ih),ii.init(i,n)}),t_=D("$ZodXID",(i,n)=>{n.pattern??(n.pattern=nh),ii.init(i,n)}),r_=D("$ZodKSUID",(i,n)=>{n.pattern??(n.pattern=th),ii.init(i,n)}),u_=D("$ZodISODateTime",(i,n)=>{n.pattern??(n.pattern=jh(n)),ii.init(i,n)}),c_=D("$ZodISODate",(i,n)=>{n.pattern??(n.pattern=fh),ii.init(i,n)}),o_=D("$ZodISOTime",(i,n)=>{n.pattern??(n.pattern=Oh(n)),ii.init(i,n)}),g_=D("$ZodISODuration",(i,n)=>{n.pattern??(n.pattern=uh),ii.init(i,n)}),h_=D("$ZodIPv4",(i,n)=>{n.pattern??(n.pattern=hh),ii.init(i,n),i._zod.onattach.push((r)=>{let u=r._zod.bag;u.format="ipv4"})}),__=D("$ZodIPv6",(i,n)=>{n.pattern??(n.pattern=_h),ii.init(i,n),i._zod.onattach.push((r)=>{let u=r._zod.bag;u.format="ipv6"}),i._zod.check=(r)=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:i})}}}),l_=D("$ZodCIDRv4",(i,n)=>{n.pattern??(n.pattern=lh),ii.init(i,n)}),$_=D("$ZodCIDRv6",(i,n)=>{n.pattern??(n.pattern=$h),ii.init(i,n),i._zod.check=(r)=>{let[u,t]=r.value.split("/");try{if(!t)throw new Error;let c=Number(t);if(`${c}`!==t)throw new Error;if(c<0||c>128)throw new Error;new URL(`http://[${u}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:i})}}});function w_(i){if(i==="")return!0;if(i.length%4!==0)return!1;try{return atob(i),!0}catch{return!1}}var b_=D("$ZodBase64",(i,n)=>{n.pattern??(n.pattern=wh),ii.init(i,n),i._zod.onattach.push((r)=>{r._zod.bag.contentEncoding="base64"}),i._zod.check=(r)=>{if(w_(r.value))return;r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:i})}});function af(i){if(!gc.test(i))return!1;let n=i.replace(/[-_]/g,(u)=>u==="-"?"+":"/"),r=n.padEnd(Math.ceil(n.length/4)*4,"=");return w_(r)}var v_=D("$ZodBase64URL",(i,n)=>{n.pattern??(n.pattern=gc),ii.init(i,n),i._zod.onattach.push((r)=>{r._zod.bag.contentEncoding="base64url"}),i._zod.check=(r)=>{if(af(r.value))return;r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:i})}}),f_=D("$ZodE164",(i,n)=>{n.pattern??(n.pattern=vh),ii.init(i,n)});function sf(i,n=null){try{let r=i.split(".");if(r.length!==3)return!1;let[u]=r,t=JSON.parse(atob(u));if("typ"in t&&t?.typ!=="JWT")return!1;if(!t.alg)return!1;if(n&&(!("alg"in t)||t.alg!==n))return!1;return!0}catch{return!1}}var O_=D("$ZodJWT",(i,n)=>{ii.init(i,n),i._zod.check=(r)=>{if(sf(r.value,n.alg))return;r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:i})}}),bc=D("$ZodNumber",(i,n)=>{y.init(i,n),i._zod.pattern=i._zod.bag.pattern??Wh,i._zod.parse=(r,u)=>{if(n.coerce)try{r.value=Number(r.value)}catch(g){}let t=r.value;if(typeof t==="number"&&!Number.isNaN(t)&&Number.isFinite(t))return r;let c=typeof t==="number"?Number.isNaN(t)?"NaN":!Number.isFinite(t)?"Infinity":void 0:void 0;return r.issues.push({expected:"number",code:"invalid_type",input:t,inst:i,...c?{received:c}:{}}),r}}),j_=D("$ZodNumber",(i,n)=>{Xh.init(i,n),bc.init(i,n)}),Ur=D("$ZodBoolean",(i,n)=>{y.init(i,n),i._zod.pattern=Dh,i._zod.parse=(r,u)=>{if(n.coerce)try{r.value=Boolean(r.value)}catch(c){}let t=r.value;if(typeof t==="boolean")return r;return r.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:i}),r}}),vc=D("$ZodBigInt",(i,n)=>{y.init(i,n),i._zod.pattern=Nh,i._zod.parse=(r,u)=>{if(n.coerce)try{r.value=BigInt(r.value)}catch(c){}let{value:t}=r;if(typeof t==="bigint")return r;return r.issues.push({expected:"bigint",code:"invalid_type",input:t,inst:i}),r}}),U_=D("$ZodBigInt",(i,n)=>{Lh.init(i,n),vc.init(i,n)}),N_=D("$ZodSymbol",(i,n)=>{y.init(i,n),i._zod.parse=(r,u)=>{let{value:t}=r;if(typeof t==="symbol")return r;return r.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:i}),r}}),z_=D("$ZodUndefined",(i,n)=>{y.init(i,n),i._zod.pattern=Eh,i._zod.values=new Set([void 0]),i._zod.parse=(r,u)=>{let{value:t}=r;if(typeof t==="undefined")return r;return r.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:i}),r}}),W_=D("$ZodNull",(i,n)=>{y.init(i,n),i._zod.pattern=Jh,i._zod.values=new Set([null]),i._zod.parse=(r,u)=>{let{value:t}=r;if(t===null)return r;return r.issues.push({expected:"null",code:"invalid_type",input:t,inst:i}),r}}),D_=D("$ZodAny",(i,n)=>{y.init(i,n),i._zod.parse=(r)=>r}),Kn=D("$ZodUnknown",(i,n)=>{y.init(i,n),i._zod.parse=(r)=>r}),J_=D("$ZodNever",(i,n)=>{y.init(i,n),i._zod.parse=(r,u)=>{return r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:i}),r}}),E_=D("$ZodVoid",(i,n)=>{y.init(i,n),i._zod.parse=(r,u)=>{let{value:t}=r;if(typeof t==="undefined")return r;return r.issues.push({expected:"void",code:"invalid_type",input:t,inst:i}),r}}),H_=D("$ZodDate",(i,n)=>{y.init(i,n),i._zod.parse=(r,u)=>{if(n.coerce)try{r.value=new Date(r.value)}catch(h){}let t=r.value,c=t instanceof Date;if(c&&!Number.isNaN(t.getTime()))return r;return r.issues.push({expected:"date",code:"invalid_type",input:t,...c?{received:"Invalid Date"}:{},inst:i}),r}});function Ff(i,n,r){if(i.issues.length)n.issues.push(...Ii(r,i.issues));n.value[r]=i.value}var Nr=D("$ZodArray",(i,n)=>{y.init(i,n),i._zod.parse=(r,u)=>{let t=r.value;if(!Array.isArray(t))return r.issues.push({expected:"array",code:"invalid_type",input:t,inst:i}),r;r.value=Array(t.length);let c=[];for(let g=0;gFf(l,r,g)));else Ff(_,r,g)}if(c.length)return Promise.all(c).then(()=>r);return r}});function $c(i,n,r){if(i.issues.length)n.issues.push(...Ii(r,i.issues));n.value[r]=i.value}function Pf(i,n,r,u){if(i.issues.length)if(u[r]===void 0)if(r in u)n.value[r]=void 0;else n.value[r]=i.value;else n.issues.push(...Ii(r,i.issues));else if(i.value===void 0){if(r in u)n.value[r]=void 0}else n.value[r]=i.value}var G_=D("$ZodObject",(i,n)=>{y.init(i,n);let r=hr(()=>{let w=Object.keys(n.shape);for(let v of w)if(!(n.shape[v]instanceof y))throw new Error(`Invalid element at key "${v}": expected a Zod schema`);let b=Tg(n.shape);return{shape:n.shape,keys:w,keySet:new Set(w),numKeys:w.length,optionalKeys:new Set(b)}});d(i._zod,"propValues",()=>{let w=n.shape,b={};for(let v in w){let f=w[v]._zod;if(f.values){b[v]??(b[v]=new Set);for(let U of f.values)b[v].add(U)}}return b});let u=(w)=>{let b=new lc(["shape","payload","ctx"]),{keys:v,optionalKeys:f}=r.value,U=(N)=>{let j=it(N);return`shape[${j}]._zod.run({ value: input[${j}], issues: [] }, ctx)`};b.write("const input = payload.value;");let z=Object.create(null);for(let N of v)z[N]=su(15);b.write("const newResult = {}");for(let N of v)if(f.has(N)){let j=z[N];b.write(`const ${j} = ${U(N)};`);let O=it(N);b.write(`\n if (${j}.issues.length) {\n if (input[${O}] === undefined) {\n if (${O} in input) {\n newResult[${O}] = undefined;\n }\n } else {\n payload.issues = payload.issues.concat(\n ${j}.issues.map((iss) => ({\n ...iss,\n path: iss.path ? [${O}, ...iss.path] : [${O}],\n }))\n );\n }\n } else if (${j}.value === undefined) {\n if (${O} in input) newResult[${O}] = undefined;\n } else {\n newResult[${O}] = ${j}.value;\n }\n `)}else{let j=z[N];b.write(`const ${j} = ${U(N)};`),b.write(`\n if (${j}.issues.length) payload.issues = payload.issues.concat(${j}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${it(N)}, ...iss.path] : [${it(N)}]\n })));`),b.write(`newResult[${it(N)}] = ${j}.value`)}b.write("payload.value = newResult;"),b.write("return payload;");let J=b.compile();return(N,j)=>J(w,N,j)},t,c=ic,g=!cr.jitless,_=g&&Pg.value,{catchall:l}=n,$;i._zod.parse=(w,b)=>{$??($=r.value);let v=w.value;if(!c(v))return w.issues.push({expected:"object",code:"invalid_type",input:v,inst:i}),w;let f=[];if(g&&_&&b?.async===!1&&b.jitless!==!0){if(!t)t=u(n.shape);w=t(w,b)}else{w.value={};let j=$.shape;for(let O of $.keys){let W=j[O],E=W._zod.run({value:v[O],issues:[]},b),X=W._zod.optin==="optional"&&W._zod.optout==="optional";if(E instanceof Promise)f.push(E.then((H)=>X?Pf(H,w,O,v):$c(H,w,O)));else if(X)Pf(E,w,O,v);else $c(E,w,O)}}if(!l)return f.length?Promise.all(f).then(()=>w):w;let U=[],z=$.keySet,J=l._zod,N=J.def.type;for(let j of Object.keys(v)){if(z.has(j))continue;if(N==="never"){U.push(j);continue}let O=J.run({value:v[j],issues:[]},b);if(O instanceof Promise)f.push(O.then((W)=>$c(W,w,j)));else $c(O,w,j)}if(U.length)w.issues.push({code:"unrecognized_keys",keys:U,input:v,inst:i});if(!f.length)return w;return Promise.all(f).then(()=>{return w})}});function yf(i,n,r,u){for(let t of i)if(t.issues.length===0)return n.value=t.value,n;return n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:i.map((t)=>t.issues.map((c)=>Ai(c,u,$i())))}),n}var fc=D("$ZodUnion",(i,n)=>{y.init(i,n),d(i._zod,"values",()=>{if(n.options.every((r)=>r._zod.values))return new Set(n.options.flatMap((r)=>Array.from(r._zod.values)));return}),d(i._zod,"pattern",()=>{if(n.options.every((r)=>r._zod.pattern)){let r=n.options.map((u)=>u._zod.pattern);return new RegExp(`^(${r.map((u)=>_r(u.source)).join("|")})$`)}return}),i._zod.parse=(r,u)=>{let t=!1,c=[];for(let g of n.options){let h=g._zod.run({value:r.value,issues:[]},u);if(h instanceof Promise)c.push(h),t=!0;else{if(h.issues.length===0)return h;c.push(h)}}if(!t)return yf(c,r,i,u);return Promise.all(c).then((g)=>{return yf(g,r,i,u)})}}),q_=D("$ZodDiscriminatedUnion",(i,n)=>{fc.init(i,n);let r=i._zod.parse;d(i._zod,"propValues",()=>{let t={};for(let c of n.options){let g=c._zod.propValues;if(!g||Object.keys(g).length===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(c)}"`);for(let[h,_]of Object.entries(g)){if(!t[h])t[h]=new Set;for(let l of _)t[h].add(l)}}return t});let u=hr(()=>{let t=n.options,c=new Map;for(let g of t){let h=g._zod.propValues[n.discriminator];if(!h||h.size===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(g)}"`);for(let _ of h){if(c.has(_))throw new Error(`Duplicate discriminator value "${String(_)}"`);c.set(_,g)}}return c});i._zod.parse=(t,c)=>{let g=t.value;if(!ic(g))return t.issues.push({code:"invalid_type",expected:"object",input:g,inst:i}),t;let h=u.value.get(g?.[n.discriminator]);if(h)return h._zod.run(t,c);if(n.unionFallback)return r(t,c);return t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:g,path:[n.discriminator],inst:i}),t}}),X_=D("$ZodIntersection",(i,n)=>{y.init(i,n),i._zod.parse=(r,u)=>{let{value:t}=r,c=n.left._zod.run({value:t,issues:[]},u),g=n.right._zod.run({value:t,issues:[]},u);if(c instanceof Promise||g instanceof Promise)return Promise.all([c,g]).then(([_,l])=>{return Tf(r,_,l)});return Tf(r,c,g)}});function Ch(i,n){if(i===n)return{valid:!0,data:i};if(i instanceof Date&&n instanceof Date&&+i===+n)return{valid:!0,data:i};if(lr(i)&&lr(n)){let r=Object.keys(n),u=Object.keys(i).filter((c)=>r.indexOf(c)!==-1),t={...i,...n};for(let c of u){let g=Ch(i[c],n[c]);if(!g.valid)return{valid:!1,mergeErrorPath:[c,...g.mergeErrorPath]};t[c]=g.data}return{valid:!0,data:t}}if(Array.isArray(i)&&Array.isArray(n)){if(i.length!==n.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let u=0;u{y.init(i,n);let r=n.items,u=r.length-[...r].reverse().findIndex((t)=>t._zod.optin!=="optional");i._zod.parse=(t,c)=>{let g=t.value;if(!Array.isArray(g))return t.issues.push({input:g,inst:i,expected:"tuple",code:"invalid_type"}),t;t.value=[];let h=[];if(!n.rest){let l=g.length>r.length,$=g.length=g.length){if(_>=u)continue}let $=l._zod.run({value:g[_],issues:[]},c);if($ instanceof Promise)h.push($.then((w)=>wc(w,t,_)));else wc($,t,_)}if(n.rest){let l=g.slice(r.length);for(let $ of l){_++;let w=n.rest._zod.run({value:$,issues:[]},c);if(w instanceof Promise)h.push(w.then((b)=>wc(b,t,_)));else wc(w,t,_)}}if(h.length)return Promise.all(h).then(()=>t);return t}});function wc(i,n,r){if(i.issues.length)n.issues.push(...Ii(r,i.issues));n.value[r]=i.value}var L_=D("$ZodRecord",(i,n)=>{y.init(i,n),i._zod.parse=(r,u)=>{let t=r.value;if(!lr(t))return r.issues.push({expected:"record",code:"invalid_type",input:t,inst:i}),r;let c=[];if(n.keyType._zod.values){let g=n.keyType._zod.values;r.value={};for(let _ of g)if(typeof _==="string"||typeof _==="number"||typeof _==="symbol"){let l=n.valueType._zod.run({value:t[_],issues:[]},u);if(l instanceof Promise)c.push(l.then(($)=>{if($.issues.length)r.issues.push(...Ii(_,$.issues));r.value[_]=$.value}));else{if(l.issues.length)r.issues.push(...Ii(_,l.issues));r.value[_]=l.value}}let h;for(let _ in t)if(!g.has(_))h=h??[],h.push(_);if(h&&h.length>0)r.issues.push({code:"unrecognized_keys",input:t,inst:i,keys:h})}else{r.value={};for(let g of Reflect.ownKeys(t)){if(g==="__proto__")continue;let h=n.keyType._zod.run({value:g,issues:[]},u);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(h.issues.length){r.issues.push({origin:"record",code:"invalid_key",issues:h.issues.map((l)=>Ai(l,u,$i())),input:g,path:[g],inst:i}),r.value[h.value]=h.value;continue}let _=n.valueType._zod.run({value:t[g],issues:[]},u);if(_ instanceof Promise)c.push(_.then((l)=>{if(l.issues.length)r.issues.push(...Ii(g,l.issues));r.value[h.value]=l.value}));else{if(_.issues.length)r.issues.push(...Ii(g,_.issues));r.value[h.value]=_.value}}}if(c.length)return Promise.all(c).then(()=>r);return r}}),I_=D("$ZodMap",(i,n)=>{y.init(i,n),i._zod.parse=(r,u)=>{let t=r.value;if(!(t instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:t,inst:i}),r;let c=[];r.value=new Map;for(let[g,h]of t){let _=n.keyType._zod.run({value:g,issues:[]},u),l=n.valueType._zod.run({value:h,issues:[]},u);if(_ instanceof Promise||l instanceof Promise)c.push(Promise.all([_,l]).then(([$,w])=>{kf($,w,r,g,t,i,u)}));else kf(_,l,r,g,t,i,u)}if(c.length)return Promise.all(c).then(()=>r);return r}});function kf(i,n,r,u,t,c,g){if(i.issues.length)if($r.has(typeof u))r.issues.push(...Ii(u,i.issues));else r.issues.push({origin:"map",code:"invalid_key",input:t,inst:c,issues:i.issues.map((h)=>Ai(h,g,$i()))});if(n.issues.length)if($r.has(typeof u))r.issues.push(...Ii(u,n.issues));else r.issues.push({origin:"map",code:"invalid_element",input:t,inst:c,key:u,issues:n.issues.map((h)=>Ai(h,g,$i()))});r.value.set(i.value,n.value)}var Y_=D("$ZodSet",(i,n)=>{y.init(i,n),i._zod.parse=(r,u)=>{let t=r.value;if(!(t instanceof Set))return r.issues.push({input:t,inst:i,expected:"set",code:"invalid_type"}),r;let c=[];r.value=new Set;for(let g of t){let h=n.valueType._zod.run({value:g,issues:[]},u);if(h instanceof Promise)c.push(h.then((_)=>Cf(_,r)));else Cf(h,r)}if(c.length)return Promise.all(c).then(()=>r);return r}});function Cf(i,n){if(i.issues.length)n.issues.push(...i.issues);n.value.add(i.value)}var Q_=D("$ZodEnum",(i,n)=>{y.init(i,n);let r=gr(n.entries);i._zod.values=new Set(r),i._zod.pattern=new RegExp(`^(${r.filter((u)=>$r.has(typeof u)).map((u)=>typeof u==="string"?fn(u):u.toString()).join("|")})$`),i._zod.parse=(u,t)=>{let c=u.value;if(i._zod.values.has(c))return u;return u.issues.push({code:"invalid_value",values:r,input:c,inst:i}),u}}),m_=D("$ZodLiteral",(i,n)=>{y.init(i,n),i._zod.values=new Set(n.values),i._zod.pattern=new RegExp(`^(${n.values.map((r)=>typeof r==="string"?fn(r):r?r.toString():String(r)).join("|")})$`),i._zod.parse=(r,u)=>{let t=r.value;if(i._zod.values.has(t))return r;return r.issues.push({code:"invalid_value",values:n.values,input:t,inst:i}),r}}),S_=D("$ZodFile",(i,n)=>{y.init(i,n),i._zod.parse=(r,u)=>{let t=r.value;if(t instanceof File)return r;return r.issues.push({expected:"file",code:"invalid_type",input:t,inst:i}),r}}),A_=D("$ZodTransform",(i,n)=>{y.init(i,n),i._zod.parse=(r,u)=>{let t=n.transform(r.value,r);if(u.async)return(t instanceof Promise?t:Promise.resolve(t)).then((g)=>{return r.value=g,r});if(t instanceof Promise)throw new vn;return r.value=t,r}}),B_=D("$ZodOptional",(i,n)=>{y.init(i,n),i._zod.optin="optional",i._zod.optout="optional",d(i._zod,"values",()=>{return n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0}),d(i._zod,"pattern",()=>{let r=n.innerType._zod.pattern;return r?new RegExp(`^(${_r(r.source)})?$`):void 0}),i._zod.parse=(r,u)=>{if(r.value===void 0)return r;return n.innerType._zod.run(r,u)}}),K_=D("$ZodNullable",(i,n)=>{y.init(i,n),d(i._zod,"optin",()=>n.innerType._zod.optin),d(i._zod,"optout",()=>n.innerType._zod.optout),d(i._zod,"pattern",()=>{let r=n.innerType._zod.pattern;return r?new RegExp(`^(${_r(r.source)}|null)$`):void 0}),d(i._zod,"values",()=>{return n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0}),i._zod.parse=(r,u)=>{if(r.value===null)return r;return n.innerType._zod.run(r,u)}}),V_=D("$ZodDefault",(i,n)=>{y.init(i,n),i._zod.optin="optional",d(i._zod,"values",()=>n.innerType._zod.values),i._zod.parse=(r,u)=>{if(r.value===void 0)return r.value=n.defaultValue,r;let t=n.innerType._zod.run(r,u);if(t instanceof Promise)return t.then((c)=>Rf(c,n));return Rf(t,n)}});function Rf(i,n){if(i.value===void 0)i.value=n.defaultValue;return i}var M_=D("$ZodPrefault",(i,n)=>{y.init(i,n),i._zod.optin="optional",d(i._zod,"values",()=>n.innerType._zod.values),i._zod.parse=(r,u)=>{if(r.value===void 0)r.value=n.defaultValue;return n.innerType._zod.run(r,u)}}),x_=D("$ZodNonOptional",(i,n)=>{y.init(i,n),d(i._zod,"values",()=>{let r=n.innerType._zod.values;return r?new Set([...r].filter((u)=>u!==void 0)):void 0}),i._zod.parse=(r,u)=>{let t=n.innerType._zod.run(r,u);if(t instanceof Promise)return t.then((c)=>Zf(c,i));return Zf(t,i)}});function Zf(i,n){if(!i.issues.length&&i.value===void 0)i.issues.push({code:"invalid_type",expected:"nonoptional",input:i.value,inst:n});return i}var F_=D("$ZodSuccess",(i,n)=>{y.init(i,n),i._zod.parse=(r,u)=>{let t=n.innerType._zod.run(r,u);if(t instanceof Promise)return t.then((c)=>{return r.value=c.issues.length===0,r});return r.value=t.issues.length===0,r}}),P_=D("$ZodCatch",(i,n)=>{y.init(i,n),d(i._zod,"optin",()=>n.innerType._zod.optin),d(i._zod,"optout",()=>n.innerType._zod.optout),d(i._zod,"values",()=>n.innerType._zod.values),i._zod.parse=(r,u)=>{let t=n.innerType._zod.run(r,u);if(t instanceof Promise)return t.then((c)=>{if(r.value=c.value,c.issues.length)r.value=n.catchValue({...r,error:{issues:c.issues.map((g)=>Ai(g,u,$i()))},input:r.value}),r.issues=[];return r});if(r.value=t.value,t.issues.length)r.value=n.catchValue({...r,error:{issues:t.issues.map((c)=>Ai(c,u,$i()))},input:r.value}),r.issues=[];return r}}),y_=D("$ZodNaN",(i,n)=>{y.init(i,n),i._zod.parse=(r,u)=>{if(typeof r.value!=="number"||!Number.isNaN(r.value))return r.issues.push({input:r.value,inst:i,expected:"nan",code:"invalid_type"}),r;return r}}),zr=D("$ZodPipe",(i,n)=>{y.init(i,n),d(i._zod,"values",()=>n.in._zod.values),d(i._zod,"optin",()=>n.in._zod.optin),d(i._zod,"optout",()=>n.out._zod.optout),i._zod.parse=(r,u)=>{let t=n.in._zod.run(r,u);if(t instanceof Promise)return t.then((c)=>ef(c,n,u));return ef(t,n,u)}});function ef(i,n,r){if(nt(i))return i;return n.out._zod.run({value:i.value,issues:i.issues},r)}var T_=D("$ZodReadonly",(i,n)=>{y.init(i,n),d(i._zod,"propValues",()=>n.innerType._zod.propValues),d(i._zod,"optin",()=>n.innerType._zod.optin),d(i._zod,"optout",()=>n.innerType._zod.optout),i._zod.parse=(r,u)=>{let t=n.innerType._zod.run(r,u);if(t instanceof Promise)return t.then(pf);return pf(t)}});function pf(i){return i.value=Object.freeze(i.value),i}var k_=D("$ZodTemplateLiteral",(i,n)=>{y.init(i,n);let r=[];for(let u of n.parts)if(u instanceof y){if(!u._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...u._zod.traits].shift()}`);let t=u._zod.pattern instanceof RegExp?u._zod.pattern.source:u._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${u._zod.traits}`);let c=t.startsWith("^")?1:0,g=t.endsWith("$")?t.length-1:t.length;r.push(t.slice(c,g))}else if(u===null||yg.has(typeof u))r.push(fn(`${u}`));else throw new Error(`Invalid template literal part: ${u}`);i._zod.pattern=new RegExp(`^${r.join("")}$`),i._zod.parse=(u,t)=>{if(typeof u.value!=="string")return u.issues.push({input:u.value,inst:i,expected:"template_literal",code:"invalid_type"}),u;if(i._zod.pattern.lastIndex=0,!i._zod.pattern.test(u.value))return u.issues.push({input:u.value,inst:i,code:"invalid_format",format:"template_literal",pattern:i._zod.pattern.source}),u;return u}}),C_=D("$ZodPromise",(i,n)=>{y.init(i,n),i._zod.parse=(r,u)=>{return Promise.resolve(r.value).then((t)=>n.innerType._zod.run({value:t,issues:[]},u))}}),R_=D("$ZodLazy",(i,n)=>{y.init(i,n),d(i._zod,"innerType",()=>n.getter()),d(i._zod,"pattern",()=>i._zod.innerType._zod.pattern),d(i._zod,"propValues",()=>i._zod.innerType._zod.propValues),d(i._zod,"optin",()=>i._zod.innerType._zod.optin),d(i._zod,"optout",()=>i._zod.innerType._zod.optout),i._zod.parse=(r,u)=>{return i._zod.innerType._zod.run(r,u)}}),Z_=D("$ZodCustom",(i,n)=>{ui.init(i,n),y.init(i,n),i._zod.parse=(r,u)=>{return r},i._zod.check=(r)=>{let u=r.value,t=n.fn(u);if(t instanceof Promise)return t.then((c)=>df(c,r,u,i));df(t,r,u,i);return}});function df(i,n,r,u){if(!i){let t={code:"custom",input:r,inst:u,path:[...u._zod.def.path??[]],continue:!u._zod.def.abort};if(u._zod.def.params)t.params=u._zod.def.params;n.issues.push(Rg(t))}}var Dr={};Xn(Dr,{zhTW:()=>Il,zhCN:()=>Ll,vi:()=>Xl,ur:()=>ql,ua:()=>Gl,tr:()=>Hl,th:()=>El,ta:()=>Jl,sv:()=>Dl,sl:()=>Wl,ru:()=>zl,pt:()=>Nl,pl:()=>Ul,ota:()=>jl,no:()=>Ol,nl:()=>fl,ms:()=>vl,mk:()=>bl,ko:()=>wl,kh:()=>$l,ja:()=>ll,it:()=>_l,id:()=>hl,hu:()=>gl,he:()=>ol,frCA:()=>cl,fr:()=>ul,fi:()=>rl,fa:()=>tl,es:()=>nl,en:()=>Wr,de:()=>il,cs:()=>s_,ca:()=>a_,be:()=>d_,az:()=>p_,ar:()=>e_});var _J=()=>{let i={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"};return(t)=>{switch(t.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${t.expected}، ولكن تم إدخال ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`مدخلات غير مقبولة: يفترض إدخال ${A(t.values[0])}`;return`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return` أكبر من اللازم: يفترض أن تكون ${t.origin??"القيمة"} ${c} ${t.maximum.toString()} ${g.unit??"عنصر"}`;return`أكبر من اللازم: يفترض أن تكون ${t.origin??"القيمة"} ${c} ${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${c} ${t.minimum.toString()} ${g.unit}`;return`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${c} ${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`نَص غير مقبول: يجب أن يبدأ بـ "${t.prefix}"`;if(c.format==="ends_with")return`نَص غير مقبول: يجب أن ينتهي بـ "${c.suffix}"`;if(c.format==="includes")return`نَص غير مقبول: يجب أن يتضمَّن "${c.includes}"`;if(c.format==="regex")return`نَص غير مقبول: يجب أن يطابق النمط ${c.pattern}`;return`${u[c.format]??t.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${t.divisor}`;case"unrecognized_keys":return`معرف${t.keys.length>1?"ات":""} غريب${t.keys.length>1?"ة":""}: ${G(t.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${t.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${t.origin}`;default:return"مدخل غير مقبول"}}};function e_(){return{localeError:_J()}}var lJ=()=>{let i={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return(t)=>{switch(t.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${t.expected}, daxil olan ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Yanlış dəyər: gözlənilən ${A(t.values[0])}`;return`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`Çox böyük: gözlənilən ${t.origin??"dəyər"} ${c}${t.maximum.toString()} ${g.unit??"element"}`;return`Çox böyük: gözlənilən ${t.origin??"dəyər"} ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`Çox kiçik: gözlənilən ${t.origin} ${c}${t.minimum.toString()} ${g.unit}`;return`Çox kiçik: gözlənilən ${t.origin} ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`Yanlış mətn: "${c.prefix}" ilə başlamalıdır`;if(c.format==="ends_with")return`Yanlış mətn: "${c.suffix}" ilə bitməlidir`;if(c.format==="includes")return`Yanlış mətn: "${c.includes}" daxil olmalıdır`;if(c.format==="regex")return`Yanlış mətn: ${c.pattern} şablonuna uyğun olmalıdır`;return`Yanlış ${u[c.format]??t.format}`}case"not_multiple_of":return`Yanlış ədəd: ${t.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${t.keys.length>1?"lar":""}: ${G(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${t.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function p_(){return{localeError:lJ()}}function n4(i,n,r,u){let t=Math.abs(i),c=t%10,g=t%100;if(g>=11&&g<=19)return u;if(c===1)return n;if(c>=2&&c<=4)return r;return u}var $J=()=>{let i={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"лік";case"object":{if(Array.isArray(t))return"масіў";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"};return(t)=>{switch(t.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${t.expected}, атрымана ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Няправільны ўвод: чакалася ${A(t.values[0])}`;return`Няправільны варыянт: чакаўся адзін з ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g){let h=Number(t.maximum),_=n4(h,g.unit.one,g.unit.few,g.unit.many);return`Занадта вялікі: чакалася, што ${t.origin??"значэнне"} павінна ${g.verb} ${c}${t.maximum.toString()} ${_}`}return`Занадта вялікі: чакалася, што ${t.origin??"значэнне"} павінна быць ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g){let h=Number(t.minimum),_=n4(h,g.unit.one,g.unit.few,g.unit.many);return`Занадта малы: чакалася, што ${t.origin} павінна ${g.verb} ${c}${t.minimum.toString()} ${_}`}return`Занадта малы: чакалася, што ${t.origin} павінна быць ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`Няправільны радок: павінен пачынацца з "${c.prefix}"`;if(c.format==="ends_with")return`Няправільны радок: павінен заканчвацца на "${c.suffix}"`;if(c.format==="includes")return`Няправільны радок: павінен змяшчаць "${c.includes}"`;if(c.format==="regex")return`Няправільны радок: павінен адпавядаць шаблону ${c.pattern}`;return`Няправільны ${u[c.format]??t.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${t.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${t.keys.length>1?"ключы":"ключ"}: ${G(t.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${t.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${t.origin}`;default:return"Няправільны ўвод"}}};function d_(){return{localeError:$J()}}var wJ=()=>{let i={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return(t)=>{switch(t.code){case"invalid_type":return`Tipus invàlid: s\'esperava ${t.expected}, s\'ha rebut ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Valor invàlid: s\'esperava ${A(t.values[0])}`;return`Opció invàlida: s\'esperava una de ${G(t.values," o ")}`;case"too_big":{let c=t.inclusive?"com a màxim":"menys de",g=n(t.origin);if(g)return`Massa gran: s\'esperava que ${t.origin??"el valor"} contingués ${c} ${t.maximum.toString()} ${g.unit??"elements"}`;return`Massa gran: s\'esperava que ${t.origin??"el valor"} fos ${c} ${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?"com a mínim":"més de",g=n(t.origin);if(g)return`Massa petit: s\'esperava que ${t.origin} contingués ${c} ${t.minimum.toString()} ${g.unit}`;return`Massa petit: s\'esperava que ${t.origin} fos ${c} ${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`Format invàlid: ha de començar amb "${c.prefix}"`;if(c.format==="ends_with")return`Format invàlid: ha d\'acabar amb "${c.suffix}"`;if(c.format==="includes")return`Format invàlid: ha d\'incloure "${c.includes}"`;if(c.format==="regex")return`Format invàlid: ha de coincidir amb el patró ${c.pattern}`;return`Format invàlid per a ${u[c.format]??t.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${G(t.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${t.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${t.origin}`;default:return"Entrada invàlida"}}};function a_(){return{localeError:wJ()}}var bJ=()=>{let i={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(t))return"pole";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"};return(t)=>{switch(t.code){case"invalid_type":return`Neplatný vstup: očekáváno ${t.expected}, obdrženo ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Neplatný vstup: očekáváno ${A(t.values[0])}`;return`Neplatná možnost: očekávána jedna z hodnot ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`Hodnota je příliš velká: ${t.origin??"hodnota"} musí mít ${c}${t.maximum.toString()} ${g.unit??"prvků"}`;return`Hodnota je příliš velká: ${t.origin??"hodnota"} musí být ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`Hodnota je příliš malá: ${t.origin??"hodnota"} musí mít ${c}${t.minimum.toString()} ${g.unit??"prvků"}`;return`Hodnota je příliš malá: ${t.origin??"hodnota"} musí být ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`Neplatný řetězec: musí začínat na "${c.prefix}"`;if(c.format==="ends_with")return`Neplatný řetězec: musí končit na "${c.suffix}"`;if(c.format==="includes")return`Neplatný řetězec: musí obsahovat "${c.includes}"`;if(c.format==="regex")return`Neplatný řetězec: musí odpovídat vzoru ${c.pattern}`;return`Neplatný formát ${u[c.format]??t.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${t.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${G(t.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${t.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${t.origin}`;default:return"Neplatný vstup"}}};function s_(){return{localeError:bJ()}}var vJ=()=>{let i={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"Zahl";case"object":{if(Array.isArray(t))return"Array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return(t)=>{switch(t.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${t.expected}, erhalten ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Ungültige Eingabe: erwartet ${A(t.values[0])}`;return`Ungültige Option: erwartet eine von ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`Zu groß: erwartet, dass ${t.origin??"Wert"} ${c}${t.maximum.toString()} ${g.unit??"Elemente"} hat`;return`Zu groß: erwartet, dass ${t.origin??"Wert"} ${c}${t.maximum.toString()} ist`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`Zu klein: erwartet, dass ${t.origin} ${c}${t.minimum.toString()} ${g.unit} hat`;return`Zu klein: erwartet, dass ${t.origin} ${c}${t.minimum.toString()} ist`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`Ungültiger String: muss mit "${c.prefix}" beginnen`;if(c.format==="ends_with")return`Ungültiger String: muss mit "${c.suffix}" enden`;if(c.format==="includes")return`Ungültiger String: muss "${c.includes}" enthalten`;if(c.format==="regex")return`Ungültiger String: muss dem Muster ${c.pattern} entsprechen`;return`Ungültig: ${u[c.format]??t.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${G(t.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${t.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${t.origin}`;default:return"Ungültige Eingabe"}}};function il(){return{localeError:vJ()}}var fJ=(i)=>{let n=typeof i;switch(n){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return n},OJ=()=>{let i={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function n(u){return i[u]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return(u)=>{switch(u.code){case"invalid_type":return`Invalid input: expected ${u.expected}, received ${fJ(u.input)}`;case"invalid_value":if(u.values.length===1)return`Invalid input: expected ${A(u.values[0])}`;return`Invalid option: expected one of ${G(u.values,"|")}`;case"too_big":{let t=u.inclusive?"<=":"<",c=n(u.origin);if(c)return`Too big: expected ${u.origin??"value"} to have ${t}${u.maximum.toString()} ${c.unit??"elements"}`;return`Too big: expected ${u.origin??"value"} to be ${t}${u.maximum.toString()}`}case"too_small":{let t=u.inclusive?">=":">",c=n(u.origin);if(c)return`Too small: expected ${u.origin} to have ${t}${u.minimum.toString()} ${c.unit}`;return`Too small: expected ${u.origin} to be ${t}${u.minimum.toString()}`}case"invalid_format":{let t=u;if(t.format==="starts_with")return`Invalid string: must start with "${t.prefix}"`;if(t.format==="ends_with")return`Invalid string: must end with "${t.suffix}"`;if(t.format==="includes")return`Invalid string: must include "${t.includes}"`;if(t.format==="regex")return`Invalid string: must match pattern ${t.pattern}`;return`Invalid ${r[t.format]??u.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${u.divisor}`;case"unrecognized_keys":return`Unrecognized key${u.keys.length>1?"s":""}: ${G(u.keys,", ")}`;case"invalid_key":return`Invalid key in ${u.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${u.origin}`;default:return"Invalid input"}}};function Wr(){return{localeError:OJ()}}var jJ=()=>{let i={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"número";case"object":{if(Array.isArray(t))return"arreglo";if(t===null)return"nulo";if(Object.getPrototypeOf(t)!==Object.prototype)return t.constructor.name}}return c},u={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return(t)=>{switch(t.code){case"invalid_type":return`Entrada inválida: se esperaba ${t.expected}, recibido ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Entrada inválida: se esperaba ${A(t.values[0])}`;return`Opción inválida: se esperaba una de ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`Demasiado grande: se esperaba que ${t.origin??"valor"} tuviera ${c}${t.maximum.toString()} ${g.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${t.origin??"valor"} fuera ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`Demasiado pequeño: se esperaba que ${t.origin} tuviera ${c}${t.minimum.toString()} ${g.unit}`;return`Demasiado pequeño: se esperaba que ${t.origin} fuera ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`Cadena inválida: debe comenzar con "${c.prefix}"`;if(c.format==="ends_with")return`Cadena inválida: debe terminar en "${c.suffix}"`;if(c.format==="includes")return`Cadena inválida: debe incluir "${c.includes}"`;if(c.format==="regex")return`Cadena inválida: debe coincidir con el patrón ${c.pattern}`;return`Inválido ${u[c.format]??t.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${t.divisor}`;case"unrecognized_keys":return`Llave${t.keys.length>1?"s":""} desconocida${t.keys.length>1?"s":""}: ${G(t.keys,", ")}`;case"invalid_key":return`Llave inválida en ${t.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${t.origin}`;default:return"Entrada inválida"}}};function nl(){return{localeError:jJ()}}var UJ=()=>{let i={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"عدد";case"object":{if(Array.isArray(t))return"آرایه";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"};return(t)=>{switch(t.code){case"invalid_type":return`ورودی نامعتبر: میبایست ${t.expected} میبود، ${r(t.input)} دریافت شد`;case"invalid_value":if(t.values.length===1)return`ورودی نامعتبر: میبایست ${A(t.values[0])} میبود`;return`گزینه نامعتبر: میبایست یکی از ${G(t.values,"|")} میبود`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`خیلی بزرگ: ${t.origin??"مقدار"} باید ${c}${t.maximum.toString()} ${g.unit??"عنصر"} باشد`;return`خیلی بزرگ: ${t.origin??"مقدار"} باید ${c}${t.maximum.toString()} باشد`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`خیلی کوچک: ${t.origin} باید ${c}${t.minimum.toString()} ${g.unit} باشد`;return`خیلی کوچک: ${t.origin} باید ${c}${t.minimum.toString()} باشد`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`رشته نامعتبر: باید با "${c.prefix}" شروع شود`;if(c.format==="ends_with")return`رشته نامعتبر: باید با "${c.suffix}" تمام شود`;if(c.format==="includes")return`رشته نامعتبر: باید شامل "${c.includes}" باشد`;if(c.format==="regex")return`رشته نامعتبر: باید با الگوی ${c.pattern} مطابقت داشته باشد`;return`${u[c.format]??t.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${t.divisor} باشد`;case"unrecognized_keys":return`کلید${t.keys.length>1?"های":""} ناشناس: ${G(t.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${t.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${t.origin}`;default:return"ورودی نامعتبر"}}};function tl(){return{localeError:UJ()}}var NJ=()=>{let i={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return(t)=>{switch(t.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${t.expected}, oli ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Virheellinen syöte: täytyy olla ${A(t.values[0])}`;return`Virheellinen valinta: täytyy olla yksi seuraavista: ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`Liian suuri: ${g.subject} täytyy olla ${c}${t.maximum.toString()} ${g.unit}`.trim();return`Liian suuri: arvon täytyy olla ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`Liian pieni: ${g.subject} täytyy olla ${c}${t.minimum.toString()} ${g.unit}`.trim();return`Liian pieni: arvon täytyy olla ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`Virheellinen syöte: täytyy alkaa "${c.prefix}"`;if(c.format==="ends_with")return`Virheellinen syöte: täytyy loppua "${c.suffix}"`;if(c.format==="includes")return`Virheellinen syöte: täytyy sisältää "${c.includes}"`;if(c.format==="regex")return`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${c.pattern}`;return`Virheellinen ${u[c.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${G(t.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function rl(){return{localeError:NJ()}}var zJ=()=>{let i={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"nombre";case"object":{if(Array.isArray(t))return"tableau";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return(t)=>{switch(t.code){case"invalid_type":return`Entrée invalide : ${t.expected} attendu, ${r(t.input)} reçu`;case"invalid_value":if(t.values.length===1)return`Entrée invalide : ${A(t.values[0])} attendu`;return`Option invalide : une valeur parmi ${G(t.values,"|")} attendue`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`Trop grand : ${t.origin??"valeur"} doit ${g.verb} ${c}${t.maximum.toString()} ${g.unit??"élément(s)"}`;return`Trop grand : ${t.origin??"valeur"} doit être ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`Trop petit : ${t.origin} doit ${g.verb} ${c}${t.minimum.toString()} ${g.unit}`;return`Trop petit : ${t.origin} doit être ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`Chaîne invalide : doit commencer par "${c.prefix}"`;if(c.format==="ends_with")return`Chaîne invalide : doit se terminer par "${c.suffix}"`;if(c.format==="includes")return`Chaîne invalide : doit inclure "${c.includes}"`;if(c.format==="regex")return`Chaîne invalide : doit correspondre au modèle ${c.pattern}`;return`${u[c.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${t.divisor}`;case"unrecognized_keys":return`Clé${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${G(t.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${t.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entrée invalide"}}};function ul(){return{localeError:zJ()}}var WJ=()=>{let i={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return(t)=>{switch(t.code){case"invalid_type":return`Entrée invalide : attendu ${t.expected}, reçu ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Entrée invalide : attendu ${A(t.values[0])}`;return`Option invalide : attendu l\'une des valeurs suivantes ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"≤":"<",g=n(t.origin);if(g)return`Trop grand : attendu que ${t.origin??"la valeur"} ait ${c}${t.maximum.toString()} ${g.unit}`;return`Trop grand : attendu que ${t.origin??"la valeur"} soit ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?"≥":">",g=n(t.origin);if(g)return`Trop petit : attendu que ${t.origin} ait ${c}${t.minimum.toString()} ${g.unit}`;return`Trop petit : attendu que ${t.origin} soit ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`Chaîne invalide : doit commencer par "${c.prefix}"`;if(c.format==="ends_with")return`Chaîne invalide : doit se terminer par "${c.suffix}"`;if(c.format==="includes")return`Chaîne invalide : doit inclure "${c.includes}"`;if(c.format==="regex")return`Chaîne invalide : doit correspondre au motif ${c.pattern}`;return`${u[c.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${t.divisor}`;case"unrecognized_keys":return`Clé${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${G(t.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${t.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entrée invalide"}}};function cl(){return{localeError:WJ()}}var DJ=()=>{let i={string:{unit:"אותיות",verb:"לכלול"},file:{unit:"בייטים",verb:"לכלול"},array:{unit:"פריטים",verb:"לכלול"},set:{unit:"פריטים",verb:"לכלול"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"קלט",email:"כתובת אימייל",url:"כתובת רשת",emoji:"אימוג\'י",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"תאריך וזמן ISO",date:"תאריך ISO",time:"זמן ISO",duration:"משך זמן ISO",ipv4:"כתובת IPv4",ipv6:"כתובת IPv6",cidrv4:"טווח IPv4",cidrv6:"טווח IPv6",base64:"מחרוזת בבסיס 64",base64url:"מחרוזת בבסיס 64 לכתובות רשת",json_string:"מחרוזת JSON",e164:"מספר E.164",jwt:"JWT",template_literal:"קלט"};return(t)=>{switch(t.code){case"invalid_type":return`קלט לא תקין: צריך ${t.expected}, התקבל ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`קלט לא תקין: צריך ${A(t.values[0])}`;return`קלט לא תקין: צריך אחת מהאפשרויות ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`גדול מדי: ${t.origin??"value"} צריך להיות ${c}${t.maximum.toString()} ${g.unit??"elements"}`;return`גדול מדי: ${t.origin??"value"} צריך להיות ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`קטן מדי: ${t.origin} צריך להיות ${c}${t.minimum.toString()} ${g.unit}`;return`קטן מדי: ${t.origin} צריך להיות ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`מחרוזת לא תקינה: חייבת להתחיל ב"${c.prefix}"`;if(c.format==="ends_with")return`מחרוזת לא תקינה: חייבת להסתיים ב "${c.suffix}"`;if(c.format==="includes")return`מחרוזת לא תקינה: חייבת לכלול "${c.includes}"`;if(c.format==="regex")return`מחרוזת לא תקינה: חייבת להתאים לתבנית ${c.pattern}`;return`${u[c.format]??t.format} לא תקין`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case"unrecognized_keys":return`מפתח${t.keys.length>1?"ות":""} לא מזוה${t.keys.length>1?"ים":"ה"}: ${G(t.keys,", ")}`;case"invalid_key":return`מפתח לא תקין ב${t.origin}`;case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${t.origin}`;default:return"קלט לא תקין"}}};function ol(){return{localeError:DJ()}}var JJ=()=>{let i={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"szám";case"object":{if(Array.isArray(t))return"tömb";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"};return(t)=>{switch(t.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${t.expected}, a kapott érték ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Érvénytelen bemenet: a várt érték ${A(t.values[0])}`;return`Érvénytelen opció: valamelyik érték várt ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`Túl nagy: ${t.origin??"érték"} mérete túl nagy ${c}${t.maximum.toString()} ${g.unit??"elem"}`;return`Túl nagy: a bemeneti érték ${t.origin??"érték"} túl nagy: ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`Túl kicsi: a bemeneti érték ${t.origin} mérete túl kicsi ${c}${t.minimum.toString()} ${g.unit}`;return`Túl kicsi: a bemeneti érték ${t.origin} túl kicsi ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`Érvénytelen string: "${c.prefix}" értékkel kell kezdődnie`;if(c.format==="ends_with")return`Érvénytelen string: "${c.suffix}" értékkel kell végződnie`;if(c.format==="includes")return`Érvénytelen string: "${c.includes}" értéket kell tartalmaznia`;if(c.format==="regex")return`Érvénytelen string: ${c.pattern} mintának kell megfelelnie`;return`Érvénytelen ${u[c.format]??t.format}`}case"not_multiple_of":return`Érvénytelen szám: ${t.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${G(t.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${t.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${t.origin}`;default:return"Érvénytelen bemenet"}}};function gl(){return{localeError:JJ()}}var EJ=()=>{let i={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return(t)=>{switch(t.code){case"invalid_type":return`Input tidak valid: diharapkan ${t.expected}, diterima ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Input tidak valid: diharapkan ${A(t.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${c}${t.maximum.toString()} ${g.unit??"elemen"}`;return`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`Terlalu kecil: diharapkan ${t.origin} memiliki ${c}${t.minimum.toString()} ${g.unit}`;return`Terlalu kecil: diharapkan ${t.origin} menjadi ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`String tidak valid: harus dimulai dengan "${c.prefix}"`;if(c.format==="ends_with")return`String tidak valid: harus berakhir dengan "${c.suffix}"`;if(c.format==="includes")return`String tidak valid: harus menyertakan "${c.includes}"`;if(c.format==="regex")return`String tidak valid: harus sesuai pola ${c.pattern}`;return`${u[c.format]??t.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${t.keys.length>1?"s":""}: ${G(t.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${t.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${t.origin}`;default:return"Input tidak valid"}}};function hl(){return{localeError:EJ()}}var HJ=()=>{let i={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"numero";case"object":{if(Array.isArray(t))return"vettore";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return(t)=>{switch(t.code){case"invalid_type":return`Input non valido: atteso ${t.expected}, ricevuto ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Input non valido: atteso ${A(t.values[0])}`;return`Opzione non valida: atteso uno tra ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`Troppo grande: ${t.origin??"valore"} deve avere ${c}${t.maximum.toString()} ${g.unit??"elementi"}`;return`Troppo grande: ${t.origin??"valore"} deve essere ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`Troppo piccolo: ${t.origin} deve avere ${c}${t.minimum.toString()} ${g.unit}`;return`Troppo piccolo: ${t.origin} deve essere ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`Stringa non valida: deve iniziare con "${c.prefix}"`;if(c.format==="ends_with")return`Stringa non valida: deve terminare con "${c.suffix}"`;if(c.format==="includes")return`Stringa non valida: deve includere "${c.includes}"`;if(c.format==="regex")return`Stringa non valida: deve corrispondere al pattern ${c.pattern}`;return`Invalid ${u[c.format]??t.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case"unrecognized_keys":return`Chiav${t.keys.length>1?"i":"e"} non riconosciut${t.keys.length>1?"e":"a"}: ${G(t.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${t.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${t.origin}`;default:return"Input non valido"}}};function _l(){return{localeError:HJ()}}var GJ=()=>{let i={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"数値";case"object":{if(Array.isArray(t))return"配列";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"};return(t)=>{switch(t.code){case"invalid_type":return`無効な入力: ${t.expected}が期待されましたが、${r(t.input)}が入力されました`;case"invalid_value":if(t.values.length===1)return`無効な入力: ${A(t.values[0])}が期待されました`;return`無効な選択: ${G(t.values,"、")}のいずれかである必要があります`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`大きすぎる値: ${t.origin??"値"}は${t.maximum.toString()}${g.unit??"要素"}${c}である必要があります`;return`大きすぎる値: ${t.origin??"値"}は${t.maximum.toString()}${c}である必要があります`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`小さすぎる値: ${t.origin}は${t.minimum.toString()}${g.unit}${c}である必要があります`;return`小さすぎる値: ${t.origin}は${t.minimum.toString()}${c}である必要があります`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`無効な文字列: "${c.prefix}"で始まる必要があります`;if(c.format==="ends_with")return`無効な文字列: "${c.suffix}"で終わる必要があります`;if(c.format==="includes")return`無効な文字列: "${c.includes}"を含む必要があります`;if(c.format==="regex")return`無効な文字列: パターン${c.pattern}に一致する必要があります`;return`無効な${u[c.format]??t.format}`}case"not_multiple_of":return`無効な数値: ${t.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${t.keys.length>1?"群":""}: ${G(t.keys,"、")}`;case"invalid_key":return`${t.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${t.origin}内の無効な値`;default:return"無効な入力"}}};function ll(){return{localeError:GJ()}}var qJ=()=>{let i={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":{if(Array.isArray(t))return"អារេ (Array)";if(t===null)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"};return(t)=>{switch(t.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t.expected} ប៉ុន្តែទទួលបាន ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${A(t.values[0])}`;return`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`ធំពេក៖ ត្រូវការ ${t.origin??"តម្លៃ"} ${c} ${t.maximum.toString()} ${g.unit??"ធាតុ"}`;return`ធំពេក៖ ត្រូវការ ${t.origin??"តម្លៃ"} ${c} ${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`តូចពេក៖ ត្រូវការ ${t.origin} ${c} ${t.minimum.toString()} ${g.unit}`;return`តូចពេក៖ ត្រូវការ ${t.origin} ${c} ${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${c.prefix}"`;if(c.format==="ends_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${c.suffix}"`;if(c.format==="includes")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${c.includes}"`;if(c.format==="regex")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${c.pattern}`;return`មិនត្រឹមត្រូវ៖ ${u[c.format]??t.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${t.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${G(t.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function $l(){return{localeError:qJ()}}var XJ=()=>{let i={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"};return(t)=>{switch(t.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${t.expected}, 받은 타입은 ${r(t.input)}입니다`;case"invalid_value":if(t.values.length===1)return`잘못된 입력: 값은 ${A(t.values[0])} 이어야 합니다`;return`잘못된 옵션: ${G(t.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let c=t.inclusive?"이하":"미만",g=c==="미만"?"이어야 합니다":"여야 합니다",h=n(t.origin),_=h?.unit??"요소";if(h)return`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()}${_} ${c}${g}`;return`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()} ${c}${g}`}case"too_small":{let c=t.inclusive?"이상":"초과",g=c==="이상"?"이어야 합니다":"여야 합니다",h=n(t.origin),_=h?.unit??"요소";if(h)return`${t.origin??"값"}이 너무 작습니다: ${t.minimum.toString()}${_} ${c}${g}`;return`${t.origin??"값"}이 너무 작습니다: ${t.minimum.toString()} ${c}${g}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`잘못된 문자열: "${c.prefix}"(으)로 시작해야 합니다`;if(c.format==="ends_with")return`잘못된 문자열: "${c.suffix}"(으)로 끝나야 합니다`;if(c.format==="includes")return`잘못된 문자열: "${c.includes}"을(를) 포함해야 합니다`;if(c.format==="regex")return`잘못된 문자열: 정규식 ${c.pattern} 패턴과 일치해야 합니다`;return`잘못된 ${u[c.format]??t.format}`}case"not_multiple_of":return`잘못된 숫자: ${t.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${G(t.keys,", ")}`;case"invalid_key":return`잘못된 키: ${t.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${t.origin}`;default:return"잘못된 입력"}}};function wl(){return{localeError:XJ()}}var LJ=()=>{let i={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"број";case"object":{if(Array.isArray(t))return"низа";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"};return(t)=>{switch(t.code){case"invalid_type":return`Грешен внес: се очекува ${t.expected}, примено ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Invalid input: expected ${A(t.values[0])}`;return`Грешана опција: се очекува една ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`Премногу голем: се очекува ${t.origin??"вредноста"} да има ${c}${t.maximum.toString()} ${g.unit??"елементи"}`;return`Премногу голем: се очекува ${t.origin??"вредноста"} да биде ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`Премногу мал: се очекува ${t.origin} да има ${c}${t.minimum.toString()} ${g.unit}`;return`Премногу мал: се очекува ${t.origin} да биде ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`Неважечка низа: мора да започнува со "${c.prefix}"`;if(c.format==="ends_with")return`Неважечка низа: мора да завршува со "${c.suffix}"`;if(c.format==="includes")return`Неважечка низа: мора да вклучува "${c.includes}"`;if(c.format==="regex")return`Неважечка низа: мора да одгоара на патернот ${c.pattern}`;return`Invalid ${u[c.format]??t.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${G(t.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${t.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${t.origin}`;default:return"Грешен внес"}}};function bl(){return{localeError:LJ()}}var IJ=()=>{let i={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"nombor";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return(t)=>{switch(t.code){case"invalid_type":return`Input tidak sah: dijangka ${t.expected}, diterima ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Input tidak sah: dijangka ${A(t.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`Terlalu besar: dijangka ${t.origin??"nilai"} ${g.verb} ${c}${t.maximum.toString()} ${g.unit??"elemen"}`;return`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`Terlalu kecil: dijangka ${t.origin} ${g.verb} ${c}${t.minimum.toString()} ${g.unit}`;return`Terlalu kecil: dijangka ${t.origin} adalah ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`String tidak sah: mesti bermula dengan "${c.prefix}"`;if(c.format==="ends_with")return`String tidak sah: mesti berakhir dengan "${c.suffix}"`;if(c.format==="includes")return`String tidak sah: mesti mengandungi "${c.includes}"`;if(c.format==="regex")return`String tidak sah: mesti sepadan dengan corak ${c.pattern}`;return`${u[c.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${G(t.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${t.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${t.origin}`;default:return"Input tidak sah"}}};function vl(){return{localeError:IJ()}}var YJ=()=>{let i={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"getal";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return(t)=>{switch(t.code){case"invalid_type":return`Ongeldige invoer: verwacht ${t.expected}, ontving ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Ongeldige invoer: verwacht ${A(t.values[0])}`;return`Ongeldige optie: verwacht één van ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`Te lang: verwacht dat ${t.origin??"waarde"} ${c}${t.maximum.toString()} ${g.unit??"elementen"} bevat`;return`Te lang: verwacht dat ${t.origin??"waarde"} ${c}${t.maximum.toString()} is`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`Te kort: verwacht dat ${t.origin} ${c}${t.minimum.toString()} ${g.unit} bevat`;return`Te kort: verwacht dat ${t.origin} ${c}${t.minimum.toString()} is`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`Ongeldige tekst: moet met "${c.prefix}" beginnen`;if(c.format==="ends_with")return`Ongeldige tekst: moet op "${c.suffix}" eindigen`;if(c.format==="includes")return`Ongeldige tekst: moet "${c.includes}" bevatten`;if(c.format==="regex")return`Ongeldige tekst: moet overeenkomen met patroon ${c.pattern}`;return`Ongeldig: ${u[c.format]??t.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${t.keys.length>1?"s":""}: ${G(t.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${t.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${t.origin}`;default:return"Ongeldige invoer"}}};function fl(){return{localeError:YJ()}}var QJ=()=>{let i={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"tall";case"object":{if(Array.isArray(t))return"liste";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return(t)=>{switch(t.code){case"invalid_type":return`Ugyldig input: forventet ${t.expected}, fikk ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Ugyldig verdi: forventet ${A(t.values[0])}`;return`Ugyldig valg: forventet en av ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`For stor(t): forventet ${t.origin??"value"} til å ha ${c}${t.maximum.toString()} ${g.unit??"elementer"}`;return`For stor(t): forventet ${t.origin??"value"} til å ha ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`For lite(n): forventet ${t.origin} til å ha ${c}${t.minimum.toString()} ${g.unit}`;return`For lite(n): forventet ${t.origin} til å ha ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`Ugyldig streng: må starte med "${c.prefix}"`;if(c.format==="ends_with")return`Ugyldig streng: må ende med "${c.suffix}"`;if(c.format==="includes")return`Ugyldig streng: må inneholde "${c.includes}"`;if(c.format==="regex")return`Ugyldig streng: må matche mønsteret ${c.pattern}`;return`Ugyldig ${u[c.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${G(t.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}};function Ol(){return{localeError:QJ()}}var mJ=()=>{let i={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"numara";case"object":{if(Array.isArray(t))return"saf";if(t===null)return"gayb";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"};return(t)=>{switch(t.code){case"invalid_type":return`Fâsit giren: umulan ${t.expected}, alınan ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Fâsit giren: umulan ${A(t.values[0])}`;return`Fâsit tercih: mûteberler ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`Fazla büyük: ${t.origin??"value"}, ${c}${t.maximum.toString()} ${g.unit??"elements"} sahip olmalıydı.`;return`Fazla büyük: ${t.origin??"value"}, ${c}${t.maximum.toString()} olmalıydı.`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`Fazla küçük: ${t.origin}, ${c}${t.minimum.toString()} ${g.unit} sahip olmalıydı.`;return`Fazla küçük: ${t.origin}, ${c}${t.minimum.toString()} olmalıydı.`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`Fâsit metin: "${c.prefix}" ile başlamalı.`;if(c.format==="ends_with")return`Fâsit metin: "${c.suffix}" ile bitmeli.`;if(c.format==="includes")return`Fâsit metin: "${c.includes}" ihtivâ etmeli.`;if(c.format==="regex")return`Fâsit metin: ${c.pattern} nakşına uymalı.`;return`Fâsit ${u[c.format]??t.format}`}case"not_multiple_of":return`Fâsit sayı: ${t.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${t.keys.length>1?"s":""}: ${G(t.keys,", ")}`;case"invalid_key":return`${t.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${t.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function jl(){return{localeError:mJ()}}var SJ=()=>{let i={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"liczba";case"object":{if(Array.isArray(t))return"tablica";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"};return(t)=>{switch(t.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${t.expected}, otrzymano ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Nieprawidłowe dane wejściowe: oczekiwano ${A(t.values[0])}`;return`Nieprawidłowa opcja: oczekiwano jednej z wartości ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`Za duża wartość: oczekiwano, że ${t.origin??"wartość"} będzie mieć ${c}${t.maximum.toString()} ${g.unit??"elementów"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${t.origin??"wartość"} będzie wynosić ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`Za mała wartość: oczekiwano, że ${t.origin??"wartość"} będzie mieć ${c}${t.minimum.toString()} ${g.unit??"elementów"}`;return`Zbyt mał(y/a/e): oczekiwano, że ${t.origin??"wartość"} będzie wynosić ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`Nieprawidłowy ciąg znaków: musi zaczynać się od "${c.prefix}"`;if(c.format==="ends_with")return`Nieprawidłowy ciąg znaków: musi kończyć się na "${c.suffix}"`;if(c.format==="includes")return`Nieprawidłowy ciąg znaków: musi zawierać "${c.includes}"`;if(c.format==="regex")return`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${c.pattern}`;return`Nieprawidłow(y/a/e) ${u[c.format]??t.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${G(t.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${t.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${t.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function Ul(){return{localeError:SJ()}}var AJ=()=>{let i={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"número";case"object":{if(Array.isArray(t))return"array";if(t===null)return"nulo";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return(t)=>{switch(t.code){case"invalid_type":return`Tipo inválido: esperado ${t.expected}, recebido ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Entrada inválida: esperado ${A(t.values[0])}`;return`Opção inválida: esperada uma das ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`Muito grande: esperado que ${t.origin??"valor"} tivesse ${c}${t.maximum.toString()} ${g.unit??"elementos"}`;return`Muito grande: esperado que ${t.origin??"valor"} fosse ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`Muito pequeno: esperado que ${t.origin} tivesse ${c}${t.minimum.toString()} ${g.unit}`;return`Muito pequeno: esperado que ${t.origin} fosse ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`Texto inválido: deve começar com "${c.prefix}"`;if(c.format==="ends_with")return`Texto inválido: deve terminar com "${c.suffix}"`;if(c.format==="includes")return`Texto inválido: deve incluir "${c.includes}"`;if(c.format==="regex")return`Texto inválido: deve corresponder ao padrão ${c.pattern}`;return`${u[c.format]??t.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${G(t.keys,", ")}`;case"invalid_key":return`Chave inválida em ${t.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${t.origin}`;default:return"Campo inválido"}}};function Nl(){return{localeError:AJ()}}function t4(i,n,r,u){let t=Math.abs(i),c=t%10,g=t%100;if(g>=11&&g<=19)return u;if(c===1)return n;if(c>=2&&c<=4)return r;return u}var BJ=()=>{let i={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"число";case"object":{if(Array.isArray(t))return"массив";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"};return(t)=>{switch(t.code){case"invalid_type":return`Неверный ввод: ожидалось ${t.expected}, получено ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Неверный ввод: ожидалось ${A(t.values[0])}`;return`Неверный вариант: ожидалось одно из ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g){let h=Number(t.maximum),_=t4(h,g.unit.one,g.unit.few,g.unit.many);return`Слишком большое значение: ожидалось, что ${t.origin??"значение"} будет иметь ${c}${t.maximum.toString()} ${_}`}return`Слишком большое значение: ожидалось, что ${t.origin??"значение"} будет ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g){let h=Number(t.minimum),_=t4(h,g.unit.one,g.unit.few,g.unit.many);return`Слишком маленькое значение: ожидалось, что ${t.origin} будет иметь ${c}${t.minimum.toString()} ${_}`}return`Слишком маленькое значение: ожидалось, что ${t.origin} будет ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`Неверная строка: должна начинаться с "${c.prefix}"`;if(c.format==="ends_with")return`Неверная строка: должна заканчиваться на "${c.suffix}"`;if(c.format==="includes")return`Неверная строка: должна содержать "${c.includes}"`;if(c.format==="regex")return`Неверная строка: должна соответствовать шаблону ${c.pattern}`;return`Неверный ${u[c.format]??t.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${t.divisor}`;case"unrecognized_keys":return`Нераспознанн${t.keys.length>1?"ые":"ый"} ключ${t.keys.length>1?"и":""}: ${G(t.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${t.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${t.origin}`;default:return"Неверные входные данные"}}};function zl(){return{localeError:BJ()}}var KJ=()=>{let i={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"število";case"object":{if(Array.isArray(t))return"tabela";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"};return(t)=>{switch(t.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${t.expected}, prejeto ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Neveljaven vnos: pričakovano ${A(t.values[0])}`;return`Neveljavna možnost: pričakovano eno izmed ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`Preveliko: pričakovano, da bo ${t.origin??"vrednost"} imelo ${c}${t.maximum.toString()} ${g.unit??"elementov"}`;return`Preveliko: pričakovano, da bo ${t.origin??"vrednost"} ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`Premajhno: pričakovano, da bo ${t.origin} imelo ${c}${t.minimum.toString()} ${g.unit}`;return`Premajhno: pričakovano, da bo ${t.origin} ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`Neveljaven niz: mora se začeti z "${c.prefix}"`;if(c.format==="ends_with")return`Neveljaven niz: mora se končati z "${c.suffix}"`;if(c.format==="includes")return`Neveljaven niz: mora vsebovati "${c.includes}"`;if(c.format==="regex")return`Neveljaven niz: mora ustrezati vzorcu ${c.pattern}`;return`Neveljaven ${u[c.format]??t.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i ključi":" ključ"}: ${G(t.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}};function Wl(){return{localeError:KJ()}}var VJ=()=>{let i={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"antal";case"object":{if(Array.isArray(t))return"lista";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return(t)=>{switch(t.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${t.expected}, fick ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Ogiltig inmatning: förväntat ${A(t.values[0])}`;return`Ogiltigt val: förväntade en av ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`För stor(t): förväntade ${t.origin??"värdet"} att ha ${c}${t.maximum.toString()} ${g.unit??"element"}`;return`För stor(t): förväntat ${t.origin??"värdet"} att ha ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`För lite(t): förväntade ${t.origin??"värdet"} att ha ${c}${t.minimum.toString()} ${g.unit}`;return`För lite(t): förväntade ${t.origin??"värdet"} att ha ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`Ogiltig sträng: måste börja med "${c.prefix}"`;if(c.format==="ends_with")return`Ogiltig sträng: måste sluta med "${c.suffix}"`;if(c.format==="includes")return`Ogiltig sträng: måste innehålla "${c.includes}"`;if(c.format==="regex")return`Ogiltig sträng: måste matcha mönstret "${c.pattern}"`;return`Ogiltig(t) ${u[c.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${G(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${t.origin??"värdet"}`;default:return"Ogiltig input"}}};function Dl(){return{localeError:VJ()}}var MJ=()=>{let i={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(t))return"அணி";if(t===null)return"வெறுமை";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"};return(t)=>{switch(t.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t.expected}, பெறப்பட்டது ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${A(t.values[0])}`;return`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${G(t.values,"|")} இல் ஒன்று`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin??"மதிப்பு"} ${c}${t.maximum.toString()} ${g.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`;return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin??"மதிப்பு"} ${c}${t.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${c}${t.minimum.toString()} ${g.unit} ஆக இருக்க வேண்டும்`;return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${c}${t.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`தவறான சரம்: "${c.prefix}" இல் தொடங்க வேண்டும்`;if(c.format==="ends_with")return`தவறான சரம்: "${c.suffix}" இல் முடிவடைய வேண்டும்`;if(c.format==="includes")return`தவறான சரம்: "${c.includes}" ஐ உள்ளடக்க வேண்டும்`;if(c.format==="regex")return`தவறான சரம்: ${c.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;return`தவறான ${u[c.format]??t.format}`}case"not_multiple_of":return`தவறான எண்: ${t.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${t.keys.length>1?"கள்":""}: ${G(t.keys,", ")}`;case"invalid_key":return`${t.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${t.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function Jl(){return{localeError:MJ()}}var xJ=()=>{let i={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":{if(Array.isArray(t))return"อาร์เรย์ (Array)";if(t===null)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"};return(t)=>{switch(t.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t.expected} แต่ได้รับ ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`ค่าไม่ถูกต้อง: ควรเป็น ${A(t.values[0])}`;return`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"ไม่เกิน":"น้อยกว่า",g=n(t.origin);if(g)return`เกินกำหนด: ${t.origin??"ค่า"} ควรมี${c} ${t.maximum.toString()} ${g.unit??"รายการ"}`;return`เกินกำหนด: ${t.origin??"ค่า"} ควรมี${c} ${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?"อย่างน้อย":"มากกว่า",g=n(t.origin);if(g)return`น้อยกว่ากำหนด: ${t.origin} ควรมี${c} ${t.minimum.toString()} ${g.unit}`;return`น้อยกว่ากำหนด: ${t.origin} ควรมี${c} ${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${c.prefix}"`;if(c.format==="ends_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${c.suffix}"`;if(c.format==="includes")return`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${c.includes}" อยู่ในข้อความ`;if(c.format==="regex")return`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${c.pattern}`;return`รูปแบบไม่ถูกต้อง: ${u[c.format]??t.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${t.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${G(t.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${t.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${t.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function El(){return{localeError:xJ()}}var FJ=(i)=>{let n=typeof i;switch(n){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return n},PJ=()=>{let i={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function n(u){return i[u]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"};return(u)=>{switch(u.code){case"invalid_type":return`Geçersiz değer: beklenen ${u.expected}, alınan ${FJ(u.input)}`;case"invalid_value":if(u.values.length===1)return`Geçersiz değer: beklenen ${A(u.values[0])}`;return`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${G(u.values,"|")}`;case"too_big":{let t=u.inclusive?"<=":"<",c=n(u.origin);if(c)return`Çok büyük: beklenen ${u.origin??"değer"} ${t}${u.maximum.toString()} ${c.unit??"öğe"}`;return`Çok büyük: beklenen ${u.origin??"değer"} ${t}${u.maximum.toString()}`}case"too_small":{let t=u.inclusive?">=":">",c=n(u.origin);if(c)return`Çok küçük: beklenen ${u.origin} ${t}${u.minimum.toString()} ${c.unit}`;return`Çok küçük: beklenen ${u.origin} ${t}${u.minimum.toString()}`}case"invalid_format":{let t=u;if(t.format==="starts_with")return`Geçersiz metin: "${t.prefix}" ile başlamalı`;if(t.format==="ends_with")return`Geçersiz metin: "${t.suffix}" ile bitmeli`;if(t.format==="includes")return`Geçersiz metin: "${t.includes}" içermeli`;if(t.format==="regex")return`Geçersiz metin: ${t.pattern} desenine uymalı`;return`Geçersiz ${r[t.format]??u.format}`}case"not_multiple_of":return`Geçersiz sayı: ${u.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${u.keys.length>1?"lar":""}: ${G(u.keys,", ")}`;case"invalid_key":return`${u.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${u.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function Hl(){return{localeError:PJ()}}var yJ=()=>{let i={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"число";case"object":{if(Array.isArray(t))return"масив";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"};return(t)=>{switch(t.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${t.expected}, отримано ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Неправильні вхідні дані: очікується ${A(t.values[0])}`;return`Неправильна опція: очікується одне з ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`Занадто велике: очікується, що ${t.origin??"значення"} ${g.verb} ${c}${t.maximum.toString()} ${g.unit??"елементів"}`;return`Занадто велике: очікується, що ${t.origin??"значення"} буде ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`Занадто мале: очікується, що ${t.origin} ${g.verb} ${c}${t.minimum.toString()} ${g.unit}`;return`Занадто мале: очікується, що ${t.origin} буде ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`Неправильний рядок: повинен починатися з "${c.prefix}"`;if(c.format==="ends_with")return`Неправильний рядок: повинен закінчуватися на "${c.suffix}"`;if(c.format==="includes")return`Неправильний рядок: повинен містити "${c.includes}"`;if(c.format==="regex")return`Неправильний рядок: повинен відповідати шаблону ${c.pattern}`;return`Неправильний ${u[c.format]??t.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${t.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${t.keys.length>1?"і":""}: ${G(t.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${t.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${t.origin}`;default:return"Неправильні вхідні дані"}}};function Gl(){return{localeError:yJ()}}var TJ=()=>{let i={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"نمبر";case"object":{if(Array.isArray(t))return"آرے";if(t===null)return"نل";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"};return(t)=>{switch(t.code){case"invalid_type":return`غلط ان پٹ: ${t.expected} متوقع تھا، ${r(t.input)} موصول ہوا`;case"invalid_value":if(t.values.length===1)return`غلط ان پٹ: ${A(t.values[0])} متوقع تھا`;return`غلط آپشن: ${G(t.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`بہت بڑا: ${t.origin??"ویلیو"} کے ${c}${t.maximum.toString()} ${g.unit??"عناصر"} ہونے متوقع تھے`;return`بہت بڑا: ${t.origin??"ویلیو"} کا ${c}${t.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`بہت چھوٹا: ${t.origin} کے ${c}${t.minimum.toString()} ${g.unit} ہونے متوقع تھے`;return`بہت چھوٹا: ${t.origin} کا ${c}${t.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`غلط سٹرنگ: "${c.prefix}" سے شروع ہونا چاہیے`;if(c.format==="ends_with")return`غلط سٹرنگ: "${c.suffix}" پر ختم ہونا چاہیے`;if(c.format==="includes")return`غلط سٹرنگ: "${c.includes}" شامل ہونا چاہیے`;if(c.format==="regex")return`غلط سٹرنگ: پیٹرن ${c.pattern} سے میچ ہونا چاہیے`;return`غلط ${u[c.format]??t.format}`}case"not_multiple_of":return`غلط نمبر: ${t.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${t.keys.length>1?"ز":""}: ${G(t.keys,"، ")}`;case"invalid_key":return`${t.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${t.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function ql(){return{localeError:TJ()}}var kJ=()=>{let i={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"số";case"object":{if(Array.isArray(t))return"mảng";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"};return(t)=>{switch(t.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${t.expected}, nhận được ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`Đầu vào không hợp lệ: mong đợi ${A(t.values[0])}`;return`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`Quá lớn: mong đợi ${t.origin??"giá trị"} ${g.verb} ${c}${t.maximum.toString()} ${g.unit??"phần tử"}`;return`Quá lớn: mong đợi ${t.origin??"giá trị"} ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`Quá nhỏ: mong đợi ${t.origin} ${g.verb} ${c}${t.minimum.toString()} ${g.unit}`;return`Quá nhỏ: mong đợi ${t.origin} ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`Chuỗi không hợp lệ: phải bắt đầu bằng "${c.prefix}"`;if(c.format==="ends_with")return`Chuỗi không hợp lệ: phải kết thúc bằng "${c.suffix}"`;if(c.format==="includes")return`Chuỗi không hợp lệ: phải bao gồm "${c.includes}"`;if(c.format==="regex")return`Chuỗi không hợp lệ: phải khớp với mẫu ${c.pattern}`;return`${u[c.format]??t.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${t.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${G(t.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${t.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${t.origin}`;default:return"Đầu vào không hợp lệ"}}};function Xl(){return{localeError:kJ()}}var CJ=()=>{let i={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(t))return"数组";if(t===null)return"空值(null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"};return(t)=>{switch(t.code){case"invalid_type":return`无效输入:期望 ${t.expected},实际接收 ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`无效输入:期望 ${A(t.values[0])}`;return`无效选项:期望以下之一 ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`数值过大:期望 ${t.origin??"值"} ${c}${t.maximum.toString()} ${g.unit??"个元素"}`;return`数值过大:期望 ${t.origin??"值"} ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`数值过小:期望 ${t.origin} ${c}${t.minimum.toString()} ${g.unit}`;return`数值过小:期望 ${t.origin} ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`无效字符串:必须以 "${c.prefix}" 开头`;if(c.format==="ends_with")return`无效字符串:必须以 "${c.suffix}" 结尾`;if(c.format==="includes")return`无效字符串:必须包含 "${c.includes}"`;if(c.format==="regex")return`无效字符串:必须满足正则表达式 ${c.pattern}`;return`无效${u[c.format]??t.format}`}case"not_multiple_of":return`无效数字:必须是 ${t.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${G(t.keys,", ")}`;case"invalid_key":return`${t.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${t.origin} 中包含无效值(value)`;default:return"无效输入"}}};function Ll(){return{localeError:CJ()}}var RJ=()=>{let i={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function n(t){return i[t]??null}let r=(t)=>{let c=typeof t;switch(c){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return c},u={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"};return(t)=>{switch(t.code){case"invalid_type":return`無效的輸入值:預期為 ${t.expected},但收到 ${r(t.input)}`;case"invalid_value":if(t.values.length===1)return`無效的輸入值:預期為 ${A(t.values[0])}`;return`無效的選項:預期為以下其中之一 ${G(t.values,"|")}`;case"too_big":{let c=t.inclusive?"<=":"<",g=n(t.origin);if(g)return`數值過大:預期 ${t.origin??"值"} 應為 ${c}${t.maximum.toString()} ${g.unit??"個元素"}`;return`數值過大:預期 ${t.origin??"值"} 應為 ${c}${t.maximum.toString()}`}case"too_small":{let c=t.inclusive?">=":">",g=n(t.origin);if(g)return`數值過小:預期 ${t.origin} 應為 ${c}${t.minimum.toString()} ${g.unit}`;return`數值過小:預期 ${t.origin} 應為 ${c}${t.minimum.toString()}`}case"invalid_format":{let c=t;if(c.format==="starts_with")return`無效的字串:必須以 "${c.prefix}" 開頭`;if(c.format==="ends_with")return`無效的字串:必須以 "${c.suffix}" 結尾`;if(c.format==="includes")return`無效的字串:必須包含 "${c.includes}"`;if(c.format==="regex")return`無效的字串:必須符合格式 ${c.pattern}`;return`無效的 ${u[c.format]??t.format}`}case"not_multiple_of":return`無效的數字:必須為 ${t.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${t.keys.length>1?"們":""}:${G(t.keys,"、")}`;case"invalid_key":return`${t.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${t.origin} 中有無效的值`;default:return"無效的輸入值"}}};function Il(){return{localeError:RJ()}}var Yl=Symbol("ZodOutput"),Ql=Symbol("ZodInput");class Jr{constructor(){this._map=new WeakMap,this._idmap=new Map}add(i,...n){let r=n[0];if(this._map.set(i,r),r&&typeof r==="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,i)}return this}remove(i){return this._map.delete(i),this}get(i){let n=i._zod.parent;if(n){let r={...this.get(n)??{}};return delete r.id,{...r,...this._map.get(i)}}return this._map.get(i)}has(i){return this._map.has(i)}}function Oc(){return new Jr}var rn=Oc();function ml(i,n){return new i({type:"string",...I(n)})}function Sl(i,n){return new i({type:"string",coerce:!0,...I(n)})}function jc(i,n){return new i({type:"string",format:"email",check:"string_format",abort:!1,...I(n)})}function Er(i,n){return new i({type:"string",format:"guid",check:"string_format",abort:!1,...I(n)})}function Uc(i,n){return new i({type:"string",format:"uuid",check:"string_format",abort:!1,...I(n)})}function Nc(i,n){return new i({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...I(n)})}function zc(i,n){return new i({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...I(n)})}function Wc(i,n){return new i({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...I(n)})}function Dc(i,n){return new i({type:"string",format:"url",check:"string_format",abort:!1,...I(n)})}function Jc(i,n){return new i({type:"string",format:"emoji",check:"string_format",abort:!1,...I(n)})}function Ec(i,n){return new i({type:"string",format:"nanoid",check:"string_format",abort:!1,...I(n)})}function Hc(i,n){return new i({type:"string",format:"cuid",check:"string_format",abort:!1,...I(n)})}function Gc(i,n){return new i({type:"string",format:"cuid2",check:"string_format",abort:!1,...I(n)})}function qc(i,n){return new i({type:"string",format:"ulid",check:"string_format",abort:!1,...I(n)})}function Xc(i,n){return new i({type:"string",format:"xid",check:"string_format",abort:!1,...I(n)})}function Lc(i,n){return new i({type:"string",format:"ksuid",check:"string_format",abort:!1,...I(n)})}function Ic(i,n){return new i({type:"string",format:"ipv4",check:"string_format",abort:!1,...I(n)})}function Yc(i,n){return new i({type:"string",format:"ipv6",check:"string_format",abort:!1,...I(n)})}function Qc(i,n){return new i({type:"string",format:"cidrv4",check:"string_format",abort:!1,...I(n)})}function mc(i,n){return new i({type:"string",format:"cidrv6",check:"string_format",abort:!1,...I(n)})}function Sc(i,n){return new i({type:"string",format:"base64",check:"string_format",abort:!1,...I(n)})}function Ac(i,n){return new i({type:"string",format:"base64url",check:"string_format",abort:!1,...I(n)})}function Bc(i,n){return new i({type:"string",format:"e164",check:"string_format",abort:!1,...I(n)})}function Kc(i,n){return new i({type:"string",format:"jwt",check:"string_format",abort:!1,...I(n)})}function Al(i,n){return new i({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...I(n)})}function Bl(i,n){return new i({type:"string",format:"date",check:"string_format",...I(n)})}function Kl(i,n){return new i({type:"string",format:"time",check:"string_format",precision:null,...I(n)})}function Vl(i,n){return new i({type:"string",format:"duration",check:"string_format",...I(n)})}function Ml(i,n){return new i({type:"number",checks:[],...I(n)})}function xl(i,n){return new i({type:"number",coerce:!0,checks:[],...I(n)})}function Fl(i,n){return new i({type:"number",check:"number_format",abort:!1,format:"safeint",...I(n)})}function Pl(i,n){return new i({type:"number",check:"number_format",abort:!1,format:"float32",...I(n)})}function yl(i,n){return new i({type:"number",check:"number_format",abort:!1,format:"float64",...I(n)})}function Tl(i,n){return new i({type:"number",check:"number_format",abort:!1,format:"int32",...I(n)})}function kl(i,n){return new i({type:"number",check:"number_format",abort:!1,format:"uint32",...I(n)})}function Cl(i,n){return new i({type:"boolean",...I(n)})}function Rl(i,n){return new i({type:"boolean",coerce:!0,...I(n)})}function Zl(i,n){return new i({type:"bigint",...I(n)})}function el(i,n){return new i({type:"bigint",coerce:!0,...I(n)})}function pl(i,n){return new i({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...I(n)})}function dl(i,n){return new i({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...I(n)})}function al(i,n){return new i({type:"symbol",...I(n)})}function sl(i,n){return new i({type:"undefined",...I(n)})}function i$(i,n){return new i({type:"null",...I(n)})}function n$(i){return new i({type:"any"})}function Gt(i){return new i({type:"unknown"})}function t$(i,n){return new i({type:"never",...I(n)})}function r$(i,n){return new i({type:"void",...I(n)})}function u$(i,n){return new i({type:"date",...I(n)})}function c$(i,n){return new i({type:"date",coerce:!0,...I(n)})}function o$(i,n){return new i({type:"nan",...I(n)})}function On(i,n){return new hc({check:"less_than",...I(n),value:i,inclusive:!1})}function Fi(i,n){return new hc({check:"less_than",...I(n),value:i,inclusive:!0})}function jn(i,n){return new _c({check:"greater_than",...I(n),value:i,inclusive:!1})}function Yi(i,n){return new _c({check:"greater_than",...I(n),value:i,inclusive:!0})}function g$(i){return jn(0,i)}function h$(i){return On(0,i)}function _$(i){return Fi(0,i)}function l$(i){return Yi(0,i)}function ct(i,n){return new qh({check:"multiple_of",...I(n),value:i})}function qt(i,n){return new Ih({check:"max_size",...I(n),maximum:i})}function ot(i,n){return new Yh({check:"min_size",...I(n),minimum:i})}function Hr(i,n){return new Qh({check:"size_equals",...I(n),size:i})}function Xt(i,n){return new mh({check:"max_length",...I(n),maximum:i})}function Vn(i,n){return new Sh({check:"min_length",...I(n),minimum:i})}function Lt(i,n){return new Ah({check:"length_equals",...I(n),length:i})}function Gr(i,n){return new Bh({check:"string_format",format:"regex",...I(n),pattern:i})}function qr(i){return new Kh({check:"string_format",format:"lowercase",...I(i)})}function Xr(i){return new Vh({check:"string_format",format:"uppercase",...I(i)})}function Lr(i,n){return new Mh({check:"string_format",format:"includes",...I(n),includes:i})}function Ir(i,n){return new xh({check:"string_format",format:"starts_with",...I(n),prefix:i})}function Yr(i,n){return new Fh({check:"string_format",format:"ends_with",...I(n),suffix:i})}function $$(i,n,r){return new Ph({check:"property",property:i,schema:n,...I(r)})}function Qr(i,n){return new yh({check:"mime_type",mime:i,...I(n)})}function Un(i){return new Th({check:"overwrite",tx:i})}function mr(i){return Un((n)=>n.normalize(i))}function Sr(){return Un((i)=>i.trim())}function Ar(){return Un((i)=>i.toLowerCase())}function Br(){return Un((i)=>i.toUpperCase())}function Kr(i,n,r){return new i({type:"array",element:n,...I(r)})}function ZJ(i,n,r){return new i({type:"union",options:n,...I(r)})}function eJ(i,n,r,u){return new i({type:"union",options:r,discriminator:n,...I(u)})}function pJ(i,n,r){return new i({type:"intersection",left:n,right:r})}function w$(i,n,r,u){let t=r instanceof y;return new i({type:"tuple",items:n,rest:t?r:null,...I(t?u:r)})}function dJ(i,n,r,u){return new i({type:"record",keyType:n,valueType:r,...I(u)})}function aJ(i,n,r,u){return new i({type:"map",keyType:n,valueType:r,...I(u)})}function sJ(i,n,r){return new i({type:"set",valueType:n,...I(r)})}function iE(i,n,r){let u=Array.isArray(n)?Object.fromEntries(n.map((t)=>[t,t])):n;return new i({type:"enum",entries:u,...I(r)})}function nE(i,n,r){return new i({type:"enum",entries:n,...I(r)})}function tE(i,n,r){return new i({type:"literal",values:Array.isArray(n)?n:[n],...I(r)})}function b$(i,n){return new i({type:"file",...I(n)})}function rE(i,n){return new i({type:"transform",transform:n})}function uE(i,n){return new i({type:"optional",innerType:n})}function cE(i,n){return new i({type:"nullable",innerType:n})}function oE(i,n,r){return new i({type:"default",innerType:n,get defaultValue(){return typeof r==="function"?r():r}})}function gE(i,n,r){return new i({type:"nonoptional",innerType:n,...I(r)})}function hE(i,n){return new i({type:"success",innerType:n})}function _E(i,n,r){return new i({type:"catch",innerType:n,catchValue:typeof r==="function"?r:()=>r})}function lE(i,n,r){return new i({type:"pipe",in:n,out:r})}function $E(i,n){return new i({type:"readonly",innerType:n})}function wE(i,n,r){return new i({type:"template_literal",parts:n,...I(r)})}function bE(i,n){return new i({type:"lazy",getter:n})}function vE(i,n){return new i({type:"promise",innerType:n})}function v$(i,n,r){let u=I(r);return u.abort??(u.abort=!0),new i({type:"custom",check:"custom",fn:n,...u})}function f$(i,n,r){return new i({type:"custom",check:"custom",fn:n,...I(r)})}function O$(i,n){let{case:r,error:u,truthy:t,falsy:c}=I(n),g=new Set(t??["true","1","yes","on","y","enabled"]),h=new Set(c??["false","0","no","off","n","disabled"]),_=i.Pipe??zr,l=i.Boolean??Ur,w=new(i.Unknown??Kn)({type:"unknown",checks:[{_zod:{check:(b)=>{if(typeof b.value==="string"){let v=b.value;if(r!=="sensitive")v=v.toLowerCase();if(g.has(v))b.value=!0;else if(h.has(v))b.value=!1;else b.issues.push({code:"invalid_value",expected:"stringbool",values:[...g,...h],input:b.value,inst:w})}else b.issues.push({code:"invalid_type",expected:"string",input:b.value})},def:{check:"custom"},onattach:[]}}],error:u});return new _({type:"pipe",in:w,out:new l({type:"boolean",error:u}),error:u})}class j${constructor(i){this._def=i,this.def=i}implement(i){if(typeof i!=="function")throw new Error("implement() must be called with a function");let n=(...r)=>{let u=this._def.input?tc(this._def.input,r,void 0,{callee:n}):r;if(!Array.isArray(u))throw new Error("Invalid arguments schema: not an array or tuple schema.");let t=i(...u);return this._def.output?tc(this._def.output,t,void 0,{callee:n}):t};return n}implementAsync(i){if(typeof i!=="function")throw new Error("implement() must be called with a function");let n=async(...r)=>{let u=this._def.input?await uc(this._def.input,r,void 0,{callee:n}):r;if(!Array.isArray(u))throw new Error("Invalid arguments schema: not an array or tuple schema.");let t=await i(...u);return this._def.output?uc(this._def.output,t,void 0,{callee:n}):t};return n}input(...i){let n=this.constructor;if(Array.isArray(i[0]))return new n({type:"function",input:new ut({type:"tuple",items:i[0],rest:i[1]}),output:this._def.output});return new n({type:"function",input:i[0],output:this._def.output})}output(i){return new this.constructor({type:"function",input:this._def.input,output:i})}}function U$(i){return new j$({type:"function",input:Array.isArray(i?.input)?w$(ut,i?.input):i?.input??Kr(Nr,Gt(Kn)),output:i?.output??Gt(Kn)})}class Vc{constructor(i){this.counter=0,this.metadataRegistry=i?.metadata??rn,this.target=i?.target??"draft-2020-12",this.unrepresentable=i?.unrepresentable??"throw",this.override=i?.override??(()=>{}),this.io=i?.io??"output",this.seen=new Map}process(i,n={path:[],schemaPath:[]}){var r;let u=i._zod.def,t={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},c=this.seen.get(i);if(c){if(c.count++,n.schemaPath.includes(i))c.cycle=n.path;return c.schema}let g={schema:{},count:1,cycle:void 0};if(this.seen.set(i,g),i._zod.toJSONSchema)g.schema=i._zod.toJSONSchema();let h={...n,schemaPath:[...n.schemaPath,i],path:n.path},_=i._zod.parent;if(_)g.ref=_,this.process(_,h),this.seen.get(_).isParent=!0;else{let w=g.schema;switch(u.type){case"string":{let b=w;b.type="string";let{minimum:v,maximum:f,format:U,patterns:z,contentEncoding:J}=i._zod.bag;if(typeof v==="number")b.minLength=v;if(typeof f==="number")b.maxLength=f;if(U){if(b.format=t[U]??U,b.format==="")delete b.format}if(J)b.contentEncoding=J;if(z&&z.size>0){let N=[...z];if(N.length===1)b.pattern=N[0].source;else if(N.length>1)g.schema.allOf=[...N.map((j)=>({...this.target==="draft-7"?{type:"string"}:{},pattern:j.source}))]}break}case"number":{let b=w,{minimum:v,maximum:f,format:U,multipleOf:z,exclusiveMaximum:J,exclusiveMinimum:N}=i._zod.bag;if(typeof U==="string"&&U.includes("int"))b.type="integer";else b.type="number";if(typeof N==="number")b.exclusiveMinimum=N;if(typeof v==="number"){if(b.minimum=v,typeof N==="number")if(N>=v)delete b.minimum;else delete b.exclusiveMinimum}if(typeof J==="number")b.exclusiveMaximum=J;if(typeof f==="number"){if(b.maximum=f,typeof J==="number")if(J<=f)delete b.maximum;else delete b.exclusiveMaximum}if(typeof z==="number")b.multipleOf=z;break}case"boolean":{let b=w;b.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"undefined":{let b=w;b.type="null";break}case"null":{w.type="null";break}case"any":break;case"unknown":break;case"never":{w.not={};break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{let b=w,{minimum:v,maximum:f}=i._zod.bag;if(typeof v==="number")b.minItems=v;if(typeof f==="number")b.maxItems=f;b.type="array",b.items=this.process(u.element,{...h,path:[...h.path,"items"]});break}case"object":{let b=w;b.type="object",b.properties={};let v=u.shape;for(let z in v)b.properties[z]=this.process(v[z],{...h,path:[...h.path,"properties",z]});let f=new Set(Object.keys(v)),U=new Set([...f].filter((z)=>{let J=u.shape[z]._zod;if(this.io==="input")return J.optin===void 0;else return J.optout===void 0}));if(U.size>0)b.required=Array.from(U);if(u.catchall?._zod.def.type==="never")b.additionalProperties=!1;else if(!u.catchall){if(this.io==="output")b.additionalProperties=!1}else if(u.catchall)b.additionalProperties=this.process(u.catchall,{...h,path:[...h.path,"additionalProperties"]});break}case"union":{let b=w;b.anyOf=u.options.map((v,f)=>this.process(v,{...h,path:[...h.path,"anyOf",f]}));break}case"intersection":{let b=w,v=this.process(u.left,{...h,path:[...h.path,"allOf",0]}),f=this.process(u.right,{...h,path:[...h.path,"allOf",1]}),U=(J)=>("allOf"in J)&&Object.keys(J).length===1,z=[...U(v)?v.allOf:[v],...U(f)?f.allOf:[f]];b.allOf=z;break}case"tuple":{let b=w;b.type="array";let v=u.items.map((z,J)=>this.process(z,{...h,path:[...h.path,"prefixItems",J]}));if(this.target==="draft-2020-12")b.prefixItems=v;else b.items=v;if(u.rest){let z=this.process(u.rest,{...h,path:[...h.path,"items"]});if(this.target==="draft-2020-12")b.items=z;else b.additionalItems=z}if(u.rest)b.items=this.process(u.rest,{...h,path:[...h.path,"items"]});let{minimum:f,maximum:U}=i._zod.bag;if(typeof f==="number")b.minItems=f;if(typeof U==="number")b.maxItems=U;break}case"record":{let b=w;b.type="object",b.propertyNames=this.process(u.keyType,{...h,path:[...h.path,"propertyNames"]}),b.additionalProperties=this.process(u.valueType,{...h,path:[...h.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{let b=w,v=gr(u.entries);if(v.every((f)=>typeof f==="number"))b.type="number";if(v.every((f)=>typeof f==="string"))b.type="string";b.enum=v;break}case"literal":{let b=w,v=[];for(let f of u.values)if(f===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof f==="bigint")if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");else v.push(Number(f));else v.push(f);if(v.length===0);else if(v.length===1){let f=v[0];b.type=f===null?"null":typeof f,b.const=f}else{if(v.every((f)=>typeof f==="number"))b.type="number";if(v.every((f)=>typeof f==="string"))b.type="string";if(v.every((f)=>typeof f==="boolean"))b.type="string";if(v.every((f)=>f===null))b.type="null";b.enum=v}break}case"file":{let b=w,v={type:"string",format:"binary",contentEncoding:"binary"},{minimum:f,maximum:U,mime:z}=i._zod.bag;if(f!==void 0)v.minLength=f;if(U!==void 0)v.maxLength=U;if(z)if(z.length===1)v.contentMediaType=z[0],Object.assign(b,v);else b.anyOf=z.map((J)=>{return{...v,contentMediaType:J}});else Object.assign(b,v);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let b=this.process(u.innerType,h);w.anyOf=[b,{type:"null"}];break}case"nonoptional":{this.process(u.innerType,h),g.ref=u.innerType;break}case"success":{let b=w;b.type="boolean";break}case"default":{this.process(u.innerType,h),g.ref=u.innerType,w.default=u.defaultValue;break}case"prefault":{if(this.process(u.innerType,h),g.ref=u.innerType,this.io==="input")w._prefault=u.defaultValue;break}case"catch":{this.process(u.innerType,h),g.ref=u.innerType;let b;try{b=u.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}w.default=b;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let b=w,v=i._zod.pattern;if(!v)throw new Error("Pattern not found in template literal");b.type="string",b.pattern=v.source;break}case"pipe":{let b=this.io==="input"?u.in._zod.def.type==="transform"?u.out:u.in:u.out;this.process(b,h),g.ref=b;break}case"readonly":{this.process(u.innerType,h),g.ref=u.innerType,w.readOnly=!0;break}case"promise":{this.process(u.innerType,h),g.ref=u.innerType;break}case"optional":{this.process(u.innerType,h),g.ref=u.innerType;break}case"lazy":{let b=i._zod.innerType;this.process(b,h),g.ref=b;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}default:}}let l=this.metadataRegistry.get(i);if(l)Object.assign(g.schema,l);if(this.io==="input"&&vi(i))delete g.schema.examples,delete g.schema.default;if(this.io==="input"&&g.schema._prefault)(r=g.schema).default??(r.default=g.schema._prefault);return delete g.schema._prefault,this.seen.get(i).schema}emit(i,n){let r={cycles:n?.cycles??"ref",reused:n?.reused??"inline",external:n?.external??void 0},u=this.seen.get(i);if(!u)throw new Error("Unprocessed schema. This is a bug in Zod.");let t=(l)=>{let $=this.target==="draft-2020-12"?"$defs":"definitions";if(r.external){let f=r.external.registry.get(l[0])?.id;if(f)return{ref:r.external.uri(f)};let U=l[1].defId??l[1].schema.id??`schema${this.counter++}`;return l[1].defId=U,{defId:U,ref:`${r.external.uri("__shared")}#/${$}/${U}`}}if(l[1]===u)return{ref:"#"};let b=`${"#"}/${$}/`,v=l[1].schema.id??`__schema${this.counter++}`;return{defId:v,ref:b+v}},c=(l)=>{if(l[1].schema.$ref)return;let $=l[1],{ref:w,defId:b}=t(l);if($.def={...$.schema},b)$.defId=b;let v=$.schema;for(let f in v)delete v[f];v.$ref=w};for(let l of this.seen.entries()){let $=l[1];if(i===l[0]){c(l);continue}if(r.external){let b=r.external.registry.get(l[0])?.id;if(i!==l[0]&&b){c(l);continue}}if(this.metadataRegistry.get(l[0])?.id){c(l);continue}if($.cycle){if(r.cycles==="throw")throw new Error(`Cycle detected: #/${$.cycle?.join("/")}/\n\nSet the \\`cycles\\` parameter to \\`"ref"\\` to resolve cyclical schemas with defs.`);else if(r.cycles==="ref")c(l);continue}if($.count>1){if(r.reused==="ref"){c(l);continue}}}let g=(l,$)=>{let w=this.seen.get(l),b=w.def??w.schema,v={...b};if(w.ref===null)return;let f=w.ref;if(w.ref=null,f){g(f,$);let U=this.seen.get(f).schema;if(U.$ref&&$.target==="draft-7")b.allOf=b.allOf??[],b.allOf.push(U);else Object.assign(b,U),Object.assign(b,v)}if(!w.isParent)this.override({zodSchema:l,jsonSchema:b})};for(let l of[...this.seen.entries()].reverse())g(l[0],{target:this.target});let h={};if(this.target==="draft-2020-12")h.$schema="https://json-schema.org/draft/2020-12/schema";else if(this.target==="draft-7")h.$schema="http://json-schema.org/draft-07/schema#";else console.warn(`Invalid target: ${this.target}`);Object.assign(h,u.def);let _=r.external?.defs??{};for(let l of this.seen.entries()){let $=l[1];if($.def&&$.defId)_[$.defId]=$.def}if(!r.external&&Object.keys(_).length>0)if(this.target==="draft-2020-12")h.$defs=_;else h.definitions=_;try{return JSON.parse(JSON.stringify(h))}catch(l){throw new Error("Error converting schema to JSON.")}}}function Vr(i,n){if(i instanceof Jr){let u=new Vc(n),t={};for(let h of i._idmap.entries()){let[_,l]=h;u.process(l)}let c={},g={registry:i,uri:n?.uri||((h)=>h),defs:t};for(let h of i._idmap.entries()){let[_,l]=h;c[_]=u.emit(l,{...n,external:g})}if(Object.keys(t).length>0){let h=u.target==="draft-2020-12"?"$defs":"definitions";c.__shared={[h]:t}}return{schemas:c}}let r=new Vc(n);return r.process(i),r.emit(i,n)}function vi(i,n){let r=n??{seen:new Set};if(r.seen.has(i))return!1;r.seen.add(i);let t=i._zod.def;switch(t.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return vi(t.element,r);case"object":{for(let c in t.shape)if(vi(t.shape[c],r))return!0;return!1}case"union":{for(let c of t.options)if(vi(c,r))return!0;return!1}case"intersection":return vi(t.left,r)||vi(t.right,r);case"tuple":{for(let c of t.items)if(vi(c,r))return!0;if(t.rest&&vi(t.rest,r))return!0;return!1}case"record":return vi(t.keyType,r)||vi(t.valueType,r);case"map":return vi(t.keyType,r)||vi(t.valueType,r);case"set":return vi(t.valueType,r);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return vi(t.innerType,r);case"lazy":return vi(t.getter(),r);case"default":return vi(t.innerType,r);case"prefault":return vi(t.innerType,r);case"custom":return!1;case"transform":return!0;case"pipe":return vi(t.in,r)||vi(t.out,r);case"success":return!1;case"catch":return!1;default:}throw new Error(`Unknown schema type: ${t.type}`)}var r4={};var yc={};Xn(yc,{time:()=>W$,duration:()=>D$,datetime:()=>N$,date:()=>z$,ZodISOTime:()=>Fc,ZodISODuration:()=>Pc,ZodISODateTime:()=>Mc,ZodISODate:()=>xc});var Mc=D("ZodISODateTime",(i,n)=>{u_.init(i,n),ni.init(i,n)});function N$(i){return Al(Mc,i)}var xc=D("ZodISODate",(i,n)=>{c_.init(i,n),ni.init(i,n)});function z$(i){return Bl(xc,i)}var Fc=D("ZodISOTime",(i,n)=>{o_.init(i,n),ni.init(i,n)});function W$(i){return Kl(Fc,i)}var Pc=D("ZodISODuration",(i,n)=>{g_.init(i,n),ni.init(i,n)});function D$(i){return Vl(Pc,i)}var c4=(i,n)=>{vr.init(i,n),i.name="ZodError",Object.defineProperties(i,{format:{value:(r)=>Or(i,r)},flatten:{value:(r)=>fr(i,r)},addIssue:{value:(r)=>i.issues.push(r)},addIssues:{value:(r)=>i.issues.push(...r)},isEmpty:{get(){return i.issues.length===0}}})},OE=D("ZodError",c4),It=D("ZodError",c4,{Parent:Error});var J$=nc(It),E$=rc(It),H$=cc(It),Mr=oc(It);var C=D("ZodType",(i,n)=>{return y.init(i,n),i.def=n,Object.defineProperty(i,"_def",{value:n}),i.check=(...r)=>{return i.clone({...n,checks:[...n.checks??[],...r.map((u)=>typeof u==="function"?{_zod:{check:u,def:{check:"custom"},onattach:[]}}:u)]})},i.clone=(r,u)=>Si(i,r,u),i.brand=()=>i,i.register=(r,u)=>{return r.add(i,u),i},i.parse=(r,u)=>J$(i,r,u,{callee:i.parse}),i.safeParse=(r,u)=>H$(i,r,u),i.parseAsync=async(r,u)=>E$(i,r,u,{callee:i.parseAsync}),i.safeParseAsync=async(r,u)=>Mr(i,r,u),i.spa=i.safeParseAsync,i.refine=(r,u)=>i.check(k4(r,u)),i.superRefine=(r)=>i.check(C4(r)),i.overwrite=(r)=>i.check(Un(r)),i.optional=()=>Cc(i),i.nullable=()=>Rc(i),i.nullish=()=>Cc(Rc(i)),i.nonoptional=(r)=>m4(i,r),i.array=()=>Z$(i),i.or=(r)=>sc([i,r]),i.and=(r)=>U4(i,r),i.transform=(r)=>Zc(i,d$(r)),i.default=(r)=>I4(i,r),i.prefault=(r)=>Q4(i,r),i.catch=(r)=>B4(i,r),i.pipe=(r)=>Zc(i,r),i.readonly=()=>M4(i),i.describe=(r)=>{let u=i.clone();return rn.add(u,{description:r}),u},Object.defineProperty(i,"description",{get(){return rn.get(i)?.description},configurable:!0}),i.meta=(...r)=>{if(r.length===0)return rn.get(i);let u=i.clone();return rn.add(u,r[0]),u},i.isOptional=()=>i.safeParse(void 0).success,i.isNullable=()=>i.safeParse(null).success,i}),X$=D("_ZodString",(i,n)=>{jr.init(i,n),C.init(i,n);let r=i._zod.bag;i.format=r.format??null,i.minLength=r.minimum??null,i.maxLength=r.maximum??null,i.regex=(...u)=>i.check(Gr(...u)),i.includes=(...u)=>i.check(Lr(...u)),i.startsWith=(...u)=>i.check(Ir(...u)),i.endsWith=(...u)=>i.check(Yr(...u)),i.min=(...u)=>i.check(Vn(...u)),i.max=(...u)=>i.check(Xt(...u)),i.length=(...u)=>i.check(Lt(...u)),i.nonempty=(...u)=>i.check(Vn(1,...u)),i.lowercase=(u)=>i.check(qr(u)),i.uppercase=(u)=>i.check(Xr(u)),i.trim=()=>i.check(Sr()),i.normalize=(...u)=>i.check(mr(...u)),i.toLowerCase=()=>i.check(Ar()),i.toUpperCase=()=>i.check(Br())}),ec=D("ZodString",(i,n)=>{jr.init(i,n),X$.init(i,n),i.email=(r)=>i.check(jc(L$,r)),i.url=(r)=>i.check(Dc(I$,r)),i.jwt=(r)=>i.check(Kc(k$,r)),i.emoji=(r)=>i.check(Jc(Y$,r)),i.guid=(r)=>i.check(Er(Tc,r)),i.uuid=(r)=>i.check(Uc(zn,r)),i.uuidv4=(r)=>i.check(Nc(zn,r)),i.uuidv6=(r)=>i.check(zc(zn,r)),i.uuidv7=(r)=>i.check(Wc(zn,r)),i.nanoid=(r)=>i.check(Ec(Q$,r)),i.guid=(r)=>i.check(Er(Tc,r)),i.cuid=(r)=>i.check(Hc(m$,r)),i.cuid2=(r)=>i.check(Gc(S$,r)),i.ulid=(r)=>i.check(qc(A$,r)),i.base64=(r)=>i.check(Sc(P$,r)),i.base64url=(r)=>i.check(Ac(y$,r)),i.xid=(r)=>i.check(Xc(B$,r)),i.ksuid=(r)=>i.check(Lc(K$,r)),i.ipv4=(r)=>i.check(Ic(V$,r)),i.ipv6=(r)=>i.check(Yc(M$,r)),i.cidrv4=(r)=>i.check(Qc(x$,r)),i.cidrv6=(r)=>i.check(mc(F$,r)),i.e164=(r)=>i.check(Bc(T$,r)),i.datetime=(r)=>i.check(N$(r)),i.date=(r)=>i.check(z$(r)),i.time=(r)=>i.check(W$(r)),i.duration=(r)=>i.check(D$(r))});function G$(i){return ml(ec,i)}var ni=D("ZodStringFormat",(i,n)=>{ii.init(i,n),X$.init(i,n)}),L$=D("ZodEmail",(i,n)=>{eh.init(i,n),ni.init(i,n)});function UE(i){return jc(L$,i)}var Tc=D("ZodGUID",(i,n)=>{Rh.init(i,n),ni.init(i,n)});function NE(i){return Er(Tc,i)}var zn=D("ZodUUID",(i,n)=>{Zh.init(i,n),ni.init(i,n)});function zE(i){return Uc(zn,i)}function WE(i){return Nc(zn,i)}function DE(i){return zc(zn,i)}function JE(i){return Wc(zn,i)}var I$=D("ZodURL",(i,n)=>{ph.init(i,n),ni.init(i,n)});function EE(i){return Dc(I$,i)}var Y$=D("ZodEmoji",(i,n)=>{dh.init(i,n),ni.init(i,n)});function HE(i){return Jc(Y$,i)}var Q$=D("ZodNanoID",(i,n)=>{ah.init(i,n),ni.init(i,n)});function GE(i){return Ec(Q$,i)}var m$=D("ZodCUID",(i,n)=>{sh.init(i,n),ni.init(i,n)});function qE(i){return Hc(m$,i)}var S$=D("ZodCUID2",(i,n)=>{i_.init(i,n),ni.init(i,n)});function XE(i){return Gc(S$,i)}var A$=D("ZodULID",(i,n)=>{n_.init(i,n),ni.init(i,n)});function LE(i){return qc(A$,i)}var B$=D("ZodXID",(i,n)=>{t_.init(i,n),ni.init(i,n)});function IE(i){return Xc(B$,i)}var K$=D("ZodKSUID",(i,n)=>{r_.init(i,n),ni.init(i,n)});function YE(i){return Lc(K$,i)}var V$=D("ZodIPv4",(i,n)=>{h_.init(i,n),ni.init(i,n)});function QE(i){return Ic(V$,i)}var M$=D("ZodIPv6",(i,n)=>{__.init(i,n),ni.init(i,n)});function mE(i){return Yc(M$,i)}var x$=D("ZodCIDRv4",(i,n)=>{l_.init(i,n),ni.init(i,n)});function SE(i){return Qc(x$,i)}var F$=D("ZodCIDRv6",(i,n)=>{$_.init(i,n),ni.init(i,n)});function AE(i){return mc(F$,i)}var P$=D("ZodBase64",(i,n)=>{b_.init(i,n),ni.init(i,n)});function BE(i){return Sc(P$,i)}var y$=D("ZodBase64URL",(i,n)=>{v_.init(i,n),ni.init(i,n)});function KE(i){return Ac(y$,i)}var T$=D("ZodE164",(i,n)=>{f_.init(i,n),ni.init(i,n)});function VE(i){return Bc(T$,i)}var k$=D("ZodJWT",(i,n)=>{O_.init(i,n),ni.init(i,n)});function ME(i){return Kc(k$,i)}var Fr=D("ZodNumber",(i,n)=>{bc.init(i,n),C.init(i,n),i.gt=(u,t)=>i.check(jn(u,t)),i.gte=(u,t)=>i.check(Yi(u,t)),i.min=(u,t)=>i.check(Yi(u,t)),i.lt=(u,t)=>i.check(On(u,t)),i.lte=(u,t)=>i.check(Fi(u,t)),i.max=(u,t)=>i.check(Fi(u,t)),i.int=(u)=>i.check(q$(u)),i.safe=(u)=>i.check(q$(u)),i.positive=(u)=>i.check(jn(0,u)),i.nonnegative=(u)=>i.check(Yi(0,u)),i.negative=(u)=>i.check(On(0,u)),i.nonpositive=(u)=>i.check(Fi(0,u)),i.multipleOf=(u,t)=>i.check(ct(u,t)),i.step=(u,t)=>i.check(ct(u,t)),i.finite=()=>i;let r=i._zod.bag;i.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,i.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,i.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??0.5),i.isFinite=!0,i.format=r.format??null});function o4(i){return Ml(Fr,i)}var Yt=D("ZodNumberFormat",(i,n)=>{j_.init(i,n),Fr.init(i,n)});function q$(i){return Fl(Yt,i)}function xE(i){return Pl(Yt,i)}function FE(i){return yl(Yt,i)}function PE(i){return Tl(Yt,i)}function yE(i){return kl(Yt,i)}var Pr=D("ZodBoolean",(i,n)=>{Ur.init(i,n),C.init(i,n)});function g4(i){return Cl(Pr,i)}var yr=D("ZodBigInt",(i,n)=>{vc.init(i,n),C.init(i,n),i.gte=(u,t)=>i.check(Yi(u,t)),i.min=(u,t)=>i.check(Yi(u,t)),i.gt=(u,t)=>i.check(jn(u,t)),i.gte=(u,t)=>i.check(Yi(u,t)),i.min=(u,t)=>i.check(Yi(u,t)),i.lt=(u,t)=>i.check(On(u,t)),i.lte=(u,t)=>i.check(Fi(u,t)),i.max=(u,t)=>i.check(Fi(u,t)),i.positive=(u)=>i.check(jn(BigInt(0),u)),i.negative=(u)=>i.check(On(BigInt(0),u)),i.nonpositive=(u)=>i.check(Fi(BigInt(0),u)),i.nonnegative=(u)=>i.check(Yi(BigInt(0),u)),i.multipleOf=(u,t)=>i.check(ct(u,t));let r=i._zod.bag;i.minValue=r.minimum??null,i.maxValue=r.maximum??null,i.format=r.format??null});function TE(i){return Zl(yr,i)}var C$=D("ZodBigIntFormat",(i,n)=>{U_.init(i,n),yr.init(i,n)});function kE(i){return pl(C$,i)}function CE(i){return dl(C$,i)}var h4=D("ZodSymbol",(i,n)=>{N_.init(i,n),C.init(i,n)});function RE(i){return al(h4,i)}var _4=D("ZodUndefined",(i,n)=>{z_.init(i,n),C.init(i,n)});function ZE(i){return sl(_4,i)}var l4=D("ZodNull",(i,n)=>{W_.init(i,n),C.init(i,n)});function $4(i){return i$(l4,i)}var w4=D("ZodAny",(i,n)=>{D_.init(i,n),C.init(i,n)});function eE(){return n$(w4)}var R$=D("ZodUnknown",(i,n)=>{Kn.init(i,n),C.init(i,n)});function kc(){return Gt(R$)}var b4=D("ZodNever",(i,n)=>{J_.init(i,n),C.init(i,n)});function pc(i){return t$(b4,i)}var v4=D("ZodVoid",(i,n)=>{E_.init(i,n),C.init(i,n)});function pE(i){return r$(v4,i)}var dc=D("ZodDate",(i,n)=>{H_.init(i,n),C.init(i,n),i.min=(u,t)=>i.check(Yi(u,t)),i.max=(u,t)=>i.check(Fi(u,t));let r=i._zod.bag;i.minDate=r.minimum?new Date(r.minimum):null,i.maxDate=r.maximum?new Date(r.maximum):null});function dE(i){return u$(dc,i)}var f4=D("ZodArray",(i,n)=>{Nr.init(i,n),C.init(i,n),i.element=n.element,i.min=(r,u)=>i.check(Vn(r,u)),i.nonempty=(r)=>i.check(Vn(1,r)),i.max=(r,u)=>i.check(Xt(r,u)),i.length=(r,u)=>i.check(Lt(r,u)),i.unwrap=()=>i.element});function Z$(i,n){return Kr(f4,i,n)}function aE(i){let n=i._zod.def.shape;return H4(Object.keys(n))}var ac=D("ZodObject",(i,n)=>{G_.init(i,n),C.init(i,n),S.defineLazy(i,"shape",()=>{return Object.fromEntries(Object.entries(i._zod.def.shape))}),i.keyof=()=>J4(Object.keys(i._zod.def.shape)),i.catchall=(r)=>i.clone({...i._zod.def,catchall:r}),i.passthrough=()=>i.clone({...i._zod.def,catchall:kc()}),i.loose=()=>i.clone({...i._zod.def,catchall:kc()}),i.strict=()=>i.clone({...i._zod.def,catchall:pc()}),i.strip=()=>i.clone({...i._zod.def,catchall:void 0}),i.extend=(r)=>{return S.extend(i,r)},i.merge=(r)=>S.merge(i,r),i.pick=(r)=>S.pick(i,r),i.omit=(r)=>S.omit(i,r),i.partial=(...r)=>S.partial(a$,i,r[0]),i.required=(...r)=>S.required(s$,i,r[0])});function sE(i,n){let r={type:"object",get shape(){return S.assignProp(this,"shape",{...i}),this.shape},...S.normalizeParams(n)};return new ac(r)}function iH(i,n){return new ac({type:"object",get shape(){return S.assignProp(this,"shape",{...i}),this.shape},catchall:pc(),...S.normalizeParams(n)})}function nH(i,n){return new ac({type:"object",get shape(){return S.assignProp(this,"shape",{...i}),this.shape},catchall:kc(),...S.normalizeParams(n)})}var e$=D("ZodUnion",(i,n)=>{fc.init(i,n),C.init(i,n),i.options=n.options});function sc(i,n){return new e$({type:"union",options:i,...S.normalizeParams(n)})}var O4=D("ZodDiscriminatedUnion",(i,n)=>{e$.init(i,n),q_.init(i,n)});function tH(i,n,r){return new O4({type:"union",options:n,discriminator:i,...S.normalizeParams(r)})}var j4=D("ZodIntersection",(i,n)=>{X_.init(i,n),C.init(i,n)});function U4(i,n){return new j4({type:"intersection",left:i,right:n})}var N4=D("ZodTuple",(i,n)=>{ut.init(i,n),C.init(i,n),i.rest=(r)=>i.clone({...i._zod.def,rest:r})});function rH(i,n,r){let u=n instanceof y,t=u?r:n;return new N4({type:"tuple",items:i,rest:u?n:null,...S.normalizeParams(t)})}var p$=D("ZodRecord",(i,n)=>{L_.init(i,n),C.init(i,n),i.keyType=n.keyType,i.valueType=n.valueType});function z4(i,n,r){return new p$({type:"record",keyType:i,valueType:n,...S.normalizeParams(r)})}function uH(i,n,r){return new p$({type:"record",keyType:sc([i,pc()]),valueType:n,...S.normalizeParams(r)})}var W4=D("ZodMap",(i,n)=>{I_.init(i,n),C.init(i,n),i.keyType=n.keyType,i.valueType=n.valueType});function cH(i,n,r){return new W4({type:"map",keyType:i,valueType:n,...S.normalizeParams(r)})}var D4=D("ZodSet",(i,n)=>{Y_.init(i,n),C.init(i,n),i.min=(...r)=>i.check(ot(...r)),i.nonempty=(r)=>i.check(ot(1,r)),i.max=(...r)=>i.check(qt(...r)),i.size=(...r)=>i.check(Hr(...r))});function oH(i,n){return new D4({type:"set",valueType:i,...S.normalizeParams(n)})}var xr=D("ZodEnum",(i,n)=>{Q_.init(i,n),C.init(i,n),i.enum=n.entries,i.options=Object.values(n.entries);let r=new Set(Object.keys(n.entries));i.extract=(u,t)=>{let c={};for(let g of u)if(r.has(g))c[g]=n.entries[g];else throw new Error(`Key ${g} not found in enum`);return new xr({...n,checks:[],...S.normalizeParams(t),entries:c})},i.exclude=(u,t)=>{let c={...n.entries};for(let g of u)if(r.has(g))delete c[g];else throw new Error(`Key ${g} not found in enum`);return new xr({...n,checks:[],...S.normalizeParams(t),entries:c})}});function J4(i,n){let r=Array.isArray(i)?Object.fromEntries(i.map((u)=>[u,u])):i;return new xr({type:"enum",entries:r,...S.normalizeParams(n)})}function gH(i,n){return new xr({type:"enum",entries:i,...S.normalizeParams(n)})}var E4=D("ZodLiteral",(i,n)=>{m_.init(i,n),C.init(i,n),i.values=new Set(n.values),Object.defineProperty(i,"value",{get(){if(n.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return n.values[0]}})});function H4(i,n){return new E4({type:"literal",values:Array.isArray(i)?i:[i],...S.normalizeParams(n)})}var G4=D("ZodFile",(i,n)=>{S_.init(i,n),C.init(i,n),i.min=(r,u)=>i.check(ot(r,u)),i.max=(r,u)=>i.check(qt(r,u)),i.mime=(r,u)=>i.check(Qr(Array.isArray(r)?r:[r],u))});function hH(i){return b$(G4,i)}var q4=D("ZodTransform",(i,n)=>{A_.init(i,n),C.init(i,n),i._zod.parse=(r,u)=>{r.addIssue=(c)=>{if(typeof c==="string")r.issues.push(S.issue(c,r.value,n));else{let g=c;if(g.fatal)g.continue=!1;g.code??(g.code="custom"),g.input??(g.input=r.value),g.inst??(g.inst=i),g.continue??(g.continue=!0),r.issues.push(S.issue(g))}};let t=n.transform(r.value,r);if(t instanceof Promise)return t.then((c)=>{return r.value=c,r});return r.value=t,r}});function d$(i){return new q4({type:"transform",transform:i})}var a$=D("ZodOptional",(i,n)=>{B_.init(i,n),C.init(i,n),i.unwrap=()=>i._zod.def.innerType});function Cc(i){return new a$({type:"optional",innerType:i})}var X4=D("ZodNullable",(i,n)=>{K_.init(i,n),C.init(i,n),i.unwrap=()=>i._zod.def.innerType});function Rc(i){return new X4({type:"nullable",innerType:i})}function _H(i){return Cc(Rc(i))}var L4=D("ZodDefault",(i,n)=>{V_.init(i,n),C.init(i,n),i.unwrap=()=>i._zod.def.innerType,i.removeDefault=i.unwrap});function I4(i,n){return new L4({type:"default",innerType:i,get defaultValue(){return typeof n==="function"?n():n}})}var Y4=D("ZodPrefault",(i,n)=>{M_.init(i,n),C.init(i,n),i.unwrap=()=>i._zod.def.innerType});function Q4(i,n){return new Y4({type:"prefault",innerType:i,get defaultValue(){return typeof n==="function"?n():n}})}var s$=D("ZodNonOptional",(i,n)=>{x_.init(i,n),C.init(i,n),i.unwrap=()=>i._zod.def.innerType});function m4(i,n){return new s$({type:"nonoptional",innerType:i,...S.normalizeParams(n)})}var S4=D("ZodSuccess",(i,n)=>{F_.init(i,n),C.init(i,n),i.unwrap=()=>i._zod.def.innerType});function lH(i){return new S4({type:"success",innerType:i})}var A4=D("ZodCatch",(i,n)=>{P_.init(i,n),C.init(i,n),i.unwrap=()=>i._zod.def.innerType,i.removeCatch=i.unwrap});function B4(i,n){return new A4({type:"catch",innerType:i,catchValue:typeof n==="function"?n:()=>n})}var K4=D("ZodNaN",(i,n)=>{y_.init(i,n),C.init(i,n)});function $H(i){return o$(K4,i)}var i0=D("ZodPipe",(i,n)=>{zr.init(i,n),C.init(i,n),i.in=n.in,i.out=n.out});function Zc(i,n){return new i0({type:"pipe",in:i,out:n})}var V4=D("ZodReadonly",(i,n)=>{T_.init(i,n),C.init(i,n)});function M4(i){return new V4({type:"readonly",innerType:i})}var x4=D("ZodTemplateLiteral",(i,n)=>{k_.init(i,n),C.init(i,n)});function wH(i,n){return new x4({type:"template_literal",parts:i,...S.normalizeParams(n)})}var F4=D("ZodLazy",(i,n)=>{R_.init(i,n),C.init(i,n),i.unwrap=()=>i._zod.def.getter()});function P4(i){return new F4({type:"lazy",getter:i})}var y4=D("ZodPromise",(i,n)=>{C_.init(i,n),C.init(i,n),i.unwrap=()=>i._zod.def.innerType});function bH(i){return new y4({type:"promise",innerType:i})}var io=D("ZodCustom",(i,n)=>{Z_.init(i,n),C.init(i,n)});function T4(i,n){let r=new ui({check:"custom",...S.normalizeParams(n)});return r._zod.check=i,r}function vH(i,n){return v$(io,i??(()=>!0),n)}function k4(i,n={}){return f$(io,i,n)}function C4(i,n){let r=T4((u)=>{return u.addIssue=(t)=>{if(typeof t==="string")u.issues.push(S.issue(t,u.value,r._zod.def));else{let c=t;if(c.fatal)c.continue=!1;c.code??(c.code="custom"),c.input??(c.input=u.value),c.inst??(c.inst=r),c.continue??(c.continue=!r._zod.def.abort),u.issues.push(S.issue(c))}},i(u.value,u)},n);return r}function fH(i,n={error:`Input not instance of ${i.name}`}){let r=new io({type:"custom",check:"custom",fn:(u)=>u instanceof i,abort:!0,...S.normalizeParams(n)});return r._zod.bag.Class=i,r}var OH=(...i)=>O$({Pipe:i0,Boolean:Pr,Unknown:R$},...i);function jH(i){let n=P4(()=>{return sc([G$(i),o4(),g4(),$4(),Z$(n),z4(G$(),n)])});return n}function UH(i,n){return Zc(d$(i),n)}var NH={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"},zH=Object.freeze({status:"aborted"}),WH=zH;function DH(i){$i({customError:i})}function JH(){return $i().customError}var n0={};Xn(n0,{string:()=>EH,number:()=>HH,date:()=>XH,boolean:()=>GH,bigint:()=>qH});function EH(i){return Sl(ec,i)}function HH(i){return xl(Fr,i)}function GH(i){return Rl(Pr,i)}function qH(i){return el(yr,i)}function XH(i){return c$(dc,i)}$i(Wr());var R4=o;var gt=R4;var Z;(function(i){i.assertEqual=(t)=>{};function n(t){}i.assertIs=n;function r(t){throw new Error}i.assertNever=r,i.arrayToEnum=(t)=>{let c={};for(let g of t)c[g]=g;return c},i.getValidEnumValues=(t)=>{let c=i.objectKeys(t).filter((h)=>typeof t[t[h]]!=="number"),g={};for(let h of c)g[h]=t[h];return i.objectValues(g)},i.objectValues=(t)=>{return i.objectKeys(t).map(function(c){return t[c]})},i.objectKeys=typeof Object.keys==="function"?(t)=>Object.keys(t):(t)=>{let c=[];for(let g in t)if(Object.prototype.hasOwnProperty.call(t,g))c.push(g);return c},i.find=(t,c)=>{for(let g of t)if(c(g))return g;return},i.isInteger=typeof Number.isInteger==="function"?(t)=>Number.isInteger(t):(t)=>typeof t==="number"&&Number.isFinite(t)&&Math.floor(t)===t;function u(t,c=" | "){return t.map((g)=>typeof g==="string"?`\'${g}\'`:g).join(c)}i.joinValues=u,i.jsonStringifyReplacer=(t,c)=>{if(typeof c==="bigint")return c.toString();return c}})(Z||(Z={}));var Z4;(function(i){i.mergeShapes=(n,r)=>{return{...n,...r}}})(Z4||(Z4={}));var m=Z.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Wn=(i)=>{switch(typeof i){case"undefined":return m.undefined;case"string":return m.string;case"number":return Number.isNaN(i)?m.nan:m.number;case"boolean":return m.boolean;case"function":return m.function;case"bigint":return m.bigint;case"symbol":return m.symbol;case"object":if(Array.isArray(i))return m.array;if(i===null)return m.null;if(i.then&&typeof i.then==="function"&&i.catch&&typeof i.catch==="function")return m.promise;if(typeof Map!=="undefined"&&i instanceof Map)return m.map;if(typeof Set!=="undefined"&&i instanceof Set)return m.set;if(typeof Date!=="undefined"&&i instanceof Date)return m.date;return m.object;default:return m.unknown}};var q=Z.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Bi extends Error{get errors(){return this.issues}constructor(i){super();this.issues=[],this.addIssue=(r)=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let n=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,n);else this.__proto__=n;this.name="ZodError",this.issues=i}format(i){let n=i||function(t){return t.message},r={_errors:[]},u=(t)=>{for(let c of t.issues)if(c.code==="invalid_union")c.unionErrors.map(u);else if(c.code==="invalid_return_type")u(c.returnTypeError);else if(c.code==="invalid_arguments")u(c.argumentsError);else if(c.path.length===0)r._errors.push(n(c));else{let g=r,h=0;while(hn.message){let n={},r=[];for(let u of this.issues)if(u.path.length>0)n[u.path[0]]=n[u.path[0]]||[],n[u.path[0]].push(i(u));else r.push(i(u));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Bi.create=(i)=>{return new Bi(i)};var IH=(i,n)=>{let r;switch(i.code){case q.invalid_type:if(i.received===m.undefined)r="Required";else r=`Expected ${i.expected}, received ${i.received}`;break;case q.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(i.expected,Z.jsonStringifyReplacer)}`;break;case q.unrecognized_keys:r=`Unrecognized key(s) in object: ${Z.joinValues(i.keys,", ")}`;break;case q.invalid_union:r="Invalid input";break;case q.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Z.joinValues(i.options)}`;break;case q.invalid_enum_value:r=`Invalid enum value. Expected ${Z.joinValues(i.options)}, received \'${i.received}\'`;break;case q.invalid_arguments:r="Invalid function arguments";break;case q.invalid_return_type:r="Invalid function return type";break;case q.invalid_date:r="Invalid date";break;case q.invalid_string:if(typeof i.validation==="object")if("includes"in i.validation){if(r=`Invalid input: must include "${i.validation.includes}"`,typeof i.validation.position==="number")r=`${r} at one or more positions greater than or equal to ${i.validation.position}`}else if("startsWith"in i.validation)r=`Invalid input: must start with "${i.validation.startsWith}"`;else if("endsWith"in i.validation)r=`Invalid input: must end with "${i.validation.endsWith}"`;else Z.assertNever(i.validation);else if(i.validation!=="regex")r=`Invalid ${i.validation}`;else r="Invalid";break;case q.too_small:if(i.type==="array")r=`Array must contain ${i.exact?"exactly":i.inclusive?"at least":"more than"} ${i.minimum} element(s)`;else if(i.type==="string")r=`String must contain ${i.exact?"exactly":i.inclusive?"at least":"over"} ${i.minimum} character(s)`;else if(i.type==="number")r=`Number must be ${i.exact?"exactly equal to ":i.inclusive?"greater than or equal to ":"greater than "}${i.minimum}`;else if(i.type==="date")r=`Date must be ${i.exact?"exactly equal to ":i.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(i.minimum))}`;else r="Invalid input";break;case q.too_big:if(i.type==="array")r=`Array must contain ${i.exact?"exactly":i.inclusive?"at most":"less than"} ${i.maximum} element(s)`;else if(i.type==="string")r=`String must contain ${i.exact?"exactly":i.inclusive?"at most":"under"} ${i.maximum} character(s)`;else if(i.type==="number")r=`Number must be ${i.exact?"exactly":i.inclusive?"less than or equal to":"less than"} ${i.maximum}`;else if(i.type==="bigint")r=`BigInt must be ${i.exact?"exactly":i.inclusive?"less than or equal to":"less than"} ${i.maximum}`;else if(i.type==="date")r=`Date must be ${i.exact?"exactly":i.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(i.maximum))}`;else r="Invalid input";break;case q.custom:r="Invalid input";break;case q.invalid_intersection_types:r="Intersection results could not be merged";break;case q.not_multiple_of:r=`Number must be a multiple of ${i.multipleOf}`;break;case q.not_finite:r="Number must be finite";break;default:r=n.defaultError,Z.assertNever(i)}return{message:r}},Mn=IH;var YH=Mn;function Tr(){return YH}var no=(i)=>{let{data:n,path:r,errorMaps:u,issueData:t}=i,c=[...r,...t.path||[]],g={...t,path:c};if(t.message!==void 0)return{...t,path:c,message:t.message};let h="",_=u.filter((l)=>!!l).slice().reverse();for(let l of _)h=l(g,{data:n,defaultError:h}).message;return{...t,path:c,message:h}};function B(i,n){let r=Tr(),u=no({issueData:n,data:i.data,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,r,r===Mn?void 0:Mn].filter((t)=>!!t)});i.common.issues.push(u)}class Ei{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray(i,n){let r=[];for(let u of n){if(u.status==="aborted")return F;if(u.status==="dirty")i.dirty();r.push(u.value)}return{status:i.value,value:r}}static async mergeObjectAsync(i,n){let r=[];for(let u of n){let t=await u.key,c=await u.value;r.push({key:t,value:c})}return Ei.mergeObjectSync(i,r)}static mergeObjectSync(i,n){let r={};for(let u of n){let{key:t,value:c}=u;if(t.status==="aborted")return F;if(c.status==="aborted")return F;if(t.status==="dirty")i.dirty();if(c.status==="dirty")i.dirty();if(t.value!=="__proto__"&&(typeof c.value!=="undefined"||u.alwaysSet))r[t.value]=c.value}return{status:i.value,value:r}}}var F=Object.freeze({status:"aborted"}),Qt=(i)=>({status:"dirty",value:i}),Xi=(i)=>({status:"valid",value:i}),t0=(i)=>i.status==="aborted",r0=(i)=>i.status==="dirty",ht=(i)=>i.status==="valid",kr=(i)=>typeof Promise!=="undefined"&&i instanceof Promise;var K;(function(i){i.errToObj=(n)=>typeof n==="string"?{message:n}:n||{},i.toString=(n)=>typeof n==="string"?n:n?.message})(K||(K={}));class Ri{constructor(i,n,r,u){this._cachedPath=[],this.parent=i,this.data=n,this._path=r,this._key=u}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}var e4=(i,n)=>{if(ht(n))return{success:!0,data:n.value};else{if(!i.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Bi(i.common.issues);return this._error=r,this._error}}}};function k(i){if(!i)return{};let{errorMap:n,invalid_type_error:r,required_error:u,description:t}=i;if(n&&(r||u))throw new Error(`Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(n)return{errorMap:n,description:t};return{errorMap:(g,h)=>{let{message:_}=i;if(g.code==="invalid_enum_value")return{message:_??h.defaultError};if(typeof h.data==="undefined")return{message:_??u??h.defaultError};if(g.code!=="invalid_type")return{message:h.defaultError};return{message:_??r??h.defaultError}},description:t}}class R{get description(){return this._def.description}_getType(i){return Wn(i.data)}_getOrReturnCtx(i,n){return n||{common:i.parent.common,data:i.data,parsedType:Wn(i.data),schemaErrorMap:this._def.errorMap,path:i.path,parent:i.parent}}_processInputParams(i){return{status:new Ei,ctx:{common:i.parent.common,data:i.data,parsedType:Wn(i.data),schemaErrorMap:this._def.errorMap,path:i.path,parent:i.parent}}}_parseSync(i){let n=this._parse(i);if(kr(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(i){let n=this._parse(i);return Promise.resolve(n)}parse(i,n){let r=this.safeParse(i,n);if(r.success)return r.data;throw r.error}safeParse(i,n){let r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:i,parsedType:Wn(i)},u=this._parseSync({data:i,path:r.path,parent:r});return e4(r,u)}"~validate"(i){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:i,parsedType:Wn(i)};if(!this["~standard"].async)try{let r=this._parseSync({data:i,path:[],parent:n});return ht(r)?{value:r.value}:{issues:n.common.issues}}catch(r){if(r?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;n.common={issues:[],async:!0}}return this._parseAsync({data:i,path:[],parent:n}).then((r)=>ht(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(i,n){let r=await this.safeParseAsync(i,n);if(r.success)return r.data;throw r.error}async safeParseAsync(i,n){let r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:i,parsedType:Wn(i)},u=this._parse({data:i,path:r.path,parent:r}),t=await(kr(u)?u:Promise.resolve(u));return e4(r,t)}refine(i,n){let r=(u)=>{if(typeof n==="string"||typeof n==="undefined")return{message:n};else if(typeof n==="function")return n(u);else return n};return this._refinement((u,t)=>{let c=i(u),g=()=>t.addIssue({code:q.custom,...r(u)});if(typeof Promise!=="undefined"&&c instanceof Promise)return c.then((h)=>{if(!h)return g(),!1;else return!0});if(!c)return g(),!1;else return!0})}refinement(i,n){return this._refinement((r,u)=>{if(!i(r))return u.addIssue(typeof n==="function"?n(r,u):n),!1;else return!0})}_refinement(i){return new on({schema:this,typeName:L.ZodEffects,effect:{type:"refinement",refinement:i}})}superRefine(i){return this._refinement(i)}constructor(i){this.spa=this.safeParseAsync,this._def=i,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:(n)=>this["~validate"](n)}}optional(){return cn.create(this,this._def)}nullable(){return xn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return un.create(this)}promise(){return Kt.create(this,this._def)}or(i){return pr.create([this,i],this._def)}and(i){return dr.create(this,i,this._def)}transform(i){return new on({...k(this._def),schema:this,typeName:L.ZodEffects,effect:{type:"transform",transform:i}})}default(i){let n=typeof i==="function"?i:()=>i;return new nu({...k(this._def),innerType:this,defaultValue:n,typeName:L.ZodDefault})}brand(){return new g0({typeName:L.ZodBranded,type:this,...k(this._def)})}catch(i){let n=typeof i==="function"?i:()=>i;return new tu({...k(this._def),innerType:this,catchValue:n,typeName:L.ZodCatch})}describe(i){return new this.constructor({...this._def,description:i})}pipe(i){return _o.create(this,i)}readonly(){return ru.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}var QH=/^c[^\\s-]{8,}$/i,mH=/^[0-9a-z]+$/,SH=/^[0-9A-HJKMNP-TV-Z]{26}$/i,AH=/^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/i,BH=/^[a-z0-9_-]{21}$/i,KH=/^[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]*$/,VH=/^[-+]?P(?!$)(?:(?:[-+]?\\d+Y)|(?:[-+]?\\d+[.,]\\d+Y$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:(?:[-+]?\\d+W)|(?:[-+]?\\d+[.,]\\d+W$))?(?:(?:[-+]?\\d+D)|(?:[-+]?\\d+[.,]\\d+D$))?(?:T(?=[\\d+-])(?:(?:[-+]?\\d+H)|(?:[-+]?\\d+[.,]\\d+H$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:[-+]?\\d+(?:[.,]\\d+)?S)?)??$/,MH=/^(?!\\.)(?!.*\\.\\.)([A-Z0-9_\'+\\-\\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\\-]*\\.)+[A-Z]{2,}$/i,xH="^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$",u0,FH=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,PH=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\/(3[0-2]|[12]?[0-9])$/,yH=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,TH=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,kH=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,CH=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,p4="((\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\\\d|30)|(02)-(0[1-9]|1\\\\d|2[0-8])))",RH=new RegExp(`^${p4}$`);function d4(i){let n="[0-5]\\\\d";if(i.precision)n=`${n}\\\\.\\\\d{${i.precision}}`;else if(i.precision==null)n=`${n}(\\\\.\\\\d+)?`;let r=i.precision?"+":"?";return`([01]\\\\d|2[0-3]):[0-5]\\\\d(:${n})${r}`}function ZH(i){return new RegExp(`^${d4(i)}$`)}function eH(i){let n=`${p4}T${d4(i)}`,r=[];if(r.push(i.local?"Z?":"Z"),i.offset)r.push("([+-]\\\\d{2}:?\\\\d{2})");return n=`${n}(${r.join("|")})`,new RegExp(`^${n}$`)}function pH(i,n){if((n==="v4"||!n)&&FH.test(i))return!0;if((n==="v6"||!n)&&yH.test(i))return!0;return!1}function dH(i,n){if(!KH.test(i))return!1;try{let[r]=i.split("."),u=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),t=JSON.parse(atob(u));if(typeof t!=="object"||t===null)return!1;if("typ"in t&&t?.typ!=="JWT")return!1;if(!t.alg)return!1;if(n&&t.alg!==n)return!1;return!0}catch{return!1}}function aH(i,n){if((n==="v4"||!n)&&PH.test(i))return!0;if((n==="v6"||!n)&&TH.test(i))return!0;return!1}class Jn extends R{_parse(i){if(this._def.coerce)i.data=String(i.data);if(this._getType(i)!==m.string){let t=this._getOrReturnCtx(i);return B(t,{code:q.invalid_type,expected:m.string,received:t.parsedType}),F}let r=new Ei,u=void 0;for(let t of this._def.checks)if(t.kind==="min"){if(i.data.lengtht.value)u=this._getOrReturnCtx(i,u),B(u,{code:q.too_big,maximum:t.value,type:"string",inclusive:!0,exact:!1,message:t.message}),r.dirty()}else if(t.kind==="length"){let c=i.data.length>t.value,g=i.data.lengthi.test(u),{validation:n,code:q.invalid_string,...K.errToObj(r)})}_addCheck(i){return new Jn({...this._def,checks:[...this._def.checks,i]})}email(i){return this._addCheck({kind:"email",...K.errToObj(i)})}url(i){return this._addCheck({kind:"url",...K.errToObj(i)})}emoji(i){return this._addCheck({kind:"emoji",...K.errToObj(i)})}uuid(i){return this._addCheck({kind:"uuid",...K.errToObj(i)})}nanoid(i){return this._addCheck({kind:"nanoid",...K.errToObj(i)})}cuid(i){return this._addCheck({kind:"cuid",...K.errToObj(i)})}cuid2(i){return this._addCheck({kind:"cuid2",...K.errToObj(i)})}ulid(i){return this._addCheck({kind:"ulid",...K.errToObj(i)})}base64(i){return this._addCheck({kind:"base64",...K.errToObj(i)})}base64url(i){return this._addCheck({kind:"base64url",...K.errToObj(i)})}jwt(i){return this._addCheck({kind:"jwt",...K.errToObj(i)})}ip(i){return this._addCheck({kind:"ip",...K.errToObj(i)})}cidr(i){return this._addCheck({kind:"cidr",...K.errToObj(i)})}datetime(i){if(typeof i==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:i});return this._addCheck({kind:"datetime",precision:typeof i?.precision==="undefined"?null:i?.precision,offset:i?.offset??!1,local:i?.local??!1,...K.errToObj(i?.message)})}date(i){return this._addCheck({kind:"date",message:i})}time(i){if(typeof i==="string")return this._addCheck({kind:"time",precision:null,message:i});return this._addCheck({kind:"time",precision:typeof i?.precision==="undefined"?null:i?.precision,...K.errToObj(i?.message)})}duration(i){return this._addCheck({kind:"duration",...K.errToObj(i)})}regex(i,n){return this._addCheck({kind:"regex",regex:i,...K.errToObj(n)})}includes(i,n){return this._addCheck({kind:"includes",value:i,position:n?.position,...K.errToObj(n?.message)})}startsWith(i,n){return this._addCheck({kind:"startsWith",value:i,...K.errToObj(n)})}endsWith(i,n){return this._addCheck({kind:"endsWith",value:i,...K.errToObj(n)})}min(i,n){return this._addCheck({kind:"min",value:i,...K.errToObj(n)})}max(i,n){return this._addCheck({kind:"max",value:i,...K.errToObj(n)})}length(i,n){return this._addCheck({kind:"length",value:i,...K.errToObj(n)})}nonempty(i){return this.min(1,K.errToObj(i))}trim(){return new Jn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Jn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Jn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((i)=>i.kind==="datetime")}get isDate(){return!!this._def.checks.find((i)=>i.kind==="date")}get isTime(){return!!this._def.checks.find((i)=>i.kind==="time")}get isDuration(){return!!this._def.checks.find((i)=>i.kind==="duration")}get isEmail(){return!!this._def.checks.find((i)=>i.kind==="email")}get isURL(){return!!this._def.checks.find((i)=>i.kind==="url")}get isEmoji(){return!!this._def.checks.find((i)=>i.kind==="emoji")}get isUUID(){return!!this._def.checks.find((i)=>i.kind==="uuid")}get isNANOID(){return!!this._def.checks.find((i)=>i.kind==="nanoid")}get isCUID(){return!!this._def.checks.find((i)=>i.kind==="cuid")}get isCUID2(){return!!this._def.checks.find((i)=>i.kind==="cuid2")}get isULID(){return!!this._def.checks.find((i)=>i.kind==="ulid")}get isIP(){return!!this._def.checks.find((i)=>i.kind==="ip")}get isCIDR(){return!!this._def.checks.find((i)=>i.kind==="cidr")}get isBase64(){return!!this._def.checks.find((i)=>i.kind==="base64")}get isBase64url(){return!!this._def.checks.find((i)=>i.kind==="base64url")}get minLength(){let i=null;for(let n of this._def.checks)if(n.kind==="min"){if(i===null||n.value>i)i=n.value}return i}get maxLength(){let i=null;for(let n of this._def.checks)if(n.kind==="max"){if(i===null||n.value{return new Jn({checks:[],typeName:L.ZodString,coerce:i?.coerce??!1,...k(i)})};function sH(i,n){let r=(i.toString().split(".")[1]||"").length,u=(n.toString().split(".")[1]||"").length,t=r>u?r:u,c=Number.parseInt(i.toFixed(t).replace(".","")),g=Number.parseInt(n.toFixed(t).replace(".",""));return c%g/10**t}class St extends R{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(i){if(this._def.coerce)i.data=Number(i.data);if(this._getType(i)!==m.number){let t=this._getOrReturnCtx(i);return B(t,{code:q.invalid_type,expected:m.number,received:t.parsedType}),F}let r=void 0,u=new Ei;for(let t of this._def.checks)if(t.kind==="int"){if(!Z.isInteger(i.data))r=this._getOrReturnCtx(i,r),B(r,{code:q.invalid_type,expected:"integer",received:"float",message:t.message}),u.dirty()}else if(t.kind==="min"){if(t.inclusive?i.datat.value:i.data>=t.value)r=this._getOrReturnCtx(i,r),B(r,{code:q.too_big,maximum:t.value,type:"number",inclusive:t.inclusive,exact:!1,message:t.message}),u.dirty()}else if(t.kind==="multipleOf"){if(sH(i.data,t.value)!==0)r=this._getOrReturnCtx(i,r),B(r,{code:q.not_multiple_of,multipleOf:t.value,message:t.message}),u.dirty()}else if(t.kind==="finite"){if(!Number.isFinite(i.data))r=this._getOrReturnCtx(i,r),B(r,{code:q.not_finite,message:t.message}),u.dirty()}else Z.assertNever(t);return{status:u.value,value:i.data}}gte(i,n){return this.setLimit("min",i,!0,K.toString(n))}gt(i,n){return this.setLimit("min",i,!1,K.toString(n))}lte(i,n){return this.setLimit("max",i,!0,K.toString(n))}lt(i,n){return this.setLimit("max",i,!1,K.toString(n))}setLimit(i,n,r,u){return new St({...this._def,checks:[...this._def.checks,{kind:i,value:n,inclusive:r,message:K.toString(u)}]})}_addCheck(i){return new St({...this._def,checks:[...this._def.checks,i]})}int(i){return this._addCheck({kind:"int",message:K.toString(i)})}positive(i){return this._addCheck({kind:"min",value:0,inclusive:!1,message:K.toString(i)})}negative(i){return this._addCheck({kind:"max",value:0,inclusive:!1,message:K.toString(i)})}nonpositive(i){return this._addCheck({kind:"max",value:0,inclusive:!0,message:K.toString(i)})}nonnegative(i){return this._addCheck({kind:"min",value:0,inclusive:!0,message:K.toString(i)})}multipleOf(i,n){return this._addCheck({kind:"multipleOf",value:i,message:K.toString(n)})}finite(i){return this._addCheck({kind:"finite",message:K.toString(i)})}safe(i){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:K.toString(i)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:K.toString(i)})}get minValue(){let i=null;for(let n of this._def.checks)if(n.kind==="min"){if(i===null||n.value>i)i=n.value}return i}get maxValue(){let i=null;for(let n of this._def.checks)if(n.kind==="max"){if(i===null||n.valuei.kind==="int"||i.kind==="multipleOf"&&Z.isInteger(i.value))}get isFinite(){let i=null,n=null;for(let r of this._def.checks)if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;else if(r.kind==="min"){if(n===null||r.value>n)n=r.value}else if(r.kind==="max"){if(i===null||r.value{return new St({checks:[],typeName:L.ZodNumber,coerce:i?.coerce||!1,...k(i)})};class At extends R{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse(i){if(this._def.coerce)try{i.data=BigInt(i.data)}catch{return this._getInvalidInput(i)}if(this._getType(i)!==m.bigint)return this._getInvalidInput(i);let r=void 0,u=new Ei;for(let t of this._def.checks)if(t.kind==="min"){if(t.inclusive?i.datat.value:i.data>=t.value)r=this._getOrReturnCtx(i,r),B(r,{code:q.too_big,type:"bigint",maximum:t.value,inclusive:t.inclusive,message:t.message}),u.dirty()}else if(t.kind==="multipleOf"){if(i.data%t.value!==BigInt(0))r=this._getOrReturnCtx(i,r),B(r,{code:q.not_multiple_of,multipleOf:t.value,message:t.message}),u.dirty()}else Z.assertNever(t);return{status:u.value,value:i.data}}_getInvalidInput(i){let n=this._getOrReturnCtx(i);return B(n,{code:q.invalid_type,expected:m.bigint,received:n.parsedType}),F}gte(i,n){return this.setLimit("min",i,!0,K.toString(n))}gt(i,n){return this.setLimit("min",i,!1,K.toString(n))}lte(i,n){return this.setLimit("max",i,!0,K.toString(n))}lt(i,n){return this.setLimit("max",i,!1,K.toString(n))}setLimit(i,n,r,u){return new At({...this._def,checks:[...this._def.checks,{kind:i,value:n,inclusive:r,message:K.toString(u)}]})}_addCheck(i){return new At({...this._def,checks:[...this._def.checks,i]})}positive(i){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:K.toString(i)})}negative(i){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:K.toString(i)})}nonpositive(i){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:K.toString(i)})}nonnegative(i){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:K.toString(i)})}multipleOf(i,n){return this._addCheck({kind:"multipleOf",value:i,message:K.toString(n)})}get minValue(){let i=null;for(let n of this._def.checks)if(n.kind==="min"){if(i===null||n.value>i)i=n.value}return i}get maxValue(){let i=null;for(let n of this._def.checks)if(n.kind==="max"){if(i===null||n.value{return new At({checks:[],typeName:L.ZodBigInt,coerce:i?.coerce??!1,...k(i)})};class to extends R{_parse(i){if(this._def.coerce)i.data=Boolean(i.data);if(this._getType(i)!==m.boolean){let r=this._getOrReturnCtx(i);return B(r,{code:q.invalid_type,expected:m.boolean,received:r.parsedType}),F}return Xi(i.data)}}to.create=(i)=>{return new to({typeName:L.ZodBoolean,coerce:i?.coerce||!1,...k(i)})};class Rr extends R{_parse(i){if(this._def.coerce)i.data=new Date(i.data);if(this._getType(i)!==m.date){let t=this._getOrReturnCtx(i);return B(t,{code:q.invalid_type,expected:m.date,received:t.parsedType}),F}if(Number.isNaN(i.data.getTime())){let t=this._getOrReturnCtx(i);return B(t,{code:q.invalid_date}),F}let r=new Ei,u=void 0;for(let t of this._def.checks)if(t.kind==="min"){if(i.data.getTime()t.value)u=this._getOrReturnCtx(i,u),B(u,{code:q.too_big,message:t.message,inclusive:!0,exact:!1,maximum:t.value,type:"date"}),r.dirty()}else Z.assertNever(t);return{status:r.value,value:new Date(i.data.getTime())}}_addCheck(i){return new Rr({...this._def,checks:[...this._def.checks,i]})}min(i,n){return this._addCheck({kind:"min",value:i.getTime(),message:K.toString(n)})}max(i,n){return this._addCheck({kind:"max",value:i.getTime(),message:K.toString(n)})}get minDate(){let i=null;for(let n of this._def.checks)if(n.kind==="min"){if(i===null||n.value>i)i=n.value}return i!=null?new Date(i):null}get maxDate(){let i=null;for(let n of this._def.checks)if(n.kind==="max"){if(i===null||n.value{return new Rr({checks:[],coerce:i?.coerce||!1,typeName:L.ZodDate,...k(i)})};class ro extends R{_parse(i){if(this._getType(i)!==m.symbol){let r=this._getOrReturnCtx(i);return B(r,{code:q.invalid_type,expected:m.symbol,received:r.parsedType}),F}return Xi(i.data)}}ro.create=(i)=>{return new ro({typeName:L.ZodSymbol,...k(i)})};class Zr extends R{_parse(i){if(this._getType(i)!==m.undefined){let r=this._getOrReturnCtx(i);return B(r,{code:q.invalid_type,expected:m.undefined,received:r.parsedType}),F}return Xi(i.data)}}Zr.create=(i)=>{return new Zr({typeName:L.ZodUndefined,...k(i)})};class er extends R{_parse(i){if(this._getType(i)!==m.null){let r=this._getOrReturnCtx(i);return B(r,{code:q.invalid_type,expected:m.null,received:r.parsedType}),F}return Xi(i.data)}}er.create=(i)=>{return new er({typeName:L.ZodNull,...k(i)})};class uo extends R{constructor(){super(...arguments);this._any=!0}_parse(i){return Xi(i.data)}}uo.create=(i)=>{return new uo({typeName:L.ZodAny,...k(i)})};class _t extends R{constructor(){super(...arguments);this._unknown=!0}_parse(i){return Xi(i.data)}}_t.create=(i)=>{return new _t({typeName:L.ZodUnknown,...k(i)})};class En extends R{_parse(i){let n=this._getOrReturnCtx(i);return B(n,{code:q.invalid_type,expected:m.never,received:n.parsedType}),F}}En.create=(i)=>{return new En({typeName:L.ZodNever,...k(i)})};class co extends R{_parse(i){if(this._getType(i)!==m.undefined){let r=this._getOrReturnCtx(i);return B(r,{code:q.invalid_type,expected:m.void,received:r.parsedType}),F}return Xi(i.data)}}co.create=(i)=>{return new co({typeName:L.ZodVoid,...k(i)})};class un extends R{_parse(i){let{ctx:n,status:r}=this._processInputParams(i),u=this._def;if(n.parsedType!==m.array)return B(n,{code:q.invalid_type,expected:m.array,received:n.parsedType}),F;if(u.exactLength!==null){let c=n.data.length>u.exactLength.value,g=n.data.lengthu.maxLength.value)B(n,{code:q.too_big,maximum:u.maxLength.value,type:"array",inclusive:!0,exact:!1,message:u.maxLength.message}),r.dirty()}if(n.common.async)return Promise.all([...n.data].map((c,g)=>{return u.type._parseAsync(new Ri(n,c,n.path,g))})).then((c)=>{return Ei.mergeArray(r,c)});let t=[...n.data].map((c,g)=>{return u.type._parseSync(new Ri(n,c,n.path,g))});return Ei.mergeArray(r,t)}get element(){return this._def.type}min(i,n){return new un({...this._def,minLength:{value:i,message:K.toString(n)}})}max(i,n){return new un({...this._def,maxLength:{value:i,message:K.toString(n)}})}length(i,n){return new un({...this._def,exactLength:{value:i,message:K.toString(n)}})}nonempty(i){return this.min(1,i)}}un.create=(i,n)=>{return new un({type:i,minLength:null,maxLength:null,exactLength:null,typeName:L.ZodArray,...k(n)})};function mt(i){if(i instanceof ci){let n={};for(let r in i.shape){let u=i.shape[r];n[r]=cn.create(mt(u))}return new ci({...i._def,shape:()=>n})}else if(i instanceof un)return new un({...i._def,type:mt(i.element)});else if(i instanceof cn)return cn.create(mt(i.unwrap()));else if(i instanceof xn)return xn.create(mt(i.unwrap()));else if(i instanceof Hn)return Hn.create(i.items.map((n)=>mt(n)));else return i}class ci extends R{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let i=this._def.shape(),n=Z.objectKeys(i);return this._cached={shape:i,keys:n},this._cached}_parse(i){if(this._getType(i)!==m.object){let _=this._getOrReturnCtx(i);return B(_,{code:q.invalid_type,expected:m.object,received:_.parsedType}),F}let{status:r,ctx:u}=this._processInputParams(i),{shape:t,keys:c}=this._getCached(),g=[];if(!(this._def.catchall instanceof En&&this._def.unknownKeys==="strip")){for(let _ in u.data)if(!c.includes(_))g.push(_)}let h=[];for(let _ of c){let l=t[_],$=u.data[_];h.push({key:{status:"valid",value:_},value:l._parse(new Ri(u,$,u.path,_)),alwaysSet:_ in u.data})}if(this._def.catchall instanceof En){let _=this._def.unknownKeys;if(_==="passthrough")for(let l of g)h.push({key:{status:"valid",value:l},value:{status:"valid",value:u.data[l]}});else if(_==="strict"){if(g.length>0)B(u,{code:q.unrecognized_keys,keys:g}),r.dirty()}else if(_==="strip");else throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let _=this._def.catchall;for(let l of g){let $=u.data[l];h.push({key:{status:"valid",value:l},value:_._parse(new Ri(u,$,u.path,l)),alwaysSet:l in u.data})}}if(u.common.async)return Promise.resolve().then(async()=>{let _=[];for(let l of h){let $=await l.key,w=await l.value;_.push({key:$,value:w,alwaysSet:l.alwaysSet})}return _}).then((_)=>{return Ei.mergeObjectSync(r,_)});else return Ei.mergeObjectSync(r,h)}get shape(){return this._def.shape()}strict(i){return K.errToObj,new ci({...this._def,unknownKeys:"strict",...i!==void 0?{errorMap:(n,r)=>{let u=this._def.errorMap?.(n,r).message??r.defaultError;if(n.code==="unrecognized_keys")return{message:K.errToObj(i).message??u};return{message:u}}}:{}})}strip(){return new ci({...this._def,unknownKeys:"strip"})}passthrough(){return new ci({...this._def,unknownKeys:"passthrough"})}extend(i){return new ci({...this._def,shape:()=>({...this._def.shape(),...i})})}merge(i){return new ci({unknownKeys:i._def.unknownKeys,catchall:i._def.catchall,shape:()=>({...this._def.shape(),...i._def.shape()}),typeName:L.ZodObject})}setKey(i,n){return this.augment({[i]:n})}catchall(i){return new ci({...this._def,catchall:i})}pick(i){let n={};for(let r of Z.objectKeys(i))if(i[r]&&this.shape[r])n[r]=this.shape[r];return new ci({...this._def,shape:()=>n})}omit(i){let n={};for(let r of Z.objectKeys(this.shape))if(!i[r])n[r]=this.shape[r];return new ci({...this._def,shape:()=>n})}deepPartial(){return mt(this)}partial(i){let n={};for(let r of Z.objectKeys(this.shape)){let u=this.shape[r];if(i&&!i[r])n[r]=u;else n[r]=u.optional()}return new ci({...this._def,shape:()=>n})}required(i){let n={};for(let r of Z.objectKeys(this.shape))if(i&&!i[r])n[r]=this.shape[r];else{let t=this.shape[r];while(t instanceof cn)t=t._def.innerType;n[r]=t}return new ci({...this._def,shape:()=>n})}keyof(){return a4(Z.objectKeys(this.shape))}}ci.create=(i,n)=>{return new ci({shape:()=>i,unknownKeys:"strip",catchall:En.create(),typeName:L.ZodObject,...k(n)})};ci.strictCreate=(i,n)=>{return new ci({shape:()=>i,unknownKeys:"strict",catchall:En.create(),typeName:L.ZodObject,...k(n)})};ci.lazycreate=(i,n)=>{return new ci({shape:i,unknownKeys:"strip",catchall:En.create(),typeName:L.ZodObject,...k(n)})};class pr extends R{_parse(i){let{ctx:n}=this._processInputParams(i),r=this._def.options;function u(t){for(let g of t)if(g.result.status==="valid")return g.result;for(let g of t)if(g.result.status==="dirty")return n.common.issues.push(...g.ctx.common.issues),g.result;let c=t.map((g)=>new Bi(g.ctx.common.issues));return B(n,{code:q.invalid_union,unionErrors:c}),F}if(n.common.async)return Promise.all(r.map(async(t)=>{let c={...n,common:{...n.common,issues:[]},parent:null};return{result:await t._parseAsync({data:n.data,path:n.path,parent:c}),ctx:c}})).then(u);else{let t=void 0,c=[];for(let h of r){let _={...n,common:{...n.common,issues:[]},parent:null},l=h._parseSync({data:n.data,path:n.path,parent:_});if(l.status==="valid")return l;else if(l.status==="dirty"&&!t)t={result:l,ctx:_};if(_.common.issues.length)c.push(_.common.issues)}if(t)return n.common.issues.push(...t.ctx.common.issues),t.result;let g=c.map((h)=>new Bi(h));return B(n,{code:q.invalid_union,unionErrors:g}),F}}get options(){return this._def.options}}pr.create=(i,n)=>{return new pr({options:i,typeName:L.ZodUnion,...k(n)})};var Dn=(i)=>{if(i instanceof ar)return Dn(i.schema);else if(i instanceof on)return Dn(i.innerType());else if(i instanceof sr)return[i.value];else if(i instanceof lt)return i.options;else if(i instanceof iu)return Z.objectValues(i.enum);else if(i instanceof nu)return Dn(i._def.innerType);else if(i instanceof Zr)return[void 0];else if(i instanceof er)return[null];else if(i instanceof cn)return[void 0,...Dn(i.unwrap())];else if(i instanceof xn)return[null,...Dn(i.unwrap())];else if(i instanceof g0)return Dn(i.unwrap());else if(i instanceof ru)return Dn(i.unwrap());else if(i instanceof tu)return Dn(i._def.innerType);else return[]};class o0 extends R{_parse(i){let{ctx:n}=this._processInputParams(i);if(n.parsedType!==m.object)return B(n,{code:q.invalid_type,expected:m.object,received:n.parsedType}),F;let r=this.discriminator,u=n.data[r],t=this.optionsMap.get(u);if(!t)return B(n,{code:q.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),F;if(n.common.async)return t._parseAsync({data:n.data,path:n.path,parent:n});else return t._parseSync({data:n.data,path:n.path,parent:n})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(i,n,r){let u=new Map;for(let t of n){let c=Dn(t.shape[i]);if(!c.length)throw new Error(`A discriminator value for key \\`${i}\\` could not be extracted from all schema options`);for(let g of c){if(u.has(g))throw new Error(`Discriminator property ${String(i)} has duplicate value ${String(g)}`);u.set(g,t)}}return new o0({typeName:L.ZodDiscriminatedUnion,discriminator:i,options:n,optionsMap:u,...k(r)})}}function c0(i,n){let r=Wn(i),u=Wn(n);if(i===n)return{valid:!0,data:i};else if(r===m.object&&u===m.object){let t=Z.objectKeys(n),c=Z.objectKeys(i).filter((h)=>t.indexOf(h)!==-1),g={...i,...n};for(let h of c){let _=c0(i[h],n[h]);if(!_.valid)return{valid:!1};g[h]=_.data}return{valid:!0,data:g}}else if(r===m.array&&u===m.array){if(i.length!==n.length)return{valid:!1};let t=[];for(let c=0;c{if(t0(t)||t0(c))return F;let g=c0(t.value,c.value);if(!g.valid)return B(r,{code:q.invalid_intersection_types}),F;if(r0(t)||r0(c))n.dirty();return{status:n.value,value:g.data}};if(r.common.async)return Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([t,c])=>u(t,c));else return u(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}dr.create=(i,n,r)=>{return new dr({left:i,right:n,typeName:L.ZodIntersection,...k(r)})};class Hn extends R{_parse(i){let{status:n,ctx:r}=this._processInputParams(i);if(r.parsedType!==m.array)return B(r,{code:q.invalid_type,expected:m.array,received:r.parsedType}),F;if(r.data.lengththis._def.items.length)B(r,{code:q.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty();let t=[...r.data].map((c,g)=>{let h=this._def.items[g]||this._def.rest;if(!h)return null;return h._parse(new Ri(r,c,r.path,g))}).filter((c)=>!!c);if(r.common.async)return Promise.all(t).then((c)=>{return Ei.mergeArray(n,c)});else return Ei.mergeArray(n,t)}get items(){return this._def.items}rest(i){return new Hn({...this._def,rest:i})}}Hn.create=(i,n)=>{if(!Array.isArray(i))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Hn({items:i,typeName:L.ZodTuple,rest:null,...k(n)})};class oo extends R{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(i){let{status:n,ctx:r}=this._processInputParams(i);if(r.parsedType!==m.object)return B(r,{code:q.invalid_type,expected:m.object,received:r.parsedType}),F;let u=[],t=this._def.keyType,c=this._def.valueType;for(let g in r.data)u.push({key:t._parse(new Ri(r,g,r.path,g)),value:c._parse(new Ri(r,r.data[g],r.path,g)),alwaysSet:g in r.data});if(r.common.async)return Ei.mergeObjectAsync(n,u);else return Ei.mergeObjectSync(n,u)}get element(){return this._def.valueType}static create(i,n,r){if(n instanceof R)return new oo({keyType:i,valueType:n,typeName:L.ZodRecord,...k(r)});return new oo({keyType:Jn.create(),valueType:i,typeName:L.ZodRecord,...k(n)})}}class go extends R{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(i){let{status:n,ctx:r}=this._processInputParams(i);if(r.parsedType!==m.map)return B(r,{code:q.invalid_type,expected:m.map,received:r.parsedType}),F;let u=this._def.keyType,t=this._def.valueType,c=[...r.data.entries()].map(([g,h],_)=>{return{key:u._parse(new Ri(r,g,r.path,[_,"key"])),value:t._parse(new Ri(r,h,r.path,[_,"value"]))}});if(r.common.async){let g=new Map;return Promise.resolve().then(async()=>{for(let h of c){let _=await h.key,l=await h.value;if(_.status==="aborted"||l.status==="aborted")return F;if(_.status==="dirty"||l.status==="dirty")n.dirty();g.set(_.value,l.value)}return{status:n.value,value:g}})}else{let g=new Map;for(let h of c){let{key:_,value:l}=h;if(_.status==="aborted"||l.status==="aborted")return F;if(_.status==="dirty"||l.status==="dirty")n.dirty();g.set(_.value,l.value)}return{status:n.value,value:g}}}}go.create=(i,n,r)=>{return new go({valueType:n,keyType:i,typeName:L.ZodMap,...k(r)})};class Bt extends R{_parse(i){let{status:n,ctx:r}=this._processInputParams(i);if(r.parsedType!==m.set)return B(r,{code:q.invalid_type,expected:m.set,received:r.parsedType}),F;let u=this._def;if(u.minSize!==null){if(r.data.sizeu.maxSize.value)B(r,{code:q.too_big,maximum:u.maxSize.value,type:"set",inclusive:!0,exact:!1,message:u.maxSize.message}),n.dirty()}let t=this._def.valueType;function c(h){let _=new Set;for(let l of h){if(l.status==="aborted")return F;if(l.status==="dirty")n.dirty();_.add(l.value)}return{status:n.value,value:_}}let g=[...r.data.values()].map((h,_)=>t._parse(new Ri(r,h,r.path,_)));if(r.common.async)return Promise.all(g).then((h)=>c(h));else return c(g)}min(i,n){return new Bt({...this._def,minSize:{value:i,message:K.toString(n)}})}max(i,n){return new Bt({...this._def,maxSize:{value:i,message:K.toString(n)}})}size(i,n){return this.min(i,n).max(i,n)}nonempty(i){return this.min(1,i)}}Bt.create=(i,n)=>{return new Bt({valueType:i,minSize:null,maxSize:null,typeName:L.ZodSet,...k(n)})};class Cr extends R{constructor(){super(...arguments);this.validate=this.implement}_parse(i){let{ctx:n}=this._processInputParams(i);if(n.parsedType!==m.function)return B(n,{code:q.invalid_type,expected:m.function,received:n.parsedType}),F;function r(g,h){return no({data:g,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Tr(),Mn].filter((_)=>!!_),issueData:{code:q.invalid_arguments,argumentsError:h}})}function u(g,h){return no({data:g,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Tr(),Mn].filter((_)=>!!_),issueData:{code:q.invalid_return_type,returnTypeError:h}})}let t={errorMap:n.common.contextualErrorMap},c=n.data;if(this._def.returns instanceof Kt){let g=this;return Xi(async function(...h){let _=new Bi([]),l=await g._def.args.parseAsync(h,t).catch((b)=>{throw _.addIssue(r(h,b)),_}),$=await Reflect.apply(c,this,l);return await g._def.returns._def.type.parseAsync($,t).catch((b)=>{throw _.addIssue(u($,b)),_})})}else{let g=this;return Xi(function(...h){let _=g._def.args.safeParse(h,t);if(!_.success)throw new Bi([r(h,_.error)]);let l=Reflect.apply(c,this,_.data),$=g._def.returns.safeParse(l,t);if(!$.success)throw new Bi([u(l,$.error)]);return $.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...i){return new Cr({...this._def,args:Hn.create(i).rest(_t.create())})}returns(i){return new Cr({...this._def,returns:i})}implement(i){return this.parse(i)}strictImplement(i){return this.parse(i)}static create(i,n,r){return new Cr({args:i?i:Hn.create([]).rest(_t.create()),returns:n||_t.create(),typeName:L.ZodFunction,...k(r)})}}class ar extends R{get schema(){return this._def.getter()}_parse(i){let{ctx:n}=this._processInputParams(i);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}ar.create=(i,n)=>{return new ar({getter:i,typeName:L.ZodLazy,...k(n)})};class sr extends R{_parse(i){if(i.data!==this._def.value){let n=this._getOrReturnCtx(i);return B(n,{received:n.data,code:q.invalid_literal,expected:this._def.value}),F}return{status:"valid",value:i.data}}get value(){return this._def.value}}sr.create=(i,n)=>{return new sr({value:i,typeName:L.ZodLiteral,...k(n)})};function a4(i,n){return new lt({values:i,typeName:L.ZodEnum,...k(n)})}class lt extends R{_parse(i){if(typeof i.data!=="string"){let n=this._getOrReturnCtx(i),r=this._def.values;return B(n,{expected:Z.joinValues(r),received:n.parsedType,code:q.invalid_type}),F}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has(i.data)){let n=this._getOrReturnCtx(i),r=this._def.values;return B(n,{received:n.data,code:q.invalid_enum_value,options:r}),F}return Xi(i.data)}get options(){return this._def.values}get enum(){let i={};for(let n of this._def.values)i[n]=n;return i}get Values(){let i={};for(let n of this._def.values)i[n]=n;return i}get Enum(){let i={};for(let n of this._def.values)i[n]=n;return i}extract(i,n=this._def){return lt.create(i,{...this._def,...n})}exclude(i,n=this._def){return lt.create(this.options.filter((r)=>!i.includes(r)),{...this._def,...n})}}lt.create=a4;class iu extends R{_parse(i){let n=Z.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(i);if(r.parsedType!==m.string&&r.parsedType!==m.number){let u=Z.objectValues(n);return B(r,{expected:Z.joinValues(u),received:r.parsedType,code:q.invalid_type}),F}if(!this._cache)this._cache=new Set(Z.getValidEnumValues(this._def.values));if(!this._cache.has(i.data)){let u=Z.objectValues(n);return B(r,{received:r.data,code:q.invalid_enum_value,options:u}),F}return Xi(i.data)}get enum(){return this._def.values}}iu.create=(i,n)=>{return new iu({values:i,typeName:L.ZodNativeEnum,...k(n)})};class Kt extends R{unwrap(){return this._def.type}_parse(i){let{ctx:n}=this._processInputParams(i);if(n.parsedType!==m.promise&&n.common.async===!1)return B(n,{code:q.invalid_type,expected:m.promise,received:n.parsedType}),F;let r=n.parsedType===m.promise?n.data:Promise.resolve(n.data);return Xi(r.then((u)=>{return this._def.type.parseAsync(u,{path:n.path,errorMap:n.common.contextualErrorMap})}))}}Kt.create=(i,n)=>{return new Kt({type:i,typeName:L.ZodPromise,...k(n)})};class on extends R{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===L.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(i){let{status:n,ctx:r}=this._processInputParams(i),u=this._def.effect||null,t={addIssue:(c)=>{if(B(r,c),c.fatal)n.abort();else n.dirty()},get path(){return r.path}};if(t.addIssue=t.addIssue.bind(t),u.type==="preprocess"){let c=u.transform(r.data,t);if(r.common.async)return Promise.resolve(c).then(async(g)=>{if(n.value==="aborted")return F;let h=await this._def.schema._parseAsync({data:g,path:r.path,parent:r});if(h.status==="aborted")return F;if(h.status==="dirty")return Qt(h.value);if(n.value==="dirty")return Qt(h.value);return h});else{if(n.value==="aborted")return F;let g=this._def.schema._parseSync({data:c,path:r.path,parent:r});if(g.status==="aborted")return F;if(g.status==="dirty")return Qt(g.value);if(n.value==="dirty")return Qt(g.value);return g}}if(u.type==="refinement"){let c=(g)=>{let h=u.refinement(g,t);if(r.common.async)return Promise.resolve(h);if(h instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return g};if(r.common.async===!1){let g=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(g.status==="aborted")return F;if(g.status==="dirty")n.dirty();return c(g.value),{status:n.value,value:g.value}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((g)=>{if(g.status==="aborted")return F;if(g.status==="dirty")n.dirty();return c(g.value).then(()=>{return{status:n.value,value:g.value}})})}if(u.type==="transform")if(r.common.async===!1){let c=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!ht(c))return F;let g=u.transform(c.value,t);if(g instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:g}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((c)=>{if(!ht(c))return F;return Promise.resolve(u.transform(c.value,t)).then((g)=>({status:n.value,value:g}))});Z.assertNever(u)}}on.create=(i,n,r)=>{return new on({schema:i,typeName:L.ZodEffects,effect:n,...k(r)})};on.createWithPreprocess=(i,n,r)=>{return new on({schema:n,effect:{type:"preprocess",transform:i},typeName:L.ZodEffects,...k(r)})};class cn extends R{_parse(i){if(this._getType(i)===m.undefined)return Xi(void 0);return this._def.innerType._parse(i)}unwrap(){return this._def.innerType}}cn.create=(i,n)=>{return new cn({innerType:i,typeName:L.ZodOptional,...k(n)})};class xn extends R{_parse(i){if(this._getType(i)===m.null)return Xi(null);return this._def.innerType._parse(i)}unwrap(){return this._def.innerType}}xn.create=(i,n)=>{return new xn({innerType:i,typeName:L.ZodNullable,...k(n)})};class nu extends R{_parse(i){let{ctx:n}=this._processInputParams(i),r=n.data;if(n.parsedType===m.undefined)r=this._def.defaultValue();return this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}nu.create=(i,n)=>{return new nu({innerType:i,typeName:L.ZodDefault,defaultValue:typeof n.default==="function"?n.default:()=>n.default,...k(n)})};class tu extends R{_parse(i){let{ctx:n}=this._processInputParams(i),r={...n,common:{...n.common,issues:[]}},u=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});if(kr(u))return u.then((t)=>{return{status:"valid",value:t.status==="valid"?t.value:this._def.catchValue({get error(){return new Bi(r.common.issues)},input:r.data})}});else return{status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new Bi(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}tu.create=(i,n)=>{return new tu({innerType:i,typeName:L.ZodCatch,catchValue:typeof n.catch==="function"?n.catch:()=>n.catch,...k(n)})};class ho extends R{_parse(i){if(this._getType(i)!==m.nan){let r=this._getOrReturnCtx(i);return B(r,{code:q.invalid_type,expected:m.nan,received:r.parsedType}),F}return{status:"valid",value:i.data}}}ho.create=(i)=>{return new ho({typeName:L.ZodNaN,...k(i)})};var QS=Symbol("zod_brand");class g0 extends R{_parse(i){let{ctx:n}=this._processInputParams(i),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class _o extends R{_parse(i){let{status:n,ctx:r}=this._processInputParams(i);if(r.common.async)return(async()=>{let t=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});if(t.status==="aborted")return F;if(t.status==="dirty")return n.dirty(),Qt(t.value);else return this._def.out._parseAsync({data:t.value,path:r.path,parent:r})})();else{let u=this._def.in._parseSync({data:r.data,path:r.path,parent:r});if(u.status==="aborted")return F;if(u.status==="dirty")return n.dirty(),{status:"dirty",value:u.value};else return this._def.out._parseSync({data:u.value,path:r.path,parent:r})}}static create(i,n){return new _o({in:i,out:n,typeName:L.ZodPipeline})}}class ru extends R{_parse(i){let n=this._def.innerType._parse(i),r=(u)=>{if(ht(u))u.value=Object.freeze(u.value);return u};return kr(n)?n.then((u)=>r(u)):r(n)}unwrap(){return this._def.innerType}}ru.create=(i,n)=>{return new ru({innerType:i,typeName:L.ZodReadonly,...k(n)})};var mS={object:ci.lazycreate},L;(function(i){i.ZodString="ZodString",i.ZodNumber="ZodNumber",i.ZodNaN="ZodNaN",i.ZodBigInt="ZodBigInt",i.ZodBoolean="ZodBoolean",i.ZodDate="ZodDate",i.ZodSymbol="ZodSymbol",i.ZodUndefined="ZodUndefined",i.ZodNull="ZodNull",i.ZodAny="ZodAny",i.ZodUnknown="ZodUnknown",i.ZodNever="ZodNever",i.ZodVoid="ZodVoid",i.ZodArray="ZodArray",i.ZodObject="ZodObject",i.ZodUnion="ZodUnion",i.ZodDiscriminatedUnion="ZodDiscriminatedUnion",i.ZodIntersection="ZodIntersection",i.ZodTuple="ZodTuple",i.ZodRecord="ZodRecord",i.ZodMap="ZodMap",i.ZodSet="ZodSet",i.ZodFunction="ZodFunction",i.ZodLazy="ZodLazy",i.ZodLiteral="ZodLiteral",i.ZodEnum="ZodEnum",i.ZodEffects="ZodEffects",i.ZodNativeEnum="ZodNativeEnum",i.ZodOptional="ZodOptional",i.ZodNullable="ZodNullable",i.ZodDefault="ZodDefault",i.ZodCatch="ZodCatch",i.ZodPromise="ZodPromise",i.ZodBranded="ZodBranded",i.ZodPipeline="ZodPipeline",i.ZodReadonly="ZodReadonly"})(L||(L={}));var SS=Jn.create,AS=St.create,BS=ho.create,KS=At.create,VS=to.create,MS=Rr.create,xS=ro.create,FS=Zr.create,PS=er.create,yS=uo.create,TS=_t.create,kS=En.create,CS=co.create,RS=un.create,ZS=ci.create,eS=ci.strictCreate,pS=pr.create,dS=o0.create,aS=dr.create,sS=Hn.create,iA=oo.create,nA=go.create,tA=Bt.create,rA=Cr.create,uA=ar.create,cA=sr.create,oA=lt.create,gA=iu.create,hA=Kt.create,_A=on.create,lA=cn.create,$A=xn.create,wA=on.createWithPreprocess,bA=_o.create;var Gn=({prefix:i,size:n=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:u="-"}={})=>{let t=()=>{let c=r.length,g=new Array(n);for(let h=0;h`${i}${u}${t()}`},n6=Gn();function w0(i){if(i==null)return"unknown error";if(typeof i==="string")return i;if(i instanceof Error)return i.message;return JSON.stringify(i)}var i5=/"__proto__"\\s*:/,n5=/"constructor"\\s*:/;function t5(i){let n=JSON.parse(i);if(n===null||typeof n!=="object")return n;if(i5.test(i)===!1&&n5.test(i)===!1)return n;return r5(n)}function r5(i){let n=[i];while(n.length){let r=n;n=[];for(let u of r){if(Object.prototype.hasOwnProperty.call(u,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(u,"constructor")&&Object.prototype.hasOwnProperty.call(u.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(let t in u){let c=u[t];if(c&&typeof c==="object")n.push(c)}}}return i}function u5(i){let{stackTraceLimit:n}=Error;Error.stackTraceLimit=0;try{return t5(i)}finally{Error.stackTraceLimit=n}}var lo=Symbol.for("vercel.ai.validator");function c5(i){return{[lo]:!0,validate:i}}function o5(i){return typeof i==="object"&&i!==null&&lo in i&&i[lo]===!0&&"validate"in i}function g5(i){return o5(i)?i:h5(i)}function h5(i){return c5(async(n)=>{let r=await i["~standard"].validate(n);return r.issues==null?{success:!0,value:r.value}:{success:!1,error:new sn({value:n,cause:r.issues})}})}async function b0({value:i,schema:n}){let r=await $o({value:i,schema:n});if(!r.success)throw sn.wrap({value:i,cause:r.error});return r.value}async function $o({value:i,schema:n}){let r=g5(n);try{if(r.validate==null)return{success:!0,value:i,rawValue:i};let u=await r.validate(i);if(u.success)return{success:!0,value:u.value,rawValue:i};return{success:!1,error:sn.wrap({value:i,cause:u.error}),rawValue:i}}catch(u){return{success:!1,error:sn.wrap({value:i,cause:u}),rawValue:i}}}async function uu({text:i,schema:n}){try{let r=u5(i);if(n==null)return{success:!0,value:r,rawValue:r};return await $o({value:r,schema:n})}catch(r){return{success:!1,error:Bg.isInstance(r)?r:new Bg({text:i,cause:r}),rawValue:void 0}}}var _5=(i,n)=>{let r=0;for(;rtypeof i==="string"?{...s4,name:i}:{...s4,...i};function Ki(){return{}}function w5(i,n){var r,u,t;let c={type:"array"};if(((r=i.type)==null?void 0:r._def)&&((t=(u=i.type)==null?void 0:u._def)==null?void 0:t.typeName)!==L.ZodAny)c.items=a(i.type._def,{...n,currentPath:[...n.currentPath,"items"]});if(i.minLength)c.minItems=i.minLength.value;if(i.maxLength)c.maxItems=i.maxLength.value;if(i.exactLength)c.minItems=i.exactLength.value,c.maxItems=i.exactLength.value;return c}function b5(i){let n={type:"integer",format:"int64"};if(!i.checks)return n;for(let r of i.checks)switch(r.kind){case"min":if(r.inclusive)n.minimum=r.value;else n.exclusiveMinimum=r.value;break;case"max":if(r.inclusive)n.maximum=r.value;else n.exclusiveMaximum=r.value;break;case"multipleOf":n.multipleOf=r.value;break}return n}function v5(){return{type:"boolean"}}function t6(i,n){return a(i.type._def,n)}var f5=(i,n)=>{return a(i.innerType._def,n)};function r6(i,n,r){let u=r!=null?r:n.dateStrategy;if(Array.isArray(u))return{anyOf:u.map((t,c)=>r6(i,n,t))};switch(u){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return O5(i)}}var O5=(i)=>{let n={type:"integer",format:"unix-time"};for(let r of i.checks)switch(r.kind){case"min":n.minimum=r.value;break;case"max":n.maximum=r.value;break}return n};function j5(i,n){return{...a(i.innerType._def,n),default:i.defaultValue()}}function U5(i,n){return n.effectStrategy==="input"?a(i.schema._def,n):Ki()}function N5(i){return{type:"string",enum:Array.from(i.values)}}var z5=(i)=>{if("type"in i&&i.type==="string")return!1;return"allOf"in i};function W5(i,n){let r=[a(i.left._def,{...n,currentPath:[...n.currentPath,"allOf","0"]}),a(i.right._def,{...n,currentPath:[...n.currentPath,"allOf","1"]})].filter((t)=>!!t),u=[];return r.forEach((t)=>{if(z5(t))u.push(...t.allOf);else{let c=t;if("additionalProperties"in t&&t.additionalProperties===!1){let{additionalProperties:g,...h}=t;c=h}u.push(c)}}),u.length?{allOf:u}:void 0}function D5(i){let n=typeof i.value;if(n!=="bigint"&&n!=="number"&&n!=="boolean"&&n!=="string")return{type:Array.isArray(i.value)?"array":"object"};return{type:n==="bigint"?"integer":n,const:i.value}}var h0=void 0,Zi={cuid:/^[cC][^\\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\\.)(?!.*\\.\\.)([a-zA-Z0-9_\'+\\-\\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\\-]*\\.)+[a-zA-Z]{2,}$/,emoji:()=>{if(h0===void 0)h0=RegExp("^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$","u");return h0},uuid:/^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]*$/};function u6(i,n){let r={type:"string"};if(i.checks)for(let u of i.checks)switch(u.kind){case"min":r.minLength=typeof r.minLength==="number"?Math.max(r.minLength,u.value):u.value;break;case"max":r.maxLength=typeof r.maxLength==="number"?Math.min(r.maxLength,u.value):u.value;break;case"email":switch(n.emailStrategy){case"format:email":ei(r,"email",u.message,n);break;case"format:idn-email":ei(r,"idn-email",u.message,n);break;case"pattern:zod":Li(r,Zi.email,u.message,n);break}break;case"url":ei(r,"uri",u.message,n);break;case"uuid":ei(r,"uuid",u.message,n);break;case"regex":Li(r,u.regex,u.message,n);break;case"cuid":Li(r,Zi.cuid,u.message,n);break;case"cuid2":Li(r,Zi.cuid2,u.message,n);break;case"startsWith":Li(r,RegExp(`^${_0(u.value,n)}`),u.message,n);break;case"endsWith":Li(r,RegExp(`${_0(u.value,n)}$`),u.message,n);break;case"datetime":ei(r,"date-time",u.message,n);break;case"date":ei(r,"date",u.message,n);break;case"time":ei(r,"time",u.message,n);break;case"duration":ei(r,"duration",u.message,n);break;case"length":r.minLength=typeof r.minLength==="number"?Math.max(r.minLength,u.value):u.value,r.maxLength=typeof r.maxLength==="number"?Math.min(r.maxLength,u.value):u.value;break;case"includes":{Li(r,RegExp(_0(u.value,n)),u.message,n);break}case"ip":{if(u.version!=="v6")ei(r,"ipv4",u.message,n);if(u.version!=="v4")ei(r,"ipv6",u.message,n);break}case"base64url":Li(r,Zi.base64url,u.message,n);break;case"jwt":Li(r,Zi.jwt,u.message,n);break;case"cidr":{if(u.version!=="v6")Li(r,Zi.ipv4Cidr,u.message,n);if(u.version!=="v4")Li(r,Zi.ipv6Cidr,u.message,n);break}case"emoji":Li(r,Zi.emoji(),u.message,n);break;case"ulid":{Li(r,Zi.ulid,u.message,n);break}case"base64":{switch(n.base64Strategy){case"format:binary":{ei(r,"binary",u.message,n);break}case"contentEncoding:base64":{r.contentEncoding="base64";break}case"pattern:zod":{Li(r,Zi.base64,u.message,n);break}}break}case"nanoid":Li(r,Zi.nanoid,u.message,n);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return r}function _0(i,n){return n.patternStrategy==="escape"?E5(i):i}var J5=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function E5(i){let n="";for(let r=0;rc.format))){if(!i.anyOf)i.anyOf=[];if(i.format)i.anyOf.push({format:i.format}),delete i.format;i.anyOf.push({format:n,...r&&u.errorMessages&&{errorMessage:{format:r}}})}else i.format=n}function Li(i,n,r,u){var t;if(i.pattern||((t=i.allOf)==null?void 0:t.some((c)=>c.pattern))){if(!i.allOf)i.allOf=[];if(i.pattern)i.allOf.push({pattern:i.pattern}),delete i.pattern;i.allOf.push({pattern:i6(n,u),...r&&u.errorMessages&&{errorMessage:{pattern:r}}})}else i.pattern=i6(n,u)}function i6(i,n){var r;if(!n.applyRegexFlags||!i.flags)return i.source;let u={i:i.flags.includes("i"),m:i.flags.includes("m"),s:i.flags.includes("s")},t=u.i?i.source.toLowerCase():i.source,c="",g=!1,h=!1,_=!1;for(let l=0;l{return typeof n[n[c]]!=="number"}).map((c)=>n[c]),t=Array.from(new Set(u.map((c)=>typeof c)));return{type:t.length===1?t[0]==="string"?"string":"number":["string","number"],enum:u}}function q5(){return{not:Ki()}}function X5(){return{type:"null"}}var l0={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function L5(i,n){let r=i.options instanceof Map?Array.from(i.options.values()):i.options;if(r.every((u)=>(u._def.typeName in l0)&&(!u._def.checks||!u._def.checks.length))){let u=r.reduce((t,c)=>{let g=l0[c._def.typeName];return g&&!t.includes(g)?[...t,g]:t},[]);return{type:u.length>1?u:u[0]}}else if(r.every((u)=>u._def.typeName==="ZodLiteral"&&!u.description)){let u=r.reduce((t,c)=>{let g=typeof c._def.value;switch(g){case"string":case"number":case"boolean":return[...t,g];case"bigint":return[...t,"integer"];case"object":if(c._def.value===null)return[...t,"null"];case"symbol":case"undefined":case"function":default:return t}},[]);if(u.length===r.length){let t=u.filter((c,g,h)=>h.indexOf(c)===g);return{type:t.length>1?t:t[0],enum:r.reduce((c,g)=>{return c.includes(g._def.value)?c:[...c,g._def.value]},[])}}}else if(r.every((u)=>u._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((u,t)=>[...u,...t._def.values.filter((c)=>!u.includes(c))],[])};return I5(i,n)}var I5=(i,n)=>{let r=(i.options instanceof Map?Array.from(i.options.values()):i.options).map((u,t)=>a(u._def,{...n,currentPath:[...n.currentPath,"anyOf",`${t}`]})).filter((u)=>!!u&&(!n.strictUnions||typeof u==="object"&&Object.keys(u).length>0));return r.length?{anyOf:r}:void 0};function Y5(i,n){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(i.innerType._def.typeName)&&(!i.innerType._def.checks||!i.innerType._def.checks.length))return{type:[l0[i.innerType._def.typeName],"null"]};let r=a(i.innerType._def,{...n,currentPath:[...n.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}function Q5(i){let n={type:"number"};if(!i.checks)return n;for(let r of i.checks)switch(r.kind){case"int":n.type="integer";break;case"min":if(r.inclusive)n.minimum=r.value;else n.exclusiveMinimum=r.value;break;case"max":if(r.inclusive)n.maximum=r.value;else n.exclusiveMaximum=r.value;break;case"multipleOf":n.multipleOf=r.value;break}return n}function m5(i,n){let r={type:"object",properties:{}},u=[],t=i.shape();for(let g in t){let h=t[g];if(h===void 0||h._def===void 0)continue;let _=A5(h),l=a(h._def,{...n,currentPath:[...n.currentPath,"properties",g],propertyPath:[...n.currentPath,"properties",g]});if(l===void 0)continue;if(r.properties[g]=l,!_)u.push(g)}if(u.length)r.required=u;let c=S5(i,n);if(c!==void 0)r.additionalProperties=c;return r}function S5(i,n){if(i.catchall._def.typeName!=="ZodNever")return a(i.catchall._def,{...n,currentPath:[...n.currentPath,"additionalProperties"]});switch(i.unknownKeys){case"passthrough":return n.allowedAdditionalProperties;case"strict":return n.rejectedAdditionalProperties;case"strip":return n.removeAdditionalStrategy==="strict"?n.allowedAdditionalProperties:n.rejectedAdditionalProperties}}function A5(i){try{return i.isOptional()}catch(n){return!0}}var B5=(i,n)=>{var r;if(n.currentPath.toString()===((r=n.propertyPath)==null?void 0:r.toString()))return a(i.innerType._def,n);let u=a(i.innerType._def,{...n,currentPath:[...n.currentPath,"anyOf","1"]});return u?{anyOf:[{not:Ki()},u]}:Ki()},K5=(i,n)=>{if(n.pipeStrategy==="input")return a(i.in._def,n);else if(n.pipeStrategy==="output")return a(i.out._def,n);let r=a(i.in._def,{...n,currentPath:[...n.currentPath,"allOf","0"]}),u=a(i.out._def,{...n,currentPath:[...n.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,u].filter((t)=>t!==void 0)}};function V5(i,n){return a(i.type._def,n)}function M5(i,n){let u={type:"array",uniqueItems:!0,items:a(i.valueType._def,{...n,currentPath:[...n.currentPath,"items"]})};if(i.minSize)u.minItems=i.minSize.value;if(i.maxSize)u.maxItems=i.maxSize.value;return u}function x5(i,n){if(i.rest)return{type:"array",minItems:i.items.length,items:i.items.map((r,u)=>a(r._def,{...n,currentPath:[...n.currentPath,"items",`${u}`]})).reduce((r,u)=>u===void 0?r:[...r,u],[]),additionalItems:a(i.rest._def,{...n,currentPath:[...n.currentPath,"additionalItems"]})};else return{type:"array",minItems:i.items.length,maxItems:i.items.length,items:i.items.map((r,u)=>a(r._def,{...n,currentPath:[...n.currentPath,"items",`${u}`]})).reduce((r,u)=>u===void 0?r:[...r,u],[])}}function F5(){return{not:Ki()}}function P5(){return Ki()}var y5=(i,n)=>{return a(i.innerType._def,n)},T5=(i,n,r)=>{switch(n){case L.ZodString:return u6(i,r);case L.ZodNumber:return Q5(i);case L.ZodObject:return m5(i,r);case L.ZodBigInt:return b5(i);case L.ZodBoolean:return v5();case L.ZodDate:return r6(i,r);case L.ZodUndefined:return F5();case L.ZodNull:return X5();case L.ZodArray:return w5(i,r);case L.ZodUnion:case L.ZodDiscriminatedUnion:return L5(i,r);case L.ZodIntersection:return W5(i,r);case L.ZodTuple:return x5(i,r);case L.ZodRecord:return c6(i,r);case L.ZodLiteral:return D5(i);case L.ZodEnum:return N5(i);case L.ZodNativeEnum:return G5(i);case L.ZodNullable:return Y5(i,r);case L.ZodOptional:return B5(i,r);case L.ZodMap:return H5(i,r);case L.ZodSet:return M5(i,r);case L.ZodLazy:return()=>i.getter()._def;case L.ZodPromise:return V5(i,r);case L.ZodNaN:case L.ZodNever:return q5();case L.ZodEffects:return U5(i,r);case L.ZodAny:return Ki();case L.ZodUnknown:return P5();case L.ZodDefault:return j5(i,r);case L.ZodBranded:return t6(i,r);case L.ZodReadonly:return y5(i,r);case L.ZodCatch:return f5(i,r);case L.ZodPipeline:return K5(i,r);case L.ZodFunction:case L.ZodVoid:case L.ZodSymbol:return;default:return((u)=>{return})(n)}};function a(i,n,r=!1){var u;let t=n.seen.get(i);if(n.override){let _=(u=n.override)==null?void 0:u.call(n,i,n,t,r);if(_!==l5)return _}if(t&&!r){let _=k5(t,n);if(_!==void 0)return _}let c={def:i,path:n.currentPath,jsonSchema:void 0};n.seen.set(i,c);let g=T5(i,i.typeName,n),h=typeof g==="function"?a(g(),n):g;if(h)C5(i,n,h);if(n.postProcess){let _=n.postProcess(h,i,n);return c.jsonSchema=h,_}return c.jsonSchema=h,h}var k5=(i,n)=>{switch(n.$refStrategy){case"root":return{$ref:i.path.join("/")};case"relative":return{$ref:_5(n.currentPath,i.path)};case"none":case"seen":{if(i.path.lengthn.currentPath[u]===r))return console.warn(`Recursive reference detected at ${n.currentPath.join("/")}! Defaulting to any`),Ki();return n.$refStrategy==="seen"?Ki():void 0}}},C5=(i,n,r)=>{if(i.description)r.description=i.description;return r},R5=(i)=>{let n=$5(i),r=n.name!==void 0?[...n.basePath,n.definitionPath,n.name]:n.basePath;return{...n,currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(n.definitions).map(([u,t])=>[t._def,{def:t._def,path:[...n.basePath,n.definitionPath,u],jsonSchema:void 0}]))}},Z5=(i,n)=>{var r;let u=R5(n),t=typeof n==="object"&&n.definitions?Object.entries(n.definitions).reduce((l,[$,w])=>{var b;return{...l,[$]:(b=a(w._def,{...u,currentPath:[...u.basePath,u.definitionPath,$]},!0))!=null?b:Ki()}},{}):void 0,c=typeof n==="string"?n:(n==null?void 0:n.nameStrategy)==="title"?void 0:n==null?void 0:n.name,g=(r=a(i._def,c===void 0?u:{...u,currentPath:[...u.basePath,u.definitionPath,c]},!1))!=null?r:Ki(),h=typeof n==="object"&&n.name!==void 0&&n.nameStrategy==="title"?n.name:void 0;if(h!==void 0)g.title=h;let _=c===void 0?t?{...g,[u.definitionPath]:t}:g:{$ref:[...u.$refStrategy==="relative"?[]:u.basePath,u.definitionPath,c].join("/"),[u.definitionPath]:{...t,[c]:g}};return _.$schema="http://json-schema.org/draft-07/schema#",_},e5=Z5;function p5(i,n){var r;let u=(r=n==null?void 0:n.useReferences)!=null?r:!1;return v0(e5(i,{$refStrategy:u?"root":"none"}),{validate:async(t)=>{let c=await i.safeParseAsync(t);return c.success?{success:!0,value:c.data}:{success:!1,error:c.error}}})}function d5(i,n){var r;let u=(r=n==null?void 0:n.useReferences)!=null?r:!1,t=Vr(i,{target:"draft-7",io:"output",reused:u?"ref":"inline"});return v0(t,{validate:async(c)=>{let g=await Mr(i,c);return g.success?{success:!0,value:g.data}:{success:!1,error:g.error}}})}function a5(i){return"_zod"in i}function s5(i,n){if(a5(i))return d5(i,n);else return p5(i,n)}var $0=Symbol.for("vercel.ai.schema");function v0(i,{validate:n}={}){return{[$0]:!0,_type:void 0,[lo]:!0,jsonSchema:i,validate:n}}function iG(i){return typeof i==="object"&&i!==null&&$0 in i&&i[$0]===!0&&"jsonSchema"in i&&"validate"in i}function o6(i){return i==null?v0({properties:{},additionalProperties:!1}):iG(i)?i:s5(i)}var nG=Object.defineProperty,tG=(i,n)=>{for(var r in n)nG(i,r,{get:n[r],enumerable:!0})},rG="AI_NoOutputSpecifiedError",uG=`vercel.ai.error.${rG}`,cG=Symbol.for(uG),oG;oG=cG;var gG="AI_InvalidArgumentError",hG=`vercel.ai.error.${gG}`,_G=Symbol.for(hG),lG;lG=_G;var $G="AI_InvalidStreamPartError",wG=`vercel.ai.error.${$G}`,bG=Symbol.for(wG),vG;vG=bG;var fG="AI_InvalidToolInputError",OG=`vercel.ai.error.${fG}`,jG=Symbol.for(OG),UG;UG=jG;var NG="AI_MCPClientError",zG=`vercel.ai.error.${NG}`,WG=Symbol.for(zG),DG;DG=WG;var JG="AI_NoImageGeneratedError",EG=`vercel.ai.error.${JG}`,HG=Symbol.for(EG),GG;GG=HG;var l6="AI_NoObjectGeneratedError",$6=`vercel.ai.error.${l6}`,qG=Symbol.for($6),w6,g6=class extends xi{constructor({message:i="No object generated.",cause:n,text:r,response:u,usage:t,finishReason:c}){super({name:l6,message:i,cause:n});this[w6]=!0,this.text=r,this.response=u,this.usage=t,this.finishReason=c}static isInstance(i){return xi.hasMarker(i,$6)}};w6=qG;var XG="AI_NoOutputGeneratedError",LG=`vercel.ai.error.${XG}`,IG=Symbol.for(LG),YG;YG=IG;var QG="AI_NoSuchToolError",mG=`vercel.ai.error.${QG}`,SG=Symbol.for(mG),AG;AG=SG;var BG="AI_ToolCallRepairError",KG=`vercel.ai.error.${BG}`,VG=Symbol.for(KG),MG;MG=VG;var xG="AI_InvalidDataContentError",FG=`vercel.ai.error.${xG}`,PG=Symbol.for(FG),yG;yG=PG;var TG="AI_InvalidMessageRoleError",kG=`vercel.ai.error.${TG}`,CG=Symbol.for(kG),RG;RG=CG;var b6="AI_MessageConversionError",v6=`vercel.ai.error.${b6}`,ZG=Symbol.for(v6),f6,eG=class extends xi{constructor({originalMessage:i,message:n}){super({name:b6,message:n});this[f6]=!0,this.originalMessage=i}static isInstance(i){return xi.hasMarker(i,v6)}};f6=ZG;var pG="AI_DownloadError",dG=`vercel.ai.error.${pG}`,aG=Symbol.for(dG),sG;sG=aG;var iq="AI_RetryError",nq=`vercel.ai.error.${iq}`,tq=Symbol.for(nq),rq;rq=tq;var O6=o.union([o.string(),o.instanceof(Uint8Array),o.instanceof(ArrayBuffer),o.custom((i)=>{var n,r;return(r=(n=globalThis.Buffer)==null?void 0:n.isBuffer(i))!=null?r:!1},{message:"Must be a Buffer"})]);var cu=o.lazy(()=>o.union([o.null(),o.string(),o.number(),o.boolean(),o.record(o.string(),cu),o.array(cu)])),e=o.record(o.string(),o.record(o.string(),cu)),j6=o.object({type:o.literal("text"),text:o.string(),providerOptions:e.optional()}),uq=o.object({type:o.literal("image"),image:o.union([O6,o.instanceof(URL)]),mediaType:o.string().optional(),providerOptions:e.optional()}),U6=o.object({type:o.literal("file"),data:o.union([O6,o.instanceof(URL)]),filename:o.string().optional(),mediaType:o.string(),providerOptions:e.optional()}),cq=o.object({type:o.literal("reasoning"),text:o.string(),providerOptions:e.optional()}),oq=o.object({type:o.literal("tool-call"),toolCallId:o.string(),toolName:o.string(),input:o.unknown(),providerOptions:e.optional(),providerExecuted:o.boolean().optional()}),gq=o.discriminatedUnion("type",[o.object({type:o.literal("text"),value:o.string()}),o.object({type:o.literal("json"),value:cu}),o.object({type:o.literal("error-text"),value:o.string()}),o.object({type:o.literal("error-json"),value:cu}),o.object({type:o.literal("content"),value:o.array(o.union([o.object({type:o.literal("text"),text:o.string()}),o.object({type:o.literal("media"),data:o.string(),mediaType:o.string()})]))})]),N6=o.object({type:o.literal("tool-result"),toolCallId:o.string(),toolName:o.string(),output:gq,providerOptions:e.optional()}),hq=o.object({role:o.literal("system"),content:o.string(),providerOptions:e.optional()});var _q=o.object({role:o.literal("user"),content:o.union([o.string(),o.array(o.union([j6,uq,U6]))]),providerOptions:e.optional()});var lq=o.object({role:o.literal("assistant"),content:o.union([o.string(),o.array(o.union([j6,U6,cq,oq,N6]))]),providerOptions:e.optional()});var $q=o.object({role:o.literal("tool"),content:o.array(N6),providerOptions:e.optional()});var SA=o.union([hq,_q,lq,$q]);function h6({output:i,tool:n,errorMode:r}){if(r==="text")return{type:"error-text",value:au(i)};else if(r==="json")return{type:"error-json",value:_6(i)};if(n==null?void 0:n.toModelOutput)return n.toModelOutput(i);return typeof i==="string"?{type:"text",value:i}:{type:"json",value:_6(i)}}function _6(i){return i===void 0?null:i}var BA=Gn({prefix:"aitxt",size:24});var VA=class extends TransformStream{constructor(){super({transform(i,n){n.enqueue(`data: ${JSON.stringify(i)}\n\n`)},flush(i){i.enqueue(`data: [DONE]\n\n`)}})}};var FA=o.union([o.strictObject({type:o.literal("text-start"),id:o.string(),providerMetadata:e.optional()}),o.strictObject({type:o.literal("text-delta"),id:o.string(),delta:o.string(),providerMetadata:e.optional()}),o.strictObject({type:o.literal("text-end"),id:o.string(),providerMetadata:e.optional()}),o.strictObject({type:o.literal("error"),errorText:o.string()}),o.strictObject({type:o.literal("tool-input-start"),toolCallId:o.string(),toolName:o.string(),providerExecuted:o.boolean().optional(),dynamic:o.boolean().optional()}),o.strictObject({type:o.literal("tool-input-delta"),toolCallId:o.string(),inputTextDelta:o.string()}),o.strictObject({type:o.literal("tool-input-available"),toolCallId:o.string(),toolName:o.string(),input:o.unknown(),providerExecuted:o.boolean().optional(),providerMetadata:e.optional(),dynamic:o.boolean().optional()}),o.strictObject({type:o.literal("tool-input-error"),toolCallId:o.string(),toolName:o.string(),input:o.unknown(),providerExecuted:o.boolean().optional(),providerMetadata:e.optional(),dynamic:o.boolean().optional(),errorText:o.string()}),o.strictObject({type:o.literal("tool-output-available"),toolCallId:o.string(),output:o.unknown(),providerExecuted:o.boolean().optional(),dynamic:o.boolean().optional(),preliminary:o.boolean().optional()}),o.strictObject({type:o.literal("tool-output-error"),toolCallId:o.string(),errorText:o.string(),providerExecuted:o.boolean().optional(),dynamic:o.boolean().optional()}),o.strictObject({type:o.literal("reasoning"),text:o.string(),providerMetadata:e.optional()}),o.strictObject({type:o.literal("reasoning-start"),id:o.string(),providerMetadata:e.optional()}),o.strictObject({type:o.literal("reasoning-delta"),id:o.string(),delta:o.string(),providerMetadata:e.optional()}),o.strictObject({type:o.literal("reasoning-end"),id:o.string(),providerMetadata:e.optional()}),o.strictObject({type:o.literal("reasoning-part-finish")}),o.strictObject({type:o.literal("source-url"),sourceId:o.string(),url:o.string(),title:o.string().optional(),providerMetadata:e.optional()}),o.strictObject({type:o.literal("source-document"),sourceId:o.string(),mediaType:o.string(),title:o.string(),filename:o.string().optional(),providerMetadata:e.optional()}),o.strictObject({type:o.literal("file"),url:o.string(),mediaType:o.string(),providerMetadata:e.optional()}),o.strictObject({type:o.string().startsWith("data-"),id:o.string().optional(),data:o.unknown(),transient:o.boolean().optional()}),o.strictObject({type:o.literal("start-step")}),o.strictObject({type:o.literal("finish-step")}),o.strictObject({type:o.literal("start"),messageId:o.string().optional(),messageMetadata:o.unknown().optional()}),o.strictObject({type:o.literal("finish"),messageMetadata:o.unknown().optional()}),o.strictObject({type:o.literal("abort")}),o.strictObject({type:o.literal("message-metadata"),messageMetadata:o.unknown()})]);function wq(i){return i.type.startsWith("data-")}function z6(i,n){if(i===void 0&&n===void 0)return;if(i===void 0)return n;if(n===void 0)return i;let r={...i};for(let u in n)if(Object.prototype.hasOwnProperty.call(n,u)){let t=n[u];if(t===void 0)continue;let c=u in i?i[u]:void 0,g=t!==null&&typeof t==="object"&&!Array.isArray(t)&&!(t instanceof Date)&&!(t instanceof RegExp),h=c!==null&&c!==void 0&&typeof c==="object"&&!Array.isArray(c)&&!(c instanceof Date)&&!(c instanceof RegExp);if(g&&h)r[u]=z6(c,t);else r[u]=t}return r}function bq(i){let n=["ROOT"],r=-1,u=null;function t(_,l,$){switch(_){case\'"\':{r=l,n.pop(),n.push($),n.push("INSIDE_STRING");break}case"f":case"t":case"n":{r=l,u=l,n.pop(),n.push($),n.push("INSIDE_LITERAL");break}case"-":{n.pop(),n.push($),n.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=l,n.pop(),n.push($),n.push("INSIDE_NUMBER");break}case"{":{r=l,n.pop(),n.push($),n.push("INSIDE_OBJECT_START");break}case"[":{r=l,n.pop(),n.push($),n.push("INSIDE_ARRAY_START");break}}}function c(_,l){switch(_){case",":{n.pop(),n.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{r=l,n.pop();break}}}function g(_,l){switch(_){case",":{n.pop(),n.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=l,n.pop();break}}}for(let _=0;_=0;_--)switch(n[_]){case"INSIDE_STRING":{h+=\'"\';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{h+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{h+="]";break}case"INSIDE_LITERAL":{let $=i.substring(u,i.length);if("true".startsWith($))h+="true".slice($.length);else if("false".startsWith($))h+="false".slice($.length);else if("null".startsWith($))h+="null".slice($.length)}}return h}async function W6(i){if(i===void 0)return{value:void 0,state:"undefined-input"};let n=await uu({text:i});if(n.success)return{value:n.value,state:"successful-parse"};if(n=await uu({text:bq(i)}),n.success)return{value:n.value,state:"repaired-parse"};return{value:void 0,state:"failed-parse"}}function qn(i){return i.type.startsWith("tool-")}function vq(i){return i.type==="dynamic-tool"}function fq(i){return qn(i)||vq(i)}function $t(i){return i.type.split("-").slice(1).join("-")}function Oq({lastMessage:i,messageId:n}){return{message:(i==null?void 0:i.role)==="assistant"?i:{id:n,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}function jq({stream:i,messageMetadataSchema:n,dataPartSchemas:r,runUpdateMessageJob:u,onError:t,onToolCall:c,onData:g}){return i.pipeThrough(new TransformStream({async transform(h,_){await u(async({state:l,write:$})=>{var w,b,v,f;function U(O){let E=l.message.parts.filter(qn).find((X)=>X.toolCallId===O);if(E==null)throw new Error("tool-output-error must be preceded by a tool-input-available");return E}function z(O){let E=l.message.parts.filter((X)=>X.type==="dynamic-tool").find((X)=>X.toolCallId===O);if(E==null)throw new Error("tool-output-error must be preceded by a tool-input-available");return E}function J(O){var W;let E=l.message.parts.find((Y)=>qn(Y)&&Y.toolCallId===O.toolCallId),X=O,H=E;if(E!=null){if(E.state=O.state,H.input=X.input,H.output=X.output,H.errorText=X.errorText,H.rawInput=X.rawInput,H.preliminary=X.preliminary,H.providerExecuted=(W=X.providerExecuted)!=null?W:E.providerExecuted,X.providerMetadata!=null&&E.state==="input-available")E.callProviderMetadata=X.providerMetadata}else l.message.parts.push({type:`tool-${O.toolName}`,toolCallId:O.toolCallId,state:O.state,input:X.input,output:X.output,rawInput:X.rawInput,errorText:X.errorText,providerExecuted:X.providerExecuted,preliminary:X.preliminary,...X.providerMetadata!=null?{callProviderMetadata:X.providerMetadata}:{}})}function N(O){var W;let E=l.message.parts.find((Y)=>Y.type==="dynamic-tool"&&Y.toolCallId===O.toolCallId),X=O,H=E;if(E!=null){if(E.state=O.state,H.toolName=O.toolName,H.input=X.input,H.output=X.output,H.errorText=X.errorText,H.rawInput=(W=X.rawInput)!=null?W:H.rawInput,H.preliminary=X.preliminary,X.providerMetadata!=null&&E.state==="input-available")E.callProviderMetadata=X.providerMetadata}else l.message.parts.push({type:"dynamic-tool",toolName:O.toolName,toolCallId:O.toolCallId,state:O.state,input:X.input,output:X.output,errorText:X.errorText,preliminary:X.preliminary,...X.providerMetadata!=null?{callProviderMetadata:X.providerMetadata}:{}})}async function j(O){if(O!=null){let W=l.message.metadata!=null?z6(l.message.metadata,O):O;if(n!=null)await b0({value:W,schema:n});l.message.metadata=W}}switch(h.type){case"text-start":{let O={type:"text",text:"",providerMetadata:h.providerMetadata,state:"streaming"};l.activeTextParts[h.id]=O,l.message.parts.push(O),$();break}case"text-delta":{let O=l.activeTextParts[h.id];O.text+=h.delta,O.providerMetadata=(w=h.providerMetadata)!=null?w:O.providerMetadata,$();break}case"text-end":{let O=l.activeTextParts[h.id];O.state="done",O.providerMetadata=(b=h.providerMetadata)!=null?b:O.providerMetadata,delete l.activeTextParts[h.id],$();break}case"reasoning-start":{let O={type:"reasoning",text:"",providerMetadata:h.providerMetadata,state:"streaming"};l.activeReasoningParts[h.id]=O,l.message.parts.push(O),$();break}case"reasoning-delta":{let O=l.activeReasoningParts[h.id];O.text+=h.delta,O.providerMetadata=(v=h.providerMetadata)!=null?v:O.providerMetadata,$();break}case"reasoning-end":{let O=l.activeReasoningParts[h.id];O.providerMetadata=(f=h.providerMetadata)!=null?f:O.providerMetadata,O.state="done",delete l.activeReasoningParts[h.id],$();break}case"file":{l.message.parts.push({type:"file",mediaType:h.mediaType,url:h.url}),$();break}case"source-url":{l.message.parts.push({type:"source-url",sourceId:h.sourceId,url:h.url,title:h.title,providerMetadata:h.providerMetadata}),$();break}case"source-document":{l.message.parts.push({type:"source-document",sourceId:h.sourceId,mediaType:h.mediaType,title:h.title,filename:h.filename,providerMetadata:h.providerMetadata}),$();break}case"tool-input-start":{let O=l.message.parts.filter(qn);if(l.partialToolCalls[h.toolCallId]={text:"",toolName:h.toolName,index:O.length,dynamic:h.dynamic},h.dynamic)N({toolCallId:h.toolCallId,toolName:h.toolName,state:"input-streaming",input:void 0});else J({toolCallId:h.toolCallId,toolName:h.toolName,state:"input-streaming",input:void 0,providerExecuted:h.providerExecuted});$();break}case"tool-input-delta":{let O=l.partialToolCalls[h.toolCallId];O.text+=h.inputTextDelta;let{value:W}=await W6(O.text);if(O.dynamic)N({toolCallId:h.toolCallId,toolName:O.toolName,state:"input-streaming",input:W});else J({toolCallId:h.toolCallId,toolName:O.toolName,state:"input-streaming",input:W});$();break}case"tool-input-available":{if(h.dynamic)N({toolCallId:h.toolCallId,toolName:h.toolName,state:"input-available",input:h.input,providerMetadata:h.providerMetadata});else J({toolCallId:h.toolCallId,toolName:h.toolName,state:"input-available",input:h.input,providerExecuted:h.providerExecuted,providerMetadata:h.providerMetadata});if($(),c&&!h.providerExecuted)await c({toolCall:h});break}case"tool-input-error":{if(h.dynamic)N({toolCallId:h.toolCallId,toolName:h.toolName,state:"output-error",input:h.input,errorText:h.errorText,providerMetadata:h.providerMetadata});else J({toolCallId:h.toolCallId,toolName:h.toolName,state:"output-error",input:void 0,rawInput:h.input,errorText:h.errorText,providerExecuted:h.providerExecuted,providerMetadata:h.providerMetadata});$();break}case"tool-output-available":{if(h.dynamic){let O=z(h.toolCallId);N({toolCallId:h.toolCallId,toolName:O.toolName,state:"output-available",input:O.input,output:h.output,preliminary:h.preliminary})}else{let O=U(h.toolCallId);J({toolCallId:h.toolCallId,toolName:$t(O),state:"output-available",input:O.input,output:h.output,providerExecuted:h.providerExecuted,preliminary:h.preliminary})}$();break}case"tool-output-error":{if(h.dynamic){let O=z(h.toolCallId);N({toolCallId:h.toolCallId,toolName:O.toolName,state:"output-error",input:O.input,errorText:h.errorText})}else{let O=U(h.toolCallId);J({toolCallId:h.toolCallId,toolName:$t(O),state:"output-error",input:O.input,rawInput:O.rawInput,errorText:h.errorText})}$();break}case"start-step":{l.message.parts.push({type:"step-start"});break}case"finish-step":{l.activeTextParts={},l.activeReasoningParts={};break}case"start":{if(h.messageId!=null)l.message.id=h.messageId;if(await j(h.messageMetadata),h.messageId!=null||h.messageMetadata!=null)$();break}case"finish":{if(await j(h.messageMetadata),h.messageMetadata!=null)$();break}case"message-metadata":{if(await j(h.messageMetadata),h.messageMetadata!=null)$();break}case"error":{t==null||t(new Error(h.errorText));break}default:if(wq(h)){if((r==null?void 0:r[h.type])!=null)await b0({value:h.data,schema:r[h.type]});let O=h;if(O.transient){g==null||g(O);break}let W=O.id!=null?l.message.parts.find((E)=>O.type===E.type&&O.id===E.id):void 0;if(W!=null)W.data=O.data;else l.message.parts.push(O);g==null||g(O),$()}}_.enqueue(h)})}}))}function Uq({messageId:i,originalMessages:n=[],onFinish:r,onError:u,stream:t}){let c=n==null?void 0:n[n.length-1];if((c==null?void 0:c.role)!=="assistant")c=void 0;else i=c.id;let g=!1,h=t.pipeThrough(new TransformStream({transform(b,v){if(b.type==="start"){let f=b;if(f.messageId==null&&i!=null)f.messageId=i}if(b.type==="abort")g=!0;v.enqueue(b)}}));if(r==null)return h;let _=Oq({lastMessage:c?structuredClone(c):void 0,messageId:i!=null?i:""}),l=async(b)=>{await b({state:_,write:()=>{}})},$=!1,w=async()=>{if($||!r)return;$=!0;let b=_.message.id===(c==null?void 0:c.id);await r({isAborted:g,isContinuation:b,responseMessage:_.message,messages:[...b?n.slice(0,-1):n,_.message]})};return jq({stream:h,runUpdateMessageJob:l,onError:u}).pipeThrough(new TransformStream({transform(b,v){v.enqueue(b)},async cancel(){await w()},async flush(){await w()}}))}var yA=Gn({prefix:"aitxt",size:24});function D6(i,n){let r=[];if(n==null?void 0:n.ignoreIncompleteToolCalls)i=i.map((t)=>({...t,parts:t.parts.filter((c)=>!fq(c)||c.state!=="input-streaming"&&c.state!=="input-available")}));for(let t of i)switch(t.role){case"system":{let c=t.parts.filter((h)=>h.type==="text"),g=c.reduce((h,_)=>{if(_.providerMetadata!=null)return{...h,..._.providerMetadata};return h},{});r.push({role:"system",content:c.map((h)=>h.text).join(""),...Object.keys(g).length>0?{providerOptions:g}:{}});break}case"user":{r.push({role:"user",content:t.parts.filter((c)=>c.type==="text"||c.type==="file").map((c)=>{switch(c.type){case"text":return{type:"text",text:c.text,...c.providerMetadata!=null?{providerOptions:c.providerMetadata}:{}};case"file":return{type:"file",mediaType:c.mediaType,filename:c.filename,data:c.url,...c.providerMetadata!=null?{providerOptions:c.providerMetadata}:{}};default:return c}})});break}case"assistant":{if(t.parts!=null){let c=function(){var h,_;if(g.length===0)return;let l=[];for(let w of g)if(w.type==="text")l.push({type:"text",text:w.text,...w.providerMetadata!=null?{providerOptions:w.providerMetadata}:{}});else if(w.type==="file")l.push({type:"file",mediaType:w.mediaType,filename:w.filename,data:w.url});else if(w.type==="reasoning")l.push({type:"reasoning",text:w.text,providerOptions:w.providerMetadata});else if(w.type==="dynamic-tool"){let b=w.toolName;if(w.state!=="input-streaming")l.push({type:"tool-call",toolCallId:w.toolCallId,toolName:b,input:w.input,...w.callProviderMetadata!=null?{providerOptions:w.callProviderMetadata}:{}})}else if(qn(w)){let b=$t(w);if(w.state!=="input-streaming"){if(l.push({type:"tool-call",toolCallId:w.toolCallId,toolName:b,input:w.state==="output-error"?(h=w.input)!=null?h:w.rawInput:w.input,providerExecuted:w.providerExecuted,...w.callProviderMetadata!=null?{providerOptions:w.callProviderMetadata}:{}}),w.providerExecuted===!0&&(w.state==="output-available"||w.state==="output-error"))l.push({type:"tool-result",toolCallId:w.toolCallId,toolName:b,output:h6({output:w.state==="output-error"?w.errorText:w.output,tool:(_=n==null?void 0:n.tools)==null?void 0:_[b],errorMode:w.state==="output-error"?"json":"none"})})}}else throw new Error(`Unsupported part: ${w}`);r.push({role:"assistant",content:l});let $=g.filter((w)=>qn(w)&&w.providerExecuted!==!0||w.type==="dynamic-tool");if($.length>0)r.push({role:"tool",content:$.map((w)=>{var b;switch(w.state){case"output-error":case"output-available":{let v=w.type==="dynamic-tool"?w.toolName:$t(w);return{type:"tool-result",toolCallId:w.toolCallId,toolName:v,output:h6({output:w.state==="output-error"?w.errorText:w.output,tool:(b=n==null?void 0:n.tools)==null?void 0:b[v],errorMode:w.state==="output-error"?"text":"none"})}}default:return null}}).filter((w)=>w!=null)});g=[]};var u=c;let g=[];for(let h of t.parts)if(h.type==="text"||h.type==="reasoning"||h.type==="file"||h.type==="dynamic-tool"||qn(h))g.push(h);else if(h.type==="step-start")c();c();break}break}default:{let c=t.role;throw new eG({originalMessage:t,message:`Unsupported role: ${c}`})}}return r}var kA=Gn({prefix:"aiobj",size:24});var RA=Gn({prefix:"aiobj",size:24});var Nq={};tG(Nq,{object:()=>Wq,text:()=>zq});var zq=()=>({type:"text",responseFormat:{type:"text"},async parsePartial({text:i}){return{partial:i}},async parseOutput({text:i}){return i}}),Wq=({schema:i})=>{let n=o6(i);return{type:"object",responseFormat:{type:"json",schema:n.jsonSchema},async parsePartial({text:r}){let u=await W6(r);switch(u.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:u.value};default:{let t=u.state;throw new Error(`Unsupported parse state: ${t}`)}}},async parseOutput({text:r},u){let t=await uu({text:r});if(!t.success)throw new g6({message:"No object generated: could not parse the response.",cause:t.error,text:r,response:u.response,usage:u.usage,finishReason:u.finishReason});let c=await $o({value:t.value,schema:n});if(!c.success)throw new g6({message:"No object generated: response did not match schema.",cause:c.error,text:r,response:u.response,usage:u.usage,finishReason:u.finishReason});return c.value}}};var Dq="AI_NoSuchProviderError",Jq=`vercel.ai.error.${Dq}`,Eq=Symbol.for(Jq),Hq;Hq=Eq;var Gq=o.looseObject({name:o.string(),version:o.string()}),f0=o.looseObject({_meta:o.optional(o.object({}).loose())}),ou=f0,qq=o.object({method:o.string(),params:o.optional(f0)}),Xq=o.looseObject({experimental:o.optional(o.object({}).loose()),logging:o.optional(o.object({}).loose()),prompts:o.optional(o.looseObject({listChanged:o.optional(o.boolean())})),resources:o.optional(o.looseObject({subscribe:o.optional(o.boolean()),listChanged:o.optional(o.boolean())})),tools:o.optional(o.looseObject({listChanged:o.optional(o.boolean())}))}),dA=ou.extend({protocolVersion:o.string(),capabilities:Xq,serverInfo:Gq,instructions:o.optional(o.string())}),Lq=ou.extend({nextCursor:o.optional(o.string())}),Iq=o.object({name:o.string(),description:o.optional(o.string()),inputSchema:o.object({type:o.literal("object"),properties:o.optional(o.object({}).loose())}).loose()}).loose(),aA=Lq.extend({tools:o.array(Iq)}),Yq=o.object({type:o.literal("text"),text:o.string()}).loose(),Qq=o.object({type:o.literal("image"),data:o.base64(),mimeType:o.string()}).loose(),J6=o.object({uri:o.string(),mimeType:o.optional(o.string())}).loose(),mq=J6.extend({text:o.string()}),Sq=J6.extend({blob:o.base64()}),Aq=o.object({type:o.literal("resource"),resource:o.union([mq,Sq])}).loose(),sA=ou.extend({content:o.array(o.union([Yq,Qq,Aq])),isError:o.boolean().default(!1).optional()}).or(ou.extend({toolResult:o.unknown()})),wo="2.0",Bq=o.object({jsonrpc:o.literal(wo),id:o.union([o.string(),o.number().int()])}).merge(qq).strict(),Kq=o.object({jsonrpc:o.literal(wo),id:o.union([o.string(),o.number().int()]),result:ou}).strict(),Vq=o.object({jsonrpc:o.literal(wo),id:o.union([o.string(),o.number().int()]),error:o.object({code:o.number().int(),message:o.string(),data:o.optional(o.unknown())})}).strict(),Mq=o.object({jsonrpc:o.literal(wo)}).merge(o.object({method:o.string(),params:o.optional(f0)})).strict(),i8=o.union([Bq,Mq,Kq,Vq]);var xq=o.object({type:o.literal("text"),text:o.string(),state:o.enum(["streaming","done"]).optional(),providerMetadata:e.optional()}),Fq=o.object({type:o.literal("reasoning"),text:o.string(),state:o.enum(["streaming","done"]).optional(),providerMetadata:e.optional()}),Pq=o.object({type:o.literal("source-url"),sourceId:o.string(),url:o.string(),title:o.string().optional(),providerMetadata:e.optional()}),yq=o.object({type:o.literal("source-document"),sourceId:o.string(),mediaType:o.string(),title:o.string(),filename:o.string().optional(),providerMetadata:e.optional()}),Tq=o.object({type:o.literal("file"),mediaType:o.string(),filename:o.string().optional(),url:o.string(),providerMetadata:e.optional()}),kq=o.object({type:o.literal("step-start")}),Cq=o.object({type:o.string().startsWith("data-"),id:o.string().optional(),data:o.unknown()}),Rq=[o.object({type:o.literal("dynamic-tool"),toolName:o.string(),toolCallId:o.string(),state:o.literal("input-streaming"),input:o.unknown().optional(),output:o.never().optional(),errorText:o.never().optional()}),o.object({type:o.literal("dynamic-tool"),toolName:o.string(),toolCallId:o.string(),state:o.literal("input-available"),input:o.unknown(),output:o.never().optional(),errorText:o.never().optional(),callProviderMetadata:e.optional()}),o.object({type:o.literal("dynamic-tool"),toolName:o.string(),toolCallId:o.string(),state:o.literal("output-available"),input:o.unknown(),output:o.unknown(),errorText:o.never().optional(),callProviderMetadata:e.optional(),preliminary:o.boolean().optional()}),o.object({type:o.literal("dynamic-tool"),toolName:o.string(),toolCallId:o.string(),state:o.literal("output-error"),input:o.unknown(),output:o.never().optional(),errorText:o.string(),callProviderMetadata:e.optional()})],Zq=[o.object({type:o.string().startsWith("tool-"),toolCallId:o.string(),state:o.literal("input-streaming"),input:o.unknown().optional(),output:o.never().optional(),errorText:o.never().optional()}),o.object({type:o.string().startsWith("tool-"),toolCallId:o.string(),state:o.literal("input-available"),input:o.unknown(),output:o.never().optional(),errorText:o.never().optional(),callProviderMetadata:e.optional()}),o.object({type:o.string().startsWith("tool-"),toolCallId:o.string(),state:o.literal("output-available"),input:o.unknown(),output:o.unknown(),errorText:o.never().optional(),callProviderMetadata:e.optional(),preliminary:o.boolean().optional()}),o.object({type:o.string().startsWith("tool-"),toolCallId:o.string(),state:o.literal("output-error"),input:o.unknown(),output:o.never().optional(),errorText:o.string(),callProviderMetadata:e.optional()})],t8=o.object({id:o.string(),role:o.enum(["system","user","assistant"]),metadata:o.unknown().optional(),parts:o.array(o.union([xq,Fq,Pq,yq,Tq,kq,Cq,...Rq,...Zq]))});function E6({execute:i,onError:n=w0,originalMessages:r,onFinish:u,generateId:t=n6}){let c,g=[],h=new ReadableStream({start($){c=$}});function _($){try{c.enqueue($)}catch(w){}}try{let $=i({writer:{write(w){_(w)},merge(w){g.push((async()=>{let b=w.getReader();while(!0){let{done:v,value:f}=await b.read();if(v)break;_(f)}})().catch((b)=>{_({type:"error",errorText:n(b)})}))},onError:n}});if($)g.push($.catch((w)=>{_({type:"error",errorText:n(w)})}))}catch($){_({type:"error",errorText:n($)})}return new Promise(async($)=>{while(g.length>0)await g.shift();$()}).finally(()=>{try{c.close()}catch($){}}),Uq({stream:h,messageId:t(),originalMessages:r,onFinish:u,onError:n})}function eq(i){return typeof i=="object"&&!!i&&typeof i[Symbol.asyncIterator]=="function"}var pq=class extends Error{constructor(i,n){super(i),this.response=n}};var _8=Object.freeze({withContext(i,n){let r={};for(let u of Object.keys(i))r[u]=i[u].withContext(n);return r},with(i,n){let r={};for(let u of Object.keys(i))r[u]=i[u].withContext(n);return r},async withApproval(i){let n={};for(let[t,c]of Object.entries(i.tools)){let g=c.execute;n[t]={...c,execute:async(h,_)=>c.autoApprove&&g&&await c.autoApprove(h)?g(h,_):{type:"tool-approval",outcome:"pending"}}}let r=i.messages[i.messages.length-1];if(!r?.parts)return n;let u=[];for(let t of r.parts){if(!qn(t))continue;let c=$t(t),g=i.tools[c];g&&t.state==="output-available"&&g.execute&&dq(t.output)&&t.output.outcome==="approved"&&u.push({toolName:$t(t),tool:g,input:t.input,toolCallId:t.toolCallId})}if(u.length>0){let t=E6({execute:async({writer:c})=>{c.write({type:"start-step"}),await Promise.all(u.map(async(g)=>{if(!g.tool.execute)throw Error("Tool does not support execute.");c.write({type:"tool-input-available",toolCallId:g.toolCallId,toolName:g.toolName,input:g.input});try{let h=await g.tool.execute(g.input,{toolCallId:g.toolCallId,messages:D6(i.messages,{tools:i.tools}),abortSignal:i.abortSignal});if(eq(h))for await(let _ of h)c.write({type:"tool-output-available",toolCallId:g.toolCallId,output:_,preliminary:!0});c.write({type:"tool-output-available",toolCallId:g.toolCallId,output:h})}catch(h){c.write({type:"tool-output-error",toolCallId:g.toolCallId,errorText:h instanceof Error?h.message:String(h)})}})),c.write({type:"finish"})}});throw new pq("Executing tools",t)}return n},prefix(i,n){let r={};for(let[u,t]of Object.entries(i))r[`${n}${u}`]=t;return r}});function dq(i){return typeof i=="object"&&!!i&&"type"in i&&i.type==="tool-approval"}var H6=class extends Error{constructor(i,n){super(i),this.name="ParseError",this.type=n.type,this.field=n.field,this.value=n.value,this.line=n.line}};function O0(i){}function aq(i){if(typeof i=="function")throw TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:n=O0,onError:r=O0,onRetry:u=O0,onComment:t}=i,c="",g=!0,h,_="",l="";function $(U){let z=g?U.replace(/^\\xEF\\xBB\\xBF/,""):U,[J,N]=sq(`${c}${z}`);for(let j of J)w(j);c=N,g=!1}function w(U){if(U===""){v();return}if(U.startsWith(":")){t&&t(U.slice(U.startsWith(": ")?2:1));return}let z=U.indexOf(":");if(z!==-1){let J=U.slice(0,z),N=U[z+1]===" "?2:1,j=U.slice(z+N);b(J,j,U);return}b(U,"",U)}function b(U,z,J){switch(U){case"event":l=z;break;case"data":_=`${_}${z}\n`;break;case"id":h=z.includes("\\x00")?void 0:z;break;case"retry":/^\\d+$/.test(z)?u(parseInt(z,10)):r(new H6(`Invalid \\`retry\\` value: "${z}"`,{type:"invalid-retry",value:z,line:J}));break;default:r(new H6(`Unknown field "${U.length>20?`${U.slice(0,20)}…`:U}"`,{type:"unknown-field",field:U,value:z,line:J}));break}}function v(){_.length>0&&n({id:h,event:l||void 0,data:_.endsWith(`\n`)?_.slice(0,-1):_}),h=void 0,_="",l=""}function f(U={}){c&&U.consume&&w(c),g=!0,h=void 0,_="",l="",c=""}return{feed:$,reset:f}}function sq(i){let n=[],r="",u=0;for(;u{t.enqueue(c)},onError(c){i==="terminate"?t.error(c):typeof i=="function"&&i(c)},onRetry:n,onComment:r})},transform(t){u.feed(t)}})}};var k6="vercel.ai.error",nX=Symbol.for(k6),C6,tX=class i extends Error{constructor({name:n,message:r,cause:u}){super(r),this[C6]=!0,this.name=n,this.cause=u}static isInstance(n){return i.hasMarker(n,k6)}static hasMarker(n,r){let u=Symbol.for(r);return typeof n=="object"&&!!n&&u in n&&typeof n[u]=="boolean"&&n[u]===!0}};C6=nX;var gi=tX,R6="AI_APICallError",Z6=`vercel.ai.error.${R6}`,rX=Symbol.for(Z6),e6,Pi=class extends gi{constructor({message:i,url:n,requestBodyValues:r,statusCode:u,responseHeaders:t,responseBody:c,cause:g,isRetryable:h=u!=null&&(u===408||u===409||u===429||u>=500),data:_}){super({name:R6,message:i,cause:g}),this[e6]=!0,this.url=n,this.requestBodyValues=r,this.statusCode=u,this.responseHeaders=t,this.responseBody=c,this.isRetryable=h,this.data=_}static isInstance(i){return gi.hasMarker(i,Z6)}};e6=rX;var p6="AI_EmptyResponseBodyError",d6=`vercel.ai.error.${p6}`,uX=Symbol.for(d6),a6,cX=class extends gi{constructor({message:i="Empty response body"}={}){super({name:p6,message:i}),this[a6]=!0}static isInstance(i){return gi.hasMarker(i,d6)}};a6=uX;function s6(i){return i==null?"unknown error":typeof i=="string"?i:i instanceof Error?i.message:JSON.stringify(i)}var iO="AI_InvalidArgumentError",nO=`vercel.ai.error.${iO}`,oX=Symbol.for(nO),tO,rO=class extends gi{constructor({message:i,cause:n,argument:r}){super({name:iO,message:i,cause:n}),this[tO]=!0,this.argument=r}static isInstance(i){return gi.hasMarker(i,nO)}};tO=oX;var uO="AI_InvalidPromptError",cO=`vercel.ai.error.${uO}`,gX=Symbol.for(cO),oO,hX=class extends gi{constructor({prompt:i,message:n,cause:r}){super({name:uO,message:`Invalid prompt: ${n}`,cause:r}),this[oO]=!0,this.prompt=i}static isInstance(i){return gi.hasMarker(i,cO)}};oO=gX;var gO="AI_InvalidResponseDataError",hO=`vercel.ai.error.${gO}`,_X=Symbol.for(hO),_O,j0=class extends gi{constructor({data:i,message:n=`Invalid response data: ${JSON.stringify(i)}.`}){super({name:gO,message:n}),this[_O]=!0,this.data=i}static isInstance(i){return gi.hasMarker(i,hO)}};_O=_X;var lO="AI_JSONParseError",$O=`vercel.ai.error.${lO}`,lX=Symbol.for($O),wO,vo=class extends gi{constructor({text:i,cause:n}){super({name:lO,message:`JSON parsing failed: Text: ${i}.\nError message: ${s6(n)}`,cause:n}),this[wO]=!0,this.text=i}static isInstance(i){return gi.hasMarker(i,$O)}};wO=lX;var bO="AI_LoadAPIKeyError",vO=`vercel.ai.error.${bO}`,$X=Symbol.for(vO),fO,bo=class extends gi{constructor({message:i}){super({name:bO,message:i}),this[fO]=!0}static isInstance(i){return gi.hasMarker(i,vO)}};fO=$X;var OO="AI_NoSuchModelError",jO=`vercel.ai.error.${OO}`,wX=Symbol.for(jO),UO,U0=class extends gi{constructor({errorName:i=OO,modelId:n,modelType:r,message:u=`No such ${r}: ${n}`}){super({name:i,message:u}),this[UO]=!0,this.modelId=n,this.modelType=r}static isInstance(i){return gi.hasMarker(i,jO)}};UO=wX;var NO="AI_TooManyEmbeddingValuesForCallError",zO=`vercel.ai.error.${NO}`,bX=Symbol.for(zO),WO,DO=class extends gi{constructor(i){super({name:NO,message:`Too many values for a single embedding call. The ${i.provider} model "${i.modelId}" can only embed up to ${i.maxEmbeddingsPerCall} values per call, but ${i.values.length} values were provided.`}),this[WO]=!0,this.provider=i.provider,this.modelId=i.modelId,this.maxEmbeddingsPerCall=i.maxEmbeddingsPerCall,this.values=i.values}static isInstance(i){return gi.hasMarker(i,zO)}};WO=bX;var JO="AI_TypeValidationError",EO=`vercel.ai.error.${JO}`,vX=Symbol.for(EO),HO,fX=class i extends gi{constructor({value:n,cause:r}){super({name:JO,message:`Type validation failed: Value: ${JSON.stringify(n)}.\nError message: ${s6(r)}`,cause:r}),this[HO]=!0,this.value=n}static isInstance(n){return gi.hasMarker(n,EO)}static wrap({value:n,cause:r}){return i.isInstance(r)&&r.value===n?r:new i({value:n,cause:r})}};HO=vX;var hu=fX,GO="AI_UnsupportedFunctionalityError",qO=`vercel.ai.error.${GO}`,OX=Symbol.for(qO),XO,oi=class extends gi{constructor({functionality:i,message:n=`\'${i}\' functionality not supported.`}){super({name:GO,message:n}),this[XO]=!0,this.functionality=i}static isInstance(i){return gi.hasMarker(i,qO)}};XO=OX;function Ui(...i){return i.reduce((n,r)=>({...n,...r??{}}),{})}function $u(i){return Object.fromEntries([...i.headers])}function jX(i=globalThis){return i.window?"runtime/browser":i.navigator?.userAgent?`runtime/${i.navigator.userAgent.toLowerCase()}`:i.process?.versions?.node?`runtime/node.js/${i.process.version.substring(0)}`:i.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function UX(i){return Object.fromEntries(Object.entries(i).filter(([n,r])=>r!=null))}function wu(i,...n){let r=UX(i??{}),u=new Headers(r),t=u.get("user-agent")||"";return u.set("user-agent",[t,...n].filter(Boolean).join(" ")),Object.fromEntries(u)}var Qi=(({prefix:i,size:n=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:u="-"}={})=>{let t=()=>{let c=r.length,g=Array(n);for(let h=0;h`${i}${u}${t()}`})();function N0(i){return(i instanceof Error||i instanceof DOMException)&&(i.name==="AbortError"||i.name==="ResponseAborted"||i.name==="TimeoutError")}var NX=["fetch failed","failed to fetch"];function zX({error:i,url:n,requestBodyValues:r}){if(N0(i))return i;if(i instanceof TypeError&&NX.includes(i.message.toLowerCase())){let u=i.cause;if(u!=null)return new Pi({message:`Cannot connect to API: ${u.message}`,cause:u,url:n,requestBodyValues:r,isRetryable:!0})}return i}var WX="3.0.10";function Oo({apiKey:i,environmentVariableName:n,apiKeyParameterName:r="apiKey",description:u}){if(typeof i=="string")return i;if(i!=null)throw new bo({message:`${u} API key must be a string.`});if(typeof process>"u")throw new bo({message:`${u} API key is missing. Pass it using the \'${r}\' parameter. Environment variables is not supported in this environment.`});if(i=process.env[n],i==null)throw new bo({message:`${u} API key is missing. Pass it using the \'${r}\' parameter or the ${n} environment variable.`});if(typeof i!="string")throw new bo({message:`${u} API key must be a string. The value of the ${n} environment variable is not a string.`});return i}function DX({settingValue:i,environmentVariableName:n}){if(typeof i=="string"||!(i!=null||typeof process>"u")&&(i=process.env[n],!(i==null||typeof i!="string")))return i}function JX(i){let[n,r=""]=i.toLowerCase().split("/");return{mpeg:"mp3","x-wav":"wav",opus:"ogg",mp4:"m4a","x-m4a":"m4a"}[r]??r}var EX=/"__proto__"\\s*:/,HX=/"constructor"\\s*:/;function GX(i){let n=JSON.parse(i);return typeof n!="object"||!n||EX.test(i)===!1&&HX.test(i)===!1?n:qX(n)}function qX(i){let n=[i];for(;n.length;){let r=n;n=[];for(let u of r){if(Object.prototype.hasOwnProperty.call(u,"__proto__")||Object.prototype.hasOwnProperty.call(u,"constructor")&&Object.prototype.hasOwnProperty.call(u.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let t in u){let c=u[t];c&&typeof c=="object"&&n.push(c)}}}return i}function W0(i){let{stackTraceLimit:n}=Error;Error.stackTraceLimit=0;try{return GX(i)}finally{Error.stackTraceLimit=n}}var z0=Symbol.for("vercel.ai.validator");function XX(i){return{[z0]:!0,validate:i}}function LX(i){return typeof i=="object"&&!!i&&z0 in i&&i[z0]===!0&&"validate"in i}function IX(i){return LX(i)?i:YX(i)}function YX(i){return XX(async(n)=>{let r=await i["~standard"].validate(n);return r.issues==null?{success:!0,value:r.value}:{success:!1,error:new hu({value:n,cause:r.issues})}})}async function QX({value:i,schema:n}){let r=await D0({value:i,schema:n});if(!r.success)throw hu.wrap({value:i,cause:r.error});return r.value}async function D0({value:i,schema:n}){let r=IX(n);try{if(r.validate==null)return{success:!0,value:i,rawValue:i};let u=await r.validate(i);return u.success?{success:!0,value:u.value,rawValue:i}:{success:!1,error:hu.wrap({value:i,cause:u.error}),rawValue:i}}catch(u){return{success:!1,error:hu.wrap({value:i,cause:u}),rawValue:i}}}async function mX({text:i,schema:n}){try{let r=W0(i);return n==null?r:QX({value:r,schema:n})}catch(r){throw vo.isInstance(r)||hu.isInstance(r)?r:new vo({text:i,cause:r})}}async function LO({text:i,schema:n}){try{let r=W0(i);return n==null?{success:!0,value:r,rawValue:r}:await D0({value:r,schema:n})}catch(r){return{success:!1,error:vo.isInstance(r)?r:new vo({text:i,cause:r}),rawValue:void 0}}}function G6(i){try{return W0(i),!0}catch{return!1}}function SX({stream:i,schema:n}){return i.pipeThrough(new TextDecoderStream).pipeThrough(new iX).pipeThrough(new TransformStream({async transform({data:r},u){r!=="[DONE]"&&u.enqueue(await LO({text:r,schema:n}))}}))}async function Hi({provider:i,providerOptions:n,schema:r}){if(n?.[i]==null)return;let u=await D0({value:n[i],schema:r});if(!u.success)throw new rO({argument:"providerOptions",message:`invalid ${i} provider options`,cause:u.error});return u.value}var AX=()=>globalThis.fetch,fi=async({url:i,headers:n,body:r,failedResponseHandler:u,successfulResponseHandler:t,abortSignal:c,fetch:g})=>IO({url:i,headers:{"Content-Type":"application/json",...n},body:{content:JSON.stringify(r),values:r},failedResponseHandler:u,successfulResponseHandler:t,abortSignal:c,fetch:g}),BX=async({url:i,headers:n,formData:r,failedResponseHandler:u,successfulResponseHandler:t,abortSignal:c,fetch:g})=>IO({url:i,headers:n,body:{content:r,values:Object.fromEntries(r.entries())},failedResponseHandler:u,successfulResponseHandler:t,abortSignal:c,fetch:g}),IO=async({url:i,headers:n={},body:r,successfulResponseHandler:u,failedResponseHandler:t,abortSignal:c,fetch:g=AX()})=>{try{let h=await g(i,{method:"POST",headers:wu(n,`ai-sdk/provider-utils/${WX}`,jX()),body:r.content,signal:c}),_=$u(h);if(!h.ok){let l;try{l=await t({response:h,url:i,requestBodyValues:r.values})}catch($){throw N0($)||Pi.isInstance($)?$:new Pi({message:"Failed to process error response",cause:$,statusCode:h.status,url:i,responseHeaders:_,requestBodyValues:r.values})}throw l.value}try{return await u({response:h,url:i,requestBodyValues:r.values})}catch(l){throw l instanceof Error&&(N0(l)||Pi.isInstance(l))?l:new Pi({message:"Failed to process successful response",cause:l,statusCode:h.status,url:i,responseHeaders:_,requestBodyValues:r.values})}}catch(h){throw zX({error:h,url:i,requestBodyValues:r.values})}};function YO(i){return i}function yi({id:i,name:n,inputSchema:r}){return({execute:u,outputSchema:t,toModelOutput:c,onInputStart:g,onInputDelta:h,onInputAvailable:_,...l})=>YO({type:"provider-defined",id:i,name:n,args:l,inputSchema:r,outputSchema:t,execute:u,toModelOutput:c,onInputStart:g,onInputDelta:h,onInputAvailable:_})}function Pn({id:i,name:n,inputSchema:r,outputSchema:u}){return({execute:t,toModelOutput:c,onInputStart:g,onInputDelta:h,onInputAvailable:_,...l})=>YO({type:"provider-defined",id:i,name:n,args:l,inputSchema:r,outputSchema:u,execute:t,toModelOutput:c,onInputStart:g,onInputDelta:h,onInputAvailable:_})}async function _u(i){return typeof i=="function"&&(i=i()),Promise.resolve(i)}var bu=({errorSchema:i,errorToMessage:n,isRetryable:r})=>async({response:u,url:t,requestBodyValues:c})=>{let g=await u.text(),h=$u(u);if(g.trim()==="")return{responseHeaders:h,value:new Pi({message:u.statusText,url:t,requestBodyValues:c,statusCode:u.status,responseHeaders:h,responseBody:g,isRetryable:r?.(u)})};try{let _=await mX({text:g,schema:i});return{responseHeaders:h,value:new Pi({message:n(_),url:t,requestBodyValues:c,statusCode:u.status,responseHeaders:h,responseBody:g,data:_,isRetryable:r?.(u,_)})}}catch{return{responseHeaders:h,value:new Pi({message:u.statusText,url:t,requestBodyValues:c,statusCode:u.status,responseHeaders:h,responseBody:g,isRetryable:r?.(u)})}}},Vt=(i)=>async({response:n})=>{let r=$u(n);if(n.body==null)throw new cX({});return{responseHeaders:r,value:SX({stream:n.body,schema:i})}},Vi=(i)=>async({response:n,url:r,requestBodyValues:u})=>{let t=await n.text(),c=await LO({text:t,schema:i}),g=$u(n);if(!c.success)throw new Pi({message:"Invalid JSON response",cause:c.error,statusCode:n.status,responseHeaders:g,responseBody:t,url:r,requestBodyValues:u});return{responseHeaders:g,value:c.value,rawValue:c.rawValue}},KX=()=>async({response:i,url:n,requestBodyValues:r})=>{let u=$u(i);if(!i.body)throw new Pi({message:"Response body is empty",url:n,requestBodyValues:r,statusCode:i.status,responseHeaders:u,responseBody:void 0});try{let t=await i.arrayBuffer();return{responseHeaders:u,value:new Uint8Array(t)}}catch(t){throw new Pi({message:"Failed to read response as array buffer",url:n,requestBodyValues:r,statusCode:i.status,responseHeaders:u,responseBody:void 0,cause:t})}},{btoa:VX,atob:MX}=globalThis;function xX(i){let n=i.replace(/-/g,"+").replace(/_/g,"/"),r=MX(n);return Uint8Array.from(r,(u)=>u.codePointAt(0))}function FX(i){let n="";for(let r=0;ri.error.message}),X6=o.object({citations:o.object({enabled:o.boolean()}).optional(),title:o.string().optional(),context:o.string().optional()}),TX=o.object({sendReasoning:o.boolean().optional(),thinking:o.object({type:o.union([o.literal("enabled"),o.literal("disabled")]),budgetTokens:o.number().optional()}).optional(),disableParallelToolUse:o.boolean().optional(),cacheControl:o.object({type:o.literal("ephemeral"),ttl:o.union([o.literal("5m"),o.literal("1h")]).optional()}).optional()});function Fn(i){let n=i?.anthropic;return n?.cacheControl??n?.cache_control}var kX=o.object({maxCharacters:o.number().optional()}),CX=yi({id:"anthropic.text_editor_20250728",name:"str_replace_based_edit_tool",inputSchema:o.object({command:o.enum(["view","create","str_replace","insert"]),path:o.string(),file_text:o.string().optional(),insert_line:o.number().int().optional(),new_str:o.string().optional(),old_str:o.string().optional(),view_range:o.array(o.number().int()).optional()})}),RX=(i={})=>CX(i),ZX=o.object({maxUses:o.number().optional(),allowedDomains:o.array(o.string()).optional(),blockedDomains:o.array(o.string()).optional(),userLocation:o.object({type:o.literal("approximate"),city:o.string().optional(),region:o.string().optional(),country:o.string().optional(),timezone:o.string().optional()}).optional()}),QO=o.array(o.object({url:o.string(),title:o.string(),pageAge:o.string().nullable(),encryptedContent:o.string(),type:o.literal("web_search_result")})),eX=Pn({id:"anthropic.web_search_20250305",name:"web_search",inputSchema:o.object({query:o.string()}),outputSchema:QO}),pX=(i={})=>eX(i),dX=o.object({maxUses:o.number().optional(),allowedDomains:o.array(o.string()).optional(),blockedDomains:o.array(o.string()).optional(),citations:o.object({enabled:o.boolean()}).optional(),maxContentTokens:o.number().optional()}),mO=o.object({type:o.literal("web_fetch_result"),url:o.string(),content:o.object({type:o.literal("document"),title:o.string(),citations:o.object({enabled:o.boolean()}).optional(),source:o.union([o.object({type:o.literal("base64"),mediaType:o.literal("application/pdf"),data:o.string()}),o.object({type:o.literal("text"),mediaType:o.literal("text/plain"),data:o.string()})])}),retrievedAt:o.string().nullable()}),aX=Pn({id:"anthropic.web_fetch_20250910",name:"web_fetch",inputSchema:o.object({url:o.string()}),outputSchema:mO}),sX=(i={})=>aX(i);function iL({tools:i,toolChoice:n,disableParallelToolUse:r}){i=i?.length?i:void 0;let u=[],t=new Set;if(i==null)return{tools:void 0,toolChoice:void 0,toolWarnings:u,betas:t};let c=[];for(let h of i)switch(h.type){case"function":{let _=Fn(h.providerOptions);c.push({name:h.name,description:h.description,input_schema:h.inputSchema,cache_control:_});break}case"provider-defined":switch(h.id){case"anthropic.code_execution_20250522":t.add("code-execution-2025-05-22"),c.push({type:"code_execution_20250522",name:"code_execution"});break;case"anthropic.computer_20250124":t.add("computer-use-2025-01-24"),c.push({name:"computer",type:"computer_20250124",display_width_px:h.args.displayWidthPx,display_height_px:h.args.displayHeightPx,display_number:h.args.displayNumber});break;case"anthropic.computer_20241022":t.add("computer-use-2024-10-22"),c.push({name:"computer",type:"computer_20241022",display_width_px:h.args.displayWidthPx,display_height_px:h.args.displayHeightPx,display_number:h.args.displayNumber});break;case"anthropic.text_editor_20250124":t.add("computer-use-2025-01-24"),c.push({name:"str_replace_editor",type:"text_editor_20250124"});break;case"anthropic.text_editor_20241022":t.add("computer-use-2024-10-22"),c.push({name:"str_replace_editor",type:"text_editor_20241022"});break;case"anthropic.text_editor_20250429":t.add("computer-use-2025-01-24"),c.push({name:"str_replace_based_edit_tool",type:"text_editor_20250429"});break;case"anthropic.text_editor_20250728":{let _=kX.parse(h.args);c.push({name:"str_replace_based_edit_tool",type:"text_editor_20250728",max_characters:_.maxCharacters});break}case"anthropic.bash_20250124":t.add("computer-use-2025-01-24"),c.push({name:"bash",type:"bash_20250124"});break;case"anthropic.bash_20241022":t.add("computer-use-2024-10-22"),c.push({name:"bash",type:"bash_20241022"});break;case"anthropic.web_fetch_20250910":{t.add("web-fetch-2025-09-10");let _=dX.parse(h.args);c.push({type:"web_fetch_20250910",name:"web_fetch",max_uses:_.maxUses,allowed_domains:_.allowedDomains,blocked_domains:_.blockedDomains,citations:_.citations,max_content_tokens:_.maxContentTokens});break}case"anthropic.web_search_20250305":{let _=ZX.parse(h.args);c.push({type:"web_search_20250305",name:"web_search",max_uses:_.maxUses,allowed_domains:_.allowedDomains,blocked_domains:_.blockedDomains,user_location:_.userLocation});break}default:u.push({type:"unsupported-tool",tool:h});break}break;default:u.push({type:"unsupported-tool",tool:h});break}if(n==null)return{tools:c,toolChoice:r?{type:"auto",disable_parallel_tool_use:r}:void 0,toolWarnings:u,betas:t};let g=n.type;switch(g){case"auto":return{tools:c,toolChoice:{type:"auto",disable_parallel_tool_use:r},toolWarnings:u,betas:t};case"required":return{tools:c,toolChoice:{type:"any",disable_parallel_tool_use:r},toolWarnings:u,betas:t};case"none":return{tools:void 0,toolChoice:void 0,toolWarnings:u,betas:t};case"tool":return{tools:c,toolChoice:{type:"tool",name:n.toolName,disable_parallel_tool_use:r},toolWarnings:u,betas:t};default:throw new oi({functionality:`tool choice type: ${g}`})}}var SO=o.object({type:o.literal("code_execution_result"),stdout:o.string(),stderr:o.string(),return_code:o.number()}),nL=Pn({id:"anthropic.code_execution_20250522",name:"code_execution",inputSchema:o.object({code:o.string()}),outputSchema:SO}),tL=(i={})=>nL(i);function rL(i){if(typeof i=="string")return Buffer.from(i,"base64").toString("utf-8");if(i instanceof Uint8Array)return new TextDecoder().decode(i);throw i instanceof URL?new oi({functionality:"URL-based text documents are not supported for citations"}):new oi({functionality:`unsupported data type for text documents: ${typeof i}`})}async function uL({prompt:i,sendReasoning:n,warnings:r}){let u=new Set,t=cL(i),c,g=[];async function h(l){return(await Hi({provider:"anthropic",providerOptions:l,schema:X6}))?.citations?.enabled??!1}async function _(l){let $=await Hi({provider:"anthropic",providerOptions:l,schema:X6});return{title:$?.title,context:$?.context}}for(let l=0;l({type:"text",text:v,cache_control:Fn(f)}));break;case"user":{let v=[];for(let f of $.messages){let{role:U,content:z}=f;switch(U){case"user":for(let J=0;J{switch(X.type){case"text":return{type:"text",text:X.text,cache_control:void 0};case"media":if(X.mediaType.startsWith("image/"))return{type:"image",source:{type:"base64",media_type:X.mediaType,data:X.data},cache_control:void 0};throw new oi({functionality:`media type: ${X.mediaType}`})}});break;case"text":case"error-text":E=W.value;break;case"json":case"error-json":default:E=JSON.stringify(W.value);break}v.push({type:"tool_result",tool_use_id:N.toolCallId,content:E,is_error:W.type==="error-text"||W.type==="error-json"?!0:void 0,cache_control:O})}break;default:throw Error(`Unsupported role: ${U}`)}}g.push({role:"user",content:v});break}case"assistant":{let v=[];for(let f=0;f<$.messages.length;f++){let U=$.messages[f],z=f===$.messages.length-1,{content:J}=U;for(let N=0;N({url:H.url,title:H.title,page_age:H.pageAge,encrypted_content:H.encryptedContent,type:H.type})),cache_control:W});break}r.push({type:"other",message:`provider executed tool result for tool ${j.toolName} is not supported`});break}}}g.push({role:"assistant",content:v});break}default:throw Error(`content type: ${b}`)}}return{prompt:{system:c,messages:g},betas:u}}function cL(i){let n=[],r;for(let u of i){let{role:t}=u;switch(t){case"system":r?.type!=="system"&&(r={type:"system",messages:[]},n.push(r)),r.messages.push(u);break;case"assistant":r?.type!=="assistant"&&(r={type:"assistant",messages:[]},n.push(r)),r.messages.push(u);break;case"user":r?.type!=="user"&&(r={type:"user",messages:[]},n.push(r)),r.messages.push(u);break;case"tool":r?.type!=="user"&&(r={type:"user",messages:[]},n.push(r)),r.messages.push(u);break;default:throw Error(`Unsupported role: ${t}`)}}return n}function L6({finishReason:i,isJsonResponseFromTool:n}){switch(i){case"pause_turn":case"end_turn":case"stop_sequence":return"stop";case"refusal":return"content-filter";case"tool_use":return n?"stop":"tool-calls";case"max_tokens":return"length";default:return"unknown"}}var gu={webSearchResult:o.object({type:o.literal("web_search_result_location"),cited_text:o.string(),url:o.string(),title:o.string(),encrypted_index:o.string()}),pageLocation:o.object({type:o.literal("page_location"),cited_text:o.string(),document_index:o.number(),document_title:o.string().nullable(),start_page_number:o.number(),end_page_number:o.number()}),charLocation:o.object({type:o.literal("char_location"),cited_text:o.string(),document_index:o.number(),document_title:o.string().nullable(),start_char_index:o.number(),end_char_index:o.number()})},AO=o.discriminatedUnion("type",[gu.webSearchResult,gu.pageLocation,gu.charLocation]);o.discriminatedUnion("type",[gu.pageLocation,gu.charLocation]);function I6(i,n,r,u){if(i.type==="page_location"||i.type==="char_location"){let t=oL(i,n,r);t&&u(t)}}function oL(i,n,r){let u=n[i.document_index];if(!u)return null;let t=i.type==="page_location"?{citedText:i.cited_text,startPageNumber:i.start_page_number,endPageNumber:i.end_page_number}:{citedText:i.cited_text,startCharIndex:i.start_char_index,endCharIndex:i.end_char_index};return{type:"source",sourceType:"document",id:r(),mediaType:u.mediaType,title:i.document_title??u.title,filename:u.filename,providerMetadata:{anthropic:t}}}var gL=class{constructor(i,n){this.specificationVersion="v2",this.modelId=i,this.config=n,this.generateId=n.generateId??Qi}supportsUrl(i){return i.protocol==="https:"}get provider(){return this.config.provider}get supportedUrls(){var i;return(i=this.config).supportedUrls?.call(i)??{}}async getArgs({prompt:i,maxOutputTokens:n=4096,temperature:r,topP:u,topK:t,frequencyPenalty:c,presencePenalty:g,stopSequences:h,responseFormat:_,seed:l,tools:$,toolChoice:w,providerOptions:b}){let v=[];c!=null&&v.push({type:"unsupported-setting",setting:"frequencyPenalty"}),g!=null&&v.push({type:"unsupported-setting",setting:"presencePenalty"}),l!=null&&v.push({type:"unsupported-setting",setting:"seed"}),_?.type==="json"&&(_.schema==null?v.push({type:"unsupported-setting",setting:"responseFormat",details:"JSON response format requires a schema. The response format is ignored."}):$!=null&&v.push({type:"unsupported-setting",setting:"tools",details:"JSON response format does not support tools. The provided tools are ignored."}));let f=_?.type==="json"&&_.schema!=null?{type:"function",name:"json",description:"Respond with a JSON object.",inputSchema:_.schema}:void 0,U=await Hi({provider:"anthropic",providerOptions:b,schema:TX}),{prompt:z,betas:J}=await uL({prompt:i,sendReasoning:U?.sendReasoning??!0,warnings:v}),N=U?.thinking?.type==="enabled",j=U?.thinking?.budgetTokens,O={model:this.modelId,max_tokens:n,temperature:r,top_k:t,top_p:u,stop_sequences:h,...N&&{thinking:{type:"enabled",budget_tokens:j}},system:z.system,messages:z.messages};if(N){if(j==null)throw new oi({functionality:"thinking requires a budget"});O.temperature!=null&&(O.temperature=void 0,v.push({type:"unsupported-setting",setting:"temperature",details:"temperature is not supported when thinking is enabled"})),t!=null&&(O.top_k=void 0,v.push({type:"unsupported-setting",setting:"topK",details:"topK is not supported when thinking is enabled"})),u!=null&&(O.top_p=void 0,v.push({type:"unsupported-setting",setting:"topP",details:"topP is not supported when thinking is enabled"})),O.max_tokens=n+j}let{tools:W,toolChoice:E,toolWarnings:X,betas:H}=iL(f==null?{tools:$??[],toolChoice:w,disableParallelToolUse:U?.disableParallelToolUse}:{tools:[f],toolChoice:{type:"tool",toolName:f.name},disableParallelToolUse:!0});return{args:{...O,tools:W,tool_choice:E},warnings:[...v,...X],betas:new Set([...J,...H]),usesJsonResponseTool:f!=null}}async getHeaders({betas:i,headers:n}){return Ui(await _u(this.config.headers),i.size>0?{"anthropic-beta":Array.from(i).join(",")}:{},n)}buildRequestUrl(i){var n;return(n=this.config).buildRequestUrl?.call(n,this.config.baseURL,i)??`${this.config.baseURL}/messages`}transformRequestBody(i){var n;return(n=this.config).transformRequestBody?.call(n,i)??i}extractCitationDocuments(i){return i.filter((n)=>n.role==="user").flatMap((n)=>n.content).filter((n)=>n.type!=="file"||n.mediaType!=="application/pdf"&&n.mediaType!=="text/plain"?!1:n.providerOptions?.anthropic?.citations?.enabled??!1).map((n)=>{let r=n;return{title:r.filename??"Untitled Document",filename:r.filename,mediaType:r.mediaType}})}async doGenerate(i){let{args:n,warnings:r,betas:u,usesJsonResponseTool:t}=await this.getArgs(i),c=this.extractCitationDocuments(i.prompt),{responseHeaders:g,value:h,rawValue:_}=await fi({url:this.buildRequestUrl(!1),headers:await this.getHeaders({betas:u,headers:i.headers}),body:this.transformRequestBody(n),failedResponseHandler:q6,successfulResponseHandler:Vi(hL),abortSignal:i.abortSignal,fetch:this.config.fetch}),l=[];for(let $ of h.content)switch($.type){case"text":if(!t&&(l.push({type:"text",text:$.text}),$.citations))for(let w of $.citations)I6(w,c,this.generateId,(b)=>l.push(b));break;case"thinking":l.push({type:"reasoning",text:$.thinking,providerMetadata:{anthropic:{signature:$.signature}}});break;case"redacted_thinking":l.push({type:"reasoning",text:"",providerMetadata:{anthropic:{redactedData:$.data}}});break;case"tool_use":l.push(t?{type:"text",text:JSON.stringify($.input)}:{type:"tool-call",toolCallId:$.id,toolName:$.name,input:JSON.stringify($.input)});break;case"server_tool_use":($.name==="web_search"||$.name==="code_execution"||$.name==="web_fetch")&&l.push({type:"tool-call",toolCallId:$.id,toolName:$.name,input:JSON.stringify($.input),providerExecuted:!0});break;case"web_fetch_tool_result":$.content.type==="web_fetch_result"?l.push({type:"tool-result",toolCallId:$.tool_use_id,toolName:"web_fetch",result:{type:"web_fetch_result",url:$.content.url,retrievedAt:$.content.retrieved_at,content:{type:$.content.content.type,title:$.content.content.title,citations:$.content.content.citations,source:{type:$.content.content.source.type,mediaType:$.content.content.source.media_type,data:$.content.content.source.data}}},providerExecuted:!0}):$.content.type==="web_fetch_tool_result_error"&&l.push({type:"tool-result",toolCallId:$.tool_use_id,toolName:"web_fetch",isError:!0,result:{type:"web_fetch_tool_result_error",errorCode:$.content.error_code},providerExecuted:!0});break;case"web_search_tool_result":if(Array.isArray($.content)){l.push({type:"tool-result",toolCallId:$.tool_use_id,toolName:"web_search",result:$.content.map((w)=>({url:w.url,title:w.title,pageAge:w.page_age??null,encryptedContent:w.encrypted_content,type:w.type})),providerExecuted:!0});for(let w of $.content)l.push({type:"source",sourceType:"url",id:this.generateId(),url:w.url,title:w.title,providerMetadata:{anthropic:{pageAge:w.page_age??null}}})}else l.push({type:"tool-result",toolCallId:$.tool_use_id,toolName:"web_search",isError:!0,result:{type:"web_search_tool_result_error",errorCode:$.content.error_code},providerExecuted:!0});break;case"code_execution_tool_result":$.content.type==="code_execution_result"?l.push({type:"tool-result",toolCallId:$.tool_use_id,toolName:"code_execution",result:{type:$.content.type,stdout:$.content.stdout,stderr:$.content.stderr,return_code:$.content.return_code},providerExecuted:!0}):$.content.type==="code_execution_tool_result_error"&&l.push({type:"tool-result",toolCallId:$.tool_use_id,toolName:"code_execution",isError:!0,result:{type:"code_execution_tool_result_error",errorCode:$.content.error_code},providerExecuted:!0});break}return{content:l,finishReason:L6({finishReason:h.stop_reason,isJsonResponseFromTool:t}),usage:{inputTokens:h.usage.input_tokens,outputTokens:h.usage.output_tokens,totalTokens:h.usage.input_tokens+h.usage.output_tokens,cachedInputTokens:h.usage.cache_read_input_tokens??void 0},request:{body:n},response:{id:h.id??void 0,modelId:h.model??void 0,headers:g,body:_},warnings:r,providerMetadata:{anthropic:{usage:h.usage,cacheCreationInputTokens:h.usage.cache_creation_input_tokens??null,stopSequence:h.stop_sequence??null}}}}async doStream(i){let{args:n,warnings:r,betas:u,usesJsonResponseTool:t}=await this.getArgs(i),c=this.extractCitationDocuments(i.prompt),g={...n,stream:!0},{responseHeaders:h,value:_}=await fi({url:this.buildRequestUrl(!0),headers:await this.getHeaders({betas:u,headers:i.headers}),body:this.transformRequestBody(g),failedResponseHandler:q6,successfulResponseHandler:Vt(_L),abortSignal:i.abortSignal,fetch:this.config.fetch}),l="unknown",$={inputTokens:void 0,outputTokens:void 0,totalTokens:void 0},w={},b,v=null,f=null,U,z=this.generateId;return{stream:_.pipeThrough(new TransformStream({start(J){J.enqueue({type:"stream-start",warnings:r})},transform(J,N){if(i.includeRawChunks&&N.enqueue({type:"raw",rawValue:J.rawValue}),!J.success){N.enqueue({type:"error",error:J.error});return}let j=J.value;switch(j.type){case"ping":return;case"content_block_start":{let O=j.content_block.type;switch(U=O,O){case"text":w[j.index]={type:"text"},N.enqueue({type:"text-start",id:String(j.index)});return;case"thinking":w[j.index]={type:"reasoning"},N.enqueue({type:"reasoning-start",id:String(j.index)});return;case"redacted_thinking":w[j.index]={type:"reasoning"},N.enqueue({type:"reasoning-start",id:String(j.index),providerMetadata:{anthropic:{redactedData:j.content_block.data}}});return;case"tool_use":w[j.index]=t?{type:"text"}:{type:"tool-call",toolCallId:j.content_block.id,toolName:j.content_block.name,input:""},N.enqueue(t?{type:"text-start",id:String(j.index)}:{type:"tool-input-start",id:j.content_block.id,toolName:j.content_block.name});return;case"server_tool_use":(j.content_block.name==="web_fetch"||j.content_block.name==="web_search"||j.content_block.name==="code_execution")&&(w[j.index]={type:"tool-call",toolCallId:j.content_block.id,toolName:j.content_block.name,input:"",providerExecuted:!0},N.enqueue({type:"tool-input-start",id:j.content_block.id,toolName:j.content_block.name,providerExecuted:!0}));return;case"web_fetch_tool_result":{let W=j.content_block;W.content.type==="web_fetch_result"?N.enqueue({type:"tool-result",toolCallId:W.tool_use_id,toolName:"web_fetch",result:{type:"web_fetch_result",url:W.content.url,retrievedAt:W.content.retrieved_at,content:{type:W.content.content.type,title:W.content.content.title,citations:W.content.content.citations,source:{type:W.content.content.source.type,mediaType:W.content.content.source.media_type,data:W.content.content.source.data}}}}):W.content.type==="web_fetch_tool_result_error"&&N.enqueue({type:"tool-result",toolCallId:W.tool_use_id,toolName:"web_fetch",isError:!0,result:{type:"web_fetch_tool_result_error",errorCode:W.content.error_code},providerExecuted:!0});return}case"web_search_tool_result":{let W=j.content_block;if(Array.isArray(W.content)){N.enqueue({type:"tool-result",toolCallId:W.tool_use_id,toolName:"web_search",result:W.content.map((E)=>({url:E.url,title:E.title,pageAge:E.page_age??null,encryptedContent:E.encrypted_content,type:E.type})),providerExecuted:!0});for(let E of W.content)N.enqueue({type:"source",sourceType:"url",id:z(),url:E.url,title:E.title,providerMetadata:{anthropic:{pageAge:E.page_age??null}}})}else N.enqueue({type:"tool-result",toolCallId:W.tool_use_id,toolName:"web_search",isError:!0,result:{type:"web_search_tool_result_error",errorCode:W.content.error_code},providerExecuted:!0});return}case"code_execution_tool_result":{let W=j.content_block;W.content.type==="code_execution_result"?N.enqueue({type:"tool-result",toolCallId:W.tool_use_id,toolName:"code_execution",result:{type:W.content.type,stdout:W.content.stdout,stderr:W.content.stderr,return_code:W.content.return_code},providerExecuted:!0}):W.content.type==="code_execution_tool_result_error"&&N.enqueue({type:"tool-result",toolCallId:W.tool_use_id,toolName:"code_execution",isError:!0,result:{type:"code_execution_tool_result_error",errorCode:W.content.error_code},providerExecuted:!0});return}default:throw Error(`Unsupported content block type: ${O}`)}}case"content_block_stop":if(w[j.index]!=null){let O=w[j.index];switch(O.type){case"text":N.enqueue({type:"text-end",id:String(j.index)});break;case"reasoning":N.enqueue({type:"reasoning-end",id:String(j.index)});break;case"tool-call":t||(N.enqueue({type:"tool-input-end",id:O.toolCallId}),N.enqueue(O));break}delete w[j.index]}U=void 0;return;case"content_block_delta":{let O=j.delta.type;switch(O){case"text_delta":if(t)return;N.enqueue({type:"text-delta",id:String(j.index),delta:j.delta.text});return;case"thinking_delta":N.enqueue({type:"reasoning-delta",id:String(j.index),delta:j.delta.thinking});return;case"signature_delta":U==="thinking"&&N.enqueue({type:"reasoning-delta",id:String(j.index),delta:"",providerMetadata:{anthropic:{signature:j.delta.signature}}});return;case"input_json_delta":{let W=w[j.index],E=j.delta.partial_json;if(t){if(W?.type!=="text")return;N.enqueue({type:"text-delta",id:String(j.index),delta:E})}else{if(W?.type!=="tool-call")return;N.enqueue({type:"tool-input-delta",id:W.toolCallId,delta:E}),W.input+=E}return}case"citations_delta":{let W=j.delta.citation;I6(W,c,z,(E)=>N.enqueue(E));return}default:throw Error(`Unsupported delta type: ${O}`)}}case"message_start":$.inputTokens=j.message.usage.input_tokens,$.cachedInputTokens=j.message.usage.cache_read_input_tokens??void 0,b={...j.message.usage},v=j.message.usage.cache_creation_input_tokens??null,N.enqueue({type:"response-metadata",id:j.message.id??void 0,modelId:j.message.model??void 0});return;case"message_delta":$.outputTokens=j.usage.output_tokens,$.totalTokens=($.inputTokens??0)+(j.usage.output_tokens??0),l=L6({finishReason:j.delta.stop_reason,isJsonResponseFromTool:t}),f=j.delta.stop_sequence??null,b={...b,...j.usage};return;case"message_stop":N.enqueue({type:"finish",finishReason:l,usage:$,providerMetadata:{anthropic:{usage:b??null,cacheCreationInputTokens:v,stopSequence:f}}});return;case"error":N.enqueue({type:"error",error:j.error});return;default:throw Error(`Unsupported chunk type: ${j}`)}}})),request:{body:g},response:{headers:h}}}},hL=o.object({type:o.literal("message"),id:o.string().nullish(),model:o.string().nullish(),content:o.array(o.discriminatedUnion("type",[o.object({type:o.literal("text"),text:o.string(),citations:o.array(AO).optional()}),o.object({type:o.literal("thinking"),thinking:o.string(),signature:o.string()}),o.object({type:o.literal("redacted_thinking"),data:o.string()}),o.object({type:o.literal("tool_use"),id:o.string(),name:o.string(),input:o.unknown()}),o.object({type:o.literal("server_tool_use"),id:o.string(),name:o.string(),input:o.record(o.string(),o.unknown()).nullish()}),o.object({type:o.literal("web_fetch_tool_result"),tool_use_id:o.string(),content:o.union([o.object({type:o.literal("web_fetch_result"),url:o.string(),retrieved_at:o.string(),content:o.object({type:o.literal("document"),title:o.string().nullable(),citations:o.object({enabled:o.boolean()}).optional(),source:o.object({type:o.literal("text"),media_type:o.string(),data:o.string()})})}),o.object({type:o.literal("web_fetch_tool_result_error"),error_code:o.string()})])}),o.object({type:o.literal("web_search_tool_result"),tool_use_id:o.string(),content:o.union([o.array(o.object({type:o.literal("web_search_result"),url:o.string(),title:o.string(),encrypted_content:o.string(),page_age:o.string().nullish()})),o.object({type:o.literal("web_search_tool_result_error"),error_code:o.string()})])}),o.object({type:o.literal("code_execution_tool_result"),tool_use_id:o.string(),content:o.union([o.object({type:o.literal("code_execution_result"),stdout:o.string(),stderr:o.string(),return_code:o.number()}),o.object({type:o.literal("code_execution_tool_result_error"),error_code:o.string()})])})])),stop_reason:o.string().nullish(),stop_sequence:o.string().nullish(),usage:o.looseObject({input_tokens:o.number(),output_tokens:o.number(),cache_creation_input_tokens:o.number().nullish(),cache_read_input_tokens:o.number().nullish()})}),_L=o.discriminatedUnion("type",[o.object({type:o.literal("message_start"),message:o.object({id:o.string().nullish(),model:o.string().nullish(),usage:o.looseObject({input_tokens:o.number(),cache_creation_input_tokens:o.number().nullish(),cache_read_input_tokens:o.number().nullish()})})}),o.object({type:o.literal("content_block_start"),index:o.number(),content_block:o.discriminatedUnion("type",[o.object({type:o.literal("text"),text:o.string()}),o.object({type:o.literal("thinking"),thinking:o.string()}),o.object({type:o.literal("tool_use"),id:o.string(),name:o.string()}),o.object({type:o.literal("redacted_thinking"),data:o.string()}),o.object({type:o.literal("server_tool_use"),id:o.string(),name:o.string(),input:o.record(o.string(),o.unknown()).nullish()}),o.object({type:o.literal("web_fetch_tool_result"),tool_use_id:o.string(),content:o.union([o.object({type:o.literal("web_fetch_result"),url:o.string(),retrieved_at:o.string(),content:o.object({type:o.literal("document"),title:o.string().nullable(),citations:o.object({enabled:o.boolean()}).optional(),source:o.object({type:o.literal("text"),media_type:o.string(),data:o.string()})})}),o.object({type:o.literal("web_fetch_tool_result_error"),error_code:o.string()})])}),o.object({type:o.literal("web_search_tool_result"),tool_use_id:o.string(),content:o.union([o.array(o.object({type:o.literal("web_search_result"),url:o.string(),title:o.string(),encrypted_content:o.string(),page_age:o.string().nullish()})),o.object({type:o.literal("web_search_tool_result_error"),error_code:o.string()})])}),o.object({type:o.literal("code_execution_tool_result"),tool_use_id:o.string(),content:o.union([o.object({type:o.literal("code_execution_result"),stdout:o.string(),stderr:o.string(),return_code:o.number()}),o.object({type:o.literal("code_execution_tool_result_error"),error_code:o.string()})])})])}),o.object({type:o.literal("content_block_delta"),index:o.number(),delta:o.discriminatedUnion("type",[o.object({type:o.literal("input_json_delta"),partial_json:o.string()}),o.object({type:o.literal("text_delta"),text:o.string()}),o.object({type:o.literal("thinking_delta"),thinking:o.string()}),o.object({type:o.literal("signature_delta"),signature:o.string()}),o.object({type:o.literal("citations_delta"),citation:AO})])}),o.object({type:o.literal("content_block_stop"),index:o.number()}),o.object({type:o.literal("error"),error:o.object({type:o.string(),message:o.string()})}),o.object({type:o.literal("message_delta"),delta:o.object({stop_reason:o.string().nullish(),stop_sequence:o.string().nullish()}),usage:o.looseObject({output_tokens:o.number(),cache_creation_input_tokens:o.number().nullish()})}),o.object({type:o.literal("message_stop")}),o.object({type:o.literal("ping")})]),lL=o.object({signature:o.string().optional(),redactedData:o.string().optional()}),$L=yi({id:"anthropic.bash_20241022",name:"bash",inputSchema:gt.object({command:gt.string(),restart:gt.boolean().optional()})}),wL=yi({id:"anthropic.bash_20250124",name:"bash",inputSchema:gt.object({command:gt.string(),restart:gt.boolean().optional()})}),bL=yi({id:"anthropic.computer_20241022",name:"computer",inputSchema:o.object({action:o.enum(["key","type","mouse_move","left_click","left_click_drag","right_click","middle_click","double_click","screenshot","cursor_position"]),coordinate:o.array(o.number().int()).optional(),text:o.string().optional()})}),vL=yi({id:"anthropic.computer_20250124",name:"computer",inputSchema:o.object({action:o.enum(["key","hold_key","type","cursor_position","mouse_move","left_mouse_down","left_mouse_up","left_click","left_click_drag","right_click","middle_click","double_click","triple_click","scroll","wait","screenshot"]),coordinate:o.tuple([o.number().int(),o.number().int()]).optional(),duration:o.number().optional(),scroll_amount:o.number().optional(),scroll_direction:o.enum(["up","down","left","right"]).optional(),start_coordinate:o.tuple([o.number().int(),o.number().int()]).optional(),text:o.string().optional()})}),fL=yi({id:"anthropic.text_editor_20241022",name:"str_replace_editor",inputSchema:o.object({command:o.enum(["view","create","str_replace","insert","undo_edit"]),path:o.string(),file_text:o.string().optional(),insert_line:o.number().int().optional(),new_str:o.string().optional(),old_str:o.string().optional(),view_range:o.array(o.number().int()).optional()})}),OL=yi({id:"anthropic.text_editor_20250124",name:"str_replace_editor",inputSchema:o.object({command:o.enum(["view","create","str_replace","insert","undo_edit"]),path:o.string(),file_text:o.string().optional(),insert_line:o.number().int().optional(),new_str:o.string().optional(),old_str:o.string().optional(),view_range:o.array(o.number().int()).optional()})}),jL=yi({id:"anthropic.text_editor_20250429",name:"str_replace_based_edit_tool",inputSchema:o.object({command:o.enum(["view","create","str_replace","insert"]),path:o.string(),file_text:o.string().optional(),insert_line:o.number().int().optional(),new_str:o.string().optional(),old_str:o.string().optional(),view_range:o.array(o.number().int()).optional()})}),UL={bash_20241022:$L,bash_20250124:wL,codeExecution_20250522:tL,computer_20241022:bL,computer_20250124:vL,textEditor_20241022:fL,textEditor_20250124:OL,textEditor_20250429:jL,textEditor_20250728:RX,webFetch_20250910:sX,webSearch_20250305:pX};function NL(i={}){let n=jo(i.baseURL)??"https://api.anthropic.com/v1",r=()=>wu({"anthropic-version":"2023-06-01","x-api-key":Oo({apiKey:i.apiKey,environmentVariableName:"ANTHROPIC_API_KEY",description:"Anthropic"}),...i.headers},`ai-sdk/anthropic/${PX}`),u=(c)=>new gL(c,{provider:"anthropic.messages",baseURL:n,headers:r,fetch:i.fetch,generateId:i.generateId??Qi,supportedUrls:()=>({"image/*":[/^https?:\\/\\/.*$/]})}),t=function(c){if(new.target)throw Error("The Anthropic model function cannot be called with the new keyword.");return u(c)};return t.languageModel=u,t.chat=u,t.messages=u,t.textEmbeddingModel=(c)=>{throw new U0({modelId:c,modelType:"textEmbeddingModel"})},t.imageModel=(c)=>{throw new U0({modelId:c,modelType:"imageModel"})},t.tools=UL,t}NL();var zL="2.0.17",WL=o.object({error:o.object({code:o.number().nullable(),message:o.string(),status:o.string()})}),lu=bu({errorSchema:WL,errorToMessage:(i)=>i.error.message}),DL=o.object({outputDimensionality:o.number().optional(),taskType:o.enum(["SEMANTIC_SIMILARITY","CLASSIFICATION","CLUSTERING","RETRIEVAL_DOCUMENT","RETRIEVAL_QUERY","QUESTION_ANSWERING","FACT_VERIFICATION","CODE_RETRIEVAL_QUERY"]).optional()}),JL=class{constructor(i,n){this.specificationVersion="v2",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0,this.modelId=i,this.config=n}get provider(){return this.config.provider}async doEmbed({values:i,headers:n,abortSignal:r,providerOptions:u}){let t=await Hi({provider:"google",providerOptions:u,schema:DL});if(i.length>this.maxEmbeddingsPerCall)throw new DO({provider:this.provider,modelId:this.modelId,maxEmbeddingsPerCall:this.maxEmbeddingsPerCall,values:i});let c=Ui(await _u(this.config.headers),n);if(i.length===1){let{responseHeaders:l,value:$,rawValue:w}=await fi({url:`${this.config.baseURL}/models/${this.modelId}:embedContent`,headers:c,body:{model:`models/${this.modelId}`,content:{parts:[{text:i[0]}]},outputDimensionality:t?.outputDimensionality,taskType:t?.taskType},failedResponseHandler:lu,successfulResponseHandler:Vi(HL),abortSignal:r,fetch:this.config.fetch});return{embeddings:[$.embedding.values],usage:void 0,response:{headers:l,body:w}}}let{responseHeaders:g,value:h,rawValue:_}=await fi({url:`${this.config.baseURL}/models/${this.modelId}:batchEmbedContents`,headers:c,body:{requests:i.map((l)=>({model:`models/${this.modelId}`,content:{role:"user",parts:[{text:l}]},outputDimensionality:t?.outputDimensionality,taskType:t?.taskType}))},failedResponseHandler:lu,successfulResponseHandler:Vi(EL),abortSignal:r,fetch:this.config.fetch});return{embeddings:h.embeddings.map((l)=>l.values),usage:void 0,response:{headers:g,body:_}}}},EL=o.object({embeddings:o.array(o.object({values:o.array(o.number())}))}),HL=o.object({embedding:o.object({values:o.array(o.number())})});function gn(i){if(i==null||GL(i))return;if(typeof i=="boolean")return{type:"boolean",properties:{}};let{type:n,description:r,required:u,properties:t,items:c,allOf:g,anyOf:h,oneOf:_,format:l,const:$,minLength:w,enum:b}=i,v={};if(r&&(v.description=r),u&&(v.required=u),l&&(v.format=l),$!==void 0&&(v.enum=[$]),n&&(Array.isArray(n)?n.includes("null")?(v.type=n.filter((f)=>f!=="null")[0],v.nullable=!0):v.type=n:n==="null"?v.type="null":v.type=n),b!==void 0&&(v.enum=b),t!=null&&(v.properties=Object.entries(t).reduce((f,[U,z])=>(f[U]=gn(z),f),{})),c&&(v.items=Array.isArray(c)?c.map(gn):gn(c)),g&&(v.allOf=g.map(gn)),h)if(h.some((f)=>typeof f=="object"&&f?.type==="null")){let f=h.filter((U)=>!(typeof U=="object"&&U?.type==="null"));if(f.length===1){let U=gn(f[0]);typeof U=="object"&&(v.nullable=!0,Object.assign(v,U))}else v.anyOf=f.map(gn),v.nullable=!0}else v.anyOf=h.map(gn);return _&&(v.oneOf=_.map(gn)),w!==void 0&&(v.minLength=w),v}function GL(i){return typeof i=="object"&&!!i&&i.type==="object"&&(i.properties==null||Object.keys(i.properties).length===0)&&!i.additionalProperties}function qL(i,n){let r=[],u=[],t=!0,c=n?.isGemmaModel??!1;for(let{role:g,content:h}of i)switch(g){case"system":if(!t)throw new oi({functionality:"system messages are only supported at the beginning of the conversation"});r.push({text:h});break;case"user":{t=!1;let _=[];for(let l of h)switch(l.type){case"text":_.push({text:l.text});break;case"file":{let $=l.mediaType==="image/*"?"image/jpeg":l.mediaType;_.push(l.data instanceof URL?{fileData:{mimeType:$,fileUri:l.data.toString()}}:{inlineData:{mimeType:$,data:pi(l.data)}});break}}u.push({role:"user",parts:_});break}case"assistant":t=!1,u.push({role:"model",parts:h.map((_)=>{switch(_.type){case"text":return _.text.length===0?void 0:{text:_.text,thoughtSignature:_.providerOptions?.google?.thoughtSignature};case"reasoning":return _.text.length===0?void 0:{text:_.text,thought:!0,thoughtSignature:_.providerOptions?.google?.thoughtSignature};case"file":if(_.mediaType!=="image/png")throw new oi({functionality:"Only PNG images are supported in assistant messages"});if(_.data instanceof URL)throw new oi({functionality:"File data URLs in assistant messages are not supported"});return{inlineData:{mimeType:_.mediaType,data:pi(_.data)}};case"tool-call":return{functionCall:{name:_.toolName,args:_.input},thoughtSignature:_.providerOptions?.google?.thoughtSignature}}}).filter((_)=>_!==void 0)});break;case"tool":{t=!1;let _=[];for(let l of h){let $=l.output;if($.type==="content")for(let w of $.value)switch(w.type){case"text":_.push({functionResponse:{name:l.toolName,response:{name:l.toolName,content:w.text}}});break;case"media":_.push({inlineData:{mimeType:w.mediaType,data:w.data}},{text:"Tool executed successfully and returned this image as a response"});break;default:_.push({text:JSON.stringify(w)});break}else _.push({functionResponse:{name:l.toolName,response:{name:l.toolName,content:$.value}}})}u.push({role:"user",parts:_});break}}if(c&&r.length>0&&u.length>0&&u[0].role==="user"){let g=r.map((h)=>h.text).join(`\n\n`);u[0].parts.unshift({text:g+`\n\n`})}return{systemInstruction:r.length>0&&!c?{parts:r}:void 0,contents:u}}function Y6(i){return i.includes("/")?i:`models/${i}`}var XL=o.object({responseModalities:o.array(o.enum(["TEXT","IMAGE"])).optional(),thinkingConfig:o.object({thinkingBudget:o.number().optional(),includeThoughts:o.boolean().optional()}).optional(),cachedContent:o.string().optional(),structuredOutputs:o.boolean().optional(),safetySettings:o.array(o.object({category:o.enum(["HARM_CATEGORY_UNSPECIFIED","HARM_CATEGORY_HATE_SPEECH","HARM_CATEGORY_DANGEROUS_CONTENT","HARM_CATEGORY_HARASSMENT","HARM_CATEGORY_SEXUALLY_EXPLICIT","HARM_CATEGORY_CIVIC_INTEGRITY"]),threshold:o.enum(["HARM_BLOCK_THRESHOLD_UNSPECIFIED","BLOCK_LOW_AND_ABOVE","BLOCK_MEDIUM_AND_ABOVE","BLOCK_ONLY_HIGH","BLOCK_NONE","OFF"])})).optional(),threshold:o.enum(["HARM_BLOCK_THRESHOLD_UNSPECIFIED","BLOCK_LOW_AND_ABOVE","BLOCK_MEDIUM_AND_ABOVE","BLOCK_ONLY_HIGH","BLOCK_NONE","OFF"]).optional(),audioTimestamp:o.boolean().optional(),labels:o.record(o.string(),o.string()).optional()});function LL({tools:i,toolChoice:n,modelId:r}){i=i?.length?i:void 0;let u=[],t=r.includes("gemini-2"),c=r.includes("gemini-1.5-flash")&&!r.includes("-8b");if(i==null)return{tools:void 0,toolConfig:void 0,toolWarnings:u};let g=i.some(($)=>$.type==="function"),h=i.some(($)=>$.type==="provider-defined");if(g&&h&&u.push({type:"unsupported-tool",tool:i.find(($)=>$.type==="function"),details:"Cannot mix function tools with provider-defined tools in the same request. Please use either function tools or provider-defined tools, but not both."}),h){let $={};return i.filter((w)=>w.type==="provider-defined").forEach((w)=>{switch(w.id){case"google.google_search":t?$.googleSearch={}:c?$.googleSearchRetrieval={dynamicRetrievalConfig:{mode:w.args.mode,dynamicThreshold:w.args.dynamicThreshold}}:$.googleSearchRetrieval={};break;case"google.url_context":t?$.urlContext={}:u.push({type:"unsupported-tool",tool:w,details:"The URL context tool is not supported with other Gemini models than Gemini 2."});break;case"google.code_execution":t?$.codeExecution={}:u.push({type:"unsupported-tool",tool:w,details:"The code execution tools is not supported with other Gemini models than Gemini 2."});break;default:u.push({type:"unsupported-tool",tool:w});break}}),{tools:Object.keys($).length>0?$:void 0,toolConfig:void 0,toolWarnings:u}}let _=[];for(let $ of i)switch($.type){case"function":_.push({name:$.name,description:$.description??"",parameters:gn($.inputSchema)});break;default:u.push({type:"unsupported-tool",tool:$});break}if(n==null)return{tools:{functionDeclarations:_},toolConfig:void 0,toolWarnings:u};let l=n.type;switch(l){case"auto":return{tools:{functionDeclarations:_},toolConfig:{functionCallingConfig:{mode:"AUTO"}},toolWarnings:u};case"none":return{tools:{functionDeclarations:_},toolConfig:{functionCallingConfig:{mode:"NONE"}},toolWarnings:u};case"required":return{tools:{functionDeclarations:_},toolConfig:{functionCallingConfig:{mode:"ANY"}},toolWarnings:u};case"tool":return{tools:{functionDeclarations:_},toolConfig:{functionCallingConfig:{mode:"ANY",allowedFunctionNames:[n.toolName]}},toolWarnings:u};default:throw new oi({functionality:`tool choice type: ${l}`})}}function Q6({finishReason:i,hasToolCalls:n}){switch(i){case"STOP":return n?"tool-calls":"stop";case"MAX_TOKENS":return"length";case"IMAGE_SAFETY":case"RECITATION":case"SAFETY":case"BLOCKLIST":case"PROHIBITED_CONTENT":case"SPII":return"content-filter";case"FINISH_REASON_UNSPECIFIED":case"OTHER":return"other";case"MALFORMED_FUNCTION_CALL":return"error";default:return"unknown"}}var IL=o.object({web:o.object({uri:o.string(),title:o.string()}).nullish(),retrievedContext:o.object({uri:o.string(),title:o.string()}).nullish()}),BO=o.object({webSearchQueries:o.array(o.string()).nullish(),retrievalQueries:o.array(o.string()).nullish(),searchEntryPoint:o.object({renderedContent:o.string()}).nullish(),groundingChunks:o.array(IL).nullish(),groundingSupports:o.array(o.object({segment:o.object({startIndex:o.number().nullish(),endIndex:o.number().nullish(),text:o.string().nullish()}),segment_text:o.string().nullish(),groundingChunkIndices:o.array(o.number()).nullish(),supportChunkIndices:o.array(o.number()).nullish(),confidenceScores:o.array(o.number()).nullish(),confidenceScore:o.array(o.number()).nullish()})).nullish(),retrievalMetadata:o.union([o.object({webDynamicRetrievalScore:o.number()}),o.object({})]).nullish()}),YL=yi({id:"google.google_search",name:"google_search",inputSchema:o.object({mode:o.enum(["MODE_DYNAMIC","MODE_UNSPECIFIED"]).default("MODE_UNSPECIFIED"),dynamicThreshold:o.number().default(1)})}),QL=o.object({retrievedUrl:o.string(),urlRetrievalStatus:o.string()}),KO=o.object({urlMetadata:o.array(QL)}),mL=yi({id:"google.url_context",name:"url_context",inputSchema:o.object({})}),SL=class{constructor(i,n){this.specificationVersion="v2",this.modelId=i,this.config=n,this.generateId=n.generateId??Qi}get provider(){return this.config.provider}get supportedUrls(){var i;return(i=this.config).supportedUrls?.call(i)??{}}async getArgs({prompt:i,maxOutputTokens:n,temperature:r,topP:u,topK:t,frequencyPenalty:c,presencePenalty:g,stopSequences:h,responseFormat:_,seed:l,tools:$,toolChoice:w,providerOptions:b}){let v=[],f=await Hi({provider:"google",providerOptions:b,schema:XL});f?.thinkingConfig?.includeThoughts===!0&&!this.config.provider.startsWith("google.vertex.")&&v.push({type:"other",message:`The \'includeThoughts\' option is only supported with the Google Vertex provider and might not be supported or could behave unexpectedly with the current Google provider (${this.config.provider}).`});let U=this.modelId.toLowerCase().startsWith("gemma-"),{contents:z,systemInstruction:J}=qL(i,{isGemmaModel:U}),{tools:N,toolConfig:j,toolWarnings:O}=LL({tools:$,toolChoice:w,modelId:this.modelId});return{args:{generationConfig:{maxOutputTokens:n,temperature:r,topK:t,topP:u,frequencyPenalty:c,presencePenalty:g,stopSequences:h,seed:l,responseMimeType:_?.type==="json"?"application/json":void 0,responseSchema:_?.type==="json"&&_.schema!=null&&(f?.structuredOutputs??!0)?gn(_.schema):void 0,...f?.audioTimestamp&&{audioTimestamp:f.audioTimestamp},responseModalities:f?.responseModalities,thinkingConfig:f?.thinkingConfig},contents:z,systemInstruction:U?void 0:J,safetySettings:f?.safetySettings,tools:N,toolConfig:j,cachedContent:f?.cachedContent,labels:f?.labels},warnings:[...v,...O]}}async doGenerate(i){let{args:n,warnings:r}=await this.getArgs(i),u=JSON.stringify(n),t=Ui(await _u(this.config.headers),i.headers),{responseHeaders:c,value:g,rawValue:h}=await fi({url:`${this.config.baseURL}/${Y6(this.modelId)}:generateContent`,headers:t,body:n,failedResponseHandler:lu,successfulResponseHandler:Vi(KL),abortSignal:i.abortSignal,fetch:this.config.fetch}),_=g.candidates[0],l=[],$=_.content?.parts??[],w=g.usageMetadata,b;for(let f of $)if("executableCode"in f&&f.executableCode?.code){let U=this.config.generateId();b=U,l.push({type:"tool-call",toolCallId:U,toolName:"code_execution",input:JSON.stringify(f.executableCode),providerExecuted:!0})}else"codeExecutionResult"in f&&f.codeExecutionResult?(l.push({type:"tool-result",toolCallId:b,toolName:"code_execution",result:{outcome:f.codeExecutionResult.outcome,output:f.codeExecutionResult.output},providerExecuted:!0}),b=void 0):("text"in f)&&f.text!=null&&f.text.length>0?l.push({type:f.thought===!0?"reasoning":"text",text:f.text,providerMetadata:f.thoughtSignature?{google:{thoughtSignature:f.thoughtSignature}}:void 0}):("functionCall"in f)?l.push({type:"tool-call",toolCallId:this.config.generateId(),toolName:f.functionCall.name,input:JSON.stringify(f.functionCall.args),providerMetadata:f.thoughtSignature?{google:{thoughtSignature:f.thoughtSignature}}:void 0}):("inlineData"in f)&&l.push({type:"file",data:f.inlineData.data,mediaType:f.inlineData.mimeType});let v=m6({groundingMetadata:_.groundingMetadata,generateId:this.config.generateId})??[];for(let f of v)l.push(f);return{content:l,finishReason:Q6({finishReason:_.finishReason,hasToolCalls:l.some((f)=>f.type==="tool-call")}),usage:{inputTokens:w?.promptTokenCount??void 0,outputTokens:w?.candidatesTokenCount??void 0,totalTokens:w?.totalTokenCount??void 0,reasoningTokens:w?.thoughtsTokenCount??void 0,cachedInputTokens:w?.cachedContentTokenCount??void 0},warnings:r,providerMetadata:{google:{promptFeedback:g.promptFeedback??null,groundingMetadata:_.groundingMetadata??null,urlContextMetadata:_.urlContextMetadata??null,safetyRatings:_.safetyRatings??null,usageMetadata:w??null}},request:{body:u},response:{headers:c,body:h}}}async doStream(i){let{args:n,warnings:r}=await this.getArgs(i),u=JSON.stringify(n),t=Ui(await _u(this.config.headers),i.headers),{responseHeaders:c,value:g}=await fi({url:`${this.config.baseURL}/${Y6(this.modelId)}:streamGenerateContent?alt=sse`,headers:t,body:n,failedResponseHandler:lu,successfulResponseHandler:Vt(VL),abortSignal:i.abortSignal,fetch:this.config.fetch}),h="unknown",_={inputTokens:void 0,outputTokens:void 0,totalTokens:void 0},l,$=this.config.generateId,w=!1,b=null,v=null,f=0,U=new Set,z;return{stream:g.pipeThrough(new TransformStream({start(J){J.enqueue({type:"stream-start",warnings:r})},transform(J,N){if(i.includeRawChunks&&N.enqueue({type:"raw",rawValue:J.rawValue}),!J.success){N.enqueue({type:"error",error:J.error});return}let j=J.value,O=j.usageMetadata;O!=null&&(_.inputTokens=O.promptTokenCount??void 0,_.outputTokens=O.candidatesTokenCount??void 0,_.totalTokens=O.totalTokenCount??void 0,_.reasoningTokens=O.thoughtsTokenCount??void 0,_.cachedInputTokens=O.cachedContentTokenCount??void 0);let W=j.candidates?.[0];if(W==null)return;let E=W.content,X=m6({groundingMetadata:W.groundingMetadata,generateId:$});if(X!=null)for(let H of X)H.sourceType==="url"&&!U.has(H.url)&&(U.add(H.url),N.enqueue(H));if(E!=null){let H=E.parts??[];for(let Q of H)if("executableCode"in Q&&Q.executableCode?.code){let M=$();z=M,N.enqueue({type:"tool-call",toolCallId:M,toolName:"code_execution",input:JSON.stringify(Q.executableCode),providerExecuted:!0}),w=!0}else if("codeExecutionResult"in Q&&Q.codeExecutionResult){let M=z;M&&(N.enqueue({type:"tool-result",toolCallId:M,toolName:"code_execution",result:{outcome:Q.codeExecutionResult.outcome,output:Q.codeExecutionResult.output},providerExecuted:!0}),z=void 0)}else"text"in Q&&Q.text!=null&&Q.text.length>0&&(Q.thought===!0?(b!==null&&(N.enqueue({type:"text-end",id:b}),b=null),v===null&&(v=String(f++),N.enqueue({type:"reasoning-start",id:v,providerMetadata:Q.thoughtSignature?{google:{thoughtSignature:Q.thoughtSignature}}:void 0})),N.enqueue({type:"reasoning-delta",id:v,delta:Q.text,providerMetadata:Q.thoughtSignature?{google:{thoughtSignature:Q.thoughtSignature}}:void 0})):(v!==null&&(N.enqueue({type:"reasoning-end",id:v}),v=null),b===null&&(b=String(f++),N.enqueue({type:"text-start",id:b,providerMetadata:Q.thoughtSignature?{google:{thoughtSignature:Q.thoughtSignature}}:void 0})),N.enqueue({type:"text-delta",id:b,delta:Q.text,providerMetadata:Q.thoughtSignature?{google:{thoughtSignature:Q.thoughtSignature}}:void 0})));let Y=BL(E.parts);if(Y!=null)for(let Q of Y)N.enqueue({type:"file",mediaType:Q.inlineData.mimeType,data:Q.inlineData.data});let V=AL({parts:E.parts,generateId:$});if(V!=null)for(let Q of V)N.enqueue({type:"tool-input-start",id:Q.toolCallId,toolName:Q.toolName,providerMetadata:Q.providerMetadata}),N.enqueue({type:"tool-input-delta",id:Q.toolCallId,delta:Q.args,providerMetadata:Q.providerMetadata}),N.enqueue({type:"tool-input-end",id:Q.toolCallId,providerMetadata:Q.providerMetadata}),N.enqueue({type:"tool-call",toolCallId:Q.toolCallId,toolName:Q.toolName,input:Q.args,providerMetadata:Q.providerMetadata}),w=!0}W.finishReason!=null&&(h=Q6({finishReason:W.finishReason,hasToolCalls:w}),l={google:{promptFeedback:j.promptFeedback??null,groundingMetadata:W.groundingMetadata??null,urlContextMetadata:W.urlContextMetadata??null,safetyRatings:W.safetyRatings??null}},O!=null&&(l.google.usageMetadata=O))},flush(J){b!==null&&J.enqueue({type:"text-end",id:b}),v!==null&&J.enqueue({type:"reasoning-end",id:v}),J.enqueue({type:"finish",finishReason:h,usage:_,providerMetadata:l})}})),response:{headers:c},request:{body:u}}}};function AL({parts:i,generateId:n}){let r=i?.filter((u)=>("functionCall"in u));return r==null||r.length===0?void 0:r.map((u)=>({type:"tool-call",toolCallId:n(),toolName:u.functionCall.name,args:JSON.stringify(u.functionCall.args),providerMetadata:u.thoughtSignature?{google:{thoughtSignature:u.thoughtSignature}}:void 0}))}function BL(i){return i?.filter((n)=>("inlineData"in n))}function m6({groundingMetadata:i,generateId:n}){return i?.groundingChunks?.filter((r)=>r.web!=null).map((r)=>({type:"source",sourceType:"url",id:n(),url:r.web.uri,title:r.web.title}))}var VO=o.object({parts:o.array(o.union([o.object({functionCall:o.object({name:o.string(),args:o.unknown()}),thoughtSignature:o.string().nullish()}),o.object({inlineData:o.object({mimeType:o.string(),data:o.string()})}),o.object({executableCode:o.object({language:o.string(),code:o.string()}).nullish(),codeExecutionResult:o.object({outcome:o.string(),output:o.string()}).nullish(),text:o.string().nullish(),thought:o.boolean().nullish(),thoughtSignature:o.string().nullish()})])).nullish()}),fo=o.object({category:o.string().nullish(),probability:o.string().nullish(),probabilityScore:o.number().nullish(),severity:o.string().nullish(),severityScore:o.number().nullish(),blocked:o.boolean().nullish()}),MO=o.object({cachedContentTokenCount:o.number().nullish(),thoughtsTokenCount:o.number().nullish(),promptTokenCount:o.number().nullish(),candidatesTokenCount:o.number().nullish(),totalTokenCount:o.number().nullish()}),KL=o.object({candidates:o.array(o.object({content:VO.nullish().or(o.object({}).strict()),finishReason:o.string().nullish(),safetyRatings:o.array(fo).nullish(),groundingMetadata:BO.nullish(),urlContextMetadata:KO.nullish()})),usageMetadata:MO.nullish(),promptFeedback:o.object({blockReason:o.string().nullish(),safetyRatings:o.array(fo).nullish()}).nullish()}),VL=o.object({candidates:o.array(o.object({content:VO.nullish(),finishReason:o.string().nullish(),safetyRatings:o.array(fo).nullish(),groundingMetadata:BO.nullish(),urlContextMetadata:KO.nullish()})).nullish(),usageMetadata:MO.nullish(),promptFeedback:o.object({blockReason:o.string().nullish(),safetyRatings:o.array(fo).nullish()}).nullish()}),ML=Pn({id:"google.code_execution",name:"code_execution",inputSchema:o.object({language:o.string().describe("The programming language of the code."),code:o.string().describe("The code to be executed.")}),outputSchema:o.object({outcome:o.string().describe(\'The outcome of the execution (e.g., "OUTCOME_OK").\'),output:o.string().describe("The output from the code execution.")})}),xL={googleSearch:YL,urlContext:mL,codeExecution:ML},FL=class{constructor(i,n,r){this.modelId=i,this.settings=n,this.config=r,this.specificationVersion="v2"}get maxImagesPerCall(){return this.settings.maxImagesPerCall??4}get provider(){return this.config.provider}async doGenerate(i){var n;let{prompt:r,n:u=1,size:t="1024x1024",aspectRatio:c="1:1",seed:g,providerOptions:h,headers:_,abortSignal:l}=i,$=[];t!=null&&$.push({type:"unsupported-setting",setting:"size",details:"This model does not support the `size` option. Use `aspectRatio` instead."}),g!=null&&$.push({type:"unsupported-setting",setting:"seed",details:"This model does not support the `seed` option through this provider."});let w=await Hi({provider:"google",providerOptions:h,schema:yL}),b=(n=this.config._internal)?.currentDate?.call(n)??new Date,v={sampleCount:u};c!=null&&(v.aspectRatio=c),w&&Object.assign(v,w);let f={instances:[{prompt:r}],parameters:v},{responseHeaders:U,value:z}=await fi({url:`${this.config.baseURL}/models/${this.modelId}:predict`,headers:Ui(await _u(this.config.headers),_),body:f,failedResponseHandler:lu,successfulResponseHandler:Vi(PL),abortSignal:l,fetch:this.config.fetch});return{images:z.predictions.map((J)=>J.bytesBase64Encoded),warnings:$??[],providerMetadata:{google:{images:z.predictions.map((J)=>({}))}},response:{timestamp:b,modelId:this.modelId,headers:U}}}},PL=o.object({predictions:o.array(o.object({bytesBase64Encoded:o.string()})).default([])}),yL=o.object({personGeneration:o.enum(["dont_allow","allow_adult","allow_all"]).nullish(),aspectRatio:o.enum(["1:1","3:4","4:3","9:16","16:9"]).nullish()});function TL(i={}){let n=jo(i.baseURL)??"https://generativelanguage.googleapis.com/v1beta",r=()=>wu({"x-goog-api-key":Oo({apiKey:i.apiKey,environmentVariableName:"GOOGLE_GENERATIVE_AI_API_KEY",description:"Google Generative AI"}),...i.headers},`ai-sdk/google/${zL}`),u=(h)=>new SL(h,{provider:"google.generative-ai",baseURL:n,headers:r,generateId:i.generateId??Qi,supportedUrls:()=>({"*":[RegExp(`^${n}/files/.*$`),RegExp("^https://(?:www\\\\.)?youtube\\\\.com/watch\\\\?v=[\\\\w-]+(?:&[\\\\w=&.-]*)?$"),RegExp("^https://youtu\\\\.be/[\\\\w-]+(?:\\\\?[\\\\w=&.-]*)?$")]}),fetch:i.fetch}),t=(h)=>new JL(h,{provider:"google.generative-ai",baseURL:n,headers:r,fetch:i.fetch}),c=(h,_={})=>new FL(h,_,{provider:"google.generative-ai",baseURL:n,headers:r,fetch:i.fetch}),g=function(h){if(new.target)throw Error("The Google Generative AI model function cannot be called with the new keyword.");return u(h)};return g.languageModel=u,g.chat=u,g.generativeAI=u,g.embedding=t,g.textEmbedding=t,g.textEmbeddingModel=t,g.image=c,g.imageModel=c,g.tools=xL,g}TL();var J0=o.object({error:o.object({message:o.string(),type:o.string().nullish(),param:o.any().nullish(),code:o.union([o.string(),o.number()]).nullish()})}),hn=bu({errorSchema:J0,errorToMessage:(i)=>i.error.message});function kL({prompt:i,systemMessageMode:n="system"}){let r=[],u=[];for(let{role:t,content:c}of i)switch(t){case"system":switch(n){case"system":r.push({role:"system",content:c});break;case"developer":r.push({role:"developer",content:c});break;case"remove":u.push({type:"other",message:"system messages are removed for this model"});break;default:throw Error(`Unsupported system message mode: ${n}`)}break;case"user":if(c.length===1&&c[0].type==="text"){r.push({role:"user",content:c[0].text});break}r.push({role:"user",content:c.map((g,h)=>{switch(g.type){case"text":return{type:"text",text:g.text};case"file":if(g.mediaType.startsWith("image/")){let _=g.mediaType==="image/*"?"image/jpeg":g.mediaType;return{type:"image_url",image_url:{url:g.data instanceof URL?g.data.toString():`data:${_};base64,${pi(g.data)}`,detail:g.providerOptions?.openai?.imageDetail}}}else if(g.mediaType.startsWith("audio/")){if(g.data instanceof URL)throw new oi({functionality:"audio file parts with URLs"});switch(g.mediaType){case"audio/wav":return{type:"input_audio",input_audio:{data:pi(g.data),format:"wav"}};case"audio/mp3":case"audio/mpeg":return{type:"input_audio",input_audio:{data:pi(g.data),format:"mp3"}};default:throw new oi({functionality:`audio content parts with media type ${g.mediaType}`})}}else if(g.mediaType==="application/pdf"){if(g.data instanceof URL)throw new oi({functionality:"PDF file parts with URLs"});return{type:"file",file:typeof g.data=="string"&&g.data.startsWith("file-")?{file_id:g.data}:{filename:g.filename??`part-${h}.pdf`,file_data:`data:application/pdf;base64,${pi(g.data)}`}}}else throw new oi({functionality:`file part media type ${g.mediaType}`})}})});break;case"assistant":{let g="",h=[];for(let _ of c)switch(_.type){case"text":g+=_.text;break;case"tool-call":h.push({id:_.toolCallId,type:"function",function:{name:_.toolName,arguments:JSON.stringify(_.input)}});break}r.push({role:"assistant",content:g,tool_calls:h.length>0?h:void 0});break}case"tool":for(let g of c){let h=g.output,_;switch(h.type){case"text":case"error-text":_=h.value;break;case"content":case"json":case"error-json":_=JSON.stringify(h.value);break}r.push({role:"tool",tool_call_id:g.toolCallId,content:_})}break;default:throw Error(`Unsupported role: ${t}`)}return{messages:r,warnings:u}}function S6({id:i,model:n,created:r}){return{id:i??void 0,modelId:n??void 0,timestamp:r==null?void 0:new Date(r*1000)}}function A6(i){switch(i){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"unknown"}}var CL=o.object({logitBias:o.record(o.coerce.number(),o.number()).optional(),logprobs:o.union([o.boolean(),o.number()]).optional(),parallelToolCalls:o.boolean().optional(),user:o.string().optional(),reasoningEffort:o.enum(["minimal","low","medium","high"]).optional(),maxCompletionTokens:o.number().optional(),store:o.boolean().optional(),metadata:o.record(o.string().max(64),o.string().max(512)).optional(),prediction:o.record(o.string(),o.any()).optional(),structuredOutputs:o.boolean().optional(),serviceTier:o.enum(["auto","flex","priority"]).optional(),strictJsonSchema:o.boolean().optional(),textVerbosity:o.enum(["low","medium","high"]).optional(),promptCacheKey:o.string().optional(),safetyIdentifier:o.string().optional()});function RL({tools:i,toolChoice:n,structuredOutputs:r,strictJsonSchema:u}){i=i?.length?i:void 0;let t=[];if(i==null)return{tools:void 0,toolChoice:void 0,toolWarnings:t};let c=[];for(let h of i)switch(h.type){case"function":c.push({type:"function",function:{name:h.name,description:h.description,parameters:h.inputSchema,strict:r?u:void 0}});break;default:t.push({type:"unsupported-tool",tool:h});break}if(n==null)return{tools:c,toolChoice:void 0,toolWarnings:t};let g=n.type;switch(g){case"auto":case"none":case"required":return{tools:c,toolChoice:g,toolWarnings:t};case"tool":return{tools:c,toolChoice:{type:"function",function:{name:n.toolName}},toolWarnings:t};default:throw new oi({functionality:`tool choice type: ${g}`})}}var ZL=class{constructor(i,n){this.specificationVersion="v2",this.supportedUrls={"image/*":[/^https?:\\/\\/.*$/]},this.modelId=i,this.config=n}get provider(){return this.config.provider}async getArgs({prompt:i,maxOutputTokens:n,temperature:r,topP:u,topK:t,frequencyPenalty:c,presencePenalty:g,stopSequences:h,responseFormat:_,seed:l,tools:$,toolChoice:w,providerOptions:b}){let v=[],f=await Hi({provider:"openai",providerOptions:b,schema:CL})??{},U=f.structuredOutputs??!0;t!=null&&v.push({type:"unsupported-setting",setting:"topK"}),_?.type==="json"&&_.schema!=null&&!U&&v.push({type:"unsupported-setting",setting:"responseFormat",details:"JSON response format schema is only supported with structuredOutputs"});let{messages:z,warnings:J}=kL({prompt:i,systemMessageMode:sL(this.modelId)});v.push(...J);let N=f.strictJsonSchema??!1,j={model:this.modelId,logit_bias:f.logitBias,logprobs:f.logprobs===!0||typeof f.logprobs=="number"?!0:void 0,top_logprobs:typeof f.logprobs=="number"?f.logprobs:typeof f.logprobs=="boolean"&&f.logprobs?0:void 0,user:f.user,parallel_tool_calls:f.parallelToolCalls,max_tokens:n,temperature:r,top_p:u,frequency_penalty:c,presence_penalty:g,response_format:_?.type==="json"?U&&_.schema!=null?{type:"json_schema",json_schema:{schema:_.schema,strict:N,name:_.name??"response",description:_.description}}:{type:"json_object"}:void 0,stop:h,seed:l,verbosity:f.textVerbosity,max_completion_tokens:f.maxCompletionTokens,store:f.store,metadata:f.metadata,prediction:f.prediction,reasoning_effort:f.reasoningEffort,service_tier:f.serviceTier,prompt_cache_key:f.promptCacheKey,safety_identifier:f.safetyIdentifier,messages:z};FO(this.modelId)?(j.temperature!=null&&(j.temperature=void 0,v.push({type:"unsupported-setting",setting:"temperature",details:"temperature is not supported for reasoning models"})),j.top_p!=null&&(j.top_p=void 0,v.push({type:"unsupported-setting",setting:"topP",details:"topP is not supported for reasoning models"})),j.frequency_penalty!=null&&(j.frequency_penalty=void 0,v.push({type:"unsupported-setting",setting:"frequencyPenalty",details:"frequencyPenalty is not supported for reasoning models"})),j.presence_penalty!=null&&(j.presence_penalty=void 0,v.push({type:"unsupported-setting",setting:"presencePenalty",details:"presencePenalty is not supported for reasoning models"})),j.logit_bias!=null&&(j.logit_bias=void 0,v.push({type:"other",message:"logitBias is not supported for reasoning models"})),j.logprobs!=null&&(j.logprobs=void 0,v.push({type:"other",message:"logprobs is not supported for reasoning models"})),j.top_logprobs!=null&&(j.top_logprobs=void 0,v.push({type:"other",message:"topLogprobs is not supported for reasoning models"})),j.max_tokens!=null&&(j.max_completion_tokens??=j.max_tokens,j.max_tokens=void 0)):(this.modelId.startsWith("gpt-4o-search-preview")||this.modelId.startsWith("gpt-4o-mini-search-preview"))&&j.temperature!=null&&(j.temperature=void 0,v.push({type:"unsupported-setting",setting:"temperature",details:"temperature is not supported for the search preview models and has been removed."})),f.serviceTier==="flex"&&!dL(this.modelId)&&(v.push({type:"unsupported-setting",setting:"serviceTier",details:"flex processing is only available for o3, o4-mini, and gpt-5 models"}),j.service_tier=void 0),f.serviceTier==="priority"&&!aL(this.modelId)&&(v.push({type:"unsupported-setting",setting:"serviceTier",details:"priority processing is only available for supported models (gpt-4, gpt-5, gpt-5-mini, o3, o4-mini) and requires Enterprise access. gpt-5-nano is not supported"}),j.service_tier=void 0);let{tools:O,toolChoice:W,toolWarnings:E}=RL({tools:$,toolChoice:w,structuredOutputs:U,strictJsonSchema:N});return{args:{...j,tools:O,tool_choice:W},warnings:[...v,...E]}}async doGenerate(i){let{args:n,warnings:r}=await this.getArgs(i),{responseHeaders:u,value:t,rawValue:c}=await fi({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:Ui(this.config.headers(),i.headers),body:n,failedResponseHandler:hn,successfulResponseHandler:Vi(eL),abortSignal:i.abortSignal,fetch:this.config.fetch}),g=t.choices[0],h=[],_=g.message.content;_!=null&&_.length>0&&h.push({type:"text",text:_});for(let b of g.message.tool_calls??[])h.push({type:"tool-call",toolCallId:b.id??Qi(),toolName:b.function.name,input:b.function.arguments});for(let b of g.message.annotations??[])h.push({type:"source",sourceType:"url",id:Qi(),url:b.url,title:b.title});let l=t.usage?.completion_tokens_details,$=t.usage?.prompt_tokens_details,w={openai:{}};return l?.accepted_prediction_tokens!=null&&(w.openai.acceptedPredictionTokens=l?.accepted_prediction_tokens),l?.rejected_prediction_tokens!=null&&(w.openai.rejectedPredictionTokens=l?.rejected_prediction_tokens),g.logprobs?.content!=null&&(w.openai.logprobs=g.logprobs.content),{content:h,finishReason:A6(g.finish_reason),usage:{inputTokens:t.usage?.prompt_tokens??void 0,outputTokens:t.usage?.completion_tokens??void 0,totalTokens:t.usage?.total_tokens??void 0,reasoningTokens:l?.reasoning_tokens??void 0,cachedInputTokens:$?.cached_tokens??void 0},request:{body:n},response:{...S6(t),headers:u,body:c},warnings:r,providerMetadata:w}}async doStream(i){let{args:n,warnings:r}=await this.getArgs(i),u={...n,stream:!0,stream_options:{include_usage:!0}},{responseHeaders:t,value:c}=await fi({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:Ui(this.config.headers(),i.headers),body:u,failedResponseHandler:hn,successfulResponseHandler:Vt(pL),abortSignal:i.abortSignal,fetch:this.config.fetch}),g=[],h="unknown",_={inputTokens:void 0,outputTokens:void 0,totalTokens:void 0},l=!0,$=!1,w={openai:{}};return{stream:c.pipeThrough(new TransformStream({start(b){b.enqueue({type:"stream-start",warnings:r})},transform(b,v){if(i.includeRawChunks&&v.enqueue({type:"raw",rawValue:b.rawValue}),!b.success){h="error",v.enqueue({type:"error",error:b.error});return}let f=b.value;if("error"in f){h="error",v.enqueue({type:"error",error:f.error});return}l&&(l=!1,v.enqueue({type:"response-metadata",...S6(f)})),f.usage!=null&&(_.inputTokens=f.usage.prompt_tokens??void 0,_.outputTokens=f.usage.completion_tokens??void 0,_.totalTokens=f.usage.total_tokens??void 0,_.reasoningTokens=f.usage.completion_tokens_details?.reasoning_tokens??void 0,_.cachedInputTokens=f.usage.prompt_tokens_details?.cached_tokens??void 0,f.usage.completion_tokens_details?.accepted_prediction_tokens!=null&&(w.openai.acceptedPredictionTokens=f.usage.completion_tokens_details?.accepted_prediction_tokens),f.usage.completion_tokens_details?.rejected_prediction_tokens!=null&&(w.openai.rejectedPredictionTokens=f.usage.completion_tokens_details?.rejected_prediction_tokens));let U=f.choices[0];if(U?.finish_reason!=null&&(h=A6(U.finish_reason)),U?.logprobs?.content!=null&&(w.openai.logprobs=U.logprobs.content),U?.delta==null)return;let z=U.delta;if(z.content!=null&&($||=(v.enqueue({type:"text-start",id:"0"}),!0),v.enqueue({type:"text-delta",id:"0",delta:z.content})),z.tool_calls!=null)for(let J of z.tool_calls){let N=J.index;if(g[N]==null){if(J.type!=="function")throw new j0({data:J,message:"Expected \'function\' type."});if(J.id==null)throw new j0({data:J,message:"Expected \'id\' to be a string."});if(J.function?.name==null)throw new j0({data:J,message:"Expected \'function.name\' to be a string."});v.enqueue({type:"tool-input-start",id:J.id,toolName:J.function.name}),g[N]={id:J.id,type:"function",function:{name:J.function.name,arguments:J.function.arguments??""},hasFinished:!1};let O=g[N];O.function?.name!=null&&O.function?.arguments!=null&&(O.function.arguments.length>0&&v.enqueue({type:"tool-input-delta",id:O.id,delta:O.function.arguments}),G6(O.function.arguments)&&(v.enqueue({type:"tool-input-end",id:O.id}),v.enqueue({type:"tool-call",toolCallId:O.id??Qi(),toolName:O.function.name,input:O.function.arguments}),O.hasFinished=!0));continue}let j=g[N];j.hasFinished||(J.function?.arguments!=null&&(j.function.arguments+=J.function?.arguments??""),v.enqueue({type:"tool-input-delta",id:j.id,delta:J.function.arguments??""}),j.function?.name!=null&&j.function?.arguments!=null&&G6(j.function.arguments)&&(v.enqueue({type:"tool-input-end",id:j.id}),v.enqueue({type:"tool-call",toolCallId:j.id??Qi(),toolName:j.function.name,input:j.function.arguments}),j.hasFinished=!0))}if(z.annotations!=null)for(let J of z.annotations)v.enqueue({type:"source",sourceType:"url",id:Qi(),url:J.url,title:J.title})},flush(b){$&&b.enqueue({type:"text-end",id:"0"}),b.enqueue({type:"finish",finishReason:h,usage:_,...w==null?{}:{providerMetadata:w}})}})),request:{body:u},response:{headers:t}}}},xO=o.object({prompt_tokens:o.number().nullish(),completion_tokens:o.number().nullish(),total_tokens:o.number().nullish(),prompt_tokens_details:o.object({cached_tokens:o.number().nullish()}).nullish(),completion_tokens_details:o.object({reasoning_tokens:o.number().nullish(),accepted_prediction_tokens:o.number().nullish(),rejected_prediction_tokens:o.number().nullish()}).nullish()}).nullish(),eL=o.object({id:o.string().nullish(),created:o.number().nullish(),model:o.string().nullish(),choices:o.array(o.object({message:o.object({role:o.literal("assistant").nullish(),content:o.string().nullish(),tool_calls:o.array(o.object({id:o.string().nullish(),type:o.literal("function"),function:o.object({name:o.string(),arguments:o.string()})})).nullish(),annotations:o.array(o.object({type:o.literal("url_citation"),start_index:o.number(),end_index:o.number(),url:o.string(),title:o.string()})).nullish()}),index:o.number(),logprobs:o.object({content:o.array(o.object({token:o.string(),logprob:o.number(),top_logprobs:o.array(o.object({token:o.string(),logprob:o.number()}))})).nullish()}).nullish(),finish_reason:o.string().nullish()})),usage:xO}),pL=o.union([o.object({id:o.string().nullish(),created:o.number().nullish(),model:o.string().nullish(),choices:o.array(o.object({delta:o.object({role:o.enum(["assistant"]).nullish(),content:o.string().nullish(),tool_calls:o.array(o.object({index:o.number(),id:o.string().nullish(),type:o.literal("function").nullish(),function:o.object({name:o.string().nullish(),arguments:o.string().nullish()})})).nullish(),annotations:o.array(o.object({type:o.literal("url_citation"),start_index:o.number(),end_index:o.number(),url:o.string(),title:o.string()})).nullish()}).nullish(),logprobs:o.object({content:o.array(o.object({token:o.string(),logprob:o.number(),top_logprobs:o.array(o.object({token:o.string(),logprob:o.number()}))})).nullish()}).nullish(),finish_reason:o.string().nullish(),index:o.number()})),usage:xO}),J0]);function FO(i){return(i.startsWith("o")||i.startsWith("gpt-5"))&&!i.startsWith("gpt-5-chat")}function dL(i){return i.startsWith("o3")||i.startsWith("o4-mini")||i.startsWith("gpt-5")&&!i.startsWith("gpt-5-chat")}function aL(i){return i.startsWith("gpt-4")||i.startsWith("gpt-5-mini")||i.startsWith("gpt-5")&&!i.startsWith("gpt-5-nano")&&!i.startsWith("gpt-5-chat")||i.startsWith("o3")||i.startsWith("o4-mini")}function sL(i){return FO(i)?iI[i]?.systemMessageMode??"developer":"system"}var iI={"o1-mini":{systemMessageMode:"remove"},"o1-mini-2024-09-12":{systemMessageMode:"remove"},"o1-preview":{systemMessageMode:"remove"},"o1-preview-2024-09-12":{systemMessageMode:"remove"},o3:{systemMessageMode:"developer"},"o3-2025-04-16":{systemMessageMode:"developer"},"o3-mini":{systemMessageMode:"developer"},"o3-mini-2025-01-31":{systemMessageMode:"developer"},"o4-mini":{systemMessageMode:"developer"},"o4-mini-2025-04-16":{systemMessageMode:"developer"}};function nI({prompt:i,user:n="user",assistant:r="assistant"}){let u="";i[0].role==="system"&&(u+=`${i[0].content}\n\n`,i=i.slice(1));for(let{role:t,content:c}of i)switch(t){case"system":throw new hX({message:"Unexpected system message in prompt: ${content}",prompt:i});case"user":{let g=c.map((h)=>{switch(h.type){case"text":return h.text}}).filter(Boolean).join("");u+=`${n}:\n${g}\n\n`;break}case"assistant":{let g=c.map((h)=>{switch(h.type){case"text":return h.text;case"tool-call":throw new oi({functionality:"tool-call messages"})}}).join("");u+=`${r}:\n${g}\n\n`;break}case"tool":throw new oi({functionality:"tool messages"});default:throw Error(`Unsupported role: ${t}`)}return u+=`${r}:\n`,{prompt:u,stopSequences:[`\n${n}:`]}}function B6({id:i,model:n,created:r}){return{id:i??void 0,modelId:n??void 0,timestamp:r==null?void 0:new Date(r*1000)}}function K6(i){switch(i){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"unknown"}}var V6=o.object({echo:o.boolean().optional(),logitBias:o.record(o.string(),o.number()).optional(),suffix:o.string().optional(),user:o.string().optional(),logprobs:o.union([o.boolean(),o.number()]).optional()}),tI=class{constructor(i,n){this.specificationVersion="v2",this.supportedUrls={},this.modelId=i,this.config=n}get providerOptionsName(){return this.config.provider.split(".")[0].trim()}get provider(){return this.config.provider}async getArgs({prompt:i,maxOutputTokens:n,temperature:r,topP:u,topK:t,frequencyPenalty:c,presencePenalty:g,stopSequences:h,responseFormat:_,tools:l,toolChoice:$,seed:w,providerOptions:b}){let v=[],f={...await Hi({provider:"openai",providerOptions:b,schema:V6}),...await Hi({provider:this.providerOptionsName,providerOptions:b,schema:V6})};t!=null&&v.push({type:"unsupported-setting",setting:"topK"}),l?.length&&v.push({type:"unsupported-setting",setting:"tools"}),$!=null&&v.push({type:"unsupported-setting",setting:"toolChoice"}),_!=null&&_.type!=="text"&&v.push({type:"unsupported-setting",setting:"responseFormat",details:"JSON response format is not supported."});let{prompt:U,stopSequences:z}=nI({prompt:i}),J=[...z??[],...h??[]];return{args:{model:this.modelId,echo:f.echo,logit_bias:f.logitBias,logprobs:f?.logprobs===!0?0:f?.logprobs===!1?void 0:f?.logprobs,suffix:f.suffix,user:f.user,max_tokens:n,temperature:r,top_p:u,frequency_penalty:c,presence_penalty:g,seed:w,prompt:U,stop:J.length>0?J:void 0},warnings:v}}async doGenerate(i){let{args:n,warnings:r}=await this.getArgs(i),{responseHeaders:u,value:t,rawValue:c}=await fi({url:this.config.url({path:"/completions",modelId:this.modelId}),headers:Ui(this.config.headers(),i.headers),body:n,failedResponseHandler:hn,successfulResponseHandler:Vi(rI),abortSignal:i.abortSignal,fetch:this.config.fetch}),g=t.choices[0],h={openai:{}};return g.logprobs!=null&&(h.openai.logprobs=g.logprobs),{content:[{type:"text",text:g.text}],usage:{inputTokens:t.usage?.prompt_tokens,outputTokens:t.usage?.completion_tokens,totalTokens:t.usage?.total_tokens},finishReason:K6(g.finish_reason),request:{body:n},response:{...B6(t),headers:u,body:c},providerMetadata:h,warnings:r}}async doStream(i){let{args:n,warnings:r}=await this.getArgs(i),u={...n,stream:!0,stream_options:{include_usage:!0}},{responseHeaders:t,value:c}=await fi({url:this.config.url({path:"/completions",modelId:this.modelId}),headers:Ui(this.config.headers(),i.headers),body:u,failedResponseHandler:hn,successfulResponseHandler:Vt(uI),abortSignal:i.abortSignal,fetch:this.config.fetch}),g="unknown",h={openai:{}},_={inputTokens:void 0,outputTokens:void 0,totalTokens:void 0},l=!0;return{stream:c.pipeThrough(new TransformStream({start($){$.enqueue({type:"stream-start",warnings:r})},transform($,w){if(i.includeRawChunks&&w.enqueue({type:"raw",rawValue:$.rawValue}),!$.success){g="error",w.enqueue({type:"error",error:$.error});return}let b=$.value;if("error"in b){g="error",w.enqueue({type:"error",error:b.error});return}l&&(l=!1,w.enqueue({type:"response-metadata",...B6(b)}),w.enqueue({type:"text-start",id:"0"})),b.usage!=null&&(_.inputTokens=b.usage.prompt_tokens,_.outputTokens=b.usage.completion_tokens,_.totalTokens=b.usage.total_tokens);let v=b.choices[0];v?.finish_reason!=null&&(g=K6(v.finish_reason)),v?.logprobs!=null&&(h.openai.logprobs=v.logprobs),v?.text!=null&&v.text.length>0&&w.enqueue({type:"text-delta",id:"0",delta:v.text})},flush($){l||$.enqueue({type:"text-end",id:"0"}),$.enqueue({type:"finish",finishReason:g,providerMetadata:h,usage:_})}})),request:{body:u},response:{headers:t}}}},PO=o.object({prompt_tokens:o.number(),completion_tokens:o.number(),total_tokens:o.number()}),rI=o.object({id:o.string().nullish(),created:o.number().nullish(),model:o.string().nullish(),choices:o.array(o.object({text:o.string(),finish_reason:o.string(),logprobs:o.object({tokens:o.array(o.string()),token_logprobs:o.array(o.number()),top_logprobs:o.array(o.record(o.string(),o.number())).nullish()}).nullish()})),usage:PO.nullish()}),uI=o.union([o.object({id:o.string().nullish(),created:o.number().nullish(),model:o.string().nullish(),choices:o.array(o.object({text:o.string(),finish_reason:o.string().nullish(),index:o.number(),logprobs:o.object({tokens:o.array(o.string()),token_logprobs:o.array(o.number()),top_logprobs:o.array(o.record(o.string(),o.number())).nullish()}).nullish()})),usage:PO.nullish()}),J0]),cI=o.object({dimensions:o.number().optional(),user:o.string().optional()}),oI=class{constructor(i,n){this.specificationVersion="v2",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0,this.modelId=i,this.config=n}get provider(){return this.config.provider}async doEmbed({values:i,headers:n,abortSignal:r,providerOptions:u}){if(i.length>this.maxEmbeddingsPerCall)throw new DO({provider:this.provider,modelId:this.modelId,maxEmbeddingsPerCall:this.maxEmbeddingsPerCall,values:i});let t=await Hi({provider:"openai",providerOptions:u,schema:cI})??{},{responseHeaders:c,value:g,rawValue:h}=await fi({url:this.config.url({path:"/embeddings",modelId:this.modelId}),headers:Ui(this.config.headers(),n),body:{model:this.modelId,input:i,encoding_format:"float",dimensions:t.dimensions,user:t.user},failedResponseHandler:hn,successfulResponseHandler:Vi(gI),abortSignal:r,fetch:this.config.fetch});return{embeddings:g.data.map((_)=>_.embedding),usage:g.usage?{tokens:g.usage.prompt_tokens}:void 0,response:{headers:c,body:h}}}},gI=o.object({data:o.array(o.object({embedding:o.array(o.number())})),usage:o.object({prompt_tokens:o.number()}).nullish()}),hI={"dall-e-3":1,"dall-e-2":10,"gpt-image-1":10},_I=new Set(["gpt-image-1"]),lI=class{constructor(i,n){this.modelId=i,this.config=n,this.specificationVersion="v2"}get maxImagesPerCall(){return hI[this.modelId]??1}get provider(){return this.config.provider}async doGenerate({prompt:i,n,size:r,aspectRatio:u,seed:t,providerOptions:c,headers:g,abortSignal:h}){var _;let l=[];u!=null&&l.push({type:"unsupported-setting",setting:"aspectRatio",details:"This model does not support aspect ratio. Use `size` instead."}),t!=null&&l.push({type:"unsupported-setting",setting:"seed"});let $=(_=this.config._internal)?.currentDate?.call(_)??new Date,{value:w,responseHeaders:b}=await fi({url:this.config.url({path:"/images/generations",modelId:this.modelId}),headers:Ui(this.config.headers(),g),body:{model:this.modelId,prompt:i,n,size:r,...c.openai??{},..._I.has(this.modelId)?{}:{response_format:"b64_json"}},failedResponseHandler:hn,successfulResponseHandler:Vi($I),abortSignal:h,fetch:this.config.fetch});return{images:w.data.map((v)=>v.b64_json),warnings:l,response:{timestamp:$,modelId:this.modelId,headers:b},providerMetadata:{openai:{images:w.data.map((v)=>v.revised_prompt?{revisedPrompt:v.revised_prompt}:null)}}}}},$I=o.object({data:o.array(o.object({b64_json:o.string(),revised_prompt:o.string().optional()}))}),wI=o.object({code:o.string().nullish(),containerId:o.string()}),bI=o.object({outputs:o.array(o.discriminatedUnion("type",[o.object({type:o.literal("logs"),logs:o.string()}),o.object({type:o.literal("image"),url:o.string()})])).nullish()}),vI=o.object({container:o.union([o.string(),o.object({fileIds:o.array(o.string()).optional()})]).optional()}),fI=Pn({id:"openai.code_interpreter",name:"code_interpreter",inputSchema:wI,outputSchema:bI}),OI=(i={})=>fI(i),yO=o.object({key:o.string(),type:o.enum(["eq","ne","gt","gte","lt","lte"]),value:o.union([o.string(),o.number(),o.boolean()])}),TO=o.object({type:o.enum(["and","or"]),filters:o.array(o.union([yO,o.lazy(()=>TO)]))}),jI=o.object({vectorStoreIds:o.array(o.string()),maxNumResults:o.number().optional(),ranking:o.object({ranker:o.string().optional(),scoreThreshold:o.number().optional()}).optional(),filters:o.union([yO,TO]).optional()}),UI=o.object({queries:o.array(o.string()),results:o.array(o.object({attributes:o.record(o.string(),o.unknown()),fileId:o.string(),filename:o.string(),score:o.number(),text:o.string()})).nullable()}),NI=Pn({id:"openai.file_search",name:"file_search",inputSchema:o.object({}),outputSchema:UI}),zI=o.object({background:o.enum(["auto","opaque","transparent"]).optional(),inputFidelity:o.enum(["low","high"]).optional(),inputImageMask:o.object({fileId:o.string().optional(),imageUrl:o.string().optional()}).optional(),model:o.string().optional(),moderation:o.enum(["auto"]).optional(),outputCompression:o.number().int().min(0).max(100).optional(),outputFormat:o.enum(["png","jpeg","webp"]).optional(),quality:o.enum(["auto","low","medium","high"]).optional(),size:o.enum(["1024x1024","1024x1536","1536x1024","auto"]).optional()}).strict(),WI=o.object({result:o.string()}),DI=Pn({id:"openai.image_generation",name:"image_generation",inputSchema:o.object({}),outputSchema:WI}),JI=(i={})=>DI(i),kO=o.object({action:o.object({type:o.literal("exec"),command:o.array(o.string()),timeoutMs:o.number().optional(),user:o.string().optional(),workingDirectory:o.string().optional(),env:o.record(o.string(),o.string()).optional()})}),CO=o.object({output:o.string()}),EI=Pn({id:"openai.local_shell",name:"local_shell",inputSchema:kO,outputSchema:CO}),HI=o.object({filters:o.object({allowedDomains:o.array(o.string()).optional()}).optional(),searchContextSize:o.enum(["low","medium","high"]).optional(),userLocation:o.object({type:o.literal("approximate"),country:o.string().optional(),city:o.string().optional(),region:o.string().optional(),timezone:o.string().optional()}).optional()}),GI=yi({id:"openai.web_search",name:"web_search",inputSchema:o.object({action:o.discriminatedUnion("type",[o.object({type:o.literal("search"),query:o.string().nullish()}),o.object({type:o.literal("open_page"),url:o.string()}),o.object({type:o.literal("find"),url:o.string(),pattern:o.string()})]).nullish()})}),qI=(i={})=>GI(i),XI=o.object({searchContextSize:o.enum(["low","medium","high"]).optional(),userLocation:o.object({type:o.literal("approximate"),country:o.string().optional(),city:o.string().optional(),region:o.string().optional(),timezone:o.string().optional()}).optional()}),LI=yi({id:"openai.web_search_preview",name:"web_search_preview",inputSchema:o.object({action:o.discriminatedUnion("type",[o.object({type:o.literal("search"),query:o.string().nullish()}),o.object({type:o.literal("open_page"),url:o.string()}),o.object({type:o.literal("find"),url:o.string(),pattern:o.string()})]).nullish()})}),II={codeInterpreter:OI,fileSearch:NI,imageGeneration:JI,localShell:EI,webSearchPreview:LI,webSearch:qI};function M6(i,n){return n?n.some((r)=>i.startsWith(r)):!1}async function YI({prompt:i,systemMessageMode:n,fileIdPrefixes:r,store:u,hasLocalShellTool:t=!1}){let c=[],g=[];for(let{role:h,content:_}of i)switch(h){case"system":switch(n){case"system":c.push({role:"system",content:_});break;case"developer":c.push({role:"developer",content:_});break;case"remove":g.push({type:"other",message:"system messages are removed for this model"});break;default:throw Error(`Unsupported system message mode: ${n}`)}break;case"user":c.push({role:"user",content:_.map((l,$)=>{switch(l.type){case"text":return{type:"input_text",text:l.text};case"file":if(l.mediaType.startsWith("image/")){let w=l.mediaType==="image/*"?"image/jpeg":l.mediaType;return{type:"input_image",...l.data instanceof URL?{image_url:l.data.toString()}:typeof l.data=="string"&&M6(l.data,r)?{file_id:l.data}:{image_url:`data:${w};base64,${pi(l.data)}`},detail:l.providerOptions?.openai?.imageDetail}}else if(l.mediaType==="application/pdf")return l.data instanceof URL?{type:"input_file",file_url:l.data.toString()}:{type:"input_file",...typeof l.data=="string"&&M6(l.data,r)?{file_id:l.data}:{filename:l.filename??`part-${$}.pdf`,file_data:`data:application/pdf;base64,${pi(l.data)}`}};else throw new oi({functionality:`file part media type ${l.mediaType}`})}})});break;case"assistant":{let l={},$={};for(let w of _)switch(w.type){case"text":c.push({role:"assistant",content:[{type:"output_text",text:w.text}],id:w.providerOptions?.openai?.itemId??void 0});break;case"tool-call":if($[w.toolCallId]=w,w.providerExecuted)break;if(t&&w.toolName==="local_shell"){let b=kO.parse(w.input);c.push({type:"local_shell_call",call_id:w.toolCallId,id:w.providerOptions?.openai?.itemId??void 0,action:{type:"exec",command:b.action.command,timeout_ms:b.action.timeoutMs,user:b.action.user,working_directory:b.action.workingDirectory,env:b.action.env}});break}c.push({type:"function_call",call_id:w.toolCallId,name:w.toolName,arguments:JSON.stringify(w.input),id:w.providerOptions?.openai?.itemId??void 0});break;case"tool-result":u?c.push({type:"item_reference",id:w.toolCallId}):g.push({type:"other",message:`Results for OpenAI tool ${w.toolName} are not sent to the API when store is false`});break;case"reasoning":{let b=await Hi({provider:"openai",providerOptions:w.providerOptions,schema:QI}),v=b?.itemId;if(v!=null){let f=l[v];if(u)f===void 0&&(c.push({type:"item_reference",id:v}),l[v]={type:"reasoning",id:v,summary:[]});else{let U=[];w.text.length>0?U.push({type:"summary_text",text:w.text}):f!==void 0&&g.push({type:"other",message:`Cannot append empty reasoning part to existing reasoning sequence. Skipping reasoning part: ${JSON.stringify(w)}.`}),f===void 0?(l[v]={type:"reasoning",id:v,encrypted_content:b?.reasoningEncryptedContent,summary:U},c.push(l[v])):f.summary.push(...U)}}else g.push({type:"other",message:`Non-OpenAI reasoning parts are not supported. Skipping reasoning part: ${JSON.stringify(w)}.`});break}}break}case"tool":for(let l of _){let $=l.output;if(t&&l.toolName==="local_shell"&&$.type==="json"){c.push({type:"local_shell_call_output",call_id:l.toolCallId,output:CO.parse($.value).output});break}let w;switch($.type){case"text":case"error-text":w=$.value;break;case"content":case"json":case"error-json":w=JSON.stringify($.value);break}c.push({type:"function_call_output",call_id:l.toolCallId,output:w})}break;default:throw Error(`Unsupported role: ${h}`)}return{input:c,warnings:g}}var QI=o.object({itemId:o.string().nullish(),reasoningEncryptedContent:o.string().nullish()});function x6({finishReason:i,hasFunctionCall:n}){switch(i){case void 0:case null:return n?"tool-calls":"stop";case"max_output_tokens":return"length";case"content_filter":return"content-filter";default:return n?"tool-calls":"unknown"}}function mI({tools:i,toolChoice:n,strictJsonSchema:r}){i=i?.length?i:void 0;let u=[];if(i==null)return{tools:void 0,toolChoice:void 0,toolWarnings:u};let t=[];for(let g of i)switch(g.type){case"function":t.push({type:"function",name:g.name,description:g.description,parameters:g.inputSchema,strict:r});break;case"provider-defined":switch(g.id){case"openai.file_search":{let h=jI.parse(g.args);t.push({type:"file_search",vector_store_ids:h.vectorStoreIds,max_num_results:h.maxNumResults,ranking_options:h.ranking?{ranker:h.ranking.ranker,score_threshold:h.ranking.scoreThreshold}:void 0,filters:h.filters});break}case"openai.local_shell":t.push({type:"local_shell"});break;case"openai.web_search_preview":{let h=XI.parse(g.args);t.push({type:"web_search_preview",search_context_size:h.searchContextSize,user_location:h.userLocation});break}case"openai.web_search":{let h=HI.parse(g.args);t.push({type:"web_search",filters:h.filters==null?void 0:{allowed_domains:h.filters.allowedDomains},search_context_size:h.searchContextSize,user_location:h.userLocation});break}case"openai.code_interpreter":{let h=vI.parse(g.args);t.push({type:"code_interpreter",container:h.container==null?{type:"auto",file_ids:void 0}:typeof h.container=="string"?h.container:{type:"auto",file_ids:h.container.fileIds}});break}case"openai.image_generation":{let h=zI.parse(g.args);t.push({type:"image_generation",background:h.background,input_fidelity:h.inputFidelity,input_image_mask:h.inputImageMask?{file_id:h.inputImageMask.fileId,image_url:h.inputImageMask.imageUrl}:void 0,model:h.model,size:h.size,quality:h.quality,moderation:h.moderation,output_format:h.outputFormat,output_compression:h.outputCompression});break}}break;default:u.push({type:"unsupported-tool",tool:g});break}if(n==null)return{tools:t,toolChoice:void 0,toolWarnings:u};let c=n.type;switch(c){case"auto":case"none":case"required":return{tools:t,toolChoice:c,toolWarnings:u};case"tool":return{tools:t,toolChoice:n.toolName==="code_interpreter"||n.toolName==="file_search"||n.toolName==="image_generation"||n.toolName==="web_search_preview"||n.toolName==="web_search"?{type:n.toolName}:{type:"function",name:n.toolName},toolWarnings:u};default:throw new oi({functionality:`tool choice type: ${c}`})}}var RO=o.object({type:o.literal("web_search_call"),id:o.string(),status:o.string(),action:o.discriminatedUnion("type",[o.object({type:o.literal("search"),query:o.string().nullish()}),o.object({type:o.literal("open_page"),url:o.string()}),o.object({type:o.literal("find"),url:o.string(),pattern:o.string()})]).nullish()}),ZO=o.object({type:o.literal("file_search_call"),id:o.string(),queries:o.array(o.string()),results:o.array(o.object({attributes:o.record(o.string(),o.unknown()),file_id:o.string(),filename:o.string(),score:o.number(),text:o.string()})).nullish()}),eO=o.object({type:o.literal("code_interpreter_call"),id:o.string(),code:o.string().nullable(),container_id:o.string(),outputs:o.array(o.discriminatedUnion("type",[o.object({type:o.literal("logs"),logs:o.string()}),o.object({type:o.literal("image"),url:o.string()})])).nullable()}),pO=o.object({type:o.literal("local_shell_call"),id:o.string(),call_id:o.string(),action:o.object({type:o.literal("exec"),command:o.array(o.string()),timeout_ms:o.number().optional(),user:o.string().optional(),working_directory:o.string().optional(),env:o.record(o.string(),o.string()).optional()})}),dO=o.object({type:o.literal("image_generation_call"),id:o.string(),result:o.string()}),aO=20,sO=o.array(o.object({token:o.string(),logprob:o.number(),top_logprobs:o.array(o.object({token:o.string(),logprob:o.number()}))})),SI=class{constructor(i,n){this.specificationVersion="v2",this.supportedUrls={"image/*":[/^https?:\\/\\/.*$/],"application/pdf":[/^https?:\\/\\/.*$/]},this.modelId=i,this.config=n}get provider(){return this.config.provider}async getArgs({maxOutputTokens:i,temperature:n,stopSequences:r,topP:u,topK:t,presencePenalty:c,frequencyPenalty:g,seed:h,prompt:_,providerOptions:l,tools:$,toolChoice:w,responseFormat:b}){let v=[],f=oY(this.modelId);t!=null&&v.push({type:"unsupported-setting",setting:"topK"}),h!=null&&v.push({type:"unsupported-setting",setting:"seed"}),c!=null&&v.push({type:"unsupported-setting",setting:"presencePenalty"}),g!=null&&v.push({type:"unsupported-setting",setting:"frequencyPenalty"}),r!=null&&v.push({type:"unsupported-setting",setting:"stopSequences"});let U=await Hi({provider:"openai",providerOptions:l,schema:gY}),{input:z,warnings:J}=await YI({prompt:_,systemMessageMode:f.systemMessageMode,fileIdPrefixes:this.config.fileIdPrefixes,store:U?.store??!0,hasLocalShellTool:W("openai.local_shell")});v.push(...J);let N=U?.strictJsonSchema??!1,j=U?.include;function O(M){j=j==null?[M]:[...j,M]}function W(M){return $?.find((p)=>p.type==="provider-defined"&&p.id===M)!=null}let E=typeof U?.logprobs=="number"?U?.logprobs:U?.logprobs===!0?aO:void 0;E&&O("message.output_text.logprobs");let X=$?.find((M)=>M.type==="provider-defined"&&(M.id==="openai.web_search"||M.id==="openai.web_search_preview"))?.name;X&&O("web_search_call.action.sources"),W("openai.code_interpreter")&&O("code_interpreter_call.outputs");let H={model:this.modelId,input:z,temperature:n,top_p:u,max_output_tokens:i,...(b?.type==="json"||U?.textVerbosity)&&{text:{...b?.type==="json"&&{format:b.schema==null?{type:"json_object"}:{type:"json_schema",strict:N,name:b.name??"response",description:b.description,schema:b.schema}},...U?.textVerbosity&&{verbosity:U.textVerbosity}}},max_tool_calls:U?.maxToolCalls,metadata:U?.metadata,parallel_tool_calls:U?.parallelToolCalls,previous_response_id:U?.previousResponseId,store:U?.store,user:U?.user,instructions:U?.instructions,service_tier:U?.serviceTier,include:j,prompt_cache_key:U?.promptCacheKey,safety_identifier:U?.safetyIdentifier,top_logprobs:E,...f.isReasoningModel&&(U?.reasoningEffort!=null||U?.reasoningSummary!=null)&&{reasoning:{...U?.reasoningEffort!=null&&{effort:U.reasoningEffort},...U?.reasoningSummary!=null&&{summary:U.reasoningSummary}}},...f.requiredAutoTruncation&&{truncation:"auto"}};f.isReasoningModel?(H.temperature!=null&&(H.temperature=void 0,v.push({type:"unsupported-setting",setting:"temperature",details:"temperature is not supported for reasoning models"})),H.top_p!=null&&(H.top_p=void 0,v.push({type:"unsupported-setting",setting:"topP",details:"topP is not supported for reasoning models"}))):(U?.reasoningEffort!=null&&v.push({type:"unsupported-setting",setting:"reasoningEffort",details:"reasoningEffort is not supported for non-reasoning models"}),U?.reasoningSummary!=null&&v.push({type:"unsupported-setting",setting:"reasoningSummary",details:"reasoningSummary is not supported for non-reasoning models"})),U?.serviceTier==="flex"&&!f.supportsFlexProcessing&&(v.push({type:"unsupported-setting",setting:"serviceTier",details:"flex processing is only available for o3, o4-mini, and gpt-5 models"}),delete H.service_tier),U?.serviceTier==="priority"&&!f.supportsPriorityProcessing&&(v.push({type:"unsupported-setting",setting:"serviceTier",details:"priority processing is only available for supported models (gpt-4, gpt-5, gpt-5-mini, o3, o4-mini) and requires Enterprise access. gpt-5-nano is not supported"}),delete H.service_tier);let{tools:Y,toolChoice:V,toolWarnings:Q}=mI({tools:$,toolChoice:w,strictJsonSchema:N});return{webSearchToolName:X,args:{...H,tools:Y,tool_choice:V},warnings:[...v,...Q]}}async doGenerate(i){var n,r;let{args:u,warnings:t,webSearchToolName:c}=await this.getArgs(i),g=this.config.url({path:"/responses",modelId:this.modelId}),{responseHeaders:h,value:_,rawValue:l}=await fi({url:g,headers:Ui(this.config.headers(),i.headers),body:u,failedResponseHandler:hn,successfulResponseHandler:Vi(o.object({id:o.string(),created_at:o.number(),error:o.object({code:o.string(),message:o.string()}).nullish(),model:o.string(),output:o.array(o.discriminatedUnion("type",[o.object({type:o.literal("message"),role:o.literal("assistant"),id:o.string(),content:o.array(o.object({type:o.literal("output_text"),text:o.string(),logprobs:sO.nullish(),annotations:o.array(o.discriminatedUnion("type",[o.object({type:o.literal("url_citation"),start_index:o.number(),end_index:o.number(),url:o.string(),title:o.string()}),o.object({type:o.literal("file_citation"),file_id:o.string(),filename:o.string().nullish(),index:o.number().nullish(),start_index:o.number().nullish(),end_index:o.number().nullish(),quote:o.string().nullish()}),o.object({type:o.literal("container_file_citation")})]))}))}),RO,ZO,eO,dO,pO,o.object({type:o.literal("function_call"),call_id:o.string(),name:o.string(),arguments:o.string(),id:o.string()}),o.object({type:o.literal("computer_call"),id:o.string(),status:o.string().optional()}),o.object({type:o.literal("reasoning"),id:o.string(),encrypted_content:o.string().nullish(),summary:o.array(o.object({type:o.literal("summary_text"),text:o.string()}))})])),service_tier:o.string().nullish(),incomplete_details:o.object({reason:o.string()}).nullish(),usage:ij})),abortSignal:i.abortSignal,fetch:this.config.fetch});if(_.error)throw new Pi({message:_.error.message,url:g,requestBodyValues:u,statusCode:400,responseHeaders:h,responseBody:l,isRetryable:!1});let $=[],w=[],b=!1;for(let f of _.output)switch(f.type){case"reasoning":f.summary.length===0&&f.summary.push({type:"summary_text",text:""});for(let U of f.summary)$.push({type:"reasoning",text:U.text,providerMetadata:{openai:{itemId:f.id,reasoningEncryptedContent:f.encrypted_content??null}}});break;case"image_generation_call":$.push({type:"tool-call",toolCallId:f.id,toolName:"image_generation",input:"{}",providerExecuted:!0}),$.push({type:"tool-result",toolCallId:f.id,toolName:"image_generation",result:{result:f.result},providerExecuted:!0});break;case"local_shell_call":$.push({type:"tool-call",toolCallId:f.call_id,toolName:"local_shell",input:JSON.stringify({action:f.action}),providerMetadata:{openai:{itemId:f.id}}});break;case"message":for(let U of f.content){i.providerOptions?.openai?.logprobs&&U.logprobs&&w.push(U.logprobs),$.push({type:"text",text:U.text,providerMetadata:{openai:{itemId:f.id}}});for(let z of U.annotations)z.type==="url_citation"?$.push({type:"source",sourceType:"url",id:(n=this.config).generateId?.call(n)??Qi(),url:z.url,title:z.title}):z.type==="file_citation"&&$.push({type:"source",sourceType:"document",id:(r=this.config).generateId?.call(r)??Qi(),mediaType:"text/plain",title:z.quote??z.filename??"Document",filename:z.filename??z.file_id})}break;case"function_call":b=!0,$.push({type:"tool-call",toolCallId:f.call_id,toolName:f.name,input:f.arguments,providerMetadata:{openai:{itemId:f.id}}});break;case"web_search_call":$.push({type:"tool-call",toolCallId:f.id,toolName:c??"web_search",input:JSON.stringify({action:f.action}),providerExecuted:!0}),$.push({type:"tool-result",toolCallId:f.id,toolName:c??"web_search",result:{status:f.status},providerExecuted:!0});break;case"computer_call":$.push({type:"tool-call",toolCallId:f.id,toolName:"computer_use",input:"",providerExecuted:!0}),$.push({type:"tool-result",toolCallId:f.id,toolName:"computer_use",result:{type:"computer_use_tool_result",status:f.status||"completed"},providerExecuted:!0});break;case"file_search_call":$.push({type:"tool-call",toolCallId:f.id,toolName:"file_search",input:"{}",providerExecuted:!0}),$.push({type:"tool-result",toolCallId:f.id,toolName:"file_search",result:{queries:f.queries,results:f.results?.map((U)=>({attributes:U.attributes,fileId:U.file_id,filename:U.filename,score:U.score,text:U.text}))??null},providerExecuted:!0});break;case"code_interpreter_call":$.push({type:"tool-call",toolCallId:f.id,toolName:"code_interpreter",input:JSON.stringify({code:f.code,containerId:f.container_id}),providerExecuted:!0}),$.push({type:"tool-result",toolCallId:f.id,toolName:"code_interpreter",result:{outputs:f.outputs},providerExecuted:!0});break}let v={openai:{responseId:_.id}};return w.length>0&&(v.openai.logprobs=w),typeof _.service_tier=="string"&&(v.openai.serviceTier=_.service_tier),{content:$,finishReason:x6({finishReason:_.incomplete_details?.reason,hasFunctionCall:b}),usage:{inputTokens:_.usage.input_tokens,outputTokens:_.usage.output_tokens,totalTokens:_.usage.input_tokens+_.usage.output_tokens,reasoningTokens:_.usage.output_tokens_details?.reasoning_tokens??void 0,cachedInputTokens:_.usage.input_tokens_details?.cached_tokens??void 0},request:{body:u},response:{id:_.id,timestamp:new Date(_.created_at*1000),modelId:_.model,headers:h,body:l},providerMetadata:v,warnings:t}}async doStream(i){let{args:n,warnings:r,webSearchToolName:u}=await this.getArgs(i),{responseHeaders:t,value:c}=await fi({url:this.config.url({path:"/responses",modelId:this.modelId}),headers:Ui(this.config.headers(),i.headers),body:{...n,stream:!0},failedResponseHandler:hn,successfulResponseHandler:Vt(RI),abortSignal:i.abortSignal,fetch:this.config.fetch}),g=this,h="unknown",_={inputTokens:void 0,outputTokens:void 0,totalTokens:void 0},l=[],$=null,w={},b=!1,v={},f;return{stream:c.pipeThrough(new TransformStream({start(U){U.enqueue({type:"stream-start",warnings:r})},transform(U,z){var J,N,j;if(i.includeRawChunks&&z.enqueue({type:"raw",rawValue:U.rawValue}),!U.success){h="error",z.enqueue({type:"error",error:U.error});return}let O=U.value;if(tj(O))O.item.type==="function_call"?(w[O.output_index]={toolName:O.item.name,toolCallId:O.item.call_id},z.enqueue({type:"tool-input-start",id:O.item.call_id,toolName:O.item.name})):O.item.type==="web_search_call"?(w[O.output_index]={toolName:u??"web_search",toolCallId:O.item.id},z.enqueue({type:"tool-input-start",id:O.item.id,toolName:u??"web_search"})):O.item.type==="computer_call"?(w[O.output_index]={toolName:"computer_use",toolCallId:O.item.id},z.enqueue({type:"tool-input-start",id:O.item.id,toolName:"computer_use"})):O.item.type==="code_interpreter_call"?(w[O.output_index]={toolName:"code_interpreter",toolCallId:O.item.id,codeInterpreter:{containerId:O.item.container_id}},z.enqueue({type:"tool-input-start",id:O.item.id,toolName:"code_interpreter"}),z.enqueue({type:"tool-input-delta",id:O.item.id,delta:`{"containerId":"${O.item.container_id}","code":"`})):O.item.type==="file_search_call"?z.enqueue({type:"tool-call",toolCallId:O.item.id,toolName:"file_search",input:"{}",providerExecuted:!0}):O.item.type==="image_generation_call"?z.enqueue({type:"tool-call",toolCallId:O.item.id,toolName:"image_generation",input:"{}",providerExecuted:!0}):O.item.type==="message"?z.enqueue({type:"text-start",id:O.item.id,providerMetadata:{openai:{itemId:O.item.id}}}):nY(O)&&(v[O.item.id]={encryptedContent:O.item.encrypted_content,summaryParts:[0]},z.enqueue({type:"reasoning-start",id:`${O.item.id}:0`,providerMetadata:{openai:{itemId:O.item.id,reasoningEncryptedContent:O.item.encrypted_content??null}}}));else if(nj(O)){if(O.item.type==="function_call")w[O.output_index]=void 0,b=!0,z.enqueue({type:"tool-input-end",id:O.item.call_id}),z.enqueue({type:"tool-call",toolCallId:O.item.call_id,toolName:O.item.name,input:O.item.arguments,providerMetadata:{openai:{itemId:O.item.id}}});else if(O.item.type==="web_search_call")w[O.output_index]=void 0,z.enqueue({type:"tool-input-end",id:O.item.id}),z.enqueue({type:"tool-call",toolCallId:O.item.id,toolName:"web_search",input:JSON.stringify({action:O.item.action}),providerExecuted:!0}),z.enqueue({type:"tool-result",toolCallId:O.item.id,toolName:"web_search",result:{status:O.item.status},providerExecuted:!0});else if(O.item.type==="computer_call")w[O.output_index]=void 0,z.enqueue({type:"tool-input-end",id:O.item.id}),z.enqueue({type:"tool-call",toolCallId:O.item.id,toolName:"computer_use",input:"",providerExecuted:!0}),z.enqueue({type:"tool-result",toolCallId:O.item.id,toolName:"computer_use",result:{type:"computer_use_tool_result",status:O.item.status||"completed"},providerExecuted:!0});else if(O.item.type==="file_search_call")w[O.output_index]=void 0,z.enqueue({type:"tool-result",toolCallId:O.item.id,toolName:"file_search",result:{queries:O.item.queries,results:O.item.results?.map((W)=>({attributes:W.attributes,fileId:W.file_id,filename:W.filename,score:W.score,text:W.text}))??null},providerExecuted:!0});else if(O.item.type==="code_interpreter_call")w[O.output_index]=void 0,z.enqueue({type:"tool-result",toolCallId:O.item.id,toolName:"code_interpreter",result:{outputs:O.item.outputs},providerExecuted:!0});else if(O.item.type==="image_generation_call")z.enqueue({type:"tool-result",toolCallId:O.item.id,toolName:"image_generation",result:{result:O.item.result},providerExecuted:!0});else if(O.item.type==="local_shell_call")w[O.output_index]=void 0,z.enqueue({type:"tool-call",toolCallId:O.item.call_id,toolName:"local_shell",input:JSON.stringify({action:{type:"exec",command:O.item.action.command,timeoutMs:O.item.action.timeout_ms,user:O.item.action.user,workingDirectory:O.item.action.working_directory,env:O.item.action.env}}),providerMetadata:{openai:{itemId:O.item.id}}});else if(O.item.type==="message")z.enqueue({type:"text-end",id:O.item.id});else if(eI(O)){let W=v[O.item.id];for(let E of W.summaryParts)z.enqueue({type:"reasoning-end",id:`${O.item.id}:${E}`,providerMetadata:{openai:{itemId:O.item.id,reasoningEncryptedContent:O.item.encrypted_content??null}}});delete v[O.item.id]}}else if(aI(O)){let W=w[O.output_index];W!=null&&z.enqueue({type:"tool-input-delta",id:W.toolCallId,delta:O.delta})}else if(sI(O)){let W=w[O.output_index];W!=null&&z.enqueue({type:"tool-input-delta",id:W.toolCallId,delta:JSON.stringify(O.delta).slice(1,-1)})}else if(iY(O)){let W=w[O.output_index];W!=null&&(z.enqueue({type:"tool-input-delta",id:W.toolCallId,delta:\'"}\'}),z.enqueue({type:"tool-input-end",id:W.toolCallId}),z.enqueue({type:"tool-call",toolCallId:W.toolCallId,toolName:"code_interpreter",input:JSON.stringify({code:O.code,containerId:W.codeInterpreter.containerId}),providerExecuted:!0}))}else dI(O)?($=O.response.id,z.enqueue({type:"response-metadata",id:O.response.id,timestamp:new Date(O.response.created_at*1000),modelId:O.response.model})):ZI(O)?(z.enqueue({type:"text-delta",id:O.item_id,delta:O.delta}),i.providerOptions?.openai?.logprobs&&O.logprobs&&l.push(O.logprobs)):rY(O)?O.summary_index>0&&((J=v[O.item_id])==null||J.summaryParts.push(O.summary_index),z.enqueue({type:"reasoning-start",id:`${O.item_id}:${O.summary_index}`,providerMetadata:{openai:{itemId:O.item_id,reasoningEncryptedContent:v[O.item_id]?.encryptedContent??null}}})):uY(O)?z.enqueue({type:"reasoning-delta",id:`${O.item_id}:${O.summary_index}`,delta:O.delta,providerMetadata:{openai:{itemId:O.item_id}}}):pI(O)?(h=x6({finishReason:O.response.incomplete_details?.reason,hasFunctionCall:b}),_.inputTokens=O.response.usage.input_tokens,_.outputTokens=O.response.usage.output_tokens,_.totalTokens=O.response.usage.input_tokens+O.response.usage.output_tokens,_.reasoningTokens=O.response.usage.output_tokens_details?.reasoning_tokens??void 0,_.cachedInputTokens=O.response.usage.input_tokens_details?.cached_tokens??void 0,typeof O.response.service_tier=="string"&&(f=O.response.service_tier)):tY(O)?O.annotation.type==="url_citation"?z.enqueue({type:"source",sourceType:"url",id:(N=g.config).generateId?.call(N)??Qi(),url:O.annotation.url,title:O.annotation.title}):O.annotation.type==="file_citation"&&z.enqueue({type:"source",sourceType:"document",id:(j=g.config).generateId?.call(j)??Qi(),mediaType:"text/plain",title:O.annotation.quote??O.annotation.filename??"Document",filename:O.annotation.filename??O.annotation.file_id}):cY(O)&&z.enqueue({type:"error",error:O})},flush(U){let z={openai:{responseId:$}};l.length>0&&(z.openai.logprobs=l),f!==void 0&&(z.openai.serviceTier=f),U.enqueue({type:"finish",finishReason:h,usage:_,providerMetadata:z})}})),request:{body:n},response:{headers:t}}}},ij=o.object({input_tokens:o.number(),input_tokens_details:o.object({cached_tokens:o.number().nullish()}).nullish(),output_tokens:o.number(),output_tokens_details:o.object({reasoning_tokens:o.number().nullish()}).nullish()}),AI=o.object({type:o.literal("response.output_text.delta"),item_id:o.string(),delta:o.string(),logprobs:sO.nullish()}),BI=o.object({type:o.literal("error"),code:o.string(),message:o.string(),param:o.string().nullish(),sequence_number:o.number()}),KI=o.object({type:o.enum(["response.completed","response.incomplete"]),response:o.object({incomplete_details:o.object({reason:o.string()}).nullish(),usage:ij,service_tier:o.string().nullish()})}),VI=o.object({type:o.literal("response.created"),response:o.object({id:o.string(),created_at:o.number(),model:o.string(),service_tier:o.string().nullish()})}),MI=o.object({type:o.literal("response.output_item.added"),output_index:o.number(),item:o.discriminatedUnion("type",[o.object({type:o.literal("message"),id:o.string()}),o.object({type:o.literal("reasoning"),id:o.string(),encrypted_content:o.string().nullish()}),o.object({type:o.literal("function_call"),id:o.string(),call_id:o.string(),name:o.string(),arguments:o.string()}),o.object({type:o.literal("web_search_call"),id:o.string(),status:o.string(),action:o.object({type:o.literal("search"),query:o.string().optional()}).nullish()}),o.object({type:o.literal("computer_call"),id:o.string(),status:o.string()}),o.object({type:o.literal("file_search_call"),id:o.string()}),o.object({type:o.literal("image_generation_call"),id:o.string()}),o.object({type:o.literal("code_interpreter_call"),id:o.string(),container_id:o.string(),code:o.string().nullable(),outputs:o.array(o.discriminatedUnion("type",[o.object({type:o.literal("logs"),logs:o.string()}),o.object({type:o.literal("image"),url:o.string()})])).nullable(),status:o.string()})])}),xI=o.object({type:o.literal("response.output_item.done"),output_index:o.number(),item:o.discriminatedUnion("type",[o.object({type:o.literal("message"),id:o.string()}),o.object({type:o.literal("reasoning"),id:o.string(),encrypted_content:o.string().nullish()}),o.object({type:o.literal("function_call"),id:o.string(),call_id:o.string(),name:o.string(),arguments:o.string(),status:o.literal("completed")}),eO,dO,RO,ZO,pO,o.object({type:o.literal("computer_call"),id:o.string(),status:o.literal("completed")})])}),FI=o.object({type:o.literal("response.function_call_arguments.delta"),item_id:o.string(),output_index:o.number(),delta:o.string()}),PI=o.object({type:o.literal("response.code_interpreter_call_code.delta"),item_id:o.string(),output_index:o.number(),delta:o.string()}),yI=o.object({type:o.literal("response.code_interpreter_call_code.done"),item_id:o.string(),output_index:o.number(),code:o.string()}),TI=o.object({type:o.literal("response.output_text.annotation.added"),annotation:o.discriminatedUnion("type",[o.object({type:o.literal("url_citation"),url:o.string(),title:o.string()}),o.object({type:o.literal("file_citation"),file_id:o.string(),filename:o.string().nullish(),index:o.number().nullish(),start_index:o.number().nullish(),end_index:o.number().nullish(),quote:o.string().nullish()})])}),kI=o.object({type:o.literal("response.reasoning_summary_part.added"),item_id:o.string(),summary_index:o.number()}),CI=o.object({type:o.literal("response.reasoning_summary_text.delta"),item_id:o.string(),summary_index:o.number(),delta:o.string()}),RI=o.union([AI,KI,VI,MI,xI,FI,PI,yI,TI,kI,CI,BI,o.object({type:o.string()}).loose()]);function ZI(i){return i.type==="response.output_text.delta"}function nj(i){return i.type==="response.output_item.done"}function eI(i){return nj(i)&&i.item.type==="reasoning"}function pI(i){return i.type==="response.completed"||i.type==="response.incomplete"}function dI(i){return i.type==="response.created"}function aI(i){return i.type==="response.function_call_arguments.delta"}function sI(i){return i.type==="response.code_interpreter_call_code.delta"}function iY(i){return i.type==="response.code_interpreter_call_code.done"}function tj(i){return i.type==="response.output_item.added"}function nY(i){return tj(i)&&i.item.type==="reasoning"}function tY(i){return i.type==="response.output_text.annotation.added"}function rY(i){return i.type==="response.reasoning_summary_part.added"}function uY(i){return i.type==="response.reasoning_summary_text.delta"}function cY(i){return i.type==="error"}function oY(i){let n=i.startsWith("o3")||i.startsWith("o4-mini")||i.startsWith("gpt-5")&&!i.startsWith("gpt-5-chat"),r=i.startsWith("gpt-4")||i.startsWith("gpt-5-mini")||i.startsWith("gpt-5")&&!i.startsWith("gpt-5-nano")&&!i.startsWith("gpt-5-chat")||i.startsWith("o3")||i.startsWith("o4-mini"),u={requiredAutoTruncation:!1,systemMessageMode:"system",supportsFlexProcessing:n,supportsPriorityProcessing:r};return i.startsWith("gpt-5-chat")?{...u,isReasoningModel:!1}:i.startsWith("o")||i.startsWith("gpt-5")||i.startsWith("codex-")||i.startsWith("computer-use")?i.startsWith("o1-mini")||i.startsWith("o1-preview")?{...u,isReasoningModel:!0,systemMessageMode:"remove"}:{...u,isReasoningModel:!0,systemMessageMode:"developer"}:{...u,isReasoningModel:!1}}var gY=o.object({include:o.array(o.enum(["reasoning.encrypted_content","file_search_call.results","message.output_text.logprobs"])).nullish(),instructions:o.string().nullish(),logprobs:o.union([o.boolean(),o.number().min(1).max(aO)]).optional(),maxToolCalls:o.number().nullish(),metadata:o.any().nullish(),parallelToolCalls:o.boolean().nullish(),previousResponseId:o.string().nullish(),promptCacheKey:o.string().nullish(),reasoningEffort:o.string().nullish(),reasoningSummary:o.string().nullish(),safetyIdentifier:o.string().nullish(),serviceTier:o.enum(["auto","flex","priority"]).nullish(),store:o.boolean().nullish(),strictJsonSchema:o.boolean().nullish(),textVerbosity:o.enum(["low","medium","high"]).nullish(),user:o.string().nullish()}),hY=o.object({instructions:o.string().nullish(),speed:o.number().min(0.25).max(4).default(1).nullish()}),_Y=class{constructor(i,n){this.modelId=i,this.config=n,this.specificationVersion="v2"}get provider(){return this.config.provider}async getArgs({text:i,voice:n="alloy",outputFormat:r="mp3",speed:u,instructions:t,language:c,providerOptions:g}){let h=[],_=await Hi({provider:"openai",providerOptions:g,schema:hY}),l={model:this.modelId,input:i,voice:n,response_format:"mp3",speed:u,instructions:t};if(r&&(["mp3","opus","aac","flac","wav","pcm"].includes(r)?l.response_format=r:h.push({type:"unsupported-setting",setting:"outputFormat",details:`Unsupported output format: ${r}. Using mp3 instead.`})),_){let $={};for(let w in $){let b=$[w];b!==void 0&&(l[w]=b)}}return c&&h.push({type:"unsupported-setting",setting:"language",details:`OpenAI speech models do not support language selection. Language parameter "${c}" was ignored.`}),{requestBody:l,warnings:h}}async doGenerate(i){var n;let r=(n=this.config._internal)?.currentDate?.call(n)??new Date,{requestBody:u,warnings:t}=await this.getArgs(i),{value:c,responseHeaders:g,rawValue:h}=await fi({url:this.config.url({path:"/audio/speech",modelId:this.modelId}),headers:Ui(this.config.headers(),i.headers),body:u,failedResponseHandler:hn,successfulResponseHandler:KX(),abortSignal:i.abortSignal,fetch:this.config.fetch});return{audio:c,warnings:t,request:{body:JSON.stringify(u)},response:{timestamp:r,modelId:this.modelId,headers:g,body:h}}}},lY=o.object({include:o.array(o.string()).optional(),language:o.string().optional(),prompt:o.string().optional(),temperature:o.number().min(0).max(1).default(0).optional(),timestampGranularities:o.array(o.enum(["word","segment"])).default(["segment"]).optional()}),F6={afrikaans:"af",arabic:"ar",armenian:"hy",azerbaijani:"az",belarusian:"be",bosnian:"bs",bulgarian:"bg",catalan:"ca",chinese:"zh",croatian:"hr",czech:"cs",danish:"da",dutch:"nl",english:"en",estonian:"et",finnish:"fi",french:"fr",galician:"gl",german:"de",greek:"el",hebrew:"he",hindi:"hi",hungarian:"hu",icelandic:"is",indonesian:"id",italian:"it",japanese:"ja",kannada:"kn",kazakh:"kk",korean:"ko",latvian:"lv",lithuanian:"lt",macedonian:"mk",malay:"ms",marathi:"mr",maori:"mi",nepali:"ne",norwegian:"no",persian:"fa",polish:"pl",portuguese:"pt",romanian:"ro",russian:"ru",serbian:"sr",slovak:"sk",slovenian:"sl",spanish:"es",swahili:"sw",swedish:"sv",tagalog:"tl",tamil:"ta",thai:"th",turkish:"tr",ukrainian:"uk",urdu:"ur",vietnamese:"vi",welsh:"cy"},$Y=class{constructor(i,n){this.modelId=i,this.config=n,this.specificationVersion="v2"}get provider(){return this.config.provider}async getArgs({audio:i,mediaType:n,providerOptions:r}){let u=[],t=await Hi({provider:"openai",providerOptions:r,schema:lY}),c=new FormData,g=i instanceof Uint8Array?new Blob([i]):new Blob([xX(i)]);c.append("model",this.modelId);let h=JX(n);if(c.append("file",new File([g],"audio",{type:n}),`audio.${h}`),t){let _={include:t.include,language:t.language,prompt:t.prompt,response_format:["gpt-4o-transcribe","gpt-4o-mini-transcribe"].includes(this.modelId)?"json":"verbose_json",temperature:t.temperature,timestamp_granularities:t.timestampGranularities};for(let[l,$]of Object.entries(_))if($!=null)if(Array.isArray($))for(let w of $)c.append(`${l}[]`,String(w));else c.append(l,String($))}return{formData:c,warnings:u}}async doGenerate(i){var n;let r=(n=this.config._internal)?.currentDate?.call(n)??new Date,{formData:u,warnings:t}=await this.getArgs(i),{value:c,responseHeaders:g,rawValue:h}=await BX({url:this.config.url({path:"/audio/transcriptions",modelId:this.modelId}),headers:Ui(this.config.headers(),i.headers),formData:u,failedResponseHandler:hn,successfulResponseHandler:Vi(wY),abortSignal:i.abortSignal,fetch:this.config.fetch}),_=c.language!=null&&c.language in F6?F6[c.language]:void 0;return{text:c.text,segments:c.segments?.map((l)=>({text:l.text,startSecond:l.start,endSecond:l.end}))??c.words?.map((l)=>({text:l.word,startSecond:l.start,endSecond:l.end}))??[],language:_,durationInSeconds:c.duration??void 0,warnings:t,response:{timestamp:r,modelId:this.modelId,headers:g,body:h}}}},wY=o.object({text:o.string(),language:o.string().nullish(),duration:o.number().nullish(),words:o.array(o.object({word:o.string(),start:o.number(),end:o.number()})).nullish(),segments:o.array(o.object({id:o.number(),seek:o.number(),start:o.number(),end:o.number(),text:o.string(),tokens:o.array(o.number()),temperature:o.number(),avg_logprob:o.number(),compression_ratio:o.number(),no_speech_prob:o.number()})).nullish()}),bY="2.0.42";function vY(i={}){let n=jo(DX({settingValue:i.baseURL,environmentVariableName:"OPENAI_BASE_URL"}))??"https://api.openai.com/v1",r=i.name??"openai",u=()=>wu({Authorization:`Bearer ${Oo({apiKey:i.apiKey,environmentVariableName:"OPENAI_API_KEY",description:"OpenAI"})}`,"OpenAI-Organization":i.organization,"OpenAI-Project":i.project,...i.headers},`ai-sdk/openai/${bY}`),t=(v)=>new ZL(v,{provider:`${r}.chat`,url:({path:f})=>`${n}${f}`,headers:u,fetch:i.fetch}),c=(v)=>new tI(v,{provider:`${r}.completion`,url:({path:f})=>`${n}${f}`,headers:u,fetch:i.fetch}),g=(v)=>new oI(v,{provider:`${r}.embedding`,url:({path:f})=>`${n}${f}`,headers:u,fetch:i.fetch}),h=(v)=>new lI(v,{provider:`${r}.image`,url:({path:f})=>`${n}${f}`,headers:u,fetch:i.fetch}),_=(v)=>new $Y(v,{provider:`${r}.transcription`,url:({path:f})=>`${n}${f}`,headers:u,fetch:i.fetch}),l=(v)=>new _Y(v,{provider:`${r}.speech`,url:({path:f})=>`${n}${f}`,headers:u,fetch:i.fetch}),$=(v)=>{if(new.target)throw Error("The OpenAI model function cannot be called with the new keyword.");return w(v)},w=(v)=>new SI(v,{provider:`${r}.responses`,url:({path:f})=>`${n}${f}`,headers:u,fetch:i.fetch,fileIdPrefixes:["file-"]}),b=function(v){return $(v)};return b.languageModel=$,b.chat=t,b.completion=c,b.responses=w,b.embedding=g,b.textEmbedding=g,b.textEmbeddingModel=g,b.image=h,b.imageModel=h,b.transcription=_,b.transcriptionModel=_,b.speech=l,b.speechModel=l,b.tools=II,b}vY(),o.object({user:o.string().optional(),reasoningEffort:o.string().optional()});var fY={errorSchema:o.object({error:o.object({message:o.string(),type:o.string().nullish(),param:o.any().nullish(),code:o.union([o.string(),o.number()]).nullish()})}),errorToMessage:(i)=>i.error.message},OY=o.object({prompt_tokens:o.number().nullish(),completion_tokens:o.number().nullish(),total_tokens:o.number().nullish(),prompt_tokens_details:o.object({cached_tokens:o.number().nullish()}).nullish(),completion_tokens_details:o.object({reasoning_tokens:o.number().nullish(),accepted_prediction_tokens:o.number().nullish(),rejected_prediction_tokens:o.number().nullish()}).nullish()}).nullish();o.object({id:o.string().nullish(),created:o.number().nullish(),model:o.string().nullish(),choices:o.array(o.object({message:o.object({role:o.literal("assistant").nullish(),content:o.string().nullish(),reasoning_content:o.string().nullish(),reasoning:o.string().nullish(),tool_calls:o.array(o.object({id:o.string().nullish(),function:o.object({name:o.string(),arguments:o.string()})})).nullish()}),finish_reason:o.string().nullish()})),usage:OY}),o.object({echo:o.boolean().optional(),logitBias:o.record(o.string(),o.number()).optional(),suffix:o.string().optional(),user:o.string().optional()});var jY=o.object({prompt_tokens:o.number(),completion_tokens:o.number(),total_tokens:o.number()});o.object({id:o.string().nullish(),created:o.number().nullish(),model:o.string().nullish(),choices:o.array(o.object({text:o.string(),finish_reason:o.string()})),usage:jY.nullish()}),o.object({dimensions:o.number().optional(),user:o.string().optional()}),o.object({data:o.array(o.object({embedding:o.array(o.number())})),usage:o.object({prompt_tokens:o.number()}).nullish(),providerMetadata:o.record(o.string(),o.record(o.string(),o.any())).optional()});var UY=class{constructor(i,n){this.modelId=i,this.config=n,this.specificationVersion="v2",this.maxImagesPerCall=10}get provider(){return this.config.provider}async doGenerate({prompt:i,n,size:r,aspectRatio:u,seed:t,providerOptions:c,headers:g,abortSignal:h}){var _;let l=[];u!=null&&l.push({type:"unsupported-setting",setting:"aspectRatio",details:"This model does not support aspect ratio. Use `size` instead."}),t!=null&&l.push({type:"unsupported-setting",setting:"seed"});let $=(_=this.config._internal)?.currentDate?.call(_)??new Date,{value:w,responseHeaders:b}=await fi({url:this.config.url({path:"/images/generations",modelId:this.modelId}),headers:Ui(this.config.headers(),g),body:{model:this.modelId,prompt:i,n,size:r,...c.openai??{},response_format:"b64_json"},failedResponseHandler:bu(this.config.errorStructure??fY),successfulResponseHandler:Vi(NY),abortSignal:h,fetch:this.config.fetch});return{images:w.data.map((v)=>v.b64_json),warnings:l,response:{timestamp:$,modelId:this.modelId,headers:b}}}},NY=o.object({data:o.array(o.object({b64_json:o.string()}))});function zY(i){let n=[],r=[];for(let{role:u,content:t}of i)switch(u){case"system":n.push({role:"system",content:t});break;case"user":if(t.length===1&&t[0].type==="text"){n.push({role:"user",content:t[0].text});break}n.push({role:"user",content:t.map((c)=>{switch(c.type){case"text":return{type:"text",text:c.text};case"file":if(c.mediaType.startsWith("image/")){let g=c.mediaType==="image/*"?"image/jpeg":c.mediaType;return{type:"image_url",image_url:{url:c.data instanceof URL?c.data.toString():`data:${g};base64,${pi(c.data)}`}}}else throw new oi({functionality:`file part media type ${c.mediaType}`})}})});break;case"assistant":{let c="",g=[];for(let h of t)switch(h.type){case"text":c+=h.text;break;case"tool-call":g.push({id:h.toolCallId,type:"function",function:{name:h.toolName,arguments:JSON.stringify(h.input)}});break}n.push({role:"assistant",content:c,tool_calls:g.length>0?g:void 0});break}case"tool":for(let c of t){let g=c.output,h;switch(g.type){case"text":case"error-text":h=g.value;break;case"content":case"json":case"error-json":h=JSON.stringify(g.value);break}n.push({role:"tool",tool_call_id:c.toolCallId,content:h})}break;default:throw Error(`Unsupported role: ${u}`)}return{messages:n,warnings:r}}function P6({id:i,model:n,created:r}){return{id:i??void 0,modelId:n??void 0,timestamp:r==null?void 0:new Date(r*1000)}}function y6(i){switch(i){case"stop":return"stop";case"length":return"length";case"tool_calls":case"function_call":return"tool-calls";case"content_filter":return"content-filter";default:return"unknown"}}var WY=o.object({type:o.literal("web"),country:o.string().length(2).optional(),excludedWebsites:o.array(o.string()).max(5).optional(),allowedWebsites:o.array(o.string()).max(5).optional(),safeSearch:o.boolean().optional()}),DY=o.object({type:o.literal("x"),excludedXHandles:o.array(o.string()).optional(),includedXHandles:o.array(o.string()).optional(),postFavoriteCount:o.number().int().optional(),postViewCount:o.number().int().optional(),xHandles:o.array(o.string()).optional()}),JY=o.object({type:o.literal("news"),country:o.string().length(2).optional(),excludedWebsites:o.array(o.string()).max(5).optional(),safeSearch:o.boolean().optional()}),EY=o.object({type:o.literal("rss"),links:o.array(o.string().url()).max(1)}),HY=o.discriminatedUnion("type",[WY,DY,JY,EY]),GY=o.object({reasoningEffort:o.enum(["low","high"]).optional(),searchParameters:o.object({mode:o.enum(["off","auto","on"]),returnCitations:o.boolean().optional(),fromDate:o.string().optional(),toDate:o.string().optional(),maxSearchResults:o.number().min(1).max(50).optional(),sources:o.array(HY).optional()}).optional()}),rj=o.object({error:o.object({message:o.string(),type:o.string().nullish(),param:o.any().nullish(),code:o.union([o.string(),o.number()]).nullish()})}),T6=bu({errorSchema:rj,errorToMessage:(i)=>i.error.message});function qY({tools:i,toolChoice:n}){i=i?.length?i:void 0;let r=[];if(i==null)return{tools:void 0,toolChoice:void 0,toolWarnings:r};let u=[];for(let c of i)c.type==="provider-defined"?r.push({type:"unsupported-tool",tool:c}):u.push({type:"function",function:{name:c.name,description:c.description,parameters:c.inputSchema}});if(n==null)return{tools:u,toolChoice:void 0,toolWarnings:r};let t=n.type;switch(t){case"auto":case"none":return{tools:u,toolChoice:t,toolWarnings:r};case"required":return{tools:u,toolChoice:"required",toolWarnings:r};case"tool":return{tools:u,toolChoice:{type:"function",function:{name:n.toolName}},toolWarnings:r};default:throw new oi({functionality:`tool choice type: ${t}`})}}var XY=class{constructor(i,n){this.specificationVersion="v2",this.supportedUrls={"image/*":[/^https?:\\/\\/.*$/]},this.modelId=i,this.config=n}get provider(){return this.config.provider}async getArgs({prompt:i,maxOutputTokens:n,temperature:r,topP:u,topK:t,frequencyPenalty:c,presencePenalty:g,stopSequences:h,seed:_,responseFormat:l,providerOptions:$,tools:w,toolChoice:b}){let v=[],f=await Hi({provider:"xai",providerOptions:$,schema:GY})??{};t!=null&&v.push({type:"unsupported-setting",setting:"topK"}),c!=null&&v.push({type:"unsupported-setting",setting:"frequencyPenalty"}),g!=null&&v.push({type:"unsupported-setting",setting:"presencePenalty"}),h!=null&&v.push({type:"unsupported-setting",setting:"stopSequences"}),l!=null&&l.type==="json"&&l.schema!=null&&v.push({type:"unsupported-setting",setting:"responseFormat",details:"JSON response format schema is not supported"});let{messages:U,warnings:z}=zY(i);v.push(...z);let{tools:J,toolChoice:N,toolWarnings:j}=qY({tools:w,toolChoice:b});return v.push(...j),{args:{model:this.modelId,max_tokens:n,temperature:r,top_p:u,seed:_,reasoning_effort:f.reasoningEffort,response_format:l?.type==="json"?l.schema==null?{type:"json_object"}:{type:"json_schema",json_schema:{name:l.name??"response",schema:l.schema,strict:!0}}:void 0,search_parameters:f.searchParameters?{mode:f.searchParameters.mode,return_citations:f.searchParameters.returnCitations,from_date:f.searchParameters.fromDate,to_date:f.searchParameters.toDate,max_search_results:f.searchParameters.maxSearchResults,sources:f.searchParameters.sources?.map((O)=>({type:O.type,...O.type==="web"&&{country:O.country,excluded_websites:O.excludedWebsites,allowed_websites:O.allowedWebsites,safe_search:O.safeSearch},...O.type==="x"&&{excluded_x_handles:O.excludedXHandles,included_x_handles:O.includedXHandles??O.xHandles,post_favorite_count:O.postFavoriteCount,post_view_count:O.postViewCount},...O.type==="news"&&{country:O.country,excluded_websites:O.excludedWebsites,safe_search:O.safeSearch},...O.type==="rss"&&{links:O.links}}))}:void 0,messages:U,tools:J,tool_choice:N},warnings:v}}async doGenerate(i){let{args:n,warnings:r}=await this.getArgs(i),{responseHeaders:u,value:t,rawValue:c}=await fi({url:`${this.config.baseURL??"https://api.x.ai/v1"}/chat/completions`,headers:Ui(this.config.headers(),i.headers),body:n,failedResponseHandler:T6,successfulResponseHandler:Vi(LY),abortSignal:i.abortSignal,fetch:this.config.fetch}),g=t.choices[0],h=[];if(g.message.content!=null&&g.message.content.length>0){let _=g.message.content,l=n.messages[n.messages.length-1];l?.role==="assistant"&&_===l.content&&(_=""),_.length>0&&h.push({type:"text",text:_})}if(g.message.reasoning_content!=null&&g.message.reasoning_content.length>0&&h.push({type:"reasoning",text:g.message.reasoning_content}),g.message.tool_calls!=null)for(let _ of g.message.tool_calls)h.push({type:"tool-call",toolCallId:_.id,toolName:_.function.name,input:_.function.arguments});if(t.citations!=null)for(let _ of t.citations)h.push({type:"source",sourceType:"url",id:this.config.generateId(),url:_});return{content:h,finishReason:y6(g.finish_reason),usage:{inputTokens:t.usage.prompt_tokens,outputTokens:t.usage.completion_tokens,totalTokens:t.usage.total_tokens,reasoningTokens:t.usage.completion_tokens_details?.reasoning_tokens??void 0},request:{body:n},response:{...P6(t),headers:u,body:c},warnings:r}}async doStream(i){let{args:n,warnings:r}=await this.getArgs(i),u={...n,stream:!0,stream_options:{include_usage:!0}},{responseHeaders:t,value:c}=await fi({url:`${this.config.baseURL??"https://api.x.ai/v1"}/chat/completions`,headers:Ui(this.config.headers(),i.headers),body:u,failedResponseHandler:T6,successfulResponseHandler:Vt(IY),abortSignal:i.abortSignal,fetch:this.config.fetch}),g="unknown",h={inputTokens:void 0,outputTokens:void 0,totalTokens:void 0},_=!0,l={},$={},w=this;return{stream:c.pipeThrough(new TransformStream({start(b){b.enqueue({type:"stream-start",warnings:r})},transform(b,v){if(i.includeRawChunks&&v.enqueue({type:"raw",rawValue:b.rawValue}),!b.success){v.enqueue({type:"error",error:b.error});return}let f=b.value;if(_&&=(v.enqueue({type:"response-metadata",...P6(f)}),!1),f.citations!=null)for(let N of f.citations)v.enqueue({type:"source",sourceType:"url",id:w.config.generateId(),url:N});f.usage!=null&&(h.inputTokens=f.usage.prompt_tokens,h.outputTokens=f.usage.completion_tokens,h.totalTokens=f.usage.total_tokens,h.reasoningTokens=f.usage.completion_tokens_details?.reasoning_tokens??void 0);let U=f.choices[0];if(U?.finish_reason!=null&&(g=y6(U.finish_reason)),U?.delta==null)return;let{delta:z,index:J}=U;if(z.content!=null&&z.content.length>0){let N=z.content,j=u.messages[u.messages.length-1];if(j?.role==="assistant"&&N===j.content)return;let O=`text-${f.id||J}`;l[O]??(l[O]={type:"text"},v.enqueue({type:"text-start",id:O})),v.enqueue({type:"text-delta",id:O,delta:N})}if(z.reasoning_content!=null&&z.reasoning_content.length>0){let N=`reasoning-${f.id||J}`;if($[N]===z.reasoning_content)return;$[N]=z.reasoning_content,l[N]??(l[N]={type:"reasoning"},v.enqueue({type:"reasoning-start",id:N})),v.enqueue({type:"reasoning-delta",id:N,delta:z.reasoning_content})}if(z.tool_calls!=null)for(let N of z.tool_calls){let j=N.id;v.enqueue({type:"tool-input-start",id:j,toolName:N.function.name}),v.enqueue({type:"tool-input-delta",id:j,delta:N.function.arguments}),v.enqueue({type:"tool-input-end",id:j}),v.enqueue({type:"tool-call",toolCallId:j,toolName:N.function.name,input:N.function.arguments})}},flush(b){for(let[v,f]of Object.entries(l))b.enqueue({type:f.type==="text"?"text-end":"reasoning-end",id:v});b.enqueue({type:"finish",finishReason:g,usage:h})}})),request:{body:u},response:{headers:t}}}},uj=o.object({prompt_tokens:o.number(),completion_tokens:o.number(),total_tokens:o.number(),completion_tokens_details:o.object({reasoning_tokens:o.number().nullish()}).nullish()}),LY=o.object({id:o.string().nullish(),created:o.number().nullish(),model:o.string().nullish(),choices:o.array(o.object({message:o.object({role:o.literal("assistant"),content:o.string().nullish(),reasoning_content:o.string().nullish(),tool_calls:o.array(o.object({id:o.string(),type:o.literal("function"),function:o.object({name:o.string(),arguments:o.string()})})).nullish()}),index:o.number(),finish_reason:o.string().nullish()})),object:o.literal("chat.completion"),usage:uj,citations:o.array(o.string().url()).nullish()}),IY=o.object({id:o.string().nullish(),created:o.number().nullish(),model:o.string().nullish(),choices:o.array(o.object({delta:o.object({role:o.enum(["assistant"]).optional(),content:o.string().nullish(),reasoning_content:o.string().nullish(),tool_calls:o.array(o.object({id:o.string(),type:o.literal("function"),function:o.object({name:o.string(),arguments:o.string()})})).nullish()}),finish_reason:o.string().nullish(),index:o.number()})),usage:uj.nullish(),citations:o.array(o.string().url()).nullish()}),YY="2.0.23",QY={errorSchema:rj,errorToMessage:(i)=>i.error.message};function mY(i={}){let n=jo(i.baseURL??"https://api.x.ai/v1"),r=()=>wu({Authorization:`Bearer ${Oo({apiKey:i.apiKey,environmentVariableName:"XAI_API_KEY",description:"xAI API key"})}`,...i.headers},`ai-sdk/xai/${YY}`),u=(g)=>new XY(g,{provider:"xai.chat",baseURL:n,headers:r,generateId:Qi,fetch:i.fetch}),t=(g)=>new UY(g,{provider:"xai.image",url:({path:h})=>`${n}${h}`,headers:r,fetch:i.fetch,errorStructure:QY}),c=(g)=>u(g);return c.languageModel=u,c.chat=u,c.textEmbeddingModel=(g)=>{throw new U0({modelId:g,modelType:"textEmbeddingModel"})},c.imageModel=t,c.image=t,c}mY();var cj="BLINK_API_URL";function gj(){let i,n=()=>{return new Ru({baseURL:process.env[G0],authToken:i})},r=process.env[zo]?parseInt(process.env[zo]):12345,u={get(h){return n().getStorage(h)},set(h,_){return n().setStorage(h,_)},delete(h){return n().deleteStorage(h)},list(h,_){return n().listStorage(h,_)}},t={traces(h){return n().proxyOtlpTraces(h)}},c={upsert:async(h)=>{let _=await n().upsertChat(JSON.stringify(h));return{created:_.created,id:_.id,createdAt:_.created_at}},delete:async(h)=>{await n().deleteChat(h)},deleteMessages:async(h,_)=>{await n().deleteMessages(h,_)},get:async(h)=>{let _=await n().getChat(h);if(!_)return;return{id:_.id,createdAt:_.createdAt}},getMessages:async(h)=>{return(await n().getMessages(h)).map((l)=>({id:l.id,role:l.role,parts:l.parts,metadata:l.metadata}))},start:async(h)=>{await n().startChat(h)},stop:async(h)=>{await n().stopChat(h)},sendMessages:async(h,_,l)=>{await n().sendMessages(h,{messages:_.map(($)=>({id:$.id,role:$.role,parts:$.parts,metadata:$.metadata})),behavior:l?.behavior??"enqueue"})}},g=SY(Gg((h)=>{return zf.fetch(h,{chat:c,store:u,otlp:t})}));return g.listen(r,"127.0.0.1"),process.env[cj]=`http://127.0.0.1:${r}`,{server:g,port:r,setAuthToken(h){i=h,process.env.BLINK_INVOCATION_AUTH_TOKEN=h}}}async function hj(i,n,r=!1){let u=process.env.PORT;process.env.PORT=n.toString();let t=oj.prototype.listen,c=new Promise((_,l)=>{oj.prototype.listen=function(...$){if(this.on("listening",()=>{_(void 0)}),this.on("error",(w)=>{l(w)}),r)this.unref();return t.apply(this,$)}});await import(i),process.env.PORT=u;let g=`http://127.0.0.1:${n}`,h=Gg((_)=>{let l=new URL(_.url),$=new URL(g);return $.pathname=l.pathname,$.search=l.search,fetch($.toString(),_)});return await c,h}var{setAuthToken:KY,server:VY}=gj();VY.unref();if(!process.env.ENTRYPOINT)throw new Error("developer error: ENTRYPOINT is not set");var E0=process.env.PORT?parseInt(process.env.PORT):12345,MY=await hj(BY(process.env.ENTRYPOINT),E0+1);AY.createServer((i,n)=>{KY(i.headers[H0]),MY(i,n)}).listen(E0,()=>{console.log(`Server is running on port ${E0}`)});\n';
diff --git a/packages/api/runtime/src/node/wrapper-node.ts b/packages/api/runtime/src/node/wrapper-node.ts
new file mode 100644
index 0000000..c42cdb4
--- /dev/null
+++ b/packages/api/runtime/src/node/wrapper-node.ts
@@ -0,0 +1,27 @@
+// The purpose of this file is to wrap the Node.js runtime
+// request/resposne handling in a way that is compatible with
+// the Blink Agent exports.
+
+import { BlinkInvocationTokenHeader } from "@blink.so/runtime/types";
+import http from "http";
+import { resolve } from "node:path";
+import { startAgentServer, startInternalAPIServer } from "../server";
+
+const { setAuthToken, server } = startInternalAPIServer();
+server.unref();
+
+if (!process.env.ENTRYPOINT) {
+ throw new Error("developer error: ENTRYPOINT is not set");
+}
+
+const port = process.env.PORT ? parseInt(process.env.PORT) : 12345;
+const agent = await startAgentServer(resolve(process.env.ENTRYPOINT), port + 1);
+
+http
+ .createServer((req, res) => {
+ setAuthToken(req.headers[BlinkInvocationTokenHeader] as string);
+ agent(req, res);
+ })
+ .listen(port, () => {
+ console.log(`Server is running on port ${port}`);
+ });
diff --git a/packages/api/runtime/src/server.ts b/packages/api/runtime/src/server.ts
new file mode 100644
index 0000000..8b4cb42
--- /dev/null
+++ b/packages/api/runtime/src/server.ts
@@ -0,0 +1,173 @@
+// This is imported by the generated wrapper files.
+// It should be *very* cautious about what it imports,
+// as we don't want that bundle to be too large.
+
+import AgentInvocationClient from "@blink.so/api/agents/me";
+import { createServerAdapter } from "@whatwg-node/server";
+import { AgentChat, AgentOtel, AgentStore, ID } from "blink";
+import { APIServerURLEnvironmentVariable } from "blink/client";
+import { api } from "blink/control";
+import { createServer, Server } from "node:http";
+import {
+ InternalAPIServerListenPortEnvironmentVariable,
+ InternalAPIServerURLEnvironmentVariable,
+} from "./types";
+
+/**
+ * Starts the internal API server that routes internal Blink APIs to use
+ * the Blink Cloud API server.
+ *
+ * @returns A function to set the authentication token.
+ */
+export function startInternalAPIServer() {
+ let blinkAuthToken: string | undefined;
+
+ const getClient = () => {
+ return new AgentInvocationClient({
+ baseURL: process.env[InternalAPIServerURLEnvironmentVariable],
+ authToken: blinkAuthToken,
+ });
+ };
+
+ // Start the API server that routes internal Blink APIs to use
+ // the Blink Cloud API server.
+ const port = process.env[InternalAPIServerListenPortEnvironmentVariable]
+ ? parseInt(process.env[InternalAPIServerListenPortEnvironmentVariable])
+ : 12345;
+
+ const store: AgentStore = {
+ get(key) {
+ return getClient().getStorage(key);
+ },
+ set(key, value) {
+ return getClient().setStorage(key, value);
+ },
+ delete(key) {
+ return getClient().deleteStorage(key);
+ },
+ list(prefix, options) {
+ return getClient().listStorage(prefix, options);
+ },
+ };
+ const otlp: AgentOtel = {
+ traces(request) {
+ return getClient().proxyOtlpTraces(request);
+ },
+ };
+
+ const chat: AgentChat = {
+ upsert: async (key) => {
+ const resp = await getClient().upsertChat(JSON.stringify(key));
+ return {
+ created: resp.created,
+ id: resp.id as ID,
+ createdAt: resp.created_at,
+ };
+ },
+ delete: async (id) => {
+ await getClient().deleteChat(id);
+ },
+ deleteMessages: async (id, messageIds) => {
+ await getClient().deleteMessages(id, messageIds);
+ },
+ get: async (id) => {
+ const resp = await getClient().getChat(id);
+ if (!resp) {
+ return undefined;
+ }
+ return {
+ id: resp.id as ID,
+ createdAt: resp.createdAt,
+ };
+ },
+ getMessages: async (id) => {
+ const messages = await getClient().getMessages(id);
+ return messages.map((message) => ({
+ id: message.id as ID,
+ role: message.role,
+ parts: message.parts,
+ metadata: message.metadata,
+ }));
+ },
+ start: async (id) => {
+ await getClient().startChat(id);
+ },
+ stop: async (id) => {
+ await getClient().stopChat(id);
+ },
+ sendMessages: async (id, messages, options) => {
+ await getClient().sendMessages(id, {
+ messages: messages.map((msg) => ({
+ id: msg.id,
+ role: msg.role,
+ parts: msg.parts,
+ metadata: msg.metadata,
+ })),
+ behavior: options?.behavior ?? "enqueue",
+ });
+ },
+ };
+ const server = createServer(
+ createServerAdapter((request) => {
+ return api.fetch(request, {
+ chat,
+ store,
+ otlp,
+ });
+ })
+ );
+ server.listen(port, "127.0.0.1");
+ // This is for the agents to know where to send requests to.
+ process.env[APIServerURLEnvironmentVariable] = `http://127.0.0.1:${port}`;
+
+ return {
+ server,
+ port,
+ setAuthToken(authToken: string) {
+ blinkAuthToken = authToken;
+ // This is an environment variable that is used by SDKs
+ // to send authenticated requests to the API.
+ process.env["BLINK_INVOCATION_AUTH_TOKEN"] = authToken;
+ },
+ };
+}
+
+export async function startAgentServer(
+ entrypoint: string,
+ port: number,
+ unref: boolean = false
+) {
+ const priorEnvPort = process.env.PORT;
+ process.env.PORT = port.toString();
+
+ const originalListen = Server.prototype.listen;
+ const listeningPromise = new Promise((resolve, reject) => {
+ Server.prototype.listen = function (...args) {
+ this.on("listening", () => {
+ resolve(undefined);
+ });
+ this.on("error", (err) => {
+ reject(err);
+ });
+ if (unref) {
+ this.unref();
+ }
+ return originalListen.apply(this, args);
+ };
+ });
+
+ // The server starts immediately, so we don't need to wait for it.
+ await import(entrypoint);
+ process.env.PORT = priorEnvPort;
+
+ const agentUrl = `http://127.0.0.1:${port}`;
+ const handler = createServerAdapter((request) => {
+ const reqURL = new URL(request.url);
+ const newURL = new URL(agentUrl);
+ newURL.pathname = reqURL.pathname;
+ newURL.search = reqURL.search;
+ return fetch(newURL.toString(), request);
+ });
+ await listeningPromise;
+ return handler;
+}
diff --git a/packages/api/runtime/src/types.ts b/packages/api/runtime/src/types.ts
new file mode 100644
index 0000000..d91ad9f
--- /dev/null
+++ b/packages/api/runtime/src/types.ts
@@ -0,0 +1,13 @@
+// BlinkInvocationTokenHeader is the header that contains
+// the invocation token for the agent.
+//
+// This must be used to send requests from the Lambda to the API.
+export const BlinkInvocationTokenHeader = "x-blink-invocation-token";
+
+// This is only used for tests, but maybe someday
+// we'll change the API server and be very happy.
+export const InternalAPIServerURLEnvironmentVariable =
+ "INTERNAL_BLINK_API_SERVER_URL";
+
+export const InternalAPIServerListenPortEnvironmentVariable =
+ "INTERNAL_BLINK_API_SERVER_LISTEN_PORT";
diff --git a/packages/api/scripts/no-server-imports.ts b/packages/api/scripts/no-server-imports.ts
new file mode 100644
index 0000000..0958f6d
--- /dev/null
+++ b/packages/api/scripts/no-server-imports.ts
@@ -0,0 +1,168 @@
+// This file detects any server imports from client files.
+// Client files are distributed via the @blink.so/api package.
+
+import { readFileSync } from "fs";
+import { dirname, relative, resolve } from "path";
+import type { Plugin } from "rolldown";
+
+interface NoServerImportsOptions {
+ /**
+ * Pattern to identify client files (default: files containing '.client.')
+ */
+ clientFilePattern?: RegExp;
+
+ /**
+ * Pattern to identify server files (default: files containing '.server.')
+ */
+ serverFilePattern?: RegExp;
+
+ /**
+ * Additional patterns that should be considered server-only
+ */
+ serverPatterns?: RegExp[];
+}
+
+/**
+ * A Rollup/Rolldown plugin that prevents server code imports in client files
+ */
+export function noServerImports(options: NoServerImportsOptions = {}): Plugin {
+ const {
+ clientFilePattern = /\.client\./,
+ serverFilePattern = /\.server\./,
+ serverPatterns = [],
+ } = options;
+
+ const allServerPatterns = [serverFilePattern, ...serverPatterns];
+
+ function checkImports(filePath: string, code: string) {
+ const violations: Array<{
+ line: number;
+ statement: string;
+ importPath: string;
+ }> = [];
+
+ const lines = code.split("\n");
+
+ // Match various import patterns
+ const importPatterns = [
+ /^import\s+.*?\s+from\s+['"]([^'"]+)['"];?/,
+ /^import\s+['"]([^'"]+)['"];?/,
+ /^import\s*\(\s*['"]([^'"]+)['"]\s*\)/,
+ /^export\s+.*?\s+from\s+['"]([^'"]+)['"];?/,
+ /^export\s*\*\s+from\s+['"]([^'"]+)['"];?/,
+ ];
+
+ for (let i = 0; i < lines.length; i++) {
+ const line = lines[i].trim();
+
+ for (const pattern of importPatterns) {
+ const match = pattern.exec(line);
+ if (match) {
+ const importPath = match[1];
+
+ if (isServerImport(filePath, importPath)) {
+ violations.push({
+ line: i + 1,
+ statement: line,
+ importPath,
+ });
+ }
+ }
+ }
+ }
+
+ return violations;
+ }
+
+ function isServerImport(filePath: string, importPath: string): boolean {
+ // Check if the import path directly indicates a server file
+ for (const pattern of allServerPatterns) {
+ if (pattern.test(importPath)) {
+ console.log("server import", pattern, filePath, importPath);
+ return true;
+ }
+ }
+
+ // For relative imports, resolve the path and check if it points to a server file
+ if (importPath.startsWith(".")) {
+ try {
+ const fileDir = dirname(filePath);
+ const resolvedPath = resolve(fileDir, importPath);
+
+ // Check various possible extensions
+ const possiblePaths = [
+ resolvedPath,
+ resolvedPath + ".ts",
+ resolvedPath + ".js",
+ resolvedPath + "/index.ts",
+ resolvedPath + "/index.js",
+ ];
+
+ for (const possiblePath of possiblePaths) {
+ for (const pattern of allServerPatterns) {
+ if (pattern.test(possiblePath)) {
+ return true;
+ }
+ }
+ }
+ } catch {
+ // If resolution fails, be conservative and don't flag it
+ return false;
+ }
+ }
+
+ return false;
+ }
+
+ return {
+ name: "no-server-imports",
+
+ buildStart() {
+ // Initialize plugin
+ },
+
+ resolveId(id: string, importer?: string) {
+ // Let other plugins handle the resolution first
+ return null;
+ },
+
+ load(id: string) {
+ // Only process client files
+ if (!clientFilePattern.test(id)) {
+ return null;
+ }
+
+ try {
+ const code = readFileSync(id, "utf-8");
+ const violations = checkImports(id, code);
+
+ if (violations.length > 0) {
+ const relativePath = relative(process.cwd(), id);
+ let errorMessage = `❌ Server imports detected in client file: ${relativePath}\n\n`;
+
+ for (const violation of violations) {
+ errorMessage += ` Line ${violation.line}: ${violation.statement}\n`;
+ errorMessage += ` ↳ "${violation.importPath}" appears to be a server import\n\n`;
+ }
+
+ errorMessage +=
+ "Client files must not import server-only code to maintain proper separation of concerns.";
+
+ // Throw an error to stop the build
+ throw new Error(errorMessage);
+ }
+ } catch (error) {
+ if (
+ error instanceof Error &&
+ error.message.includes("Server imports detected")
+ ) {
+ throw error;
+ }
+ // If it's a file reading error, let it pass through
+ return null;
+ }
+
+ return null;
+ },
+ };
+}
diff --git a/packages/api/src/client-helper.test.ts b/packages/api/src/client-helper.test.ts
new file mode 100644
index 0000000..8b449d3
--- /dev/null
+++ b/packages/api/src/client-helper.test.ts
@@ -0,0 +1,60 @@
+import { describe, expect, it } from "bun:test";
+import { assertResponseStatus } from "./client-helper";
+
+describe("assertResponseStatus", () => {
+ it("should not throw when status matches", async () => {
+ const response = new Response("", { status: 200 });
+ await expect(assertResponseStatus(response, 200)).resolves.toBeUndefined();
+ });
+
+ it("should throw clean error message when response has message field", async () => {
+ const response = new Response(
+ JSON.stringify({ message: "That name is already taken!" }),
+ { status: 400 }
+ );
+
+ await expect(assertResponseStatus(response, 201)).rejects.toThrow(
+ "That name is already taken!"
+ );
+ });
+
+ it("should include details in error cause when present", async () => {
+ const response = new Response(
+ JSON.stringify({
+ message: "Validation failed",
+ details: { field: "name", issue: "too short" },
+ }),
+ { status: 400 }
+ );
+
+ try {
+ await assertResponseStatus(response, 201);
+ expect(true).toBe(false); // Should not reach here
+ } catch (err) {
+ expect(err).toBeInstanceOf(Error);
+ expect((err as Error).message).toBe("Validation failed");
+ expect((err as Error).cause).toEqual({
+ field: "name",
+ issue: "too short",
+ });
+ }
+ });
+
+ it("should throw full error when response is not valid JSON", async () => {
+ const response = new Response("Not JSON", { status: 500 });
+
+ await expect(assertResponseStatus(response, 200)).rejects.toThrow(
+ "Expected status 200, got 500: Not JSON"
+ );
+ });
+
+ it("should throw full error when JSON has no message field", async () => {
+ const response = new Response(JSON.stringify({ error: "Something" }), {
+ status: 400,
+ });
+
+ await expect(assertResponseStatus(response, 200)).rejects.toThrow(
+ 'Expected status 200, got 400: {"error":"Something"}'
+ );
+ });
+});
diff --git a/packages/api/src/client-helper.ts b/packages/api/src/client-helper.ts
new file mode 100644
index 0000000..c682d7c
--- /dev/null
+++ b/packages/api/src/client-helper.ts
@@ -0,0 +1,120 @@
+import { safeParseJSON } from "@ai-sdk/provider-utils";
+import {
+ EventSourceParserStream,
+ type EventSourceMessage,
+} from "eventsource-parser/stream";
+import { z } from "zod";
+import {
+ createAsyncIterableStream,
+ type AsyncIterableStream,
+} from "./util/async-iterable-stream";
+
+export const assertResponseStatus = async (
+ res: Response,
+ status: T
+): Promise => {
+ if (res.status !== status) {
+ // Read the body.
+ const body = await res.text();
+ let parsed;
+ try {
+ parsed = JSON.parse(body);
+ } catch (err) {
+ // If JSON parsing failed, throw the full error.
+ throw new Error(`Expected status ${status}, got ${res.status}: ${body}`);
+ }
+
+ // If we have a message field, use only that.
+ if (parsed.message) {
+ throw new Error(parsed.message, {
+ cause: parsed.details,
+ });
+ }
+
+ // Otherwise, throw the full error with body.
+ throw new Error(`Expected status ${status}, got ${res.status}: ${body}`);
+ }
+};
+
+export const schemaPaginatedRequest = z.object({
+ per_page: z.number().int().positive().max(100).default(10).optional(),
+ page: z.number().int().nonnegative().default(0).optional(),
+});
+
+export const schemaPaginatedResponse = (schema: T) =>
+ z.object({
+ has_more: z.boolean(),
+ items: z.array(schema),
+ });
+
+export const schemaCursorPaginatedRequest = z.object({
+ limit: z.number().int().positive().max(100).default(10).optional(),
+ cursor: z.string().optional(),
+});
+
+export const schemaCursorPaginatedResponse = (schema: T) =>
+ z.object({
+ next_cursor: z.string().nullable(),
+ items: z.array(schema),
+ });
+
+export const schemaMetadata = z
+ .any()
+ .nullable()
+ .refine(
+ (data) => {
+ return data ? Object.keys(data).length <= 16 : true;
+ },
+ {
+ message: "Metadata must contain at most 16 keys",
+ }
+ );
+
+export const nameFormat = /^[a-z0-9](?:[a-z0-9]|-(?=[a-z0-9])){0,38}$/i;
+
+export const streamSSE = (
+ resp: Response,
+ schema: T
+): AsyncIterableStream> => {
+ const parser = new EventSourceParserStream();
+ if (!resp.body) {
+ throw new Error("The stream endpoint did not return a body!");
+ }
+ resp.body
+ .pipeThrough(new TextDecoderStream())
+ .pipeTo(parser.writable)
+ .catch((err) => {
+ // It's all chill - the stream is just going to end.
+ });
+ return createEventStreamFromReadable(parser.readable, schema);
+};
+
+export const createEventStreamFromReadable = (
+ readable: ReadableStream,
+ schema: T
+): AsyncIterableStream> => {
+ const transformedStream = readable.pipeThrough(
+ new TransformStream>({
+ async transform(chunk, controller) {
+ const result = await safeParseJSON({
+ text: chunk.data,
+ });
+ if (!result.success) {
+ controller.error(result.error);
+ return;
+ }
+ const parsed = schema.safeParse({
+ event: chunk.event,
+ data: result.value,
+ });
+ if (!parsed.success) {
+ controller.error(parsed.error);
+ return;
+ }
+ controller.enqueue(parsed.data);
+ },
+ })
+ );
+
+ return createAsyncIterableStream>(transformedStream);
+};
diff --git a/packages/api/src/client.browser.ts b/packages/api/src/client.browser.ts
new file mode 100644
index 0000000..103e44a
--- /dev/null
+++ b/packages/api/src/client.browser.ts
@@ -0,0 +1,105 @@
+import Agents from "./routes/agents/agents.client";
+import Auth from "./routes/auth/auth.client";
+import Chats from "./routes/chats/chats.client";
+import ChatRuns from "./routes/chats/runs.client";
+import Files from "./routes/files.client";
+import Invites from "./routes/invites.client";
+import Messages from "./routes/messages.client";
+import Organizations from "./routes/organizations/organizations.client";
+import Users from "./routes/users.client";
+
+export interface ClientOptions {
+ baseURL?: string;
+ authToken?: string;
+ fetch?: typeof globalThis.fetch;
+}
+
+export default class Client {
+ public authToken?: string;
+
+ private readonly baseURL: URL;
+ private readonly fetch?: typeof globalThis.fetch;
+
+ public readonly auth: Auth;
+ public readonly chats = new Chats(this);
+
+ /**
+ * Runs are the execution history of chats.
+ * Use this to
+ */
+ public readonly runs = new ChatRuns(this);
+ public readonly agents = new Agents(this);
+ public readonly files = new Files(this);
+ public readonly organizations = new Organizations(this);
+ public readonly invites = new Invites(this);
+ public readonly users = new Users(this);
+ public readonly messages = new Messages(this);
+
+ public constructor(options?: ClientOptions) {
+ this.baseURL = new URL(
+ options?.baseURL ??
+ (typeof globalThis.window !== "undefined"
+ ? window.location.origin
+ : "https://blink.so")
+ );
+ this.fetch = options?.fetch;
+ this.authToken = options?.authToken;
+ this.auth = new Auth(this, this.baseURL);
+ }
+
+ public request(
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH",
+ path: string,
+ body?: BodyInit,
+ options?: {
+ headers?: Record;
+ abortSignal?: AbortSignal;
+ timeout?: number;
+ }
+ ) {
+ const url = new URL(path, this.baseURL);
+ const headers = new Headers();
+ if (this.authToken) {
+ headers.set("Authorization", `Bearer ${this.authToken}`);
+ }
+ if (typeof body === "string") {
+ // Assume JSON. The user can always override this below.
+ headers.set("Content-Type", "application/json");
+ }
+ if (options?.headers) {
+ for (const [key, value] of Object.entries(options.headers)) {
+ headers.set(key, value);
+ }
+ }
+ let signal: AbortSignal | undefined;
+ if (options?.abortSignal && options?.timeout) {
+ throw new Error("Cannot specify both abortSignal and timeout");
+ }
+ if (options?.abortSignal) {
+ signal = options.abortSignal;
+ }
+ if (options?.timeout) {
+ signal = AbortSignal.timeout(options.timeout);
+ }
+ return (this.fetch ?? fetch)(url.toString(), {
+ method,
+ headers,
+ body,
+ signal,
+ });
+ }
+
+ public websocket(path: string): WebSocket {
+ const url = new URL(path, this.baseURL);
+ url.protocol = url.protocol === "https:" ? "wss:" : "ws:";
+ return new WebSocket(url.toString());
+ }
+}
+
+export * from "./routes/agents/agents.client";
+export * from "./routes/agents/traces.client";
+export * from "./routes/chats/chats.client";
+export * from "./routes/invites.client";
+export * from "./routes/messages.client";
+export * from "./routes/organizations/organizations.client";
+export * from "./routes/users.client";
diff --git a/packages/api/src/client.node.ts b/packages/api/src/client.node.ts
new file mode 100644
index 0000000..7e0ac1b
--- /dev/null
+++ b/packages/api/src/client.node.ts
@@ -0,0 +1,19 @@
+import BrowserClient, { type ClientOptions } from "./client.browser";
+import Devhook from "./routes/devhook.client";
+import Tools from "./routes/tools/tools.client.node";
+
+// Devhook is only available in the Node runtime.
+// It could work in the browser, but it might not be worth the effort.
+export default class Client extends BrowserClient {
+ public readonly devhook = new Devhook(this);
+ public readonly tools = new Tools(this);
+
+ public constructor(options?: ClientOptions) {
+ super({
+ ...options,
+ baseURL: options?.baseURL ?? process.env.BLINK_API_URL,
+ });
+ }
+}
+
+export * from "./client.browser";
diff --git a/packages/api/src/constants.ts b/packages/api/src/constants.ts
new file mode 100644
index 0000000..d2d821b
--- /dev/null
+++ b/packages/api/src/constants.ts
@@ -0,0 +1,15 @@
+// Size limits for message parts and uploads
+export const MESSAGE_LIMITS = {
+ // Maximum size for a single message part (including data URLs)
+ // 10MB limit to prevent abuse while allowing reasonable file attachments
+ MAX_PART_SIZE_BYTES: 10 * 1024 * 1024, // 10MB
+
+ // Maximum total size for all parts in a single message
+ MAX_MESSAGE_SIZE_BYTES: 50 * 1024 * 1024, // 50MB
+
+ // Maximum number of parts in a single message (prevents pathological cases)
+ MAX_PARTS_PER_MESSAGE: 1000,
+
+ // Maximum file upload size (for POST /api/files)
+ MAX_FILE_UPLOAD_SIZE_BYTES: 100 * 1024 * 1024, // 100MB
+} as const;
diff --git a/packages/api/src/middleware.test.ts b/packages/api/src/middleware.test.ts
new file mode 100644
index 0000000..63c6ddf
--- /dev/null
+++ b/packages/api/src/middleware.test.ts
@@ -0,0 +1,684 @@
+import { describe, expect, test } from "bun:test";
+import type { MiddlewareHandler } from "hono";
+import { Hono } from "hono";
+import { HTTPException } from "hono/http-exception";
+import { encode } from "next-auth/jwt";
+import { createAuthMiddleware } from "./middleware";
+import { generateAgentInvocationToken } from "./routes/agents/me/me.server";
+import { parseApiKey } from "./routes/api-keys.server";
+import { serve } from "./test";
+
+const createTestApp = (middleware: MiddlewareHandler): Hono => {
+ const app = new Hono();
+ app.onError((err, c) => {
+ if (err instanceof HTTPException) {
+ return c.json(
+ {
+ message: err.message,
+ details: err.cause,
+ },
+ err.status
+ );
+ }
+ return c.json({ message: "Internal Server Error" }, 500);
+ });
+ app.get("/test", middleware, (c) => {
+ return c.json({
+ user_id: (c as any).get("user_id"),
+ auth_type: (c as any).get("auth_type"),
+ agent_id: (c as any).get("agent_id"),
+ has_api_key: !!(c as any).get("api_key"),
+ });
+ });
+
+ return app;
+};
+
+describe("createAuthMiddleware - API Key Authentication", () => {
+ test("should authenticate with valid API key", async () => {
+ const { bindings, helpers } = await serve();
+ const { user, client } = await helpers.createUser();
+
+ // Create API key
+ const apiKeyData = await client.users.createApiKey({
+ name: "Test Key",
+ });
+ const fullKey = apiKeyData.key;
+
+ const app = createTestApp(createAuthMiddleware());
+
+ const response = await app.request(
+ "/test",
+ {
+ headers: {
+ Authorization: `Bearer ${fullKey}`,
+ },
+ },
+ bindings
+ );
+
+ expect(response.status).toBe(200);
+ const body = await response.json();
+ expect(body.user_id).toBe(user.id);
+ expect(body.auth_type).toBe("api_key");
+ expect(body.has_api_key).toBe(true);
+ });
+
+ test("should reject invalid API key format", async () => {
+ const { bindings } = await serve();
+
+ const app = createTestApp(createAuthMiddleware());
+
+ const response = await app.request(
+ "/test",
+ {
+ headers: {
+ Authorization: "Bearer invalid_key",
+ },
+ },
+ bindings
+ );
+
+ expect(response.status).toBe(401);
+ });
+
+ test("should reject API key with wrong prefix", async () => {
+ const { bindings } = await serve();
+
+ const app = createTestApp(createAuthMiddleware());
+
+ const response = await app.request(
+ "/test",
+ {
+ headers: {
+ Authorization: "Bearer wrong_abc123xyz789_secret123",
+ },
+ },
+ bindings
+ );
+
+ expect(response.status).toBe(401);
+ });
+
+ test("should reject API key not found in database", async () => {
+ const { bindings } = await serve();
+
+ const app = createTestApp(createAuthMiddleware());
+
+ const fakeKey = "bk_abc123xyz789_12345678901234567890123456789012";
+
+ const response = await app.request(
+ "/test",
+ {
+ headers: {
+ Authorization: `Bearer ${fakeKey}`,
+ },
+ },
+ bindings
+ );
+
+ expect(response.status).toBe(401);
+ const body = await response.json();
+ expect(body.message).toBe("API key not found");
+ });
+
+ test("should reject API key with wrong secret", async () => {
+ const { bindings, helpers } = await serve();
+ const { client } = await helpers.createUser();
+
+ // Create API key
+ const apiKeyData = await client.users.createApiKey({
+ name: "Test Key",
+ });
+ const parsed = parseApiKey(apiKeyData.key);
+
+ if ("error" in parsed) {
+ throw new Error("Failed to parse API key");
+ }
+
+ const wrongKey = `${parsed.prefix}_${parsed.lookup}_wrongsecret123456789012345678`;
+
+ const app = createTestApp(createAuthMiddleware());
+
+ const response = await app.request(
+ "/test",
+ {
+ headers: {
+ Authorization: `Bearer ${wrongKey}`,
+ },
+ },
+ bindings
+ );
+
+ expect(response.status).toBe(401);
+ const body = await response.json();
+ expect(body.message).toBe("API key failed verification");
+ });
+
+ test("should reject revoked API key", async () => {
+ const { bindings, helpers } = await serve();
+ const { user, client } = await helpers.createUser();
+
+ // Create API key
+ const apiKeyData = await client.users.createApiKey({
+ name: "Test Key",
+ });
+ const fullKey = apiKeyData.key;
+
+ // Revoke the key
+ const db = await bindings.database();
+ const parsed = parseApiKey(fullKey);
+ if ("error" in parsed) {
+ throw new Error("Failed to parse API key");
+ }
+ const apiKey = await db.selectApiKeyByLookup(parsed.lookup);
+ if (!apiKey) {
+ throw new Error("API key not found");
+ }
+ await db.updateApiKey(apiKey.id, {
+ revoked_at: new Date(),
+ revoked_by: user.id,
+ });
+
+ const app = createTestApp(createAuthMiddleware());
+
+ const response = await app.request(
+ "/test",
+ {
+ headers: {
+ Authorization: `Bearer ${fullKey}`,
+ },
+ },
+ bindings
+ );
+
+ expect(response.status).toBe(401);
+ const body = await response.json();
+ expect(body.message).toBe("API key not found");
+ });
+
+ test("should reject expired API key", async () => {
+ const { bindings, helpers } = await serve();
+ const { client } = await helpers.createUser();
+
+ // Create API key
+ const apiKeyData = await client.users.createApiKey({
+ name: "Test Key",
+ expires_at: new Date(Date.now() - 1000),
+ });
+ const fullKey = apiKeyData.key;
+
+ const app = createTestApp(createAuthMiddleware());
+
+ const response = await app.request(
+ "/test",
+ {
+ headers: {
+ Authorization: `Bearer ${fullKey}`,
+ },
+ },
+ bindings
+ );
+
+ expect(response.status).toBe(401);
+ const body = await response.json();
+ expect(body.message).toBe("API key has expired");
+ });
+
+ test("should update last_used_at on successful API key auth", async () => {
+ const { bindings, helpers } = await serve();
+ const { client } = await helpers.createUser();
+
+ // Create API key
+ const apiKeyData = await client.users.createApiKey({
+ name: "Test Key",
+ });
+ const fullKey = apiKeyData.key;
+
+ const db = await bindings.database();
+ const parsed = parseApiKey(fullKey);
+ if ("error" in parsed) {
+ throw new Error("Failed to parse API key");
+ }
+
+ // Verify initial state
+ const apiKeyBefore = await db.selectApiKeyByLookup(parsed.lookup);
+ expect(apiKeyBefore?.last_used_at).toBeNull();
+
+ const app = createTestApp(createAuthMiddleware());
+
+ const response = await app.request(
+ "/test",
+ {
+ headers: {
+ Authorization: `Bearer ${fullKey}`,
+ },
+ },
+ bindings
+ );
+
+ expect(response.status).toBe(200);
+
+ // Verify last_used_at was updated
+ const apiKeyAfter = await db.selectApiKeyByLookup(parsed.lookup);
+ expect(apiKeyAfter?.last_used_at).not.toBeNull();
+ expect(apiKeyAfter?.last_used_at).toBeInstanceOf(Date);
+ });
+});
+
+describe("createAuthMiddleware - Session Authentication", () => {
+ test("should authenticate with valid session token in cookie", async () => {
+ const { bindings, helpers } = await serve();
+ const { user } = await helpers.createUser();
+
+ const sessionToken = await encode({
+ secret: bindings.AUTH_SECRET,
+ salt: "blink_session_token",
+ token: {
+ sub: user.id,
+ },
+ });
+
+ const app = createTestApp(createAuthMiddleware());
+
+ const response = await app.request(
+ "/test",
+ {
+ headers: {
+ Cookie: `blink_session_token=${encodeURIComponent(sessionToken)}`,
+ },
+ },
+ bindings
+ );
+
+ expect(response.status).toBe(200);
+ const body = await response.json();
+ expect(body.user_id).toBe(user.id);
+ expect(body.auth_type).toBe("session");
+ });
+
+ test("should authenticate with valid session token in Authorization header", async () => {
+ const { bindings, helpers } = await serve();
+ const { user } = await helpers.createUser();
+
+ const sessionToken = await encode({
+ secret: bindings.AUTH_SECRET,
+ salt: "blink_session_token",
+ token: {
+ sub: user.id,
+ },
+ });
+
+ const app = createTestApp(createAuthMiddleware());
+
+ const response = await app.request(
+ "/test",
+ {
+ headers: {
+ Authorization: `Bearer ${encodeURIComponent(sessionToken)}`,
+ },
+ },
+ bindings
+ );
+
+ expect(response.status).toBe(200);
+ const body = await response.json();
+ expect(body.user_id).toBe(user.id);
+ expect(body.auth_type).toBe("session");
+ });
+
+ test("should reject invalid session token", async () => {
+ const { bindings } = await serve();
+
+ const app = createTestApp(createAuthMiddleware());
+
+ const response = await app.request(
+ "/test",
+ {
+ headers: {
+ Authorization: "Bearer invalid-token",
+ },
+ },
+ bindings
+ );
+
+ expect(response.status).toBe(401);
+ });
+
+ test("should reject missing authentication", async () => {
+ const { bindings } = await serve();
+
+ const app = createTestApp(createAuthMiddleware());
+
+ const response = await app.request("/test", {}, bindings);
+
+ expect(response.status).toBe(401);
+ const body = await response.json();
+ expect(body.message).toBe("Unauthorized");
+ });
+});
+
+describe("createAuthMiddleware - Agent Authentication", () => {
+ test("should authenticate with valid agent token when allowAgentAuth is true", async () => {
+ const { bindings, helpers } = await serve();
+ const { user } = await helpers.createUser();
+ const db = await bindings.database();
+
+ // Create organization and agent
+ const org = await db.insertOrganizationWithMembership({
+ name: "Test Org",
+ created_by: user.id,
+ });
+ const agent = await db.insertAgent({
+ id: crypto.randomUUID(),
+ name: "test-agent",
+ organization_id: org.id,
+ created_by: user.id,
+ avatar_file_id: null,
+ });
+
+ const agentToken = await generateAgentInvocationToken(
+ bindings.AUTH_SECRET,
+ {
+ agent_id: agent.id,
+ agent_deployment_id: crypto.randomUUID(),
+ agent_deployment_target_id: crypto.randomUUID(),
+ run_id: crypto.randomUUID(),
+ step_id: crypto.randomUUID(),
+ chat_id: crypto.randomUUID(),
+ }
+ );
+
+ const app = createTestApp(createAuthMiddleware({ allowAgentAuth: true }));
+
+ const response = await app.request(
+ "/test",
+ {
+ headers: {
+ Authorization: `Bearer ${encodeURIComponent(agentToken)}`,
+ },
+ },
+ bindings
+ );
+
+ expect(response.status).toBe(200);
+ const body = await response.json();
+ expect(body.agent_id).toBe(agent.id);
+ expect(body.user_id).toBeUndefined();
+ expect(body.auth_type).toBe("agent");
+ });
+
+ test("should not authenticate with agent token when allowAgentAuth is false", async () => {
+ const { bindings, helpers } = await serve();
+ const { user } = await helpers.createUser();
+ const db = await bindings.database();
+
+ const org = await db.insertOrganizationWithMembership({
+ name: "Test Org",
+ created_by: user.id,
+ });
+ const agent = await db.insertAgent({
+ id: crypto.randomUUID(),
+ name: "test-agent",
+ organization_id: org.id,
+ created_by: user.id,
+ avatar_file_id: null,
+ });
+
+ const agentToken = await generateAgentInvocationToken(
+ bindings.AUTH_SECRET,
+ {
+ agent_id: agent.id,
+ agent_deployment_id: crypto.randomUUID(),
+ agent_deployment_target_id: crypto.randomUUID(),
+ }
+ );
+
+ // allowAgentAuth defaults to false
+ const app = createTestApp(createAuthMiddleware());
+
+ const response = await app.request(
+ "/test",
+ {
+ headers: {
+ Authorization: `Bearer ${encodeURIComponent(agentToken)}`,
+ },
+ },
+ bindings
+ );
+
+ expect(response.status).toBe(401);
+ });
+
+ test("should use custom findAgentToken function", async () => {
+ const { bindings, helpers } = await serve();
+ const { user } = await helpers.createUser();
+ const db = await bindings.database();
+
+ const org = await db.insertOrganizationWithMembership({
+ name: "Test Org",
+ created_by: user.id,
+ });
+ const agent = await db.insertAgent({
+ id: crypto.randomUUID(),
+ name: "test-agent",
+ organization_id: org.id,
+ created_by: user.id,
+ avatar_file_id: null,
+ });
+
+ const agentToken = await generateAgentInvocationToken(
+ bindings.AUTH_SECRET,
+ {
+ agent_id: agent.id,
+ agent_deployment_id: crypto.randomUUID(),
+ agent_deployment_target_id: crypto.randomUUID(),
+ }
+ );
+
+ const app = createTestApp(
+ createAuthMiddleware({
+ allowAgentAuth: true,
+ findAgentToken: (req) => {
+ return new URL(req.url).searchParams.get("token");
+ },
+ })
+ );
+
+ const response = await app.request(
+ `/test?token=${encodeURIComponent(agentToken)}`,
+ {},
+ bindings
+ );
+
+ expect(response.status).toBe(200);
+ const body = await response.json();
+ expect(body.agent_id).toBe(agent.id);
+ expect(body.auth_type).toBe("agent");
+ });
+
+ test("should fall back to session auth when agent token is invalid", async () => {
+ const { bindings, helpers } = await serve();
+ const { user } = await helpers.createUser();
+
+ const sessionToken = await encode({
+ secret: bindings.AUTH_SECRET,
+ salt: "blink_session_token",
+ token: {
+ sub: user.id,
+ },
+ });
+
+ const app = createTestApp(createAuthMiddleware({ allowAgentAuth: true }));
+
+ const response = await app.request(
+ "/test",
+ {
+ headers: {
+ Authorization: `Bearer ${encodeURIComponent(sessionToken)}`,
+ },
+ },
+ bindings
+ );
+
+ expect(response.status).toBe(200);
+ const body = await response.json();
+ expect(body.user_id).toBe(user.id);
+ expect(body.agent_id).toBeUndefined();
+ expect(body.auth_type).toBe("session");
+ });
+});
+
+describe("createAuthMiddleware - Authentication Priority", () => {
+ test("should prioritize API key over session token", async () => {
+ const { bindings, helpers } = await serve();
+ const { client } = await helpers.createUser();
+ const { user: user2 } = await helpers.createUser();
+
+ // Create API key for user1
+ const apiKeyData = await client.users.createApiKey({
+ name: "Test Key",
+ });
+ const fullKey = apiKeyData.key;
+
+ // Create session token for user2
+ const sessionToken = await encode({
+ secret: bindings.AUTH_SECRET,
+ salt: "blink_session_token",
+ token: {
+ sub: user2.id,
+ },
+ });
+
+ const app = createTestApp(createAuthMiddleware());
+
+ const response = await app.request(
+ "/test",
+ {
+ headers: {
+ Authorization: `Bearer ${fullKey}`,
+ Cookie: `blink_session_token=${encodeURIComponent(sessionToken)}`,
+ },
+ },
+ bindings
+ );
+
+ expect(response.status).toBe(200);
+ const body = await response.json();
+ // Should authenticate as API key user, not session user
+ expect(body.user_id).toBe(apiKeyData.user_id);
+ expect(body.auth_type).toBe("api_key");
+ });
+
+ test("should prioritize API key over agent token", async () => {
+ const { bindings, helpers } = await serve();
+ const { user, client } = await helpers.createUser();
+ const db = await bindings.database();
+
+ // Create API key
+ const apiKeyData = await client.users.createApiKey({
+ name: "Test Key",
+ });
+ const fullKey = apiKeyData.key;
+
+ // Create agent token
+ const org = await db.insertOrganizationWithMembership({
+ name: "Test Org",
+ created_by: user.id,
+ });
+ const agent = await db.insertAgent({
+ id: crypto.randomUUID(),
+ name: "test-agent",
+ organization_id: org.id,
+ created_by: user.id,
+ avatar_file_id: null,
+ });
+
+ const agentToken = await generateAgentInvocationToken(
+ bindings.AUTH_SECRET,
+ {
+ agent_id: agent.id,
+ agent_deployment_id: crypto.randomUUID(),
+ agent_deployment_target_id: crypto.randomUUID(),
+ }
+ );
+
+ const app = createTestApp(createAuthMiddleware({ allowAgentAuth: true }));
+
+ const response = await app.request(
+ "/test",
+ {
+ headers: {
+ Authorization: `Bearer ${fullKey}`,
+ Cookie: `blink_session_token=${encodeURIComponent(agentToken)}`,
+ },
+ },
+ bindings
+ );
+
+ expect(response.status).toBe(200);
+ const body = await response.json();
+ // Should use API key, not agent token
+ expect(body.user_id).toBe(user.id);
+ expect(body.agent_id).toBeUndefined();
+ expect(body.auth_type).toBe("api_key");
+ });
+
+ test("should prioritize agent token over session token", async () => {
+ const { bindings, helpers } = await serve();
+ const { user } = await helpers.createUser();
+ const { user: user2 } = await helpers.createUser();
+ const db = await bindings.database();
+
+ // Create agent for user1
+ const org = await db.insertOrganizationWithMembership({
+ name: "Test Org",
+ created_by: user.id,
+ });
+ const agent = await db.insertAgent({
+ id: crypto.randomUUID(),
+ name: "test-agent",
+ organization_id: org.id,
+ created_by: user.id,
+ avatar_file_id: null,
+ });
+
+ const agentToken = await generateAgentInvocationToken(
+ bindings.AUTH_SECRET,
+ {
+ agent_id: agent.id,
+ agent_deployment_id: crypto.randomUUID(),
+ agent_deployment_target_id: crypto.randomUUID(),
+ }
+ );
+
+ // Create session token for user2
+ const sessionToken = await encode({
+ secret: bindings.AUTH_SECRET,
+ salt: "blink_session_token",
+ token: {
+ sub: user2.id,
+ },
+ });
+
+ const app = createTestApp(createAuthMiddleware({ allowAgentAuth: true }));
+
+ const response = await app.request(
+ "/test",
+ {
+ headers: {
+ Cookie: `blink_session_token=${encodeURIComponent(agentToken)}`,
+ Authorization: `Bearer ${encodeURIComponent(sessionToken)}`,
+ },
+ },
+ bindings
+ );
+
+ expect(response.status).toBe(200);
+ const body = await response.json();
+ // Should use agent token from cookie, not session from Authorization
+ expect(body.agent_id).toBe(agent.id);
+ expect(body.user_id).toBeUndefined();
+ expect(body.auth_type).toBe("agent");
+ });
+});
diff --git a/packages/api/src/middleware.ts b/packages/api/src/middleware.ts
new file mode 100644
index 0000000..141f1ee
--- /dev/null
+++ b/packages/api/src/middleware.ts
@@ -0,0 +1,457 @@
+import type {
+ Agent,
+ ApiKey,
+ OrganizationWithMembership,
+} from "@blink.so/database/schema";
+import type { Context, MiddlewareHandler } from "hono";
+import { HTTPException } from "hono/http-exception";
+import { decode } from "next-auth/jwt";
+import { validate } from "uuid";
+import { z } from "zod";
+import { parseApiKey, verifyApiKeyString } from "./routes/api-keys.server";
+import { SESSION_COOKIE_NAME } from "./routes/auth/auth.client";
+import type { Bindings } from "./server";
+
+/**
+ * Helper to parse cookies from a Cookie header string.
+ */
+function parseCookies(rawCookie: string): Record {
+ const cookies: Record = {};
+ rawCookie.split(";").forEach((cookie) => {
+ const [name, value] = cookie.split("=");
+ if (!name || !value) {
+ return;
+ }
+ cookies[name.trim()] = decodeURIComponent(value.trim());
+ });
+ return cookies;
+}
+
+/**
+ * Centralized authentication middleware generator.
+ * Supports API keys, agent tokens, and session authentication.
+ */
+export function createAuthMiddleware(options: {
+ allowAgentAuth: true;
+ /**
+ * Custom function to extract agent invocation tokens from requests.
+ * Used by tools endpoints to support alternative token locations (e.g., URL parameters).
+ */
+ findAgentToken?: (req: Request) => string | undefined | null;
+}): MiddlewareHandler<{
+ Bindings: Bindings;
+ Variables: {
+ agent_id?: string;
+ user_id?: string;
+ api_key?: ApiKey;
+ auth_type: "session" | "api_key" | "agent";
+ };
+}>;
+export function createAuthMiddleware(options?: {
+ allowAgentAuth?: false;
+ /**
+ * Custom function to extract agent invocation tokens from requests.
+ * Used by tools endpoints to support alternative token locations (e.g., URL parameters).
+ */
+ findAgentToken?: (req: Request) => string | undefined | null;
+}): MiddlewareHandler<{
+ Bindings: Bindings;
+ Variables: {
+ user_id: string;
+ api_key?: ApiKey;
+ auth_type: "session" | "api_key";
+ };
+}>;
+export function createAuthMiddleware(
+ options: {
+ allowAgentAuth?: boolean;
+ findAgentToken?: (req: Request) => string | undefined | null;
+ } = {}
+): MiddlewareHandler<{
+ Bindings: Bindings;
+ Variables: any;
+}> {
+ return async (c, next) => {
+ const authHeader = c.req.header("Authorization");
+
+ // Priority 1: Check for API key authentication
+ if (authHeader && authHeader.startsWith("Bearer bk_")) {
+ const apiKeyValue = authHeader.substring(7);
+ const parsed = parseApiKey(apiKeyValue);
+ if (parsed.error !== undefined) {
+ throw new HTTPException(401, { message: parsed.error });
+ }
+ const db = await c.env.database();
+ const apiKey = await db.selectApiKeyByLookup(parsed.lookup);
+ if (!apiKey) {
+ throw new HTTPException(401, { message: "API key not found" });
+ }
+ const keyValid = await verifyApiKeyString({
+ rootSecret: c.env.AUTH_SECRET,
+ keySecret: parsed.secret,
+ hash: apiKey.key_hash,
+ });
+ if (!keyValid) {
+ throw new HTTPException(401, {
+ message: "API key failed verification",
+ });
+ }
+ if (apiKey.revoked_at) {
+ throw new HTTPException(401, { message: "API key has been revoked" });
+ }
+ if (
+ apiKey.expires_at &&
+ apiKey.expires_at.getTime() < new Date().getTime()
+ ) {
+ throw new HTTPException(401, { message: "API key has expired" });
+ }
+ await db.updateApiKey(apiKey.id, { last_used_at: new Date() });
+
+ c.set("user_id", apiKey.user_id);
+ c.set("api_key", apiKey);
+ c.set("auth_type", "api_key");
+ await next();
+ return;
+ }
+
+ // Priority 2: Check for agent token (if enabled)
+ if (options.allowAgentAuth) {
+ let rawToken: string | undefined | null;
+ if (options.findAgentToken) {
+ rawToken = options.findAgentToken(c.req.raw);
+ }
+ if (!rawToken) {
+ rawToken = readAuthTokenFromRequest(c.req.raw, SESSION_COOKIE_NAME);
+ }
+
+ if (rawToken) {
+ // Try to decode as agent invocation token
+ try {
+ const token = await decode({
+ token: rawToken,
+ salt: "agent-invocation",
+ secret: c.env.AUTH_SECRET,
+ });
+ if (token && token.agent_id) {
+ c.set("agent_id", token.agent_id as string);
+ c.set("auth_type", "agent");
+ await next();
+ return;
+ }
+ } catch (err) {
+ // Not an agent token, continue to session auth
+ }
+ }
+ }
+
+ // Priority 3: Fall back to session-based authentication
+ const rawToken = readAuthTokenFromRequest(c.req.raw, SESSION_COOKIE_NAME);
+
+ if (!rawToken) {
+ throw new HTTPException(401, { message: "Unauthorized" });
+ }
+
+ let token;
+ try {
+ token = await decode({
+ token: rawToken,
+ secret: c.env.AUTH_SECRET,
+ salt: SESSION_COOKIE_NAME,
+ });
+ } catch {
+ // Token decoding failed - invalid token
+ throw new HTTPException(401, { message: "Unauthorized" });
+ }
+
+ if (!token || !token.sub) {
+ throw new HTTPException(401, { message: "Unauthorized" });
+ }
+
+ c.set("user_id", token.sub);
+ c.set("auth_type", "session");
+ await next();
+ };
+}
+
+/**
+ * Reads authentication token from request cookies or Authorization header.
+ * This helper is based on next-auth/jwt logic.
+ */
+function readAuthTokenFromRequest(
+ req: Request,
+ cookieName: string
+): string | undefined {
+ const headers =
+ req.headers instanceof Headers ? req.headers : new Headers(req.headers);
+
+ const rawCookie = headers.get("cookie") ?? "";
+ if (rawCookie) {
+ const cookies = parseCookies(rawCookie);
+ if (cookies[cookieName]) {
+ return cookies[cookieName];
+ }
+ }
+
+ const authorizationHeader = headers.get("authorization");
+
+ if (authorizationHeader?.split(" ")[0] === "Bearer") {
+ const urlEncodedToken = authorizationHeader.split(" ")[1];
+ if (!urlEncodedToken) {
+ return undefined;
+ }
+ return decodeURIComponent(urlEncodedToken);
+ }
+}
+
+export const withAuth = createAuthMiddleware();
+
+export const withOrganizationIDQueryParam: MiddlewareHandler<
+ {
+ Bindings: Bindings;
+ Variables: {
+ user_id: string;
+ organization: OrganizationWithMembership;
+ };
+ },
+ string,
+ {
+ in: {
+ user_id: string;
+ };
+ }
+> = async (c, next) => {
+ const organizationID = c.req.query("organization_id");
+ if (!organizationID) {
+ return c.json(
+ { message: `The "organization_id" query param is required` },
+ 400
+ );
+ }
+ const org = await authorizeOrganization(c, organizationID);
+ c.set("organization", org);
+ await next();
+};
+
+export const withPagination: MiddlewareHandler<{
+ Bindings: Bindings;
+ Variables: {
+ page?: number;
+ per_page?: number;
+ };
+}> = async (c, next) => {
+ const rawPage = c.req.query("page");
+ const rawPerPage = c.req.query("per_page");
+ const page = rawPage ? parseInt(rawPage) : undefined;
+ if (page !== undefined && isNaN(page)) {
+ return c.json({ message: `The "page" query param must be a number` }, 400);
+ }
+ const per_page = rawPerPage ? parseInt(rawPerPage) : undefined;
+ if (per_page !== undefined && isNaN(per_page)) {
+ return c.json(
+ { message: `The "per_page" query param must be a number` },
+ 400
+ );
+ }
+ c.set("page", page);
+ c.set("per_page", per_page);
+ await next();
+};
+
+export const withCursorPagination: MiddlewareHandler<{
+ Bindings: Bindings;
+ Variables: {
+ cursor?: string;
+ limit?: number;
+ };
+}> = async (c, next) => {
+ const cursor = c.req.query("cursor");
+ let limit: number | undefined;
+ if (cursor && typeof cursor !== "string") {
+ return c.json({ message: "Cursor must only be specified once" }, 400);
+ }
+ const rawLimit = c.req.query("limit");
+ if (rawLimit) {
+ if (typeof rawLimit !== "string") {
+ throw new HTTPException(400, {
+ message: "Limit must only be specified once",
+ });
+ }
+ limit = parseInt(rawLimit);
+ if (isNaN(limit)) {
+ throw new HTTPException(400, {
+ message: "Limit must be a number",
+ });
+ }
+ }
+ c.set("cursor", cursor);
+ c.set("limit", limit);
+ await next();
+};
+
+export const withAgentURLParam: MiddlewareHandler<{
+ Bindings: Bindings;
+ Variables: {
+ user_id: string;
+ agent: Agent;
+ organization: OrganizationWithMembership;
+ };
+}> = async (c, next) => {
+ const id = c.req.param("agent_id");
+ if (!id) {
+ return c.json({ message: "Agent ID is required" }, 400);
+ }
+ const parsed = await z.uuid().safeParseAsync(id);
+ if (!parsed.success) {
+ return c.json({ message: "Invalid agent ID" }, 400);
+ }
+ const db = await c.env.database();
+ const agent = await db.selectAgentByID(id);
+ if (!agent) {
+ return c.json({ message: "Agent not found" }, 404);
+ }
+ const org = await authorizeOrganization(c, agent.organization_id);
+ c.set("agent", agent);
+ c.set("organization", org);
+ await next();
+};
+
+export const withOrganizationURLParam: MiddlewareHandler<{
+ Bindings: Bindings;
+ Variables: {
+ user_id: string;
+ organization: OrganizationWithMembership;
+ };
+}> = async (c, next) => {
+ const id = c.req.param("organization_id");
+ if (!id) {
+ return c.json({ message: "Organization ID is required" }, 400);
+ }
+ const org = await authorizeOrganization(c, id);
+ c.set("organization", org);
+ await next();
+};
+
+export const authorizeOrganization = async <
+ V extends {
+ user_id: string;
+ },
+>(
+ c: Context<{
+ Bindings: Bindings;
+ Variables: V;
+ }>,
+ id: string
+): Promise => {
+ const db = await c.env.database();
+
+ let organization: OrganizationWithMembership | undefined;
+ if (validate(id)) {
+ organization = await db.selectOrganizationForUser({
+ organizationID: id,
+ userID: c.get("user_id"),
+ });
+ } else {
+ // Allow getting organizations by name for simplicity.
+ organization = await db.selectOrganizationForUser({
+ organizationName: id,
+ userID: c.get("user_id"),
+ });
+ }
+ if (!organization) {
+ throw new HTTPException(404, {
+ message: "Organization not found",
+ });
+ }
+ return organization;
+};
+
+// Alias for consistency with organization middleware
+export const withAgent = withAgentURLParam;
+
+/**
+ * Middleware to ensure the organization is not personal.
+ * Must be used after withAgent or withOrganization.
+ */
+export const withTeamOrganization: MiddlewareHandler<{
+ Bindings: Bindings;
+ Variables: {
+ organization: OrganizationWithMembership;
+ };
+}> = async (c, next) => {
+ const organization = c.get("organization");
+ if (organization.kind === "personal") {
+ throw new HTTPException(403, {
+ message: "This feature is not available for personal organizations",
+ });
+ }
+ await next();
+};
+
+/**
+ * Middleware to check agent permissions.
+ * Must be used after withAgent.
+ */
+export const withAgentPermission = (
+ requiredPermission: "read" | "write" | "admin"
+): MiddlewareHandler<{
+ Bindings: Bindings;
+ Variables: {
+ user_id: string;
+ agent: Agent;
+ organization: OrganizationWithMembership;
+ agent_permission: "read" | "write" | "admin";
+ };
+}> => {
+ return async (c, next) => {
+ const agent = c.get("agent");
+ const userId = c.get("user_id");
+ const org = c.get("organization");
+ const db = await c.env.database();
+
+ // Org owners and admins bypass permission checks
+ if (
+ org.membership &&
+ (org.membership.role === "owner" || org.membership.role === "admin")
+ ) {
+ c.set("agent_permission", "admin");
+ await next();
+ return;
+ }
+
+ const permission = await db.getAgentPermissionForUser({
+ agentId: agent.id,
+ userId,
+ orgRole: org.membership?.role,
+ agentVisibility: agent.visibility,
+ });
+
+ // If permission is undefined, user doesn't have access
+ if (permission === undefined) {
+ throw new HTTPException(403, {
+ message: "Access denied: private agent requires explicit permission",
+ });
+ }
+
+ c.set("agent_permission", permission);
+
+ if (!hasPermission(permission, requiredPermission)) {
+ throw new HTTPException(403, {
+ message: `This action requires ${requiredPermission} permission. You have ${permission} permission.`,
+ });
+ }
+
+ await next();
+ };
+};
+
+/**
+ * Check if current permission level satisfies required level.
+ * admin > write > read
+ */
+function hasPermission(
+ current: "read" | "write" | "admin",
+ required: "read" | "write" | "admin"
+): boolean {
+ const levels = { read: 1, write: 2, admin: 3 };
+ return levels[current] >= levels[required];
+}
diff --git a/packages/api/src/react/index.ts b/packages/api/src/react/index.ts
new file mode 100644
index 0000000..ad9cf80
--- /dev/null
+++ b/packages/api/src/react/index.ts
@@ -0,0 +1 @@
+export * from "./use-chat";
diff --git a/packages/api/src/react/use-chat.test.tsx b/packages/api/src/react/use-chat.test.tsx
new file mode 100644
index 0000000..4593c7e
--- /dev/null
+++ b/packages/api/src/react/use-chat.test.tsx
@@ -0,0 +1,471 @@
+import { cleanup, renderHook, waitFor } from "@testing-library/react";
+import type { UIMessage, UIMessageChunk } from "ai";
+import { afterEach, beforeAll, describe, expect, it, mock } from "bun:test";
+import { Window } from "happy-dom";
+import type Client from "../client.browser";
+import type { StreamChatEvent } from "../client.browser";
+import { useChat } from "./use-chat";
+
+beforeAll(() => {
+ if (!globalThis.window) {
+ const window = new Window({
+ url: "http://localhost",
+ });
+ globalThis.window = window as any;
+ globalThis.document = window.document as any;
+ globalThis.HTMLElement = window.HTMLElement as any;
+ globalThis.MutationObserver = window.MutationObserver as any;
+ globalThis.getComputedStyle = window.getComputedStyle as any;
+ globalThis.requestAnimationFrame = (cb: FrameRequestCallback) => {
+ setTimeout(() => cb(0), 0);
+ return 0;
+ };
+ globalThis.cancelAnimationFrame = () => {};
+ }
+});
+
+afterEach(() => {
+ cleanup();
+});
+
+// Note: Not cleaning up window/document in afterAll to avoid
+// potential issues with hanging cleanup in CI
+
+// Mock client factory
+function createMockClient() {
+ const mockClient = {
+ chats: {
+ create: mock(),
+ stream: mock(),
+ stop: mock(),
+ },
+ messages: {
+ send: mock(),
+ },
+ } as unknown as Client;
+
+ return mockClient;
+}
+
+// Helper to create async iterable stream
+function createMockStream(
+ events: StreamChatEvent[]
+): AsyncIterable {
+ return {
+ async *[Symbol.asyncIterator]() {
+ for (const event of events) {
+ yield event;
+ }
+ },
+ cancel: async () => {},
+ } as any;
+}
+
+describe("useChat", () => {
+ it("initializes with empty messages", () => {
+ const client = createMockClient();
+ const { result } = renderHook(() =>
+ useChat({
+ organization: "org-1",
+ agent: "agent-1",
+ client,
+ })
+ );
+
+ expect(result.current.messages).toEqual([]);
+ expect(result.current.status).toBe("ready");
+ expect(result.current.error).toBeUndefined();
+ });
+
+ it("initializes with provided messages", () => {
+ const client = createMockClient();
+ const initialMessages: UIMessage[] = [
+ {
+ id: "msg-1",
+ role: "user",
+ parts: [{ type: "text", text: "Hello" }],
+ },
+ ];
+
+ const { result } = renderHook(() =>
+ useChat({
+ organization: "org-1",
+ agent: "agent-1",
+ client,
+ messages: initialMessages,
+ })
+ );
+
+ expect(result.current.messages).toEqual(initialMessages);
+ });
+
+ it("sends a message and creates a chat", async () => {
+ const client = createMockClient();
+ const mockStream = createMockStream([]);
+
+ client.chats.create.mockResolvedValue({
+ id: "chat-1",
+ messages: [
+ {
+ id: "msg-1",
+ role: "user",
+ parts: [{ type: "text", text: "Hello" }],
+ },
+ ],
+ stream: mockStream,
+ });
+
+ const { result } = renderHook(() =>
+ useChat({
+ organization: "org-1",
+ agent: "agent-1",
+ client,
+ })
+ );
+
+ await result.current.sendMessage({ text: "Hello" });
+
+ await waitFor(() => {
+ expect(result.current.id).toBe("chat-1");
+ expect(result.current.messages.length).toBe(1);
+ expect(result.current.messages[0].parts[0]).toEqual({
+ type: "text",
+ text: "Hello",
+ });
+ });
+ });
+
+ it("handles message.created events", async () => {
+ const client = createMockClient();
+ const mockStream = createMockStream([
+ {
+ event: "message.created",
+ data: {
+ id: "msg-2",
+ role: "assistant",
+ parts: [{ type: "text", text: "Hi there!" }],
+ },
+ },
+ ]);
+
+ client.chats.stream.mockResolvedValue(mockStream);
+
+ const { result } = renderHook(() =>
+ useChat({
+ organization: "org-1",
+ agent: "agent-1",
+ client,
+ id: "chat-1",
+ })
+ );
+
+ await waitFor(
+ () => {
+ expect(result.current.messages.length).toBe(1);
+ },
+ { timeout: 1000 }
+ );
+
+ expect(result.current.messages[0].id).toBe("msg-2");
+ expect(result.current.messages[0].role).toBe("assistant");
+ });
+
+ // Race condition test 1: Concurrent message chunks
+ it("handles concurrent message chunks without corruption", async () => {
+ const client = createMockClient();
+ const chunks: StreamChatEvent[] = [];
+
+ // Create 10 messages with 5 chunks each, interleaved
+ for (let i = 0; i < 5; i++) {
+ for (let msgIdx = 0; msgIdx < 10; msgIdx++) {
+ chunks.push({
+ event: "message.chunk.added",
+ data: {
+ id: `msg-${msgIdx}`,
+ chunk: {
+ type: "text-delta",
+ textDelta: `chunk${i}-`,
+ } as UIMessageChunk,
+ },
+ });
+ }
+ }
+
+ // Add message.created events to close streams
+ for (let msgIdx = 0; msgIdx < 10; msgIdx++) {
+ chunks.push({
+ event: "message.created",
+ data: {
+ id: `msg-${msgIdx}`,
+ role: "assistant",
+ parts: [{ type: "text", text: `Message ${msgIdx}` }],
+ },
+ });
+ }
+
+ const mockStream = createMockStream(chunks);
+ client.chats.stream.mockResolvedValue(mockStream);
+
+ const { result } = renderHook(() =>
+ useChat({
+ organization: "org-1",
+ agent: "agent-1",
+ client,
+ id: "chat-1",
+ })
+ );
+
+ await waitFor(
+ () => {
+ expect(result.current.messages.length).toBe(10);
+ },
+ { timeout: 2000 }
+ );
+
+ // Verify all messages are present with correct IDs
+ const messageIds = result.current.messages.map((m) => m.id).sort();
+ expect(messageIds).toEqual([
+ "msg-0",
+ "msg-1",
+ "msg-2",
+ "msg-3",
+ "msg-4",
+ "msg-5",
+ "msg-6",
+ "msg-7",
+ "msg-8",
+ "msg-9",
+ ]);
+ });
+
+ // Race condition test 2: Submit while streaming
+ it("handles submit while streaming without losing messages", async () => {
+ const client = createMockClient();
+
+ // Initial stream with ongoing chunks
+ const initialStream = createMockStream([
+ {
+ event: "message.chunk.added",
+ data: {
+ id: "msg-1",
+ chunk: { type: "text-delta", textDelta: "Hello" } as UIMessageChunk,
+ },
+ },
+ ]);
+
+ client.chats.create.mockResolvedValueOnce({
+ id: "chat-1",
+ messages: [
+ {
+ id: "user-1",
+ role: "user",
+ parts: [{ type: "text", text: "First" }],
+ },
+ ],
+ stream: initialStream,
+ });
+
+ client.messages.send.mockResolvedValueOnce({
+ messages: [
+ {
+ id: "user-2",
+ role: "user",
+ parts: [{ type: "text", text: "Second" }],
+ },
+ ],
+ });
+
+ const { result } = renderHook(() =>
+ useChat({
+ organization: "org-1",
+ agent: "agent-1",
+ client,
+ })
+ );
+
+ // Send first message
+ await result.current.sendMessage({ text: "First" });
+
+ await waitFor(() => {
+ expect(result.current.id).toBe("chat-1");
+ });
+
+ // Send second message while first is streaming
+ await result.current.sendMessage({ text: "Second" });
+
+ await waitFor(() => {
+ // Should have both user messages
+ const userMessages = result.current.messages.filter(
+ (m) => m.role === "user"
+ );
+ expect(userMessages.length).toBeGreaterThanOrEqual(2);
+ });
+ });
+
+ // Race condition test 3: Rapid status changes
+ it("handles rapid status changes correctly", async () => {
+ const client = createMockClient();
+ const mockStream = createMockStream([
+ { event: "chat.updated", data: { status: "streaming" } },
+ { event: "chat.updated", data: { status: "idle" } },
+ { event: "chat.updated", data: { status: "streaming" } },
+ { event: "chat.updated", data: { status: "idle" } },
+ ]);
+
+ client.chats.stream.mockResolvedValue(mockStream);
+
+ const { result } = renderHook(() =>
+ useChat({
+ organization: "org-1",
+ agent: "agent-1",
+ client,
+ id: "chat-1",
+ })
+ );
+
+ await waitFor(
+ () => {
+ expect(result.current.status).toBe("ready");
+ },
+ { timeout: 1000 }
+ );
+
+ expect(result.current.error).toBeUndefined();
+ });
+
+ // Race condition test 4: Message deduplication during submit
+ it("deduplicates messages when response arrives before stream", async () => {
+ const client = createMockClient();
+
+ // Response contains a message that will also come via stream
+ client.chats.create.mockResolvedValueOnce({
+ id: "chat-1",
+ messages: [
+ {
+ id: "user-1",
+ role: "user",
+ parts: [{ type: "text", text: "Hello" }],
+ },
+ {
+ id: "assistant-1",
+ role: "assistant",
+ parts: [{ type: "text", text: "Response" }],
+ },
+ ],
+ stream: createMockStream([
+ {
+ event: "message.created",
+ data: {
+ id: "assistant-1",
+ role: "assistant",
+ parts: [{ type: "text", text: "Response" }],
+ },
+ },
+ ]),
+ });
+
+ const { result } = renderHook(() =>
+ useChat({
+ organization: "org-1",
+ agent: "agent-1",
+ client,
+ })
+ );
+
+ await result.current.sendMessage({ text: "Hello" });
+
+ await waitFor(
+ () => {
+ expect(result.current.messages.length).toBe(2);
+ },
+ { timeout: 1000 }
+ );
+
+ // Should have exactly 2 messages, no duplicates
+ const assistantMessages = result.current.messages.filter(
+ (m) => m.id === "assistant-1"
+ );
+ expect(assistantMessages.length).toBe(1);
+ });
+
+ // Race condition test 5: Multiple message.created for same ID
+ it("handles multiple message.created events for same ID", async () => {
+ const client = createMockClient();
+ const mockStream = createMockStream([
+ {
+ event: "message.created",
+ data: {
+ id: "msg-1",
+ role: "assistant",
+ parts: [{ type: "text", text: "First version" }],
+ },
+ },
+ {
+ event: "message.created",
+ data: {
+ id: "msg-1",
+ role: "assistant",
+ parts: [{ type: "text", text: "Second version" }],
+ },
+ },
+ ]);
+
+ client.chats.stream.mockResolvedValue(mockStream);
+
+ const { result } = renderHook(() =>
+ useChat({
+ organization: "org-1",
+ agent: "agent-1",
+ client,
+ id: "chat-1",
+ })
+ );
+
+ await waitFor(
+ () => {
+ expect(result.current.messages.length).toBe(1);
+ },
+ { timeout: 1000 }
+ );
+
+ // Should only have one message (no duplicates)
+ expect(result.current.messages.length).toBe(1);
+ expect(result.current.messages[0].id).toBe("msg-1");
+ });
+
+ it("stops chat correctly", async () => {
+ const client = createMockClient();
+ client.chats.stop.mockResolvedValue(undefined);
+
+ const { result } = renderHook(() =>
+ useChat({
+ organization: "org-1",
+ agent: "agent-1",
+ client,
+ id: "chat-1",
+ })
+ );
+
+ await result.current.stop();
+
+ expect(client.chats.stop).toHaveBeenCalledWith("chat-1");
+ expect(result.current.status).toBe("ready");
+ });
+
+ it("clears error", () => {
+ const client = createMockClient();
+ const { result, rerender } = renderHook(() =>
+ useChat({
+ organization: "org-1",
+ agent: "agent-1",
+ client,
+ })
+ );
+
+ // Manually set error for testing
+ result.current.clearError();
+ rerender();
+
+ expect(result.current.error).toBeUndefined();
+ });
+});
diff --git a/packages/api/src/react/use-chat.ts b/packages/api/src/react/use-chat.ts
new file mode 100644
index 0000000..ab33d52
--- /dev/null
+++ b/packages/api/src/react/use-chat.ts
@@ -0,0 +1,638 @@
+import {
+ AbstractChat,
+ convertFileListToFileUIParts,
+ readUIMessageStream,
+ type AsyncIterableStream,
+ type ChatOnDataCallback,
+ type ChatOnErrorCallback,
+ type ChatOnFinishCallback,
+ type ChatOnToolCallCallback,
+ type CreateUIMessage,
+ type UIMessage,
+ type UIMessageChunk,
+} from "ai";
+import { useCallback, useEffect, useRef, useState } from "react";
+import Client, {
+ type ChatMessage,
+ type SendMessagesRequest,
+ type SendMessagesResponse,
+ type StreamChatEvent,
+} from "../client.browser";
+
+export type UseChatUIHelpers = {
+ /**
+ * The id of the chat. If not provided, a chat will be created
+ * when messages are sent.
+ */
+ readonly id?: string;
+
+ /**
+ * The error object of the chat.
+ */
+ readonly error: Error | undefined;
+
+ readonly setMessages: (
+ messagesParam: UI_MESSAGE[] | ((messages: UI_MESSAGE[]) => UI_MESSAGE[])
+ ) => void;
+} & Pick<
+ AbstractChat,
+ | "sendMessage"
+ | "stop"
+ | "addToolResult"
+ | "status"
+ | "messages"
+ | "clearError"
+>;
+
+type SendMessageArg = Parameters<
+ AbstractChat["sendMessage"]
+>[0];
+
+export interface UseChatOptions {
+ /**
+ * A unique identifier for the chat. If not provided,
+ * a new chat will be created.
+ */
+ id?: string;
+
+ /**
+ * The id of the organization to use.
+ */
+ organization: string;
+
+ /**
+ * The id of the agent to use.
+ */
+ agent?: string;
+
+ /**
+ * The id of the agent deployment to use.
+ */
+ agentDeployment?: string;
+
+ /**
+ * The messages to initialize the chat with.
+ * If not provided, chat history will be inaccurate.
+ *
+ * Fetch chat history yourself.
+ */
+ messages?: UI_MESSAGE[];
+
+ /**
+ * Initial error message to display (e.g., from persisted chat state).
+ */
+ initialError?: string;
+
+ client?: Client;
+
+ onError?: ChatOnErrorCallback;
+ onToolCall?: ChatOnToolCallCallback;
+ onFinish?: ChatOnFinishCallback;
+ onData?: ChatOnDataCallback;
+}
+
+export function useChat(
+ options: UseChatOptions
+): UseChatUIHelpers {
+ const clientRef = useRef(options.client!);
+ if (!clientRef.current) {
+ clientRef.current = new Client();
+ }
+ const agentIDRef = useRef(options.agent);
+ if (agentIDRef.current !== options.agent) {
+ agentIDRef.current = options.agent;
+ }
+ const organizationIDRef = useRef(options.organization);
+ if (organizationIDRef.current !== options.organization) {
+ organizationIDRef.current = options.organization;
+ }
+ const agentDeploymentIDRef = useRef(
+ options.agentDeployment
+ );
+ if (agentDeploymentIDRef.current !== options.agentDeployment) {
+ agentDeploymentIDRef.current = options.agentDeployment;
+ }
+
+ const [chatID, setChatID] = useState(options.id);
+ const [messages, setMessages] = useState(
+ options.messages ?? []
+ );
+ const messagesRef = useRef(messages);
+ const messagesByIDRef = useRef